@bitgo-beta/sdk-coin-dot 2.2.8-beta.11 → 2.2.8-beta.110

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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,183 @@
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
+ # [3.9.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-dot@3.2.0...@bitgo/sdk-coin-dot@3.9.0) (2023-09-05)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **sdk-coin-dot:** add logging to troublshoot DOT staking ([902558a](https://github.com/BitGo/BitGoJS/commit/902558a24c93ca8e7977bdbb370a24098aea775b))
11
+ - **sdk-coin-dot:** add logs to debug dot staking txn build failure ([eb929e3](https://github.com/BitGo/BitGoJS/commit/eb929e351a2330e820360c54541943ad67ba15eb))
12
+ - **sdk-coin-dot:** add more logs to debug Dot staking issue ([ccb9914](https://github.com/BitGo/BitGoJS/commit/ccb99143b7b1b875c7d81ebf3a90b966ab1cef8e))
13
+ - **sdk-coin-dot:** make controller optional for bond call ([a6f6a0d](https://github.com/BitGo/BitGoJS/commit/a6f6a0d96afdb663a7a096c4eb2caf9ca1649d63))
14
+ - **sdk-coin-dot:** update DOT sdk to latest ([9385f80](https://github.com/BitGo/BitGoJS/commit/9385f803366b615d09bda31b8efda6f93e26e8e7))
15
+
16
+ ### Features
17
+
18
+ - **sdk-coin-dot:** add logs to debug DOT staking issue ([33c1a9c](https://github.com/BitGo/BitGoJS/commit/33c1a9c2d7051481f1afb993376a18d421170aa0))
19
+ - **sdk-coin-dot:** create function to produce broadcastable dot sweep ([ad9c9c4](https://github.com/BitGo/BitGoJS/commit/ad9c9c4cc79639a5745e82f62566afa6db2b8c6d))
20
+ - **sdk-coin-dot:** fix dot sweep recovery format for ovc signing ([d73271b](https://github.com/BitGo/BitGoJS/commit/d73271bfcb806d980cd09db3828805b1ece8689d))
21
+ - **sdk-coin-dot:** remove DOT console debug logging ([d4aad05](https://github.com/BitGo/BitGoJS/commit/d4aad0509a14bc0a89e8af7435353621044a1100))
22
+ - **sdk-coin-dot:** return ovc compatible format for dot sweep txns ([748f40c](https://github.com/BitGo/BitGoJS/commit/748f40c044fb047639b9e8a0ecab30c4692523b0))
23
+ - **sdk-coin-sol:** create method to produce broadcastable sol sweep txn ([d69ca4e](https://github.com/BitGo/BitGoJS/commit/d69ca4ea0688c4cf7c738ca826a9231438bb49c5))
24
+
25
+ # [3.8.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-dot@3.2.0...@bitgo/sdk-coin-dot@3.8.0) (2023-09-01)
26
+
27
+ ### Bug Fixes
28
+
29
+ - **sdk-coin-dot:** add logging to troublshoot DOT staking ([902558a](https://github.com/BitGo/BitGoJS/commit/902558a24c93ca8e7977bdbb370a24098aea775b))
30
+ - **sdk-coin-dot:** add logs to debug dot staking txn build failure ([eb929e3](https://github.com/BitGo/BitGoJS/commit/eb929e351a2330e820360c54541943ad67ba15eb))
31
+ - **sdk-coin-dot:** add more logs to debug Dot staking issue ([ccb9914](https://github.com/BitGo/BitGoJS/commit/ccb99143b7b1b875c7d81ebf3a90b966ab1cef8e))
32
+ - **sdk-coin-dot:** make controller optional for bond call ([a6f6a0d](https://github.com/BitGo/BitGoJS/commit/a6f6a0d96afdb663a7a096c4eb2caf9ca1649d63))
33
+ - **sdk-coin-dot:** update DOT sdk to latest ([9385f80](https://github.com/BitGo/BitGoJS/commit/9385f803366b615d09bda31b8efda6f93e26e8e7))
34
+
35
+ ### Features
36
+
37
+ - **sdk-coin-dot:** add logs to debug DOT staking issue ([33c1a9c](https://github.com/BitGo/BitGoJS/commit/33c1a9c2d7051481f1afb993376a18d421170aa0))
38
+ - **sdk-coin-dot:** create function to produce broadcastable dot sweep ([ad9c9c4](https://github.com/BitGo/BitGoJS/commit/ad9c9c4cc79639a5745e82f62566afa6db2b8c6d))
39
+ - **sdk-coin-dot:** fix dot sweep recovery format for ovc signing ([d73271b](https://github.com/BitGo/BitGoJS/commit/d73271bfcb806d980cd09db3828805b1ece8689d))
40
+ - **sdk-coin-dot:** remove DOT console debug logging ([d4aad05](https://github.com/BitGo/BitGoJS/commit/d4aad0509a14bc0a89e8af7435353621044a1100))
41
+ - **sdk-coin-dot:** return ovc compatible format for dot sweep txns ([748f40c](https://github.com/BitGo/BitGoJS/commit/748f40c044fb047639b9e8a0ecab30c4692523b0))
42
+
43
+ # [3.7.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-dot@3.2.0...@bitgo/sdk-coin-dot@3.7.0) (2023-08-29)
44
+
45
+ ### Bug Fixes
46
+
47
+ - **sdk-coin-dot:** add logging to troublshoot DOT staking ([902558a](https://github.com/BitGo/BitGoJS/commit/902558a24c93ca8e7977bdbb370a24098aea775b))
48
+ - **sdk-coin-dot:** add logs to debug dot staking txn build failure ([eb929e3](https://github.com/BitGo/BitGoJS/commit/eb929e351a2330e820360c54541943ad67ba15eb))
49
+ - **sdk-coin-dot:** add more logs to debug Dot staking issue ([ccb9914](https://github.com/BitGo/BitGoJS/commit/ccb99143b7b1b875c7d81ebf3a90b966ab1cef8e))
50
+ - **sdk-coin-dot:** make controller optional for bond call ([a6f6a0d](https://github.com/BitGo/BitGoJS/commit/a6f6a0d96afdb663a7a096c4eb2caf9ca1649d63))
51
+ - **sdk-coin-dot:** update DOT sdk to latest ([9385f80](https://github.com/BitGo/BitGoJS/commit/9385f803366b615d09bda31b8efda6f93e26e8e7))
52
+
53
+ ### Features
54
+
55
+ - **sdk-coin-dot:** add logs to debug DOT staking issue ([33c1a9c](https://github.com/BitGo/BitGoJS/commit/33c1a9c2d7051481f1afb993376a18d421170aa0))
56
+ - **sdk-coin-dot:** remove DOT console debug logging ([d4aad05](https://github.com/BitGo/BitGoJS/commit/d4aad0509a14bc0a89e8af7435353621044a1100))
57
+ - **sdk-coin-dot:** return ovc compatible format for dot sweep txns ([748f40c](https://github.com/BitGo/BitGoJS/commit/748f40c044fb047639b9e8a0ecab30c4692523b0))
58
+
59
+ # [3.6.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-dot@3.2.0...@bitgo/sdk-coin-dot@3.6.0) (2023-08-25)
60
+
61
+ ### Bug Fixes
62
+
63
+ - **sdk-coin-dot:** add logging to troublshoot DOT staking ([902558a](https://github.com/BitGo/BitGoJS/commit/902558a24c93ca8e7977bdbb370a24098aea775b))
64
+ - **sdk-coin-dot:** add logs to debug dot staking txn build failure ([eb929e3](https://github.com/BitGo/BitGoJS/commit/eb929e351a2330e820360c54541943ad67ba15eb))
65
+ - **sdk-coin-dot:** add more logs to debug Dot staking issue ([ccb9914](https://github.com/BitGo/BitGoJS/commit/ccb99143b7b1b875c7d81ebf3a90b966ab1cef8e))
66
+ - **sdk-coin-dot:** make controller optional for bond call ([a6f6a0d](https://github.com/BitGo/BitGoJS/commit/a6f6a0d96afdb663a7a096c4eb2caf9ca1649d63))
67
+ - **sdk-coin-dot:** update DOT sdk to latest ([9385f80](https://github.com/BitGo/BitGoJS/commit/9385f803366b615d09bda31b8efda6f93e26e8e7))
68
+
69
+ ### Features
70
+
71
+ - **sdk-coin-dot:** add logs to debug DOT staking issue ([33c1a9c](https://github.com/BitGo/BitGoJS/commit/33c1a9c2d7051481f1afb993376a18d421170aa0))
72
+ - **sdk-coin-dot:** remove DOT console debug logging ([d4aad05](https://github.com/BitGo/BitGoJS/commit/d4aad0509a14bc0a89e8af7435353621044a1100))
73
+ - **sdk-coin-dot:** return ovc compatible format for dot sweep txns ([748f40c](https://github.com/BitGo/BitGoJS/commit/748f40c044fb047639b9e8a0ecab30c4692523b0))
74
+
75
+ # [3.5.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-dot@3.2.0...@bitgo/sdk-coin-dot@3.5.0) (2023-08-24)
76
+
77
+ ### Bug Fixes
78
+
79
+ - **sdk-coin-dot:** add logging to troublshoot DOT staking ([902558a](https://github.com/BitGo/BitGoJS/commit/902558a24c93ca8e7977bdbb370a24098aea775b))
80
+ - **sdk-coin-dot:** add logs to debug dot staking txn build failure ([eb929e3](https://github.com/BitGo/BitGoJS/commit/eb929e351a2330e820360c54541943ad67ba15eb))
81
+ - **sdk-coin-dot:** add more logs to debug Dot staking issue ([ccb9914](https://github.com/BitGo/BitGoJS/commit/ccb99143b7b1b875c7d81ebf3a90b966ab1cef8e))
82
+ - **sdk-coin-dot:** make controller optional for bond call ([a6f6a0d](https://github.com/BitGo/BitGoJS/commit/a6f6a0d96afdb663a7a096c4eb2caf9ca1649d63))
83
+ - **sdk-coin-dot:** update DOT sdk to latest ([9385f80](https://github.com/BitGo/BitGoJS/commit/9385f803366b615d09bda31b8efda6f93e26e8e7))
84
+
85
+ ### Features
86
+
87
+ - **sdk-coin-dot:** add logs to debug DOT staking issue ([33c1a9c](https://github.com/BitGo/BitGoJS/commit/33c1a9c2d7051481f1afb993376a18d421170aa0))
88
+ - **sdk-coin-dot:** remove DOT console debug logging ([d4aad05](https://github.com/BitGo/BitGoJS/commit/d4aad0509a14bc0a89e8af7435353621044a1100))
89
+ - **sdk-coin-dot:** return ovc compatible format for dot sweep txns ([748f40c](https://github.com/BitGo/BitGoJS/commit/748f40c044fb047639b9e8a0ecab30c4692523b0))
90
+
91
+ # [3.4.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-dot@3.2.0...@bitgo/sdk-coin-dot@3.4.0) (2023-08-16)
92
+
93
+ ### Bug Fixes
94
+
95
+ - **sdk-coin-dot:** add logging to troublshoot DOT staking ([902558a](https://github.com/BitGo/BitGoJS/commit/902558a24c93ca8e7977bdbb370a24098aea775b))
96
+ - **sdk-coin-dot:** add logs to debug dot staking txn build failure ([eb929e3](https://github.com/BitGo/BitGoJS/commit/eb929e351a2330e820360c54541943ad67ba15eb))
97
+ - **sdk-coin-dot:** add more logs to debug Dot staking issue ([ccb9914](https://github.com/BitGo/BitGoJS/commit/ccb99143b7b1b875c7d81ebf3a90b966ab1cef8e))
98
+ - **sdk-coin-dot:** make controller optional for bond call ([a6f6a0d](https://github.com/BitGo/BitGoJS/commit/a6f6a0d96afdb663a7a096c4eb2caf9ca1649d63))
99
+
100
+ ### Features
101
+
102
+ - **sdk-coin-dot:** add logs to debug DOT staking issue ([33c1a9c](https://github.com/BitGo/BitGoJS/commit/33c1a9c2d7051481f1afb993376a18d421170aa0))
103
+ - **sdk-coin-dot:** remove DOT console debug logging ([d4aad05](https://github.com/BitGo/BitGoJS/commit/d4aad0509a14bc0a89e8af7435353621044a1100))
104
+
105
+ # [3.3.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-dot@3.2.0...@bitgo/sdk-coin-dot@3.3.0) (2023-08-16)
106
+
107
+ ### Bug Fixes
108
+
109
+ - **sdk-coin-dot:** add logging to troublshoot DOT staking ([902558a](https://github.com/BitGo/BitGoJS/commit/902558a24c93ca8e7977bdbb370a24098aea775b))
110
+ - **sdk-coin-dot:** add logs to debug dot staking txn build failure ([eb929e3](https://github.com/BitGo/BitGoJS/commit/eb929e351a2330e820360c54541943ad67ba15eb))
111
+ - **sdk-coin-dot:** add more logs to debug Dot staking issue ([ccb9914](https://github.com/BitGo/BitGoJS/commit/ccb99143b7b1b875c7d81ebf3a90b966ab1cef8e))
112
+ - **sdk-coin-dot:** make controller optional for bond call ([a6f6a0d](https://github.com/BitGo/BitGoJS/commit/a6f6a0d96afdb663a7a096c4eb2caf9ca1649d63))
113
+
114
+ ### Features
115
+
116
+ - **sdk-coin-dot:** add logs to debug DOT staking issue ([33c1a9c](https://github.com/BitGo/BitGoJS/commit/33c1a9c2d7051481f1afb993376a18d421170aa0))
117
+ - **sdk-coin-dot:** remove DOT console debug logging ([d4aad05](https://github.com/BitGo/BitGoJS/commit/d4aad0509a14bc0a89e8af7435353621044a1100))
118
+
119
+ # [3.2.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-dot@3.0.3...@bitgo/sdk-coin-dot@3.2.0) (2023-08-04)
120
+
121
+ ### Features
122
+
123
+ - **root:** add node 18 to engines and CI ([9cc6a70](https://github.com/BitGo/BitGoJS/commit/9cc6a70ba807161b7c6a0ebe3d7c47f25c7c8eca))
124
+ - **root:** remove node 14 from engines ([6ec47cb](https://github.com/BitGo/BitGoJS/commit/6ec47cbd7996cc78bbf2cf7f16595c24fe43cd41))
125
+
126
+ # [3.1.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-dot@3.0.3...@bitgo/sdk-coin-dot@3.1.0) (2023-07-28)
127
+
128
+ ### Features
129
+
130
+ - **root:** add node 18 to engines and CI ([9cc6a70](https://github.com/BitGo/BitGoJS/commit/9cc6a70ba807161b7c6a0ebe3d7c47f25c7c8eca))
131
+ - **root:** remove node 14 from engines ([6ec47cb](https://github.com/BitGo/BitGoJS/commit/6ec47cbd7996cc78bbf2cf7f16595c24fe43cd41))
132
+
133
+ ## [3.0.3](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-dot@3.0.2...@bitgo/sdk-coin-dot@3.0.3) (2023-07-18)
134
+
135
+ ### Bug Fixes
136
+
137
+ - **sdk-core:** fix uploading unsigned sweep tx for sol, dot and ada ([ea85586](https://github.com/BitGo/BitGoJS/commit/ea855868adb781cbfdc73e92a81f9540b0d75c3b))
138
+
139
+ ## [3.0.2](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-dot@3.0.1...@bitgo/sdk-coin-dot@3.0.2) (2023-06-21)
140
+
141
+ **Note:** Version bump only for package @bitgo/sdk-coin-dot
142
+
143
+ ## [3.0.1](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-dot@3.0.0...@bitgo/sdk-coin-dot@3.0.1) (2023-06-14)
144
+
145
+ **Note:** Version bump only for package @bitgo/sdk-coin-dot
146
+
147
+ # [3.0.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-dot@2.3.2...@bitgo/sdk-coin-dot@3.0.0) (2023-06-13)
148
+
149
+ ### chore
150
+
151
+ - **statics:** refactor metadatarpc out ([f64607d](https://github.com/BitGo/BitGoJS/commit/f64607d35084fd783a82d9254447a9ea84bc2c6e))
152
+
153
+ ### BREAKING CHANGES
154
+
155
+ - **statics:** metadatarpc no longer defined in statics
156
+
157
+ ## [2.3.2](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-dot@2.3.1...@bitgo/sdk-coin-dot@2.3.2) (2023-06-07)
158
+
159
+ **Note:** Version bump only for package @bitgo/sdk-coin-dot
160
+
161
+ ## [2.3.1](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-dot@2.3.0...@bitgo/sdk-coin-dot@2.3.1) (2023-06-05)
162
+
163
+ **Note:** Version bump only for package @bitgo/sdk-coin-dot
164
+
165
+ # [2.3.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-dot@2.2.10...@bitgo/sdk-coin-dot@2.3.0) (2023-05-25)
166
+
167
+ ### Features
168
+
169
+ - **root:** implement eddsa signing with commitment ([d67ac81](https://github.com/BitGo/BitGoJS/commit/d67ac81f5b77451de1e03eba3c93a9b0e11e7b7c))
170
+
171
+ ## [2.2.10](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-dot@2.2.9...@bitgo/sdk-coin-dot@2.2.10) (2023-05-17)
172
+
173
+ **Note:** Version bump only for package @bitgo/sdk-coin-dot
174
+
175
+ ## [2.2.9](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-dot@2.2.8...@bitgo/sdk-coin-dot@2.2.9) (2023-05-10)
176
+
177
+ **Note:** Version bump only for package @bitgo/sdk-coin-dot
178
+
179
+ ## [2.2.8](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-dot@2.2.7...@bitgo/sdk-coin-dot@2.2.8) (2023-05-03)
180
+
181
+ **Note:** Version bump only for package @bitgo/sdk-coin-dot
182
+
6
183
  ## [2.2.7](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-dot@2.2.6...@bitgo/sdk-coin-dot@2.2.7) (2023-04-25)
7
184
 
8
185
  **Note:** Version bump only for package @bitgo/sdk-coin-dot
package/dist/src/dot.d.ts CHANGED
@@ -1,9 +1,10 @@
1
1
  /// <reference types="node" />
2
- import { BaseCoin, BitGoBase, Eddsa, ExplanationResult, KeyPair, MPCAlgorithm, ParsedTransaction, ParseTransactionOptions, SignedTransaction, SignTransactionOptions as BaseSignTransactionOptions, UnsignedTransaction, VerifyAddressOptions, VerifyTransactionOptions } from '@bitgo-beta/sdk-core';
2
+ import { BaseCoin, BitGoBase, Eddsa, ExplanationResult, KeyPair, MPCAlgorithm, ParsedTransaction, ParseTransactionOptions, SignedTransaction, SignTransactionOptions as BaseSignTransactionOptions, UnsignedTransaction, VerifyAddressOptions, VerifyTransactionOptions, EDDSASignature, SignatureShareRecord } from '@bitgo-beta/sdk-core';
3
3
  import { BaseCoin as StaticsBaseCoin } from '@bitgo-beta/statics';
4
4
  import { Interface } from './lib';
5
5
  import { ApiPromise } from '@polkadot/api';
6
6
  import { Material } from './lib/iface';
7
+ export declare const DEFAULT_SCAN_FACTOR = 20;
7
8
  export interface SignTransactionOptions extends BaseSignTransactionOptions {
8
9
  txPrebuild: TransactionPrebuild;
9
10
  prv: string;
@@ -23,6 +24,32 @@ export interface VerifiedTransactionParameters {
23
24
  txHex: string;
24
25
  prv: string;
25
26
  }
27
+ interface SweepRecoveryOptions {
28
+ signatureShares: SignatureShares[];
29
+ }
30
+ interface SignatureShares {
31
+ txRequest: TxRequest;
32
+ tssVersion: string;
33
+ ovc: Ovc[];
34
+ }
35
+ interface TxRequest {
36
+ transactions: OvcTransaction[];
37
+ walletCoin: string;
38
+ }
39
+ interface OvcTransaction {
40
+ unsignedTx: DotTx;
41
+ signatureShares: SignatureShareRecord[];
42
+ signatureShare: SignatureShare;
43
+ }
44
+ interface SignatureShare {
45
+ from: string;
46
+ to: string;
47
+ share: string;
48
+ publicShare: string;
49
+ }
50
+ interface Ovc {
51
+ eddsaSignature: EDDSASignature;
52
+ }
26
53
  interface RecoveryOptions {
27
54
  userKey?: string;
28
55
  backupKey?: string;
@@ -30,12 +57,50 @@ interface RecoveryOptions {
30
57
  recoveryDestination: string;
31
58
  krsProvider?: string;
32
59
  walletPassphrase?: string;
60
+ seed?: string;
61
+ index?: number;
62
+ }
63
+ interface ConsolidationRecoveryOptions {
64
+ userKey?: string;
65
+ backupKey?: string;
66
+ bitgoKey: string;
67
+ walletPassphrase?: string;
33
68
  startingScanIndex?: number;
34
- scan?: number;
69
+ endingScanIndex?: number;
70
+ seed?: string;
35
71
  }
36
72
  interface DotTx {
37
73
  serializedTx: string;
38
74
  scanIndex: number;
75
+ coin?: string;
76
+ signableHex?: string;
77
+ derivationPath?: string;
78
+ parsedTx?: ParsedTransaction;
79
+ feeInfo?: {
80
+ fee: number;
81
+ feeString: string;
82
+ };
83
+ coinSpecific?: {
84
+ firstValid?: number;
85
+ maxDuration?: number;
86
+ commonKeychain?: string;
87
+ lastScanIndex?: number;
88
+ };
89
+ }
90
+ interface DotTxs {
91
+ transactions: DotTx[];
92
+ lastScanIndex: number;
93
+ }
94
+ interface DotUnsignedTx {
95
+ unsignedTx: DotTx;
96
+ signatureShares: [];
97
+ }
98
+ interface DotTxRequest {
99
+ walletCoin: string;
100
+ transactions: DotUnsignedTx[];
101
+ }
102
+ interface DotSweepTxs {
103
+ txRequests: DotTxRequest[];
39
104
  }
40
105
  export declare class Dot extends BaseCoin {
41
106
  protected readonly _staticsCoin: Readonly<StaticsBaseCoin>;
@@ -142,7 +207,26 @@ export declare class Dot extends BaseCoin {
142
207
  * @returns {DotTx} the serialized transaction hex string and index
143
208
  * of the address being swept
144
209
  */
145
- recover(params: RecoveryOptions): Promise<DotTx>;
210
+ recover(params: RecoveryOptions): Promise<DotTx | DotSweepTxs>;
211
+ /**
212
+ * Builds native DOT recoveries of receive addresses in batch without BitGo.
213
+ * Funds will be recovered to base address first. You need to initiate another sweep txn after that.
214
+ *
215
+ * @param {ConsolidationRecoveryOptions} params - options for consolidation recovery.
216
+ * @param {string} [params.startingScanIndex] - receive address index to start scanning from. default to 1 (inclusive).
217
+ * @param {string} [params.endingScanIndex] - receive address index to end scanning at. default to startingScanIndex + 20 (exclusive).
218
+ */
219
+ recoverConsolidations(params: ConsolidationRecoveryOptions): Promise<DotTxs | DotSweepTxs>;
220
+ /**
221
+ * Creates funds sweep recovery transaction(s) without BitGo
222
+ *
223
+ * @param {SweepRecoveryOptions} params parameters needed to combine the signatures
224
+ * and transactions to create broadcastable transactions
225
+ *
226
+ * @returns {DotTx[]} array of the serialized transaction hex strings and indices
227
+ * of the addresses being swept
228
+ */
229
+ createBroadcastableSweepTransaction(params: SweepRecoveryOptions): Promise<DotTxs>;
146
230
  parseTransaction(params: ParseTransactionOptions): Promise<ParsedTransaction>;
147
231
  isWalletAddress(params: VerifyAddressOptions): Promise<boolean>;
148
232
  verifyTransaction(params: VerifyTransactionOptions): Promise<boolean>;
@@ -1 +1 @@
1
- {"version":3,"file":"dot.d.ts","sourceRoot":"","sources":["../../src/dot.ts"],"names":[],"mappings":";AACA,OAAO,EACL,QAAQ,EACR,SAAS,EAET,KAAK,EAEL,iBAAiB,EACjB,OAAO,EAEP,YAAY,EACZ,iBAAiB,EACjB,uBAAuB,EACvB,iBAAiB,EACjB,sBAAsB,IAAI,0BAA0B,EACpD,mBAAmB,EACnB,oBAAoB,EACpB,wBAAwB,EAGzB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,QAAQ,IAAI,eAAe,EAA+B,MAAM,qBAAqB,CAAC;AAC/F,OAAO,EAAE,SAAS,EAAwE,MAAM,OAAO,CAAC;AACxG,OAAO,EAAE,UAAU,EAAc,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGvC,MAAM,WAAW,sBAAuB,SAAQ,0BAA0B;IACxE,UAAU,EAAE,mBAAmB,CAAC;IAChC,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,mBAAmB;IAClC,KAAK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