@arkade-os/boltz-swap 0.2.18 → 0.2.19
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/dist/index.cjs +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -180,7 +180,7 @@ var isSubmarineSwapRefundable = (swap) => {
|
|
|
180
180
|
return isSubmarineRefundableStatus(swap.status) && isPendingSubmarineSwap(swap) && swap.refundable !== false && swap.refunded !== true;
|
|
181
181
|
};
|
|
182
182
|
var isGetReverseSwapTxIdResponse = (data) => {
|
|
183
|
-
return data && typeof data === "object" && typeof data.id === "string" && typeof data.
|
|
183
|
+
return data && typeof data === "object" && typeof data.id === "string" && typeof data.timeoutBlockHeight === "number";
|
|
184
184
|
};
|
|
185
185
|
var isGetSwapStatusResponse = (data) => {
|
|
186
186
|
return data && typeof data === "object" && typeof data.status === "string" && (data.zeroConfRejected === void 0 || typeof data.zeroConfRejected === "boolean") && (data.transaction === void 0 || data.transaction && typeof data.transaction === "object" && typeof data.transaction.id === "string" && (data.transaction.eta === void 0 || typeof data.transaction.eta === "number") && (data.transaction.hex === void 0 || typeof data.transaction.hex === "string") && (data.transaction.preimage === void 0 || typeof data.transaction.preimage === "string"));
|
package/dist/index.d.cts
CHANGED
|
@@ -17,7 +17,7 @@ declare const isSubmarineRefundableStatus: (status: BoltzSwapStatus) => boolean;
|
|
|
17
17
|
declare const isSubmarineSwapRefundable: (swap: PendingSubmarineSwap | PendingReverseSwap) => swap is PendingSubmarineSwap;
|
|
18
18
|
type GetReverseSwapTxIdResponse = {
|
|
19
19
|
id: string;
|
|
20
|
-
hex
|
|
20
|
+
hex?: string;
|
|
21
21
|
timeoutBlockHeight: number;
|
|
22
22
|
};
|
|
23
23
|
type GetSwapStatusResponse = {
|
package/dist/index.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ declare const isSubmarineRefundableStatus: (status: BoltzSwapStatus) => boolean;
|
|
|
17
17
|
declare const isSubmarineSwapRefundable: (swap: PendingSubmarineSwap | PendingReverseSwap) => swap is PendingSubmarineSwap;
|
|
18
18
|
type GetReverseSwapTxIdResponse = {
|
|
19
19
|
id: string;
|
|
20
|
-
hex
|
|
20
|
+
hex?: string;
|
|
21
21
|
timeoutBlockHeight: number;
|
|
22
22
|
};
|
|
23
23
|
type GetSwapStatusResponse = {
|
package/dist/index.js
CHANGED
|
@@ -131,7 +131,7 @@ var isSubmarineSwapRefundable = (swap) => {
|
|
|
131
131
|
return isSubmarineRefundableStatus(swap.status) && isPendingSubmarineSwap(swap) && swap.refundable !== false && swap.refunded !== true;
|
|
132
132
|
};
|
|
133
133
|
var isGetReverseSwapTxIdResponse = (data) => {
|
|
134
|
-
return data && typeof data === "object" && typeof data.id === "string" && typeof data.
|
|
134
|
+
return data && typeof data === "object" && typeof data.id === "string" && typeof data.timeoutBlockHeight === "number";
|
|
135
135
|
};
|
|
136
136
|
var isGetSwapStatusResponse = (data) => {
|
|
137
137
|
return data && typeof data === "object" && typeof data.status === "string" && (data.zeroConfRejected === void 0 || typeof data.zeroConfRejected === "boolean") && (data.transaction === void 0 || data.transaction && typeof data.transaction === "object" && typeof data.transaction.id === "string" && (data.transaction.eta === void 0 || typeof data.transaction.eta === "number") && (data.transaction.hex === void 0 || typeof data.transaction.hex === "string") && (data.transaction.preimage === void 0 || typeof data.transaction.preimage === "string"));
|