@atomiqlabs/base 10.0.0-dev.19 → 10.0.0-dev.20
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.
|
@@ -169,21 +169,23 @@ export interface SpvVaultContract<TX = any, Signer extends AbstractSigner = Abst
|
|
|
169
169
|
*/
|
|
170
170
|
getAllVaults(owner?: string): Promise<Data[]>;
|
|
171
171
|
/**
|
|
172
|
-
* Returns current state of the withdrawal
|
|
172
|
+
* Returns current state of the withdrawal, optionally
|
|
173
173
|
* only check withdrawals from the provided block height
|
|
174
174
|
*
|
|
175
|
-
* @param
|
|
175
|
+
* @param withdrawalTx
|
|
176
176
|
* @param scStartBlockheight
|
|
177
177
|
*/
|
|
178
|
-
getWithdrawalState(
|
|
178
|
+
getWithdrawalState(withdrawalTx: WithdrawalTX, scStartBlockheight?: number): Promise<SpvWithdrawalState>;
|
|
179
179
|
/**
|
|
180
|
-
* Returns current state of the withdrawals
|
|
180
|
+
* Returns current state of the withdrawals, optionally
|
|
181
181
|
* only check withdrawals from the provided block height
|
|
182
182
|
*
|
|
183
|
-
* @param
|
|
184
|
-
* @param scStartBlockheight
|
|
183
|
+
* @param withdrawalTxs Object with the withdrawal tx to check + an optional start blockheight
|
|
185
184
|
*/
|
|
186
|
-
getWithdrawalStates(
|
|
185
|
+
getWithdrawalStates(withdrawalTxs: {
|
|
186
|
+
withdrawal: WithdrawalTX;
|
|
187
|
+
scStartBlockheight?: number;
|
|
188
|
+
}[]): Promise<{
|
|
187
189
|
[btcTxId: string]: SpvWithdrawalState;
|
|
188
190
|
}>;
|
|
189
191
|
/**
|
package/package.json
CHANGED
|
@@ -180,22 +180,21 @@ export interface SpvVaultContract<
|
|
|
180
180
|
getAllVaults(owner?: string): Promise<Data[]>;
|
|
181
181
|
|
|
182
182
|
/**
|
|
183
|
-
* Returns current state of the withdrawal
|
|
183
|
+
* Returns current state of the withdrawal, optionally
|
|
184
184
|
* only check withdrawals from the provided block height
|
|
185
185
|
*
|
|
186
|
-
* @param
|
|
186
|
+
* @param withdrawalTx
|
|
187
187
|
* @param scStartBlockheight
|
|
188
188
|
*/
|
|
189
|
-
getWithdrawalState(
|
|
189
|
+
getWithdrawalState(withdrawalTx: WithdrawalTX, scStartBlockheight?: number): Promise<SpvWithdrawalState>;
|
|
190
190
|
|
|
191
191
|
/**
|
|
192
|
-
* Returns current state of the withdrawals
|
|
192
|
+
* Returns current state of the withdrawals, optionally
|
|
193
193
|
* only check withdrawals from the provided block height
|
|
194
194
|
*
|
|
195
|
-
* @param
|
|
196
|
-
* @param scStartBlockheight
|
|
195
|
+
* @param withdrawalTxs Object with the withdrawal tx to check + an optional start blockheight
|
|
197
196
|
*/
|
|
198
|
-
getWithdrawalStates(
|
|
197
|
+
getWithdrawalStates(withdrawalTxs: {withdrawal: WithdrawalTX, scStartBlockheight?: number}[]): Promise<{[btcTxId: string]: SpvWithdrawalState}>;
|
|
199
198
|
|
|
200
199
|
/**
|
|
201
200
|
* Parses withdrawal data from the parsed bitcoin transaction
|