-
Notifications
You must be signed in to change notification settings - Fork 101
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
[r2r] Complete MetaMask #1591
[r2r] Complete MetaMask #1591
Conversation
* Match MetaMask RPC error * Add and use `wallet_switch_ethereum_chain` RPC
* TODO error deserializing a nonce
* Fix `ethabi::Function::decode_input`
# Conflicts: # mm2src/coins/eth.rs # mm2src/coins/eth/web3_transport/metamask_transport.rs
* Wrap the `web3::Eip1193` transport into an event-driven pattern to make it `Send` * Fix circle dependencies by removing `serde_json::preserve_order` feature * Avoid using `serde_json::RawValue` for the `MmNumber`
* TODO figure out how to integrate `MetamaskSession` into `EthCoin`
* Add `MetamaskError` to all mm2 RPC errors * Get rid of `Web3Session` that makes the code super complicated
* Add `mm2_eth` crate with EIP712 helpers * Don't check ETH account on each RPC * Don't return a public key on `task::connect_metamask::init`
* Try to switch the ChainId on each RPC * Check if `WithdrawRequest::broadcast` is set
* Remove `url` and `version` fields from `AtomicDEXDomain` type
* Reimplement `ParityNonce` and `EthNonce` custom namespaces from `artemii235/rust-web3`
21ad477
to
5ae56fd
Compare
* Uninline extra `SwapOps` methods * Return a Lightning Node ID as an HTLC pubkey
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.
Last review iteration from my side.
Thanks for the fixes for previous notes:rocket:
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.
Great work as always! only 2 comments from me
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.
🔥
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.
thanks for the fixes! looks good to me:)
0b6a4ff
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.
Re-approving.
@sergeyboyko0791 plz resolve the conflicts |
@ca333 I would be happy to resolve them, but I can't push commits into this branch. |
The fix/conflict-resolution could have been simply PR'd directly into https://github.com/KomodoPlatform/atomicDEX-API/tree/metamask-feature which would have resolved the situation. Either way, I will close this PR for #1674 . Thank you. |
Done:
rust-web3
crate.TODO: