@breeztech/breez-sdk-spark 0.13.2-dev1 → 0.13.2-dev2

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
@@ -342,7 +342,7 @@ function __wbg_adapter_69(arg0, arg1) {
342
342
  }
343
343
 
344
344
  function __wbg_adapter_423(arg0, arg1, arg2, arg3) {
345
- wasm.closure657_externref_shim(arg0, arg1, arg2, arg3);
345
+ wasm.closure656_externref_shim(arg0, arg1, arg2, arg3);
346
346
  }
347
347
 
348
348
  const __wbindgen_enum_BinaryType = ["blob", "arraybuffer"];
@@ -2884,28 +2884,28 @@ export function __wbindgen_cb_drop(arg0) {
2884
2884
  return ret;
2885
2885
  };
2886
2886
 
2887
- export function __wbindgen_closure_wrapper10276(arg0, arg1, arg2) {
2887
+ export function __wbindgen_closure_wrapper10270(arg0, arg1, arg2) {
2888
2888
  const ret = makeMutClosure(arg0, arg1, 385, __wbg_adapter_69);
2889
2889
  return ret;
2890
2890
  };
2891
2891
 
2892
- export function __wbindgen_closure_wrapper15437(arg0, arg1, arg2) {
2892
+ export function __wbindgen_closure_wrapper15421(arg0, arg1, arg2) {
2893
2893
  const ret = makeMutClosure(arg0, arg1, 385, __wbg_adapter_64);
2894
2894
  return ret;
2895
2895
  };
2896
2896
 
2897
- export function __wbindgen_closure_wrapper5931(arg0, arg1, arg2) {
2897
+ export function __wbindgen_closure_wrapper5932(arg0, arg1, arg2) {
2898
2898
  const ret = makeMutClosure(arg0, arg1, 385, __wbg_adapter_64);
2899
2899
  return ret;
2900
2900
  };
2901
2901
 
2902
- export function __wbindgen_closure_wrapper5937(arg0, arg1, arg2) {
2902
+ export function __wbindgen_closure_wrapper5938(arg0, arg1, arg2) {
2903
2903
  const ret = makeMutClosure(arg0, arg1, 385, __wbg_adapter_64);
2904
2904
  return ret;
2905
2905
  };
2906
2906
 
2907
- export function __wbindgen_closure_wrapper7572(arg0, arg1, arg2) {
2908
- const ret = makeMutClosure(arg0, arg1, 866, __wbg_adapter_69);
2907
+ export function __wbindgen_closure_wrapper7573(arg0, arg1, arg2) {
2908
+ const ret = makeMutClosure(arg0, arg1, 865, __wbg_adapter_69);
2909
2909
  return ret;
2910
2910
  };
2911
2911
 
@@ -130,5 +130,5 @@ export const __wbindgen_export_7: WebAssembly.Table;
130
130
  export const __externref_table_dealloc: (a: number) => void;
131
131
  export const closure384_externref_shim: (a: number, b: number, c: any) => void;
132
132
  export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h140914a8cfe47e73: (a: number, b: number) => void;
133
- export const closure657_externref_shim: (a: number, b: number, c: any, d: any) => void;
133
+ export const closure656_externref_shim: (a: number, b: number, c: any, d: any) => void;
134
134
  export const __wbindgen_start: () => void;
@@ -325,7 +325,7 @@ function __wbg_adapter_69(arg0, arg1) {
325
325
  }
326
326
 
327
327
  function __wbg_adapter_423(arg0, arg1, arg2, arg3) {
328
- wasm.closure657_externref_shim(arg0, arg1, arg2, arg3);
328
+ wasm.closure656_externref_shim(arg0, arg1, arg2, arg3);
329
329
  }
330
330
 
331
331
  const __wbindgen_enum_BinaryType = ["blob", "arraybuffer"];
@@ -2639,24 +2639,24 @@ const imports = {
2639
2639
  const ret = false;
2640
2640
  return ret;
2641
2641
  },
2642
- __wbindgen_closure_wrapper10276: function(arg0, arg1, arg2) {
2642
+ __wbindgen_closure_wrapper10270: function(arg0, arg1, arg2) {
2643
2643
  const ret = makeMutClosure(arg0, arg1, 385, __wbg_adapter_69);
2644
2644
  return ret;
2645
2645
  },
2646
- __wbindgen_closure_wrapper15437: function(arg0, arg1, arg2) {
2646
+ __wbindgen_closure_wrapper15421: function(arg0, arg1, arg2) {
2647
2647
  const ret = makeMutClosure(arg0, arg1, 385, __wbg_adapter_64);
2648
2648
  return ret;
2649
2649
  },
2650
- __wbindgen_closure_wrapper5931: function(arg0, arg1, arg2) {
2650
+ __wbindgen_closure_wrapper5932: function(arg0, arg1, arg2) {
2651
2651
  const ret = makeMutClosure(arg0, arg1, 385, __wbg_adapter_64);
2652
2652
  return ret;
2653
2653
  },
2654
- __wbindgen_closure_wrapper5937: function(arg0, arg1, arg2) {
2654
+ __wbindgen_closure_wrapper5938: function(arg0, arg1, arg2) {
2655
2655
  const ret = makeMutClosure(arg0, arg1, 385, __wbg_adapter_64);
2656
2656
  return ret;
2657
2657
  },
2658
- __wbindgen_closure_wrapper7572: function(arg0, arg1, arg2) {
2659
- const ret = makeMutClosure(arg0, arg1, 866, __wbg_adapter_69);
2658
+ __wbindgen_closure_wrapper7573: function(arg0, arg1, arg2) {
2659
+ const ret = makeMutClosure(arg0, arg1, 865, __wbg_adapter_69);
2660
2660
  return ret;
2661
2661
  },
2662
2662
  __wbindgen_debug_string: function(arg0, arg1) {
Binary file
@@ -130,5 +130,5 @@ export const __wbindgen_export_7: WebAssembly.Table;
130
130
  export const __externref_table_dealloc: (a: number) => void;
131
131
  export const closure384_externref_shim: (a: number, b: number, c: any) => void;
132
132
  export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h140914a8cfe47e73: (a: number, b: number) => void;
133
- export const closure657_externref_shim: (a: number, b: number, c: any, d: any) => void;
133
+ export const closure656_externref_shim: (a: number, b: number, c: any, d: any) => void;
134
134
  export const __wbindgen_start: () => void;
@@ -338,7 +338,7 @@ function __wbg_adapter_69(arg0, arg1) {
338
338
  }
339
339
 
340
340
  function __wbg_adapter_423(arg0, arg1, arg2, arg3) {
341
- wasm.closure657_externref_shim(arg0, arg1, arg2, arg3);
341
+ wasm.closure656_externref_shim(arg0, arg1, arg2, arg3);
342
342
  }
343
343
 
344
344
  const __wbindgen_enum_BinaryType = ["blob", "arraybuffer"];
@@ -2888,28 +2888,28 @@ module.exports.__wbindgen_cb_drop = function(arg0) {
2888
2888
  return ret;
2889
2889
  };
2890
2890
 
2891
- module.exports.__wbindgen_closure_wrapper10276 = function(arg0, arg1, arg2) {
2891
+ module.exports.__wbindgen_closure_wrapper10270 = function(arg0, arg1, arg2) {
2892
2892
  const ret = makeMutClosure(arg0, arg1, 385, __wbg_adapter_69);
2893
2893
  return ret;
2894
2894
  };
2895
2895
 
2896
- module.exports.__wbindgen_closure_wrapper15437 = function(arg0, arg1, arg2) {
2896
+ module.exports.__wbindgen_closure_wrapper15421 = function(arg0, arg1, arg2) {
2897
2897
  const ret = makeMutClosure(arg0, arg1, 385, __wbg_adapter_64);
2898
2898
  return ret;
2899
2899
  };
2900
2900
 
2901
- module.exports.__wbindgen_closure_wrapper5931 = function(arg0, arg1, arg2) {
2901
+ module.exports.__wbindgen_closure_wrapper5932 = function(arg0, arg1, arg2) {
2902
2902
  const ret = makeMutClosure(arg0, arg1, 385, __wbg_adapter_64);
2903
2903
  return ret;
2904
2904
  };
2905
2905
 
2906
- module.exports.__wbindgen_closure_wrapper5937 = function(arg0, arg1, arg2) {
2906
+ module.exports.__wbindgen_closure_wrapper5938 = function(arg0, arg1, arg2) {
2907
2907
  const ret = makeMutClosure(arg0, arg1, 385, __wbg_adapter_64);
2908
2908
  return ret;
2909
2909
  };
2910
2910
 
2911
- module.exports.__wbindgen_closure_wrapper7572 = function(arg0, arg1, arg2) {
2912
- const ret = makeMutClosure(arg0, arg1, 866, __wbg_adapter_69);
2911
+ module.exports.__wbindgen_closure_wrapper7573 = function(arg0, arg1, arg2) {
2912
+ const ret = makeMutClosure(arg0, arg1, 865, __wbg_adapter_69);
2913
2913
  return ret;
2914
2914
  };
2915
2915
 
Binary file
@@ -130,5 +130,5 @@ export const __wbindgen_export_7: WebAssembly.Table;
130
130
  export const __externref_table_dealloc: (a: number) => void;
131
131
  export const closure384_externref_shim: (a: number, b: number, c: any) => void;
132
132
  export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h140914a8cfe47e73: (a: number, b: number) => void;
133
- export const closure657_externref_shim: (a: number, b: number, c: any, d: any) => void;
133
+ export const closure656_externref_shim: (a: number, b: number, c: any, d: any) => void;
134
134
  export const __wbindgen_start: () => void;
@@ -410,6 +410,29 @@ class MigrationManager {
410
410
  name: "Add conversion_status to payment_metadata",
411
411
  sql: `ALTER TABLE payment_metadata ADD COLUMN conversion_status TEXT`,
412
412
  },
413
+ {
414
+ name: "Drop foreign key on payment_metadata",
415
+ sql: [
416
+ `CREATE TABLE payment_metadata_new (
417
+ payment_id TEXT PRIMARY KEY,
418
+ parent_payment_id TEXT,
419
+ lnurl_pay_info TEXT,
420
+ lnurl_description TEXT,
421
+ lnurl_withdraw_info TEXT,
422
+ conversion_info TEXT,
423
+ conversion_status TEXT
424
+ )`,
425
+ `INSERT INTO payment_metadata_new
426
+ (payment_id, parent_payment_id, lnurl_pay_info, lnurl_description,
427
+ lnurl_withdraw_info, conversion_info, conversion_status)
428
+ SELECT payment_id, parent_payment_id, lnurl_pay_info, lnurl_description,
429
+ lnurl_withdraw_info, conversion_info, conversion_status
430
+ FROM payment_metadata`,
431
+ `DROP TABLE payment_metadata`,
432
+ `ALTER TABLE payment_metadata_new RENAME TO payment_metadata`,
433
+ `CREATE INDEX idx_payment_metadata_payment_id ON payment_metadata(payment_id)`,
434
+ ],
435
+ },
413
436
  ];
414
437
  }
415
438
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@breeztech/breez-sdk-spark",
3
- "version": "0.13.2-dev1",
3
+ "version": "0.13.2-dev2",
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)",
@@ -1671,7 +1671,7 @@ export interface InitOutput {
1671
1671
  readonly __externref_table_dealloc: (a: number) => void;
1672
1672
  readonly closure384_externref_shim: (a: number, b: number, c: any) => void;
1673
1673
  readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h140914a8cfe47e73: (a: number, b: number) => void;
1674
- readonly closure657_externref_shim: (a: number, b: number, c: any, d: any) => void;
1674
+ readonly closure656_externref_shim: (a: number, b: number, c: any, d: any) => void;
1675
1675
  readonly __wbindgen_start: () => void;
1676
1676
  }
1677
1677
 
@@ -334,7 +334,7 @@ function __wbg_adapter_69(arg0, arg1) {
334
334
  }
335
335
 
336
336
  function __wbg_adapter_423(arg0, arg1, arg2, arg3) {
337
- wasm.closure657_externref_shim(arg0, arg1, arg2, arg3);
337
+ wasm.closure656_externref_shim(arg0, arg1, arg2, arg3);
338
338
  }
339
339
 
340
340
  const __wbindgen_enum_BinaryType = ["blob", "arraybuffer"];
@@ -2680,24 +2680,24 @@ function __wbg_get_imports() {
2680
2680
  const ret = false;
2681
2681
  return ret;
2682
2682
  };
2683
- imports.wbg.__wbindgen_closure_wrapper10276 = function(arg0, arg1, arg2) {
2683
+ imports.wbg.__wbindgen_closure_wrapper10270 = function(arg0, arg1, arg2) {
2684
2684
  const ret = makeMutClosure(arg0, arg1, 385, __wbg_adapter_69);
2685
2685
  return ret;
2686
2686
  };
2687
- imports.wbg.__wbindgen_closure_wrapper15437 = function(arg0, arg1, arg2) {
2687
+ imports.wbg.__wbindgen_closure_wrapper15421 = function(arg0, arg1, arg2) {
2688
2688
  const ret = makeMutClosure(arg0, arg1, 385, __wbg_adapter_64);
2689
2689
  return ret;
2690
2690
  };
2691
- imports.wbg.__wbindgen_closure_wrapper5931 = function(arg0, arg1, arg2) {
2691
+ imports.wbg.__wbindgen_closure_wrapper5932 = function(arg0, arg1, arg2) {
2692
2692
  const ret = makeMutClosure(arg0, arg1, 385, __wbg_adapter_64);
2693
2693
  return ret;
2694
2694
  };
2695
- imports.wbg.__wbindgen_closure_wrapper5937 = function(arg0, arg1, arg2) {
2695
+ imports.wbg.__wbindgen_closure_wrapper5938 = function(arg0, arg1, arg2) {
2696
2696
  const ret = makeMutClosure(arg0, arg1, 385, __wbg_adapter_64);
2697
2697
  return ret;
2698
2698
  };
2699
- imports.wbg.__wbindgen_closure_wrapper7572 = function(arg0, arg1, arg2) {
2700
- const ret = makeMutClosure(arg0, arg1, 866, __wbg_adapter_69);
2699
+ imports.wbg.__wbindgen_closure_wrapper7573 = function(arg0, arg1, arg2) {
2700
+ const ret = makeMutClosure(arg0, arg1, 865, __wbg_adapter_69);
2701
2701
  return ret;
2702
2702
  };
2703
2703
  imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
Binary file
@@ -130,5 +130,5 @@ export const __wbindgen_export_7: WebAssembly.Table;
130
130
  export const __externref_table_dealloc: (a: number) => void;
131
131
  export const closure384_externref_shim: (a: number, b: number, c: any) => void;
132
132
  export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h140914a8cfe47e73: (a: number, b: number) => void;
133
- export const closure657_externref_shim: (a: number, b: number, c: any, d: any) => void;
133
+ export const closure656_externref_shim: (a: number, b: number, c: any, d: any) => void;
134
134
  export const __wbindgen_start: () => void;