-
Couldn't load subscription status.
- Fork 63
feat(web-extension): support wallet-specific trezorConfig in SigningC… #1666
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
Conversation
0f06b37 to
0389e54
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.
Looks good! Just some minor concerns 👇
…d Trezor types - Split HardwareWallet into LedgerHardwareWallet and TrezorHardwareWallet - Maintains backward compatibility through union type - Prepares for wallet-specific configuration support
deea40f to
2ed63c0
Compare
- Add trezorConfig to wallet metadata for TrezorHardwareWallet - Update SigningCoordinator to read trezorConfig from wallet.metadata - Add minimal test to verify trezorConfig functionality - Ensures trezorConfig can be updated via wallet manager and persists properly - Supports both wallet-specific trezorConfig and global hwOptions fallback
2ed63c0 to
895453d
Compare
…nator#signRequest - Extract #findAccount method for account lookup logic - Extract #createInMemorySignRequest for in-memory wallet sign requests - Extract #createHardwareSignRequest for hardware wallet sign requests - Extract #createHardwareKeyAgent for key agent creation logic - Replace complex nested ternary with simple conditional - Add proper TypeScript types for Bip32WalletAccount - Remove eslint-disable comment for cognitive complexity - Maintain exact same functionality while improving readability
895453d to
34d9d35
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.
Great work! 🚀
| request: Omit<Req, 'reject' | 'sign'>, | ||
| sign: (keyAgent: KeyAgent) => Promise<R> | ||
| ) { | ||
| /* eslint-disable sonarjs/cognitive-complexity */ |
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.
❤️
Context
Continues the support for Trezor
derivationTypein the web-extension interface