Skip to content

Conversation

@shubham-damkondwar
Copy link
Contributor

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

@shubham-damkondwar shubham-damkondwar force-pushed the WIN-8627 branch 3 times, most recently from 5af8ff9 to 365b391 Compare February 10, 2026 06:04
* of the addresses being swept
*/
async recover(params: IotaRecoveryOptions): Promise<MPCTxs | MPCSweepTxs> {
if (!params.bitgoKey) {
Copy link
Contributor

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) {
Copy link
Contributor

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(
Copy link
Contributor

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

@dpkjnr
Copy link
Contributor

dpkjnr commented Feb 12, 2026

please add the tests also

Copy link
Contributor

@alextse-bg alextse-bg left a 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

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.

4 participants