-
Notifications
You must be signed in to change notification settings - Fork 94
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 #1674
[r2r] Complete MetaMask #1674
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`
* Use `serde-json::preserve_order`, `serde-json::raw_value` features * Use a custom `rust-web3` crate
# Conflicts: # mm2src/coins/eth.rs
* Check the function's signature on `decode_contract_call`
* Split `sign_and_send_transaction_impl` into with a keypair and metamask
* Rename `EthConfig` to `MetamaskEthConfig` * Make `pub(crate)` most of the ETH related structures * Specify the `rust-web3` tag
* Uninline extra `SwapOps` methods * Return a Lightning Node ID as an HTLC pubkey
Fixes #1591 merge conflicts. |
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.
Previously approved here #1591
will propagate this to dev so we can run the secure code review / dependency update analysis from there @DeckerSU |
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.
missing dependency update review
Done:
rust-web3
crate.TODO: