Skip to content

Commit c8104a8

Browse files
Merge pull request #6427 from BitGo/WP-000000/unify-mpc-recovery-type
feat(sdk-coin-near): update recovery type to base mpc type
2 parents cf28bf4 + 7767e73 commit c8104a8

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

modules/sdk-coin-near/src/near.ts

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ import {
3636
multisigTypes,
3737
AuditDecryptedKeyParams,
3838
TokenEnablementConfig,
39+
MPCRecoveryOptions,
3940
} from '@bitgo/sdk-core';
4041
import * as nearAPI from 'near-api-js';
4142
import * as request from 'superagent';
@@ -83,17 +84,6 @@ interface TransactionOutput {
8384
amount: string;
8485
}
8586

86-
interface RecoveryOptions {
87-
userKey: string; // Box A
88-
backupKey: string; // Box B
89-
bitgoKey: string; // Box C
90-
recoveryDestination: string;
91-
krsProvider?: string;
92-
walletPassphrase: string;
93-
startingScanIndex?: number;
94-
scan?: number;
95-
}
96-
9787
interface NearTxBuilderParamsFromNode {
9888
nonce: bigint;
9989
blockHash: string;
@@ -341,7 +331,7 @@ export class Near extends BaseCoin {
341331
* Builds a funds recovery transaction without BitGo
342332
* @param params
343333
*/
344-
async recover(params: RecoveryOptions): Promise<MPCTx | MPCSweepTxs> {
334+
async recover(params: MPCRecoveryOptions): Promise<MPCTx | MPCSweepTxs> {
345335
if (!params.bitgoKey) {
346336
throw new Error('missing bitgoKey');
347337
}

0 commit comments

Comments
 (0)