@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 as specified by the bitcoin transaction ID, optionally
172
+ * Returns current state of the withdrawal, optionally
173
173
  * only check withdrawals from the provided block height
174
174
  *
175
- * @param btcTxId
175
+ * @param withdrawalTx
176
176
  * @param scStartBlockheight
177
177
  */
178
- getWithdrawalState(btcTxId: string, scStartBlockheight?: number): Promise<SpvWithdrawalState>;
178
+ getWithdrawalState(withdrawalTx: WithdrawalTX, scStartBlockheight?: number): Promise<SpvWithdrawalState>;
179
179
  /**
180
- * Returns current state of the withdrawals as specified by the bitcoin transaction IDs, optionally
180
+ * Returns current state of the withdrawals, optionally
181
181
  * only check withdrawals from the provided block height
182
182
  *
183
- * @param btcTxIds
184
- * @param scStartBlockheight
183
+ * @param withdrawalTxs Object with the withdrawal tx to check + an optional start blockheight
185
184
  */
186
- getWithdrawalStates(btcTxIds: string[], scStartBlockheight?: number): Promise<{
185
+ getWithdrawalStates(withdrawalTxs: {
186
+ withdrawal: WithdrawalTX;
187
+ scStartBlockheight?: number;
188
+ }[]): Promise<{
187
189
  [btcTxId: string]: SpvWithdrawalState;
188
190
  }>;
189
191
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atomiqlabs/base",
3
- "version": "10.0.0-dev.19",
3
+ "version": "10.0.0-dev.20",
4
4
  "description": "Base classes and interfaces for atomiq protocol",
5
5
  "main": "./dist/index.js",
6
6
  "types:": "./dist/index.d.ts",
@@ -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 as specified by the bitcoin transaction ID, optionally
183
+ * Returns current state of the withdrawal, optionally
184
184
  * only check withdrawals from the provided block height
185
185
  *
186
- * @param btcTxId
186
+ * @param withdrawalTx
187
187
  * @param scStartBlockheight
188
188
  */
189
- getWithdrawalState(btcTxId: string, scStartBlockheight?: number): Promise<SpvWithdrawalState>;
189
+ getWithdrawalState(withdrawalTx: WithdrawalTX, scStartBlockheight?: number): Promise<SpvWithdrawalState>;
190
190
 
191
191
  /**
192
- * Returns current state of the withdrawals as specified by the bitcoin transaction IDs, optionally
192
+ * Returns current state of the withdrawals, optionally
193
193
  * only check withdrawals from the provided block height
194
194
  *
195
- * @param btcTxIds
196
- * @param scStartBlockheight
195
+ * @param withdrawalTxs Object with the withdrawal tx to check + an optional start blockheight
197
196
  */
198
- getWithdrawalStates(btcTxIds: string[], scStartBlockheight?: number): Promise<{[btcTxId: string]: SpvWithdrawalState}>;
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