@@ -17,84 +17,30 @@ import {
1717 BitGoBase ,
1818 checkKrsProvider ,
1919 getBip32Keys ,
20- InitiateRecoveryOptions as BaseInitiateRecoveryOptions ,
2120 InvalidAddressError ,
2221 KeyPair ,
2322 ParsedTransaction ,
2423 ParseTransactionOptions ,
2524 promiseProps ,
26- SignTransactionOptions as BaseSignTransactionOptions ,
2725 TransactionExplanation ,
28- TransactionPrebuild ,
2926 UnexpectedAddressError ,
30- VerifyAddressOptions as BaseVerifyAddressOptions ,
3127 VerifyTransactionOptions ,
3228} from '@bitgo/sdk-core' ;
3329
3430import ripple from './ripple' ;
35-
36- interface Address {
37- address : string ;
38- destinationTag ?: number ;
39- }
40-
41- interface FeeInfo {
42- date : string ;
43- height : number ;
44- baseReserve : string ;
45- baseFee : string ;
46- }
47-
48- interface SignTransactionOptions extends BaseSignTransactionOptions {
49- txPrebuild : TransactionPrebuild ;
50- prv : string ;
51- isLastSignature ?: boolean ;
52- }
53-
54- interface ExplainTransactionOptions {
55- txHex ?: string ;
56- halfSigned ?: {
57- txHex : string ; // txHex is poorly named here; it is just a wrapped JSON object
58- } ;
59- }
60-
61- interface VerifyAddressOptions extends BaseVerifyAddressOptions {
62- rootAddress : string ;
63- }
64-
65- interface RecoveryInfo extends TransactionExplanation {
66- txHex : string ;
67- backupKey ?: string ;
68- coin ?: string ;
69- }
70-
71- export interface RecoveryTransaction {
72- txHex : string ;
73- }
74-
75- export interface InitiateRecoveryOptions extends BaseInitiateRecoveryOptions {
76- krsProvider ?: string ;
77- }
78-
79- export interface RecoveryOptions {
80- backupKey : string ;
81- userKey : string ;
82- rootAddress : string ;
83- recoveryDestination : string ;
84- bitgoKey ?: string ;
85- walletPassphrase : string ;
86- krsProvider ?: string ;
87- }
88-
89- interface HalfSignedTransaction {
90- halfSigned : {
91- txHex : string ;
92- } ;
93- }
94-
95- interface SupplementGenerateWalletOptions {
96- rootPrivateKey ?: string ;
97- }
31+ import {
32+ Address ,
33+ ExplainTransactionOptions ,
34+ FeeInfo ,
35+ HalfSignedTransaction ,
36+ InitiateRecoveryOptions ,
37+ RecoveryInfo ,
38+ RecoveryOptions ,
39+ RecoveryTransaction ,
40+ SignTransactionOptions ,
41+ SupplementGenerateWalletOptions ,
42+ VerifyAddressOptions ,
43+ } from './lib/iface' ;
9844
9945export class Xrp extends BaseCoin {
10046 protected constructor ( bitgo : BitGoBase ) {
0 commit comments