@bitcredit/bcr-ebill-wasm 0.3.14 → 0.3.15

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.
package/index.d.ts CHANGED
@@ -614,6 +614,7 @@ export interface NotificationFilters {
614
614
  export interface FileWeb {
615
615
  name: string;
616
616
  hash: string;
617
+ nostr_hash: string;
617
618
  }
618
619
 
619
620
  export interface BinaryFileResponse {
@@ -725,7 +726,7 @@ export class Bill {
725
726
  request_to_accept(payload: RequestToAcceptBitcreditBillPayload): Promise<void>;
726
727
  accept(payload: AcceptBitcreditBillPayload): Promise<void>;
727
728
  request_to_mint(payload: RequestToMintBitcreditBillPayload): Promise<void>;
728
- mint_state(id: string): Promise<MintRequestStateWeb>;
729
+ mint_state(id: string): Promise<MintRequestStateResponse>;
729
730
  check_mint_state(id: string): Promise<void>;
730
731
  cancel_request_to_mint(mint_request_id: string): Promise<void>;
731
732
  accept_mint_offer(mint_request_id: string): Promise<void>;
@@ -906,12 +907,12 @@ export interface InitOutput {
906
907
  readonly api_contact: () => number;
907
908
  readonly api_company: () => number;
908
909
  readonly api_quote: () => number;
909
- readonly __wbg_notification_free: (a: number, b: number) => void;
910
910
  readonly __wbg_identity_free: (a: number, b: number) => void;
911
- readonly __wbg_general_free: (a: number, b: number) => void;
911
+ readonly __wbg_bill_free: (a: number, b: number) => void;
912
+ readonly __wbg_notification_free: (a: number, b: number) => void;
912
913
  readonly __wbg_contact_free: (a: number, b: number) => void;
913
914
  readonly __wbg_company_free: (a: number, b: number) => void;
914
- readonly __wbg_bill_free: (a: number, b: number) => void;
915
+ readonly __wbg_general_free: (a: number, b: number) => void;
915
916
  readonly __wbg_quote_free: (a: number, b: number) => void;
916
917
  readonly __wbindgen_malloc: (a: number, b: number) => number;
917
918
  readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
@@ -921,10 +922,10 @@ export interface InitOutput {
921
922
  readonly __wbindgen_free: (a: number, b: number, c: number) => void;
922
923
  readonly __wbindgen_export_6: WebAssembly.Table;
923
924
  readonly __externref_table_dealloc: (a: number) => void;
924
- readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h59ab8c65b0857936: (a: number, b: number) => void;
925
- readonly closure326_externref_shim: (a: number, b: number, c: any) => void;
925
+ readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h80a8209a6c10d2d7: (a: number, b: number) => void;
926
+ readonly closure315_externref_shim: (a: number, b: number, c: any) => void;
926
927
  readonly closure817_externref_shim_multivalue_shim: (a: number, b: number, c: any) => [number, number];
927
- readonly closure592_externref_shim: (a: number, b: number, c: any, d: any) => void;
928
+ readonly closure591_externref_shim: (a: number, b: number, c: any, d: any) => void;
928
929
  readonly __wbindgen_start: () => void;
929
930
  }
930
931
 
package/index.js CHANGED
@@ -228,11 +228,11 @@ export function task_worker_entry_point(ptr) {
228
228
  }
229
229
 
230
230
  function __wbg_adapter_54(arg0, arg1) {
231
- wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h59ab8c65b0857936(arg0, arg1);
231
+ wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h80a8209a6c10d2d7(arg0, arg1);
232
232
  }
233
233
 
234
234
  function __wbg_adapter_57(arg0, arg1, arg2) {
235
- wasm.closure326_externref_shim(arg0, arg1, arg2);
235
+ wasm.closure315_externref_shim(arg0, arg1, arg2);
236
236
  }
237
237
 
238
238
  function __wbg_adapter_64(arg0, arg1, arg2) {
@@ -243,7 +243,7 @@ function __wbg_adapter_64(arg0, arg1, arg2) {
243
243
  }
244
244
 
245
245
  function __wbg_adapter_251(arg0, arg1, arg2, arg3) {
246
- wasm.closure592_externref_shim(arg0, arg1, arg2, arg3);
246
+ wasm.closure591_externref_shim(arg0, arg1, arg2, arg3);
247
247
  }
248
248
 
249
249
  /**
@@ -583,7 +583,7 @@ export class Bill {
583
583
  }
584
584
  /**
585
585
  * @param {string} id
586
- * @returns {MintRequestStateWeb}
586
+ * @returns {MintRequestStateResponse}
587
587
  */
588
588
  mint_state(id) {
589
589
  const ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -1299,7 +1299,7 @@ function __wbg_get_imports() {
1299
1299
  const ret = clearInterval(arg0);
1300
1300
  return ret;
1301
1301
  };
1302
- imports.wbg.__wbg_clearTimeout_59db5cacdf248b98 = function(arg0) {
1302
+ imports.wbg.__wbg_clearTimeout_121ece162c044c80 = function(arg0) {
1303
1303
  const ret = clearTimeout(arg0);
1304
1304
  return ret;
1305
1305
  };
@@ -1362,7 +1362,7 @@ function __wbg_get_imports() {
1362
1362
  const ret = Object.entries(arg0);
1363
1363
  return ret;
1364
1364
  };
1365
- imports.wbg.__wbg_error_243f933071f88b86 = function(arg0, arg1) {
1365
+ imports.wbg.__wbg_error_1d3b71fa51de155e = function(arg0, arg1) {
1366
1366
  console.error(getStringFromWasm0(arg0, arg1));
1367
1367
  };
1368
1368
  imports.wbg.__wbg_error_7534b8e9a36f1ab4 = function(arg0, arg1) {
@@ -1383,12 +1383,12 @@ function __wbg_get_imports() {
1383
1383
  const ret = arg0.error;
1384
1384
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1385
1385
  }, arguments) };
1386
- imports.wbg.__wbg_fetch_509096533071c657 = function(arg0, arg1) {
1387
- const ret = arg0.fetch(arg1);
1386
+ imports.wbg.__wbg_fetch_43e69ddf509149f8 = function(arg0) {
1387
+ const ret = fetch(arg0);
1388
1388
  return ret;
1389
1389
  };
1390
- imports.wbg.__wbg_fetch_c5c80d27f943f3fc = function(arg0) {
1391
- const ret = fetch(arg0);
1390
+ imports.wbg.__wbg_fetch_509096533071c657 = function(arg0, arg1) {
1391
+ const ret = arg0.fetch(arg1);
1392
1392
  return ret;
1393
1393
  };
1394
1394
  imports.wbg.__wbg_getRandomValues_3c9c0d586e575a16 = function() { return handleError(function (arg0, arg1) {
@@ -1744,14 +1744,14 @@ function __wbg_get_imports() {
1744
1744
  const ret = setInterval(arg0, arg1);
1745
1745
  return ret;
1746
1746
  }, arguments) };
1747
- imports.wbg.__wbg_setTimeout_d8ea9e3c1b1cb3b6 = function(arg0, arg1) {
1748
- const ret = setTimeout(arg0, arg1);
1749
- return ret;
1750
- };
1751
1747
  imports.wbg.__wbg_setTimeout_db2dbaeefb6f39c7 = function() { return handleError(function (arg0, arg1) {
1752
1748
  const ret = setTimeout(arg0, arg1);
1753
1749
  return ret;
1754
1750
  }, arguments) };
1751
+ imports.wbg.__wbg_setTimeout_e64b2910d9d7169a = function(arg0, arg1) {
1752
+ const ret = setTimeout(arg0, arg1);
1753
+ return ret;
1754
+ };
1755
1755
  imports.wbg.__wbg_setTimeout_efd7c11531df1743 = function() { return handleError(function (arg0, arg1, arg2) {
1756
1756
  const ret = arg0.setTimeout(arg1, arg2);
1757
1757
  return ret;
@@ -1960,32 +1960,32 @@ function __wbg_get_imports() {
1960
1960
  const ret = false;
1961
1961
  return ret;
1962
1962
  };
1963
- imports.wbg.__wbindgen_closure_wrapper10651 = function(arg0, arg1, arg2) {
1963
+ imports.wbg.__wbindgen_closure_wrapper10702 = function(arg0, arg1, arg2) {
1964
1964
  const ret = makeMutClosure(arg0, arg1, 818, __wbg_adapter_64);
1965
1965
  return ret;
1966
1966
  };
1967
- imports.wbg.__wbindgen_closure_wrapper19354 = function(arg0, arg1, arg2) {
1968
- const ret = makeMutClosure(arg0, arg1, 582, __wbg_adapter_57);
1967
+ imports.wbg.__wbindgen_closure_wrapper19408 = function(arg0, arg1, arg2) {
1968
+ const ret = makeMutClosure(arg0, arg1, 581, __wbg_adapter_57);
1969
1969
  return ret;
1970
1970
  };
1971
- imports.wbg.__wbindgen_closure_wrapper19395 = function(arg0, arg1, arg2) {
1972
- const ret = makeMutClosure(arg0, arg1, 582, __wbg_adapter_54);
1971
+ imports.wbg.__wbindgen_closure_wrapper19449 = function(arg0, arg1, arg2) {
1972
+ const ret = makeMutClosure(arg0, arg1, 581, __wbg_adapter_54);
1973
1973
  return ret;
1974
1974
  };
1975
- imports.wbg.__wbindgen_closure_wrapper2122 = function(arg0, arg1, arg2) {
1976
- const ret = makeMutClosure(arg0, arg1, 582, __wbg_adapter_54);
1975
+ imports.wbg.__wbindgen_closure_wrapper2106 = function(arg0, arg1, arg2) {
1976
+ const ret = makeMutClosure(arg0, arg1, 581, __wbg_adapter_54);
1977
1977
  return ret;
1978
1978
  };
1979
- imports.wbg.__wbindgen_closure_wrapper2823 = function(arg0, arg1, arg2) {
1980
- const ret = makeMutClosure(arg0, arg1, 327, __wbg_adapter_57);
1979
+ imports.wbg.__wbindgen_closure_wrapper2811 = function(arg0, arg1, arg2) {
1980
+ const ret = makeMutClosure(arg0, arg1, 316, __wbg_adapter_57);
1981
1981
  return ret;
1982
1982
  };
1983
- imports.wbg.__wbindgen_closure_wrapper2951 = function(arg0, arg1, arg2) {
1983
+ imports.wbg.__wbindgen_closure_wrapper2938 = function(arg0, arg1, arg2) {
1984
1984
  const ret = makeMutClosure(arg0, arg1, 815, __wbg_adapter_54);
1985
1985
  return ret;
1986
1986
  };
1987
- imports.wbg.__wbindgen_closure_wrapper9613 = function(arg0, arg1, arg2) {
1988
- const ret = makeMutClosure(arg0, arg1, 668, __wbg_adapter_57);
1987
+ imports.wbg.__wbindgen_closure_wrapper9664 = function(arg0, arg1, arg2) {
1988
+ const ret = makeMutClosure(arg0, arg1, 669, __wbg_adapter_57);
1989
1989
  return ret;
1990
1990
  };
1991
1991
  imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
package/index_bg.wasm CHANGED
Binary file
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bitcredit/bcr-ebill-wasm",
3
3
  "type": "module",
4
- "version": "0.3.14",
4
+ "version": "0.3.15",
5
5
  "license": "MIT",
6
6
  "files": [
7
7
  "index_bg.wasm",