lwk_node 0.11.0 → 0.11.1

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/lwk_wasm.d.ts CHANGED
@@ -72,7 +72,7 @@ export class Amp0 {
72
72
  /**
73
73
  * Create a new AMP0 context for testnet
74
74
  */
75
- static netTestnet(username: string, password: string, amp_id: string): Promise<Amp0>;
75
+ static newTestnet(username: string, password: string, amp_id: string): Promise<Amp0>;
76
76
  /**
77
77
  * Create a new AMP0 context for mainnet
78
78
  */
@@ -126,8 +126,8 @@ export class Amp0Pset {
126
126
  export class Amp2 {
127
127
  private constructor();
128
128
  free(): void;
129
- static new_testnet(): Amp2;
130
- descriptor_from_str(keyorigin_xpub: string): Amp2Descriptor;
129
+ static newTestnet(): Amp2;
130
+ descriptorFromStr(keyorigin_xpub: string): Amp2Descriptor;
131
131
  register(desc: Amp2Descriptor): Promise<string>;
132
132
  cosign(pset: Pset): Promise<Pset>;
133
133
  }
@@ -226,7 +226,7 @@ export class EsploraClient {
226
226
  fullScanToIndex(wollet: Wollet, index: number): Promise<Update | undefined>;
227
227
  broadcastTx(tx: Transaction): Promise<Txid>;
228
228
  broadcast(pset: Pset): Promise<Txid>;
229
- set_waterfalls_server_recipient(recipient: string): Promise<void>;
229
+ setWaterfallsServerRecipient(recipient: string): Promise<void>;
230
230
  }
231
231
  /**
232
232
  * PSET details from a perspective of a wallet, wrapper of [`lwk_common::Issuance`]
@@ -477,11 +477,11 @@ export class PsetInput {
477
477
  /**
478
478
  * Prevout TXID of the input
479
479
  */
480
- previous_txid(): Txid;
480
+ previousTxid(): Txid;
481
481
  /**
482
482
  * Prevout vout of the input
483
483
  */
484
- previous_vout(): number;
484
+ previousVout(): number;
485
485
  /**
486
486
  * If the input has an issuance, the asset id
487
487
  */
@@ -497,7 +497,7 @@ export class PsetInput {
497
497
  export class PsetOutput {
498
498
  private constructor();
499
499
  free(): void;
500
- script_pubkey(): Script;
500
+ scriptPubkey(): Script;
501
501
  }
502
502
  /**
503
503
  * PSET details from a perspective of a wallet, wrapper of [`lwk_common::PsetSignatures`]
@@ -723,8 +723,8 @@ export class UnvalidatedLiquidexProposal {
723
723
  private constructor();
724
724
  free(): void;
725
725
  static new(s: string): UnvalidatedLiquidexProposal;
726
- static from_pset(pset: Pset): UnvalidatedLiquidexProposal;
727
- insecure_validate(): ValidatedLiquidexProposal;
726
+ static fromPset(pset: Pset): UnvalidatedLiquidexProposal;
727
+ insecureValidate(): ValidatedLiquidexProposal;
728
728
  validate(tx: Transaction): ValidatedLiquidexProposal;
729
729
  toString(): string;
730
730
  }
package/lwk_wasm.js CHANGED
@@ -563,14 +563,14 @@ class Amp0 {
563
563
  * @param {string} amp_id
564
564
  * @returns {Promise<Amp0>}
565
565
  */
566
- static netTestnet(username, password, amp_id) {
566
+ static newTestnet(username, password, amp_id) {
567
567
  const ptr0 = passStringToWasm0(username, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
568
568
  const len0 = WASM_VECTOR_LEN;
569
569
  const ptr1 = passStringToWasm0(password, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
570
570
  const len1 = WASM_VECTOR_LEN;
571
571
  const ptr2 = passStringToWasm0(amp_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
572
572
  const len2 = WASM_VECTOR_LEN;
573
- const ret = wasm.amp0_netTestnet(ptr0, len0, ptr1, len1, ptr2, len2);
573
+ const ret = wasm.amp0_newTestnet(ptr0, len0, ptr1, len1, ptr2, len2);
574
574
  return ret;
575
575
  }
576
576
  /**
@@ -747,18 +747,18 @@ class Amp2 {
747
747
  /**
748
748
  * @returns {Amp2}
749
749
  */
750
- static new_testnet() {
751
- const ret = wasm.amp2_new_testnet();
750
+ static newTestnet() {
751
+ const ret = wasm.amp2_newTestnet();
752
752
  return Amp2.__wrap(ret);
753
753
  }
754
754
  /**
755
755
  * @param {string} keyorigin_xpub
756
756
  * @returns {Amp2Descriptor}
757
757
  */
758
- descriptor_from_str(keyorigin_xpub) {
758
+ descriptorFromStr(keyorigin_xpub) {
759
759
  const ptr0 = passStringToWasm0(keyorigin_xpub, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
760
760
  const len0 = WASM_VECTOR_LEN;
761
- const ret = wasm.amp2_descriptor_from_str(this.__wbg_ptr, ptr0, len0);
761
+ const ret = wasm.amp2_descriptorFromStr(this.__wbg_ptr, ptr0, len0);
762
762
  if (ret[2]) {
763
763
  throw takeFromExternrefTable0(ret[1]);
764
764
  }
@@ -1291,10 +1291,10 @@ class EsploraClient {
1291
1291
  * @param {string} recipient
1292
1292
  * @returns {Promise<void>}
1293
1293
  */
1294
- set_waterfalls_server_recipient(recipient) {
1294
+ setWaterfallsServerRecipient(recipient) {
1295
1295
  const ptr0 = passStringToWasm0(recipient, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1296
1296
  const len0 = WASM_VECTOR_LEN;
1297
- const ret = wasm.esploraclient_set_waterfalls_server_recipient(this.__wbg_ptr, ptr0, len0);
1297
+ const ret = wasm.esploraclient_setWaterfallsServerRecipient(this.__wbg_ptr, ptr0, len0);
1298
1298
  return ret;
1299
1299
  }
1300
1300
  }
@@ -2422,16 +2422,16 @@ class PsetInput {
2422
2422
  * Prevout TXID of the input
2423
2423
  * @returns {Txid}
2424
2424
  */
2425
- previous_txid() {
2426
- const ret = wasm.psetinput_previous_txid(this.__wbg_ptr);
2425
+ previousTxid() {
2426
+ const ret = wasm.psetinput_previousTxid(this.__wbg_ptr);
2427
2427
  return Txid.__wrap(ret);
2428
2428
  }
2429
2429
  /**
2430
2430
  * Prevout vout of the input
2431
2431
  * @returns {number}
2432
2432
  */
2433
- previous_vout() {
2434
- const ret = wasm.psetinput_previous_vout(this.__wbg_ptr);
2433
+ previousVout() {
2434
+ const ret = wasm.psetinput_previousVout(this.__wbg_ptr);
2435
2435
  return ret >>> 0;
2436
2436
  }
2437
2437
  /**
@@ -2483,8 +2483,8 @@ class PsetOutput {
2483
2483
  /**
2484
2484
  * @returns {Script}
2485
2485
  */
2486
- script_pubkey() {
2487
- const ret = wasm.psetoutput_script_pubkey(this.__wbg_ptr);
2486
+ scriptPubkey() {
2487
+ const ret = wasm.psetoutput_scriptPubkey(this.__wbg_ptr);
2488
2488
  return Script.__wrap(ret);
2489
2489
  }
2490
2490
  }
@@ -3746,10 +3746,10 @@ class UnvalidatedLiquidexProposal {
3746
3746
  * @param {Pset} pset
3747
3747
  * @returns {UnvalidatedLiquidexProposal}
3748
3748
  */
3749
- static from_pset(pset) {
3749
+ static fromPset(pset) {
3750
3750
  _assertClass(pset, Pset);
3751
3751
  var ptr0 = pset.__destroy_into_raw();
3752
- const ret = wasm.unvalidatedliquidexproposal_from_pset(ptr0);
3752
+ const ret = wasm.unvalidatedliquidexproposal_fromPset(ptr0);
3753
3753
  if (ret[2]) {
3754
3754
  throw takeFromExternrefTable0(ret[1]);
3755
3755
  }
@@ -3758,9 +3758,9 @@ class UnvalidatedLiquidexProposal {
3758
3758
  /**
3759
3759
  * @returns {ValidatedLiquidexProposal}
3760
3760
  */
3761
- insecure_validate() {
3761
+ insecureValidate() {
3762
3762
  const ptr = this.__destroy_into_raw();
3763
- const ret = wasm.unvalidatedliquidexproposal_insecure_validate(ptr);
3763
+ const ret = wasm.unvalidatedliquidexproposal_insecureValidate(ptr);
3764
3764
  if (ret[2]) {
3765
3765
  throw takeFromExternrefTable0(ret[1]);
3766
3766
  }
@@ -4821,7 +4821,7 @@ module.exports.__wbg_length_e2d2a49132c1b256 = function(arg0) {
4821
4821
  return ret;
4822
4822
  };
4823
4823
 
4824
- module.exports.__wbg_log_1c0673da475f4734 = function(arg0, arg1) {
4824
+ module.exports.__wbg_log_71e6f1450d737bd8 = function(arg0, arg1) {
4825
4825
  console.log(getStringFromWasm0(arg0, arg1));
4826
4826
  };
4827
4827
 
@@ -5302,18 +5302,18 @@ module.exports.__wbindgen_closure_wrapper12419 = function(arg0, arg1, arg2) {
5302
5302
  return ret;
5303
5303
  };
5304
5304
 
5305
- module.exports.__wbindgen_closure_wrapper4731 = function(arg0, arg1, arg2) {
5305
+ module.exports.__wbindgen_closure_wrapper4732 = function(arg0, arg1, arg2) {
5306
5306
  const ret = makeMutClosure(arg0, arg1, 452, __wbg_adapter_36);
5307
5307
  return ret;
5308
5308
  };
5309
5309
 
5310
- module.exports.__wbindgen_closure_wrapper4733 = function(arg0, arg1, arg2) {
5310
+ module.exports.__wbindgen_closure_wrapper4734 = function(arg0, arg1, arg2) {
5311
5311
  const ret = makeMutClosure(arg0, arg1, 453, __wbg_adapter_36);
5312
5312
  return ret;
5313
5313
  };
5314
5314
 
5315
- module.exports.__wbindgen_closure_wrapper4735 = function(arg0, arg1, arg2) {
5316
- const ret = makeMutClosure(arg0, arg1, 452, __wbg_adapter_36);
5315
+ module.exports.__wbindgen_closure_wrapper4736 = function(arg0, arg1, arg2) {
5316
+ const ret = makeMutClosure(arg0, arg1, 453, __wbg_adapter_36);
5317
5317
  return ret;
5318
5318
  };
5319
5319
 
package/lwk_wasm_bg.wasm CHANGED
Binary file
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "lwk_node",
3
3
  "description": "Liquid Wallet Kit - WASM",
4
- "version": "0.11.0",
4
+ "version": "0.11.1",
5
5
  "license": "MIT OR BSD-2-Clause",
6
6
  "files": [
7
7
  "lwk_wasm_bg.wasm",