@breeztech/breez-sdk-spark 0.1.4 → 0.1.5

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.
Binary file
@@ -15,6 +15,14 @@ export function task_worker_entry_point(ptr: number): void;
15
15
  * *This API requires the following crate features to be activated: `ReadableStreamType`*
16
16
  */
17
17
  type ReadableStreamType = "bytes";
18
+ export interface EventListener {
19
+ onEvent: (e: SdkEvent) => void;
20
+ }
21
+
22
+ export interface Logger {
23
+ log: (l: LogEntry) => void;
24
+ }
25
+
18
26
  export interface Storage {
19
27
  getCachedItem: (key: string) => Promise<string | null>;
20
28
  setCachedItem: (key: string, value: string) => Promise<void>;
@@ -428,14 +436,6 @@ export interface ConnectRequest {
428
436
 
429
437
  export type SdkEvent = { type: "synced" } | { type: "claimDepositsFailed"; unclaimedDeposits: DepositInfo[] } | { type: "claimDepositsSucceeded"; claimedDeposits: DepositInfo[] } | { type: "paymentSucceeded"; payment: Payment };
430
438
 
431
- export interface EventListener {
432
- onEvent: (e: SdkEvent) => void;
433
- }
434
-
435
- export interface Logger {
436
- log: (l: LogEntry) => void;
437
- }
438
-
439
439
  export class BreezSdk {
440
440
  private constructor();
441
441
  free(): void;
@@ -279,15 +279,15 @@ export function task_worker_entry_point(ptr) {
279
279
  }
280
280
 
281
281
  function __wbg_adapter_52(arg0, arg1) {
282
- wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h227664b52ef93e91(arg0, arg1);
282
+ wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hf7c49586be6831c4(arg0, arg1);
283
283
  }
284
284
 
285
285
  function __wbg_adapter_55(arg0, arg1, arg2) {
286
- wasm.closure3245_externref_shim(arg0, arg1, arg2);
286
+ wasm.closure768_externref_shim(arg0, arg1, arg2);
287
287
  }
288
288
 
289
- function __wbg_adapter_280(arg0, arg1, arg2, arg3) {
290
- wasm.closure3531_externref_shim(arg0, arg1, arg2, arg3);
289
+ function __wbg_adapter_171(arg0, arg1, arg2, arg3) {
290
+ wasm.closure446_externref_shim(arg0, arg1, arg2, arg3);
291
291
  }
292
292
 
293
293
  const __wbindgen_enum_ReadableStreamType = ["bytes"];
@@ -741,7 +741,7 @@ export function __wbg_catch_a6e601879b2610e9(arg0, arg1) {
741
741
  return ret;
742
742
  };
743
743
 
744
- export function __wbg_clearTimeout_0b53d391c1b94dda(arg0) {
744
+ export function __wbg_clearTimeout_6222fede17abcb1a(arg0) {
745
745
  const ret = clearTimeout(arg0);
746
746
  return ret;
747
747
  };
@@ -800,11 +800,6 @@ export function __wbg_fetch_07cd86dd296a5a63(arg0, arg1, arg2) {
800
800
  return ret;
801
801
  };
802
802
 
803
- export function __wbg_fetch_11bff8299d0ecd2b(arg0) {
804
- const ret = fetch(arg0);
805
- return ret;
806
- };
807
-
808
803
  export function __wbg_fetch_509096533071c657(arg0, arg1) {
809
804
  const ret = arg0.fetch(arg1);
810
805
  return ret;
@@ -815,6 +810,11 @@ export function __wbg_fetch_769f3df592e37b75(arg0, arg1) {
815
810
  return ret;
816
811
  };
817
812
 
813
+ export function __wbg_fetch_f156d10be9a5c88a(arg0) {
814
+ const ret = fetch(arg0);
815
+ return ret;
816
+ };
817
+
818
818
  export function __wbg_getCachedItem_de40d6348815c7b9() { return handleError(function (arg0, arg1, arg2) {
819
819
  let deferred0_0;
820
820
  let deferred0_1;
@@ -994,7 +994,7 @@ export function __wbg_new_23a2665fac83c611(arg0, arg1) {
994
994
  const a = state0.a;
995
995
  state0.a = 0;
996
996
  try {
997
- return __wbg_adapter_280(a, state0.b, arg0, arg1);
997
+ return __wbg_adapter_171(a, state0.b, arg0, arg1);
998
998
  } finally {
999
999
  state0.a = a;
1000
1000
  }
@@ -1166,7 +1166,7 @@ export function __wbg_setPaymentMetadata_0bbf82aa72b85deb() { return handleError
1166
1166
  }
1167
1167
  }, arguments) };
1168
1168
 
1169
- export function __wbg_setTimeout_73ce8df12de4f2f2(arg0, arg1) {
1169
+ export function __wbg_setTimeout_2b339866a2aa3789(arg0, arg1) {
1170
1170
  const ret = setTimeout(arg0, arg1);
1171
1171
  return ret;
1172
1172
  };
@@ -1357,13 +1357,13 @@ export function __wbindgen_cb_drop(arg0) {
1357
1357
  return ret;
1358
1358
  };
1359
1359
 
1360
- export function __wbindgen_closure_wrapper10514(arg0, arg1, arg2) {
1361
- const ret = makeMutClosure(arg0, arg1, 3228, __wbg_adapter_52);
1360
+ export function __wbindgen_closure_wrapper8225(arg0, arg1, arg2) {
1361
+ const ret = makeMutClosure(arg0, arg1, 623, __wbg_adapter_52);
1362
1362
  return ret;
1363
1363
  };
1364
1364
 
1365
- export function __wbindgen_closure_wrapper10547(arg0, arg1, arg2) {
1366
- const ret = makeMutClosure(arg0, arg1, 3246, __wbg_adapter_55);
1365
+ export function __wbindgen_closure_wrapper9036(arg0, arg1, arg2) {
1366
+ const ret = makeMutClosure(arg0, arg1, 769, __wbg_adapter_55);
1367
1367
  return ret;
1368
1368
  };
1369
1369
 
@@ -26,6 +26,17 @@ export const __wbg_sdkbuilder_free: (a: number, b: number) => void;
26
26
  export const sdkbuilder_new: (a: any, b: number, c: number, d: any) => [number, number, number];
27
27
  export const sdkbuilder_withRestChainService: (a: number, b: number, c: number, d: number) => number;
28
28
  export const sdkbuilder_build: (a: number) => any;
29
+ export const rustsecp256k1_v0_10_0_context_create: (a: number) => number;
30
+ export const rustsecp256k1_v0_10_0_context_destroy: (a: number) => void;
31
+ export const rustsecp256k1_v0_10_0_default_illegal_callback_fn: (a: number, b: number) => void;
32
+ export const rustsecp256k1_v0_10_0_default_error_callback_fn: (a: number, b: number) => void;
33
+ export const task_worker_entry_point: (a: number) => [number, number];
34
+ export const __wbg_intounderlyingbytesource_free: (a: number, b: number) => void;
35
+ export const intounderlyingbytesource_type: (a: number) => number;
36
+ export const intounderlyingbytesource_autoAllocateChunkSize: (a: number) => number;
37
+ export const intounderlyingbytesource_start: (a: number, b: any) => void;
38
+ export const intounderlyingbytesource_pull: (a: number, b: any) => any;
39
+ export const intounderlyingbytesource_cancel: (a: number) => void;
29
40
  export const __wbg_intounderlyingsource_free: (a: number, b: number) => void;
30
41
  export const intounderlyingsource_pull: (a: number, b: any) => any;
31
42
  export const intounderlyingsource_cancel: (a: number) => void;
@@ -33,17 +44,6 @@ export const __wbg_intounderlyingsink_free: (a: number, b: number) => void;
33
44
  export const intounderlyingsink_write: (a: number, b: any) => any;
34
45
  export const intounderlyingsink_close: (a: number) => any;
35
46
  export const intounderlyingsink_abort: (a: number, b: any) => any;
36
- export const __wbg_intounderlyingbytesource_free: (a: number, b: number) => void;
37
- export const intounderlyingbytesource_type: (a: number) => number;
38
- export const intounderlyingbytesource_autoAllocateChunkSize: (a: number) => number;
39
- export const intounderlyingbytesource_start: (a: number, b: any) => void;
40
- export const intounderlyingbytesource_pull: (a: number, b: any) => any;
41
- export const intounderlyingbytesource_cancel: (a: number) => void;
42
- export const task_worker_entry_point: (a: number) => [number, number];
43
- export const rustsecp256k1_v0_10_0_context_create: (a: number) => number;
44
- export const rustsecp256k1_v0_10_0_context_destroy: (a: number) => void;
45
- export const rustsecp256k1_v0_10_0_default_illegal_callback_fn: (a: number, b: number) => void;
46
- export const rustsecp256k1_v0_10_0_default_error_callback_fn: (a: number, b: number) => void;
47
47
  export const __wbindgen_malloc: (a: number, b: number) => number;
48
48
  export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
49
49
  export const __wbindgen_free: (a: number, b: number, c: number) => void;
@@ -52,7 +52,7 @@ export const __externref_table_alloc: () => number;
52
52
  export const __wbindgen_export_5: WebAssembly.Table;
53
53
  export const __wbindgen_export_6: WebAssembly.Table;
54
54
  export const __externref_table_dealloc: (a: number) => void;
55
- export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h227664b52ef93e91: (a: number, b: number) => void;
56
- export const closure3245_externref_shim: (a: number, b: number, c: any) => void;
57
- export const closure3531_externref_shim: (a: number, b: number, c: any, d: any) => void;
55
+ export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hf7c49586be6831c4: (a: number, b: number) => void;
56
+ export const closure768_externref_shim: (a: number, b: number, c: any) => void;
57
+ export const closure446_externref_shim: (a: number, b: number, c: any, d: any) => void;
58
58
  export const __wbindgen_start: () => void;
@@ -15,6 +15,14 @@ export function task_worker_entry_point(ptr: number): void;
15
15
  * *This API requires the following crate features to be activated: `ReadableStreamType`*
16
16
  */
17
17
  type ReadableStreamType = "bytes";
18
+ export interface EventListener {
19
+ onEvent: (e: SdkEvent) => void;
20
+ }
21
+
22
+ export interface Logger {
23
+ log: (l: LogEntry) => void;
24
+ }
25
+
18
26
  export interface Storage {
19
27
  getCachedItem: (key: string) => Promise<string | null>;
20
28
  setCachedItem: (key: string, value: string) => Promise<void>;
@@ -428,14 +436,6 @@ export interface ConnectRequest {
428
436
 
429
437
  export type SdkEvent = { type: "synced" } | { type: "claimDepositsFailed"; unclaimedDeposits: DepositInfo[] } | { type: "claimDepositsSucceeded"; claimedDeposits: DepositInfo[] } | { type: "paymentSucceeded"; payment: Payment };
430
438
 
431
- export interface EventListener {
432
- onEvent: (e: SdkEvent) => void;
433
- }
434
-
435
- export interface Logger {
436
- log: (l: LogEntry) => void;
437
- }
438
-
439
439
  export class BreezSdk {
440
440
  private constructor();
441
441
  free(): void;
@@ -262,15 +262,15 @@ export function task_worker_entry_point(ptr) {
262
262
  }
263
263
 
264
264
  function __wbg_adapter_52(arg0, arg1) {
265
- wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h227664b52ef93e91(arg0, arg1);
265
+ wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hf7c49586be6831c4(arg0, arg1);
266
266
  }
267
267
 
268
268
  function __wbg_adapter_55(arg0, arg1, arg2) {
269
- wasm.closure3245_externref_shim(arg0, arg1, arg2);
269
+ wasm.closure768_externref_shim(arg0, arg1, arg2);
270
270
  }
271
271
 
272
- function __wbg_adapter_280(arg0, arg1, arg2, arg3) {
273
- wasm.closure3531_externref_shim(arg0, arg1, arg2, arg3);
272
+ function __wbg_adapter_171(arg0, arg1, arg2, arg3) {
273
+ wasm.closure446_externref_shim(arg0, arg1, arg2, arg3);
274
274
  }
275
275
 
276
276
  const __wbindgen_enum_ReadableStreamType = ["bytes"];
@@ -709,7 +709,7 @@ const imports = {
709
709
  const ret = arg0.catch(arg1);
710
710
  return ret;
711
711
  },
712
- __wbg_clearTimeout_0b53d391c1b94dda: function(arg0) {
712
+ __wbg_clearTimeout_6222fede17abcb1a: function(arg0) {
713
713
  const ret = clearTimeout(arg0);
714
714
  return ret;
715
715
  },
@@ -757,10 +757,6 @@ const imports = {
757
757
  const ret = arg0.fetch(arg1, arg2);
758
758
  return ret;
759
759
  },
760
- __wbg_fetch_11bff8299d0ecd2b: function(arg0) {
761
- const ret = fetch(arg0);
762
- return ret;
763
- },
764
760
  __wbg_fetch_509096533071c657: function(arg0, arg1) {
765
761
  const ret = arg0.fetch(arg1);
766
762
  return ret;
@@ -769,6 +765,10 @@ const imports = {
769
765
  const ret = fetch(arg0, arg1);
770
766
  return ret;
771
767
  },
768
+ __wbg_fetch_f156d10be9a5c88a: function(arg0) {
769
+ const ret = fetch(arg0);
770
+ return ret;
771
+ },
772
772
  __wbg_getCachedItem_de40d6348815c7b9: function() { return handleError(function (arg0, arg1, arg2) {
773
773
  let deferred0_0;
774
774
  let deferred0_1;
@@ -921,7 +921,7 @@ const imports = {
921
921
  const a = state0.a;
922
922
  state0.a = 0;
923
923
  try {
924
- return __wbg_adapter_280(a, state0.b, arg0, arg1);
924
+ return __wbg_adapter_171(a, state0.b, arg0, arg1);
925
925
  } finally {
926
926
  state0.a = a;
927
927
  }
@@ -1063,7 +1063,7 @@ const imports = {
1063
1063
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
1064
1064
  }
1065
1065
  }, arguments) },
1066
- __wbg_setTimeout_73ce8df12de4f2f2: function(arg0, arg1) {
1066
+ __wbg_setTimeout_2b339866a2aa3789: function(arg0, arg1) {
1067
1067
  const ret = setTimeout(arg0, arg1);
1068
1068
  return ret;
1069
1069
  },
@@ -1217,12 +1217,12 @@ const imports = {
1217
1217
  const ret = false;
1218
1218
  return ret;
1219
1219
  },
1220
- __wbindgen_closure_wrapper10514: function(arg0, arg1, arg2) {
1221
- const ret = makeMutClosure(arg0, arg1, 3228, __wbg_adapter_52);
1220
+ __wbindgen_closure_wrapper8225: function(arg0, arg1, arg2) {
1221
+ const ret = makeMutClosure(arg0, arg1, 623, __wbg_adapter_52);
1222
1222
  return ret;
1223
1223
  },
1224
- __wbindgen_closure_wrapper10547: function(arg0, arg1, arg2) {
1225
- const ret = makeMutClosure(arg0, arg1, 3246, __wbg_adapter_55);
1224
+ __wbindgen_closure_wrapper9036: function(arg0, arg1, arg2) {
1225
+ const ret = makeMutClosure(arg0, arg1, 769, __wbg_adapter_55);
1226
1226
  return ret;
1227
1227
  },
1228
1228
  __wbindgen_debug_string: function(arg0, arg1) {
Binary file
@@ -26,6 +26,17 @@ export const __wbg_sdkbuilder_free: (a: number, b: number) => void;
26
26
  export const sdkbuilder_new: (a: any, b: number, c: number, d: any) => [number, number, number];
27
27
  export const sdkbuilder_withRestChainService: (a: number, b: number, c: number, d: number) => number;
28
28
  export const sdkbuilder_build: (a: number) => any;
29
+ export const rustsecp256k1_v0_10_0_context_create: (a: number) => number;
30
+ export const rustsecp256k1_v0_10_0_context_destroy: (a: number) => void;
31
+ export const rustsecp256k1_v0_10_0_default_illegal_callback_fn: (a: number, b: number) => void;
32
+ export const rustsecp256k1_v0_10_0_default_error_callback_fn: (a: number, b: number) => void;
33
+ export const task_worker_entry_point: (a: number) => [number, number];
34
+ export const __wbg_intounderlyingbytesource_free: (a: number, b: number) => void;
35
+ export const intounderlyingbytesource_type: (a: number) => number;
36
+ export const intounderlyingbytesource_autoAllocateChunkSize: (a: number) => number;
37
+ export const intounderlyingbytesource_start: (a: number, b: any) => void;
38
+ export const intounderlyingbytesource_pull: (a: number, b: any) => any;
39
+ export const intounderlyingbytesource_cancel: (a: number) => void;
29
40
  export const __wbg_intounderlyingsource_free: (a: number, b: number) => void;
30
41
  export const intounderlyingsource_pull: (a: number, b: any) => any;
31
42
  export const intounderlyingsource_cancel: (a: number) => void;
@@ -33,17 +44,6 @@ export const __wbg_intounderlyingsink_free: (a: number, b: number) => void;
33
44
  export const intounderlyingsink_write: (a: number, b: any) => any;
34
45
  export const intounderlyingsink_close: (a: number) => any;
35
46
  export const intounderlyingsink_abort: (a: number, b: any) => any;
36
- export const __wbg_intounderlyingbytesource_free: (a: number, b: number) => void;
37
- export const intounderlyingbytesource_type: (a: number) => number;
38
- export const intounderlyingbytesource_autoAllocateChunkSize: (a: number) => number;
39
- export const intounderlyingbytesource_start: (a: number, b: any) => void;
40
- export const intounderlyingbytesource_pull: (a: number, b: any) => any;
41
- export const intounderlyingbytesource_cancel: (a: number) => void;
42
- export const task_worker_entry_point: (a: number) => [number, number];
43
- export const rustsecp256k1_v0_10_0_context_create: (a: number) => number;
44
- export const rustsecp256k1_v0_10_0_context_destroy: (a: number) => void;
45
- export const rustsecp256k1_v0_10_0_default_illegal_callback_fn: (a: number, b: number) => void;
46
- export const rustsecp256k1_v0_10_0_default_error_callback_fn: (a: number, b: number) => void;
47
47
  export const __wbindgen_malloc: (a: number, b: number) => number;
48
48
  export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
49
49
  export const __wbindgen_free: (a: number, b: number, c: number) => void;
@@ -52,7 +52,7 @@ export const __externref_table_alloc: () => number;
52
52
  export const __wbindgen_export_5: WebAssembly.Table;
53
53
  export const __wbindgen_export_6: WebAssembly.Table;
54
54
  export const __externref_table_dealloc: (a: number) => void;
55
- export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h227664b52ef93e91: (a: number, b: number) => void;
56
- export const closure3245_externref_shim: (a: number, b: number, c: any) => void;
57
- export const closure3531_externref_shim: (a: number, b: number, c: any, d: any) => void;
55
+ export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hf7c49586be6831c4: (a: number, b: number) => void;
56
+ export const closure768_externref_shim: (a: number, b: number, c: any) => void;
57
+ export const closure446_externref_shim: (a: number, b: number, c: any, d: any) => void;
58
58
  export const __wbindgen_start: () => void;
@@ -15,6 +15,14 @@ export function task_worker_entry_point(ptr: number): void;
15
15
  * *This API requires the following crate features to be activated: `ReadableStreamType`*
16
16
  */
17
17
  type ReadableStreamType = "bytes";
18
+ export interface EventListener {
19
+ onEvent: (e: SdkEvent) => void;
20
+ }
21
+
22
+ export interface Logger {
23
+ log: (l: LogEntry) => void;
24
+ }
25
+
18
26
  export interface Storage {
19
27
  getCachedItem: (key: string) => Promise<string | null>;
20
28
  setCachedItem: (key: string, value: string) => Promise<void>;
@@ -428,14 +436,6 @@ export interface ConnectRequest {
428
436
 
429
437
  export type SdkEvent = { type: "synced" } | { type: "claimDepositsFailed"; unclaimedDeposits: DepositInfo[] } | { type: "claimDepositsSucceeded"; claimedDeposits: DepositInfo[] } | { type: "paymentSucceeded"; payment: Payment };
430
438
 
431
- export interface EventListener {
432
- onEvent: (e: SdkEvent) => void;
433
- }
434
-
435
- export interface Logger {
436
- log: (l: LogEntry) => void;
437
- }
438
-
439
439
  export class BreezSdk {
440
440
  private constructor();
441
441
  free(): void;
@@ -275,15 +275,15 @@ module.exports.task_worker_entry_point = function(ptr) {
275
275
  };
276
276
 
277
277
  function __wbg_adapter_52(arg0, arg1) {
278
- wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h227664b52ef93e91(arg0, arg1);
278
+ wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hf7c49586be6831c4(arg0, arg1);
279
279
  }
280
280
 
281
281
  function __wbg_adapter_55(arg0, arg1, arg2) {
282
- wasm.closure3245_externref_shim(arg0, arg1, arg2);
282
+ wasm.closure768_externref_shim(arg0, arg1, arg2);
283
283
  }
284
284
 
285
- function __wbg_adapter_280(arg0, arg1, arg2, arg3) {
286
- wasm.closure3531_externref_shim(arg0, arg1, arg2, arg3);
285
+ function __wbg_adapter_171(arg0, arg1, arg2, arg3) {
286
+ wasm.closure446_externref_shim(arg0, arg1, arg2, arg3);
287
287
  }
288
288
 
289
289
  const __wbindgen_enum_ReadableStreamType = ["bytes"];
@@ -742,7 +742,7 @@ module.exports.__wbg_catch_a6e601879b2610e9 = function(arg0, arg1) {
742
742
  return ret;
743
743
  };
744
744
 
745
- module.exports.__wbg_clearTimeout_0b53d391c1b94dda = function(arg0) {
745
+ module.exports.__wbg_clearTimeout_6222fede17abcb1a = function(arg0) {
746
746
  const ret = clearTimeout(arg0);
747
747
  return ret;
748
748
  };
@@ -801,11 +801,6 @@ module.exports.__wbg_fetch_07cd86dd296a5a63 = function(arg0, arg1, arg2) {
801
801
  return ret;
802
802
  };
803
803
 
804
- module.exports.__wbg_fetch_11bff8299d0ecd2b = function(arg0) {
805
- const ret = fetch(arg0);
806
- return ret;
807
- };
808
-
809
804
  module.exports.__wbg_fetch_509096533071c657 = function(arg0, arg1) {
810
805
  const ret = arg0.fetch(arg1);
811
806
  return ret;
@@ -816,6 +811,11 @@ module.exports.__wbg_fetch_769f3df592e37b75 = function(arg0, arg1) {
816
811
  return ret;
817
812
  };
818
813
 
814
+ module.exports.__wbg_fetch_f156d10be9a5c88a = function(arg0) {
815
+ const ret = fetch(arg0);
816
+ return ret;
817
+ };
818
+
819
819
  module.exports.__wbg_getCachedItem_de40d6348815c7b9 = function() { return handleError(function (arg0, arg1, arg2) {
820
820
  let deferred0_0;
821
821
  let deferred0_1;
@@ -995,7 +995,7 @@ module.exports.__wbg_new_23a2665fac83c611 = function(arg0, arg1) {
995
995
  const a = state0.a;
996
996
  state0.a = 0;
997
997
  try {
998
- return __wbg_adapter_280(a, state0.b, arg0, arg1);
998
+ return __wbg_adapter_171(a, state0.b, arg0, arg1);
999
999
  } finally {
1000
1000
  state0.a = a;
1001
1001
  }
@@ -1167,7 +1167,7 @@ module.exports.__wbg_setPaymentMetadata_0bbf82aa72b85deb = function() { return h
1167
1167
  }
1168
1168
  }, arguments) };
1169
1169
 
1170
- module.exports.__wbg_setTimeout_73ce8df12de4f2f2 = function(arg0, arg1) {
1170
+ module.exports.__wbg_setTimeout_2b339866a2aa3789 = function(arg0, arg1) {
1171
1171
  const ret = setTimeout(arg0, arg1);
1172
1172
  return ret;
1173
1173
  };
@@ -1358,13 +1358,13 @@ module.exports.__wbindgen_cb_drop = function(arg0) {
1358
1358
  return ret;
1359
1359
  };
1360
1360
 
1361
- module.exports.__wbindgen_closure_wrapper10514 = function(arg0, arg1, arg2) {
1362
- const ret = makeMutClosure(arg0, arg1, 3228, __wbg_adapter_52);
1361
+ module.exports.__wbindgen_closure_wrapper8225 = function(arg0, arg1, arg2) {
1362
+ const ret = makeMutClosure(arg0, arg1, 623, __wbg_adapter_52);
1363
1363
  return ret;
1364
1364
  };
1365
1365
 
1366
- module.exports.__wbindgen_closure_wrapper10547 = function(arg0, arg1, arg2) {
1367
- const ret = makeMutClosure(arg0, arg1, 3246, __wbg_adapter_55);
1366
+ module.exports.__wbindgen_closure_wrapper9036 = function(arg0, arg1, arg2) {
1367
+ const ret = makeMutClosure(arg0, arg1, 769, __wbg_adapter_55);
1368
1368
  return ret;
1369
1369
  };
1370
1370
 
Binary file
@@ -26,6 +26,17 @@ export const __wbg_sdkbuilder_free: (a: number, b: number) => void;
26
26
  export const sdkbuilder_new: (a: any, b: number, c: number, d: any) => [number, number, number];
27
27
  export const sdkbuilder_withRestChainService: (a: number, b: number, c: number, d: number) => number;
28
28
  export const sdkbuilder_build: (a: number) => any;
29
+ export const rustsecp256k1_v0_10_0_context_create: (a: number) => number;
30
+ export const rustsecp256k1_v0_10_0_context_destroy: (a: number) => void;
31
+ export const rustsecp256k1_v0_10_0_default_illegal_callback_fn: (a: number, b: number) => void;
32
+ export const rustsecp256k1_v0_10_0_default_error_callback_fn: (a: number, b: number) => void;
33
+ export const task_worker_entry_point: (a: number) => [number, number];
34
+ export const __wbg_intounderlyingbytesource_free: (a: number, b: number) => void;
35
+ export const intounderlyingbytesource_type: (a: number) => number;
36
+ export const intounderlyingbytesource_autoAllocateChunkSize: (a: number) => number;
37
+ export const intounderlyingbytesource_start: (a: number, b: any) => void;
38
+ export const intounderlyingbytesource_pull: (a: number, b: any) => any;
39
+ export const intounderlyingbytesource_cancel: (a: number) => void;
29
40
  export const __wbg_intounderlyingsource_free: (a: number, b: number) => void;
30
41
  export const intounderlyingsource_pull: (a: number, b: any) => any;
31
42
  export const intounderlyingsource_cancel: (a: number) => void;
@@ -33,17 +44,6 @@ export const __wbg_intounderlyingsink_free: (a: number, b: number) => void;
33
44
  export const intounderlyingsink_write: (a: number, b: any) => any;
34
45
  export const intounderlyingsink_close: (a: number) => any;
35
46
  export const intounderlyingsink_abort: (a: number, b: any) => any;
36
- export const __wbg_intounderlyingbytesource_free: (a: number, b: number) => void;
37
- export const intounderlyingbytesource_type: (a: number) => number;
38
- export const intounderlyingbytesource_autoAllocateChunkSize: (a: number) => number;
39
- export const intounderlyingbytesource_start: (a: number, b: any) => void;
40
- export const intounderlyingbytesource_pull: (a: number, b: any) => any;
41
- export const intounderlyingbytesource_cancel: (a: number) => void;
42
- export const task_worker_entry_point: (a: number) => [number, number];
43
- export const rustsecp256k1_v0_10_0_context_create: (a: number) => number;
44
- export const rustsecp256k1_v0_10_0_context_destroy: (a: number) => void;
45
- export const rustsecp256k1_v0_10_0_default_illegal_callback_fn: (a: number, b: number) => void;
46
- export const rustsecp256k1_v0_10_0_default_error_callback_fn: (a: number, b: number) => void;
47
47
  export const __wbindgen_malloc: (a: number, b: number) => number;
48
48
  export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
49
49
  export const __wbindgen_free: (a: number, b: number, c: number) => void;
@@ -52,7 +52,7 @@ export const __externref_table_alloc: () => number;
52
52
  export const __wbindgen_export_5: WebAssembly.Table;
53
53
  export const __wbindgen_export_6: WebAssembly.Table;
54
54
  export const __externref_table_dealloc: (a: number) => void;
55
- export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h227664b52ef93e91: (a: number, b: number) => void;
56
- export const closure3245_externref_shim: (a: number, b: number, c: any) => void;
57
- export const closure3531_externref_shim: (a: number, b: number, c: any, d: any) => void;
55
+ export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hf7c49586be6831c4: (a: number, b: number) => void;
56
+ export const closure768_externref_shim: (a: number, b: number, c: any) => void;
57
+ export const closure446_externref_shim: (a: number, b: number, c: any, d: any) => void;
58
58
  export const __wbindgen_start: () => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@breeztech/breez-sdk-spark",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "Breez Spark SDK",
5
5
  "repository": "https://github.com/breez/spark-sdk",
6
6
  "author": "Breez <contact@breez.technology> (https://github.com/breez)",
@@ -15,6 +15,14 @@ export function task_worker_entry_point(ptr: number): void;
15
15
  * *This API requires the following crate features to be activated: `ReadableStreamType`*
16
16
  */
17
17
  type ReadableStreamType = "bytes";
18
+ export interface EventListener {
19
+ onEvent: (e: SdkEvent) => void;
20
+ }
21
+
22
+ export interface Logger {
23
+ log: (l: LogEntry) => void;
24
+ }
25
+
18
26
  export interface Storage {
19
27
  getCachedItem: (key: string) => Promise<string | null>;
20
28
  setCachedItem: (key: string, value: string) => Promise<void>;
@@ -428,14 +436,6 @@ export interface ConnectRequest {
428
436
 
429
437
  export type SdkEvent = { type: "synced" } | { type: "claimDepositsFailed"; unclaimedDeposits: DepositInfo[] } | { type: "claimDepositsSucceeded"; claimedDeposits: DepositInfo[] } | { type: "paymentSucceeded"; payment: Payment };
430
438
 
431
- export interface EventListener {
432
- onEvent: (e: SdkEvent) => void;
433
- }
434
-
435
- export interface Logger {
436
- log: (l: LogEntry) => void;
437
- }
438
-
439
439
  export class BreezSdk {
440
440
  private constructor();
441
441
  free(): void;
@@ -514,6 +514,17 @@ export interface InitOutput {
514
514
  readonly sdkbuilder_new: (a: any, b: number, c: number, d: any) => [number, number, number];
515
515
  readonly sdkbuilder_withRestChainService: (a: number, b: number, c: number, d: number) => number;
516
516
  readonly sdkbuilder_build: (a: number) => any;
517
+ readonly rustsecp256k1_v0_10_0_context_create: (a: number) => number;
518
+ readonly rustsecp256k1_v0_10_0_context_destroy: (a: number) => void;
519
+ readonly rustsecp256k1_v0_10_0_default_illegal_callback_fn: (a: number, b: number) => void;
520
+ readonly rustsecp256k1_v0_10_0_default_error_callback_fn: (a: number, b: number) => void;
521
+ readonly task_worker_entry_point: (a: number) => [number, number];
522
+ readonly __wbg_intounderlyingbytesource_free: (a: number, b: number) => void;
523
+ readonly intounderlyingbytesource_type: (a: number) => number;
524
+ readonly intounderlyingbytesource_autoAllocateChunkSize: (a: number) => number;
525
+ readonly intounderlyingbytesource_start: (a: number, b: any) => void;
526
+ readonly intounderlyingbytesource_pull: (a: number, b: any) => any;
527
+ readonly intounderlyingbytesource_cancel: (a: number) => void;
517
528
  readonly __wbg_intounderlyingsource_free: (a: number, b: number) => void;
518
529
  readonly intounderlyingsource_pull: (a: number, b: any) => any;
519
530
  readonly intounderlyingsource_cancel: (a: number) => void;
@@ -521,17 +532,6 @@ export interface InitOutput {
521
532
  readonly intounderlyingsink_write: (a: number, b: any) => any;
522
533
  readonly intounderlyingsink_close: (a: number) => any;
523
534
  readonly intounderlyingsink_abort: (a: number, b: any) => any;
524
- readonly __wbg_intounderlyingbytesource_free: (a: number, b: number) => void;
525
- readonly intounderlyingbytesource_type: (a: number) => number;
526
- readonly intounderlyingbytesource_autoAllocateChunkSize: (a: number) => number;
527
- readonly intounderlyingbytesource_start: (a: number, b: any) => void;
528
- readonly intounderlyingbytesource_pull: (a: number, b: any) => any;
529
- readonly intounderlyingbytesource_cancel: (a: number) => void;
530
- readonly task_worker_entry_point: (a: number) => [number, number];
531
- readonly rustsecp256k1_v0_10_0_context_create: (a: number) => number;
532
- readonly rustsecp256k1_v0_10_0_context_destroy: (a: number) => void;
533
- readonly rustsecp256k1_v0_10_0_default_illegal_callback_fn: (a: number, b: number) => void;
534
- readonly rustsecp256k1_v0_10_0_default_error_callback_fn: (a: number, b: number) => void;
535
535
  readonly __wbindgen_malloc: (a: number, b: number) => number;
536
536
  readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
537
537
  readonly __wbindgen_free: (a: number, b: number, c: number) => void;
@@ -540,9 +540,9 @@ export interface InitOutput {
540
540
  readonly __wbindgen_export_5: WebAssembly.Table;
541
541
  readonly __wbindgen_export_6: WebAssembly.Table;
542
542
  readonly __externref_table_dealloc: (a: number) => void;
543
- readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h227664b52ef93e91: (a: number, b: number) => void;
544
- readonly closure3245_externref_shim: (a: number, b: number, c: any) => void;
545
- readonly closure3531_externref_shim: (a: number, b: number, c: any, d: any) => void;
543
+ readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hf7c49586be6831c4: (a: number, b: number) => void;
544
+ readonly closure768_externref_shim: (a: number, b: number, c: any) => void;
545
+ readonly closure446_externref_shim: (a: number, b: number, c: any, d: any) => void;
546
546
  readonly __wbindgen_start: () => void;
547
547
  }
548
548
 
@@ -271,15 +271,15 @@ export function task_worker_entry_point(ptr) {
271
271
  }
272
272
 
273
273
  function __wbg_adapter_52(arg0, arg1) {
274
- wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h227664b52ef93e91(arg0, arg1);
274
+ wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hf7c49586be6831c4(arg0, arg1);
275
275
  }
276
276
 
277
277
  function __wbg_adapter_55(arg0, arg1, arg2) {
278
- wasm.closure3245_externref_shim(arg0, arg1, arg2);
278
+ wasm.closure768_externref_shim(arg0, arg1, arg2);
279
279
  }
280
280
 
281
- function __wbg_adapter_280(arg0, arg1, arg2, arg3) {
282
- wasm.closure3531_externref_shim(arg0, arg1, arg2, arg3);
281
+ function __wbg_adapter_171(arg0, arg1, arg2, arg3) {
282
+ wasm.closure446_externref_shim(arg0, arg1, arg2, arg3);
283
283
  }
284
284
 
285
285
  const __wbindgen_enum_ReadableStreamType = ["bytes"];
@@ -750,7 +750,7 @@ function __wbg_get_imports() {
750
750
  const ret = arg0.catch(arg1);
751
751
  return ret;
752
752
  };
753
- imports.wbg.__wbg_clearTimeout_0b53d391c1b94dda = function(arg0) {
753
+ imports.wbg.__wbg_clearTimeout_6222fede17abcb1a = function(arg0) {
754
754
  const ret = clearTimeout(arg0);
755
755
  return ret;
756
756
  };
@@ -798,10 +798,6 @@ function __wbg_get_imports() {
798
798
  const ret = arg0.fetch(arg1, arg2);
799
799
  return ret;
800
800
  };
801
- imports.wbg.__wbg_fetch_11bff8299d0ecd2b = function(arg0) {
802
- const ret = fetch(arg0);
803
- return ret;
804
- };
805
801
  imports.wbg.__wbg_fetch_509096533071c657 = function(arg0, arg1) {
806
802
  const ret = arg0.fetch(arg1);
807
803
  return ret;
@@ -810,6 +806,10 @@ function __wbg_get_imports() {
810
806
  const ret = fetch(arg0, arg1);
811
807
  return ret;
812
808
  };
809
+ imports.wbg.__wbg_fetch_f156d10be9a5c88a = function(arg0) {
810
+ const ret = fetch(arg0);
811
+ return ret;
812
+ };
813
813
  imports.wbg.__wbg_getCachedItem_de40d6348815c7b9 = function() { return handleError(function (arg0, arg1, arg2) {
814
814
  let deferred0_0;
815
815
  let deferred0_1;
@@ -962,7 +962,7 @@ function __wbg_get_imports() {
962
962
  const a = state0.a;
963
963
  state0.a = 0;
964
964
  try {
965
- return __wbg_adapter_280(a, state0.b, arg0, arg1);
965
+ return __wbg_adapter_171(a, state0.b, arg0, arg1);
966
966
  } finally {
967
967
  state0.a = a;
968
968
  }
@@ -1104,7 +1104,7 @@ function __wbg_get_imports() {
1104
1104
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
1105
1105
  }
1106
1106
  }, arguments) };
1107
- imports.wbg.__wbg_setTimeout_73ce8df12de4f2f2 = function(arg0, arg1) {
1107
+ imports.wbg.__wbg_setTimeout_2b339866a2aa3789 = function(arg0, arg1) {
1108
1108
  const ret = setTimeout(arg0, arg1);
1109
1109
  return ret;
1110
1110
  };
@@ -1258,12 +1258,12 @@ function __wbg_get_imports() {
1258
1258
  const ret = false;
1259
1259
  return ret;
1260
1260
  };
1261
- imports.wbg.__wbindgen_closure_wrapper10514 = function(arg0, arg1, arg2) {
1262
- const ret = makeMutClosure(arg0, arg1, 3228, __wbg_adapter_52);
1261
+ imports.wbg.__wbindgen_closure_wrapper8225 = function(arg0, arg1, arg2) {
1262
+ const ret = makeMutClosure(arg0, arg1, 623, __wbg_adapter_52);
1263
1263
  return ret;
1264
1264
  };
1265
- imports.wbg.__wbindgen_closure_wrapper10547 = function(arg0, arg1, arg2) {
1266
- const ret = makeMutClosure(arg0, arg1, 3246, __wbg_adapter_55);
1265
+ imports.wbg.__wbindgen_closure_wrapper9036 = function(arg0, arg1, arg2) {
1266
+ const ret = makeMutClosure(arg0, arg1, 769, __wbg_adapter_55);
1267
1267
  return ret;
1268
1268
  };
1269
1269
  imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
Binary file
@@ -26,6 +26,17 @@ export const __wbg_sdkbuilder_free: (a: number, b: number) => void;
26
26
  export const sdkbuilder_new: (a: any, b: number, c: number, d: any) => [number, number, number];
27
27
  export const sdkbuilder_withRestChainService: (a: number, b: number, c: number, d: number) => number;
28
28
  export const sdkbuilder_build: (a: number) => any;
29
+ export const rustsecp256k1_v0_10_0_context_create: (a: number) => number;
30
+ export const rustsecp256k1_v0_10_0_context_destroy: (a: number) => void;
31
+ export const rustsecp256k1_v0_10_0_default_illegal_callback_fn: (a: number, b: number) => void;
32
+ export const rustsecp256k1_v0_10_0_default_error_callback_fn: (a: number, b: number) => void;
33
+ export const task_worker_entry_point: (a: number) => [number, number];
34
+ export const __wbg_intounderlyingbytesource_free: (a: number, b: number) => void;
35
+ export const intounderlyingbytesource_type: (a: number) => number;
36
+ export const intounderlyingbytesource_autoAllocateChunkSize: (a: number) => number;
37
+ export const intounderlyingbytesource_start: (a: number, b: any) => void;
38
+ export const intounderlyingbytesource_pull: (a: number, b: any) => any;
39
+ export const intounderlyingbytesource_cancel: (a: number) => void;
29
40
  export const __wbg_intounderlyingsource_free: (a: number, b: number) => void;
30
41
  export const intounderlyingsource_pull: (a: number, b: any) => any;
31
42
  export const intounderlyingsource_cancel: (a: number) => void;
@@ -33,17 +44,6 @@ export const __wbg_intounderlyingsink_free: (a: number, b: number) => void;
33
44
  export const intounderlyingsink_write: (a: number, b: any) => any;
34
45
  export const intounderlyingsink_close: (a: number) => any;
35
46
  export const intounderlyingsink_abort: (a: number, b: any) => any;
36
- export const __wbg_intounderlyingbytesource_free: (a: number, b: number) => void;
37
- export const intounderlyingbytesource_type: (a: number) => number;
38
- export const intounderlyingbytesource_autoAllocateChunkSize: (a: number) => number;
39
- export const intounderlyingbytesource_start: (a: number, b: any) => void;
40
- export const intounderlyingbytesource_pull: (a: number, b: any) => any;
41
- export const intounderlyingbytesource_cancel: (a: number) => void;
42
- export const task_worker_entry_point: (a: number) => [number, number];
43
- export const rustsecp256k1_v0_10_0_context_create: (a: number) => number;
44
- export const rustsecp256k1_v0_10_0_context_destroy: (a: number) => void;
45
- export const rustsecp256k1_v0_10_0_default_illegal_callback_fn: (a: number, b: number) => void;
46
- export const rustsecp256k1_v0_10_0_default_error_callback_fn: (a: number, b: number) => void;
47
47
  export const __wbindgen_malloc: (a: number, b: number) => number;
48
48
  export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
49
49
  export const __wbindgen_free: (a: number, b: number, c: number) => void;
@@ -52,7 +52,7 @@ export const __externref_table_alloc: () => number;
52
52
  export const __wbindgen_export_5: WebAssembly.Table;
53
53
  export const __wbindgen_export_6: WebAssembly.Table;
54
54
  export const __externref_table_dealloc: (a: number) => void;
55
- export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h227664b52ef93e91: (a: number, b: number) => void;
56
- export const closure3245_externref_shim: (a: number, b: number, c: any) => void;
57
- export const closure3531_externref_shim: (a: number, b: number, c: any, d: any) => void;
55
+ export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hf7c49586be6831c4: (a: number, b: number) => void;
56
+ export const closure768_externref_shim: (a: number, b: number, c: any) => void;
57
+ export const closure446_externref_shim: (a: number, b: number, c: any, d: any) => void;
58
58
  export const __wbindgen_start: () => void;