Skip to content
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

Merged
merged 49 commits into from Feb 25, 2023
Merged

Conversation

sergei-boiko
Copy link

@sergei-boiko sergei-boiko commented Feb 22, 2023

Done:

TODO:

  • Figure out how to mock the MetaMask provider to test the swaps and the wallet functionality.
  • Design a notification protocol to notify the GUI on ETH account changed.
  • Find a workaround to sign/send Swap Watcher P2P messages

* 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
@sergei-boiko
Copy link
Author

Fixes #1591 merge conflicts.

@ca333 ca333 mentioned this pull request Feb 23, 2023
8 tasks
Copy link
Collaborator

@shamardy shamardy left a 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

@ca333 ca333 requested review from DeckerSU and ca333 February 24, 2023 08:02
@ca333
Copy link

ca333 commented Feb 25, 2023

will propagate this to dev so we can run the secure code review / dependency update analysis from there @DeckerSU

Copy link

@ca333 ca333 left a 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

@ca333 ca333 merged commit f32cb17 into KomodoPlatform:dev Feb 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants