File tree Expand file tree Collapse file tree 1 file changed +2
-12
lines changed
modules/sdk-coin-near/src Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ import {
3636 multisigTypes ,
3737 AuditDecryptedKeyParams ,
3838 TokenEnablementConfig ,
39+ MPCRecoveryOptions ,
3940} from '@bitgo/sdk-core' ;
4041import * as nearAPI from 'near-api-js' ;
4142import * 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-
9787interface 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 }
You can’t perform that action at this time.
0 commit comments