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

Simultaneous activation of coins in two modes (Iguana and Trezor) #1227

Merged
merged 5 commits into from
Apr 12, 2022

Conversation

sergeyboyko0791
Copy link

  • Refactor CryptoCtx to be a structure that contains IguanaArc always and a constructible HwArc
  • Add init_trezor RPC call that initializes HwArc
  • Rename KeyPairCtx to IguanaCtx
  • Comment out mm_init_task, rpc_command modules, mm_init_status, mm_init_user_action RPC calls

* Refactor `CryptoCtx` to be a structure that contains `IguanaArc` always and a constructible `HwArc`
* Add `init_trezor` RPC call that initializes `HwArc`
* Rename `KeyPairCtx` to `IguanaCtx`
* Comment out `mm_init_task`, `rpc_command` modules, `mm_init_status`, `mm_init_user_action` RPC calls
Copy link
Member

@artemii235 artemii235 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! It's the first review iteration.

mm2src/crypto/src/crypto_ctx.rs Outdated Show resolved Hide resolved
mm2src/coins/utxo/utxo_withdraw.rs Outdated Show resolved Hide resolved
mm2src/lp_init/init_hw.rs Show resolved Hide resolved
mm2src/lp_native_dex.rs Outdated Show resolved Hide resolved
mm2src/rpc/dispatcher/dispatcher.rs Outdated Show resolved Hide resolved
mm2src/lp_init/init_context.rs Outdated Show resolved Hide resolved
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.

LGTM! Other than @artemii235 and @Milerius comments couldn't find anything else worth mentioning 🙂 , will approve once those comments are resolved.

* Avoid using `AsyncRwLock` for `CryptoCtx::hw_ctx` initialization by adding `HardwareWalletState`
* Remove commented code, `mm_init_task.rs`, `rpc_command.rs` files
* Inherit `UtxoCommonOps` from `AsRef<UtxoCoinFields> + Clone + Send + Sync + 'static`
@sergeyboyko0791
Copy link
Author

@artemii235 @Milerius I hope everything is done, could you please re-review the PR? :)

Milerius
Milerius previously approved these changes Mar 31, 2022
Copy link
Member

@artemii235 artemii235 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One minor note

mm2src/crypto/Cargo.toml Outdated Show resolved Hide resolved
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.

Great Work! 🔥

Copy link
Member

@artemii235 artemii235 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔥

@artemii235 artemii235 merged commit 98e2882 into dev Apr 12, 2022
@artemii235 artemii235 deleted the iguana-trezor-modes branch April 12, 2022 11:29
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.

Hardware wallets support [feature request] HD Wallet (multi-account)
4 participants