@breeztech/breez-sdk-spark 0.8.3-dev1 → 0.9.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.
@@ -229,15 +229,6 @@ export function defaultExternalSigner(mnemonic, passphrase, network, key_set_con
229
229
  return DefaultSigner.__wrap(ret[0]);
230
230
  }
231
231
 
232
- /**
233
- * @param {ConnectRequest} request
234
- * @returns {Promise<BreezSdk>}
235
- */
236
- export function connect(request) {
237
- const ret = wasm.connect(request);
238
- return ret;
239
- }
240
-
241
232
  /**
242
233
  * @param {Logger} logger
243
234
  * @param {string | null} [filter]
@@ -250,19 +241,6 @@ export function initLogging(logger, filter) {
250
241
  return ret;
251
242
  }
252
243
 
253
- /**
254
- * @param {Config} config
255
- * @param {ExternalSigner} signer
256
- * @param {string} storage_dir
257
- * @returns {Promise<BreezSdk>}
258
- */
259
- export function connectWithSigner(config, signer, storage_dir) {
260
- const ptr0 = passStringToWasm0(storage_dir, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
261
- const len0 = WASM_VECTOR_LEN;
262
- const ret = wasm.connectWithSigner(config, signer, ptr0, len0);
263
- return ret;
264
- }
265
-
266
244
  /**
267
245
  * @param {Network} network
268
246
  * @returns {Config}
@@ -283,6 +261,28 @@ export function getSparkStatus() {
283
261
  return ret;
284
262
  }
285
263
 
264
+ /**
265
+ * @param {Config} config
266
+ * @param {ExternalSigner} signer
267
+ * @param {string} storage_dir
268
+ * @returns {Promise<BreezSdk>}
269
+ */
270
+ export function connectWithSigner(config, signer, storage_dir) {
271
+ const ptr0 = passStringToWasm0(storage_dir, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
272
+ const len0 = WASM_VECTOR_LEN;
273
+ const ret = wasm.connectWithSigner(config, signer, ptr0, len0);
274
+ return ret;
275
+ }
276
+
277
+ /**
278
+ * @param {ConnectRequest} request
279
+ * @returns {Promise<BreezSdk>}
280
+ */
281
+ export function connect(request) {
282
+ const ret = wasm.connect(request);
283
+ return ret;
284
+ }
285
+
286
286
  function passArray8ToWasm0(arg, malloc) {
287
287
  const ptr = malloc(arg.length * 1, 1) >>> 0;
288
288
  getUint8ArrayMemory0().set(arg, ptr / 1);
@@ -301,15 +301,15 @@ export function task_worker_entry_point(ptr) {
301
301
  }
302
302
 
303
303
  function __wbg_adapter_64(arg0, arg1) {
304
- wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h127c718764a2a72f(arg0, arg1);
304
+ wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h4867a1ac48fc7b64(arg0, arg1);
305
305
  }
306
306
 
307
307
  function __wbg_adapter_67(arg0, arg1, arg2) {
308
- wasm.closure1090_externref_shim(arg0, arg1, arg2);
308
+ wasm.closure1082_externref_shim(arg0, arg1, arg2);
309
309
  }
310
310
 
311
311
  function __wbg_adapter_285(arg0, arg1, arg2, arg3) {
312
- wasm.closure670_externref_shim(arg0, arg1, arg2, arg3);
312
+ wasm.closure667_externref_shim(arg0, arg1, arg2, arg3);
313
313
  }
314
314
 
315
315
  const __wbindgen_enum_ReadableStreamType = ["bytes"];
@@ -2201,12 +2201,12 @@ const imports = {
2201
2201
  const ret = false;
2202
2202
  return ret;
2203
2203
  },
2204
- __wbindgen_closure_wrapper11879: function(arg0, arg1, arg2) {
2205
- const ret = makeMutClosure(arg0, arg1, 851, __wbg_adapter_64);
2204
+ __wbindgen_closure_wrapper11841: function(arg0, arg1, arg2) {
2205
+ const ret = makeMutClosure(arg0, arg1, 845, __wbg_adapter_64);
2206
2206
  return ret;
2207
2207
  },
2208
- __wbindgen_closure_wrapper13824: function(arg0, arg1, arg2) {
2209
- const ret = makeMutClosure(arg0, arg1, 1091, __wbg_adapter_67);
2208
+ __wbindgen_closure_wrapper13789: function(arg0, arg1, arg2) {
2209
+ const ret = makeMutClosure(arg0, arg1, 1083, __wbg_adapter_67);
2210
2210
  return ret;
2211
2211
  },
2212
2212
  __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__h127c718764a2a72f: (a: number, b: number) => void;
117
- export const closure1090_externref_shim: (a: number, b: number, c: any) => void;
118
- export const closure670_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__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;
119
119
  export const __wbindgen_start: () => void;