@breeztech/breez-sdk-spark 0.9.0 → 0.10.0

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.
@@ -204,6 +204,17 @@ function debugString(val) {
204
204
  // TODO we could test for more things here, like `Set`s and `Map`s.
205
205
  return className;
206
206
  }
207
+ /**
208
+ * @param {Logger} logger
209
+ * @param {string | null} [filter]
210
+ * @returns {Promise<void>}
211
+ */
212
+ export function initLogging(logger, filter) {
213
+ var ptr0 = isLikeNone(filter) ? 0 : passStringToWasm0(filter, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
214
+ var len0 = WASM_VECTOR_LEN;
215
+ const ret = wasm.initLogging(logger, ptr0, len0);
216
+ return ret;
217
+ }
207
218
 
208
219
  function takeFromExternrefTable0(idx) {
209
220
  const value = wasm.__wbindgen_export_5.get(idx);
@@ -229,18 +240,6 @@ export function defaultExternalSigner(mnemonic, passphrase, network, key_set_con
229
240
  return DefaultSigner.__wrap(ret[0]);
230
241
  }
231
242
 
232
- /**
233
- * @param {Logger} logger
234
- * @param {string | null} [filter]
235
- * @returns {Promise<void>}
236
- */
237
- export function initLogging(logger, filter) {
238
- var ptr0 = isLikeNone(filter) ? 0 : passStringToWasm0(filter, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
239
- var len0 = WASM_VECTOR_LEN;
240
- const ret = wasm.initLogging(logger, ptr0, len0);
241
- return ret;
242
- }
243
-
244
243
  /**
245
244
  * @param {Network} network
246
245
  * @returns {Config}
@@ -251,13 +250,11 @@ export function defaultConfig(network) {
251
250
  }
252
251
 
253
252
  /**
254
- * Creates a default external signer from a mnemonic phrase.
255
- *
256
- * This creates a signer that can be used with `connectWithSigner` or `SdkBuilder.newWithSigner`.
257
- * @returns {Promise<SparkStatus>}
253
+ * @param {ConnectRequest} request
254
+ * @returns {Promise<BreezSdk>}
258
255
  */
259
- export function getSparkStatus() {
260
- const ret = wasm.getSparkStatus();
256
+ export function connect(request) {
257
+ const ret = wasm.connect(request);
261
258
  return ret;
262
259
  }
263
260
 
@@ -275,11 +272,13 @@ export function connectWithSigner(config, signer, storage_dir) {
275
272
  }
276
273
 
277
274
  /**
278
- * @param {ConnectRequest} request
279
- * @returns {Promise<BreezSdk>}
275
+ * Creates a default external signer from a mnemonic phrase.
276
+ *
277
+ * This creates a signer that can be used with `connectWithSigner` or `SdkBuilder.newWithSigner`.
278
+ * @returns {Promise<SparkStatus>}
280
279
  */
281
- export function connect(request) {
282
- const ret = wasm.connect(request);
280
+ export function getSparkStatus() {
281
+ const ret = wasm.getSparkStatus();
283
282
  return ret;
284
283
  }
285
284
 
@@ -301,15 +300,15 @@ export function task_worker_entry_point(ptr) {
301
300
  }
302
301
 
303
302
  function __wbg_adapter_64(arg0, arg1) {
304
- wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h4867a1ac48fc7b64(arg0, arg1);
303
+ wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hce61e5994b0c00ad(arg0, arg1);
305
304
  }
306
305
 
307
306
  function __wbg_adapter_67(arg0, arg1, arg2) {
308
- wasm.closure1082_externref_shim(arg0, arg1, arg2);
307
+ wasm.closure1048_externref_shim(arg0, arg1, arg2);
309
308
  }
310
309
 
311
310
  function __wbg_adapter_285(arg0, arg1, arg2, arg3) {
312
- wasm.closure667_externref_shim(arg0, arg1, arg2, arg3);
311
+ wasm.closure642_externref_shim(arg0, arg1, arg2, arg3);
313
312
  }
314
313
 
315
314
  const __wbindgen_enum_ReadableStreamType = ["bytes"];
@@ -1725,7 +1724,7 @@ const imports = {
1725
1724
  const ret = arg0.listDeposits();
1726
1725
  return ret;
1727
1726
  }, arguments) },
1728
- __wbg_listPayments_3b9302bf121fdc4d: function() { return handleError(function (arg0, arg1) {
1727
+ __wbg_listPayments_d8c53ab09ffc756b: function() { return handleError(function (arg0, arg1) {
1729
1728
  const ret = arg0.listPayments(arg1);
1730
1729
  return ret;
1731
1730
  }, arguments) },
@@ -2201,12 +2200,12 @@ const imports = {
2201
2200
  const ret = false;
2202
2201
  return ret;
2203
2202
  },
2204
- __wbindgen_closure_wrapper11841: function(arg0, arg1, arg2) {
2205
- const ret = makeMutClosure(arg0, arg1, 845, __wbg_adapter_64);
2203
+ __wbindgen_closure_wrapper11704: function(arg0, arg1, arg2) {
2204
+ const ret = makeMutClosure(arg0, arg1, 817, __wbg_adapter_64);
2206
2205
  return ret;
2207
2206
  },
2208
- __wbindgen_closure_wrapper13789: function(arg0, arg1, arg2) {
2209
- const ret = makeMutClosure(arg0, arg1, 1083, __wbg_adapter_67);
2207
+ __wbindgen_closure_wrapper13627: function(arg0, arg1, arg2) {
2208
+ const ret = makeMutClosure(arg0, arg1, 1049, __wbg_adapter_67);
2210
2209
  return ret;
2211
2210
  },
2212
2211
  __wbindgen_debug_string: function(arg0, arg1) {
Binary file
@@ -113,7 +113,7 @@ export const __wbindgen_export_5: WebAssembly.Table;
113
113
  export const __externref_drop_slice: (a: number, b: number) => void;
114
114
  export const __wbindgen_export_7: WebAssembly.Table;
115
115
  export const __externref_table_dealloc: (a: number) => void;
116
- export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h4867a1ac48fc7b64: (a: number, b: number) => void;
117
- export const closure1082_externref_shim: (a: number, b: number, c: any) => void;
118
- export const closure667_externref_shim: (a: number, b: number, c: any, d: any) => void;
116
+ export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hce61e5994b0c00ad: (a: number, b: number) => void;
117
+ export const closure1048_externref_shim: (a: number, b: number, c: any) => void;
118
+ export const closure642_externref_shim: (a: number, b: number, c: any, d: any) => void;
119
119
  export const __wbindgen_start: () => void;