@bitgo-beta/sdk-coin-ada 2.3.14-beta.14 → 2.3.14-beta.141

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/CHANGELOG.md +170 -0
  2. package/dist/src/ada.d.ts +38 -17
  3. package/dist/src/ada.d.ts.map +1 -1
  4. package/dist/src/ada.js +266 -87
  5. package/dist/src/lib/index.d.ts +3 -1
  6. package/dist/src/lib/index.d.ts.map +1 -1
  7. package/dist/src/lib/index.js +8 -4
  8. package/dist/src/lib/{stakingWithdrawRewardsBuilder.d.ts → stakingBaseClaimBuilder.d.ts} +6 -7
  9. package/dist/src/lib/stakingBaseClaimBuilder.d.ts.map +1 -0
  10. package/dist/src/lib/stakingBaseClaimBuilder.js +35 -0
  11. package/dist/src/lib/stakingClaimRewardsBuilder.d.ts +10 -0
  12. package/dist/src/lib/stakingClaimRewardsBuilder.d.ts.map +1 -0
  13. package/dist/src/lib/stakingClaimRewardsBuilder.js +22 -0
  14. package/dist/src/lib/stakingPledgeBuilder.d.ts +23 -0
  15. package/dist/src/lib/stakingPledgeBuilder.d.ts.map +1 -0
  16. package/dist/src/lib/stakingPledgeBuilder.js +43 -0
  17. package/dist/src/lib/stakingWithdrawBuilder.d.ts +12 -0
  18. package/dist/src/lib/stakingWithdrawBuilder.d.ts.map +1 -0
  19. package/dist/src/lib/stakingWithdrawBuilder.js +22 -0
  20. package/dist/src/lib/transaction.d.ts +26 -2
  21. package/dist/src/lib/transaction.d.ts.map +1 -1
  22. package/dist/src/lib/transaction.js +99 -9
  23. package/dist/src/lib/transactionBuilder.d.ts +2 -0
  24. package/dist/src/lib/transactionBuilder.d.ts.map +1 -1
  25. package/dist/src/lib/transactionBuilder.js +21 -4
  26. package/dist/src/lib/transactionBuilderFactory.d.ts +6 -2
  27. package/dist/src/lib/transactionBuilderFactory.d.ts.map +1 -1
  28. package/dist/src/lib/transactionBuilderFactory.js +15 -3
  29. package/dist/src/lib/utils.d.ts +6 -0
  30. package/dist/src/lib/utils.d.ts.map +1 -1
  31. package/dist/src/lib/utils.js +29 -12
  32. package/package.json +10 -9
  33. package/dist/src/lib/stakingWithdrawRewardsBuilder.d.ts.map +0 -1
  34. package/dist/src/lib/stakingWithdrawRewardsBuilder.js +0 -43
package/CHANGELOG.md CHANGED
@@ -3,6 +3,176 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [2.15.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ada@2.6.0...@bitgo/sdk-coin-ada@2.15.0) (2023-09-25)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **sdk-coin-ada:** fix ada createBroadcastableTransaction method for arrays of txns ([ee27caf](https://github.com/BitGo/BitGoJS/commit/ee27cafa9e6ad53b063c5365f4cafce0f4f46d89))
11
+ - **sdk-coin-ada:** fix ada recovery for wallets derived from the same keys ([7900b22](https://github.com/BitGo/BitGoJS/commit/7900b22976a8829446cf0c991827239f9cdca19d))
12
+
13
+ ### Features
14
+
15
+ - **sdk-coin-ada:** add consolidation method for ada recovery ([d912027](https://github.com/BitGo/BitGoJS/commit/d9120274fa7324dc2d0b37eae5f35300efc3b492))
16
+ - **sdk-coin-ada:** add lastScanIndex for consolidation support ([bf9b910](https://github.com/BitGo/BitGoJS/commit/bf9b9103e11cd5e0e38304d6ba2999d76fc128dc))
17
+ - **sdk-coin-ada:** create method to produce broadcastable ada sweep txn ([b5591ee](https://github.com/BitGo/BitGoJS/commit/b5591ee8e7a31cad1b817f02f9147bab10c49357))
18
+ - **sdk-coin-ada:** fix ada sweep recovery format for ovc signing ([7b88f90](https://github.com/BitGo/BitGoJS/commit/7b88f902d533507ee6f499ba5650e5a61d2c54b6))
19
+ - **sdk-coin-ada:** return ovc compatible format for ada sweep txns ([a32d18a](https://github.com/BitGo/BitGoJS/commit/a32d18ab09162ca48aefe8bd5e3be52a7a6b3924))
20
+
21
+ # [2.14.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ada@2.6.0...@bitgo/sdk-coin-ada@2.14.0) (2023-09-09)
22
+
23
+ ### Bug Fixes
24
+
25
+ - **sdk-coin-ada:** fix ada createBroadcastableTransaction method for arrays of txns ([ee27caf](https://github.com/BitGo/BitGoJS/commit/ee27cafa9e6ad53b063c5365f4cafce0f4f46d89))
26
+ - **sdk-coin-ada:** fix ada recovery for wallets derived from the same keys ([7900b22](https://github.com/BitGo/BitGoJS/commit/7900b22976a8829446cf0c991827239f9cdca19d))
27
+
28
+ ### Features
29
+
30
+ - **sdk-coin-ada:** add consolidation method for ada recovery ([d912027](https://github.com/BitGo/BitGoJS/commit/d9120274fa7324dc2d0b37eae5f35300efc3b492))
31
+ - **sdk-coin-ada:** add lastScanIndex for consolidation support ([bf9b910](https://github.com/BitGo/BitGoJS/commit/bf9b9103e11cd5e0e38304d6ba2999d76fc128dc))
32
+ - **sdk-coin-ada:** create method to produce broadcastable ada sweep txn ([b5591ee](https://github.com/BitGo/BitGoJS/commit/b5591ee8e7a31cad1b817f02f9147bab10c49357))
33
+ - **sdk-coin-ada:** fix ada sweep recovery format for ovc signing ([7b88f90](https://github.com/BitGo/BitGoJS/commit/7b88f902d533507ee6f499ba5650e5a61d2c54b6))
34
+ - **sdk-coin-ada:** return ovc compatible format for ada sweep txns ([a32d18a](https://github.com/BitGo/BitGoJS/commit/a32d18ab09162ca48aefe8bd5e3be52a7a6b3924))
35
+
36
+ # [2.13.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ada@2.6.0...@bitgo/sdk-coin-ada@2.13.0) (2023-09-09)
37
+
38
+ ### Bug Fixes
39
+
40
+ - **sdk-coin-ada:** fix ada createBroadcastableTransaction method for arrays of txns ([ee27caf](https://github.com/BitGo/BitGoJS/commit/ee27cafa9e6ad53b063c5365f4cafce0f4f46d89))
41
+ - **sdk-coin-ada:** fix ada recovery for wallets derived from the same keys ([7900b22](https://github.com/BitGo/BitGoJS/commit/7900b22976a8829446cf0c991827239f9cdca19d))
42
+
43
+ ### Features
44
+
45
+ - **sdk-coin-ada:** add consolidation method for ada recovery ([d912027](https://github.com/BitGo/BitGoJS/commit/d9120274fa7324dc2d0b37eae5f35300efc3b492))
46
+ - **sdk-coin-ada:** add lastScanIndex for consolidation support ([bf9b910](https://github.com/BitGo/BitGoJS/commit/bf9b9103e11cd5e0e38304d6ba2999d76fc128dc))
47
+ - **sdk-coin-ada:** create method to produce broadcastable ada sweep txn ([b5591ee](https://github.com/BitGo/BitGoJS/commit/b5591ee8e7a31cad1b817f02f9147bab10c49357))
48
+ - **sdk-coin-ada:** fix ada sweep recovery format for ovc signing ([7b88f90](https://github.com/BitGo/BitGoJS/commit/7b88f902d533507ee6f499ba5650e5a61d2c54b6))
49
+ - **sdk-coin-ada:** return ovc compatible format for ada sweep txns ([a32d18a](https://github.com/BitGo/BitGoJS/commit/a32d18ab09162ca48aefe8bd5e3be52a7a6b3924))
50
+
51
+ # [2.12.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ada@2.6.0...@bitgo/sdk-coin-ada@2.12.0) (2023-09-07)
52
+
53
+ ### Bug Fixes
54
+
55
+ - **sdk-coin-ada:** fix ada createBroadcastableTransaction method for arrays of txns ([ee27caf](https://github.com/BitGo/BitGoJS/commit/ee27cafa9e6ad53b063c5365f4cafce0f4f46d89))
56
+ - **sdk-coin-ada:** fix ada recovery for wallets derived from the same keys ([7900b22](https://github.com/BitGo/BitGoJS/commit/7900b22976a8829446cf0c991827239f9cdca19d))
57
+
58
+ ### Features
59
+
60
+ - **sdk-coin-ada:** add consolidation method for ada recovery ([d912027](https://github.com/BitGo/BitGoJS/commit/d9120274fa7324dc2d0b37eae5f35300efc3b492))
61
+ - **sdk-coin-ada:** add lastScanIndex for consolidation support ([bf9b910](https://github.com/BitGo/BitGoJS/commit/bf9b9103e11cd5e0e38304d6ba2999d76fc128dc))
62
+ - **sdk-coin-ada:** create method to produce broadcastable ada sweep txn ([b5591ee](https://github.com/BitGo/BitGoJS/commit/b5591ee8e7a31cad1b817f02f9147bab10c49357))
63
+ - **sdk-coin-ada:** fix ada sweep recovery format for ovc signing ([7b88f90](https://github.com/BitGo/BitGoJS/commit/7b88f902d533507ee6f499ba5650e5a61d2c54b6))
64
+ - **sdk-coin-ada:** return ovc compatible format for ada sweep txns ([a32d18a](https://github.com/BitGo/BitGoJS/commit/a32d18ab09162ca48aefe8bd5e3be52a7a6b3924))
65
+
66
+ # [2.11.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ada@2.6.0...@bitgo/sdk-coin-ada@2.11.0) (2023-09-05)
67
+
68
+ ### Bug Fixes
69
+
70
+ - **sdk-coin-ada:** fix ada recovery for wallets derived from the same keys ([7900b22](https://github.com/BitGo/BitGoJS/commit/7900b22976a8829446cf0c991827239f9cdca19d))
71
+
72
+ ### Features
73
+
74
+ - **sdk-coin-ada:** create method to produce broadcastable ada sweep txn ([b5591ee](https://github.com/BitGo/BitGoJS/commit/b5591ee8e7a31cad1b817f02f9147bab10c49357))
75
+ - **sdk-coin-ada:** fix ada sweep recovery format for ovc signing ([7b88f90](https://github.com/BitGo/BitGoJS/commit/7b88f902d533507ee6f499ba5650e5a61d2c54b6))
76
+ - **sdk-coin-ada:** return ovc compatible format for ada sweep txns ([a32d18a](https://github.com/BitGo/BitGoJS/commit/a32d18ab09162ca48aefe8bd5e3be52a7a6b3924))
77
+
78
+ # [2.10.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ada@2.6.0...@bitgo/sdk-coin-ada@2.10.0) (2023-09-01)
79
+
80
+ ### Features
81
+
82
+ - **sdk-coin-ada:** fix ada sweep recovery format for ovc signing ([7b88f90](https://github.com/BitGo/BitGoJS/commit/7b88f902d533507ee6f499ba5650e5a61d2c54b6))
83
+ - **sdk-coin-ada:** return ovc compatible format for ada sweep txns ([a32d18a](https://github.com/BitGo/BitGoJS/commit/a32d18ab09162ca48aefe8bd5e3be52a7a6b3924))
84
+
85
+ # [2.9.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ada@2.6.0...@bitgo/sdk-coin-ada@2.9.0) (2023-08-29)
86
+
87
+ ### Features
88
+
89
+ - **sdk-coin-ada:** return ovc compatible format for ada sweep txns ([a32d18a](https://github.com/BitGo/BitGoJS/commit/a32d18ab09162ca48aefe8bd5e3be52a7a6b3924))
90
+
91
+ # [2.8.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ada@2.6.0...@bitgo/sdk-coin-ada@2.8.0) (2023-08-25)
92
+
93
+ ### Features
94
+
95
+ - **sdk-coin-ada:** return ovc compatible format for ada sweep txns ([a32d18a](https://github.com/BitGo/BitGoJS/commit/a32d18ab09162ca48aefe8bd5e3be52a7a6b3924))
96
+
97
+ # [2.7.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ada@2.6.0...@bitgo/sdk-coin-ada@2.7.0) (2023-08-24)
98
+
99
+ ### Features
100
+
101
+ - **sdk-coin-ada:** return ovc compatible format for ada sweep txns ([a32d18a](https://github.com/BitGo/BitGoJS/commit/a32d18ab09162ca48aefe8bd5e3be52a7a6b3924))
102
+
103
+ ## [2.6.2](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ada@2.6.0...@bitgo/sdk-coin-ada@2.6.2) (2023-08-16)
104
+
105
+ **Note:** Version bump only for package @bitgo/sdk-coin-ada
106
+
107
+ ## [2.6.1](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ada@2.6.0...@bitgo/sdk-coin-ada@2.6.1) (2023-08-16)
108
+
109
+ **Note:** Version bump only for package @bitgo/sdk-coin-ada
110
+
111
+ # [2.6.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ada@2.4.0...@bitgo/sdk-coin-ada@2.6.0) (2023-08-04)
112
+
113
+ ### Features
114
+
115
+ - **root:** add node 18 to engines and CI ([9cc6a70](https://github.com/BitGo/BitGoJS/commit/9cc6a70ba807161b7c6a0ebe3d7c47f25c7c8eca))
116
+ - **root:** remove node 14 from engines ([6ec47cb](https://github.com/BitGo/BitGoJS/commit/6ec47cbd7996cc78bbf2cf7f16595c24fe43cd41))
117
+
118
+ # [2.5.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ada@2.4.0...@bitgo/sdk-coin-ada@2.5.0) (2023-07-28)
119
+
120
+ ### Features
121
+
122
+ - **root:** add node 18 to engines and CI ([9cc6a70](https://github.com/BitGo/BitGoJS/commit/9cc6a70ba807161b7c6a0ebe3d7c47f25c7c8eca))
123
+ - **root:** remove node 14 from engines ([6ec47cb](https://github.com/BitGo/BitGoJS/commit/6ec47cbd7996cc78bbf2cf7f16595c24fe43cd41))
124
+
125
+ # [2.4.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ada@2.3.22...@bitgo/sdk-coin-ada@2.4.0) (2023-07-18)
126
+
127
+ ### Bug Fixes
128
+
129
+ - **sdk-coin-ada:** cosmetic signature array might duplicate ([f742147](https://github.com/BitGo/BitGoJS/commit/f7421477cb1be9b2edbd5e682d6c89ab12e27765))
130
+ - **sdk-core:** fix uploading unsigned sweep tx for sol, dot and ada ([ea85586](https://github.com/BitGo/BitGoJS/commit/ea855868adb781cbfdc73e92a81f9540b0d75c3b))
131
+
132
+ ### Features
133
+
134
+ - **sdk-coin-ada:** implement util method for ADA tx body ([bc67850](https://github.com/BitGo/BitGoJS/commit/bc678502f19da7cfdf79813b7f614d36e3d81403))
135
+ - **sdk-coin-ada:** parse partially signed tx hex ([dcfa939](https://github.com/BitGo/BitGoJS/commit/dcfa9392726db45a5a5c4de751a19fe7154ffa2f))
136
+ - **sdk-coin-ada:** split claim rewards and claim unstaked ([271ccca](https://github.com/BitGo/BitGoJS/commit/271ccca2be0d562cb8f204002f229c11f1f80094))
137
+
138
+ ## [2.3.22](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ada@2.3.21...@bitgo/sdk-coin-ada@2.3.22) (2023-06-21)
139
+
140
+ ### Bug Fixes
141
+
142
+ - **sdk-coin-ada:** refine ada pledge parsing logic ([16c27f8](https://github.com/BitGo/BitGoJS/commit/16c27f84b0d2bd5ae1582446b1a8d77e39d05982))
143
+
144
+ ## [2.3.21](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ada@2.3.20...@bitgo/sdk-coin-ada@2.3.21) (2023-06-14)
145
+
146
+ **Note:** Version bump only for package @bitgo/sdk-coin-ada
147
+
148
+ ## [2.3.20](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ada@2.3.19...@bitgo/sdk-coin-ada@2.3.20) (2023-06-13)
149
+
150
+ **Note:** Version bump only for package @bitgo/sdk-coin-ada
151
+
152
+ ## [2.3.19](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ada@2.3.18...@bitgo/sdk-coin-ada@2.3.19) (2023-06-07)
153
+
154
+ **Note:** Version bump only for package @bitgo/sdk-coin-ada
155
+
156
+ ## [2.3.18](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ada@2.3.17...@bitgo/sdk-coin-ada@2.3.18) (2023-06-05)
157
+
158
+ **Note:** Version bump only for package @bitgo/sdk-coin-ada
159
+
160
+ ## [2.3.17](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ada@2.3.16...@bitgo/sdk-coin-ada@2.3.17) (2023-05-25)
161
+
162
+ **Note:** Version bump only for package @bitgo/sdk-coin-ada
163
+
164
+ ## [2.3.16](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ada@2.3.15...@bitgo/sdk-coin-ada@2.3.16) (2023-05-17)
165
+
166
+ **Note:** Version bump only for package @bitgo/sdk-coin-ada
167
+
168
+ ## [2.3.15](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ada@2.3.14...@bitgo/sdk-coin-ada@2.3.15) (2023-05-10)
169
+
170
+ **Note:** Version bump only for package @bitgo/sdk-coin-ada
171
+
172
+ ## [2.3.14](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ada@2.3.13...@bitgo/sdk-coin-ada@2.3.14) (2023-05-03)
173
+
174
+ **Note:** Version bump only for package @bitgo/sdk-coin-ada
175
+
6
176
  ## [2.3.13](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ada@2.3.12...@bitgo/sdk-coin-ada@2.3.13) (2023-04-25)
7
177
 
8
178
  **Note:** Version bump only for package @bitgo/sdk-coin-ada
package/dist/src/ada.d.ts CHANGED
@@ -1,7 +1,8 @@
1
1
  /// <reference types="node" />
2
- import { BaseCoin, BitGoBase, KeyPair, MPCAlgorithm, ParsedTransaction, ParseTransactionOptions as BaseParseTransactionOptions, SignedTransaction, SignTransactionOptions as BaseSignTransactionOptions, TransactionExplanation, VerifyAddressOptions, VerifyTransactionOptions } from '@bitgo-beta/sdk-core';
2
+ import { BaseCoin, BitGoBase, KeyPair, MPCAlgorithm, ParsedTransaction, ParseTransactionOptions as BaseParseTransactionOptions, SignedTransaction, SignTransactionOptions as BaseSignTransactionOptions, TransactionExplanation, VerifyAddressOptions, VerifyTransactionOptions, MPCTx, MPCRecoveryOptions, MPCConsolidationRecoveryOptions, MPCSweepTxs, MPCSweepRecoveryOptions, MPCTxs } from '@bitgo-beta/sdk-core';
3
3
  import { BaseCoin as StaticsBaseCoin, CoinFamily } from '@bitgo-beta/statics';
4
4
  import * as request from 'superagent';
5
+ export declare const DEFAULT_SCAN_FACTOR = 20;
5
6
  export interface TransactionPrebuild {
6
7
  txHex: string;
7
8
  }
@@ -15,19 +16,14 @@ export interface SignTransactionOptions extends BaseSignTransactionOptions {
15
16
  txPrebuild: TransactionPrebuild;
16
17
  prv: string;
17
18
  }
18
- interface RecoveryOptions {
19
- userKey?: string;
20
- backupKey?: string;
19
+ interface AdaAddressParams {
21
20
  bitgoKey: string;
22
- recoveryDestination: string;
23
- krsProvider?: string;
24
- walletPassphrase?: string;
25
- startingScanIndex?: number;
26
- scan?: number;
21
+ index: number;
22
+ seed?: string;
27
23
  }
28
- interface AdaTx {
29
- serializedTx: string;
30
- scanIndex: number;
24
+ interface AdaAddressAndAccountId {
25
+ address: string;
26
+ accountId: string;
31
27
  }
32
28
  export declare type AdaTransactionExplanation = TransactionExplanation;
33
29
  export declare class Ada extends BaseCoin {
@@ -75,15 +71,40 @@ export declare class Ada extends BaseCoin {
75
71
  }>;
76
72
  protected getChainTipInfo(): Promise<Record<string, string>>;
77
73
  /**
78
- * Builds a funds recovery transaction without BitGo
74
+ * Creates funds sweep recovery transaction(s) without BitGo
79
75
  *
80
- * @param {RecoveryOptions} params parameters needed to construct and
76
+ * @param {MPCSweepRecoveryOptions} params parameters needed to combine the signatures
77
+ * and transactions to create broadcastable transactions
78
+ *
79
+ * @returns {MPCTxs} array of the serialized transaction hex strings and indices
80
+ * of the addresses being swept
81
+ */
82
+ createBroadcastableSweepTransaction(params: MPCSweepRecoveryOptions): Promise<MPCTxs>;
83
+ /**
84
+ * Builds funds recovery transaction(s) without BitGo
85
+ *
86
+ * @param {MPCRecoveryOptions} params parameters needed to construct and
81
87
  * (maybe) sign the transaction
82
88
  *
83
- * @returns {AdaTx} the serialized transaction hex string and index
84
- * of the address being swept
89
+ * @returns {MPCTx | MPCSweepTxs} array of the serialized transaction hex strings and indices
90
+ * of the addresses being swept
91
+ */
92
+ recover(params: MPCRecoveryOptions): Promise<MPCTx | MPCSweepTxs>;
93
+ /**
94
+ * Builds native ADA recoveries of receive addresses in batch without BitGo.
95
+ * Funds will be recovered to base address first. You need to initiate another sweep txn after that.
96
+ *
97
+ * @param {MPCConsolidationRecoveryOptions} params - options for consolidation recovery.
98
+ * @param {string} [params.startingScanIndex] - receive address index to start scanning from. default to 1 (inclusive).
99
+ * @param {string} [params.endingScanIndex] - receive address index to end scanning at. default to startingScanIndex + 20 (exclusive).
100
+ */
101
+ recoverConsolidations(params: MPCConsolidationRecoveryOptions): Promise<MPCTxs | MPCSweepTxs>;
102
+ /**
103
+ * Obtains ADA address and account id from provided bitgo key for the given index and seed (optional).
104
+ *
105
+ * @param {AdaAddressParams} params - params to obtain ada address and account id
85
106
  */
86
- recover(params: RecoveryOptions): Promise<AdaTx>;
107
+ getAdaAddressAndAccountId(params: AdaAddressParams): Promise<AdaAddressAndAccountId>;
87
108
  /** inherited doc */
88
109
  supportsTss(): boolean;
89
110
  /** inherited doc */
@@ -1 +1 @@
1
- {"version":3,"file":"ada.d.ts","sourceRoot":"","sources":["../../src/ada.ts"],"names":[],"mappings":";AACA,OAAO,EACL,QAAQ,EAER,SAAS,EAET,OAAO,EACP,YAAY,EAEZ,iBAAiB,EACjB,uBAAuB,IAAI,2BAA2B,EACtD,iBAAiB,EACjB,sBAAsB,IAAI,0BAA0B,EACpD,sBAAsB,EACtB,oBAAoB,EACpB,wBAAwB,EAKzB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,QAAQ,IAAI,eAAe,EAAE,UAAU,EAAS,MAAM,qBAAqB,CAAC;AAErF,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AAEtC,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,yBAAyB;IACxC,UAAU,EAAE,mBAAmB,CAAC;CACjC;AAED,MAAM,WAAW,0BAA2B,SAAQ,2BAA2B;IAC7E,UAAU,EAAE,mBAAmB,CAAC;CACjC;AAED,MAAM,WAAW,sBAAuB,SAAQ,0BAA0B;IACxE,UAAU,EAAE,mBAAmB,CAAC;IAChC,GAAG,EAAE,MAAM,CAAC;CACb;AAED,UAAU,eAAe;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,I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