@breeztech/breez-sdk-spark 0.5.1 → 0.6.0-rc1

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.
@@ -217,20 +217,20 @@ export function initLogging(logger, filter) {
217
217
  }
218
218
 
219
219
  /**
220
- * @param {ConnectRequest} request
221
- * @returns {Promise<BreezSdk>}
220
+ * @param {Network} network
221
+ * @returns {Config}
222
222
  */
223
- export function connect(request) {
224
- const ret = wasm.connect(request);
223
+ export function defaultConfig(network) {
224
+ const ret = wasm.defaultConfig(network);
225
225
  return ret;
226
226
  }
227
227
 
228
228
  /**
229
- * @param {Network} network
230
- * @returns {Config}
229
+ * @param {ConnectRequest} request
230
+ * @returns {Promise<BreezSdk>}
231
231
  */
232
- export function defaultConfig(network) {
233
- const ret = wasm.defaultConfig(network);
232
+ export function connect(request) {
233
+ const ret = wasm.connect(request);
234
234
  return ret;
235
235
  }
236
236
 
@@ -251,15 +251,15 @@ export function task_worker_entry_point(ptr) {
251
251
  }
252
252
 
253
253
  function __wbg_adapter_58(arg0, arg1) {
254
- wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hbac93e35ba6a14f4(arg0, arg1);
254
+ wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hd4a74686750ed5d4(arg0, arg1);
255
255
  }
256
256
 
257
257
  function __wbg_adapter_61(arg0, arg1, arg2) {
258
- wasm.closure937_externref_shim(arg0, arg1, arg2);
258
+ wasm.closure979_externref_shim(arg0, arg1, arg2);
259
259
  }
260
260
 
261
- function __wbg_adapter_225(arg0, arg1, arg2, arg3) {
262
- wasm.closure538_externref_shim(arg0, arg1, arg2, arg3);
261
+ function __wbg_adapter_227(arg0, arg1, arg2, arg3) {
262
+ wasm.closure561_externref_shim(arg0, arg1, arg2, arg3);
263
263
  }
264
264
 
265
265
  const __wbindgen_enum_ReadableStreamType = ["bytes"];
@@ -1337,7 +1337,7 @@ const imports = {
1337
1337
  const a = state0.a;
1338
1338
  state0.a = 0;
1339
1339
  try {
1340
- return __wbg_adapter_225(a, state0.b, arg0, arg1);
1340
+ return __wbg_adapter_227(a, state0.b, arg0, arg1);
1341
1341
  } finally {
1342
1342
  state0.a = a;
1343
1343
  }
@@ -1496,6 +1496,12 @@ const imports = {
1496
1496
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
1497
1497
  }
1498
1498
  }, arguments) },
1499
+ __wbg_setLnurlMetadata_0bf15cc7efb6cc11: function() { return handleError(function (arg0, arg1, arg2) {
1500
+ var v0 = getArrayJsValueFromWasm0(arg1, arg2).slice();
1501
+ wasm.__wbindgen_free(arg1, arg2 * 4, 4);
1502
+ const ret = arg0.setLnurlMetadata(v0);
1503
+ return ret;
1504
+ }, arguments) },
1499
1505
  __wbg_setPaymentMetadata_0bbf82aa72b85deb: function() { return handleError(function (arg0, arg1, arg2, arg3) {
1500
1506
  let deferred0_0;
1501
1507
  let deferred0_1;
@@ -1722,12 +1728,12 @@ const imports = {
1722
1728
  const ret = false;
1723
1729
  return ret;
1724
1730
  },
1725
- __wbindgen_closure_wrapper11446: function(arg0, arg1, arg2) {
1726
- const ret = makeMutClosure(arg0, arg1, 938, __wbg_adapter_61);
1731
+ __wbindgen_closure_wrapper11748: function(arg0, arg1, arg2) {
1732
+ const ret = makeMutClosure(arg0, arg1, 980, __wbg_adapter_61);
1727
1733
  return ret;
1728
1734
  },
1729
- __wbindgen_closure_wrapper9553: function(arg0, arg1, arg2) {
1730
- const ret = makeMutClosure(arg0, arg1, 710, __wbg_adapter_58);
1735
+ __wbindgen_closure_wrapper9873: function(arg0, arg1, arg2) {
1736
+ const ret = makeMutClosure(arg0, arg1, 752, __wbg_adapter_58);
1731
1737
  return ret;
1732
1738
  },
1733
1739
  __wbindgen_debug_string: function(arg0, arg1) {
Binary file
@@ -82,7 +82,7 @@ export const __wbindgen_export_5: WebAssembly.Table;
82
82
  export const __externref_drop_slice: (a: number, b: number) => void;
83
83
  export const __wbindgen_export_7: WebAssembly.Table;
84
84
  export const __externref_table_dealloc: (a: number) => void;
85
- export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hbac93e35ba6a14f4: (a: number, b: number) => void;
86
- export const closure937_externref_shim: (a: number, b: number, c: any) => void;
87
- export const closure538_externref_shim: (a: number, b: number, c: any, d: any) => void;
85
+ export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hd4a74686750ed5d4: (a: number, b: number) => void;
86
+ export const closure979_externref_shim: (a: number, b: number, c: any) => void;
87
+ export const closure561_externref_shim: (a: number, b: number, c: any, d: any) => void;
88
88
  export const __wbindgen_start: () => void;