-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement ethereum explicitly related currency swap logic to make Native-to-EVM Bridge transactions visible via Ethereum RPC #1449
base: master
Are you sure you want to change the base?
Conversation
d203de1
to
c7c315c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good!
If we add the E2E tests to verify that the solution works overall, and unit tests with mock runtime (as we usually do) to test the niche cases (zero transfer, etc) and for tight regression control - I think we ship it pretty much right away
4c9425c
to
01e492c
Compare
f48f89e
to
863a9aa
Compare
Thinking about this, we should explicitly test, among other things, that the pot doesn't pay the fee for any tx with this flow. |
Tested manually that pot doesn't pay the fee - confirmed. Additionally will implement some unit tests and add this check to e2e test. |
b0e68a8
to
40e11f7
Compare
@@ -76,6 +77,8 @@ pub mod precompiles_constants { | |||
pub const NATIVE_CURRENCY: u64 = 2050; | |||
/// `CurrencySwap` precompile constant. | |||
pub const CURRENCY_SWAP: u64 = 2304; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We'll have to eventually deprecate this one; how would we do it?
f9ed013
to
2046f42
Compare
f9ed013
to
36923d3
Compare
36923d3
to
dc0ce50
Compare
Design thoughts
Currency
in favour of fungible related traits likeInspect
andMutate
Tasks
PoC of visibility
transaction itself
transaction execution in explorer on Substrate RPC side
transaction execution in explorer on Ethereum RPC side
Very tiny ethereum explorer is used to verify visibility via Ethereum RPC