@atomiqlabs/base 12.0.2 → 12.0.4
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.
|
@@ -210,7 +210,14 @@ export interface SwapContract<T extends SwapData = SwapData, TX = any, PreFetchD
|
|
|
210
210
|
getHistoricalSwaps?(signer: string, startBlockheight?: number): Promise<{
|
|
211
211
|
swaps: {
|
|
212
212
|
[escrowHash: string]: {
|
|
213
|
-
|
|
213
|
+
init?: {
|
|
214
|
+
data: T;
|
|
215
|
+
getInitTxId: () => Promise<string>;
|
|
216
|
+
getTxBlock: () => Promise<{
|
|
217
|
+
blockTime: number;
|
|
218
|
+
blockHeight: number;
|
|
219
|
+
}>;
|
|
220
|
+
};
|
|
214
221
|
state: SwapCommitState;
|
|
215
222
|
};
|
|
216
223
|
};
|
package/dist/swaps/SwapData.d.ts
CHANGED
|
@@ -26,6 +26,7 @@ export declare abstract class SwapData implements StorageObject {
|
|
|
26
26
|
abstract getConfirmationsHint(): number;
|
|
27
27
|
abstract getNonceHint(): bigint;
|
|
28
28
|
abstract getTxoHashHint(): string;
|
|
29
|
+
getHTLCHashHint(): string;
|
|
29
30
|
abstract setExtraData(extraData: string): void;
|
|
30
31
|
abstract getSecurityDeposit(): bigint;
|
|
31
32
|
abstract getClaimerBounty(): bigint;
|
package/dist/swaps/SwapData.js
CHANGED
package/package.json
CHANGED
|
@@ -252,7 +252,19 @@ export interface SwapContract<
|
|
|
252
252
|
* @param startBlockheight
|
|
253
253
|
*/
|
|
254
254
|
getHistoricalSwaps?(signer: string, startBlockheight?: number): Promise<{
|
|
255
|
-
swaps: {
|
|
255
|
+
swaps: {
|
|
256
|
+
[escrowHash: string]: {
|
|
257
|
+
init?: {
|
|
258
|
+
data: T,
|
|
259
|
+
getInitTxId: () => Promise<string>,
|
|
260
|
+
getTxBlock: () => Promise<{
|
|
261
|
+
blockTime: number,
|
|
262
|
+
blockHeight: number
|
|
263
|
+
}>
|
|
264
|
+
},
|
|
265
|
+
state: SwapCommitState
|
|
266
|
+
}
|
|
267
|
+
},
|
|
256
268
|
latestBlockheight: number
|
|
257
269
|
}>;
|
|
258
270
|
|
package/src/swaps/SwapData.ts
CHANGED
|
@@ -48,6 +48,9 @@ export abstract class SwapData implements StorageObject {
|
|
|
48
48
|
abstract getConfirmationsHint(): number;
|
|
49
49
|
abstract getNonceHint(): bigint;
|
|
50
50
|
abstract getTxoHashHint(): string;
|
|
51
|
+
getHTLCHashHint(): string {
|
|
52
|
+
return null;
|
|
53
|
+
}
|
|
51
54
|
abstract setExtraData(extraData: string): void;
|
|
52
55
|
|
|
53
56
|
abstract getSecurityDeposit(): bigint;
|