-
Notifications
You must be signed in to change notification settings - Fork 302
feat(sdk-coin-iota): add recovery and consolidation support #8089
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
base: master
Are you sure you want to change the base?
Conversation
5af8ff9 to
365b391
Compare
365b391 to
247b11c
Compare
247b11c to
fc93910
Compare
| * of the addresses being swept | ||
| */ | ||
| async recover(params: IotaRecoveryOptions): Promise<MPCTxs | MPCSweepTxs> { | ||
| if (!params.bitgoKey) { |
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.
why do we need bitgoKey? is it the public key for wallet? if yes then can we rename the param to avoid confusion?
|
|
||
| const response = await this.makeRpcCall(url, 'iotax_getOwnedObjects', [address, query, cursor, 50]); | ||
| const { data, nextCursor, hasNextPage: more } = response; | ||
| if (nextCursor === cursor) { |
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.
what happens when there is only one page? what will nextCursor have in that case, if it will be null then we might not process the data
| }; | ||
| } | ||
|
|
||
| private async signRecoveryTransaction( |
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.
most of this function is duplicate of other coin classes, lets move it to some common util
|
please add the tests also |
alextse-bg
left a comment
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.
wallets-owned changes lgtm
This covers the main changes: adding recover, recoverConsolidations, and sweep methods to the IOTA coin module, along with related constants, utility functions, and environment configuration.
TICKET: WIN-8627