@atomiqlabs/base 13.1.8 → 13.1.9

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.
@@ -36,6 +36,11 @@ type SpvWithdrawalStateCommon = {
36
36
  txId: string;
37
37
  owner: string;
38
38
  vaultId: bigint;
39
+ btcTxId?: string;
40
+ getTxBlock?: () => Promise<{
41
+ blockHeight: number;
42
+ blockTime: number;
43
+ }>;
39
44
  };
40
45
  /**
41
46
  * The withdrawal was successfully processed on the smart chain side
@@ -47,11 +52,6 @@ export type SpvWithdrawalClaimedState = {
47
52
  recipient: string;
48
53
  claimer: string;
49
54
  fronter: string;
50
- getClaimTxId?: () => Promise<string>;
51
- getTxBlock?: () => Promise<{
52
- blockHeight: number;
53
- blockTime: number;
54
- }>;
55
55
  } & SpvWithdrawalStateCommon;
56
56
  /**
57
57
  * The withdrawal has been fronted by some 3rd party
@@ -62,11 +62,6 @@ export type SpvWithdrawalFrontedState = {
62
62
  type: SpvWithdrawalStateType.FRONTED;
63
63
  recipient: string;
64
64
  fronter: string;
65
- getFrontTxId?: () => Promise<string>;
66
- getTxBlock?: () => Promise<{
67
- blockHeight: number;
68
- blockTime: number;
69
- }>;
70
65
  } & SpvWithdrawalStateCommon;
71
66
  /**
72
67
  * An SPV vault (UTXO-controlled vault), has been closed as a result of the claim (withdrawal) transaction,
@@ -77,11 +72,6 @@ export type SpvWithdrawalFrontedState = {
77
72
  export type SpvWithdrawalClosedState = {
78
73
  type: SpvWithdrawalStateType.CLOSED;
79
74
  error: string;
80
- getClosedTxId?: () => Promise<string>;
81
- getTxBlock?: () => Promise<{
82
- blockHeight: number;
83
- blockTime: number;
84
- }>;
85
75
  } & SpvWithdrawalStateCommon;
86
76
  /**
87
77
  * A union type for the state of the spv vault claim (withdrawal)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atomiqlabs/base",
3
- "version": "13.1.8",
3
+ "version": "13.1.9",
4
4
  "description": "Base classes and interfaces for atomiq protocol",
5
5
  "main": "./dist/index.js",
6
6
  "types:": "./dist/index.d.ts",
@@ -38,6 +38,8 @@ type SpvWithdrawalStateCommon = {
38
38
  txId: string,
39
39
  owner: string,
40
40
  vaultId: bigint,
41
+ btcTxId?: string,
42
+ getTxBlock?: () => Promise<{blockHeight: number, blockTime: number}>
41
43
  };
42
44
 
43
45
  /**
@@ -49,9 +51,7 @@ export type SpvWithdrawalClaimedState = {
49
51
  type: SpvWithdrawalStateType.CLAIMED,
50
52
  recipient: string,
51
53
  claimer: string,
52
- fronter: string,
53
- getClaimTxId?: () => Promise<string>,
54
- getTxBlock?: () => Promise<{blockHeight: number, blockTime: number}>
54
+ fronter: string
55
55
  } & SpvWithdrawalStateCommon;
56
56
 
57
57
  /**
@@ -62,9 +62,7 @@ export type SpvWithdrawalClaimedState = {
62
62
  export type SpvWithdrawalFrontedState = {
63
63
  type: SpvWithdrawalStateType.FRONTED,
64
64
  recipient: string,
65
- fronter: string,
66
- getFrontTxId?: () => Promise<string>,
67
- getTxBlock?: () => Promise<{blockHeight: number, blockTime: number}>
65
+ fronter: string
68
66
  } & SpvWithdrawalStateCommon;
69
67
 
70
68
  /**
@@ -75,9 +73,7 @@ export type SpvWithdrawalFrontedState = {
75
73
  */
76
74
  export type SpvWithdrawalClosedState = {
77
75
  type: SpvWithdrawalStateType.CLOSED,
78
- error: string,
79
- getClosedTxId?: () => Promise<string>,
80
- getTxBlock?: () => Promise<{blockHeight: number, blockTime: number}>
76
+ error: string
81
77
  } & SpvWithdrawalStateCommon;
82
78
 
83
79
  /**