File tree Expand file tree Collapse file tree 3 files changed +22
-0
lines changed
modules/sdk-core/src/bitgo Expand file tree Collapse file tree 3 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ export * from './keychain';
17
17
export * as bitcoin from './legacyBitcoin' ;
18
18
export * from './market' ;
19
19
export * from './pendingApproval' ;
20
+ export { WalletProofs } from './proofs' ;
20
21
export * from './recovery' ;
21
22
export * from './staking' ;
22
23
export * from './trading' ;
Original file line number Diff line number Diff line change
1
+ import { IWallet } from '../wallet' ;
2
+ import { RequestTracer } from '../utils' ;
3
+
4
+ export class WalletProofs {
5
+ public wallet : IWallet ;
6
+
7
+ constructor ( wallet : IWallet ) {
8
+ this . wallet = wallet ;
9
+ }
10
+
11
+ async getWalletProof ( ) : Promise < string > {
12
+ const reqId = new RequestTracer ( ) ;
13
+ this . wallet . bitgo . setRequestTracer ( reqId ) ;
14
+
15
+ return ( await this . wallet . bitgo
16
+ . get ( this . wallet . bitgo . url ( '/wallet/' + this . wallet . id ( ) + '/liability-proofs' , 2 ) )
17
+ . send ( )
18
+ . result ( ) ) as string ;
19
+ }
20
+ }
Original file line number Diff line number Diff line change
1
+ export { WalletProofs } from './WalletProofs' ;
You can’t perform that action at this time.
0 commit comments