@cartridge/controller-wasm 0.9.6 → 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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cartridge/controller-wasm",
3
- "version": "0.9.6",
3
+ "version": "0.10.0",
4
4
  "description": "Wasm bindings for Cartridge Controller and Session Account",
5
5
  "repository": {
6
6
  "type": "git",
@@ -855,13 +855,6 @@ export class JsChainConfig {
855
855
  if (Symbol.dispose) JsChainConfig.prototype[Symbol.dispose] = JsChainConfig.prototype.free;
856
856
 
857
857
  export class JsControllerError {
858
- static __wrap(ptr) {
859
- ptr = ptr >>> 0;
860
- const obj = Object.create(JsControllerError.prototype);
861
- obj.__wbg_ptr = ptr;
862
- JsControllerErrorFinalization.register(obj, obj.__wbg_ptr, obj);
863
- return obj;
864
- }
865
858
  __destroy_into_raw() {
866
859
  const ptr = this.__wbg_ptr;
867
860
  this.__wbg_ptr = 0;
@@ -1423,10 +1416,6 @@ export function __wbg_jschainconfig_unwrap(arg0) {
1423
1416
  const ret = JsChainConfig.__unwrap(getObject(arg0));
1424
1417
  return ret;
1425
1418
  }
1426
- export function __wbg_jscontrollererror_new(arg0) {
1427
- const ret = JsControllerError.__wrap(arg0);
1428
- return addHeapObject(ret);
1429
- }
1430
1419
  export function __wbg_key_84733a6ee7e4d63e() { return handleError(function (arg0, arg1, arg2) {
1431
1420
  const ret = getObject(arg1).key(arg2 >>> 0);
1432
1421
  var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
@@ -1508,7 +1497,7 @@ export function __wbg_new_d098e265629cd10f(arg0, arg1) {
1508
1497
  const a = state0.a;
1509
1498
  state0.a = 0;
1510
1499
  try {
1511
- return __wasm_bindgen_func_elem_11225(a, state0.b, arg0, arg1);
1500
+ return __wasm_bindgen_func_elem_11254(a, state0.b, arg0, arg1);
1512
1501
  } finally {
1513
1502
  state0.a = a;
1514
1503
  }
@@ -1519,6 +1508,10 @@ export function __wbg_new_d098e265629cd10f(arg0, arg1) {
1519
1508
  state0.a = state0.b = 0;
1520
1509
  }
1521
1510
  }
1511
+ export function __wbg_new_d15cb560a6a0e5f0(arg0, arg1) {
1512
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
1513
+ return addHeapObject(ret);
1514
+ }
1522
1515
  export function __wbg_new_from_slice_22da9388ac046e50(arg0, arg1) {
1523
1516
  const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
1524
1517
  return addHeapObject(ret);
@@ -1530,7 +1523,7 @@ export function __wbg_new_typed_aaaeaf29cf802876(arg0, arg1) {
1530
1523
  const a = state0.a;
1531
1524
  state0.a = 0;
1532
1525
  try {
1533
- return __wasm_bindgen_func_elem_11225(a, state0.b, arg0, arg1);
1526
+ return __wasm_bindgen_func_elem_11254(a, state0.b, arg0, arg1);
1534
1527
  } finally {
1535
1528
  state0.a = a;
1536
1529
  }
@@ -1782,23 +1775,23 @@ export function __wbg_versions_276b2795b1c6a219(arg0) {
1782
1775
  return addHeapObject(ret);
1783
1776
  }
1784
1777
  export function __wbindgen_cast_0000000000000001(arg0, arg1) {
1785
- // Cast intrinsic for `Closure(Closure { dtor_idx: 1043, function: Function { arguments: [], shim_idx: 1044, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1786
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_8959, __wasm_bindgen_func_elem_8968);
1778
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 1044, function: Function { arguments: [], shim_idx: 1045, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1779
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_8966, __wasm_bindgen_func_elem_8975);
1787
1780
  return addHeapObject(ret);
1788
1781
  }
1789
1782
  export function __wbindgen_cast_0000000000000002(arg0, arg1) {
1790
- // Cast intrinsic for `Closure(Closure { dtor_idx: 1077, function: Function { arguments: [Externref], shim_idx: 1206, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
1791
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_9103, __wasm_bindgen_func_elem_11220);
1783
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 1078, function: Function { arguments: [Externref], shim_idx: 1209, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
1784
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_9110, __wasm_bindgen_func_elem_11243);
1792
1785
  return addHeapObject(ret);
1793
1786
  }
1794
1787
  export function __wbindgen_cast_0000000000000003(arg0, arg1) {
1795
- // Cast intrinsic for `Closure(Closure { dtor_idx: 15, function: Function { arguments: [NamedExternref("Function")], shim_idx: 16, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
1796
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_770, __wasm_bindgen_func_elem_3395);
1788
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 15, function: Function { arguments: [NamedExternref("Function")], shim_idx: 17, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
1789
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_768, __wasm_bindgen_func_elem_3395);
1797
1790
  return addHeapObject(ret);
1798
1791
  }
1799
1792
  export function __wbindgen_cast_0000000000000004(arg0, arg1) {
1800
- // Cast intrinsic for `Closure(Closure { dtor_idx: 15, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 17, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`.
1801
- const ret = makeClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_770, __wasm_bindgen_func_elem_3394);
1793
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 15, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 16, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`.
1794
+ const ret = makeClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_768, __wasm_bindgen_func_elem_3394);
1802
1795
  return addHeapObject(ret);
1803
1796
  }
1804
1797
  export function __wbindgen_cast_0000000000000005(arg0) {
@@ -1828,18 +1821,18 @@ export function __wbindgen_object_clone_ref(arg0) {
1828
1821
  export function __wbindgen_object_drop_ref(arg0) {
1829
1822
  takeObject(arg0);
1830
1823
  }
1831
- function __wasm_bindgen_func_elem_8968(arg0, arg1) {
1832
- wasm.__wasm_bindgen_func_elem_8968(arg0, arg1);
1824
+ function __wasm_bindgen_func_elem_8975(arg0, arg1) {
1825
+ wasm.__wasm_bindgen_func_elem_8975(arg0, arg1);
1833
1826
  }
1834
1827
 
1835
1828
  function __wasm_bindgen_func_elem_3394(arg0, arg1, arg2) {
1836
1829
  wasm.__wasm_bindgen_func_elem_3394(arg0, arg1, addHeapObject(arg2));
1837
1830
  }
1838
1831
 
1839
- function __wasm_bindgen_func_elem_11220(arg0, arg1, arg2) {
1832
+ function __wasm_bindgen_func_elem_11243(arg0, arg1, arg2) {
1840
1833
  try {
1841
1834
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1842
- wasm.__wasm_bindgen_func_elem_11220(retptr, arg0, arg1, addHeapObject(arg2));
1835
+ wasm.__wasm_bindgen_func_elem_11243(retptr, arg0, arg1, addHeapObject(arg2));
1843
1836
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1844
1837
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1845
1838
  if (r1) {
@@ -1864,8 +1857,8 @@ function __wasm_bindgen_func_elem_3395(arg0, arg1, arg2) {
1864
1857
  }
1865
1858
  }
1866
1859
 
1867
- function __wasm_bindgen_func_elem_11225(arg0, arg1, arg2, arg3) {
1868
- wasm.__wasm_bindgen_func_elem_11225(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
1860
+ function __wasm_bindgen_func_elem_11254(arg0, arg1, arg2, arg3) {
1861
+ wasm.__wasm_bindgen_func_elem_11254(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
1869
1862
  }
1870
1863
 
1871
1864
 
Binary file
@@ -186,13 +186,6 @@ export const ErrorCode = Object.freeze({
186
186
  });
187
187
 
188
188
  export class JsControllerError {
189
- static __wrap(ptr) {
190
- ptr = ptr >>> 0;
191
- const obj = Object.create(JsControllerError.prototype);
192
- obj.__wbg_ptr = ptr;
193
- JsControllerErrorFinalization.register(obj, obj.__wbg_ptr, obj);
194
- return obj;
195
- }
196
189
  __destroy_into_raw() {
197
190
  const ptr = this.__wbg_ptr;
198
191
  this.__wbg_ptr = 0;
@@ -513,10 +506,6 @@ export function __wbg_iterator_d8f549ec8fb061b1() {
513
506
  const ret = Symbol.iterator;
514
507
  return addHeapObject(ret);
515
508
  }
516
- export function __wbg_jscontrollererror_new(arg0) {
517
- const ret = JsControllerError.__wrap(arg0);
518
- return addHeapObject(ret);
519
- }
520
509
  export function __wbg_length_ea16607d7b61445b(arg0) {
521
510
  const ret = getObject(arg0).length;
522
511
  return ret;
@@ -564,6 +553,10 @@ export function __wbg_new_c518c60af666645b() { return handleError(function () {
564
553
  const ret = new AbortController();
565
554
  return addHeapObject(ret);
566
555
  }, arguments); }
556
+ export function __wbg_new_d15cb560a6a0e5f0(arg0, arg1) {
557
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
558
+ return addHeapObject(ret);
559
+ }
567
560
  export function __wbg_new_from_slice_22da9388ac046e50(arg0, arg1) {
568
561
  const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
569
562
  return addHeapObject(ret);
@@ -575,7 +568,7 @@ export function __wbg_new_typed_aaaeaf29cf802876(arg0, arg1) {
575
568
  const a = state0.a;
576
569
  state0.a = 0;
577
570
  try {
578
- return __wasm_bindgen_func_elem_5906(a, state0.b, arg0, arg1);
571
+ return __wasm_bindgen_func_elem_5936(a, state0.b, arg0, arg1);
579
572
  } finally {
580
573
  state0.a = a;
581
574
  }
@@ -785,17 +778,17 @@ export function __wbg_versions_276b2795b1c6a219(arg0) {
785
778
  }
786
779
  export function __wbindgen_cast_0000000000000001(arg0, arg1) {
787
780
  // Cast intrinsic for `Closure(Closure { dtor_idx: 4, function: Function { arguments: [NamedExternref("Function")], shim_idx: 5, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
788
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_285, __wasm_bindgen_func_elem_1104);
781
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_283, __wasm_bindgen_func_elem_1106);
789
782
  return addHeapObject(ret);
790
783
  }
791
784
  export function __wbindgen_cast_0000000000000002(arg0, arg1) {
792
- // Cast intrinsic for `Closure(Closure { dtor_idx: 482, function: Function { arguments: [], shim_idx: 483, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
793
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_3959, __wasm_bindgen_func_elem_3968);
785
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 483, function: Function { arguments: [], shim_idx: 484, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
786
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_3970, __wasm_bindgen_func_elem_3979);
794
787
  return addHeapObject(ret);
795
788
  }
796
789
  export function __wbindgen_cast_0000000000000003(arg0, arg1) {
797
- // Cast intrinsic for `Closure(Closure { dtor_idx: 516, function: Function { arguments: [Externref], shim_idx: 639, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
798
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_4098, __wasm_bindgen_func_elem_5901);
790
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 517, function: Function { arguments: [Externref], shim_idx: 642, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
791
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_4109, __wasm_bindgen_func_elem_5925);
799
792
  return addHeapObject(ret);
800
793
  }
801
794
  export function __wbindgen_cast_0000000000000004(arg0) {
@@ -820,14 +813,14 @@ export function __wbindgen_object_clone_ref(arg0) {
820
813
  export function __wbindgen_object_drop_ref(arg0) {
821
814
  takeObject(arg0);
822
815
  }
823
- function __wasm_bindgen_func_elem_3968(arg0, arg1) {
824
- wasm.__wasm_bindgen_func_elem_3968(arg0, arg1);
816
+ function __wasm_bindgen_func_elem_3979(arg0, arg1) {
817
+ wasm.__wasm_bindgen_func_elem_3979(arg0, arg1);
825
818
  }
826
819
 
827
- function __wasm_bindgen_func_elem_1104(arg0, arg1, arg2) {
820
+ function __wasm_bindgen_func_elem_1106(arg0, arg1, arg2) {
828
821
  try {
829
822
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
830
- wasm.__wasm_bindgen_func_elem_1104(retptr, arg0, arg1, addHeapObject(arg2));
823
+ wasm.__wasm_bindgen_func_elem_1106(retptr, arg0, arg1, addHeapObject(arg2));
831
824
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
832
825
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
833
826
  if (r1) {
@@ -838,10 +831,10 @@ function __wasm_bindgen_func_elem_1104(arg0, arg1, arg2) {
838
831
  }
839
832
  }
840
833
 
841
- function __wasm_bindgen_func_elem_5901(arg0, arg1, arg2) {
834
+ function __wasm_bindgen_func_elem_5925(arg0, arg1, arg2) {
842
835
  try {
843
836
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
844
- wasm.__wasm_bindgen_func_elem_5901(retptr, arg0, arg1, addHeapObject(arg2));
837
+ wasm.__wasm_bindgen_func_elem_5925(retptr, arg0, arg1, addHeapObject(arg2));
845
838
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
846
839
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
847
840
  if (r1) {
@@ -852,8 +845,8 @@ function __wasm_bindgen_func_elem_5901(arg0, arg1, arg2) {
852
845
  }
853
846
  }
854
847
 
855
- function __wasm_bindgen_func_elem_5906(arg0, arg1, arg2, arg3) {
856
- wasm.__wasm_bindgen_func_elem_5906(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
848
+ function __wasm_bindgen_func_elem_5936(arg0, arg1, arg2, arg3) {
849
+ wasm.__wasm_bindgen_func_elem_5936(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
857
850
  }
858
851
 
859
852
 
Binary file