@parity/truapi-provider 0.1.1-dev-20260908.0 → 0.1.1-dev-20260908.1
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.
|
@@ -197,18 +197,19 @@ export interface InitOutput {
|
|
|
197
197
|
readonly networkchains_people: (a: number, b: number) => void;
|
|
198
198
|
readonly networkchains_relay: (a: number, b: number) => void;
|
|
199
199
|
readonly setLogLevel: (a: number, b: number) => void;
|
|
200
|
-
readonly
|
|
201
|
-
readonly
|
|
202
|
-
readonly
|
|
203
|
-
readonly
|
|
204
|
-
readonly
|
|
205
|
-
readonly
|
|
200
|
+
readonly __wasm_bindgen_func_elem_19487: (a: number, b: number, c: number, d: number) => void;
|
|
201
|
+
readonly __wasm_bindgen_func_elem_19489: (a: number, b: number, c: number, d: number) => void;
|
|
202
|
+
readonly __wasm_bindgen_func_elem_3887: (a: number, b: number, c: number) => void;
|
|
203
|
+
readonly __wasm_bindgen_func_elem_3887_2: (a: number, b: number, c: number) => void;
|
|
204
|
+
readonly __wasm_bindgen_func_elem_3887_3: (a: number, b: number, c: number) => void;
|
|
205
|
+
readonly __wasm_bindgen_func_elem_3887_4: (a: number, b: number, c: number) => void;
|
|
206
|
+
readonly __wasm_bindgen_func_elem_7441: (a: number, b: number) => void;
|
|
206
207
|
readonly __wbindgen_export: (a: number, b: number) => number;
|
|
207
208
|
readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
208
209
|
readonly __wbindgen_export3: (a: number) => void;
|
|
209
|
-
readonly __wbindgen_export4: (a: number, b: number
|
|
210
|
-
readonly __wbindgen_export5: (a: number, b: number) => void;
|
|
210
|
+
readonly __wbindgen_export4: (a: number, b: number) => void;
|
|
211
211
|
readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
|
|
212
|
+
readonly __wbindgen_export5: (a: number, b: number, c: number) => void;
|
|
212
213
|
}
|
|
213
214
|
|
|
214
215
|
export type SyncInitInput = BufferSource | WebAssembly.Module;
|
package/dist/truapi_provider.js
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
/* @ts-self-types="./truapi_provider.d.ts" */
|
|
2
|
-
import { warmStoreLoad, warmStoreSave } from './snippets/truapi-provider-33b01a9e5797ba85/inline0.js';
|
|
3
|
-
|
|
4
2
|
|
|
5
3
|
/**
|
|
6
4
|
* Collects genesis-hash to chain-source registrations from JS.
|
|
@@ -356,7 +354,7 @@ export class NetworkChains {
|
|
|
356
354
|
return getStringFromWasm0(r0, r1);
|
|
357
355
|
} finally {
|
|
358
356
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
359
|
-
wasm.
|
|
357
|
+
wasm.__wbindgen_export5(deferred1_0, deferred1_1, 1);
|
|
360
358
|
}
|
|
361
359
|
}
|
|
362
360
|
/**
|
|
@@ -376,7 +374,7 @@ export class NetworkChains {
|
|
|
376
374
|
return getStringFromWasm0(r0, r1);
|
|
377
375
|
} finally {
|
|
378
376
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
379
|
-
wasm.
|
|
377
|
+
wasm.__wbindgen_export5(deferred1_0, deferred1_1, 1);
|
|
380
378
|
}
|
|
381
379
|
}
|
|
382
380
|
/**
|
|
@@ -396,7 +394,7 @@ export class NetworkChains {
|
|
|
396
394
|
return getStringFromWasm0(r0, r1);
|
|
397
395
|
} finally {
|
|
398
396
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
399
|
-
wasm.
|
|
397
|
+
wasm.__wbindgen_export5(deferred1_0, deferred1_1, 1);
|
|
400
398
|
}
|
|
401
399
|
}
|
|
402
400
|
/**
|
|
@@ -416,7 +414,7 @@ export class NetworkChains {
|
|
|
416
414
|
return getStringFromWasm0(r0, r1);
|
|
417
415
|
} finally {
|
|
418
416
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
419
|
-
wasm.
|
|
417
|
+
wasm.__wbindgen_export5(deferred1_0, deferred1_1, 1);
|
|
420
418
|
}
|
|
421
419
|
}
|
|
422
420
|
}
|
|
@@ -495,6 +493,9 @@ function __wbg_get_imports() {
|
|
|
495
493
|
const ret = clearTimeout(takeObject(arg0));
|
|
496
494
|
return addHeapObject(ret);
|
|
497
495
|
},
|
|
496
|
+
__wbg_close_4c3686e8e8c6d353: function(arg0) {
|
|
497
|
+
getObject(arg0).close();
|
|
498
|
+
},
|
|
498
499
|
__wbg_close_c65ca0257e895318: function() { return handleError(function (arg0) {
|
|
499
500
|
getObject(arg0).close();
|
|
500
501
|
}, arguments); },
|
|
@@ -506,6 +507,10 @@ function __wbg_get_imports() {
|
|
|
506
507
|
const ret = Connection.__wrap(arg0);
|
|
507
508
|
return addHeapObject(ret);
|
|
508
509
|
},
|
|
510
|
+
__wbg_createObjectStore_ff668af6e79f0433: function() { return handleError(function (arg0, arg1, arg2) {
|
|
511
|
+
const ret = getObject(arg0).createObjectStore(getStringFromWasm0(arg1, arg2));
|
|
512
|
+
return addHeapObject(ret);
|
|
513
|
+
}, arguments); },
|
|
509
514
|
__wbg_crypto_38df2bab126b63dc: function(arg0) {
|
|
510
515
|
const ret = getObject(arg0).crypto;
|
|
511
516
|
return addHeapObject(ret);
|
|
@@ -527,6 +532,10 @@ function __wbg_get_imports() {
|
|
|
527
532
|
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
528
533
|
return addHeapObject(ret);
|
|
529
534
|
}, arguments); },
|
|
535
|
+
__wbg_get_cefddcaffca4fbb7: function() { return handleError(function (arg0, arg1) {
|
|
536
|
+
const ret = getObject(arg0).get(getObject(arg1));
|
|
537
|
+
return addHeapObject(ret);
|
|
538
|
+
}, arguments); },
|
|
530
539
|
__wbg_info_eadbe775a8e2e9eb: function(arg0) {
|
|
531
540
|
console.info(getObject(arg0));
|
|
532
541
|
},
|
|
@@ -540,6 +549,36 @@ function __wbg_get_imports() {
|
|
|
540
549
|
const ret = result;
|
|
541
550
|
return ret;
|
|
542
551
|
},
|
|
552
|
+
__wbg_instanceof_IdbDatabase_1cc734ba1b040dd7: function(arg0) {
|
|
553
|
+
let result;
|
|
554
|
+
try {
|
|
555
|
+
result = getObject(arg0) instanceof IDBDatabase;
|
|
556
|
+
} catch (_) {
|
|
557
|
+
result = false;
|
|
558
|
+
}
|
|
559
|
+
const ret = result;
|
|
560
|
+
return ret;
|
|
561
|
+
},
|
|
562
|
+
__wbg_instanceof_IdbFactory_85ccbbe95ef25434: function(arg0) {
|
|
563
|
+
let result;
|
|
564
|
+
try {
|
|
565
|
+
result = getObject(arg0) instanceof IDBFactory;
|
|
566
|
+
} catch (_) {
|
|
567
|
+
result = false;
|
|
568
|
+
}
|
|
569
|
+
const ret = result;
|
|
570
|
+
return ret;
|
|
571
|
+
},
|
|
572
|
+
__wbg_instanceof_IdbRequest_fe7a4cb10800af5b: function(arg0) {
|
|
573
|
+
let result;
|
|
574
|
+
try {
|
|
575
|
+
result = getObject(arg0) instanceof IDBRequest;
|
|
576
|
+
} catch (_) {
|
|
577
|
+
result = false;
|
|
578
|
+
}
|
|
579
|
+
const ret = result;
|
|
580
|
+
return ret;
|
|
581
|
+
},
|
|
543
582
|
__wbg_length_1f0964f4a5e2c6d8: function(arg0) {
|
|
544
583
|
const ret = getObject(arg0).length;
|
|
545
584
|
return ret;
|
|
@@ -563,7 +602,7 @@ function __wbg_get_imports() {
|
|
|
563
602
|
const a = state0.a;
|
|
564
603
|
state0.a = 0;
|
|
565
604
|
try {
|
|
566
|
-
return
|
|
605
|
+
return __wasm_bindgen_func_elem_19489(a, state0.b, arg0, arg1);
|
|
567
606
|
} finally {
|
|
568
607
|
state0.a = a;
|
|
569
608
|
}
|
|
@@ -590,6 +629,14 @@ function __wbg_get_imports() {
|
|
|
590
629
|
const ret = getObject(arg0).now();
|
|
591
630
|
return ret;
|
|
592
631
|
},
|
|
632
|
+
__wbg_objectStore_d5f47956b6c741e3: function() { return handleError(function (arg0, arg1, arg2) {
|
|
633
|
+
const ret = getObject(arg0).objectStore(getStringFromWasm0(arg1, arg2));
|
|
634
|
+
return addHeapObject(ret);
|
|
635
|
+
}, arguments); },
|
|
636
|
+
__wbg_open_72e5234a49d5f85d: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
637
|
+
const ret = getObject(arg0).open(getStringFromWasm0(arg1, arg2), arg3 >>> 0);
|
|
638
|
+
return addHeapObject(ret);
|
|
639
|
+
}, arguments); },
|
|
593
640
|
__wbg_performance_3fcf6e32a7e1ed0a: function(arg0) {
|
|
594
641
|
const ret = getObject(arg0).performance;
|
|
595
642
|
return addHeapObject(ret);
|
|
@@ -601,6 +648,10 @@ function __wbg_get_imports() {
|
|
|
601
648
|
__wbg_prototypesetcall_4770620bbe4688a0: function(arg0, arg1, arg2) {
|
|
602
649
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), getObject(arg2));
|
|
603
650
|
},
|
|
651
|
+
__wbg_put_a368805e3dcab3a7: function() { return handleError(function (arg0, arg1, arg2) {
|
|
652
|
+
const ret = getObject(arg0).put(getObject(arg1), getObject(arg2));
|
|
653
|
+
return addHeapObject(ret);
|
|
654
|
+
}, arguments); },
|
|
604
655
|
__wbg_queueMicrotask_0ab5b2d2393e99b9: function(arg0) {
|
|
605
656
|
const ret = getObject(arg0).queueMicrotask;
|
|
606
657
|
return addHeapObject(ret);
|
|
@@ -623,6 +674,10 @@ function __wbg_get_imports() {
|
|
|
623
674
|
const ret = Promise.resolve(getObject(arg0));
|
|
624
675
|
return addHeapObject(ret);
|
|
625
676
|
},
|
|
677
|
+
__wbg_result_2b1294a2bf8dc773: function() { return handleError(function (arg0) {
|
|
678
|
+
const ret = getObject(arg0).result;
|
|
679
|
+
return addHeapObject(ret);
|
|
680
|
+
}, arguments); },
|
|
626
681
|
__wbg_send_a321b376d40ec867: function() { return handleError(function (arg0, arg1, arg2) {
|
|
627
682
|
getObject(arg0).send(getArrayU8FromWasm0(arg1, arg2));
|
|
628
683
|
}, arguments); },
|
|
@@ -639,6 +694,9 @@ function __wbg_get_imports() {
|
|
|
639
694
|
__wbg_set_onclose_f706475385ecce07: function(arg0, arg1) {
|
|
640
695
|
getObject(arg0).onclose = getObject(arg1);
|
|
641
696
|
},
|
|
697
|
+
__wbg_set_onerror_3488a474171ed56d: function(arg0, arg1) {
|
|
698
|
+
getObject(arg0).onerror = getObject(arg1);
|
|
699
|
+
},
|
|
642
700
|
__wbg_set_onerror_9f5773fd31512333: function(arg0, arg1) {
|
|
643
701
|
getObject(arg0).onerror = getObject(arg1);
|
|
644
702
|
},
|
|
@@ -648,6 +706,12 @@ function __wbg_get_imports() {
|
|
|
648
706
|
__wbg_set_onopen_4f65470ae522a61a: function(arg0, arg1) {
|
|
649
707
|
getObject(arg0).onopen = getObject(arg1);
|
|
650
708
|
},
|
|
709
|
+
__wbg_set_onsuccess_cd0c3642a2873e66: function(arg0, arg1) {
|
|
710
|
+
getObject(arg0).onsuccess = getObject(arg1);
|
|
711
|
+
},
|
|
712
|
+
__wbg_set_onupgradeneeded_7b2cf4ba1c57e655: function(arg0, arg1) {
|
|
713
|
+
getObject(arg0).onupgradeneeded = getObject(arg1);
|
|
714
|
+
},
|
|
651
715
|
__wbg_static_accessor_GLOBAL_4ef717fb391d88b7: function() {
|
|
652
716
|
const ret = typeof global === 'undefined' ? null : global;
|
|
653
717
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
@@ -668,6 +732,10 @@ function __wbg_get_imports() {
|
|
|
668
732
|
const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
|
|
669
733
|
return addHeapObject(ret);
|
|
670
734
|
},
|
|
735
|
+
__wbg_target_e759594a8d965ed7: function(arg0) {
|
|
736
|
+
const ret = getObject(arg0).target;
|
|
737
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
738
|
+
},
|
|
671
739
|
__wbg_then_16d107c451e9905d: function(arg0, arg1, arg2) {
|
|
672
740
|
const ret = getObject(arg0).then(getObject(arg1), getObject(arg2));
|
|
673
741
|
return addHeapObject(ret);
|
|
@@ -676,83 +744,53 @@ function __wbg_get_imports() {
|
|
|
676
744
|
const ret = getObject(arg0).then(getObject(arg1));
|
|
677
745
|
return addHeapObject(ret);
|
|
678
746
|
},
|
|
747
|
+
__wbg_transaction_d911d96b4b0af154: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
748
|
+
const ret = getObject(arg0).transaction(getStringFromWasm0(arg1, arg2), __wbindgen_enum_IdbTransactionMode[arg3]);
|
|
749
|
+
return addHeapObject(ret);
|
|
750
|
+
}, arguments); },
|
|
679
751
|
__wbg_versions_276b2795b1c6a219: function(arg0) {
|
|
680
752
|
const ret = getObject(arg0).versions;
|
|
681
753
|
return addHeapObject(ret);
|
|
682
754
|
},
|
|
683
|
-
__wbg_warmStoreLoad_b2d6e9e9494ec393: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
684
|
-
let deferred0_0;
|
|
685
|
-
let deferred0_1;
|
|
686
|
-
let deferred1_0;
|
|
687
|
-
let deferred1_1;
|
|
688
|
-
try {
|
|
689
|
-
deferred0_0 = arg0;
|
|
690
|
-
deferred0_1 = arg1;
|
|
691
|
-
deferred1_0 = arg2;
|
|
692
|
-
deferred1_1 = arg3;
|
|
693
|
-
const ret = warmStoreLoad(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
|
|
694
|
-
return addHeapObject(ret);
|
|
695
|
-
} finally {
|
|
696
|
-
wasm.__wbindgen_export4(deferred0_0, deferred0_1, 1);
|
|
697
|
-
wasm.__wbindgen_export4(deferred1_0, deferred1_1, 1);
|
|
698
|
-
}
|
|
699
|
-
}, arguments); },
|
|
700
|
-
__wbg_warmStoreSave_31f6536d3a5ab89d: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
701
|
-
let deferred0_0;
|
|
702
|
-
let deferred0_1;
|
|
703
|
-
let deferred1_0;
|
|
704
|
-
let deferred1_1;
|
|
705
|
-
let deferred2_0;
|
|
706
|
-
let deferred2_1;
|
|
707
|
-
try {
|
|
708
|
-
deferred0_0 = arg0;
|
|
709
|
-
deferred0_1 = arg1;
|
|
710
|
-
deferred1_0 = arg2;
|
|
711
|
-
deferred1_1 = arg3;
|
|
712
|
-
deferred2_0 = arg4;
|
|
713
|
-
deferred2_1 = arg5;
|
|
714
|
-
const ret = warmStoreSave(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3), getStringFromWasm0(arg4, arg5));
|
|
715
|
-
return addHeapObject(ret);
|
|
716
|
-
} finally {
|
|
717
|
-
wasm.__wbindgen_export4(deferred0_0, deferred0_1, 1);
|
|
718
|
-
wasm.__wbindgen_export4(deferred1_0, deferred1_1, 1);
|
|
719
|
-
wasm.__wbindgen_export4(deferred2_0, deferred2_1, 1);
|
|
720
|
-
}
|
|
721
|
-
}, arguments); },
|
|
722
755
|
__wbg_warn_b1370d804fa3e259: function(arg0) {
|
|
723
756
|
console.warn(getObject(arg0));
|
|
724
757
|
},
|
|
725
758
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
726
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
727
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
759
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 1893, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
760
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_19487);
|
|
728
761
|
return addHeapObject(ret);
|
|
729
762
|
},
|
|
730
763
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
731
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx:
|
|
732
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
764
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 21, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
765
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_3887);
|
|
733
766
|
return addHeapObject(ret);
|
|
734
767
|
},
|
|
735
768
|
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
736
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx:
|
|
737
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
769
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx: 21, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
770
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_3887_2);
|
|
738
771
|
return addHeapObject(ret);
|
|
739
772
|
},
|
|
740
773
|
__wbindgen_cast_0000000000000004: function(arg0, arg1) {
|
|
741
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("
|
|
742
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
774
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("IDBVersionChangeEvent")], shim_idx: 21, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
775
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_3887_3);
|
|
743
776
|
return addHeapObject(ret);
|
|
744
777
|
},
|
|
745
778
|
__wbindgen_cast_0000000000000005: function(arg0, arg1) {
|
|
746
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
747
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
779
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 21, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
780
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_3887_4);
|
|
748
781
|
return addHeapObject(ret);
|
|
749
782
|
},
|
|
750
783
|
__wbindgen_cast_0000000000000006: function(arg0, arg1) {
|
|
784
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 741, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
785
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_7441);
|
|
786
|
+
return addHeapObject(ret);
|
|
787
|
+
},
|
|
788
|
+
__wbindgen_cast_0000000000000007: function(arg0, arg1) {
|
|
751
789
|
// Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
|
|
752
790
|
const ret = getArrayU8FromWasm0(arg0, arg1);
|
|
753
791
|
return addHeapObject(ret);
|
|
754
792
|
},
|
|
755
|
-
|
|
793
|
+
__wbindgen_cast_0000000000000008: function(arg0, arg1) {
|
|
756
794
|
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
757
795
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
758
796
|
return addHeapObject(ret);
|
|
@@ -771,26 +809,30 @@ function __wbg_get_imports() {
|
|
|
771
809
|
};
|
|
772
810
|
}
|
|
773
811
|
|
|
774
|
-
function
|
|
775
|
-
wasm.
|
|
812
|
+
function __wasm_bindgen_func_elem_7441(arg0, arg1) {
|
|
813
|
+
wasm.__wasm_bindgen_func_elem_7441(arg0, arg1);
|
|
776
814
|
}
|
|
777
815
|
|
|
778
|
-
function
|
|
779
|
-
wasm.
|
|
816
|
+
function __wasm_bindgen_func_elem_3887(arg0, arg1, arg2) {
|
|
817
|
+
wasm.__wasm_bindgen_func_elem_3887(arg0, arg1, addHeapObject(arg2));
|
|
780
818
|
}
|
|
781
819
|
|
|
782
|
-
function
|
|
783
|
-
wasm.
|
|
820
|
+
function __wasm_bindgen_func_elem_3887_2(arg0, arg1, arg2) {
|
|
821
|
+
wasm.__wasm_bindgen_func_elem_3887_2(arg0, arg1, addHeapObject(arg2));
|
|
784
822
|
}
|
|
785
823
|
|
|
786
|
-
function
|
|
787
|
-
wasm.
|
|
824
|
+
function __wasm_bindgen_func_elem_3887_3(arg0, arg1, arg2) {
|
|
825
|
+
wasm.__wasm_bindgen_func_elem_3887_3(arg0, arg1, addHeapObject(arg2));
|
|
788
826
|
}
|
|
789
827
|
|
|
790
|
-
function
|
|
828
|
+
function __wasm_bindgen_func_elem_3887_4(arg0, arg1, arg2) {
|
|
829
|
+
wasm.__wasm_bindgen_func_elem_3887_4(arg0, arg1, addHeapObject(arg2));
|
|
830
|
+
}
|
|
831
|
+
|
|
832
|
+
function __wasm_bindgen_func_elem_19487(arg0, arg1, arg2) {
|
|
791
833
|
try {
|
|
792
834
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
793
|
-
wasm.
|
|
835
|
+
wasm.__wasm_bindgen_func_elem_19487(retptr, arg0, arg1, addHeapObject(arg2));
|
|
794
836
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
795
837
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
796
838
|
if (r1) {
|
|
@@ -801,12 +843,15 @@ function __wasm_bindgen_func_elem_19314(arg0, arg1, arg2) {
|
|
|
801
843
|
}
|
|
802
844
|
}
|
|
803
845
|
|
|
804
|
-
function
|
|
805
|
-
wasm.
|
|
846
|
+
function __wasm_bindgen_func_elem_19489(arg0, arg1, arg2, arg3) {
|
|
847
|
+
wasm.__wasm_bindgen_func_elem_19489(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
806
848
|
}
|
|
807
849
|
|
|
808
850
|
|
|
809
851
|
const __wbindgen_enum_BinaryType = ["blob", "arraybuffer"];
|
|
852
|
+
|
|
853
|
+
|
|
854
|
+
const __wbindgen_enum_IdbTransactionMode = ["readonly", "readwrite", "versionchange", "readwriteflush", "cleanup"];
|
|
810
855
|
const ChainProviderBuilderFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
811
856
|
? { register: () => {}, unregister: () => {} }
|
|
812
857
|
: new FinalizationRegistry(ptr => wasm.__wbg_chainproviderbuilder_free(ptr, 1));
|
|
@@ -831,7 +876,7 @@ function addHeapObject(obj) {
|
|
|
831
876
|
|
|
832
877
|
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
833
878
|
? { register: () => {}, unregister: () => {} }
|
|
834
|
-
: new FinalizationRegistry(state => wasm.
|
|
879
|
+
: new FinalizationRegistry(state => wasm.__wbindgen_export4(state.a, state.b));
|
|
835
880
|
|
|
836
881
|
function debugString(val) {
|
|
837
882
|
// primitive types
|
|
@@ -967,7 +1012,7 @@ function makeMutClosure(arg0, arg1, f) {
|
|
|
967
1012
|
};
|
|
968
1013
|
real._wbg_cb_unref = () => {
|
|
969
1014
|
if (--state.cnt === 0) {
|
|
970
|
-
wasm.
|
|
1015
|
+
wasm.__wbindgen_export4(state.a, state.b);
|
|
971
1016
|
state.a = 0;
|
|
972
1017
|
CLOSURE_DTORS.unregister(state);
|
|
973
1018
|
}
|
|
Binary file
|
|
@@ -24,15 +24,16 @@ export const networkchains_bulletin: (a: number, b: number) => void;
|
|
|
24
24
|
export const networkchains_people: (a: number, b: number) => void;
|
|
25
25
|
export const networkchains_relay: (a: number, b: number) => void;
|
|
26
26
|
export const setLogLevel: (a: number, b: number) => void;
|
|
27
|
-
export const
|
|
28
|
-
export const
|
|
29
|
-
export const
|
|
30
|
-
export const
|
|
31
|
-
export const
|
|
32
|
-
export const
|
|
27
|
+
export const __wasm_bindgen_func_elem_19487: (a: number, b: number, c: number, d: number) => void;
|
|
28
|
+
export const __wasm_bindgen_func_elem_19489: (a: number, b: number, c: number, d: number) => void;
|
|
29
|
+
export const __wasm_bindgen_func_elem_3887: (a: number, b: number, c: number) => void;
|
|
30
|
+
export const __wasm_bindgen_func_elem_3887_2: (a: number, b: number, c: number) => void;
|
|
31
|
+
export const __wasm_bindgen_func_elem_3887_3: (a: number, b: number, c: number) => void;
|
|
32
|
+
export const __wasm_bindgen_func_elem_3887_4: (a: number, b: number, c: number) => void;
|
|
33
|
+
export const __wasm_bindgen_func_elem_7441: (a: number, b: number) => void;
|
|
33
34
|
export const __wbindgen_export: (a: number, b: number) => number;
|
|
34
35
|
export const __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
35
36
|
export const __wbindgen_export3: (a: number) => void;
|
|
36
|
-
export const __wbindgen_export4: (a: number, b: number
|
|
37
|
-
export const __wbindgen_export5: (a: number, b: number) => void;
|
|
37
|
+
export const __wbindgen_export4: (a: number, b: number) => void;
|
|
38
38
|
export const __wbindgen_add_to_stack_pointer: (a: number) => number;
|
|
39
|
+
export const __wbindgen_export5: (a: number, b: number, c: number) => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@parity/truapi-provider",
|
|
3
|
-
"version": "0.1.1-dev-20260908.
|
|
3
|
+
"version": "0.1.1-dev-20260908.1",
|
|
4
4
|
"description": "Network provider backends for the TrUAPI ChainProvider: an embedded smoldot light client and remote WebSocket JSON-RPC nodes, compiled to WebAssembly for browser hosts",
|
|
5
5
|
"license": "MIT AND Apache-2.0",
|
|
6
6
|
"author": "Parity Technologies <admin@parity.io>",
|
|
@@ -37,7 +37,6 @@
|
|
|
37
37
|
"access": "public"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
|
-
"build": "node scripts/build-wasm.mjs"
|
|
41
|
-
"build:wasm": "node scripts/build-wasm.mjs"
|
|
40
|
+
"build": "node scripts/build-wasm.mjs"
|
|
42
41
|
}
|
|
43
42
|
}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
const STORE = "chain-databases";
|
|
3
|
-
const VERSION = 1;
|
|
4
|
-
|
|
5
|
-
function open(name) {
|
|
6
|
-
return new Promise((resolve, reject) => {
|
|
7
|
-
const request = indexedDB.open(name, VERSION);
|
|
8
|
-
request.onupgradeneeded = () => {
|
|
9
|
-
const db = request.result;
|
|
10
|
-
if (!db.objectStoreNames.contains(STORE)) db.createObjectStore(STORE);
|
|
11
|
-
};
|
|
12
|
-
// An upgrade held open by another tab would otherwise never settle.
|
|
13
|
-
request.onblocked = () =>
|
|
14
|
-
reject(new Error(`another connection is holding "${name}" open`));
|
|
15
|
-
request.onerror = () =>
|
|
16
|
-
reject(request.error ?? new Error(`could not open "${name}"`));
|
|
17
|
-
request.onsuccess = () => resolve(request.result);
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export async function warmStoreLoad(name, key) {
|
|
22
|
-
const db = await open(name);
|
|
23
|
-
try {
|
|
24
|
-
return await new Promise((resolve, reject) => {
|
|
25
|
-
const tx = db.transaction(STORE, "readonly");
|
|
26
|
-
const request = tx.objectStore(STORE).get(key);
|
|
27
|
-
request.onsuccess = () =>
|
|
28
|
-
resolve(typeof request.result === "string" ? request.result : null);
|
|
29
|
-
tx.onerror = () => reject(tx.error ?? new Error("read failed"));
|
|
30
|
-
tx.onabort = () => reject(tx.error ?? new Error("read aborted"));
|
|
31
|
-
});
|
|
32
|
-
} finally {
|
|
33
|
-
db.close();
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export async function warmStoreSave(name, key, blob) {
|
|
38
|
-
const db = await open(name);
|
|
39
|
-
try {
|
|
40
|
-
await new Promise((resolve, reject) => {
|
|
41
|
-
const tx = db.transaction(STORE, "readwrite");
|
|
42
|
-
tx.objectStore(STORE).put(blob, key);
|
|
43
|
-
tx.oncomplete = () => resolve();
|
|
44
|
-
tx.onerror = () => reject(tx.error ?? new Error("write failed"));
|
|
45
|
-
tx.onabort = () => reject(tx.error ?? new Error("write aborted"));
|
|
46
|
-
});
|
|
47
|
-
} finally {
|
|
48
|
-
db.close();
|
|
49
|
-
}
|
|
50
|
-
}
|