@lendasat/lendaswap-sdk 0.1.6 → 0.1.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lendasat/lendaswap-sdk",
3
- "version": "0.1.6",
3
+ "version": "0.1.8",
4
4
  "description": "Lendaswap Client SDK for TypeScript/JavaScript",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -199,6 +199,10 @@ export class EstimateVtxoSwapResponse {
199
199
  * Number of VTXOs being refreshed
200
200
  */
201
201
  vtxoCount: number;
202
+ /**
203
+ * Expected expiry timestamp (Unix) of the resulting VTXOs
204
+ */
205
+ expectedVtxoExpiry: bigint;
202
206
  }
203
207
  export class IntoUnderlyingByteSource {
204
208
  private constructor();
@@ -901,6 +901,21 @@ export class EstimateVtxoSwapResponse {
901
901
  set vtxoCount(arg0) {
902
902
  wasm.__wbg_set_estimatevtxoswapresponse_vtxoCount(this.__wbg_ptr, arg0);
903
903
  }
904
+ /**
905
+ * Expected expiry timestamp (Unix) of the resulting VTXOs
906
+ * @returns {bigint}
907
+ */
908
+ get expectedVtxoExpiry() {
909
+ const ret = wasm.__wbg_get_estimatevtxoswapresponse_expectedVtxoExpiry(this.__wbg_ptr);
910
+ return ret;
911
+ }
912
+ /**
913
+ * Expected expiry timestamp (Unix) of the resulting VTXOs
914
+ * @param {bigint} arg0
915
+ */
916
+ set expectedVtxoExpiry(arg0) {
917
+ wasm.__wbg_set_estimatevtxoswapresponse_expectedVtxoExpiry(this.__wbg_ptr, arg0);
918
+ }
904
919
  }
905
920
  if (Symbol.dispose) EstimateVtxoSwapResponse.prototype[Symbol.dispose] = EstimateVtxoSwapResponse.prototype.free;
906
921
 
@@ -1243,14 +1258,14 @@ export class QuoteResponse {
1243
1258
  * @returns {bigint}
1244
1259
  */
1245
1260
  get minAmount() {
1246
- const ret = wasm.__wbg_get_quoteresponse_minAmount(this.__wbg_ptr);
1261
+ const ret = wasm.__wbg_get_estimatevtxoswapresponse_expectedVtxoExpiry(this.__wbg_ptr);
1247
1262
  return BigInt.asUintN(64, ret);
1248
1263
  }
1249
1264
  /**
1250
1265
  * @param {bigint} arg0
1251
1266
  */
1252
1267
  set minAmount(arg0) {
1253
- wasm.__wbg_set_quoteresponse_minAmount(this.__wbg_ptr, arg0);
1268
+ wasm.__wbg_set_estimatevtxoswapresponse_expectedVtxoExpiry(this.__wbg_ptr, arg0);
1254
1269
  }
1255
1270
  /**
1256
1271
  * @returns {bigint}
@@ -1966,7 +1981,7 @@ export class VtxoSwapResponse {
1966
1981
  * @returns {bigint}
1967
1982
  */
1968
1983
  get clientUnilateralRefundDelay() {
1969
- const ret = wasm.__wbg_get_quoteresponse_minAmount(this.__wbg_ptr);
1984
+ const ret = wasm.__wbg_get_estimatevtxoswapresponse_expectedVtxoExpiry(this.__wbg_ptr);
1970
1985
  return ret;
1971
1986
  }
1972
1987
  /**
@@ -1974,7 +1989,7 @@ export class VtxoSwapResponse {
1974
1989
  * @param {bigint} arg0
1975
1990
  */
1976
1991
  set clientUnilateralRefundDelay(arg0) {
1977
- wasm.__wbg_set_quoteresponse_minAmount(this.__wbg_ptr, arg0);
1992
+ wasm.__wbg_set_estimatevtxoswapresponse_expectedVtxoExpiry(this.__wbg_ptr, arg0);
1978
1993
  }
1979
1994
  /**
1980
1995
  * Client refund without receiver delay in seconds
Binary file
@@ -22,8 +22,6 @@ export const __wbg_get_quoteresponse_exchangeRate: (a: number) => [number, numbe
22
22
  export const __wbg_set_quoteresponse_exchangeRate: (a: number, b: number, c: number) => void;
23
23
  export const __wbg_get_quoteresponse_protocolFeeRate: (a: number) => number;
24
24
  export const __wbg_set_quoteresponse_protocolFeeRate: (a: number, b: number) => void;
25
- export const __wbg_get_quoteresponse_minAmount: (a: number) => bigint;
26
- export const __wbg_set_quoteresponse_minAmount: (a: number, b: bigint) => void;
27
25
  export const __wbg_get_quoteresponse_maxAmount: (a: number) => bigint;
28
26
  export const __wbg_set_quoteresponse_maxAmount: (a: number, b: bigint) => void;
29
27
  export const __wbg_estimatevtxoswapresponse_free: (a: number, b: number) => void;
@@ -35,6 +33,8 @@ export const __wbg_get_estimatevtxoswapresponse_outputSats: (a: number) => bigin
35
33
  export const __wbg_set_estimatevtxoswapresponse_outputSats: (a: number, b: bigint) => void;
36
34
  export const __wbg_get_estimatevtxoswapresponse_vtxoCount: (a: number) => number;
37
35
  export const __wbg_set_estimatevtxoswapresponse_vtxoCount: (a: number, b: number) => void;
36
+ export const __wbg_get_estimatevtxoswapresponse_expectedVtxoExpiry: (a: number) => bigint;
37
+ export const __wbg_set_estimatevtxoswapresponse_expectedVtxoExpiry: (a: number, b: bigint) => void;
38
38
  export const __wbg_vtxoswapresponse_free: (a: number, b: number) => void;
39
39
  export const __wbg_get_vtxoswapresponse_id: (a: number) => [number, number];
40
40
  export const __wbg_set_vtxoswapresponse_id: (a: number, b: number, c: number) => void;
@@ -101,6 +101,7 @@ export const client_claimVtxoSwap: (a: number, b: number, c: number, d: number,
101
101
  export const client_refundVtxoSwap: (a: number, b: number, c: number, d: number, e: number) => any;
102
102
  export const __wbg_set_quoteresponse_networkFee: (a: number, b: bigint) => void;
103
103
  export const __wbg_set_quoteresponse_protocolFee: (a: number, b: bigint) => void;
104
+ export const __wbg_set_quoteresponse_minAmount: (a: number, b: bigint) => void;
104
105
  export const __wbg_set_vtxoswapresponse_clientFundAmountSats: (a: number, b: bigint) => void;
105
106
  export const __wbg_set_vtxoswapresponse_clientLocktime: (a: number, b: bigint) => void;
106
107
  export const __wbg_set_vtxoswapresponse_clientUnilateralClaimDelay: (a: number, b: bigint) => void;
@@ -108,6 +109,7 @@ export const __wbg_set_vtxoswapresponse_clientUnilateralRefundDelay: (a: number,
108
109
  export const __wbg_set_vtxoswapresponse_clientUnilateralRefundWithoutReceiverDelay: (a: number, b: bigint) => void;
109
110
  export const __wbg_get_quoteresponse_networkFee: (a: number) => bigint;
110
111
  export const __wbg_get_quoteresponse_protocolFee: (a: number) => bigint;
112
+ export const __wbg_get_quoteresponse_minAmount: (a: number) => bigint;
111
113
  export const __wbg_get_vtxoswapresponse_clientFundAmountSats: (a: number) => bigint;
112
114
  export const __wbg_get_vtxoswapresponse_clientLocktime: (a: number) => bigint;
113
115
  export const __wbg_get_vtxoswapresponse_clientUnilateralClaimDelay: (a: number) => bigint;