bulk-keychain-wasm 0.1.4 → 0.1.6
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/bulk_keychain_wasm.d.ts +45 -5
- package/bulk_keychain_wasm.js +171 -89
- package/bulk_keychain_wasm_bg.wasm +0 -0
- package/package.json +1 -1
package/bulk_keychain_wasm.d.ts
CHANGED
|
@@ -62,9 +62,9 @@ export class WasmPreparedMessage {
|
|
|
62
62
|
*/
|
|
63
63
|
readonly account: string;
|
|
64
64
|
/**
|
|
65
|
-
* Get the
|
|
65
|
+
* Get the actions JSON
|
|
66
66
|
*/
|
|
67
|
-
readonly
|
|
67
|
+
readonly actions: any;
|
|
68
68
|
/**
|
|
69
69
|
* Get message as base58 string
|
|
70
70
|
*/
|
|
@@ -86,9 +86,13 @@ export class WasmPreparedMessage {
|
|
|
86
86
|
*/
|
|
87
87
|
readonly nonce: number;
|
|
88
88
|
/**
|
|
89
|
-
* Get the pre-computed order ID
|
|
89
|
+
* Get the pre-computed order ID (single-order tx only)
|
|
90
90
|
*/
|
|
91
|
-
readonly orderId: string;
|
|
91
|
+
readonly orderId: string | undefined;
|
|
92
|
+
/**
|
|
93
|
+
* Get pre-computed order IDs (multi-order tx only)
|
|
94
|
+
*/
|
|
95
|
+
readonly orderIds: string[] | undefined;
|
|
92
96
|
/**
|
|
93
97
|
* Get the signer public key (base58)
|
|
94
98
|
*/
|
|
@@ -101,6 +105,14 @@ export class WasmPreparedMessage {
|
|
|
101
105
|
export class WasmSigner {
|
|
102
106
|
free(): void;
|
|
103
107
|
[Symbol.dispose](): void;
|
|
108
|
+
/**
|
|
109
|
+
* Whether batch order ID computation is enabled.
|
|
110
|
+
*/
|
|
111
|
+
computesBatchOrderIds(): boolean;
|
|
112
|
+
/**
|
|
113
|
+
* Whether single-order ID computation is enabled.
|
|
114
|
+
*/
|
|
115
|
+
computesOrderId(): boolean;
|
|
104
116
|
/**
|
|
105
117
|
* Create a signer from base58-encoded secret key
|
|
106
118
|
*/
|
|
@@ -109,6 +121,14 @@ export class WasmSigner {
|
|
|
109
121
|
* Create a new signer from a keypair
|
|
110
122
|
*/
|
|
111
123
|
constructor(keypair: WasmKeypair);
|
|
124
|
+
/**
|
|
125
|
+
* Enable/disable batch order ID computation for multi-order transactions.
|
|
126
|
+
*/
|
|
127
|
+
setComputeBatchOrderIds(enabled: boolean): void;
|
|
128
|
+
/**
|
|
129
|
+
* Enable/disable single-order ID computation.
|
|
130
|
+
*/
|
|
131
|
+
setComputeOrderId(enabled: boolean): void;
|
|
112
132
|
/**
|
|
113
133
|
* Sign a single order/cancel/cancelAll
|
|
114
134
|
*/
|
|
@@ -129,6 +149,10 @@ export class WasmSigner {
|
|
|
129
149
|
* Sign multiple orders atomically in ONE transaction
|
|
130
150
|
*/
|
|
131
151
|
signGroup(orders: any, nonce?: number | null): any;
|
|
152
|
+
/**
|
|
153
|
+
* Sign one or more oracle price updates (`px`)
|
|
154
|
+
*/
|
|
155
|
+
signOraclePrices(oracles: any, nonce?: number | null): any;
|
|
132
156
|
/**
|
|
133
157
|
* @deprecated Use sign(), signAll(), or signGroup() instead
|
|
134
158
|
*/
|
|
@@ -137,10 +161,18 @@ export class WasmSigner {
|
|
|
137
161
|
* @deprecated Use signAll() instead
|
|
138
162
|
*/
|
|
139
163
|
signOrdersBatch(batches: any, base_nonce?: number | null): any;
|
|
164
|
+
/**
|
|
165
|
+
* Sign a batch Pyth oracle update (`o`)
|
|
166
|
+
*/
|
|
167
|
+
signPythOracle(oracles: any, nonce?: number | null): any;
|
|
140
168
|
/**
|
|
141
169
|
* Sign user settings update
|
|
142
170
|
*/
|
|
143
171
|
signUserSettings(settings: any, nonce?: number | null): any;
|
|
172
|
+
/**
|
|
173
|
+
* Sign whitelist/un-whitelist faucet access (`whitelistFaucet`)
|
|
174
|
+
*/
|
|
175
|
+
signWhitelistFaucet(target_pubkey: string, whitelist: boolean, nonce?: number | null): any;
|
|
144
176
|
/**
|
|
145
177
|
* Create a signer with nonce management
|
|
146
178
|
*/
|
|
@@ -273,7 +305,7 @@ export interface InitOutput {
|
|
|
273
305
|
readonly wasmkeypair_toBase58: (a: number) => [number, number];
|
|
274
306
|
readonly wasmkeypair_toBytes: (a: number) => [number, number];
|
|
275
307
|
readonly wasmpreparedmessage_account: (a: number) => [number, number];
|
|
276
|
-
readonly
|
|
308
|
+
readonly wasmpreparedmessage_actions: (a: number) => any;
|
|
277
309
|
readonly wasmpreparedmessage_finalize: (a: number, b: number, c: number) => any;
|
|
278
310
|
readonly wasmpreparedmessage_finalizeBytes: (a: number, b: number, c: number) => any;
|
|
279
311
|
readonly wasmpreparedmessage_messageBase58: (a: number) => [number, number];
|
|
@@ -282,17 +314,25 @@ export interface InitOutput {
|
|
|
282
314
|
readonly wasmpreparedmessage_messageHex: (a: number) => [number, number];
|
|
283
315
|
readonly wasmpreparedmessage_nonce: (a: number) => number;
|
|
284
316
|
readonly wasmpreparedmessage_orderId: (a: number) => [number, number];
|
|
317
|
+
readonly wasmpreparedmessage_orderIds: (a: number) => [number, number];
|
|
285
318
|
readonly wasmpreparedmessage_signer: (a: number) => [number, number];
|
|
319
|
+
readonly wasmsigner_computesBatchOrderIds: (a: number) => number;
|
|
320
|
+
readonly wasmsigner_computesOrderId: (a: number) => number;
|
|
286
321
|
readonly wasmsigner_fromBase58: (a: number, b: number) => [number, number, number];
|
|
287
322
|
readonly wasmsigner_new: (a: number) => number;
|
|
288
323
|
readonly wasmsigner_pubkey: (a: number) => [number, number];
|
|
324
|
+
readonly wasmsigner_setComputeBatchOrderIds: (a: number, b: number) => void;
|
|
325
|
+
readonly wasmsigner_setComputeOrderId: (a: number, b: number) => void;
|
|
289
326
|
readonly wasmsigner_sign: (a: number, b: any, c: number, d: number) => [number, number, number];
|
|
290
327
|
readonly wasmsigner_signAgentWallet: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number];
|
|
291
328
|
readonly wasmsigner_signAll: (a: number, b: any, c: number, d: number) => [number, number, number];
|
|
292
329
|
readonly wasmsigner_signFaucet: (a: number, b: number, c: number) => [number, number, number];
|
|
293
330
|
readonly wasmsigner_signGroup: (a: number, b: any, c: number, d: number) => [number, number, number];
|
|
331
|
+
readonly wasmsigner_signOraclePrices: (a: number, b: any, c: number, d: number) => [number, number, number];
|
|
294
332
|
readonly wasmsigner_signOrdersBatch: (a: number, b: any, c: number, d: number) => [number, number, number];
|
|
333
|
+
readonly wasmsigner_signPythOracle: (a: number, b: any, c: number, d: number) => [number, number, number];
|
|
295
334
|
readonly wasmsigner_signUserSettings: (a: number, b: any, c: number, d: number) => [number, number, number];
|
|
335
|
+
readonly wasmsigner_signWhitelistFaucet: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number];
|
|
296
336
|
readonly wasmsigner_withNonceManager: (a: number, b: number, c: number) => [number, number, number];
|
|
297
337
|
readonly init: () => void;
|
|
298
338
|
readonly wasmsigner_signOrder: (a: number, b: any, c: number, d: number) => [number, number, number];
|
package/bulk_keychain_wasm.js
CHANGED
|
@@ -154,11 +154,11 @@ export class WasmPreparedMessage {
|
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
156
|
/**
|
|
157
|
-
* Get the
|
|
157
|
+
* Get the actions JSON
|
|
158
158
|
* @returns {any}
|
|
159
159
|
*/
|
|
160
|
-
get
|
|
161
|
-
const ret = wasm.
|
|
160
|
+
get actions() {
|
|
161
|
+
const ret = wasm.wasmpreparedmessage_actions(this.__wbg_ptr);
|
|
162
162
|
return ret;
|
|
163
163
|
}
|
|
164
164
|
/**
|
|
@@ -252,20 +252,30 @@ export class WasmPreparedMessage {
|
|
|
252
252
|
return ret;
|
|
253
253
|
}
|
|
254
254
|
/**
|
|
255
|
-
* Get the pre-computed order ID
|
|
256
|
-
* @returns {string}
|
|
255
|
+
* Get the pre-computed order ID (single-order tx only)
|
|
256
|
+
* @returns {string | undefined}
|
|
257
257
|
*/
|
|
258
258
|
get orderId() {
|
|
259
|
-
|
|
260
|
-
let
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
deferred1_1 = ret[1];
|
|
265
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
266
|
-
} finally {
|
|
267
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
259
|
+
const ret = wasm.wasmpreparedmessage_orderId(this.__wbg_ptr);
|
|
260
|
+
let v1;
|
|
261
|
+
if (ret[0] !== 0) {
|
|
262
|
+
v1 = getStringFromWasm0(ret[0], ret[1]).slice();
|
|
263
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
268
264
|
}
|
|
265
|
+
return v1;
|
|
266
|
+
}
|
|
267
|
+
/**
|
|
268
|
+
* Get pre-computed order IDs (multi-order tx only)
|
|
269
|
+
* @returns {string[] | undefined}
|
|
270
|
+
*/
|
|
271
|
+
get orderIds() {
|
|
272
|
+
const ret = wasm.wasmpreparedmessage_orderIds(this.__wbg_ptr);
|
|
273
|
+
let v1;
|
|
274
|
+
if (ret[0] !== 0) {
|
|
275
|
+
v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
|
|
276
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
277
|
+
}
|
|
278
|
+
return v1;
|
|
269
279
|
}
|
|
270
280
|
/**
|
|
271
281
|
* Get the signer public key (base58)
|
|
@@ -307,6 +317,22 @@ export class WasmSigner {
|
|
|
307
317
|
const ptr = this.__destroy_into_raw();
|
|
308
318
|
wasm.__wbg_wasmsigner_free(ptr, 0);
|
|
309
319
|
}
|
|
320
|
+
/**
|
|
321
|
+
* Whether batch order ID computation is enabled.
|
|
322
|
+
* @returns {boolean}
|
|
323
|
+
*/
|
|
324
|
+
computesBatchOrderIds() {
|
|
325
|
+
const ret = wasm.wasmsigner_computesBatchOrderIds(this.__wbg_ptr);
|
|
326
|
+
return ret !== 0;
|
|
327
|
+
}
|
|
328
|
+
/**
|
|
329
|
+
* Whether single-order ID computation is enabled.
|
|
330
|
+
* @returns {boolean}
|
|
331
|
+
*/
|
|
332
|
+
computesOrderId() {
|
|
333
|
+
const ret = wasm.wasmsigner_computesOrderId(this.__wbg_ptr);
|
|
334
|
+
return ret !== 0;
|
|
335
|
+
}
|
|
310
336
|
/**
|
|
311
337
|
* Create a signer from base58-encoded secret key
|
|
312
338
|
* @param {string} s
|
|
@@ -348,6 +374,20 @@ export class WasmSigner {
|
|
|
348
374
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
349
375
|
}
|
|
350
376
|
}
|
|
377
|
+
/**
|
|
378
|
+
* Enable/disable batch order ID computation for multi-order transactions.
|
|
379
|
+
* @param {boolean} enabled
|
|
380
|
+
*/
|
|
381
|
+
setComputeBatchOrderIds(enabled) {
|
|
382
|
+
wasm.wasmsigner_setComputeBatchOrderIds(this.__wbg_ptr, enabled);
|
|
383
|
+
}
|
|
384
|
+
/**
|
|
385
|
+
* Enable/disable single-order ID computation.
|
|
386
|
+
* @param {boolean} enabled
|
|
387
|
+
*/
|
|
388
|
+
setComputeOrderId(enabled) {
|
|
389
|
+
wasm.wasmsigner_setComputeOrderId(this.__wbg_ptr, enabled);
|
|
390
|
+
}
|
|
351
391
|
/**
|
|
352
392
|
* Sign a single order/cancel/cancelAll
|
|
353
393
|
* @param {any} order
|
|
@@ -415,6 +455,19 @@ export class WasmSigner {
|
|
|
415
455
|
}
|
|
416
456
|
return takeFromExternrefTable0(ret[0]);
|
|
417
457
|
}
|
|
458
|
+
/**
|
|
459
|
+
* Sign one or more oracle price updates (`px`)
|
|
460
|
+
* @param {any} oracles
|
|
461
|
+
* @param {number | null} [nonce]
|
|
462
|
+
* @returns {any}
|
|
463
|
+
*/
|
|
464
|
+
signOraclePrices(oracles, nonce) {
|
|
465
|
+
const ret = wasm.wasmsigner_signOraclePrices(this.__wbg_ptr, oracles, !isLikeNone(nonce), isLikeNone(nonce) ? 0 : nonce);
|
|
466
|
+
if (ret[2]) {
|
|
467
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
468
|
+
}
|
|
469
|
+
return takeFromExternrefTable0(ret[0]);
|
|
470
|
+
}
|
|
418
471
|
/**
|
|
419
472
|
* @deprecated Use sign(), signAll(), or signGroup() instead
|
|
420
473
|
* @param {any} orders
|
|
@@ -441,6 +494,19 @@ export class WasmSigner {
|
|
|
441
494
|
}
|
|
442
495
|
return takeFromExternrefTable0(ret[0]);
|
|
443
496
|
}
|
|
497
|
+
/**
|
|
498
|
+
* Sign a batch Pyth oracle update (`o`)
|
|
499
|
+
* @param {any} oracles
|
|
500
|
+
* @param {number | null} [nonce]
|
|
501
|
+
* @returns {any}
|
|
502
|
+
*/
|
|
503
|
+
signPythOracle(oracles, nonce) {
|
|
504
|
+
const ret = wasm.wasmsigner_signPythOracle(this.__wbg_ptr, oracles, !isLikeNone(nonce), isLikeNone(nonce) ? 0 : nonce);
|
|
505
|
+
if (ret[2]) {
|
|
506
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
507
|
+
}
|
|
508
|
+
return takeFromExternrefTable0(ret[0]);
|
|
509
|
+
}
|
|
444
510
|
/**
|
|
445
511
|
* Sign user settings update
|
|
446
512
|
* @param {any} settings
|
|
@@ -454,6 +520,22 @@ export class WasmSigner {
|
|
|
454
520
|
}
|
|
455
521
|
return takeFromExternrefTable0(ret[0]);
|
|
456
522
|
}
|
|
523
|
+
/**
|
|
524
|
+
* Sign whitelist/un-whitelist faucet access (`whitelistFaucet`)
|
|
525
|
+
* @param {string} target_pubkey
|
|
526
|
+
* @param {boolean} whitelist
|
|
527
|
+
* @param {number | null} [nonce]
|
|
528
|
+
* @returns {any}
|
|
529
|
+
*/
|
|
530
|
+
signWhitelistFaucet(target_pubkey, whitelist, nonce) {
|
|
531
|
+
const ptr0 = passStringToWasm0(target_pubkey, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
532
|
+
const len0 = WASM_VECTOR_LEN;
|
|
533
|
+
const ret = wasm.wasmsigner_signWhitelistFaucet(this.__wbg_ptr, ptr0, len0, whitelist, !isLikeNone(nonce), isLikeNone(nonce) ? 0 : nonce);
|
|
534
|
+
if (ret[2]) {
|
|
535
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
536
|
+
}
|
|
537
|
+
return takeFromExternrefTable0(ret[0]);
|
|
538
|
+
}
|
|
457
539
|
/**
|
|
458
540
|
* Create a signer with nonce management
|
|
459
541
|
* @param {WasmKeypair} keypair
|
|
@@ -679,79 +761,79 @@ export function validatePubkey(s) {
|
|
|
679
761
|
function __wbg_get_imports() {
|
|
680
762
|
const import0 = {
|
|
681
763
|
__proto__: null,
|
|
682
|
-
|
|
764
|
+
__wbg_Error_83742b46f01ce22d: function(arg0, arg1) {
|
|
683
765
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
684
766
|
return ret;
|
|
685
767
|
},
|
|
686
|
-
|
|
768
|
+
__wbg_Number_a5a435bd7bbec835: function(arg0) {
|
|
687
769
|
const ret = Number(arg0);
|
|
688
770
|
return ret;
|
|
689
771
|
},
|
|
690
|
-
|
|
772
|
+
__wbg_String_8564e559799eccda: function(arg0, arg1) {
|
|
691
773
|
const ret = String(arg1);
|
|
692
774
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
693
775
|
const len1 = WASM_VECTOR_LEN;
|
|
694
776
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
695
777
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
696
778
|
},
|
|
697
|
-
|
|
779
|
+
__wbg___wbindgen_bigint_get_as_i64_447a76b5c6ef7bda: function(arg0, arg1) {
|
|
698
780
|
const v = arg1;
|
|
699
781
|
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
700
782
|
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
701
783
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
702
784
|
},
|
|
703
|
-
|
|
785
|
+
__wbg___wbindgen_boolean_get_c0f3f60bac5a78d1: function(arg0) {
|
|
704
786
|
const v = arg0;
|
|
705
787
|
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
706
788
|
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
707
789
|
},
|
|
708
|
-
|
|
790
|
+
__wbg___wbindgen_debug_string_5398f5bb970e0daa: function(arg0, arg1) {
|
|
709
791
|
const ret = debugString(arg1);
|
|
710
792
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
711
793
|
const len1 = WASM_VECTOR_LEN;
|
|
712
794
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
713
795
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
714
796
|
},
|
|
715
|
-
|
|
797
|
+
__wbg___wbindgen_in_41dbb8413020e076: function(arg0, arg1) {
|
|
716
798
|
const ret = arg0 in arg1;
|
|
717
799
|
return ret;
|
|
718
800
|
},
|
|
719
|
-
|
|
801
|
+
__wbg___wbindgen_is_bigint_e2141d4f045b7eda: function(arg0) {
|
|
720
802
|
const ret = typeof(arg0) === 'bigint';
|
|
721
803
|
return ret;
|
|
722
804
|
},
|
|
723
|
-
|
|
805
|
+
__wbg___wbindgen_is_function_3c846841762788c1: function(arg0) {
|
|
724
806
|
const ret = typeof(arg0) === 'function';
|
|
725
807
|
return ret;
|
|
726
808
|
},
|
|
727
|
-
|
|
809
|
+
__wbg___wbindgen_is_object_781bc9f159099513: function(arg0) {
|
|
728
810
|
const val = arg0;
|
|
729
811
|
const ret = typeof(val) === 'object' && val !== null;
|
|
730
812
|
return ret;
|
|
731
813
|
},
|
|
732
|
-
|
|
814
|
+
__wbg___wbindgen_is_string_7ef6b97b02428fae: function(arg0) {
|
|
733
815
|
const ret = typeof(arg0) === 'string';
|
|
734
816
|
return ret;
|
|
735
817
|
},
|
|
736
|
-
|
|
818
|
+
__wbg___wbindgen_is_undefined_52709e72fb9f179c: function(arg0) {
|
|
737
819
|
const ret = arg0 === undefined;
|
|
738
820
|
return ret;
|
|
739
821
|
},
|
|
740
|
-
|
|
822
|
+
__wbg___wbindgen_jsval_eq_ee31bfad3e536463: function(arg0, arg1) {
|
|
741
823
|
const ret = arg0 === arg1;
|
|
742
824
|
return ret;
|
|
743
825
|
},
|
|
744
|
-
|
|
826
|
+
__wbg___wbindgen_jsval_loose_eq_5bcc3bed3c69e72b: function(arg0, arg1) {
|
|
745
827
|
const ret = arg0 == arg1;
|
|
746
828
|
return ret;
|
|
747
829
|
},
|
|
748
|
-
|
|
830
|
+
__wbg___wbindgen_number_get_34bb9d9dcfa21373: function(arg0, arg1) {
|
|
749
831
|
const obj = arg1;
|
|
750
832
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
751
833
|
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
752
834
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
753
835
|
},
|
|
754
|
-
|
|
836
|
+
__wbg___wbindgen_string_get_395e606bd0ee4427: function(arg0, arg1) {
|
|
755
837
|
const obj = arg1;
|
|
756
838
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
757
839
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -759,30 +841,30 @@ function __wbg_get_imports() {
|
|
|
759
841
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
760
842
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
761
843
|
},
|
|
762
|
-
|
|
844
|
+
__wbg___wbindgen_throw_6ddd609b62940d55: function(arg0, arg1) {
|
|
763
845
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
764
846
|
},
|
|
765
|
-
|
|
766
|
-
const ret = arg0.call(arg1);
|
|
847
|
+
__wbg_call_2d781c1f4d5c0ef8: function() { return handleError(function (arg0, arg1, arg2) {
|
|
848
|
+
const ret = arg0.call(arg1, arg2);
|
|
767
849
|
return ret;
|
|
768
850
|
}, arguments); },
|
|
769
|
-
|
|
770
|
-
const ret = arg0.call(arg1
|
|
851
|
+
__wbg_call_e133b57c9155d22c: function() { return handleError(function (arg0, arg1) {
|
|
852
|
+
const ret = arg0.call(arg1);
|
|
771
853
|
return ret;
|
|
772
854
|
}, arguments); },
|
|
773
|
-
|
|
855
|
+
__wbg_crypto_38df2bab126b63dc: function(arg0) {
|
|
774
856
|
const ret = arg0.crypto;
|
|
775
857
|
return ret;
|
|
776
858
|
},
|
|
777
|
-
|
|
859
|
+
__wbg_done_08ce71ee07e3bd17: function(arg0) {
|
|
778
860
|
const ret = arg0.done;
|
|
779
861
|
return ret;
|
|
780
862
|
},
|
|
781
|
-
|
|
863
|
+
__wbg_entries_e8a20ff8c9757101: function(arg0) {
|
|
782
864
|
const ret = Object.entries(arg0);
|
|
783
865
|
return ret;
|
|
784
866
|
},
|
|
785
|
-
|
|
867
|
+
__wbg_error_a6fa202b58aa1cd3: function(arg0, arg1) {
|
|
786
868
|
let deferred0_0;
|
|
787
869
|
let deferred0_1;
|
|
788
870
|
try {
|
|
@@ -793,22 +875,26 @@ function __wbg_get_imports() {
|
|
|
793
875
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
794
876
|
}
|
|
795
877
|
},
|
|
796
|
-
|
|
878
|
+
__wbg_getRandomValues_c44a50d8cfdaebeb: function() { return handleError(function (arg0, arg1) {
|
|
797
879
|
arg0.getRandomValues(arg1);
|
|
798
880
|
}, arguments); },
|
|
799
|
-
|
|
881
|
+
__wbg_get_326e41e095fb2575: function() { return handleError(function (arg0, arg1) {
|
|
882
|
+
const ret = Reflect.get(arg0, arg1);
|
|
883
|
+
return ret;
|
|
884
|
+
}, arguments); },
|
|
885
|
+
__wbg_get_a8ee5c45dabc1b3b: function(arg0, arg1) {
|
|
800
886
|
const ret = arg0[arg1 >>> 0];
|
|
801
887
|
return ret;
|
|
802
888
|
},
|
|
803
|
-
|
|
804
|
-
const ret =
|
|
889
|
+
__wbg_get_unchecked_329cfe50afab7352: function(arg0, arg1) {
|
|
890
|
+
const ret = arg0[arg1 >>> 0];
|
|
805
891
|
return ret;
|
|
806
|
-
},
|
|
807
|
-
|
|
892
|
+
},
|
|
893
|
+
__wbg_get_with_ref_key_6412cf3094599694: function(arg0, arg1) {
|
|
808
894
|
const ret = arg0[arg1];
|
|
809
895
|
return ret;
|
|
810
896
|
},
|
|
811
|
-
|
|
897
|
+
__wbg_instanceof_ArrayBuffer_101e2bf31071a9f6: function(arg0) {
|
|
812
898
|
let result;
|
|
813
899
|
try {
|
|
814
900
|
result = arg0 instanceof ArrayBuffer;
|
|
@@ -818,7 +904,7 @@ function __wbg_get_imports() {
|
|
|
818
904
|
const ret = result;
|
|
819
905
|
return ret;
|
|
820
906
|
},
|
|
821
|
-
|
|
907
|
+
__wbg_instanceof_Map_f194b366846aca0c: function(arg0) {
|
|
822
908
|
let result;
|
|
823
909
|
try {
|
|
824
910
|
result = arg0 instanceof Map;
|
|
@@ -828,7 +914,7 @@ function __wbg_get_imports() {
|
|
|
828
914
|
const ret = result;
|
|
829
915
|
return ret;
|
|
830
916
|
},
|
|
831
|
-
|
|
917
|
+
__wbg_instanceof_Uint8Array_740438561a5b956d: function(arg0) {
|
|
832
918
|
let result;
|
|
833
919
|
try {
|
|
834
920
|
result = arg0 instanceof Uint8Array;
|
|
@@ -838,126 +924,122 @@ function __wbg_get_imports() {
|
|
|
838
924
|
const ret = result;
|
|
839
925
|
return ret;
|
|
840
926
|
},
|
|
841
|
-
|
|
927
|
+
__wbg_isArray_33b91feb269ff46e: function(arg0) {
|
|
842
928
|
const ret = Array.isArray(arg0);
|
|
843
929
|
return ret;
|
|
844
930
|
},
|
|
845
|
-
|
|
931
|
+
__wbg_isSafeInteger_ecd6a7f9c3e053cd: function(arg0) {
|
|
846
932
|
const ret = Number.isSafeInteger(arg0);
|
|
847
933
|
return ret;
|
|
848
934
|
},
|
|
849
|
-
|
|
935
|
+
__wbg_iterator_d8f549ec8fb061b1: function() {
|
|
850
936
|
const ret = Symbol.iterator;
|
|
851
937
|
return ret;
|
|
852
938
|
},
|
|
853
|
-
|
|
939
|
+
__wbg_length_b3416cf66a5452c8: function(arg0) {
|
|
854
940
|
const ret = arg0.length;
|
|
855
941
|
return ret;
|
|
856
942
|
},
|
|
857
|
-
|
|
943
|
+
__wbg_length_ea16607d7b61445b: function(arg0) {
|
|
858
944
|
const ret = arg0.length;
|
|
859
945
|
return ret;
|
|
860
946
|
},
|
|
861
|
-
|
|
947
|
+
__wbg_msCrypto_bd5a034af96bcba6: function(arg0) {
|
|
862
948
|
const ret = arg0.msCrypto;
|
|
863
949
|
return ret;
|
|
864
950
|
},
|
|
865
|
-
|
|
866
|
-
const ret = new Object();
|
|
867
|
-
return ret;
|
|
868
|
-
},
|
|
869
|
-
__wbg_new_3eb36ae241fe6f44: function() {
|
|
870
|
-
const ret = new Array();
|
|
871
|
-
return ret;
|
|
872
|
-
},
|
|
873
|
-
__wbg_new_8a6f238a6ece86ea: function() {
|
|
951
|
+
__wbg_new_227d7c05414eb861: function() {
|
|
874
952
|
const ret = new Error();
|
|
875
953
|
return ret;
|
|
876
954
|
},
|
|
877
|
-
|
|
955
|
+
__wbg_new_49d5571bd3f0c4d4: function() {
|
|
878
956
|
const ret = new Map();
|
|
879
957
|
return ret;
|
|
880
958
|
},
|
|
881
|
-
|
|
959
|
+
__wbg_new_5f486cdf45a04d78: function(arg0) {
|
|
882
960
|
const ret = new Uint8Array(arg0);
|
|
883
961
|
return ret;
|
|
884
962
|
},
|
|
885
|
-
|
|
886
|
-
const ret = new
|
|
963
|
+
__wbg_new_a70fbab9066b301f: function() {
|
|
964
|
+
const ret = new Array();
|
|
887
965
|
return ret;
|
|
888
966
|
},
|
|
889
|
-
|
|
967
|
+
__wbg_new_ab79df5bd7c26067: function() {
|
|
968
|
+
const ret = new Object();
|
|
969
|
+
return ret;
|
|
970
|
+
},
|
|
971
|
+
__wbg_new_with_length_825018a1616e9e55: function(arg0) {
|
|
890
972
|
const ret = new Uint8Array(arg0 >>> 0);
|
|
891
973
|
return ret;
|
|
892
974
|
},
|
|
893
|
-
|
|
975
|
+
__wbg_next_11b99ee6237339e3: function() { return handleError(function (arg0) {
|
|
894
976
|
const ret = arg0.next();
|
|
895
977
|
return ret;
|
|
896
978
|
}, arguments); },
|
|
897
|
-
|
|
979
|
+
__wbg_next_e01a967809d1aa68: function(arg0) {
|
|
898
980
|
const ret = arg0.next;
|
|
899
981
|
return ret;
|
|
900
982
|
},
|
|
901
|
-
|
|
983
|
+
__wbg_node_84ea875411254db1: function(arg0) {
|
|
902
984
|
const ret = arg0.node;
|
|
903
985
|
return ret;
|
|
904
986
|
},
|
|
905
|
-
|
|
987
|
+
__wbg_process_44c7a14e11e9f69e: function(arg0) {
|
|
906
988
|
const ret = arg0.process;
|
|
907
989
|
return ret;
|
|
908
990
|
},
|
|
909
|
-
|
|
991
|
+
__wbg_prototypesetcall_d62e5099504357e6: function(arg0, arg1, arg2) {
|
|
910
992
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
911
993
|
},
|
|
912
|
-
|
|
994
|
+
__wbg_randomFillSync_6c25eac9869eb53c: function() { return handleError(function (arg0, arg1) {
|
|
913
995
|
arg0.randomFillSync(arg1);
|
|
914
996
|
}, arguments); },
|
|
915
|
-
|
|
997
|
+
__wbg_require_b4edbdcf3e2a1ef0: function() { return handleError(function () {
|
|
916
998
|
const ret = module.require;
|
|
917
999
|
return ret;
|
|
918
1000
|
}, arguments); },
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
return ret;
|
|
1001
|
+
__wbg_set_282384002438957f: function(arg0, arg1, arg2) {
|
|
1002
|
+
arg0[arg1 >>> 0] = arg2;
|
|
922
1003
|
},
|
|
923
|
-
|
|
1004
|
+
__wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
|
|
924
1005
|
arg0[arg1] = arg2;
|
|
925
1006
|
},
|
|
926
|
-
|
|
927
|
-
|
|
1007
|
+
__wbg_set_bf7251625df30a02: function(arg0, arg1, arg2) {
|
|
1008
|
+
const ret = arg0.set(arg1, arg2);
|
|
1009
|
+
return ret;
|
|
928
1010
|
},
|
|
929
|
-
|
|
1011
|
+
__wbg_stack_3b0d974bbf31e44f: function(arg0, arg1) {
|
|
930
1012
|
const ret = arg1.stack;
|
|
931
1013
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
932
1014
|
const len1 = WASM_VECTOR_LEN;
|
|
933
1015
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
934
1016
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
935
1017
|
},
|
|
936
|
-
|
|
1018
|
+
__wbg_static_accessor_GLOBAL_8adb955bd33fac2f: function() {
|
|
937
1019
|
const ret = typeof global === 'undefined' ? null : global;
|
|
938
1020
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
939
1021
|
},
|
|
940
|
-
|
|
1022
|
+
__wbg_static_accessor_GLOBAL_THIS_ad356e0db91c7913: function() {
|
|
941
1023
|
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
942
1024
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
943
1025
|
},
|
|
944
|
-
|
|
1026
|
+
__wbg_static_accessor_SELF_f207c857566db248: function() {
|
|
945
1027
|
const ret = typeof self === 'undefined' ? null : self;
|
|
946
1028
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
947
1029
|
},
|
|
948
|
-
|
|
1030
|
+
__wbg_static_accessor_WINDOW_bb9f1ba69d61b386: function() {
|
|
949
1031
|
const ret = typeof window === 'undefined' ? null : window;
|
|
950
1032
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
951
1033
|
},
|
|
952
|
-
|
|
1034
|
+
__wbg_subarray_a068d24e39478a8a: function(arg0, arg1, arg2) {
|
|
953
1035
|
const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
|
|
954
1036
|
return ret;
|
|
955
1037
|
},
|
|
956
|
-
|
|
1038
|
+
__wbg_value_21fc78aab0322612: function(arg0) {
|
|
957
1039
|
const ret = arg0.value;
|
|
958
1040
|
return ret;
|
|
959
1041
|
},
|
|
960
|
-
|
|
1042
|
+
__wbg_versions_276b2795b1c6a219: function(arg0) {
|
|
961
1043
|
const ret = arg0.versions;
|
|
962
1044
|
return ret;
|
|
963
1045
|
},
|
|
Binary file
|
package/package.json
CHANGED