lumina-node-wasm 0.10.3 → 0.12.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/lumina_node_wasm.d.ts +437 -398
- package/lumina_node_wasm_bg.js +1495 -1391
- package/lumina_node_wasm_bg.wasm +0 -0
- package/package.json +1 -1
package/lumina_node_wasm_bg.js
CHANGED
|
@@ -4,8 +4,6 @@ export function __wbg_set_wasm(val) {
|
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
let WASM_VECTOR_LEN = 0;
|
|
8
|
-
|
|
9
7
|
let cachedUint8ArrayMemory0 = null;
|
|
10
8
|
|
|
11
9
|
function getUint8ArrayMemory0() {
|
|
@@ -15,9 +13,34 @@ function getUint8ArrayMemory0() {
|
|
|
15
13
|
return cachedUint8ArrayMemory0;
|
|
16
14
|
}
|
|
17
15
|
|
|
16
|
+
const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder;
|
|
17
|
+
|
|
18
|
+
let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
19
|
+
|
|
20
|
+
cachedTextDecoder.decode();
|
|
21
|
+
|
|
22
|
+
const MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
23
|
+
let numBytesDecoded = 0;
|
|
24
|
+
function decodeText(ptr, len) {
|
|
25
|
+
numBytesDecoded += len;
|
|
26
|
+
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
27
|
+
cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
28
|
+
cachedTextDecoder.decode();
|
|
29
|
+
numBytesDecoded = len;
|
|
30
|
+
}
|
|
31
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
function getStringFromWasm0(ptr, len) {
|
|
35
|
+
ptr = ptr >>> 0;
|
|
36
|
+
return decodeText(ptr, len);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
let WASM_VECTOR_LEN = 0;
|
|
40
|
+
|
|
18
41
|
const lTextEncoder = typeof TextEncoder === 'undefined' ? (0, module.require)('util').TextEncoder : TextEncoder;
|
|
19
42
|
|
|
20
|
-
|
|
43
|
+
const cachedTextEncoder = new lTextEncoder('utf-8');
|
|
21
44
|
|
|
22
45
|
const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
|
|
23
46
|
? function (arg, view) {
|
|
@@ -95,17 +118,6 @@ function handleError(f, args) {
|
|
|
95
118
|
}
|
|
96
119
|
}
|
|
97
120
|
|
|
98
|
-
const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder;
|
|
99
|
-
|
|
100
|
-
let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
101
|
-
|
|
102
|
-
cachedTextDecoder.decode();
|
|
103
|
-
|
|
104
|
-
function getStringFromWasm0(ptr, len) {
|
|
105
|
-
ptr = ptr >>> 0;
|
|
106
|
-
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
107
|
-
}
|
|
108
|
-
|
|
109
121
|
function passArray8ToWasm0(arg, malloc) {
|
|
110
122
|
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
111
123
|
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
@@ -122,59 +134,6 @@ function getArrayU8FromWasm0(ptr, len) {
|
|
|
122
134
|
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
123
135
|
}
|
|
124
136
|
|
|
125
|
-
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
126
|
-
? { register: () => {}, unregister: () => {} }
|
|
127
|
-
: new FinalizationRegistry(state => {
|
|
128
|
-
wasm.__wbindgen_export_6.get(state.dtor)(state.a, state.b)
|
|
129
|
-
});
|
|
130
|
-
|
|
131
|
-
function makeClosure(arg0, arg1, dtor, f) {
|
|
132
|
-
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
|
133
|
-
const real = (...args) => {
|
|
134
|
-
// First up with a closure we increment the internal reference
|
|
135
|
-
// count. This ensures that the Rust closure environment won't
|
|
136
|
-
// be deallocated while we're invoking it.
|
|
137
|
-
state.cnt++;
|
|
138
|
-
try {
|
|
139
|
-
return f(state.a, state.b, ...args);
|
|
140
|
-
} finally {
|
|
141
|
-
if (--state.cnt === 0) {
|
|
142
|
-
wasm.__wbindgen_export_6.get(state.dtor)(state.a, state.b);
|
|
143
|
-
state.a = 0;
|
|
144
|
-
CLOSURE_DTORS.unregister(state);
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
};
|
|
148
|
-
real.original = state;
|
|
149
|
-
CLOSURE_DTORS.register(real, state, state);
|
|
150
|
-
return real;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
function makeMutClosure(arg0, arg1, dtor, f) {
|
|
154
|
-
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
|
155
|
-
const real = (...args) => {
|
|
156
|
-
// First up with a closure we increment the internal reference
|
|
157
|
-
// count. This ensures that the Rust closure environment won't
|
|
158
|
-
// be deallocated while we're invoking it.
|
|
159
|
-
state.cnt++;
|
|
160
|
-
const a = state.a;
|
|
161
|
-
state.a = 0;
|
|
162
|
-
try {
|
|
163
|
-
return f(a, state.b, ...args);
|
|
164
|
-
} finally {
|
|
165
|
-
if (--state.cnt === 0) {
|
|
166
|
-
wasm.__wbindgen_export_6.get(state.dtor)(a, state.b);
|
|
167
|
-
CLOSURE_DTORS.unregister(state);
|
|
168
|
-
} else {
|
|
169
|
-
state.a = a;
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
};
|
|
173
|
-
real.original = state;
|
|
174
|
-
CLOSURE_DTORS.register(real, state, state);
|
|
175
|
-
return real;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
137
|
function debugString(val) {
|
|
179
138
|
// primitive types
|
|
180
139
|
const type = typeof val;
|
|
@@ -240,6 +199,40 @@ function debugString(val) {
|
|
|
240
199
|
return className;
|
|
241
200
|
}
|
|
242
201
|
|
|
202
|
+
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
203
|
+
? { register: () => {}, unregister: () => {} }
|
|
204
|
+
: new FinalizationRegistry(
|
|
205
|
+
state => {
|
|
206
|
+
wasm.__wbindgen_export_6.get(state.dtor)(state.a, state.b);
|
|
207
|
+
}
|
|
208
|
+
);
|
|
209
|
+
|
|
210
|
+
function makeMutClosure(arg0, arg1, dtor, f) {
|
|
211
|
+
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
|
212
|
+
const real = (...args) => {
|
|
213
|
+
|
|
214
|
+
// First up with a closure we increment the internal reference
|
|
215
|
+
// count. This ensures that the Rust closure environment won't
|
|
216
|
+
// be deallocated while we're invoking it.
|
|
217
|
+
state.cnt++;
|
|
218
|
+
const a = state.a;
|
|
219
|
+
state.a = 0;
|
|
220
|
+
try {
|
|
221
|
+
return f(a, state.b, ...args);
|
|
222
|
+
} finally {
|
|
223
|
+
if (--state.cnt === 0) {
|
|
224
|
+
wasm.__wbindgen_export_6.get(state.dtor)(a, state.b);
|
|
225
|
+
CLOSURE_DTORS.unregister(state);
|
|
226
|
+
} else {
|
|
227
|
+
state.a = a;
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
};
|
|
231
|
+
real.original = state;
|
|
232
|
+
CLOSURE_DTORS.register(real, state, state);
|
|
233
|
+
return real;
|
|
234
|
+
}
|
|
235
|
+
|
|
243
236
|
function getArrayJsValueFromWasm0(ptr, len) {
|
|
244
237
|
ptr = ptr >>> 0;
|
|
245
238
|
const mem = getDataViewMemory0();
|
|
@@ -251,6 +244,40 @@ function getArrayJsValueFromWasm0(ptr, len) {
|
|
|
251
244
|
return result;
|
|
252
245
|
}
|
|
253
246
|
|
|
247
|
+
function makeClosure(arg0, arg1, dtor, f) {
|
|
248
|
+
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
|
249
|
+
const real = (...args) => {
|
|
250
|
+
|
|
251
|
+
// First up with a closure we increment the internal reference
|
|
252
|
+
// count. This ensures that the Rust closure environment won't
|
|
253
|
+
// be deallocated while we're invoking it.
|
|
254
|
+
state.cnt++;
|
|
255
|
+
try {
|
|
256
|
+
return f(state.a, state.b, ...args);
|
|
257
|
+
} finally {
|
|
258
|
+
if (--state.cnt === 0) {
|
|
259
|
+
wasm.__wbindgen_export_6.get(state.dtor)(state.a, state.b); state.a = 0;
|
|
260
|
+
CLOSURE_DTORS.unregister(state);
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
};
|
|
264
|
+
real.original = state;
|
|
265
|
+
CLOSURE_DTORS.register(real, state, state);
|
|
266
|
+
return real;
|
|
267
|
+
}
|
|
268
|
+
/**
|
|
269
|
+
* Set up a logging layer that direct logs to the browser's console.
|
|
270
|
+
*/
|
|
271
|
+
export function setup_logging() {
|
|
272
|
+
wasm.setup_logging();
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
function _assertClass(instance, klass) {
|
|
276
|
+
if (!(instance instanceof klass)) {
|
|
277
|
+
throw new Error(`expected instance of ${klass.name}`);
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
|
|
254
281
|
function passArrayJsValueToWasm0(array, malloc) {
|
|
255
282
|
const ptr = malloc(array.length * 4, 4) >>> 0;
|
|
256
283
|
for (let i = 0; i < array.length; i++) {
|
|
@@ -261,18 +288,6 @@ function passArrayJsValueToWasm0(array, malloc) {
|
|
|
261
288
|
return ptr;
|
|
262
289
|
}
|
|
263
290
|
|
|
264
|
-
function _assertClass(instance, klass) {
|
|
265
|
-
if (!(instance instanceof klass)) {
|
|
266
|
-
throw new Error(`expected instance of ${klass.name}`);
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
/**
|
|
270
|
-
* Set up a logging layer that direct logs to the browser's console.
|
|
271
|
-
*/
|
|
272
|
-
export function setup_logging() {
|
|
273
|
-
wasm.setup_logging();
|
|
274
|
-
}
|
|
275
|
-
|
|
276
291
|
function takeFromExternrefTable0(idx) {
|
|
277
292
|
const value = wasm.__wbindgen_export_4.get(idx);
|
|
278
293
|
wasm.__externref_table_dealloc(idx);
|
|
@@ -290,36 +305,41 @@ export function protoEncodeSignDoc(sign_doc) {
|
|
|
290
305
|
return v1;
|
|
291
306
|
}
|
|
292
307
|
|
|
293
|
-
function
|
|
294
|
-
wasm.
|
|
308
|
+
function __wbg_adapter_8(arg0, arg1, arg2) {
|
|
309
|
+
wasm.closure1785_externref_shim(arg0, arg1, arg2);
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
function __wbg_adapter_13(arg0, arg1) {
|
|
313
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h2abc87618de50089(arg0, arg1);
|
|
295
314
|
}
|
|
296
315
|
|
|
297
|
-
function
|
|
298
|
-
wasm.
|
|
316
|
+
function __wbg_adapter_16(arg0, arg1, arg2) {
|
|
317
|
+
wasm.closure2977_externref_shim(arg0, arg1, arg2);
|
|
299
318
|
}
|
|
300
319
|
|
|
301
|
-
function
|
|
302
|
-
wasm.
|
|
320
|
+
function __wbg_adapter_19(arg0, arg1) {
|
|
321
|
+
wasm.wasm_bindgen__convert__closures_____invoke__hc000bd3f01dbb89a(arg0, arg1);
|
|
303
322
|
}
|
|
304
323
|
|
|
305
|
-
function
|
|
306
|
-
wasm.
|
|
324
|
+
function __wbg_adapter_28(arg0, arg1, arg2) {
|
|
325
|
+
wasm.closure670_externref_shim(arg0, arg1, arg2);
|
|
307
326
|
}
|
|
308
327
|
|
|
309
|
-
function
|
|
310
|
-
wasm.
|
|
328
|
+
function __wbg_adapter_33(arg0, arg1, arg2) {
|
|
329
|
+
wasm.closure2875_externref_shim(arg0, arg1, arg2);
|
|
311
330
|
}
|
|
312
331
|
|
|
313
|
-
function
|
|
314
|
-
wasm.
|
|
332
|
+
function __wbg_adapter_38(arg0, arg1, arg2) {
|
|
333
|
+
const ret = wasm.closure675_externref_shim(arg0, arg1, arg2);
|
|
334
|
+
return ret;
|
|
315
335
|
}
|
|
316
336
|
|
|
317
|
-
function
|
|
318
|
-
wasm.
|
|
337
|
+
function __wbg_adapter_47(arg0, arg1, arg2) {
|
|
338
|
+
wasm.closure673_externref_shim(arg0, arg1, arg2);
|
|
319
339
|
}
|
|
320
340
|
|
|
321
|
-
function
|
|
322
|
-
wasm.
|
|
341
|
+
function __wbg_adapter_982(arg0, arg1, arg2, arg3) {
|
|
342
|
+
wasm.closure3002_externref_shim(arg0, arg1, arg2, arg3);
|
|
323
343
|
}
|
|
324
344
|
|
|
325
345
|
/**
|
|
@@ -694,7 +714,7 @@ export const TxPriority = Object.freeze({
|
|
|
694
714
|
});
|
|
695
715
|
/**
|
|
696
716
|
* Represents state of the transaction in the mempool
|
|
697
|
-
* @enum {0 | 1 | 2 | 3}
|
|
717
|
+
* @enum {0 | 1 | 2 | 3 | 4}
|
|
698
718
|
*/
|
|
699
719
|
export const TxStatus = Object.freeze({
|
|
700
720
|
/**
|
|
@@ -709,10 +729,14 @@ export const TxStatus = Object.freeze({
|
|
|
709
729
|
* The transaction was evicted from the mempool.
|
|
710
730
|
*/
|
|
711
731
|
Evicted: 2, "2": "Evicted",
|
|
732
|
+
/**
|
|
733
|
+
* The transaction was rejected
|
|
734
|
+
*/
|
|
735
|
+
Rejected: 3, "3": "Rejected",
|
|
712
736
|
/**
|
|
713
737
|
* The transaction was committed into the block.
|
|
714
738
|
*/
|
|
715
|
-
Committed:
|
|
739
|
+
Committed: 4, "4": "Committed",
|
|
716
740
|
});
|
|
717
741
|
/**
|
|
718
742
|
* Types of votes
|
|
@@ -867,6 +891,17 @@ export class AbciQueryResponse {
|
|
|
867
891
|
const ptr = this.__destroy_into_raw();
|
|
868
892
|
wasm.__wbg_abciqueryresponse_free(ptr, 0);
|
|
869
893
|
}
|
|
894
|
+
/**
|
|
895
|
+
* The block height from which data was derived.
|
|
896
|
+
*
|
|
897
|
+
* Note that this is the height of the block containing the application's Merkle root hash,
|
|
898
|
+
* which represents the state as it was after committing the block at height - 1.
|
|
899
|
+
* @returns {bigint}
|
|
900
|
+
*/
|
|
901
|
+
get height() {
|
|
902
|
+
const ret = wasm.abciqueryresponse_height(this.__wbg_ptr);
|
|
903
|
+
return BigInt.asUintN(64, ret);
|
|
904
|
+
}
|
|
870
905
|
/**
|
|
871
906
|
* Response code.
|
|
872
907
|
* @returns {ErrorCode}
|
|
@@ -1038,17 +1073,6 @@ export class AbciQueryResponse {
|
|
|
1038
1073
|
const len0 = WASM_VECTOR_LEN;
|
|
1039
1074
|
wasm.__wbg_set_abciqueryresponse_info(this.__wbg_ptr, ptr0, len0);
|
|
1040
1075
|
}
|
|
1041
|
-
/**
|
|
1042
|
-
* The block height from which data was derived.
|
|
1043
|
-
*
|
|
1044
|
-
* Note that this is the height of the block containing the application's Merkle root hash,
|
|
1045
|
-
* which represents the state as it was after committing the block at height - 1.
|
|
1046
|
-
* @returns {bigint}
|
|
1047
|
-
*/
|
|
1048
|
-
get height() {
|
|
1049
|
-
const ret = wasm.abciqueryresponse_height(this.__wbg_ptr);
|
|
1050
|
-
return BigInt.asUintN(64, ret);
|
|
1051
|
-
}
|
|
1052
1076
|
}
|
|
1053
1077
|
|
|
1054
1078
|
const AccAddressFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -1879,21 +1903,21 @@ export class BroadcastMode {
|
|
|
1879
1903
|
return BroadcastMode.__wrap(ret);
|
|
1880
1904
|
}
|
|
1881
1905
|
/**
|
|
1882
|
-
*
|
|
1883
|
-
*
|
|
1906
|
+
* `BroadcastMode` `Sync` defines a tx broadcasting mode where the client waits for
|
|
1907
|
+
* a CheckTx execution response only.
|
|
1884
1908
|
* @returns {BroadcastMode}
|
|
1885
1909
|
*/
|
|
1886
|
-
static get
|
|
1887
|
-
const ret = wasm.
|
|
1910
|
+
static get Sync() {
|
|
1911
|
+
const ret = wasm.broadcastmode_Sync();
|
|
1888
1912
|
return BroadcastMode.__wrap(ret);
|
|
1889
1913
|
}
|
|
1890
1914
|
/**
|
|
1891
|
-
* `BroadcastMode` `Sync`
|
|
1892
|
-
*
|
|
1915
|
+
* DEPRECATED: use `BroadcastMode` `Sync` instead,
|
|
1916
|
+
* `BroadcastMode` `Block` is not supported by the SDK from v0.47.x onwards.
|
|
1893
1917
|
* @returns {BroadcastMode}
|
|
1894
1918
|
*/
|
|
1895
|
-
static get
|
|
1896
|
-
const ret = wasm.
|
|
1919
|
+
static get Block() {
|
|
1920
|
+
const ret = wasm.broadcastmode_Block();
|
|
1897
1921
|
return BroadcastMode.__wrap(ret);
|
|
1898
1922
|
}
|
|
1899
1923
|
/**
|
|
@@ -2448,7 +2472,9 @@ export class ConflictingBlock {
|
|
|
2448
2472
|
const ConnectionCountersSnapshotFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2449
2473
|
? { register: () => {}, unregister: () => {} }
|
|
2450
2474
|
: new FinalizationRegistry(ptr => wasm.__wbg_connectioncounterssnapshot_free(ptr >>> 0, 1));
|
|
2451
|
-
|
|
2475
|
+
/**
|
|
2476
|
+
* Network connection information
|
|
2477
|
+
*/
|
|
2452
2478
|
export class ConnectionCountersSnapshot {
|
|
2453
2479
|
|
|
2454
2480
|
static __wrap(ptr) {
|
|
@@ -2657,7 +2683,7 @@ export class Data {
|
|
|
2657
2683
|
* @returns {bigint}
|
|
2658
2684
|
*/
|
|
2659
2685
|
get square_size() {
|
|
2660
|
-
const ret = wasm.
|
|
2686
|
+
const ret = wasm.__wbg_get_data_square_size(this.__wbg_ptr);
|
|
2661
2687
|
return BigInt.asUintN(64, ret);
|
|
2662
2688
|
}
|
|
2663
2689
|
/**
|
|
@@ -2665,7 +2691,7 @@ export class Data {
|
|
|
2665
2691
|
* @param {bigint} arg0
|
|
2666
2692
|
*/
|
|
2667
2693
|
set square_size(arg0) {
|
|
2668
|
-
wasm.
|
|
2694
|
+
wasm.__wbg_set_data_square_size(this.__wbg_ptr, arg0);
|
|
2669
2695
|
}
|
|
2670
2696
|
/**
|
|
2671
2697
|
* Hash is the root of a binary Merkle tree where the leaves of the tree are
|
|
@@ -2772,51 +2798,59 @@ export class DataAvailabilityHeader {
|
|
|
2772
2798
|
wasm.__wbg_dataavailabilityheader_free(ptr, 0);
|
|
2773
2799
|
}
|
|
2774
2800
|
/**
|
|
2775
|
-
*
|
|
2776
|
-
* @
|
|
2801
|
+
* Get a root of the row with the given index.
|
|
2802
|
+
* @param {number} row
|
|
2803
|
+
* @returns {any}
|
|
2777
2804
|
*/
|
|
2778
|
-
|
|
2779
|
-
const ret = wasm.
|
|
2805
|
+
rowRoot(row) {
|
|
2806
|
+
const ret = wasm.dataavailabilityheader_rowRoot(this.__wbg_ptr, row);
|
|
2780
2807
|
if (ret[2]) {
|
|
2781
2808
|
throw takeFromExternrefTable0(ret[1]);
|
|
2782
2809
|
}
|
|
2783
2810
|
return takeFromExternrefTable0(ret[0]);
|
|
2784
2811
|
}
|
|
2785
2812
|
/**
|
|
2786
|
-
* Merkle roots of the [`ExtendedDataSquare`]
|
|
2813
|
+
* Merkle roots of the [`ExtendedDataSquare`] rows.
|
|
2787
2814
|
* @returns {Array<any>}
|
|
2788
2815
|
*/
|
|
2789
|
-
|
|
2790
|
-
const ret = wasm.
|
|
2816
|
+
rowRoots() {
|
|
2817
|
+
const ret = wasm.dataavailabilityheader_rowRoots(this.__wbg_ptr);
|
|
2791
2818
|
if (ret[2]) {
|
|
2792
2819
|
throw takeFromExternrefTable0(ret[1]);
|
|
2793
2820
|
}
|
|
2794
2821
|
return takeFromExternrefTable0(ret[0]);
|
|
2795
2822
|
}
|
|
2796
2823
|
/**
|
|
2797
|
-
* Get a root of the
|
|
2798
|
-
* @param {number}
|
|
2824
|
+
* Get the a root of the column with the given index.
|
|
2825
|
+
* @param {number} column
|
|
2799
2826
|
* @returns {any}
|
|
2800
2827
|
*/
|
|
2801
|
-
|
|
2802
|
-
const ret = wasm.
|
|
2828
|
+
columnRoot(column) {
|
|
2829
|
+
const ret = wasm.dataavailabilityheader_columnRoot(this.__wbg_ptr, column);
|
|
2803
2830
|
if (ret[2]) {
|
|
2804
2831
|
throw takeFromExternrefTable0(ret[1]);
|
|
2805
2832
|
}
|
|
2806
2833
|
return takeFromExternrefTable0(ret[0]);
|
|
2807
2834
|
}
|
|
2808
2835
|
/**
|
|
2809
|
-
*
|
|
2810
|
-
* @
|
|
2811
|
-
* @returns {any}
|
|
2836
|
+
* Merkle roots of the [`ExtendedDataSquare`] columns.
|
|
2837
|
+
* @returns {Array<any>}
|
|
2812
2838
|
*/
|
|
2813
|
-
|
|
2814
|
-
const ret = wasm.
|
|
2839
|
+
columnRoots() {
|
|
2840
|
+
const ret = wasm.dataavailabilityheader_columnRoots(this.__wbg_ptr);
|
|
2815
2841
|
if (ret[2]) {
|
|
2816
2842
|
throw takeFromExternrefTable0(ret[1]);
|
|
2817
2843
|
}
|
|
2818
2844
|
return takeFromExternrefTable0(ret[0]);
|
|
2819
2845
|
}
|
|
2846
|
+
/**
|
|
2847
|
+
* Get the size of the [`ExtendedDataSquare`] for which this header was built.
|
|
2848
|
+
* @returns {number}
|
|
2849
|
+
*/
|
|
2850
|
+
squareWidth() {
|
|
2851
|
+
const ret = wasm.dataavailabilityheader_squareWidth(this.__wbg_ptr);
|
|
2852
|
+
return ret;
|
|
2853
|
+
}
|
|
2820
2854
|
/**
|
|
2821
2855
|
* Compute the combined hash of all rows and columns.
|
|
2822
2856
|
*
|
|
@@ -2830,14 +2864,6 @@ export class DataAvailabilityHeader {
|
|
|
2830
2864
|
}
|
|
2831
2865
|
return takeFromExternrefTable0(ret[0]);
|
|
2832
2866
|
}
|
|
2833
|
-
/**
|
|
2834
|
-
* Get the size of the [`ExtendedDataSquare`] for which this header was built.
|
|
2835
|
-
* @returns {number}
|
|
2836
|
-
*/
|
|
2837
|
-
squareWidth() {
|
|
2838
|
-
const ret = wasm.dataavailabilityheader_squareWidth(this.__wbg_ptr);
|
|
2839
|
-
return ret;
|
|
2840
|
-
}
|
|
2841
2867
|
}
|
|
2842
2868
|
|
|
2843
2869
|
const DuplicateVoteEvidenceFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -3038,10 +3064,10 @@ export class ExtendedHeader {
|
|
|
3038
3064
|
|
|
3039
3065
|
toJSON() {
|
|
3040
3066
|
return {
|
|
3041
|
-
dah: this.dah,
|
|
3042
|
-
header: this.header,
|
|
3043
|
-
commit: this.commit,
|
|
3044
3067
|
validatorSet: this.validatorSet,
|
|
3068
|
+
commit: this.commit,
|
|
3069
|
+
header: this.header,
|
|
3070
|
+
dah: this.dah,
|
|
3045
3071
|
};
|
|
3046
3072
|
}
|
|
3047
3073
|
|
|
@@ -3061,58 +3087,64 @@ export class ExtendedHeader {
|
|
|
3061
3087
|
wasm.__wbg_extendedheader_free(ptr, 0);
|
|
3062
3088
|
}
|
|
3063
3089
|
/**
|
|
3064
|
-
*
|
|
3065
|
-
* @returns {DataAvailabilityHeader}
|
|
3066
|
-
*/
|
|
3067
|
-
get dah() {
|
|
3068
|
-
const ret = wasm.__wbg_get_extendedheader_dah(this.__wbg_ptr);
|
|
3069
|
-
return DataAvailabilityHeader.__wrap(ret);
|
|
3070
|
-
}
|
|
3071
|
-
/**
|
|
3072
|
-
* Header of the block data availability.
|
|
3073
|
-
* @param {DataAvailabilityHeader} arg0
|
|
3074
|
-
*/
|
|
3075
|
-
set dah(arg0) {
|
|
3076
|
-
_assertClass(arg0, DataAvailabilityHeader);
|
|
3077
|
-
var ptr0 = arg0.__destroy_into_raw();
|
|
3078
|
-
wasm.__wbg_set_extendedheader_dah(this.__wbg_ptr, ptr0);
|
|
3079
|
-
}
|
|
3080
|
-
/**
|
|
3081
|
-
* Clone a header producing a deep copy of it.
|
|
3082
|
-
* @returns {ExtendedHeader}
|
|
3090
|
+
* Decode protobuf encoded header and then validate it.
|
|
3083
3091
|
*/
|
|
3084
|
-
|
|
3085
|
-
const ret = wasm.
|
|
3086
|
-
|
|
3092
|
+
validate() {
|
|
3093
|
+
const ret = wasm.extendedheader_validate(this.__wbg_ptr);
|
|
3094
|
+
if (ret[1]) {
|
|
3095
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
3096
|
+
}
|
|
3087
3097
|
}
|
|
3088
3098
|
/**
|
|
3089
|
-
*
|
|
3090
|
-
*
|
|
3099
|
+
* Verify a chain of adjacent untrusted headers.
|
|
3100
|
+
*
|
|
3101
|
+
* # Note
|
|
3102
|
+
*
|
|
3103
|
+
* Provided headers will be consumed by this method, meaning
|
|
3104
|
+
* they will no longer be accessible. If this behavior is not desired,
|
|
3105
|
+
* consider using `ExtendedHeader.clone()`.
|
|
3106
|
+
*
|
|
3107
|
+
* ```js
|
|
3108
|
+
* const genesis = hdr0;
|
|
3109
|
+
* const headers = [hrd1, hdr2, hdr3];
|
|
3110
|
+
* genesis.verifyRange(headers.map(h => h.clone()));
|
|
3111
|
+
* ```
|
|
3112
|
+
*
|
|
3113
|
+
* # Errors
|
|
3114
|
+
*
|
|
3115
|
+
* If verification fails, this function will return an error with a reason of failure.
|
|
3116
|
+
* This function will also return an error if untrusted headers are not adjacent
|
|
3117
|
+
* to each other.
|
|
3118
|
+
* @param {ExtendedHeader[]} untrusted
|
|
3091
3119
|
*/
|
|
3092
|
-
|
|
3093
|
-
const
|
|
3094
|
-
|
|
3120
|
+
verifyRange(untrusted) {
|
|
3121
|
+
const ptr0 = passArrayJsValueToWasm0(untrusted, wasm.__wbindgen_malloc);
|
|
3122
|
+
const len0 = WASM_VECTOR_LEN;
|
|
3123
|
+
const ret = wasm.extendedheader_verifyRange(this.__wbg_ptr, ptr0, len0);
|
|
3124
|
+
if (ret[1]) {
|
|
3125
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
3126
|
+
}
|
|
3095
3127
|
}
|
|
3096
3128
|
/**
|
|
3097
|
-
*
|
|
3098
|
-
* @returns {
|
|
3129
|
+
* Information about the set of validators commiting the block.
|
|
3130
|
+
* @returns {any}
|
|
3099
3131
|
*/
|
|
3100
|
-
|
|
3101
|
-
const ret = wasm.
|
|
3132
|
+
get validatorSet() {
|
|
3133
|
+
const ret = wasm.extendedheader_validatorSet(this.__wbg_ptr);
|
|
3102
3134
|
if (ret[2]) {
|
|
3103
3135
|
throw takeFromExternrefTable0(ret[1]);
|
|
3104
3136
|
}
|
|
3105
|
-
return ret[0];
|
|
3137
|
+
return takeFromExternrefTable0(ret[0]);
|
|
3106
3138
|
}
|
|
3107
3139
|
/**
|
|
3108
|
-
* Get the
|
|
3140
|
+
* Get the hash of the previous header.
|
|
3109
3141
|
* @returns {string}
|
|
3110
3142
|
*/
|
|
3111
|
-
|
|
3143
|
+
previousHeaderHash() {
|
|
3112
3144
|
let deferred1_0;
|
|
3113
3145
|
let deferred1_1;
|
|
3114
3146
|
try {
|
|
3115
|
-
const ret = wasm.
|
|
3147
|
+
const ret = wasm.extendedheader_previousHeaderHash(this.__wbg_ptr);
|
|
3116
3148
|
deferred1_0 = ret[0];
|
|
3117
3149
|
deferred1_1 = ret[1];
|
|
3118
3150
|
return getStringFromWasm0(ret[0], ret[1]);
|
|
@@ -3121,14 +3153,44 @@ export class ExtendedHeader {
|
|
|
3121
3153
|
}
|
|
3122
3154
|
}
|
|
3123
3155
|
/**
|
|
3124
|
-
*
|
|
3156
|
+
* Verify a chain of adjacent untrusted headers and make sure
|
|
3157
|
+
* they are adjacent to `self`.
|
|
3158
|
+
*
|
|
3159
|
+
* # Note
|
|
3160
|
+
*
|
|
3161
|
+
* Provided headers will be consumed by this method, meaning
|
|
3162
|
+
* they will no longer be accessible. If this behavior is not desired,
|
|
3163
|
+
* consider using `ExtendedHeader.clone()`.
|
|
3164
|
+
*
|
|
3165
|
+
* ```js
|
|
3166
|
+
* const genesis = hdr0;
|
|
3167
|
+
* const headers = [hrd1, hdr2, hdr3];
|
|
3168
|
+
* genesis.verifyAdjacentRange(headers.map(h => h.clone()));
|
|
3169
|
+
* ```
|
|
3170
|
+
*
|
|
3171
|
+
* # Errors
|
|
3172
|
+
*
|
|
3173
|
+
* If verification fails, this function will return an error with a reason of failure.
|
|
3174
|
+
* This function will also return an error if untrusted headers and `self` don't form contiguous range
|
|
3175
|
+
* @param {ExtendedHeader[]} untrusted
|
|
3176
|
+
*/
|
|
3177
|
+
verifyAdjacentRange(untrusted) {
|
|
3178
|
+
const ptr0 = passArrayJsValueToWasm0(untrusted, wasm.__wbindgen_malloc);
|
|
3179
|
+
const len0 = WASM_VECTOR_LEN;
|
|
3180
|
+
const ret = wasm.extendedheader_verifyAdjacentRange(this.__wbg_ptr, ptr0, len0);
|
|
3181
|
+
if (ret[1]) {
|
|
3182
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
3183
|
+
}
|
|
3184
|
+
}
|
|
3185
|
+
/**
|
|
3186
|
+
* Get the block hash.
|
|
3125
3187
|
* @returns {string}
|
|
3126
3188
|
*/
|
|
3127
|
-
|
|
3189
|
+
hash() {
|
|
3128
3190
|
let deferred1_0;
|
|
3129
3191
|
let deferred1_1;
|
|
3130
3192
|
try {
|
|
3131
|
-
const ret = wasm.
|
|
3193
|
+
const ret = wasm.extendedheader_hash(this.__wbg_ptr);
|
|
3132
3194
|
deferred1_0 = ret[0];
|
|
3133
3195
|
deferred1_1 = ret[1];
|
|
3134
3196
|
return getStringFromWasm0(ret[0], ret[1]);
|
|
@@ -3137,15 +3199,23 @@ export class ExtendedHeader {
|
|
|
3137
3199
|
}
|
|
3138
3200
|
}
|
|
3139
3201
|
/**
|
|
3140
|
-
*
|
|
3141
|
-
* @returns {
|
|
3202
|
+
* Get the block time.
|
|
3203
|
+
* @returns {number}
|
|
3142
3204
|
*/
|
|
3143
|
-
|
|
3144
|
-
const ret = wasm.
|
|
3205
|
+
time() {
|
|
3206
|
+
const ret = wasm.extendedheader_time(this.__wbg_ptr);
|
|
3145
3207
|
if (ret[2]) {
|
|
3146
3208
|
throw takeFromExternrefTable0(ret[1]);
|
|
3147
3209
|
}
|
|
3148
|
-
return
|
|
3210
|
+
return ret[0];
|
|
3211
|
+
}
|
|
3212
|
+
/**
|
|
3213
|
+
* Clone a header producing a deep copy of it.
|
|
3214
|
+
* @returns {ExtendedHeader}
|
|
3215
|
+
*/
|
|
3216
|
+
clone() {
|
|
3217
|
+
const ret = wasm.extendedheader_clone(this.__wbg_ptr);
|
|
3218
|
+
return ExtendedHeader.__wrap(ret);
|
|
3149
3219
|
}
|
|
3150
3220
|
/**
|
|
3151
3221
|
* Commit metadata and signatures from validators committing the block.
|
|
@@ -3159,24 +3229,23 @@ export class ExtendedHeader {
|
|
|
3159
3229
|
return takeFromExternrefTable0(ret[0]);
|
|
3160
3230
|
}
|
|
3161
3231
|
/**
|
|
3162
|
-
*
|
|
3232
|
+
* Tendermint block header.
|
|
3163
3233
|
* @returns {any}
|
|
3164
3234
|
*/
|
|
3165
|
-
get
|
|
3166
|
-
const ret = wasm.
|
|
3235
|
+
get header() {
|
|
3236
|
+
const ret = wasm.extendedheader_header(this.__wbg_ptr);
|
|
3167
3237
|
if (ret[2]) {
|
|
3168
3238
|
throw takeFromExternrefTable0(ret[1]);
|
|
3169
3239
|
}
|
|
3170
3240
|
return takeFromExternrefTable0(ret[0]);
|
|
3171
3241
|
}
|
|
3172
3242
|
/**
|
|
3173
|
-
*
|
|
3243
|
+
* Get the block height.
|
|
3244
|
+
* @returns {bigint}
|
|
3174
3245
|
*/
|
|
3175
|
-
|
|
3176
|
-
const ret = wasm.
|
|
3177
|
-
|
|
3178
|
-
throw takeFromExternrefTable0(ret[0]);
|
|
3179
|
-
}
|
|
3246
|
+
height() {
|
|
3247
|
+
const ret = wasm.extendedheader_height(this.__wbg_ptr);
|
|
3248
|
+
return BigInt.asUintN(64, ret);
|
|
3180
3249
|
}
|
|
3181
3250
|
/**
|
|
3182
3251
|
* Verify a chain of adjacent untrusted headers and make sure
|
|
@@ -3196,64 +3265,21 @@ export class ExtendedHeader {
|
|
|
3196
3265
|
}
|
|
3197
3266
|
}
|
|
3198
3267
|
/**
|
|
3199
|
-
*
|
|
3200
|
-
*
|
|
3201
|
-
* # Note
|
|
3202
|
-
*
|
|
3203
|
-
* Provided headers will be consumed by this method, meaning
|
|
3204
|
-
* they will no longer be accessible. If this behavior is not desired,
|
|
3205
|
-
* consider using `ExtendedHeader.clone()`.
|
|
3206
|
-
*
|
|
3207
|
-
* ```js
|
|
3208
|
-
* const genesis = hdr0;
|
|
3209
|
-
* const headers = [hrd1, hdr2, hdr3];
|
|
3210
|
-
* genesis.verifyRange(headers.map(h => h.clone()));
|
|
3211
|
-
* ```
|
|
3212
|
-
*
|
|
3213
|
-
* # Errors
|
|
3214
|
-
*
|
|
3215
|
-
* If verification fails, this function will return an error with a reason of failure.
|
|
3216
|
-
* This function will also return an error if untrusted headers are not adjacent
|
|
3217
|
-
* to each other.
|
|
3218
|
-
* @param {ExtendedHeader[]} untrusted
|
|
3268
|
+
* Header of the block data availability.
|
|
3269
|
+
* @returns {DataAvailabilityHeader}
|
|
3219
3270
|
*/
|
|
3220
|
-
|
|
3221
|
-
const
|
|
3222
|
-
|
|
3223
|
-
const ret = wasm.extendedheader_verifyRange(this.__wbg_ptr, ptr0, len0);
|
|
3224
|
-
if (ret[1]) {
|
|
3225
|
-
throw takeFromExternrefTable0(ret[0]);
|
|
3226
|
-
}
|
|
3271
|
+
get dah() {
|
|
3272
|
+
const ret = wasm.__wbg_get_extendedheader_dah(this.__wbg_ptr);
|
|
3273
|
+
return DataAvailabilityHeader.__wrap(ret);
|
|
3227
3274
|
}
|
|
3228
3275
|
/**
|
|
3229
|
-
*
|
|
3230
|
-
*
|
|
3231
|
-
*
|
|
3232
|
-
* # Note
|
|
3233
|
-
*
|
|
3234
|
-
* Provided headers will be consumed by this method, meaning
|
|
3235
|
-
* they will no longer be accessible. If this behavior is not desired,
|
|
3236
|
-
* consider using `ExtendedHeader.clone()`.
|
|
3237
|
-
*
|
|
3238
|
-
* ```js
|
|
3239
|
-
* const genesis = hdr0;
|
|
3240
|
-
* const headers = [hrd1, hdr2, hdr3];
|
|
3241
|
-
* genesis.verifyAdjacentRange(headers.map(h => h.clone()));
|
|
3242
|
-
* ```
|
|
3243
|
-
*
|
|
3244
|
-
* # Errors
|
|
3245
|
-
*
|
|
3246
|
-
* If verification fails, this function will return an error with a reason of failure.
|
|
3247
|
-
* This function will also return an error if untrusted headers and `self` don't form contiguous range
|
|
3248
|
-
* @param {ExtendedHeader[]} untrusted
|
|
3276
|
+
* Header of the block data availability.
|
|
3277
|
+
* @param {DataAvailabilityHeader} arg0
|
|
3249
3278
|
*/
|
|
3250
|
-
|
|
3251
|
-
|
|
3252
|
-
|
|
3253
|
-
|
|
3254
|
-
if (ret[1]) {
|
|
3255
|
-
throw takeFromExternrefTable0(ret[0]);
|
|
3256
|
-
}
|
|
3279
|
+
set dah(arg0) {
|
|
3280
|
+
_assertClass(arg0, DataAvailabilityHeader);
|
|
3281
|
+
var ptr0 = arg0.__destroy_into_raw();
|
|
3282
|
+
wasm.__wbg_set_extendedheader_dah(this.__wbg_ptr, ptr0);
|
|
3257
3283
|
}
|
|
3258
3284
|
}
|
|
3259
3285
|
|
|
@@ -3531,7 +3557,7 @@ const GrpcClientFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
3531
3557
|
? { register: () => {}, unregister: () => {} }
|
|
3532
3558
|
: new FinalizationRegistry(ptr => wasm.__wbg_grpcclient_free(ptr >>> 0, 1));
|
|
3533
3559
|
/**
|
|
3534
|
-
* Celestia
|
|
3560
|
+
* Celestia gRPC client, for builder see [`GrpcClientBuilder`]
|
|
3535
3561
|
*/
|
|
3536
3562
|
export class GrpcClient {
|
|
3537
3563
|
|
|
@@ -3555,22 +3581,27 @@ export class GrpcClient {
|
|
|
3555
3581
|
wasm.__wbg_grpcclient_free(ptr, 0);
|
|
3556
3582
|
}
|
|
3557
3583
|
/**
|
|
3558
|
-
*
|
|
3559
|
-
* @param {
|
|
3560
|
-
* @
|
|
3584
|
+
* Issue a direct ABCI query to the application
|
|
3585
|
+
* @param {Uint8Array} data
|
|
3586
|
+
* @param {string} path
|
|
3587
|
+
* @param {bigint} height
|
|
3588
|
+
* @param {boolean} prove
|
|
3589
|
+
* @returns {Promise<AbciQueryResponse>}
|
|
3561
3590
|
*/
|
|
3562
|
-
|
|
3563
|
-
const ptr0 =
|
|
3591
|
+
abciQuery(data, path, height, prove) {
|
|
3592
|
+
const ptr0 = passArray8ToWasm0(data, wasm.__wbindgen_malloc);
|
|
3564
3593
|
const len0 = WASM_VECTOR_LEN;
|
|
3565
|
-
const
|
|
3594
|
+
const ptr1 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3595
|
+
const len1 = WASM_VECTOR_LEN;
|
|
3596
|
+
const ret = wasm.grpcclient_abciQuery(this.__wbg_ptr, ptr0, len0, ptr1, len1, height, prove);
|
|
3566
3597
|
return ret;
|
|
3567
3598
|
}
|
|
3568
3599
|
/**
|
|
3569
|
-
*
|
|
3570
|
-
* @returns {Promise<
|
|
3600
|
+
* AppVersion of the client
|
|
3601
|
+
* @returns {Promise<AppVersion>}
|
|
3571
3602
|
*/
|
|
3572
|
-
|
|
3573
|
-
const ret = wasm.
|
|
3603
|
+
get appVersion() {
|
|
3604
|
+
const ret = wasm.grpcclient_appVersion(this.__wbg_ptr);
|
|
3574
3605
|
return ret;
|
|
3575
3606
|
}
|
|
3576
3607
|
/**
|
|
@@ -3578,80 +3609,122 @@ export class GrpcClient {
|
|
|
3578
3609
|
* @param {string} account
|
|
3579
3610
|
* @returns {Promise<BaseAccount>}
|
|
3580
3611
|
*/
|
|
3581
|
-
|
|
3612
|
+
getAccount(account) {
|
|
3582
3613
|
const ptr0 = passStringToWasm0(account, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3583
3614
|
const len0 = WASM_VECTOR_LEN;
|
|
3584
|
-
const ret = wasm.
|
|
3585
|
-
return ret;
|
|
3586
|
-
}
|
|
3587
|
-
/**
|
|
3588
|
-
* Get accounts
|
|
3589
|
-
* @returns {Promise<BaseAccount[]>}
|
|
3590
|
-
*/
|
|
3591
|
-
get_accounts() {
|
|
3592
|
-
const ret = wasm.grpcclient_get_accounts(this.__wbg_ptr);
|
|
3593
|
-
return ret;
|
|
3594
|
-
}
|
|
3595
|
-
/**
|
|
3596
|
-
* Get balance of coins with bond denom for the given address, together with a proof,
|
|
3597
|
-
* and verify the returned balance against the corresponding block's app hash.
|
|
3598
|
-
*
|
|
3599
|
-
* NOTE: the balance returned is the balance reported by the parent block of
|
|
3600
|
-
* the provided header. This is due to the fact that for block N, the block's
|
|
3601
|
-
* app hash is the result of applying the previous block's transaction list.
|
|
3602
|
-
* @param {string} address
|
|
3603
|
-
* @param {ExtendedHeader} header
|
|
3604
|
-
* @returns {Promise<Coin>}
|
|
3605
|
-
*/
|
|
3606
|
-
get_verified_balance(address, header) {
|
|
3607
|
-
const ptr0 = passStringToWasm0(address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3608
|
-
const len0 = WASM_VECTOR_LEN;
|
|
3609
|
-
_assertClass(header, ExtendedHeader);
|
|
3610
|
-
const ret = wasm.grpcclient_get_verified_balance(this.__wbg_ptr, ptr0, len0, header.__wbg_ptr);
|
|
3615
|
+
const ret = wasm.grpcclient_getAccount(this.__wbg_ptr, ptr0, len0);
|
|
3611
3616
|
return ret;
|
|
3612
3617
|
}
|
|
3613
3618
|
/**
|
|
3614
|
-
*
|
|
3619
|
+
* Retrieves the Celestia coin balance for the given address.
|
|
3615
3620
|
* @param {string} address
|
|
3616
3621
|
* @param {string} denom
|
|
3617
3622
|
* @returns {Promise<Coin>}
|
|
3618
3623
|
*/
|
|
3619
|
-
|
|
3624
|
+
getBalance(address, denom) {
|
|
3620
3625
|
const ptr0 = passStringToWasm0(address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3621
3626
|
const len0 = WASM_VECTOR_LEN;
|
|
3622
3627
|
const ptr1 = passStringToWasm0(denom, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3623
3628
|
const len1 = WASM_VECTOR_LEN;
|
|
3624
|
-
const ret = wasm.
|
|
3629
|
+
const ret = wasm.grpcclient_getBalance(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
3625
3630
|
return ret;
|
|
3626
3631
|
}
|
|
3627
3632
|
/**
|
|
3628
|
-
*
|
|
3629
|
-
* @param {
|
|
3630
|
-
* @
|
|
3633
|
+
* Broadcast prepared and serialised transaction
|
|
3634
|
+
* @param {Uint8Array} tx_bytes
|
|
3635
|
+
* @param {BroadcastMode} mode
|
|
3636
|
+
* @returns {Promise<TxResponse>}
|
|
3631
3637
|
*/
|
|
3632
|
-
|
|
3633
|
-
const ptr0 =
|
|
3638
|
+
broadcastTx(tx_bytes, mode) {
|
|
3639
|
+
const ptr0 = passArray8ToWasm0(tx_bytes, wasm.__wbindgen_malloc);
|
|
3634
3640
|
const len0 = WASM_VECTOR_LEN;
|
|
3635
|
-
|
|
3641
|
+
_assertClass(mode, BroadcastMode);
|
|
3642
|
+
const ret = wasm.grpcclient_broadcastTx(this.__wbg_ptr, ptr0, len0, mode.__wbg_ptr);
|
|
3636
3643
|
return ret;
|
|
3637
3644
|
}
|
|
3638
3645
|
/**
|
|
3639
|
-
* Get
|
|
3640
|
-
* @
|
|
3641
|
-
* @returns {Promise<Coin[]>}
|
|
3646
|
+
* Get accounts
|
|
3647
|
+
* @returns {Promise<BaseAccount[]>}
|
|
3642
3648
|
*/
|
|
3643
|
-
|
|
3644
|
-
const
|
|
3649
|
+
getAccounts() {
|
|
3650
|
+
const ret = wasm.grpcclient_getAccounts(this.__wbg_ptr);
|
|
3651
|
+
return ret;
|
|
3652
|
+
}
|
|
3653
|
+
/**
|
|
3654
|
+
* Submit blobs to the celestia network.
|
|
3655
|
+
*
|
|
3656
|
+
* # Example
|
|
3657
|
+
* ```js
|
|
3658
|
+
* const ns = Namespace.newV0(new Uint8Array([97, 98, 99]));
|
|
3659
|
+
* const data = new Uint8Array([100, 97, 116, 97]);
|
|
3660
|
+
* const blob = new Blob(ns, data, AppVersion.latest());
|
|
3661
|
+
*
|
|
3662
|
+
* const txInfo = await txClient.submitBlobs([blob]);
|
|
3663
|
+
* await txClient.submitBlobs([blob], { gasLimit: 100000n, gasPrice: 0.02, memo: "foo" });
|
|
3664
|
+
* ```
|
|
3665
|
+
*
|
|
3666
|
+
* # Note
|
|
3667
|
+
*
|
|
3668
|
+
* Provided blobs will be consumed by this method, meaning
|
|
3669
|
+
* they will no longer be accessible. If this behavior is not desired,
|
|
3670
|
+
* consider using `Blob.clone()`.
|
|
3671
|
+
*
|
|
3672
|
+
* ```js
|
|
3673
|
+
* const blobs = [blob1, blob2, blob3];
|
|
3674
|
+
* await txClient.submitBlobs(blobs.map(b => b.clone()));
|
|
3675
|
+
* ```
|
|
3676
|
+
* @param {Blob[]} blobs
|
|
3677
|
+
* @param {TxConfig | null} [tx_config]
|
|
3678
|
+
* @returns {Promise<TxInfo>}
|
|
3679
|
+
*/
|
|
3680
|
+
submitBlobs(blobs, tx_config) {
|
|
3681
|
+
const ptr0 = passArrayJsValueToWasm0(blobs, wasm.__wbindgen_malloc);
|
|
3645
3682
|
const len0 = WASM_VECTOR_LEN;
|
|
3646
|
-
const ret = wasm.
|
|
3683
|
+
const ret = wasm.grpcclient_submitBlobs(this.__wbg_ptr, ptr0, len0, isLikeNone(tx_config) ? 0 : addToExternrefTable0(tx_config));
|
|
3647
3684
|
return ret;
|
|
3648
3685
|
}
|
|
3649
3686
|
/**
|
|
3650
|
-
*
|
|
3651
|
-
*
|
|
3687
|
+
* Submit message to the celestia network.
|
|
3688
|
+
*
|
|
3689
|
+
* # Example
|
|
3690
|
+
* ```js
|
|
3691
|
+
* import { Registry } from "@cosmjs/proto-signing";
|
|
3692
|
+
*
|
|
3693
|
+
* const registry = new Registry();
|
|
3694
|
+
* const sendMsg = {
|
|
3695
|
+
* typeUrl: "/cosmos.bank.v1beta1.MsgSend",
|
|
3696
|
+
* value: {
|
|
3697
|
+
* fromAddress: "celestia169s50psyj2f4la9a2235329xz7rk6c53zhw9mm",
|
|
3698
|
+
* toAddress: "celestia1t52q7uqgnjfzdh3wx5m5phvma3umrq8k6tq2p9",
|
|
3699
|
+
* amount: [{ denom: "utia", amount: "10000" }],
|
|
3700
|
+
* },
|
|
3701
|
+
* };
|
|
3702
|
+
* const sendMsgAny = registry.encodeAsAny(sendMsg);
|
|
3703
|
+
*
|
|
3704
|
+
* const txInfo = await txClient.submitMessage(sendMsgAny);
|
|
3705
|
+
* ```
|
|
3706
|
+
* @param {ProtoAny} message
|
|
3707
|
+
* @param {TxConfig | null} [tx_config]
|
|
3708
|
+
* @returns {Promise<TxInfo>}
|
|
3709
|
+
*/
|
|
3710
|
+
submitMessage(message, tx_config) {
|
|
3711
|
+
const ret = wasm.grpcclient_submitMessage(this.__wbg_ptr, message, isLikeNone(tx_config) ? 0 : addToExternrefTable0(tx_config));
|
|
3712
|
+
return ret;
|
|
3713
|
+
}
|
|
3714
|
+
/**
|
|
3715
|
+
* Get auth params
|
|
3716
|
+
* @returns {Promise<AuthParams>}
|
|
3717
|
+
*/
|
|
3718
|
+
getAuthParams() {
|
|
3719
|
+
const ret = wasm.grpcclient_getAuthParams(this.__wbg_ptr);
|
|
3720
|
+
return ret;
|
|
3721
|
+
}
|
|
3722
|
+
/**
|
|
3723
|
+
* Get blob params
|
|
3724
|
+
* @returns {Promise<BlobParams>}
|
|
3652
3725
|
*/
|
|
3653
|
-
|
|
3654
|
-
const ret = wasm.
|
|
3726
|
+
getBlobParams() {
|
|
3727
|
+
const ret = wasm.grpcclient_getBlobParams(this.__wbg_ptr);
|
|
3655
3728
|
return ret;
|
|
3656
3729
|
}
|
|
3657
3730
|
/**
|
|
@@ -3662,12 +3735,44 @@ export class GrpcClient {
|
|
|
3662
3735
|
const ret = wasm.grpcclient_get_node_config(this.__wbg_ptr);
|
|
3663
3736
|
return ret;
|
|
3664
3737
|
}
|
|
3738
|
+
/**
|
|
3739
|
+
* Get balance of all coins
|
|
3740
|
+
* @param {string} address
|
|
3741
|
+
* @returns {Promise<Coin[]>}
|
|
3742
|
+
*/
|
|
3743
|
+
getAllBalances(address) {
|
|
3744
|
+
const ptr0 = passStringToWasm0(address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3745
|
+
const len0 = WASM_VECTOR_LEN;
|
|
3746
|
+
const ret = wasm.grpcclient_getAllBalances(this.__wbg_ptr, ptr0, len0);
|
|
3747
|
+
return ret;
|
|
3748
|
+
}
|
|
3665
3749
|
/**
|
|
3666
3750
|
* Get latest block
|
|
3667
3751
|
* @returns {Promise<Block>}
|
|
3668
3752
|
*/
|
|
3669
|
-
|
|
3670
|
-
const ret = wasm.
|
|
3753
|
+
getLatestBlock() {
|
|
3754
|
+
const ret = wasm.grpcclient_getLatestBlock(this.__wbg_ptr);
|
|
3755
|
+
return ret;
|
|
3756
|
+
}
|
|
3757
|
+
/**
|
|
3758
|
+
* Get total supply
|
|
3759
|
+
* @returns {Promise<Coin[]>}
|
|
3760
|
+
*/
|
|
3761
|
+
getTotalSupply() {
|
|
3762
|
+
const ret = wasm.grpcclient_getTotalSupply(this.__wbg_ptr);
|
|
3763
|
+
return ret;
|
|
3764
|
+
}
|
|
3765
|
+
/**
|
|
3766
|
+
* Estimate gas price for given transaction priority based
|
|
3767
|
+
* on the gas prices of the transactions in the last five blocks.
|
|
3768
|
+
*
|
|
3769
|
+
* If no transaction is found in the last five blocks, return the network
|
|
3770
|
+
* min gas price.
|
|
3771
|
+
* @param {TxPriority} priority
|
|
3772
|
+
* @returns {Promise<number>}
|
|
3773
|
+
*/
|
|
3774
|
+
estimateGasPrice(priority) {
|
|
3775
|
+
const ret = wasm.grpcclient_estimateGasPrice(this.__wbg_ptr, priority);
|
|
3671
3776
|
return ret;
|
|
3672
3777
|
}
|
|
3673
3778
|
/**
|
|
@@ -3675,37 +3780,39 @@ export class GrpcClient {
|
|
|
3675
3780
|
* @param {bigint} height
|
|
3676
3781
|
* @returns {Promise<Block>}
|
|
3677
3782
|
*/
|
|
3678
|
-
|
|
3679
|
-
const ret = wasm.
|
|
3783
|
+
getBlockByHeight(height) {
|
|
3784
|
+
const ret = wasm.grpcclient_getBlockByHeight(this.__wbg_ptr, height);
|
|
3680
3785
|
return ret;
|
|
3681
3786
|
}
|
|
3682
3787
|
/**
|
|
3683
|
-
*
|
|
3684
|
-
*
|
|
3685
|
-
*
|
|
3686
|
-
*
|
|
3687
|
-
*
|
|
3688
|
-
*
|
|
3788
|
+
* Retrieves the verified Celestia coin balance for the address.
|
|
3789
|
+
*
|
|
3790
|
+
* # Notes
|
|
3791
|
+
*
|
|
3792
|
+
* This returns the verified balance which is the one that was reported by
|
|
3793
|
+
* the previous network block. In other words, if you transfer some coins,
|
|
3794
|
+
* you need to wait 1 more block in order to see the new balance. If you want
|
|
3795
|
+
* something more immediate then use [`GrpcClient::get_balance`].
|
|
3796
|
+
* @param {string} address
|
|
3797
|
+
* @param {ExtendedHeader} header
|
|
3798
|
+
* @returns {Promise<Coin>}
|
|
3689
3799
|
*/
|
|
3690
|
-
|
|
3691
|
-
const ptr0 =
|
|
3800
|
+
getVerifiedBalance(address, header) {
|
|
3801
|
+
const ptr0 = passStringToWasm0(address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3692
3802
|
const len0 = WASM_VECTOR_LEN;
|
|
3693
|
-
|
|
3694
|
-
const
|
|
3695
|
-
const ret = wasm.grpcclient_abci_query(this.__wbg_ptr, ptr0, len0, ptr1, len1, height, prove);
|
|
3803
|
+
_assertClass(header, ExtendedHeader);
|
|
3804
|
+
const ret = wasm.grpcclient_getVerifiedBalance(this.__wbg_ptr, ptr0, len0, header.__wbg_ptr);
|
|
3696
3805
|
return ret;
|
|
3697
3806
|
}
|
|
3698
3807
|
/**
|
|
3699
|
-
*
|
|
3700
|
-
* @param {
|
|
3701
|
-
* @
|
|
3702
|
-
* @returns {Promise<TxResponse>}
|
|
3808
|
+
* Get balance of all spendable coins
|
|
3809
|
+
* @param {string} address
|
|
3810
|
+
* @returns {Promise<Coin[]>}
|
|
3703
3811
|
*/
|
|
3704
|
-
|
|
3705
|
-
const ptr0 =
|
|
3812
|
+
getSpendableBalances(address) {
|
|
3813
|
+
const ptr0 = passStringToWasm0(address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3706
3814
|
const len0 = WASM_VECTOR_LEN;
|
|
3707
|
-
|
|
3708
|
-
const ret = wasm.grpcclient_broadcast_tx(this.__wbg_ptr, ptr0, len0, mode.__wbg_ptr);
|
|
3815
|
+
const ret = wasm.grpcclient_getSpendableBalances(this.__wbg_ptr, ptr0, len0);
|
|
3709
3816
|
return ret;
|
|
3710
3817
|
}
|
|
3711
3818
|
/**
|
|
@@ -3713,10 +3820,18 @@ export class GrpcClient {
|
|
|
3713
3820
|
* @param {string} hash
|
|
3714
3821
|
* @returns {Promise<GetTxResponse>}
|
|
3715
3822
|
*/
|
|
3716
|
-
|
|
3823
|
+
getTx(hash) {
|
|
3717
3824
|
const ptr0 = passStringToWasm0(hash, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3718
3825
|
const len0 = WASM_VECTOR_LEN;
|
|
3719
|
-
const ret = wasm.
|
|
3826
|
+
const ret = wasm.grpcclient_getTx(this.__wbg_ptr, ptr0, len0);
|
|
3827
|
+
return ret;
|
|
3828
|
+
}
|
|
3829
|
+
/**
|
|
3830
|
+
* Chain id of the client
|
|
3831
|
+
* @returns {Promise<string>}
|
|
3832
|
+
*/
|
|
3833
|
+
get chainId() {
|
|
3834
|
+
const ret = wasm.grpcclient_chainId(this.__wbg_ptr);
|
|
3720
3835
|
return ret;
|
|
3721
3836
|
}
|
|
3722
3837
|
/**
|
|
@@ -3731,26 +3846,185 @@ export class GrpcClient {
|
|
|
3731
3846
|
return ret;
|
|
3732
3847
|
}
|
|
3733
3848
|
/**
|
|
3734
|
-
*
|
|
3735
|
-
* @
|
|
3849
|
+
* Create a builder for [`GrpcClient`] connected to `url`
|
|
3850
|
+
* @param {string} url
|
|
3851
|
+
* @returns {GrpcClientBuilder}
|
|
3736
3852
|
*/
|
|
3737
|
-
|
|
3738
|
-
const
|
|
3739
|
-
|
|
3853
|
+
static withUrl(url) {
|
|
3854
|
+
const ptr0 = passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3855
|
+
const len0 = WASM_VECTOR_LEN;
|
|
3856
|
+
const ret = wasm.grpcclient_withUrl(ptr0, len0);
|
|
3857
|
+
return GrpcClientBuilder.__wrap(ret);
|
|
3740
3858
|
}
|
|
3741
3859
|
/**
|
|
3742
3860
|
* Get status of the transaction
|
|
3743
3861
|
* @param {string} hash
|
|
3744
3862
|
* @returns {Promise<TxStatusResponse>}
|
|
3745
3863
|
*/
|
|
3746
|
-
|
|
3864
|
+
txStatus(hash) {
|
|
3747
3865
|
const ptr0 = passStringToWasm0(hash, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3748
3866
|
const len0 = WASM_VECTOR_LEN;
|
|
3749
|
-
const ret = wasm.
|
|
3867
|
+
const ret = wasm.grpcclient_txStatus(this.__wbg_ptr, ptr0, len0);
|
|
3750
3868
|
return ret;
|
|
3751
3869
|
}
|
|
3752
3870
|
}
|
|
3753
3871
|
|
|
3872
|
+
const GrpcClientBuilderFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3873
|
+
? { register: () => {}, unregister: () => {} }
|
|
3874
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_grpcclientbuilder_free(ptr >>> 0, 1));
|
|
3875
|
+
/**
|
|
3876
|
+
* Builder for [`GrpcClient`] and [`TxClient`].
|
|
3877
|
+
*
|
|
3878
|
+
* Url must point to a [grpc-web proxy](https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-WEB.md).
|
|
3879
|
+
*
|
|
3880
|
+
* # Keyless client example
|
|
3881
|
+
*
|
|
3882
|
+
* ```js
|
|
3883
|
+
* const client = await GrpcClient
|
|
3884
|
+
* .withUrl("http://127.0.0.1:18080")
|
|
3885
|
+
* .build()
|
|
3886
|
+
* ```
|
|
3887
|
+
*
|
|
3888
|
+
* # Transaction client examples
|
|
3889
|
+
*
|
|
3890
|
+
* ## Example with noble/curves
|
|
3891
|
+
* ```js
|
|
3892
|
+
* import { secp256k1 } from "@noble/curves/secp256k1";
|
|
3893
|
+
*
|
|
3894
|
+
* const privKey = "fdc8ac75dfa1c142dbcba77938a14dd03078052ce0b49a529dcf72a9885a3abb";
|
|
3895
|
+
* const pubKey = secp256k1.getPublicKey(privKey);
|
|
3896
|
+
*
|
|
3897
|
+
* const signer = (signDoc) => {
|
|
3898
|
+
* const bytes = protoEncodeSignDoc(signDoc);
|
|
3899
|
+
* const sig = secp256k1.sign(bytes, privKey, { prehash: true });
|
|
3900
|
+
* return sig.toCompactRawBytes();
|
|
3901
|
+
* };
|
|
3902
|
+
*
|
|
3903
|
+
* const client = await GrpcClient
|
|
3904
|
+
* .withUrl("http://127.0.0.1:18080")
|
|
3905
|
+
* .withPubkeyAndSigner(pubKey, signer)
|
|
3906
|
+
* .build();
|
|
3907
|
+
* ```
|
|
3908
|
+
*
|
|
3909
|
+
* ## Example with leap wallet
|
|
3910
|
+
* ```js
|
|
3911
|
+
* await window.leap.enable("mocha-4")
|
|
3912
|
+
* const keys = await window.leap.getKey("mocha-4")
|
|
3913
|
+
*
|
|
3914
|
+
* const signer = (signDoc) => {
|
|
3915
|
+
* return window.leap.signDirect("mocha-4", keys.bech32Address, signDoc, { preferNoSetFee: true })
|
|
3916
|
+
* .then(sig => Uint8Array.from(atob(sig.signature.signature), c => c.charCodeAt(0)))
|
|
3917
|
+
* }
|
|
3918
|
+
*
|
|
3919
|
+
* const client = await GrpcClient
|
|
3920
|
+
* .withUrl("http://127.0.0.1:18080")
|
|
3921
|
+
* .withPubkeyAndSigner(keys.pubKey, signer)
|
|
3922
|
+
* .build()
|
|
3923
|
+
* ```
|
|
3924
|
+
*/
|
|
3925
|
+
export class GrpcClientBuilder {
|
|
3926
|
+
|
|
3927
|
+
static __wrap(ptr) {
|
|
3928
|
+
ptr = ptr >>> 0;
|
|
3929
|
+
const obj = Object.create(GrpcClientBuilder.prototype);
|
|
3930
|
+
obj.__wbg_ptr = ptr;
|
|
3931
|
+
GrpcClientBuilderFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
3932
|
+
return obj;
|
|
3933
|
+
}
|
|
3934
|
+
|
|
3935
|
+
__destroy_into_raw() {
|
|
3936
|
+
const ptr = this.__wbg_ptr;
|
|
3937
|
+
this.__wbg_ptr = 0;
|
|
3938
|
+
GrpcClientBuilderFinalization.unregister(this);
|
|
3939
|
+
return ptr;
|
|
3940
|
+
}
|
|
3941
|
+
|
|
3942
|
+
free() {
|
|
3943
|
+
const ptr = this.__destroy_into_raw();
|
|
3944
|
+
wasm.__wbg_grpcclientbuilder_free(ptr, 0);
|
|
3945
|
+
}
|
|
3946
|
+
/**
|
|
3947
|
+
* Appends ascii metadata to all requests made by the client.
|
|
3948
|
+
*
|
|
3949
|
+
* Note that this method **consumes** builder and returns updated instance of it.
|
|
3950
|
+
* Make sure to re-assign it if you keep builder in a variable.
|
|
3951
|
+
* @param {string} key
|
|
3952
|
+
* @param {string} value
|
|
3953
|
+
* @returns {GrpcClientBuilder}
|
|
3954
|
+
*/
|
|
3955
|
+
withMetadata(key, value) {
|
|
3956
|
+
const ptr = this.__destroy_into_raw();
|
|
3957
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3958
|
+
const len0 = WASM_VECTOR_LEN;
|
|
3959
|
+
const ptr1 = passStringToWasm0(value, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3960
|
+
const len1 = WASM_VECTOR_LEN;
|
|
3961
|
+
const ret = wasm.grpcclientbuilder_withMetadata(ptr, ptr0, len0, ptr1, len1);
|
|
3962
|
+
return GrpcClientBuilder.__wrap(ret);
|
|
3963
|
+
}
|
|
3964
|
+
/**
|
|
3965
|
+
* Appends binary metadata to all requests made by the client.
|
|
3966
|
+
*
|
|
3967
|
+
* Keys for binary metadata must have `-bin` suffix.
|
|
3968
|
+
*
|
|
3969
|
+
* Note that this method **consumes** builder and returns updated instance of it.
|
|
3970
|
+
* Make sure to re-assign it if you keep builder in a variable.
|
|
3971
|
+
* @param {string} key
|
|
3972
|
+
* @param {Uint8Array} value
|
|
3973
|
+
* @returns {GrpcClientBuilder}
|
|
3974
|
+
*/
|
|
3975
|
+
withMetadataBin(key, value) {
|
|
3976
|
+
const ptr = this.__destroy_into_raw();
|
|
3977
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3978
|
+
const len0 = WASM_VECTOR_LEN;
|
|
3979
|
+
const ret = wasm.grpcclientbuilder_withMetadataBin(ptr, ptr0, len0, value);
|
|
3980
|
+
return GrpcClientBuilder.__wrap(ret);
|
|
3981
|
+
}
|
|
3982
|
+
/**
|
|
3983
|
+
* Add public key and signer to the client being built
|
|
3984
|
+
*
|
|
3985
|
+
* Note that this method **consumes** builder and returns updated instance of it.
|
|
3986
|
+
* Make sure to re-assign it if you keep builder in a variable.
|
|
3987
|
+
* @param {Uint8Array} account_pubkey
|
|
3988
|
+
* @param {SignerFn} signer_fn
|
|
3989
|
+
* @returns {GrpcClientBuilder}
|
|
3990
|
+
*/
|
|
3991
|
+
withPubkeyAndSigner(account_pubkey, signer_fn) {
|
|
3992
|
+
const ptr = this.__destroy_into_raw();
|
|
3993
|
+
const ret = wasm.grpcclientbuilder_withPubkeyAndSigner(ptr, account_pubkey, signer_fn);
|
|
3994
|
+
if (ret[2]) {
|
|
3995
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
3996
|
+
}
|
|
3997
|
+
return GrpcClientBuilder.__wrap(ret[0]);
|
|
3998
|
+
}
|
|
3999
|
+
/**
|
|
4000
|
+
* build gRPC client
|
|
4001
|
+
* @returns {GrpcClient}
|
|
4002
|
+
*/
|
|
4003
|
+
build() {
|
|
4004
|
+
const ptr = this.__destroy_into_raw();
|
|
4005
|
+
const ret = wasm.grpcclientbuilder_build(ptr);
|
|
4006
|
+
if (ret[2]) {
|
|
4007
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
4008
|
+
}
|
|
4009
|
+
return GrpcClient.__wrap(ret[0]);
|
|
4010
|
+
}
|
|
4011
|
+
/**
|
|
4012
|
+
* Set the `url` of the grpc-web server to connect to
|
|
4013
|
+
*
|
|
4014
|
+
* Note that this method **consumes** builder and returns updated instance of it.
|
|
4015
|
+
* Make sure to re-assign it if you keep builder in a variable.
|
|
4016
|
+
* @param {string} url
|
|
4017
|
+
* @returns {GrpcClientBuilder}
|
|
4018
|
+
*/
|
|
4019
|
+
withUrl(url) {
|
|
4020
|
+
const ptr = this.__destroy_into_raw();
|
|
4021
|
+
const ptr0 = passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4022
|
+
const len0 = WASM_VECTOR_LEN;
|
|
4023
|
+
const ret = wasm.grpcclientbuilder_withUrl(ptr, ptr0, len0);
|
|
4024
|
+
return GrpcClientBuilder.__wrap(ret);
|
|
4025
|
+
}
|
|
4026
|
+
}
|
|
4027
|
+
|
|
3754
4028
|
const HeaderFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3755
4029
|
? { register: () => {}, unregister: () => {} }
|
|
3756
4030
|
: new FinalizationRegistry(ptr => wasm.__wbg_header_free(ptr >>> 0, 1));
|
|
@@ -4114,13 +4388,6 @@ export class IntoUnderlyingByteSource {
|
|
|
4114
4388
|
const ptr = this.__destroy_into_raw();
|
|
4115
4389
|
wasm.__wbg_intounderlyingbytesource_free(ptr, 0);
|
|
4116
4390
|
}
|
|
4117
|
-
/**
|
|
4118
|
-
* @returns {ReadableStreamType}
|
|
4119
|
-
*/
|
|
4120
|
-
get type() {
|
|
4121
|
-
const ret = wasm.intounderlyingbytesource_type(this.__wbg_ptr);
|
|
4122
|
-
return __wbindgen_enum_ReadableStreamType[ret];
|
|
4123
|
-
}
|
|
4124
4391
|
/**
|
|
4125
4392
|
* @returns {number}
|
|
4126
4393
|
*/
|
|
@@ -4128,6 +4395,14 @@ export class IntoUnderlyingByteSource {
|
|
|
4128
4395
|
const ret = wasm.intounderlyingbytesource_autoAllocateChunkSize(this.__wbg_ptr);
|
|
4129
4396
|
return ret >>> 0;
|
|
4130
4397
|
}
|
|
4398
|
+
/**
|
|
4399
|
+
* @param {ReadableByteStreamController} controller
|
|
4400
|
+
* @returns {Promise<any>}
|
|
4401
|
+
*/
|
|
4402
|
+
pull(controller) {
|
|
4403
|
+
const ret = wasm.intounderlyingbytesource_pull(this.__wbg_ptr, controller);
|
|
4404
|
+
return ret;
|
|
4405
|
+
}
|
|
4131
4406
|
/**
|
|
4132
4407
|
* @param {ReadableByteStreamController} controller
|
|
4133
4408
|
*/
|
|
@@ -4135,12 +4410,11 @@ export class IntoUnderlyingByteSource {
|
|
|
4135
4410
|
wasm.intounderlyingbytesource_start(this.__wbg_ptr, controller);
|
|
4136
4411
|
}
|
|
4137
4412
|
/**
|
|
4138
|
-
* @
|
|
4139
|
-
* @returns {Promise<any>}
|
|
4413
|
+
* @returns {ReadableStreamType}
|
|
4140
4414
|
*/
|
|
4141
|
-
|
|
4142
|
-
const ret = wasm.
|
|
4143
|
-
return ret;
|
|
4415
|
+
get type() {
|
|
4416
|
+
const ret = wasm.intounderlyingbytesource_type(this.__wbg_ptr);
|
|
4417
|
+
return __wbindgen_enum_ReadableStreamType[ret];
|
|
4144
4418
|
}
|
|
4145
4419
|
cancel() {
|
|
4146
4420
|
const ptr = this.__destroy_into_raw();
|
|
@@ -4166,11 +4440,12 @@ export class IntoUnderlyingSink {
|
|
|
4166
4440
|
wasm.__wbg_intounderlyingsink_free(ptr, 0);
|
|
4167
4441
|
}
|
|
4168
4442
|
/**
|
|
4169
|
-
* @param {any}
|
|
4443
|
+
* @param {any} reason
|
|
4170
4444
|
* @returns {Promise<any>}
|
|
4171
4445
|
*/
|
|
4172
|
-
|
|
4173
|
-
const
|
|
4446
|
+
abort(reason) {
|
|
4447
|
+
const ptr = this.__destroy_into_raw();
|
|
4448
|
+
const ret = wasm.intounderlyingsink_abort(ptr, reason);
|
|
4174
4449
|
return ret;
|
|
4175
4450
|
}
|
|
4176
4451
|
/**
|
|
@@ -4182,12 +4457,11 @@ export class IntoUnderlyingSink {
|
|
|
4182
4457
|
return ret;
|
|
4183
4458
|
}
|
|
4184
4459
|
/**
|
|
4185
|
-
* @param {any}
|
|
4460
|
+
* @param {any} chunk
|
|
4186
4461
|
* @returns {Promise<any>}
|
|
4187
4462
|
*/
|
|
4188
|
-
|
|
4189
|
-
const
|
|
4190
|
-
const ret = wasm.intounderlyingsink_abort(ptr, reason);
|
|
4463
|
+
write(chunk) {
|
|
4464
|
+
const ret = wasm.intounderlyingsink_write(this.__wbg_ptr, chunk);
|
|
4191
4465
|
return ret;
|
|
4192
4466
|
}
|
|
4193
4467
|
}
|
|
@@ -4319,7 +4593,7 @@ export class JsEvent {
|
|
|
4319
4593
|
set type(arg0) {
|
|
4320
4594
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4321
4595
|
const len0 = WASM_VECTOR_LEN;
|
|
4322
|
-
wasm.
|
|
4596
|
+
wasm.__wbg_set_jsbitvector_0(this.__wbg_ptr, ptr0, len0);
|
|
4323
4597
|
}
|
|
4324
4598
|
/**
|
|
4325
4599
|
* @returns {JsEventAttribute[]}
|
|
@@ -4393,7 +4667,7 @@ export class JsEventAttribute {
|
|
|
4393
4667
|
set key(arg0) {
|
|
4394
4668
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4395
4669
|
const len0 = WASM_VECTOR_LEN;
|
|
4396
|
-
wasm.
|
|
4670
|
+
wasm.__wbg_set_jsbitvector_0(this.__wbg_ptr, ptr0, len0);
|
|
4397
4671
|
}
|
|
4398
4672
|
/**
|
|
4399
4673
|
* @returns {string}
|
|
@@ -4751,6 +5025,21 @@ export class ModeInfo {
|
|
|
4751
5025
|
const ptr = this.__destroy_into_raw();
|
|
4752
5026
|
wasm.__wbg_modeinfo_free(ptr, 0);
|
|
4753
5027
|
}
|
|
5028
|
+
/**
|
|
5029
|
+
* Multi is the mode info for a multisig public key
|
|
5030
|
+
* mode_infos is the corresponding modes of the signers of the multisig
|
|
5031
|
+
* which could include nested multisig public keys
|
|
5032
|
+
* @returns {ModeInfo[] | undefined}
|
|
5033
|
+
*/
|
|
5034
|
+
get mode_infos() {
|
|
5035
|
+
const ret = wasm.modeinfo_mode_infos(this.__wbg_ptr);
|
|
5036
|
+
let v1;
|
|
5037
|
+
if (ret[0] !== 0) {
|
|
5038
|
+
v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
|
|
5039
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
5040
|
+
}
|
|
5041
|
+
return v1;
|
|
5042
|
+
}
|
|
4754
5043
|
/**
|
|
4755
5044
|
* Return signature mode for the stored signature(s)
|
|
4756
5045
|
* @returns {SignatureMode}
|
|
@@ -4778,21 +5067,6 @@ export class ModeInfo {
|
|
|
4778
5067
|
const ret = wasm.modeinfo_bitarray(this.__wbg_ptr);
|
|
4779
5068
|
return ret === 0 ? undefined : JsBitVector.__wrap(ret);
|
|
4780
5069
|
}
|
|
4781
|
-
/**
|
|
4782
|
-
* Multi is the mode info for a multisig public key
|
|
4783
|
-
* mode_infos is the corresponding modes of the signers of the multisig
|
|
4784
|
-
* which could include nested multisig public keys
|
|
4785
|
-
* @returns {ModeInfo[] | undefined}
|
|
4786
|
-
*/
|
|
4787
|
-
get mode_infos() {
|
|
4788
|
-
const ret = wasm.modeinfo_mode_infos(this.__wbg_ptr);
|
|
4789
|
-
let v1;
|
|
4790
|
-
if (ret[0] !== 0) {
|
|
4791
|
-
v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
|
|
4792
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
4793
|
-
}
|
|
4794
|
-
return v1;
|
|
4795
|
-
}
|
|
4796
5070
|
}
|
|
4797
5071
|
|
|
4798
5072
|
const NamespaceFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -4832,14 +5106,14 @@ export class Namespace {
|
|
|
4832
5106
|
toJSON() {
|
|
4833
5107
|
return {
|
|
4834
5108
|
NS_SIZE: this.NS_SIZE,
|
|
5109
|
+
version: this.version,
|
|
4835
5110
|
TRANSACTION: this.TRANSACTION,
|
|
5111
|
+
PARITY_SHARE: this.PARITY_SHARE,
|
|
4836
5112
|
PAY_FOR_BLOB: this.PAY_FOR_BLOB,
|
|
4837
|
-
|
|
5113
|
+
TAIL_PADDING: this.TAIL_PADDING,
|
|
4838
5114
|
MAX_PRIMARY_RESERVED: this.MAX_PRIMARY_RESERVED,
|
|
4839
5115
|
MIN_SECONDARY_RESERVED: this.MIN_SECONDARY_RESERVED,
|
|
4840
|
-
|
|
4841
|
-
PARITY_SHARE: this.PARITY_SHARE,
|
|
4842
|
-
version: this.version,
|
|
5116
|
+
PRIMARY_RESERVED_PADDING: this.PRIMARY_RESERVED_PADDING,
|
|
4843
5117
|
id: this.id,
|
|
4844
5118
|
};
|
|
4845
5119
|
}
|
|
@@ -4867,6 +5141,44 @@ export class Namespace {
|
|
|
4867
5141
|
const ret = wasm.namespace_NS_SIZE();
|
|
4868
5142
|
return ret >>> 0;
|
|
4869
5143
|
}
|
|
5144
|
+
/**
|
|
5145
|
+
* Returns the first byte indicating the version of the [`Namespace`].
|
|
5146
|
+
* @returns {number}
|
|
5147
|
+
*/
|
|
5148
|
+
get version() {
|
|
5149
|
+
const ret = wasm.namespace_version(this.__wbg_ptr);
|
|
5150
|
+
return ret;
|
|
5151
|
+
}
|
|
5152
|
+
/**
|
|
5153
|
+
* Converts the [`Namespace`] to a byte slice.
|
|
5154
|
+
* @returns {Uint8Array}
|
|
5155
|
+
*/
|
|
5156
|
+
asBytes() {
|
|
5157
|
+
const ret = wasm.namespace_asBytes(this.__wbg_ptr);
|
|
5158
|
+
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
5159
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
5160
|
+
return v1;
|
|
5161
|
+
}
|
|
5162
|
+
/**
|
|
5163
|
+
* Create a new [`Namespace`] from the raw bytes.
|
|
5164
|
+
*
|
|
5165
|
+
* # Errors
|
|
5166
|
+
*
|
|
5167
|
+
* This function will return an error if the slice length is different than
|
|
5168
|
+
* [`NS_SIZE`] or if the namespace is invalid. If you are constructing the
|
|
5169
|
+
* version `0` namespace, check [`newV0`].
|
|
5170
|
+
* @param {Uint8Array} raw
|
|
5171
|
+
* @returns {Namespace}
|
|
5172
|
+
*/
|
|
5173
|
+
static fromRaw(raw) {
|
|
5174
|
+
const ptr0 = passArray8ToWasm0(raw, wasm.__wbindgen_malloc);
|
|
5175
|
+
const len0 = WASM_VECTOR_LEN;
|
|
5176
|
+
const ret = wasm.namespace_fromRaw(ptr0, len0);
|
|
5177
|
+
if (ret[2]) {
|
|
5178
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
5179
|
+
}
|
|
5180
|
+
return Namespace.__wrap(ret[0]);
|
|
5181
|
+
}
|
|
4870
5182
|
/**
|
|
4871
5183
|
* Primary reserved [`Namespace`] for the compact `Share`s with `cosmos SDK` transactions.
|
|
4872
5184
|
* @returns {Namespace}
|
|
@@ -4875,6 +5187,18 @@ export class Namespace {
|
|
|
4875
5187
|
const ret = wasm.namespace_TRANSACTION();
|
|
4876
5188
|
return Namespace.__wrap(ret);
|
|
4877
5189
|
}
|
|
5190
|
+
/**
|
|
5191
|
+
* The [`Namespace`] for `parity shares`.
|
|
5192
|
+
*
|
|
5193
|
+
* It is the namespace with which all the `parity shares` from
|
|
5194
|
+
* `ExtendedDataSquare` are inserted to the `Nmt` when computing
|
|
5195
|
+
* merkle roots.
|
|
5196
|
+
* @returns {Namespace}
|
|
5197
|
+
*/
|
|
5198
|
+
static get PARITY_SHARE() {
|
|
5199
|
+
const ret = wasm.namespace_PARITY_SHARE();
|
|
5200
|
+
return Namespace.__wrap(ret);
|
|
5201
|
+
}
|
|
4878
5202
|
/**
|
|
4879
5203
|
* Primary reserved [`Namespace`] for the compact Shares with MsgPayForBlobs transactions.
|
|
4880
5204
|
* @returns {Namespace}
|
|
@@ -4884,14 +5208,14 @@ export class Namespace {
|
|
|
4884
5208
|
return Namespace.__wrap(ret);
|
|
4885
5209
|
}
|
|
4886
5210
|
/**
|
|
4887
|
-
*
|
|
5211
|
+
* Secondary reserved [`Namespace`] used for padding after the blobs.
|
|
4888
5212
|
*
|
|
4889
|
-
*
|
|
4890
|
-
*
|
|
5213
|
+
* It is used to fill up the `original data square` after all user-submitted
|
|
5214
|
+
* blobs before the parity data is generated for the `ExtendedDataSquare`.
|
|
4891
5215
|
* @returns {Namespace}
|
|
4892
5216
|
*/
|
|
4893
|
-
static get
|
|
4894
|
-
const ret = wasm.
|
|
5217
|
+
static get TAIL_PADDING() {
|
|
5218
|
+
const ret = wasm.namespace_TAIL_PADDING();
|
|
4895
5219
|
return Namespace.__wrap(ret);
|
|
4896
5220
|
}
|
|
4897
5221
|
/**
|
|
@@ -4915,27 +5239,25 @@ export class Namespace {
|
|
|
4915
5239
|
return Namespace.__wrap(ret);
|
|
4916
5240
|
}
|
|
4917
5241
|
/**
|
|
4918
|
-
*
|
|
5242
|
+
* Primary reserved [`Namespace`] for the `Share`s used for padding.
|
|
4919
5243
|
*
|
|
4920
|
-
*
|
|
4921
|
-
*
|
|
5244
|
+
* `Share`s with this namespace are inserted after other shares from primary reserved namespace
|
|
5245
|
+
* so that user-defined namespaces are correctly aligned in `ExtendedDataSquare`
|
|
4922
5246
|
* @returns {Namespace}
|
|
4923
5247
|
*/
|
|
4924
|
-
static get
|
|
4925
|
-
const ret = wasm.
|
|
5248
|
+
static get PRIMARY_RESERVED_PADDING() {
|
|
5249
|
+
const ret = wasm.namespace_MAX_PRIMARY_RESERVED();
|
|
4926
5250
|
return Namespace.__wrap(ret);
|
|
4927
5251
|
}
|
|
4928
5252
|
/**
|
|
4929
|
-
*
|
|
4930
|
-
*
|
|
4931
|
-
* It is the namespace with which all the `parity shares` from
|
|
4932
|
-
* `ExtendedDataSquare` are inserted to the `Nmt` when computing
|
|
4933
|
-
* merkle roots.
|
|
4934
|
-
* @returns {Namespace}
|
|
5253
|
+
* Returns the trailing 28 bytes indicating the id of the [`Namespace`].
|
|
5254
|
+
* @returns {Uint8Array}
|
|
4935
5255
|
*/
|
|
4936
|
-
|
|
4937
|
-
const ret = wasm.
|
|
4938
|
-
|
|
5256
|
+
get id() {
|
|
5257
|
+
const ret = wasm.namespace_id(this.__wbg_ptr);
|
|
5258
|
+
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
5259
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
5260
|
+
return v1;
|
|
4939
5261
|
}
|
|
4940
5262
|
/**
|
|
4941
5263
|
* Create a new [`Namespace`] version `0` with given id.
|
|
@@ -4955,54 +5277,6 @@ export class Namespace {
|
|
|
4955
5277
|
}
|
|
4956
5278
|
return Namespace.__wrap(ret[0]);
|
|
4957
5279
|
}
|
|
4958
|
-
/**
|
|
4959
|
-
* Create a new [`Namespace`] from the raw bytes.
|
|
4960
|
-
*
|
|
4961
|
-
* # Errors
|
|
4962
|
-
*
|
|
4963
|
-
* This function will return an error if the slice length is different than
|
|
4964
|
-
* [`NS_SIZE`] or if the namespace is invalid. If you are constructing the
|
|
4965
|
-
* version `0` namespace, check [`newV0`].
|
|
4966
|
-
* @param {Uint8Array} raw
|
|
4967
|
-
* @returns {Namespace}
|
|
4968
|
-
*/
|
|
4969
|
-
static fromRaw(raw) {
|
|
4970
|
-
const ptr0 = passArray8ToWasm0(raw, wasm.__wbindgen_malloc);
|
|
4971
|
-
const len0 = WASM_VECTOR_LEN;
|
|
4972
|
-
const ret = wasm.namespace_fromRaw(ptr0, len0);
|
|
4973
|
-
if (ret[2]) {
|
|
4974
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
4975
|
-
}
|
|
4976
|
-
return Namespace.__wrap(ret[0]);
|
|
4977
|
-
}
|
|
4978
|
-
/**
|
|
4979
|
-
* Converts the [`Namespace`] to a byte slice.
|
|
4980
|
-
* @returns {Uint8Array}
|
|
4981
|
-
*/
|
|
4982
|
-
asBytes() {
|
|
4983
|
-
const ret = wasm.namespace_asBytes(this.__wbg_ptr);
|
|
4984
|
-
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
4985
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
4986
|
-
return v1;
|
|
4987
|
-
}
|
|
4988
|
-
/**
|
|
4989
|
-
* Returns the first byte indicating the version of the [`Namespace`].
|
|
4990
|
-
* @returns {number}
|
|
4991
|
-
*/
|
|
4992
|
-
get version() {
|
|
4993
|
-
const ret = wasm.namespace_version(this.__wbg_ptr);
|
|
4994
|
-
return ret;
|
|
4995
|
-
}
|
|
4996
|
-
/**
|
|
4997
|
-
* Returns the trailing 28 bytes indicating the id of the [`Namespace`].
|
|
4998
|
-
* @returns {Uint8Array}
|
|
4999
|
-
*/
|
|
5000
|
-
get id() {
|
|
5001
|
-
const ret = wasm.namespace_id(this.__wbg_ptr);
|
|
5002
|
-
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
5003
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
5004
|
-
return v1;
|
|
5005
|
-
}
|
|
5006
5280
|
}
|
|
5007
5281
|
|
|
5008
5282
|
const NetworkInfoSnapshotFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -5107,24 +5381,6 @@ export class NodeClient {
|
|
|
5107
5381
|
const ptr = this.__destroy_into_raw();
|
|
5108
5382
|
wasm.__wbg_nodeclient_free(ptr, 0);
|
|
5109
5383
|
}
|
|
5110
|
-
/**
|
|
5111
|
-
* Create a new connection to a Lumina node running in [`NodeWorker`]. Provided `port` is
|
|
5112
|
-
* expected to have `MessagePort`-like interface for sending and receiving messages.
|
|
5113
|
-
* @param {any} port
|
|
5114
|
-
*/
|
|
5115
|
-
constructor(port) {
|
|
5116
|
-
const ret = wasm.nodeclient_new(port);
|
|
5117
|
-
return ret;
|
|
5118
|
-
}
|
|
5119
|
-
/**
|
|
5120
|
-
* Establish a new connection to the existing worker over provided port
|
|
5121
|
-
* @param {any} port
|
|
5122
|
-
* @returns {Promise<void>}
|
|
5123
|
-
*/
|
|
5124
|
-
addConnectionToWorker(port) {
|
|
5125
|
-
const ret = wasm.nodeclient_addConnectionToWorker(this.__wbg_ptr, port);
|
|
5126
|
-
return ret;
|
|
5127
|
-
}
|
|
5128
5384
|
/**
|
|
5129
5385
|
* Check whether Lumina is currently running
|
|
5130
5386
|
* @returns {Promise<boolean>}
|
|
@@ -5134,20 +5390,37 @@ export class NodeClient {
|
|
|
5134
5390
|
return ret;
|
|
5135
5391
|
}
|
|
5136
5392
|
/**
|
|
5137
|
-
*
|
|
5138
|
-
*
|
|
5139
|
-
*
|
|
5393
|
+
* Get synced headers from the given heights range.
|
|
5394
|
+
*
|
|
5395
|
+
* If start of the range is undefined (None), the first returned header will be of height 1.
|
|
5396
|
+
* If end of the range is undefined (None), the last returned header will be the last header in the
|
|
5397
|
+
* store.
|
|
5398
|
+
*
|
|
5399
|
+
* # Errors
|
|
5400
|
+
*
|
|
5401
|
+
* If range contains a height of a header that is not found in the store.
|
|
5402
|
+
* @param {bigint | null} [start_height]
|
|
5403
|
+
* @param {bigint | null} [end_height]
|
|
5404
|
+
* @returns {Promise<ExtendedHeader[]>}
|
|
5140
5405
|
*/
|
|
5141
|
-
|
|
5142
|
-
|
|
5143
|
-
const ret = wasm.nodeclient_start(this.__wbg_ptr, config.__wbg_ptr);
|
|
5406
|
+
getHeaders(start_height, end_height) {
|
|
5407
|
+
const ret = wasm.nodeclient_getHeaders(this.__wbg_ptr, !isLikeNone(start_height), isLikeNone(start_height) ? BigInt(0) : start_height, !isLikeNone(end_height), isLikeNone(end_height) ? BigInt(0) : end_height);
|
|
5144
5408
|
return ret;
|
|
5145
5409
|
}
|
|
5146
5410
|
/**
|
|
5147
|
-
*
|
|
5411
|
+
* Get current header syncing info.
|
|
5412
|
+
* @returns {Promise<SyncingInfoSnapshot>}
|
|
5148
5413
|
*/
|
|
5149
|
-
|
|
5150
|
-
const ret = wasm.
|
|
5414
|
+
syncerInfo() {
|
|
5415
|
+
const ret = wasm.nodeclient_syncerInfo(this.__wbg_ptr);
|
|
5416
|
+
return ret;
|
|
5417
|
+
}
|
|
5418
|
+
/**
|
|
5419
|
+
* Get current network info.
|
|
5420
|
+
* @returns {Promise<NetworkInfoSnapshot>}
|
|
5421
|
+
*/
|
|
5422
|
+
networkInfo() {
|
|
5423
|
+
const ret = wasm.nodeclient_networkInfo(this.__wbg_ptr);
|
|
5151
5424
|
return ret;
|
|
5152
5425
|
}
|
|
5153
5426
|
/**
|
|
@@ -5159,63 +5432,71 @@ export class NodeClient {
|
|
|
5159
5432
|
return ret;
|
|
5160
5433
|
}
|
|
5161
5434
|
/**
|
|
5162
|
-
*
|
|
5163
|
-
* @returns {Promise<
|
|
5435
|
+
* Returns a [`BroadcastChannel`] for events generated by [`Node`].
|
|
5436
|
+
* @returns {Promise<BroadcastChannel>}
|
|
5164
5437
|
*/
|
|
5165
|
-
|
|
5166
|
-
const ret = wasm.
|
|
5438
|
+
eventsChannel() {
|
|
5439
|
+
const ret = wasm.nodeclient_eventsChannel(this.__wbg_ptr);
|
|
5167
5440
|
return ret;
|
|
5168
5441
|
}
|
|
5169
5442
|
/**
|
|
5170
|
-
*
|
|
5443
|
+
* Trust or untrust the peer with a given ID.
|
|
5444
|
+
* @param {string} peer_id
|
|
5445
|
+
* @param {boolean} is_trusted
|
|
5171
5446
|
* @returns {Promise<void>}
|
|
5172
5447
|
*/
|
|
5173
|
-
|
|
5174
|
-
const
|
|
5448
|
+
setPeerTrust(peer_id, is_trusted) {
|
|
5449
|
+
const ptr0 = passStringToWasm0(peer_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
5450
|
+
const len0 = WASM_VECTOR_LEN;
|
|
5451
|
+
const ret = wasm.nodeclient_setPeerTrust(this.__wbg_ptr, ptr0, len0, is_trusted);
|
|
5175
5452
|
return ret;
|
|
5176
5453
|
}
|
|
5177
5454
|
/**
|
|
5178
|
-
* Wait until the node is connected to at least 1
|
|
5455
|
+
* Wait until the node is connected to at least 1 peer.
|
|
5179
5456
|
* @returns {Promise<void>}
|
|
5180
5457
|
*/
|
|
5181
|
-
|
|
5182
|
-
const ret = wasm.
|
|
5458
|
+
waitConnected() {
|
|
5459
|
+
const ret = wasm.nodeclient_waitConnected(this.__wbg_ptr);
|
|
5183
5460
|
return ret;
|
|
5184
5461
|
}
|
|
5185
5462
|
/**
|
|
5186
|
-
* Get
|
|
5187
|
-
* @returns {Promise<
|
|
5463
|
+
* Get all the peers that node is connected to.
|
|
5464
|
+
* @returns {Promise<Array<any>>}
|
|
5188
5465
|
*/
|
|
5189
|
-
|
|
5190
|
-
const ret = wasm.
|
|
5466
|
+
connectedPeers() {
|
|
5467
|
+
const ret = wasm.nodeclient_connectedPeers(this.__wbg_ptr);
|
|
5191
5468
|
return ret;
|
|
5192
5469
|
}
|
|
5193
5470
|
/**
|
|
5194
|
-
* Get
|
|
5195
|
-
* @returns {Promise<
|
|
5471
|
+
* Get current [`PeerTracker`] info.
|
|
5472
|
+
* @returns {Promise<PeerTrackerInfoSnapshot>}
|
|
5196
5473
|
*/
|
|
5197
|
-
|
|
5198
|
-
const ret = wasm.
|
|
5474
|
+
peerTrackerInfo() {
|
|
5475
|
+
const ret = wasm.nodeclient_peerTrackerInfo(this.__wbg_ptr);
|
|
5199
5476
|
return ret;
|
|
5200
5477
|
}
|
|
5201
5478
|
/**
|
|
5202
|
-
*
|
|
5203
|
-
*
|
|
5479
|
+
* Request all blobs with provided namespace in the block corresponding to this header
|
|
5480
|
+
* using bitswap protocol.
|
|
5481
|
+
* @param {Namespace} namespace
|
|
5482
|
+
* @param {bigint} block_height
|
|
5483
|
+
* @param {number | null} [timeout_secs]
|
|
5484
|
+
* @returns {Promise<Blob[]>}
|
|
5204
5485
|
*/
|
|
5205
|
-
|
|
5206
|
-
|
|
5486
|
+
requestAllBlobs(namespace, block_height, timeout_secs) {
|
|
5487
|
+
_assertClass(namespace, Namespace);
|
|
5488
|
+
const ret = wasm.nodeclient_requestAllBlobs(this.__wbg_ptr, namespace.__wbg_ptr, block_height, !isLikeNone(timeout_secs), isLikeNone(timeout_secs) ? 0 : timeout_secs);
|
|
5207
5489
|
return ret;
|
|
5208
5490
|
}
|
|
5209
5491
|
/**
|
|
5210
|
-
*
|
|
5211
|
-
* @param {string}
|
|
5212
|
-
* @
|
|
5213
|
-
* @returns {Promise<void>}
|
|
5492
|
+
* Get a synced header for the block with a given hash.
|
|
5493
|
+
* @param {string} hash
|
|
5494
|
+
* @returns {Promise<ExtendedHeader>}
|
|
5214
5495
|
*/
|
|
5215
|
-
|
|
5216
|
-
const ptr0 = passStringToWasm0(
|
|
5496
|
+
getHeaderByHash(hash) {
|
|
5497
|
+
const ptr0 = passStringToWasm0(hash, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
5217
5498
|
const len0 = WASM_VECTOR_LEN;
|
|
5218
|
-
const ret = wasm.
|
|
5499
|
+
const ret = wasm.nodeclient_getHeaderByHash(this.__wbg_ptr, ptr0, len0);
|
|
5219
5500
|
return ret;
|
|
5220
5501
|
}
|
|
5221
5502
|
/**
|
|
@@ -5227,57 +5508,48 @@ export class NodeClient {
|
|
|
5227
5508
|
return ret;
|
|
5228
5509
|
}
|
|
5229
5510
|
/**
|
|
5230
|
-
*
|
|
5231
|
-
* @param {
|
|
5511
|
+
* Get a synced header for the block with a given height.
|
|
5512
|
+
* @param {bigint} height
|
|
5232
5513
|
* @returns {Promise<ExtendedHeader>}
|
|
5233
5514
|
*/
|
|
5234
|
-
|
|
5235
|
-
const
|
|
5236
|
-
const len0 = WASM_VECTOR_LEN;
|
|
5237
|
-
const ret = wasm.nodeclient_requestHeaderByHash(this.__wbg_ptr, ptr0, len0);
|
|
5515
|
+
getHeaderByHeight(height) {
|
|
5516
|
+
const ret = wasm.nodeclient_getHeaderByHeight(this.__wbg_ptr, height);
|
|
5238
5517
|
return ret;
|
|
5239
5518
|
}
|
|
5240
5519
|
/**
|
|
5241
|
-
*
|
|
5242
|
-
* @param {bigint} height
|
|
5520
|
+
* Get the latest locally synced header.
|
|
5243
5521
|
* @returns {Promise<ExtendedHeader>}
|
|
5244
5522
|
*/
|
|
5245
|
-
|
|
5246
|
-
const ret = wasm.
|
|
5523
|
+
getLocalHeadHeader() {
|
|
5524
|
+
const ret = wasm.nodeclient_getLocalHeadHeader(this.__wbg_ptr);
|
|
5247
5525
|
return ret;
|
|
5248
5526
|
}
|
|
5249
5527
|
/**
|
|
5250
|
-
*
|
|
5251
|
-
*
|
|
5252
|
-
*
|
|
5253
|
-
* @param {ExtendedHeader} from
|
|
5254
|
-
* @param {bigint} amount
|
|
5255
|
-
* @returns {Promise<ExtendedHeader[]>}
|
|
5528
|
+
* Get data sampling metadata of an already sampled height.
|
|
5529
|
+
* @param {bigint} height
|
|
5530
|
+
* @returns {Promise<SamplingMetadata | undefined>}
|
|
5256
5531
|
*/
|
|
5257
|
-
|
|
5258
|
-
|
|
5259
|
-
const ret = wasm.nodeclient_requestVerifiedHeaders(this.__wbg_ptr, from.__wbg_ptr, amount);
|
|
5532
|
+
getSamplingMetadata(height) {
|
|
5533
|
+
const ret = wasm.nodeclient_getSamplingMetadata(this.__wbg_ptr, height);
|
|
5260
5534
|
return ret;
|
|
5261
5535
|
}
|
|
5262
5536
|
/**
|
|
5263
|
-
* Request
|
|
5264
|
-
*
|
|
5265
|
-
* @
|
|
5266
|
-
* @param {bigint} block_height
|
|
5267
|
-
* @param {number | null} [timeout_secs]
|
|
5268
|
-
* @returns {Promise<Blob[]>}
|
|
5537
|
+
* Request a header for the block with a given hash from the network.
|
|
5538
|
+
* @param {string} hash
|
|
5539
|
+
* @returns {Promise<ExtendedHeader>}
|
|
5269
5540
|
*/
|
|
5270
|
-
|
|
5271
|
-
|
|
5272
|
-
const
|
|
5541
|
+
requestHeaderByHash(hash) {
|
|
5542
|
+
const ptr0 = passStringToWasm0(hash, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
5543
|
+
const len0 = WASM_VECTOR_LEN;
|
|
5544
|
+
const ret = wasm.nodeclient_requestHeaderByHash(this.__wbg_ptr, ptr0, len0);
|
|
5273
5545
|
return ret;
|
|
5274
5546
|
}
|
|
5275
5547
|
/**
|
|
5276
|
-
*
|
|
5277
|
-
* @returns {Promise<
|
|
5548
|
+
* Wait until the node is connected to at least 1 trusted peer.
|
|
5549
|
+
* @returns {Promise<void>}
|
|
5278
5550
|
*/
|
|
5279
|
-
|
|
5280
|
-
const ret = wasm.
|
|
5551
|
+
waitConnectedTrusted() {
|
|
5552
|
+
const ret = wasm.nodeclient_waitConnectedTrusted(this.__wbg_ptr);
|
|
5281
5553
|
return ret;
|
|
5282
5554
|
}
|
|
5283
5555
|
/**
|
|
@@ -5289,66 +5561,69 @@ export class NodeClient {
|
|
|
5289
5561
|
return ret;
|
|
5290
5562
|
}
|
|
5291
5563
|
/**
|
|
5292
|
-
*
|
|
5293
|
-
* @
|
|
5564
|
+
* Establish a new connection to the existing worker over provided port
|
|
5565
|
+
* @param {any} port
|
|
5566
|
+
* @returns {Promise<void>}
|
|
5294
5567
|
*/
|
|
5295
|
-
|
|
5296
|
-
const ret = wasm.
|
|
5568
|
+
addConnectionToWorker(port) {
|
|
5569
|
+
const ret = wasm.nodeclient_addConnectionToWorker(this.__wbg_ptr, port);
|
|
5297
5570
|
return ret;
|
|
5298
5571
|
}
|
|
5299
5572
|
/**
|
|
5300
|
-
*
|
|
5301
|
-
* @param {
|
|
5573
|
+
* Request a header for the block with a given height from the network.
|
|
5574
|
+
* @param {bigint} height
|
|
5302
5575
|
* @returns {Promise<ExtendedHeader>}
|
|
5303
5576
|
*/
|
|
5304
|
-
|
|
5305
|
-
const
|
|
5306
|
-
const len0 = WASM_VECTOR_LEN;
|
|
5307
|
-
const ret = wasm.nodeclient_getHeaderByHash(this.__wbg_ptr, ptr0, len0);
|
|
5577
|
+
requestHeaderByHeight(height) {
|
|
5578
|
+
const ret = wasm.nodeclient_requestHeaderByHeight(this.__wbg_ptr, height);
|
|
5308
5579
|
return ret;
|
|
5309
5580
|
}
|
|
5310
5581
|
/**
|
|
5311
|
-
*
|
|
5312
|
-
*
|
|
5313
|
-
*
|
|
5582
|
+
* Request headers in range (from, from + amount] from the network.
|
|
5583
|
+
*
|
|
5584
|
+
* The headers will be verified with the `from` header.
|
|
5585
|
+
* @param {ExtendedHeader} from
|
|
5586
|
+
* @param {bigint} amount
|
|
5587
|
+
* @returns {Promise<ExtendedHeader[]>}
|
|
5314
5588
|
*/
|
|
5315
|
-
|
|
5316
|
-
|
|
5589
|
+
requestVerifiedHeaders(from, amount) {
|
|
5590
|
+
_assertClass(from, ExtendedHeader);
|
|
5591
|
+
const ret = wasm.nodeclient_requestVerifiedHeaders(this.__wbg_ptr, from.__wbg_ptr, amount);
|
|
5317
5592
|
return ret;
|
|
5318
5593
|
}
|
|
5319
5594
|
/**
|
|
5320
|
-
*
|
|
5321
|
-
*
|
|
5322
|
-
*
|
|
5323
|
-
* If end of the range is undefined (None), the last returned header will be the last header in the
|
|
5324
|
-
* store.
|
|
5325
|
-
*
|
|
5326
|
-
* # Errors
|
|
5327
|
-
*
|
|
5328
|
-
* If range contains a height of a header that is not found in the store.
|
|
5329
|
-
* @param {bigint | null} [start_height]
|
|
5330
|
-
* @param {bigint | null} [end_height]
|
|
5331
|
-
* @returns {Promise<ExtendedHeader[]>}
|
|
5595
|
+
* Create a new connection to a Lumina node running in [`NodeWorker`]. Provided `port` is
|
|
5596
|
+
* expected to have `MessagePort`-like interface for sending and receiving messages.
|
|
5597
|
+
* @param {any} port
|
|
5332
5598
|
*/
|
|
5333
|
-
|
|
5334
|
-
const ret = wasm.
|
|
5599
|
+
constructor(port) {
|
|
5600
|
+
const ret = wasm.nodeclient_new(port);
|
|
5335
5601
|
return ret;
|
|
5336
5602
|
}
|
|
5337
5603
|
/**
|
|
5338
|
-
*
|
|
5339
|
-
* @
|
|
5340
|
-
* @returns {Promise<SamplingMetadata | undefined>}
|
|
5604
|
+
* Stop the node.
|
|
5605
|
+
* @returns {Promise<void>}
|
|
5341
5606
|
*/
|
|
5342
|
-
|
|
5343
|
-
const ret = wasm.
|
|
5607
|
+
stop() {
|
|
5608
|
+
const ret = wasm.nodeclient_stop(this.__wbg_ptr);
|
|
5609
|
+
return ret;
|
|
5610
|
+
}
|
|
5611
|
+
/**
|
|
5612
|
+
* Start the node with the provided config, if it's not running
|
|
5613
|
+
* @param {NodeConfig} config
|
|
5614
|
+
* @returns {Promise<void>}
|
|
5615
|
+
*/
|
|
5616
|
+
start(config) {
|
|
5617
|
+
_assertClass(config, NodeConfig);
|
|
5618
|
+
const ret = wasm.nodeclient_start(this.__wbg_ptr, config.__wbg_ptr);
|
|
5344
5619
|
return ret;
|
|
5345
5620
|
}
|
|
5346
5621
|
/**
|
|
5347
|
-
*
|
|
5348
|
-
* @returns {Promise<
|
|
5622
|
+
* Get all the multiaddresses on which the node listens.
|
|
5623
|
+
* @returns {Promise<Array<any>>}
|
|
5349
5624
|
*/
|
|
5350
|
-
|
|
5351
|
-
const ret = wasm.
|
|
5625
|
+
listeners() {
|
|
5626
|
+
const ret = wasm.nodeclient_listeners(this.__wbg_ptr);
|
|
5352
5627
|
return ret;
|
|
5353
5628
|
}
|
|
5354
5629
|
}
|
|
@@ -5373,6 +5648,7 @@ export class NodeConfig {
|
|
|
5373
5648
|
return {
|
|
5374
5649
|
network: this.network,
|
|
5375
5650
|
bootnodes: this.bootnodes,
|
|
5651
|
+
identity_key: this.identity_key,
|
|
5376
5652
|
usePersistentMemory: this.usePersistentMemory,
|
|
5377
5653
|
customPruningWindowSecs: this.customPruningWindowSecs,
|
|
5378
5654
|
};
|
|
@@ -5393,6 +5669,15 @@ export class NodeConfig {
|
|
|
5393
5669
|
const ptr = this.__destroy_into_raw();
|
|
5394
5670
|
wasm.__wbg_nodeconfig_free(ptr, 0);
|
|
5395
5671
|
}
|
|
5672
|
+
/**
|
|
5673
|
+
* Get the configuration with default bootnodes for provided network
|
|
5674
|
+
* @param {Network} network
|
|
5675
|
+
* @returns {NodeConfig}
|
|
5676
|
+
*/
|
|
5677
|
+
static default(network) {
|
|
5678
|
+
const ret = wasm.nodeconfig_default(network);
|
|
5679
|
+
return NodeConfig.__wrap(ret);
|
|
5680
|
+
}
|
|
5396
5681
|
/**
|
|
5397
5682
|
* A network to connect to.
|
|
5398
5683
|
* @returns {Network}
|
|
@@ -5427,6 +5712,30 @@ export class NodeConfig {
|
|
|
5427
5712
|
const len0 = WASM_VECTOR_LEN;
|
|
5428
5713
|
wasm.__wbg_set_nodeconfig_bootnodes(this.__wbg_ptr, ptr0, len0);
|
|
5429
5714
|
}
|
|
5715
|
+
/**
|
|
5716
|
+
* Optionally start with a provided private key used as libp2p identity. Expects 32 bytes
|
|
5717
|
+
* containing ed25519 secret key.
|
|
5718
|
+
* @returns {Uint8Array | undefined}
|
|
5719
|
+
*/
|
|
5720
|
+
get identity_key() {
|
|
5721
|
+
const ret = wasm.__wbg_get_nodeconfig_identity_key(this.__wbg_ptr);
|
|
5722
|
+
let v1;
|
|
5723
|
+
if (ret[0] !== 0) {
|
|
5724
|
+
v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
5725
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
5726
|
+
}
|
|
5727
|
+
return v1;
|
|
5728
|
+
}
|
|
5729
|
+
/**
|
|
5730
|
+
* Optionally start with a provided private key used as libp2p identity. Expects 32 bytes
|
|
5731
|
+
* containing ed25519 secret key.
|
|
5732
|
+
* @param {Uint8Array | null} [arg0]
|
|
5733
|
+
*/
|
|
5734
|
+
set identity_key(arg0) {
|
|
5735
|
+
var ptr0 = isLikeNone(arg0) ? 0 : passArray8ToWasm0(arg0, wasm.__wbindgen_malloc);
|
|
5736
|
+
var len0 = WASM_VECTOR_LEN;
|
|
5737
|
+
wasm.__wbg_set_nodeconfig_identity_key(this.__wbg_ptr, ptr0, len0);
|
|
5738
|
+
}
|
|
5430
5739
|
/**
|
|
5431
5740
|
* Whether to store data in persistent memory or not.
|
|
5432
5741
|
*
|
|
@@ -5479,15 +5788,6 @@ export class NodeConfig {
|
|
|
5479
5788
|
set customPruningWindowSecs(arg0) {
|
|
5480
5789
|
wasm.__wbg_set_nodeconfig_customPruningWindowSecs(this.__wbg_ptr, isLikeNone(arg0) ? 0x100000001 : (arg0) >>> 0);
|
|
5481
5790
|
}
|
|
5482
|
-
/**
|
|
5483
|
-
* Get the configuration with default bootnodes for provided network
|
|
5484
|
-
* @param {Network} network
|
|
5485
|
-
* @returns {NodeConfig}
|
|
5486
|
-
*/
|
|
5487
|
-
static default(network) {
|
|
5488
|
-
const ret = wasm.nodeconfig_default(network);
|
|
5489
|
-
return NodeConfig.__wrap(ret);
|
|
5490
|
-
}
|
|
5491
5791
|
}
|
|
5492
5792
|
|
|
5493
5793
|
const NodeWorkerFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -5513,6 +5813,7 @@ export class NodeWorker {
|
|
|
5513
5813
|
wasm.__wbg_nodeworker_free(ptr, 0);
|
|
5514
5814
|
}
|
|
5515
5815
|
/**
|
|
5816
|
+
* Create a new `NodeWorker` with a port-like JS object.
|
|
5516
5817
|
* @param {any} port_like_object
|
|
5517
5818
|
*/
|
|
5518
5819
|
constructor(port_like_object) {
|
|
@@ -5522,6 +5823,7 @@ export class NodeWorker {
|
|
|
5522
5823
|
return this;
|
|
5523
5824
|
}
|
|
5524
5825
|
/**
|
|
5826
|
+
* Run `NodeWorker` main loop.
|
|
5525
5827
|
* @returns {Promise<void>}
|
|
5526
5828
|
*/
|
|
5527
5829
|
run() {
|
|
@@ -5595,7 +5897,7 @@ export class PartsHeader {
|
|
|
5595
5897
|
set hash(arg0) {
|
|
5596
5898
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
5597
5899
|
const len0 = WASM_VECTOR_LEN;
|
|
5598
|
-
wasm.
|
|
5900
|
+
wasm.__wbg_set_jsbitvector_0(this.__wbg_ptr, ptr0, len0);
|
|
5599
5901
|
}
|
|
5600
5902
|
}
|
|
5601
5903
|
|
|
@@ -5846,7 +6148,7 @@ export class ProtocolVersion {
|
|
|
5846
6148
|
* @returns {bigint}
|
|
5847
6149
|
*/
|
|
5848
6150
|
get block() {
|
|
5849
|
-
const ret = wasm.
|
|
6151
|
+
const ret = wasm.__wbg_get_commit_height(this.__wbg_ptr);
|
|
5850
6152
|
return BigInt.asUintN(64, ret);
|
|
5851
6153
|
}
|
|
5852
6154
|
/**
|
|
@@ -5854,14 +6156,14 @@ export class ProtocolVersion {
|
|
|
5854
6156
|
* @param {bigint} arg0
|
|
5855
6157
|
*/
|
|
5856
6158
|
set block(arg0) {
|
|
5857
|
-
wasm.
|
|
6159
|
+
wasm.__wbg_set_commit_height(this.__wbg_ptr, arg0);
|
|
5858
6160
|
}
|
|
5859
6161
|
/**
|
|
5860
6162
|
* app version
|
|
5861
6163
|
* @returns {bigint}
|
|
5862
6164
|
*/
|
|
5863
6165
|
get app() {
|
|
5864
|
-
const ret = wasm.
|
|
6166
|
+
const ret = wasm.__wbg_get_protocolversion_app(this.__wbg_ptr);
|
|
5865
6167
|
return BigInt.asUintN(64, ret);
|
|
5866
6168
|
}
|
|
5867
6169
|
/**
|
|
@@ -5869,7 +6171,7 @@ export class ProtocolVersion {
|
|
|
5869
6171
|
* @param {bigint} arg0
|
|
5870
6172
|
*/
|
|
5871
6173
|
set app(arg0) {
|
|
5872
|
-
wasm.
|
|
6174
|
+
wasm.__wbg_set_protocolversion_app(this.__wbg_ptr, arg0);
|
|
5873
6175
|
}
|
|
5874
6176
|
}
|
|
5875
6177
|
|
|
@@ -6054,6 +6356,16 @@ export class SignerInfo {
|
|
|
6054
6356
|
const ptr = this.__destroy_into_raw();
|
|
6055
6357
|
wasm.__wbg_signerinfo_free(ptr, 0);
|
|
6056
6358
|
}
|
|
6359
|
+
/**
|
|
6360
|
+
* public_key is the public key of the signer. It is optional for accounts
|
|
6361
|
+
* that already exist in state. If unset, the verifier can use the required \
|
|
6362
|
+
* signer address for this position and lookup the public key.
|
|
6363
|
+
* @returns {ProtoAny | undefined}
|
|
6364
|
+
*/
|
|
6365
|
+
public_key() {
|
|
6366
|
+
const ret = wasm.signerinfo_public_key(this.__wbg_ptr);
|
|
6367
|
+
return ret;
|
|
6368
|
+
}
|
|
6057
6369
|
/**
|
|
6058
6370
|
* mode_info describes the signing mode of the signer and is a nested
|
|
6059
6371
|
* structure to support nested multisig pubkey's
|
|
@@ -6092,16 +6404,6 @@ export class SignerInfo {
|
|
|
6092
6404
|
set sequence(arg0) {
|
|
6093
6405
|
wasm.__wbg_set_signerinfo_sequence(this.__wbg_ptr, arg0);
|
|
6094
6406
|
}
|
|
6095
|
-
/**
|
|
6096
|
-
* public_key is the public key of the signer. It is optional for accounts
|
|
6097
|
-
* that already exist in state. If unset, the verifier can use the required \
|
|
6098
|
-
* signer address for this position and lookup the public key.
|
|
6099
|
-
* @returns {ProtoAny | undefined}
|
|
6100
|
-
*/
|
|
6101
|
-
public_key() {
|
|
6102
|
-
const ret = wasm.signerinfo_public_key(this.__wbg_ptr);
|
|
6103
|
-
return ret;
|
|
6104
|
-
}
|
|
6105
6407
|
}
|
|
6106
6408
|
|
|
6107
6409
|
const StringEventFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -6351,336 +6653,87 @@ export class TxBody {
|
|
|
6351
6653
|
const ptr = this.__wbg_ptr;
|
|
6352
6654
|
this.__wbg_ptr = 0;
|
|
6353
6655
|
TxBodyFinalization.unregister(this);
|
|
6354
|
-
return ptr;
|
|
6355
|
-
}
|
|
6356
|
-
|
|
6357
|
-
free() {
|
|
6358
|
-
const ptr = this.__destroy_into_raw();
|
|
6359
|
-
wasm.__wbg_txbody_free(ptr, 0);
|
|
6360
|
-
}
|
|
6361
|
-
/**
|
|
6362
|
-
* `memo` is any arbitrary memo to be added to the transaction.
|
|
6363
|
-
* @returns {string}
|
|
6364
|
-
*/
|
|
6365
|
-
get memo() {
|
|
6366
|
-
let deferred1_0;
|
|
6367
|
-
let deferred1_1;
|
|
6368
|
-
try {
|
|
6369
|
-
const ret = wasm.__wbg_get_txbody_memo(this.__wbg_ptr);
|
|
6370
|
-
deferred1_0 = ret[0];
|
|
6371
|
-
deferred1_1 = ret[1];
|
|
6372
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
6373
|
-
} finally {
|
|
6374
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
6375
|
-
}
|
|
6376
|
-
}
|
|
6377
|
-
/**
|
|
6378
|
-
* `memo` is any arbitrary memo to be added to the transaction.
|
|
6379
|
-
* @param {string} arg0
|
|
6380
|
-
*/
|
|
6381
|
-
set memo(arg0) {
|
|
6382
|
-
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
6383
|
-
const len0 = WASM_VECTOR_LEN;
|
|
6384
|
-
wasm.__wbg_set_txbody_memo(this.__wbg_ptr, ptr0, len0);
|
|
6385
|
-
}
|
|
6386
|
-
/**
|
|
6387
|
-
* `messages` is a list of messages to be executed. The required signers of
|
|
6388
|
-
* those messages define the number and order of elements in `AuthInfo`'s
|
|
6389
|
-
* signer_infos and Tx's signatures. Each required signer address is added to
|
|
6390
|
-
* the list only the first time it occurs.
|
|
6391
|
-
*
|
|
6392
|
-
* By convention, the first required signer (usually from the first message)
|
|
6393
|
-
* is referred to as the primary signer and pays the fee for the whole
|
|
6394
|
-
* transaction.
|
|
6395
|
-
* @returns {ProtoAny[]}
|
|
6396
|
-
*/
|
|
6397
|
-
messages() {
|
|
6398
|
-
const ret = wasm.txbody_messages(this.__wbg_ptr);
|
|
6399
|
-
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
|
|
6400
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
6401
|
-
return v1;
|
|
6402
|
-
}
|
|
6403
|
-
/**
|
|
6404
|
-
* `timeout` is the block height after which this transaction will not
|
|
6405
|
-
* be processed by the chain
|
|
6406
|
-
* @returns {bigint}
|
|
6407
|
-
*/
|
|
6408
|
-
get timeout_height() {
|
|
6409
|
-
const ret = wasm.txbody_timeout_height(this.__wbg_ptr);
|
|
6410
|
-
return BigInt.asUintN(64, ret);
|
|
6411
|
-
}
|
|
6412
|
-
/**
|
|
6413
|
-
* `extension_options` are arbitrary options that can be added by chains
|
|
6414
|
-
* when the default options are not sufficient. If any of these are present
|
|
6415
|
-
* and can't be handled, the transaction will be rejected
|
|
6416
|
-
* @returns {ProtoAny[]}
|
|
6417
|
-
*/
|
|
6418
|
-
extension_options() {
|
|
6419
|
-
const ret = wasm.txbody_extension_options(this.__wbg_ptr);
|
|
6420
|
-
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
|
|
6421
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
6422
|
-
return v1;
|
|
6423
|
-
}
|
|
6424
|
-
/**
|
|
6425
|
-
* `extension_options` are arbitrary options that can be added by chains
|
|
6426
|
-
* when the default options are not sufficient. If any of these are present
|
|
6427
|
-
* and can't be handled, they will be ignored
|
|
6428
|
-
* @returns {ProtoAny[]}
|
|
6429
|
-
*/
|
|
6430
|
-
non_critical_extension_options() {
|
|
6431
|
-
const ret = wasm.txbody_non_critical_extension_options(this.__wbg_ptr);
|
|
6432
|
-
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
|
|
6433
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
6434
|
-
return v1;
|
|
6435
|
-
}
|
|
6436
|
-
}
|
|
6437
|
-
|
|
6438
|
-
const TxClientFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
6439
|
-
? { register: () => {}, unregister: () => {} }
|
|
6440
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_txclient_free(ptr >>> 0, 1));
|
|
6441
|
-
/**
|
|
6442
|
-
* Celestia grpc transaction client.
|
|
6443
|
-
*/
|
|
6444
|
-
export class TxClient {
|
|
6445
|
-
|
|
6446
|
-
static __wrap(ptr) {
|
|
6447
|
-
ptr = ptr >>> 0;
|
|
6448
|
-
const obj = Object.create(TxClient.prototype);
|
|
6449
|
-
obj.__wbg_ptr = ptr;
|
|
6450
|
-
TxClientFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
6451
|
-
return obj;
|
|
6452
|
-
}
|
|
6453
|
-
|
|
6454
|
-
__destroy_into_raw() {
|
|
6455
|
-
const ptr = this.__wbg_ptr;
|
|
6456
|
-
this.__wbg_ptr = 0;
|
|
6457
|
-
TxClientFinalization.unregister(this);
|
|
6458
|
-
return ptr;
|
|
6459
|
-
}
|
|
6460
|
-
|
|
6461
|
-
free() {
|
|
6462
|
-
const ptr = this.__destroy_into_raw();
|
|
6463
|
-
wasm.__wbg_txclient_free(ptr, 0);
|
|
6464
|
-
}
|
|
6465
|
-
/**
|
|
6466
|
-
* Create a new transaction client with the specified account.
|
|
6467
|
-
*
|
|
6468
|
-
* Url must point to a [grpc-web proxy](https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-WEB.md).
|
|
6469
|
-
*
|
|
6470
|
-
* # Example with noble/curves
|
|
6471
|
-
* ```js
|
|
6472
|
-
* import { secp256k1 } from "@noble/curves/secp256k1";
|
|
6473
|
-
*
|
|
6474
|
-
* const privKey = "fdc8ac75dfa1c142dbcba77938a14dd03078052ce0b49a529dcf72a9885a3abb";
|
|
6475
|
-
* const pubKey = secp256k1.getPublicKey(privKey);
|
|
6476
|
-
*
|
|
6477
|
-
* const signer = (signDoc) => {
|
|
6478
|
-
* const bytes = protoEncodeSignDoc(signDoc);
|
|
6479
|
-
* const sig = secp256k1.sign(bytes, privKey, { prehash: true });
|
|
6480
|
-
* return sig.toCompactRawBytes();
|
|
6481
|
-
* };
|
|
6482
|
-
*
|
|
6483
|
-
* const txClient = await new TxClient("http://127.0.0.1:18080", pubKey, signer);
|
|
6484
|
-
* ```
|
|
6485
|
-
*
|
|
6486
|
-
* # Example with leap wallet
|
|
6487
|
-
* ```js
|
|
6488
|
-
* await window.leap.enable("mocha-4")
|
|
6489
|
-
* const keys = await window.leap.getKey("mocha-4")
|
|
6490
|
-
*
|
|
6491
|
-
* const signer = (signDoc) => {
|
|
6492
|
-
* return window.leap.signDirect("mocha-4", keys.bech32Address, signDoc, { preferNoSetFee: true })
|
|
6493
|
-
* .then(sig => Uint8Array.from(atob(sig.signature.signature), c => c.charCodeAt(0)))
|
|
6494
|
-
* }
|
|
6495
|
-
*
|
|
6496
|
-
* const tx_client = await new TxClient("http://127.0.0.1:18080", keys.pubKey, signer)
|
|
6497
|
-
* ```
|
|
6498
|
-
* @param {string} url
|
|
6499
|
-
* @param {Uint8Array} pubkey
|
|
6500
|
-
* @param {SignerFn} signer_fn
|
|
6501
|
-
*/
|
|
6502
|
-
constructor(url, pubkey, signer_fn) {
|
|
6503
|
-
const ptr0 = passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
6504
|
-
const len0 = WASM_VECTOR_LEN;
|
|
6505
|
-
const ret = wasm.txclient_new(ptr0, len0, pubkey, signer_fn);
|
|
6506
|
-
return ret;
|
|
6507
|
-
}
|
|
6508
|
-
/**
|
|
6509
|
-
* estimate_gas_price takes a transaction priority and estimates the gas price based
|
|
6510
|
-
* on the gas prices of the transactions in the last five blocks.
|
|
6511
|
-
*
|
|
6512
|
-
* If no transaction is found in the last five blocks, return the network
|
|
6513
|
-
* min gas price.
|
|
6514
|
-
* @param {TxPriority} priority
|
|
6515
|
-
* @returns {Promise<number>}
|
|
6516
|
-
*/
|
|
6517
|
-
getEstimateGasPrice(priority) {
|
|
6518
|
-
const ret = wasm.txclient_getEstimateGasPrice(this.__wbg_ptr, priority);
|
|
6519
|
-
return ret;
|
|
6520
|
-
}
|
|
6521
|
-
/**
|
|
6522
|
-
* Chain id of the client
|
|
6523
|
-
* @returns {string}
|
|
6524
|
-
*/
|
|
6525
|
-
get chainId() {
|
|
6526
|
-
let deferred1_0;
|
|
6527
|
-
let deferred1_1;
|
|
6528
|
-
try {
|
|
6529
|
-
const ret = wasm.txclient_chainId(this.__wbg_ptr);
|
|
6530
|
-
deferred1_0 = ret[0];
|
|
6531
|
-
deferred1_1 = ret[1];
|
|
6532
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
6533
|
-
} finally {
|
|
6534
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
6535
|
-
}
|
|
6536
|
-
}
|
|
6537
|
-
/**
|
|
6538
|
-
* AppVersion of the client
|
|
6539
|
-
* @returns {AppVersion}
|
|
6540
|
-
*/
|
|
6541
|
-
get appVersion() {
|
|
6542
|
-
const ret = wasm.txclient_appVersion(this.__wbg_ptr);
|
|
6543
|
-
return AppVersion.__wrap(ret);
|
|
6544
|
-
}
|
|
6545
|
-
/**
|
|
6546
|
-
* Submit blobs to the celestia network.
|
|
6547
|
-
*
|
|
6548
|
-
* When no `TxConfig` is provided, client will automatically calculate needed
|
|
6549
|
-
* gas and update the `gasPrice`, if network agreed on a new minimal value.
|
|
6550
|
-
* To enforce specific values use a `TxConfig`.
|
|
6551
|
-
*
|
|
6552
|
-
* # Example
|
|
6553
|
-
* ```js
|
|
6554
|
-
* const ns = Namespace.newV0(new Uint8Array([97, 98, 99]));
|
|
6555
|
-
* const data = new Uint8Array([100, 97, 116, 97]);
|
|
6556
|
-
* const blob = new Blob(ns, data, AppVersion.latest());
|
|
6557
|
-
*
|
|
6558
|
-
* const txInfo = await txClient.submitBlobs([blob]);
|
|
6559
|
-
* await txClient.submitBlobs([blob], { gasLimit: 100000n, gasPrice: 0.02, memo: "foo" });
|
|
6560
|
-
* ```
|
|
6561
|
-
*
|
|
6562
|
-
* # Note
|
|
6563
|
-
*
|
|
6564
|
-
* Provided blobs will be consumed by this method, meaning
|
|
6565
|
-
* they will no longer be accessible. If this behavior is not desired,
|
|
6566
|
-
* consider using `Blob.clone()`.
|
|
6567
|
-
*
|
|
6568
|
-
* ```js
|
|
6569
|
-
* const blobs = [blob1, blob2, blob3];
|
|
6570
|
-
* await txClient.submitBlobs(blobs.map(b => b.clone()));
|
|
6571
|
-
* ```
|
|
6572
|
-
* @param {Blob[]} blobs
|
|
6573
|
-
* @param {TxConfig | null} [tx_config]
|
|
6574
|
-
* @returns {Promise<TxInfo>}
|
|
6575
|
-
*/
|
|
6576
|
-
submitBlobs(blobs, tx_config) {
|
|
6577
|
-
const ptr0 = passArrayJsValueToWasm0(blobs, wasm.__wbindgen_malloc);
|
|
6578
|
-
const len0 = WASM_VECTOR_LEN;
|
|
6579
|
-
const ret = wasm.txclient_submitBlobs(this.__wbg_ptr, ptr0, len0, isLikeNone(tx_config) ? 0 : addToExternrefTable0(tx_config));
|
|
6580
|
-
return ret;
|
|
6656
|
+
return ptr;
|
|
6581
6657
|
}
|
|
6582
|
-
|
|
6583
|
-
|
|
6584
|
-
|
|
6585
|
-
|
|
6586
|
-
* gas and update the `gasPrice`, if network agreed on a new minimal value.
|
|
6587
|
-
* To enforce specific values use a `TxConfig`.
|
|
6588
|
-
*
|
|
6589
|
-
* # Example
|
|
6590
|
-
* ```js
|
|
6591
|
-
* import { Registry } from "@cosmjs/proto-signing";
|
|
6592
|
-
*
|
|
6593
|
-
* const registry = new Registry();
|
|
6594
|
-
* const sendMsg = {
|
|
6595
|
-
* typeUrl: "/cosmos.bank.v1beta1.MsgSend",
|
|
6596
|
-
* value: {
|
|
6597
|
-
* fromAddress: "celestia169s50psyj2f4la9a2235329xz7rk6c53zhw9mm",
|
|
6598
|
-
* toAddress: "celestia1t52q7uqgnjfzdh3wx5m5phvma3umrq8k6tq2p9",
|
|
6599
|
-
* amount: [{ denom: "utia", amount: "10000" }],
|
|
6600
|
-
* },
|
|
6601
|
-
* };
|
|
6602
|
-
* const sendMsgAny = registry.encodeAsAny(sendMsg);
|
|
6603
|
-
*
|
|
6604
|
-
* const txInfo = await txClient.submitMessage(sendMsgAny);
|
|
6605
|
-
* ```
|
|
6606
|
-
* @param {ProtoAny} message
|
|
6607
|
-
* @param {TxConfig | null} [tx_config]
|
|
6608
|
-
* @returns {Promise<TxInfo>}
|
|
6609
|
-
*/
|
|
6610
|
-
submitMessage(message, tx_config) {
|
|
6611
|
-
const ret = wasm.txclient_submitMessage(this.__wbg_ptr, message, isLikeNone(tx_config) ? 0 : addToExternrefTable0(tx_config));
|
|
6612
|
-
return ret;
|
|
6658
|
+
|
|
6659
|
+
free() {
|
|
6660
|
+
const ptr = this.__destroy_into_raw();
|
|
6661
|
+
wasm.__wbg_txbody_free(ptr, 0);
|
|
6613
6662
|
}
|
|
6614
6663
|
/**
|
|
6615
|
-
*
|
|
6616
|
-
* @returns {
|
|
6664
|
+
* `memo` is any arbitrary memo to be added to the transaction.
|
|
6665
|
+
* @returns {string}
|
|
6617
6666
|
*/
|
|
6618
|
-
|
|
6619
|
-
|
|
6620
|
-
|
|
6667
|
+
get memo() {
|
|
6668
|
+
let deferred1_0;
|
|
6669
|
+
let deferred1_1;
|
|
6670
|
+
try {
|
|
6671
|
+
const ret = wasm.__wbg_get_txbody_memo(this.__wbg_ptr);
|
|
6672
|
+
deferred1_0 = ret[0];
|
|
6673
|
+
deferred1_1 = ret[1];
|
|
6674
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
6675
|
+
} finally {
|
|
6676
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
6677
|
+
}
|
|
6621
6678
|
}
|
|
6622
6679
|
/**
|
|
6623
|
-
*
|
|
6624
|
-
* @param {string}
|
|
6625
|
-
* @returns {Promise<BaseAccount>}
|
|
6680
|
+
* `memo` is any arbitrary memo to be added to the transaction.
|
|
6681
|
+
* @param {string} arg0
|
|
6626
6682
|
*/
|
|
6627
|
-
|
|
6628
|
-
const ptr0 = passStringToWasm0(
|
|
6683
|
+
set memo(arg0) {
|
|
6684
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
6629
6685
|
const len0 = WASM_VECTOR_LEN;
|
|
6630
|
-
|
|
6631
|
-
return ret;
|
|
6632
|
-
}
|
|
6633
|
-
/**
|
|
6634
|
-
* Get accounts
|
|
6635
|
-
* @returns {Promise<BaseAccount[]>}
|
|
6636
|
-
*/
|
|
6637
|
-
getAccounts() {
|
|
6638
|
-
const ret = wasm.txclient_getAccounts(this.__wbg_ptr);
|
|
6639
|
-
return ret;
|
|
6686
|
+
wasm.__wbg_set_txbody_memo(this.__wbg_ptr, ptr0, len0);
|
|
6640
6687
|
}
|
|
6641
6688
|
/**
|
|
6642
|
-
*
|
|
6643
|
-
*
|
|
6644
|
-
* @
|
|
6645
|
-
* @returns {Promise<Coin>}
|
|
6689
|
+
* `timeout` is the block height after which this transaction will not
|
|
6690
|
+
* be processed by the chain
|
|
6691
|
+
* @returns {bigint}
|
|
6646
6692
|
*/
|
|
6647
|
-
|
|
6648
|
-
const
|
|
6649
|
-
|
|
6650
|
-
const ptr1 = passStringToWasm0(denom, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
6651
|
-
const len1 = WASM_VECTOR_LEN;
|
|
6652
|
-
const ret = wasm.txclient_getBalance(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
6653
|
-
return ret;
|
|
6693
|
+
get timeout_height() {
|
|
6694
|
+
const ret = wasm.txbody_timeout_height(this.__wbg_ptr);
|
|
6695
|
+
return BigInt.asUintN(64, ret);
|
|
6654
6696
|
}
|
|
6655
6697
|
/**
|
|
6656
|
-
*
|
|
6657
|
-
*
|
|
6658
|
-
*
|
|
6698
|
+
* `extension_options` are arbitrary options that can be added by chains
|
|
6699
|
+
* when the default options are not sufficient. If any of these are present
|
|
6700
|
+
* and can't be handled, the transaction will be rejected
|
|
6701
|
+
* @returns {ProtoAny[]}
|
|
6659
6702
|
*/
|
|
6660
|
-
|
|
6661
|
-
const
|
|
6662
|
-
|
|
6663
|
-
|
|
6664
|
-
return
|
|
6703
|
+
extension_options() {
|
|
6704
|
+
const ret = wasm.txbody_extension_options(this.__wbg_ptr);
|
|
6705
|
+
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
|
|
6706
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
6707
|
+
return v1;
|
|
6665
6708
|
}
|
|
6666
6709
|
/**
|
|
6667
|
-
*
|
|
6668
|
-
*
|
|
6669
|
-
*
|
|
6710
|
+
* `extension_options` are arbitrary options that can be added by chains
|
|
6711
|
+
* when the default options are not sufficient. If any of these are present
|
|
6712
|
+
* and can't be handled, they will be ignored
|
|
6713
|
+
* @returns {ProtoAny[]}
|
|
6670
6714
|
*/
|
|
6671
|
-
|
|
6672
|
-
const
|
|
6673
|
-
|
|
6674
|
-
|
|
6675
|
-
return
|
|
6715
|
+
non_critical_extension_options() {
|
|
6716
|
+
const ret = wasm.txbody_non_critical_extension_options(this.__wbg_ptr);
|
|
6717
|
+
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
|
|
6718
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
6719
|
+
return v1;
|
|
6676
6720
|
}
|
|
6677
6721
|
/**
|
|
6678
|
-
*
|
|
6679
|
-
*
|
|
6722
|
+
* `messages` is a list of messages to be executed. The required signers of
|
|
6723
|
+
* those messages define the number and order of elements in `AuthInfo`'s
|
|
6724
|
+
* signer_infos and Tx's signatures. Each required signer address is added to
|
|
6725
|
+
* the list only the first time it occurs.
|
|
6726
|
+
*
|
|
6727
|
+
* By convention, the first required signer (usually from the first message)
|
|
6728
|
+
* is referred to as the primary signer and pays the fee for the whole
|
|
6729
|
+
* transaction.
|
|
6730
|
+
* @returns {ProtoAny[]}
|
|
6680
6731
|
*/
|
|
6681
|
-
|
|
6682
|
-
const ret = wasm.
|
|
6683
|
-
|
|
6732
|
+
messages() {
|
|
6733
|
+
const ret = wasm.txbody_messages(this.__wbg_ptr);
|
|
6734
|
+
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
|
|
6735
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
6736
|
+
return v1;
|
|
6684
6737
|
}
|
|
6685
6738
|
}
|
|
6686
6739
|
|
|
@@ -6711,6 +6764,27 @@ export class TxResponse {
|
|
|
6711
6764
|
const ptr = this.__destroy_into_raw();
|
|
6712
6765
|
wasm.__wbg_txresponse_free(ptr, 0);
|
|
6713
6766
|
}
|
|
6767
|
+
/**
|
|
6768
|
+
* Events defines all the events emitted by processing a transaction. Note,
|
|
6769
|
+
* these events include those emitted by processing all the messages and those
|
|
6770
|
+
* emitted from the ante. Whereas Logs contains the events, with
|
|
6771
|
+
* additional metadata, emitted only by processing the messages.
|
|
6772
|
+
* @returns {JsEvent[]}
|
|
6773
|
+
*/
|
|
6774
|
+
get events() {
|
|
6775
|
+
const ret = wasm.txresponse_events(this.__wbg_ptr);
|
|
6776
|
+
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
|
|
6777
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
6778
|
+
return v1;
|
|
6779
|
+
}
|
|
6780
|
+
/**
|
|
6781
|
+
* The block height
|
|
6782
|
+
* @returns {bigint}
|
|
6783
|
+
*/
|
|
6784
|
+
get height() {
|
|
6785
|
+
const ret = wasm.txbody_timeout_height(this.__wbg_ptr);
|
|
6786
|
+
return BigInt.asUintN(64, ret);
|
|
6787
|
+
}
|
|
6714
6788
|
/**
|
|
6715
6789
|
* Namespace for the Code
|
|
6716
6790
|
* @returns {string}
|
|
@@ -6906,27 +6980,6 @@ export class TxResponse {
|
|
|
6906
6980
|
const len0 = WASM_VECTOR_LEN;
|
|
6907
6981
|
wasm.__wbg_set_txresponse_timestamp(this.__wbg_ptr, ptr0, len0);
|
|
6908
6982
|
}
|
|
6909
|
-
/**
|
|
6910
|
-
* The block height
|
|
6911
|
-
* @returns {bigint}
|
|
6912
|
-
*/
|
|
6913
|
-
get height() {
|
|
6914
|
-
const ret = wasm.txbody_timeout_height(this.__wbg_ptr);
|
|
6915
|
-
return BigInt.asUintN(64, ret);
|
|
6916
|
-
}
|
|
6917
|
-
/**
|
|
6918
|
-
* Events defines all the events emitted by processing a transaction. Note,
|
|
6919
|
-
* these events include those emitted by processing all the messages and those
|
|
6920
|
-
* emitted from the ante. Whereas Logs contains the events, with
|
|
6921
|
-
* additional metadata, emitted only by processing the messages.
|
|
6922
|
-
* @returns {JsEvent[]}
|
|
6923
|
-
*/
|
|
6924
|
-
get events() {
|
|
6925
|
-
const ret = wasm.txresponse_events(this.__wbg_ptr);
|
|
6926
|
-
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
|
|
6927
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
6928
|
-
return v1;
|
|
6929
|
-
}
|
|
6930
6983
|
}
|
|
6931
6984
|
|
|
6932
6985
|
const TxStatusResponseFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -6956,6 +7009,14 @@ export class TxStatusResponse {
|
|
|
6956
7009
|
const ptr = this.__destroy_into_raw();
|
|
6957
7010
|
wasm.__wbg_txstatusresponse_free(ptr, 0);
|
|
6958
7011
|
}
|
|
7012
|
+
/**
|
|
7013
|
+
* Height of the block in which the transaction was committed.
|
|
7014
|
+
* @returns {bigint}
|
|
7015
|
+
*/
|
|
7016
|
+
get height() {
|
|
7017
|
+
const ret = wasm.txstatusresponse_height(this.__wbg_ptr);
|
|
7018
|
+
return BigInt.asUintN(64, ret);
|
|
7019
|
+
}
|
|
6959
7020
|
/**
|
|
6960
7021
|
* Index of the transaction in block.
|
|
6961
7022
|
* @returns {number}
|
|
@@ -7030,14 +7091,6 @@ export class TxStatusResponse {
|
|
|
7030
7091
|
set status(arg0) {
|
|
7031
7092
|
wasm.__wbg_set_txstatusresponse_status(this.__wbg_ptr, arg0);
|
|
7032
7093
|
}
|
|
7033
|
-
/**
|
|
7034
|
-
* Height of the block in which the transaction was committed.
|
|
7035
|
-
* @returns {bigint}
|
|
7036
|
-
*/
|
|
7037
|
-
get height() {
|
|
7038
|
-
const ret = wasm.txstatusresponse_height(this.__wbg_ptr);
|
|
7039
|
-
return BigInt.asUintN(64, ret);
|
|
7040
|
-
}
|
|
7041
7094
|
}
|
|
7042
7095
|
|
|
7043
7096
|
const ValAddressFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -7369,6 +7422,16 @@ export class Vote {
|
|
|
7369
7422
|
}
|
|
7370
7423
|
}
|
|
7371
7424
|
|
|
7425
|
+
export function __wbg_Error_1f3748b298f99708(arg0, arg1) {
|
|
7426
|
+
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
7427
|
+
return ret;
|
|
7428
|
+
};
|
|
7429
|
+
|
|
7430
|
+
export function __wbg_Number_577a493fc95ea223(arg0) {
|
|
7431
|
+
const ret = Number(arg0);
|
|
7432
|
+
return ret;
|
|
7433
|
+
};
|
|
7434
|
+
|
|
7372
7435
|
export function __wbg_String_8f0eb39a4a4c2f66(arg0, arg1) {
|
|
7373
7436
|
const ret = String(arg1);
|
|
7374
7437
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -7377,7 +7440,7 @@ export function __wbg_String_8f0eb39a4a4c2f66(arg0, arg1) {
|
|
|
7377
7440
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
7378
7441
|
};
|
|
7379
7442
|
|
|
7380
|
-
export function
|
|
7443
|
+
export function __wbg_WorkerGlobalScope_68dbbc2404209578(arg0) {
|
|
7381
7444
|
const ret = arg0.WorkerGlobalScope;
|
|
7382
7445
|
return ret;
|
|
7383
7446
|
};
|
|
@@ -7397,38 +7460,43 @@ export function __wbg_abciqueryresponse_new(arg0) {
|
|
|
7397
7460
|
return ret;
|
|
7398
7461
|
};
|
|
7399
7462
|
|
|
7400
|
-
export function
|
|
7463
|
+
export function __wbg_abort_496881624c2d80da() { return handleError(function (arg0) {
|
|
7401
7464
|
arg0.abort();
|
|
7402
7465
|
}, arguments) };
|
|
7403
7466
|
|
|
7404
|
-
export function
|
|
7467
|
+
export function __wbg_accountNumber_8a52b3ddaecb3ddf(arg0) {
|
|
7405
7468
|
const ret = arg0.accountNumber;
|
|
7406
7469
|
return ret;
|
|
7407
7470
|
};
|
|
7408
7471
|
|
|
7409
|
-
export function
|
|
7410
|
-
const ret = arg0.add(arg1);
|
|
7472
|
+
export function __wbg_add_06c49d78d2836c4c() { return handleError(function (arg0, arg1, arg2) {
|
|
7473
|
+
const ret = arg0.add(arg1, arg2);
|
|
7411
7474
|
return ret;
|
|
7412
7475
|
}, arguments) };
|
|
7413
7476
|
|
|
7414
|
-
export function
|
|
7415
|
-
const ret = arg0.add(arg1
|
|
7477
|
+
export function __wbg_add_2af21486199bad83() { return handleError(function (arg0, arg1) {
|
|
7478
|
+
const ret = arg0.add(arg1);
|
|
7416
7479
|
return ret;
|
|
7417
7480
|
}, arguments) };
|
|
7418
7481
|
|
|
7419
|
-
export function
|
|
7482
|
+
export function __wbg_advance_29c64dfd5255179a() { return handleError(function (arg0, arg1) {
|
|
7420
7483
|
arg0.advance(arg1 >>> 0);
|
|
7421
7484
|
}, arguments) };
|
|
7422
7485
|
|
|
7423
|
-
export function
|
|
7486
|
+
export function __wbg_append_3e86b0cd6215edd8() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
7424
7487
|
arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
7425
7488
|
}, arguments) };
|
|
7426
7489
|
|
|
7427
|
-
export function
|
|
7490
|
+
export function __wbg_apply_90b47af8bf01ab0b() { return handleError(function (arg0, arg1, arg2) {
|
|
7428
7491
|
const ret = Reflect.apply(arg0, arg1, arg2);
|
|
7429
7492
|
return ret;
|
|
7430
7493
|
}, arguments) };
|
|
7431
7494
|
|
|
7495
|
+
export function __wbg_appversion_new(arg0) {
|
|
7496
|
+
const ret = AppVersion.__wrap(arg0);
|
|
7497
|
+
return ret;
|
|
7498
|
+
};
|
|
7499
|
+
|
|
7432
7500
|
export function __wbg_attribute_new(arg0) {
|
|
7433
7501
|
const ret = Attribute.__wrap(arg0);
|
|
7434
7502
|
return ret;
|
|
@@ -7439,7 +7507,7 @@ export function __wbg_attribute_unwrap(arg0) {
|
|
|
7439
7507
|
return ret;
|
|
7440
7508
|
};
|
|
7441
7509
|
|
|
7442
|
-
export function
|
|
7510
|
+
export function __wbg_authInfoBytes_0a5d207619ad0422(arg0, arg1) {
|
|
7443
7511
|
const ret = arg1.authInfoBytes;
|
|
7444
7512
|
const ptr1 = passArray8ToWasm0(ret, wasm.__wbindgen_malloc);
|
|
7445
7513
|
const len1 = WASM_VECTOR_LEN;
|
|
@@ -7477,7 +7545,7 @@ export function __wbg_blockrange_unwrap(arg0) {
|
|
|
7477
7545
|
return ret;
|
|
7478
7546
|
};
|
|
7479
7547
|
|
|
7480
|
-
export function
|
|
7548
|
+
export function __wbg_bodyBytes_75efcd7cc8472ddf(arg0, arg1) {
|
|
7481
7549
|
const ret = arg1.bodyBytes;
|
|
7482
7550
|
const ptr1 = passArray8ToWasm0(ret, wasm.__wbindgen_malloc);
|
|
7483
7551
|
const len1 = WASM_VECTOR_LEN;
|
|
@@ -7485,67 +7553,62 @@ export function __wbg_bodyBytes_caa9f71ff12973cf(arg0, arg1) {
|
|
|
7485
7553
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
7486
7554
|
};
|
|
7487
7555
|
|
|
7488
|
-
export function
|
|
7556
|
+
export function __wbg_body_be60ee806470b990(arg0) {
|
|
7489
7557
|
const ret = arg0.body;
|
|
7490
7558
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
7491
7559
|
};
|
|
7492
7560
|
|
|
7493
|
-
export function
|
|
7494
|
-
const ret = arg0.buffer;
|
|
7495
|
-
return ret;
|
|
7496
|
-
};
|
|
7497
|
-
|
|
7498
|
-
export function __wbg_buffer_609cc3eee51ed158(arg0) {
|
|
7561
|
+
export function __wbg_buffer_1f897e9f3ed6b41d(arg0) {
|
|
7499
7562
|
const ret = arg0.buffer;
|
|
7500
7563
|
return ret;
|
|
7501
7564
|
};
|
|
7502
7565
|
|
|
7503
|
-
export function
|
|
7566
|
+
export function __wbg_bufferedAmount_ea4c08c898c11537(arg0) {
|
|
7504
7567
|
const ret = arg0.bufferedAmount;
|
|
7505
7568
|
return ret;
|
|
7506
7569
|
};
|
|
7507
7570
|
|
|
7508
|
-
export function
|
|
7571
|
+
export function __wbg_byobRequest_ba853121442653bf(arg0) {
|
|
7509
7572
|
const ret = arg0.byobRequest;
|
|
7510
7573
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
7511
7574
|
};
|
|
7512
7575
|
|
|
7513
|
-
export function
|
|
7576
|
+
export function __wbg_byteLength_7029fecd0c136e6d(arg0) {
|
|
7514
7577
|
const ret = arg0.byteLength;
|
|
7515
7578
|
return ret;
|
|
7516
7579
|
};
|
|
7517
7580
|
|
|
7518
|
-
export function
|
|
7581
|
+
export function __wbg_byteOffset_8161a341c0d72844(arg0) {
|
|
7519
7582
|
const ret = arg0.byteOffset;
|
|
7520
7583
|
return ret;
|
|
7521
7584
|
};
|
|
7522
7585
|
|
|
7523
|
-
export function
|
|
7586
|
+
export function __wbg_call_2f8d426a20a307fe() { return handleError(function (arg0, arg1) {
|
|
7524
7587
|
const ret = arg0.call(arg1);
|
|
7525
7588
|
return ret;
|
|
7526
7589
|
}, arguments) };
|
|
7527
7590
|
|
|
7528
|
-
export function
|
|
7591
|
+
export function __wbg_call_f53f0647ceb9c567() { return handleError(function (arg0, arg1, arg2) {
|
|
7529
7592
|
const ret = arg0.call(arg1, arg2);
|
|
7530
7593
|
return ret;
|
|
7531
7594
|
}, arguments) };
|
|
7532
7595
|
|
|
7533
|
-
export function
|
|
7596
|
+
export function __wbg_cancel_8fc34c38a41c5d07(arg0) {
|
|
7534
7597
|
const ret = arg0.cancel();
|
|
7535
7598
|
return ret;
|
|
7536
7599
|
};
|
|
7537
7600
|
|
|
7538
|
-
export function
|
|
7601
|
+
export function __wbg_catch_70a1618b6f59db8a(arg0, arg1) {
|
|
7539
7602
|
const ret = arg0.catch(arg1);
|
|
7540
7603
|
return ret;
|
|
7541
7604
|
};
|
|
7542
7605
|
|
|
7543
|
-
export function
|
|
7606
|
+
export function __wbg_cause_94f62e1c92956ce2(arg0) {
|
|
7544
7607
|
const ret = arg0.cause;
|
|
7545
7608
|
return ret;
|
|
7546
7609
|
};
|
|
7547
7610
|
|
|
7548
|
-
export function
|
|
7611
|
+
export function __wbg_chainId_2a4115c1298b59d8(arg0, arg1) {
|
|
7549
7612
|
const ret = arg1.chainId;
|
|
7550
7613
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
7551
7614
|
const len1 = WASM_VECTOR_LEN;
|
|
@@ -7553,7 +7616,7 @@ export function __wbg_chainId_7cdd8a461ddd3dd2(arg0, arg1) {
|
|
|
7553
7616
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
7554
7617
|
};
|
|
7555
7618
|
|
|
7556
|
-
export function
|
|
7619
|
+
export function __wbg_clearInterval_8488d01fe6397e53(arg0, arg1) {
|
|
7557
7620
|
arg0.clearInterval(arg1);
|
|
7558
7621
|
};
|
|
7559
7622
|
|
|
@@ -7562,14 +7625,10 @@ export function __wbg_clearInterval_dd1e598f425db353(arg0) {
|
|
|
7562
7625
|
return ret;
|
|
7563
7626
|
};
|
|
7564
7627
|
|
|
7565
|
-
export function
|
|
7628
|
+
export function __wbg_clearInterval_e65bc4d23bbf1edb(arg0, arg1) {
|
|
7566
7629
|
arg0.clearInterval(arg1);
|
|
7567
7630
|
};
|
|
7568
7631
|
|
|
7569
|
-
export function __wbg_clearTimeout_0b4dcb73f78d2d53(arg0) {
|
|
7570
|
-
clearTimeout(arg0);
|
|
7571
|
-
};
|
|
7572
|
-
|
|
7573
7632
|
export function __wbg_clearTimeout_5a54f8841c30079a(arg0) {
|
|
7574
7633
|
const ret = clearTimeout(arg0);
|
|
7575
7634
|
return ret;
|
|
@@ -7580,42 +7639,46 @@ export function __wbg_clearTimeout_96804de0ab838f26(arg0) {
|
|
|
7580
7639
|
return ret;
|
|
7581
7640
|
};
|
|
7582
7641
|
|
|
7583
|
-
export function
|
|
7642
|
+
export function __wbg_clearTimeout_d270f24e5d43eaf7(arg0) {
|
|
7643
|
+
clearTimeout(arg0);
|
|
7644
|
+
};
|
|
7645
|
+
|
|
7646
|
+
export function __wbg_clear_7ddff460554dd8f9() { return handleError(function (arg0) {
|
|
7584
7647
|
const ret = arg0.clear();
|
|
7585
7648
|
return ret;
|
|
7586
7649
|
}, arguments) };
|
|
7587
7650
|
|
|
7588
|
-
export function
|
|
7651
|
+
export function __wbg_close_5c0c68ce107ac21e(arg0) {
|
|
7589
7652
|
arg0.close();
|
|
7590
7653
|
};
|
|
7591
7654
|
|
|
7592
|
-
export function
|
|
7593
|
-
arg0.close();
|
|
7594
|
-
}, arguments) };
|
|
7595
|
-
|
|
7596
|
-
export function __wbg_close_5ce03e29be453811() { return handleError(function (arg0) {
|
|
7597
|
-
arg0.close();
|
|
7598
|
-
}, arguments) };
|
|
7599
|
-
|
|
7600
|
-
export function __wbg_close_e1253d480ed93ce3() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
7655
|
+
export function __wbg_close_62eb30084a8993bf() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
7601
7656
|
arg0.close(arg1, getStringFromWasm0(arg2, arg3));
|
|
7602
7657
|
}, arguments) };
|
|
7603
7658
|
|
|
7604
|
-
export function
|
|
7659
|
+
export function __wbg_close_7dcca1557b5bd08b(arg0) {
|
|
7605
7660
|
arg0.close();
|
|
7606
7661
|
};
|
|
7607
7662
|
|
|
7608
|
-
export function
|
|
7663
|
+
export function __wbg_close_a90439b2444e47b4() { return handleError(function (arg0) {
|
|
7664
|
+
arg0.close();
|
|
7665
|
+
}, arguments) };
|
|
7666
|
+
|
|
7667
|
+
export function __wbg_close_bffe85e60f8b736d(arg0) {
|
|
7609
7668
|
const ret = arg0.close();
|
|
7610
7669
|
return ret;
|
|
7611
7670
|
};
|
|
7612
7671
|
|
|
7613
|
-
export function
|
|
7672
|
+
export function __wbg_close_f602227805f17f95() { return handleError(function (arg0) {
|
|
7673
|
+
arg0.close();
|
|
7674
|
+
}, arguments) };
|
|
7675
|
+
|
|
7676
|
+
export function __wbg_closed_2934f4ed093a9d95(arg0) {
|
|
7614
7677
|
const ret = arg0.closed;
|
|
7615
7678
|
return ret;
|
|
7616
7679
|
};
|
|
7617
7680
|
|
|
7618
|
-
export function
|
|
7681
|
+
export function __wbg_closed_8b9d023c2484076c(arg0) {
|
|
7619
7682
|
const ret = arg0.closed;
|
|
7620
7683
|
return ret;
|
|
7621
7684
|
};
|
|
@@ -7630,7 +7693,7 @@ export function __wbg_coin_unwrap(arg0) {
|
|
|
7630
7693
|
return ret;
|
|
7631
7694
|
};
|
|
7632
7695
|
|
|
7633
|
-
export function
|
|
7696
|
+
export function __wbg_commit_61c8d53ee2eb6843() { return handleError(function (arg0) {
|
|
7634
7697
|
arg0.commit();
|
|
7635
7698
|
}, arguments) };
|
|
7636
7699
|
|
|
@@ -7649,100 +7712,105 @@ export function __wbg_configresponse_new(arg0) {
|
|
|
7649
7712
|
return ret;
|
|
7650
7713
|
};
|
|
7651
7714
|
|
|
7652
|
-
export function
|
|
7653
|
-
arg0.continue(
|
|
7715
|
+
export function __wbg_continue_e37b78917b01b67f() { return handleError(function (arg0) {
|
|
7716
|
+
arg0.continue();
|
|
7654
7717
|
}, arguments) };
|
|
7655
7718
|
|
|
7656
|
-
export function
|
|
7657
|
-
arg0.continue();
|
|
7719
|
+
export function __wbg_continue_ff2028eeeedc8304() { return handleError(function (arg0, arg1) {
|
|
7720
|
+
arg0.continue(arg1);
|
|
7658
7721
|
}, arguments) };
|
|
7659
7722
|
|
|
7660
|
-
export function
|
|
7723
|
+
export function __wbg_count_9a21aa97cae2b4d6() { return handleError(function (arg0) {
|
|
7661
7724
|
const ret = arg0.count();
|
|
7662
7725
|
return ret;
|
|
7663
7726
|
}, arguments) };
|
|
7664
7727
|
|
|
7665
|
-
export function
|
|
7728
|
+
export function __wbg_count_9d30285250b9065f() { return handleError(function (arg0, arg1) {
|
|
7666
7729
|
const ret = arg0.count(arg1);
|
|
7667
7730
|
return ret;
|
|
7668
7731
|
}, arguments) };
|
|
7669
7732
|
|
|
7670
|
-
export function
|
|
7671
|
-
const ret = arg0.count(
|
|
7733
|
+
export function __wbg_count_d0c45be30c157193() { return handleError(function (arg0) {
|
|
7734
|
+
const ret = arg0.count();
|
|
7672
7735
|
return ret;
|
|
7673
7736
|
}, arguments) };
|
|
7674
7737
|
|
|
7675
|
-
export function
|
|
7676
|
-
const ret = arg0.count();
|
|
7738
|
+
export function __wbg_count_ee083e36b5119925() { return handleError(function (arg0, arg1) {
|
|
7739
|
+
const ret = arg0.count(arg1);
|
|
7677
7740
|
return ret;
|
|
7678
7741
|
}, arguments) };
|
|
7679
7742
|
|
|
7680
|
-
export function
|
|
7743
|
+
export function __wbg_createBidirectionalStream_2b56e05ee223119c(arg0) {
|
|
7681
7744
|
const ret = arg0.createBidirectionalStream();
|
|
7682
7745
|
return ret;
|
|
7683
7746
|
};
|
|
7684
7747
|
|
|
7685
|
-
export function
|
|
7748
|
+
export function __wbg_createIndex_35a1f70c8314a7de() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
7686
7749
|
const ret = arg0.createIndex(getStringFromWasm0(arg1, arg2), arg3, arg4);
|
|
7687
7750
|
return ret;
|
|
7688
7751
|
}, arguments) };
|
|
7689
7752
|
|
|
7690
|
-
export function
|
|
7753
|
+
export function __wbg_createObjectStore_7e79e7f6de6b5f4a() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
7691
7754
|
const ret = arg0.createObjectStore(getStringFromWasm0(arg1, arg2), arg3);
|
|
7692
7755
|
return ret;
|
|
7693
7756
|
}, arguments) };
|
|
7694
7757
|
|
|
7695
|
-
export function
|
|
7758
|
+
export function __wbg_crypto_574e78ad8b13b65f(arg0) {
|
|
7696
7759
|
const ret = arg0.crypto;
|
|
7697
7760
|
return ret;
|
|
7698
7761
|
};
|
|
7699
7762
|
|
|
7700
|
-
export function
|
|
7763
|
+
export function __wbg_data_d1e564c046e31ed9(arg0) {
|
|
7701
7764
|
const ret = arg0.data;
|
|
7702
7765
|
return ret;
|
|
7703
7766
|
};
|
|
7704
7767
|
|
|
7705
|
-
export function
|
|
7768
|
+
export function __wbg_debug_9a166dc82b4ba6a6(arg0) {
|
|
7706
7769
|
console.debug(arg0);
|
|
7707
7770
|
};
|
|
7708
7771
|
|
|
7709
|
-
export function
|
|
7772
|
+
export function __wbg_deleteIndex_315fda5b473605cf() { return handleError(function (arg0, arg1, arg2) {
|
|
7710
7773
|
arg0.deleteIndex(getStringFromWasm0(arg1, arg2));
|
|
7711
7774
|
}, arguments) };
|
|
7712
7775
|
|
|
7713
|
-
export function
|
|
7776
|
+
export function __wbg_deleteObjectStore_8a252d9a253df02b() { return handleError(function (arg0, arg1, arg2) {
|
|
7714
7777
|
arg0.deleteObjectStore(getStringFromWasm0(arg1, arg2));
|
|
7715
7778
|
}, arguments) };
|
|
7716
7779
|
|
|
7717
|
-
export function
|
|
7780
|
+
export function __wbg_delete_570e5d01c731e067() { return handleError(function (arg0, arg1) {
|
|
7718
7781
|
const ret = arg0.delete(arg1);
|
|
7719
7782
|
return ret;
|
|
7720
7783
|
}, arguments) };
|
|
7721
7784
|
|
|
7722
|
-
export function
|
|
7785
|
+
export function __wbg_desiredSize_c849ec0ed245f271() { return handleError(function (arg0, arg1) {
|
|
7723
7786
|
const ret = arg1.desiredSize;
|
|
7724
7787
|
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
7725
7788
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
7726
7789
|
}, arguments) };
|
|
7727
7790
|
|
|
7728
|
-
export function
|
|
7791
|
+
export function __wbg_done_4a7743b6f942c9f3(arg0) {
|
|
7729
7792
|
const ret = arg0.done;
|
|
7730
7793
|
return ret;
|
|
7731
7794
|
};
|
|
7732
7795
|
|
|
7733
|
-
export function
|
|
7796
|
+
export function __wbg_enqueue_1e58bed4477a141f() { return handleError(function (arg0, arg1) {
|
|
7734
7797
|
arg0.enqueue(arg1);
|
|
7735
7798
|
}, arguments) };
|
|
7736
7799
|
|
|
7737
|
-
export function
|
|
7800
|
+
export function __wbg_entries_17f7acbc2d691c0d(arg0) {
|
|
7738
7801
|
const ret = Object.entries(arg0);
|
|
7739
7802
|
return ret;
|
|
7740
7803
|
};
|
|
7741
7804
|
|
|
7742
|
-
export function
|
|
7805
|
+
export function __wbg_error_41f0589870426ea4(arg0) {
|
|
7743
7806
|
console.error(arg0);
|
|
7744
7807
|
};
|
|
7745
7808
|
|
|
7809
|
+
export function __wbg_error_443a583c581ba303() { return handleError(function (arg0) {
|
|
7810
|
+
const ret = arg0.error;
|
|
7811
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
7812
|
+
}, arguments) };
|
|
7813
|
+
|
|
7746
7814
|
export function __wbg_error_7534b8e9a36f1ab4(arg0, arg1) {
|
|
7747
7815
|
let deferred0_0;
|
|
7748
7816
|
let deferred0_1;
|
|
@@ -7755,16 +7823,11 @@ export function __wbg_error_7534b8e9a36f1ab4(arg0, arg1) {
|
|
|
7755
7823
|
}
|
|
7756
7824
|
};
|
|
7757
7825
|
|
|
7758
|
-
export function
|
|
7826
|
+
export function __wbg_error_cbb036e477c7f898(arg0) {
|
|
7759
7827
|
const ret = arg0.error;
|
|
7760
7828
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
7761
7829
|
};
|
|
7762
7830
|
|
|
7763
|
-
export function __wbg_error_ff4ddaabdfc5dbb3() { return handleError(function (arg0) {
|
|
7764
|
-
const ret = arg0.error;
|
|
7765
|
-
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
7766
|
-
}, arguments) };
|
|
7767
|
-
|
|
7768
7831
|
export function __wbg_evidence_new(arg0) {
|
|
7769
7832
|
const ret = Evidence.__wrap(arg0);
|
|
7770
7833
|
return ret;
|
|
@@ -7780,33 +7843,33 @@ export function __wbg_extendedheader_unwrap(arg0) {
|
|
|
7780
7843
|
return ret;
|
|
7781
7844
|
};
|
|
7782
7845
|
|
|
7783
|
-
export function
|
|
7784
|
-
const ret =
|
|
7846
|
+
export function __wbg_fetch_12e13d0511844bfd(arg0) {
|
|
7847
|
+
const ret = fetch(arg0);
|
|
7785
7848
|
return ret;
|
|
7786
7849
|
};
|
|
7787
7850
|
|
|
7788
|
-
export function
|
|
7789
|
-
const ret = fetch(
|
|
7851
|
+
export function __wbg_fetch_4fae101547df73b6(arg0, arg1, arg2) {
|
|
7852
|
+
const ret = arg0.fetch(arg1, arg2);
|
|
7790
7853
|
return ret;
|
|
7791
7854
|
};
|
|
7792
7855
|
|
|
7793
|
-
export function
|
|
7794
|
-
const ret = fetch(arg0);
|
|
7856
|
+
export function __wbg_fetch_f083e6da40cefe09(arg0, arg1) {
|
|
7857
|
+
const ret = fetch(arg0, arg1);
|
|
7795
7858
|
return ret;
|
|
7796
7859
|
};
|
|
7797
7860
|
|
|
7798
|
-
export function
|
|
7861
|
+
export function __wbg_from_237b1ad767238d8b(arg0) {
|
|
7799
7862
|
const ret = Array.from(arg0);
|
|
7800
7863
|
return ret;
|
|
7801
7864
|
};
|
|
7802
7865
|
|
|
7803
|
-
export function
|
|
7866
|
+
export function __wbg_gasLimit_156da322edae975b(arg0, arg1) {
|
|
7804
7867
|
const ret = arg1.gasLimit;
|
|
7805
7868
|
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
7806
7869
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
7807
7870
|
};
|
|
7808
7871
|
|
|
7809
|
-
export function
|
|
7872
|
+
export function __wbg_gasPrice_7ed979d29f5321b7(arg0, arg1) {
|
|
7810
7873
|
const ret = arg1.gasPrice;
|
|
7811
7874
|
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
7812
7875
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
@@ -7817,89 +7880,93 @@ export function __wbg_gasinfo_new(arg0) {
|
|
|
7817
7880
|
return ret;
|
|
7818
7881
|
};
|
|
7819
7882
|
|
|
7820
|
-
export function
|
|
7883
|
+
export function __wbg_getAllKeys_09176d0529f9a4f9() { return handleError(function (arg0, arg1, arg2) {
|
|
7821
7884
|
const ret = arg0.getAllKeys(arg1, arg2 >>> 0);
|
|
7822
7885
|
return ret;
|
|
7823
7886
|
}, arguments) };
|
|
7824
7887
|
|
|
7825
|
-
export function
|
|
7826
|
-
const ret = arg0.getAllKeys(
|
|
7888
|
+
export function __wbg_getAllKeys_4c8918fa0a4d954c() { return handleError(function (arg0) {
|
|
7889
|
+
const ret = arg0.getAllKeys();
|
|
7827
7890
|
return ret;
|
|
7828
7891
|
}, arguments) };
|
|
7829
7892
|
|
|
7830
|
-
export function
|
|
7831
|
-
const ret = arg0.getAllKeys();
|
|
7893
|
+
export function __wbg_getAllKeys_bf368a2862c61f56() { return handleError(function (arg0, arg1) {
|
|
7894
|
+
const ret = arg0.getAllKeys(arg1);
|
|
7832
7895
|
return ret;
|
|
7833
7896
|
}, arguments) };
|
|
7834
7897
|
|
|
7835
|
-
export function
|
|
7898
|
+
export function __wbg_getAll_2a18c462536d7d5b() { return handleError(function (arg0) {
|
|
7836
7899
|
const ret = arg0.getAll();
|
|
7837
7900
|
return ret;
|
|
7838
7901
|
}, arguments) };
|
|
7839
7902
|
|
|
7840
|
-
export function
|
|
7903
|
+
export function __wbg_getAll_2e19a7bbbe1ec181() { return handleError(function (arg0, arg1, arg2) {
|
|
7841
7904
|
const ret = arg0.getAll(arg1, arg2 >>> 0);
|
|
7842
7905
|
return ret;
|
|
7843
7906
|
}, arguments) };
|
|
7844
7907
|
|
|
7845
|
-
export function
|
|
7908
|
+
export function __wbg_getAll_7a5b8dd1d868e440() { return handleError(function (arg0, arg1) {
|
|
7846
7909
|
const ret = arg0.getAll(arg1);
|
|
7847
7910
|
return ret;
|
|
7848
7911
|
}, arguments) };
|
|
7849
7912
|
|
|
7850
|
-
export function
|
|
7913
|
+
export function __wbg_getRandomValues_3c9c0d586e575a16() { return handleError(function (arg0, arg1) {
|
|
7914
|
+
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
7915
|
+
}, arguments) };
|
|
7916
|
+
|
|
7917
|
+
export function __wbg_getRandomValues_b8f5dbd5f3995a9e() { return handleError(function (arg0, arg1) {
|
|
7851
7918
|
arg0.getRandomValues(arg1);
|
|
7852
7919
|
}, arguments) };
|
|
7853
7920
|
|
|
7854
|
-
export function
|
|
7921
|
+
export function __wbg_getReader_27f9715838e256b2(arg0) {
|
|
7855
7922
|
const ret = arg0.getReader();
|
|
7856
7923
|
return ret;
|
|
7857
|
-
}
|
|
7924
|
+
};
|
|
7858
7925
|
|
|
7859
|
-
export function
|
|
7926
|
+
export function __wbg_getReader_48e00749fe3f6089() { return handleError(function (arg0) {
|
|
7860
7927
|
const ret = arg0.getReader();
|
|
7861
7928
|
return ret;
|
|
7862
|
-
};
|
|
7929
|
+
}, arguments) };
|
|
7863
7930
|
|
|
7864
|
-
export function
|
|
7931
|
+
export function __wbg_getTime_5b1dd03bb6d4b784(arg0) {
|
|
7865
7932
|
const ret = arg0.getTime();
|
|
7866
7933
|
return ret;
|
|
7867
7934
|
};
|
|
7868
7935
|
|
|
7869
|
-
export function
|
|
7936
|
+
export function __wbg_getWriter_fec94836a07e1d6d() { return handleError(function (arg0) {
|
|
7870
7937
|
const ret = arg0.getWriter();
|
|
7871
7938
|
return ret;
|
|
7872
7939
|
}, arguments) };
|
|
7873
7940
|
|
|
7874
|
-
export function
|
|
7875
|
-
const ret = arg1[arg2 >>> 0];
|
|
7876
|
-
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
7877
|
-
var len1 = WASM_VECTOR_LEN;
|
|
7878
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
7879
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
7880
|
-
};
|
|
7881
|
-
|
|
7882
|
-
export function __wbg_get_67b2ba62fc30de12() { return handleError(function (arg0, arg1) {
|
|
7941
|
+
export function __wbg_get_27b4bcbec57323ca() { return handleError(function (arg0, arg1) {
|
|
7883
7942
|
const ret = Reflect.get(arg0, arg1);
|
|
7884
7943
|
return ret;
|
|
7885
7944
|
}, arguments) };
|
|
7886
7945
|
|
|
7887
|
-
export function
|
|
7946
|
+
export function __wbg_get_59c6316d15f9f1d0(arg0, arg1) {
|
|
7947
|
+
const ret = arg0[arg1 >>> 0];
|
|
7948
|
+
return ret;
|
|
7949
|
+
};
|
|
7950
|
+
|
|
7951
|
+
export function __wbg_get_5cb5417d5a49cef1() { return handleError(function (arg0, arg1) {
|
|
7888
7952
|
const ret = arg0.get(arg1);
|
|
7889
7953
|
return ret;
|
|
7890
7954
|
}, arguments) };
|
|
7891
7955
|
|
|
7892
|
-
export function
|
|
7956
|
+
export function __wbg_get_a0f588b1e212306e() { return handleError(function (arg0, arg1) {
|
|
7893
7957
|
const ret = arg0.get(arg1);
|
|
7894
7958
|
return ret;
|
|
7895
7959
|
}, arguments) };
|
|
7896
7960
|
|
|
7897
|
-
export function
|
|
7898
|
-
const ret =
|
|
7899
|
-
|
|
7961
|
+
export function __wbg_get_ff3a515076fdddd7(arg0, arg1, arg2) {
|
|
7962
|
+
const ret = arg1[arg2 >>> 0];
|
|
7963
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
7964
|
+
var len1 = WASM_VECTOR_LEN;
|
|
7965
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
7966
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
7900
7967
|
};
|
|
7901
7968
|
|
|
7902
|
-
export function
|
|
7969
|
+
export function __wbg_getdone_8d12e2c5bfa23fbd(arg0) {
|
|
7903
7970
|
const ret = arg0.done;
|
|
7904
7971
|
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
7905
7972
|
};
|
|
@@ -7909,7 +7976,7 @@ export function __wbg_gettxresponse_new(arg0) {
|
|
|
7909
7976
|
return ret;
|
|
7910
7977
|
};
|
|
7911
7978
|
|
|
7912
|
-
export function
|
|
7979
|
+
export function __wbg_getvalue_8d746ccec318477b(arg0) {
|
|
7913
7980
|
const ret = arg0.value;
|
|
7914
7981
|
return ret;
|
|
7915
7982
|
};
|
|
@@ -7919,46 +7986,41 @@ export function __wbg_getwithrefkey_1dc361bd10053bfe(arg0, arg1) {
|
|
|
7919
7986
|
return ret;
|
|
7920
7987
|
};
|
|
7921
7988
|
|
|
7922
|
-
export function
|
|
7923
|
-
const ret = GrpcClient.__wrap(arg0);
|
|
7924
|
-
return ret;
|
|
7925
|
-
};
|
|
7926
|
-
|
|
7927
|
-
export function __wbg_has_a5ea9117f258a0ec() { return handleError(function (arg0, arg1) {
|
|
7989
|
+
export function __wbg_has_85abdd8aeb8edebf() { return handleError(function (arg0, arg1) {
|
|
7928
7990
|
const ret = Reflect.has(arg0, arg1);
|
|
7929
7991
|
return ret;
|
|
7930
7992
|
}, arguments) };
|
|
7931
7993
|
|
|
7932
|
-
export function
|
|
7994
|
+
export function __wbg_headers_177bc880a5823968(arg0) {
|
|
7933
7995
|
const ret = arg0.headers;
|
|
7934
7996
|
return ret;
|
|
7935
7997
|
};
|
|
7936
7998
|
|
|
7937
|
-
export function
|
|
7999
|
+
export function __wbg_headers_391e2f64884c873b(arg0) {
|
|
7938
8000
|
const ret = arg0.headers;
|
|
7939
8001
|
return ret;
|
|
7940
8002
|
};
|
|
7941
8003
|
|
|
7942
|
-
export function
|
|
8004
|
+
export function __wbg_incomingBidirectionalStreams_ed7915830e8f8998(arg0) {
|
|
7943
8005
|
const ret = arg0.incomingBidirectionalStreams;
|
|
7944
8006
|
return ret;
|
|
7945
8007
|
};
|
|
7946
8008
|
|
|
7947
|
-
export function
|
|
8009
|
+
export function __wbg_indexNames_b7e419e1b5950062(arg0) {
|
|
7948
8010
|
const ret = arg0.indexNames;
|
|
7949
8011
|
return ret;
|
|
7950
8012
|
};
|
|
7951
8013
|
|
|
7952
|
-
export function
|
|
8014
|
+
export function __wbg_index_7f799b7efa7c11c6() { return handleError(function (arg0, arg1, arg2) {
|
|
7953
8015
|
const ret = arg0.index(getStringFromWasm0(arg1, arg2));
|
|
7954
8016
|
return ret;
|
|
7955
8017
|
}, arguments) };
|
|
7956
8018
|
|
|
7957
|
-
export function
|
|
8019
|
+
export function __wbg_info_ed6e390d09c09062(arg0) {
|
|
7958
8020
|
console.info(arg0);
|
|
7959
8021
|
};
|
|
7960
8022
|
|
|
7961
|
-
export function
|
|
8023
|
+
export function __wbg_instanceof_ArrayBuffer_59339a3a6f0c10ea(arg0) {
|
|
7962
8024
|
let result;
|
|
7963
8025
|
try {
|
|
7964
8026
|
result = arg0 instanceof ArrayBuffer;
|
|
@@ -7969,7 +8031,7 @@ export function __wbg_instanceof_ArrayBuffer_e14585432e3737fc(arg0) {
|
|
|
7969
8031
|
return ret;
|
|
7970
8032
|
};
|
|
7971
8033
|
|
|
7972
|
-
export function
|
|
8034
|
+
export function __wbg_instanceof_DedicatedWorkerGlobalScope_95bda3b36127a15b(arg0) {
|
|
7973
8035
|
let result;
|
|
7974
8036
|
try {
|
|
7975
8037
|
result = arg0 instanceof DedicatedWorkerGlobalScope;
|
|
@@ -7980,7 +8042,7 @@ export function __wbg_instanceof_DedicatedWorkerGlobalScope_a688e81380e34e02(arg
|
|
|
7980
8042
|
return ret;
|
|
7981
8043
|
};
|
|
7982
8044
|
|
|
7983
|
-
export function
|
|
8045
|
+
export function __wbg_instanceof_Error_1e51a63e1736444c(arg0) {
|
|
7984
8046
|
let result;
|
|
7985
8047
|
try {
|
|
7986
8048
|
result = arg0 instanceof Error;
|
|
@@ -7991,7 +8053,7 @@ export function __wbg_instanceof_Error_4d54113b22d20306(arg0) {
|
|
|
7991
8053
|
return ret;
|
|
7992
8054
|
};
|
|
7993
8055
|
|
|
7994
|
-
export function
|
|
8056
|
+
export function __wbg_instanceof_IdbCursorWithValue_bbe42f8954141db8(arg0) {
|
|
7995
8057
|
let result;
|
|
7996
8058
|
try {
|
|
7997
8059
|
result = arg0 instanceof IDBCursorWithValue;
|
|
@@ -8002,7 +8064,7 @@ export function __wbg_instanceof_IdbCursorWithValue_18f39d69ed298f6f(arg0) {
|
|
|
8002
8064
|
return ret;
|
|
8003
8065
|
};
|
|
8004
8066
|
|
|
8005
|
-
export function
|
|
8067
|
+
export function __wbg_instanceof_IdbDatabase_48c551909b7652c5(arg0) {
|
|
8006
8068
|
let result;
|
|
8007
8069
|
try {
|
|
8008
8070
|
result = arg0 instanceof IDBDatabase;
|
|
@@ -8013,7 +8075,7 @@ export function __wbg_instanceof_IdbDatabase_a3ef009ca00059f9(arg0) {
|
|
|
8013
8075
|
return ret;
|
|
8014
8076
|
};
|
|
8015
8077
|
|
|
8016
|
-
export function
|
|
8078
|
+
export function __wbg_instanceof_IdbFactory_e429f3e72d6a6d94(arg0) {
|
|
8017
8079
|
let result;
|
|
8018
8080
|
try {
|
|
8019
8081
|
result = arg0 instanceof IDBFactory;
|
|
@@ -8024,7 +8086,7 @@ export function __wbg_instanceof_IdbFactory_12eaba3366f4302f(arg0) {
|
|
|
8024
8086
|
return ret;
|
|
8025
8087
|
};
|
|
8026
8088
|
|
|
8027
|
-
export function
|
|
8089
|
+
export function __wbg_instanceof_IdbOpenDbRequest_822b13f85bf6d91f(arg0) {
|
|
8028
8090
|
let result;
|
|
8029
8091
|
try {
|
|
8030
8092
|
result = arg0 instanceof IDBOpenDBRequest;
|
|
@@ -8035,7 +8097,7 @@ export function __wbg_instanceof_IdbOpenDbRequest_a3416e156c9db893(arg0) {
|
|
|
8035
8097
|
return ret;
|
|
8036
8098
|
};
|
|
8037
8099
|
|
|
8038
|
-
export function
|
|
8100
|
+
export function __wbg_instanceof_IdbRequest_591f189bf6c335cc(arg0) {
|
|
8039
8101
|
let result;
|
|
8040
8102
|
try {
|
|
8041
8103
|
result = arg0 instanceof IDBRequest;
|
|
@@ -8046,7 +8108,7 @@ export function __wbg_instanceof_IdbRequest_4813c3f207666aa4(arg0) {
|
|
|
8046
8108
|
return ret;
|
|
8047
8109
|
};
|
|
8048
8110
|
|
|
8049
|
-
export function
|
|
8111
|
+
export function __wbg_instanceof_IdbTransaction_7a1d07a52299c4f9(arg0) {
|
|
8050
8112
|
let result;
|
|
8051
8113
|
try {
|
|
8052
8114
|
result = arg0 instanceof IDBTransaction;
|
|
@@ -8057,7 +8119,7 @@ export function __wbg_instanceof_IdbTransaction_746ea660d347650d(arg0) {
|
|
|
8057
8119
|
return ret;
|
|
8058
8120
|
};
|
|
8059
8121
|
|
|
8060
|
-
export function
|
|
8122
|
+
export function __wbg_instanceof_Map_dd89a82d76d1b25f(arg0) {
|
|
8061
8123
|
let result;
|
|
8062
8124
|
try {
|
|
8063
8125
|
result = arg0 instanceof Map;
|
|
@@ -8068,7 +8130,7 @@ export function __wbg_instanceof_Map_f3469ce2244d2430(arg0) {
|
|
|
8068
8130
|
return ret;
|
|
8069
8131
|
};
|
|
8070
8132
|
|
|
8071
|
-
export function
|
|
8133
|
+
export function __wbg_instanceof_Promise_1147df2e75727145(arg0) {
|
|
8072
8134
|
let result;
|
|
8073
8135
|
try {
|
|
8074
8136
|
result = arg0 instanceof Promise;
|
|
@@ -8079,7 +8141,7 @@ export function __wbg_instanceof_Promise_935168b8f4b49db3(arg0) {
|
|
|
8079
8141
|
return ret;
|
|
8080
8142
|
};
|
|
8081
8143
|
|
|
8082
|
-
export function
|
|
8144
|
+
export function __wbg_instanceof_ReadableStreamDefaultReader_0c3606441afabcc8(arg0) {
|
|
8083
8145
|
let result;
|
|
8084
8146
|
try {
|
|
8085
8147
|
result = arg0 instanceof ReadableStreamDefaultReader;
|
|
@@ -8090,7 +8152,7 @@ export function __wbg_instanceof_ReadableStreamDefaultReader_056dcea99b3557aa(ar
|
|
|
8090
8152
|
return ret;
|
|
8091
8153
|
};
|
|
8092
8154
|
|
|
8093
|
-
export function
|
|
8155
|
+
export function __wbg_instanceof_Response_0ab386c6818f788a(arg0) {
|
|
8094
8156
|
let result;
|
|
8095
8157
|
try {
|
|
8096
8158
|
result = arg0 instanceof Response;
|
|
@@ -8101,7 +8163,7 @@ export function __wbg_instanceof_Response_f2cc20d9f7dfd644(arg0) {
|
|
|
8101
8163
|
return ret;
|
|
8102
8164
|
};
|
|
8103
8165
|
|
|
8104
|
-
export function
|
|
8166
|
+
export function __wbg_instanceof_ServiceWorkerGlobalScope_8b30335633410516(arg0) {
|
|
8105
8167
|
let result;
|
|
8106
8168
|
try {
|
|
8107
8169
|
result = arg0 instanceof ServiceWorkerGlobalScope;
|
|
@@ -8112,7 +8174,7 @@ export function __wbg_instanceof_ServiceWorkerGlobalScope_9662fcbac1190e8b(arg0)
|
|
|
8112
8174
|
return ret;
|
|
8113
8175
|
};
|
|
8114
8176
|
|
|
8115
|
-
export function
|
|
8177
|
+
export function __wbg_instanceof_SharedWorkerGlobalScope_c0b9e45163c1a675(arg0) {
|
|
8116
8178
|
let result;
|
|
8117
8179
|
try {
|
|
8118
8180
|
result = arg0 instanceof SharedWorkerGlobalScope;
|
|
@@ -8123,7 +8185,7 @@ export function __wbg_instanceof_SharedWorkerGlobalScope_1796b9b4c3344538(arg0)
|
|
|
8123
8185
|
return ret;
|
|
8124
8186
|
};
|
|
8125
8187
|
|
|
8126
|
-
export function
|
|
8188
|
+
export function __wbg_instanceof_Uint8Array_91f3c5adee7e6672(arg0) {
|
|
8127
8189
|
let result;
|
|
8128
8190
|
try {
|
|
8129
8191
|
result = arg0 instanceof Uint8Array;
|
|
@@ -8134,7 +8196,7 @@ export function __wbg_instanceof_Uint8Array_17156bcf118086a9(arg0) {
|
|
|
8134
8196
|
return ret;
|
|
8135
8197
|
};
|
|
8136
8198
|
|
|
8137
|
-
export function
|
|
8199
|
+
export function __wbg_instanceof_WebTransportBidirectionalStream_65ff63c49f91f97a(arg0) {
|
|
8138
8200
|
let result;
|
|
8139
8201
|
try {
|
|
8140
8202
|
result = arg0 instanceof WebTransportBidirectionalStream;
|
|
@@ -8145,7 +8207,7 @@ export function __wbg_instanceof_WebTransportBidirectionalStream_e00b12a4618e81e
|
|
|
8145
8207
|
return ret;
|
|
8146
8208
|
};
|
|
8147
8209
|
|
|
8148
|
-
export function
|
|
8210
|
+
export function __wbg_instanceof_Window_7f29e5c72acbfd60(arg0) {
|
|
8149
8211
|
let result;
|
|
8150
8212
|
try {
|
|
8151
8213
|
result = arg0 instanceof Window;
|
|
@@ -8156,17 +8218,22 @@ export function __wbg_instanceof_Window_def73ea0955fc569(arg0) {
|
|
|
8156
8218
|
return ret;
|
|
8157
8219
|
};
|
|
8158
8220
|
|
|
8159
|
-
export function
|
|
8221
|
+
export function __wbg_isArray_55c23353d58297fd(arg0) {
|
|
8160
8222
|
const ret = Array.isArray(arg0);
|
|
8161
8223
|
return ret;
|
|
8162
8224
|
};
|
|
8163
8225
|
|
|
8164
|
-
export function
|
|
8226
|
+
export function __wbg_isArray_bc2498eba6fcb71f(arg0) {
|
|
8227
|
+
const ret = Array.isArray(arg0);
|
|
8228
|
+
return ret;
|
|
8229
|
+
};
|
|
8230
|
+
|
|
8231
|
+
export function __wbg_isSafeInteger_6091d6e3ee1b65fd(arg0) {
|
|
8165
8232
|
const ret = Number.isSafeInteger(arg0);
|
|
8166
8233
|
return ret;
|
|
8167
8234
|
};
|
|
8168
8235
|
|
|
8169
|
-
export function
|
|
8236
|
+
export function __wbg_iterator_96378c3c9a17347c() {
|
|
8170
8237
|
const ret = Symbol.iterator;
|
|
8171
8238
|
return ret;
|
|
8172
8239
|
};
|
|
@@ -8186,7 +8253,7 @@ export function __wbg_jseventattribute_unwrap(arg0) {
|
|
|
8186
8253
|
return ret;
|
|
8187
8254
|
};
|
|
8188
8255
|
|
|
8189
|
-
export function
|
|
8256
|
+
export function __wbg_json_dbaa85a926a80ed5() { return handleError(function (arg0) {
|
|
8190
8257
|
const ret = arg0.json();
|
|
8191
8258
|
return ret;
|
|
8192
8259
|
}, arguments) };
|
|
@@ -8201,32 +8268,32 @@ export function __wbg_jsvalidatorinfo_unwrap(arg0) {
|
|
|
8201
8268
|
return ret;
|
|
8202
8269
|
};
|
|
8203
8270
|
|
|
8204
|
-
export function
|
|
8271
|
+
export function __wbg_keyPath_2635ad1da5c21128() { return handleError(function (arg0) {
|
|
8205
8272
|
const ret = arg0.keyPath;
|
|
8206
8273
|
return ret;
|
|
8207
8274
|
}, arguments) };
|
|
8208
8275
|
|
|
8209
|
-
export function
|
|
8276
|
+
export function __wbg_key_54dc8730fa36ae65() { return handleError(function (arg0) {
|
|
8210
8277
|
const ret = arg0.key;
|
|
8211
8278
|
return ret;
|
|
8212
8279
|
}, arguments) };
|
|
8213
8280
|
|
|
8214
|
-
export function
|
|
8281
|
+
export function __wbg_length_1161036d400ff5c6(arg0) {
|
|
8215
8282
|
const ret = arg0.length;
|
|
8216
8283
|
return ret;
|
|
8217
8284
|
};
|
|
8218
8285
|
|
|
8219
|
-
export function
|
|
8286
|
+
export function __wbg_length_246fa1f85a0dea5b(arg0) {
|
|
8220
8287
|
const ret = arg0.length;
|
|
8221
8288
|
return ret;
|
|
8222
8289
|
};
|
|
8223
8290
|
|
|
8224
|
-
export function
|
|
8291
|
+
export function __wbg_length_904c0910ed998bf3(arg0) {
|
|
8225
8292
|
const ret = arg0.length;
|
|
8226
8293
|
return ret;
|
|
8227
8294
|
};
|
|
8228
8295
|
|
|
8229
|
-
export function
|
|
8296
|
+
export function __wbg_memo_aceadb714ed9785c(arg0, arg1) {
|
|
8230
8297
|
const ret = arg1.memo;
|
|
8231
8298
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
8232
8299
|
var len1 = WASM_VECTOR_LEN;
|
|
@@ -8234,7 +8301,7 @@ export function __wbg_memo_06f326dadb7e1baa(arg0, arg1) {
|
|
|
8234
8301
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
8235
8302
|
};
|
|
8236
8303
|
|
|
8237
|
-
export function
|
|
8304
|
+
export function __wbg_message_86bd7dcf158b1dda(arg0) {
|
|
8238
8305
|
const ret = arg0.message;
|
|
8239
8306
|
return ret;
|
|
8240
8307
|
};
|
|
@@ -8244,27 +8311,27 @@ export function __wbg_modeinfo_new(arg0) {
|
|
|
8244
8311
|
return ret;
|
|
8245
8312
|
};
|
|
8246
8313
|
|
|
8247
|
-
export function
|
|
8314
|
+
export function __wbg_msCrypto_a61aeb35a24c1329(arg0) {
|
|
8248
8315
|
const ret = arg0.msCrypto;
|
|
8249
8316
|
return ret;
|
|
8250
8317
|
};
|
|
8251
8318
|
|
|
8252
|
-
export function
|
|
8319
|
+
export function __wbg_multiEntry_a88b8b7336fb09ab(arg0) {
|
|
8253
8320
|
const ret = arg0.multiEntry;
|
|
8254
8321
|
return ret;
|
|
8255
8322
|
};
|
|
8256
8323
|
|
|
8257
|
-
export function
|
|
8324
|
+
export function __wbg_name_4eed68a70c7faf2a(arg0) {
|
|
8258
8325
|
const ret = arg0.name;
|
|
8259
8326
|
return ret;
|
|
8260
8327
|
};
|
|
8261
8328
|
|
|
8262
|
-
export function
|
|
8329
|
+
export function __wbg_navigator_2de7a59c1ede3ea5(arg0) {
|
|
8263
8330
|
const ret = arg0.navigator;
|
|
8264
8331
|
return ret;
|
|
8265
8332
|
};
|
|
8266
8333
|
|
|
8267
|
-
export function
|
|
8334
|
+
export function __wbg_navigator_b6d1cae68d750613(arg0) {
|
|
8268
8335
|
const ret = arg0.navigator;
|
|
8269
8336
|
return ret;
|
|
8270
8337
|
};
|
|
@@ -8274,24 +8341,49 @@ export function __wbg_networkinfosnapshot_new(arg0) {
|
|
|
8274
8341
|
return ret;
|
|
8275
8342
|
};
|
|
8276
8343
|
|
|
8277
|
-
export function
|
|
8344
|
+
export function __wbg_new0_85cc856927102294() {
|
|
8278
8345
|
const ret = new Date();
|
|
8279
8346
|
return ret;
|
|
8280
8347
|
};
|
|
8281
8348
|
|
|
8282
|
-
export function
|
|
8349
|
+
export function __wbg_new_12588505388d0897() { return handleError(function () {
|
|
8283
8350
|
const ret = new Headers();
|
|
8284
8351
|
return ret;
|
|
8285
8352
|
}, arguments) };
|
|
8286
8353
|
|
|
8287
|
-
export function
|
|
8354
|
+
export function __wbg_new_1930cbb8d9ffc31b() {
|
|
8355
|
+
const ret = new Object();
|
|
8356
|
+
return ret;
|
|
8357
|
+
};
|
|
8358
|
+
|
|
8359
|
+
export function __wbg_new_56407f99198feff7() {
|
|
8360
|
+
const ret = new Map();
|
|
8361
|
+
return ret;
|
|
8362
|
+
};
|
|
8363
|
+
|
|
8364
|
+
export function __wbg_new_8a6f238a6ece86ea() {
|
|
8365
|
+
const ret = new Error();
|
|
8366
|
+
return ret;
|
|
8367
|
+
};
|
|
8368
|
+
|
|
8369
|
+
export function __wbg_new_9190433fb67ed635(arg0) {
|
|
8370
|
+
const ret = new Uint8Array(arg0);
|
|
8371
|
+
return ret;
|
|
8372
|
+
};
|
|
8373
|
+
|
|
8374
|
+
export function __wbg_new_97ddeb994a38bb69(arg0, arg1) {
|
|
8375
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
8376
|
+
return ret;
|
|
8377
|
+
};
|
|
8378
|
+
|
|
8379
|
+
export function __wbg_new_d5e3800b120e37e1(arg0, arg1) {
|
|
8288
8380
|
try {
|
|
8289
8381
|
var state0 = {a: arg0, b: arg1};
|
|
8290
8382
|
var cb0 = (arg0, arg1) => {
|
|
8291
8383
|
const a = state0.a;
|
|
8292
8384
|
state0.a = 0;
|
|
8293
8385
|
try {
|
|
8294
|
-
return
|
|
8386
|
+
return __wbg_adapter_982(a, state0.b, arg0, arg1);
|
|
8295
8387
|
} finally {
|
|
8296
8388
|
state0.a = a;
|
|
8297
8389
|
}
|
|
@@ -8303,87 +8395,67 @@ export function __wbg_new_23a2665fac83c611(arg0, arg1) {
|
|
|
8303
8395
|
}
|
|
8304
8396
|
};
|
|
8305
8397
|
|
|
8306
|
-
export function
|
|
8307
|
-
const ret = new
|
|
8308
|
-
return ret;
|
|
8309
|
-
};
|
|
8310
|
-
|
|
8311
|
-
export function __wbg_new_5e0be73521bc8c17() {
|
|
8312
|
-
const ret = new Map();
|
|
8398
|
+
export function __wbg_new_d85e20a34917132b() { return handleError(function (arg0, arg1) {
|
|
8399
|
+
const ret = new WebTransport(getStringFromWasm0(arg0, arg1));
|
|
8313
8400
|
return ret;
|
|
8314
|
-
};
|
|
8401
|
+
}, arguments) };
|
|
8315
8402
|
|
|
8316
|
-
export function
|
|
8403
|
+
export function __wbg_new_e969dc3f68d25093() {
|
|
8317
8404
|
const ret = new Array();
|
|
8318
8405
|
return ret;
|
|
8319
8406
|
};
|
|
8320
8407
|
|
|
8321
|
-
export function
|
|
8408
|
+
export function __wbg_new_f450b111eed28700() { return handleError(function (arg0, arg1) {
|
|
8322
8409
|
const ret = new BroadcastChannel(getStringFromWasm0(arg0, arg1));
|
|
8323
8410
|
return ret;
|
|
8324
8411
|
}, arguments) };
|
|
8325
8412
|
|
|
8326
|
-
export function
|
|
8327
|
-
const ret = new Error();
|
|
8328
|
-
return ret;
|
|
8329
|
-
};
|
|
8330
|
-
|
|
8331
|
-
export function __wbg_new_92c54fc74574ef55() { return handleError(function (arg0, arg1) {
|
|
8413
|
+
export function __wbg_new_fb0d376a3c915f60() { return handleError(function (arg0, arg1) {
|
|
8332
8414
|
const ret = new WebSocket(getStringFromWasm0(arg0, arg1));
|
|
8333
8415
|
return ret;
|
|
8334
8416
|
}, arguments) };
|
|
8335
8417
|
|
|
8336
|
-
export function
|
|
8337
|
-
const ret = new Uint8Array(arg0);
|
|
8338
|
-
return ret;
|
|
8339
|
-
};
|
|
8340
|
-
|
|
8341
|
-
export function __wbg_new_c68d7209be747379(arg0, arg1) {
|
|
8342
|
-
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
8418
|
+
export function __wbg_newfromslice_d0d56929c6d9c842(arg0, arg1) {
|
|
8419
|
+
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
8343
8420
|
return ret;
|
|
8344
8421
|
};
|
|
8345
8422
|
|
|
8346
|
-
export function
|
|
8347
|
-
const ret = new WebTransport(getStringFromWasm0(arg0, arg1));
|
|
8348
|
-
return ret;
|
|
8349
|
-
}, arguments) };
|
|
8350
|
-
|
|
8351
|
-
export function __wbg_newnoargs_105ed471475aaf50(arg0, arg1) {
|
|
8423
|
+
export function __wbg_newnoargs_a81330f6e05d8aca(arg0, arg1) {
|
|
8352
8424
|
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
8353
8425
|
return ret;
|
|
8354
8426
|
};
|
|
8355
8427
|
|
|
8356
|
-
export function
|
|
8428
|
+
export function __wbg_newwithbyteoffsetandlength_9aade108cd45cf37(arg0, arg1, arg2) {
|
|
8357
8429
|
const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
|
|
8358
8430
|
return ret;
|
|
8359
8431
|
};
|
|
8360
8432
|
|
|
8361
|
-
export function
|
|
8433
|
+
export function __wbg_newwithlength_ed0ee6c1edca86fc(arg0) {
|
|
8362
8434
|
const ret = new Uint8Array(arg0 >>> 0);
|
|
8363
8435
|
return ret;
|
|
8364
8436
|
};
|
|
8365
8437
|
|
|
8366
|
-
export function
|
|
8438
|
+
export function __wbg_newwithoptions_1ba541b69f220543() { return handleError(function (arg0, arg1, arg2) {
|
|
8367
8439
|
const ret = new WebTransport(getStringFromWasm0(arg0, arg1), arg2);
|
|
8368
8440
|
return ret;
|
|
8369
8441
|
}, arguments) };
|
|
8370
8442
|
|
|
8371
|
-
export function
|
|
8443
|
+
export function __wbg_newwithstrandinit_e8e22e9851f3c2fe() { return handleError(function (arg0, arg1, arg2) {
|
|
8372
8444
|
const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
|
|
8373
8445
|
return ret;
|
|
8374
8446
|
}, arguments) };
|
|
8375
8447
|
|
|
8376
|
-
export function
|
|
8377
|
-
const ret = arg0.next;
|
|
8378
|
-
return ret;
|
|
8379
|
-
};
|
|
8380
|
-
|
|
8381
|
-
export function __wbg_next_6574e1a8a62d1055() { return handleError(function (arg0) {
|
|
8448
|
+
export function __wbg_next_2e6b37020ac5fe58() { return handleError(function (arg0) {
|
|
8382
8449
|
const ret = arg0.next();
|
|
8383
8450
|
return ret;
|
|
8384
8451
|
}, arguments) };
|
|
8385
8452
|
|
|
8386
|
-
export function
|
|
8453
|
+
export function __wbg_next_3de8f2669431a3ff(arg0) {
|
|
8454
|
+
const ret = arg0.next;
|
|
8455
|
+
return ret;
|
|
8456
|
+
};
|
|
8457
|
+
|
|
8458
|
+
export function __wbg_node_905d3e251edff8a2(arg0) {
|
|
8387
8459
|
const ret = arg0.node;
|
|
8388
8460
|
return ret;
|
|
8389
8461
|
};
|
|
@@ -8393,62 +8465,62 @@ export function __wbg_nodeclient_new(arg0) {
|
|
|
8393
8465
|
return ret;
|
|
8394
8466
|
};
|
|
8395
8467
|
|
|
8396
|
-
export function
|
|
8468
|
+
export function __wbg_now_1f875e5cd673bc3c(arg0) {
|
|
8397
8469
|
const ret = arg0.now();
|
|
8398
8470
|
return ret;
|
|
8399
8471
|
};
|
|
8400
8472
|
|
|
8401
|
-
export function
|
|
8402
|
-
const ret =
|
|
8473
|
+
export function __wbg_now_2c95c9de01293173(arg0) {
|
|
8474
|
+
const ret = arg0.now();
|
|
8403
8475
|
return ret;
|
|
8404
8476
|
};
|
|
8405
8477
|
|
|
8406
|
-
export function
|
|
8407
|
-
const ret =
|
|
8478
|
+
export function __wbg_now_e3057dd824ca0191() {
|
|
8479
|
+
const ret = Date.now();
|
|
8408
8480
|
return ret;
|
|
8409
8481
|
};
|
|
8410
8482
|
|
|
8411
|
-
export function
|
|
8483
|
+
export function __wbg_objectStoreNames_9f871922c78ae388(arg0) {
|
|
8412
8484
|
const ret = arg0.objectStoreNames;
|
|
8413
8485
|
return ret;
|
|
8414
8486
|
};
|
|
8415
8487
|
|
|
8416
|
-
export function
|
|
8488
|
+
export function __wbg_objectStore_4f9dafdbff77fd83() { return handleError(function (arg0, arg1, arg2) {
|
|
8417
8489
|
const ret = arg0.objectStore(getStringFromWasm0(arg1, arg2));
|
|
8418
8490
|
return ret;
|
|
8419
8491
|
}, arguments) };
|
|
8420
8492
|
|
|
8421
|
-
export function
|
|
8493
|
+
export function __wbg_of_0082112f5d8d608a(arg0) {
|
|
8422
8494
|
const ret = Array.of(arg0);
|
|
8423
8495
|
return ret;
|
|
8424
8496
|
};
|
|
8425
8497
|
|
|
8426
|
-
export function
|
|
8498
|
+
export function __wbg_only_1c4292e278018189() { return handleError(function (arg0) {
|
|
8427
8499
|
const ret = IDBKeyRange.only(arg0);
|
|
8428
8500
|
return ret;
|
|
8429
8501
|
}, arguments) };
|
|
8430
8502
|
|
|
8431
|
-
export function
|
|
8432
|
-
const ret = arg0.openCursor();
|
|
8503
|
+
export function __wbg_openCursor_2b0233fcb8713b84() { return handleError(function (arg0, arg1, arg2) {
|
|
8504
|
+
const ret = arg0.openCursor(arg1, __wbindgen_enum_IdbCursorDirection[arg2]);
|
|
8433
8505
|
return ret;
|
|
8434
8506
|
}, arguments) };
|
|
8435
8507
|
|
|
8436
|
-
export function
|
|
8437
|
-
const ret = arg0.openCursor(
|
|
8508
|
+
export function __wbg_openCursor_46a38ced59324ff5() { return handleError(function (arg0) {
|
|
8509
|
+
const ret = arg0.openCursor();
|
|
8438
8510
|
return ret;
|
|
8439
8511
|
}, arguments) };
|
|
8440
8512
|
|
|
8441
|
-
export function
|
|
8513
|
+
export function __wbg_openCursor_f0969faec4c47a9f() { return handleError(function (arg0, arg1) {
|
|
8442
8514
|
const ret = arg0.openCursor(arg1);
|
|
8443
8515
|
return ret;
|
|
8444
8516
|
}, arguments) };
|
|
8445
8517
|
|
|
8446
|
-
export function
|
|
8518
|
+
export function __wbg_open_4ccfb9986e8733c9() { return handleError(function (arg0, arg1, arg2) {
|
|
8447
8519
|
const ret = arg0.open(getStringFromWasm0(arg1, arg2));
|
|
8448
8520
|
return ret;
|
|
8449
8521
|
}, arguments) };
|
|
8450
8522
|
|
|
8451
|
-
export function
|
|
8523
|
+
export function __wbg_open_bf329a7c677f6eb3() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
8452
8524
|
const ret = arg0.open(getStringFromWasm0(arg1, arg2), arg3 >>> 0);
|
|
8453
8525
|
return ret;
|
|
8454
8526
|
}, arguments) };
|
|
@@ -8463,34 +8535,34 @@ export function __wbg_performance_7a3ffd0b17f663ad(arg0) {
|
|
|
8463
8535
|
return ret;
|
|
8464
8536
|
};
|
|
8465
8537
|
|
|
8466
|
-
export function
|
|
8538
|
+
export function __wbg_persist_1bb8fe4abf4a1238() { return handleError(function (arg0) {
|
|
8467
8539
|
const ret = arg0.persist();
|
|
8468
8540
|
return ret;
|
|
8469
8541
|
}, arguments) };
|
|
8470
8542
|
|
|
8471
|
-
export function
|
|
8543
|
+
export function __wbg_ports_9c55c10a9e47462c(arg0) {
|
|
8472
8544
|
const ret = arg0.ports;
|
|
8473
8545
|
return ret;
|
|
8474
8546
|
};
|
|
8475
8547
|
|
|
8476
|
-
export function
|
|
8477
|
-
arg0.postMessage(arg1
|
|
8548
|
+
export function __wbg_postMessage_3b4fb1cda6756bf0() { return handleError(function (arg0, arg1) {
|
|
8549
|
+
arg0.postMessage(arg1);
|
|
8478
8550
|
}, arguments) };
|
|
8479
8551
|
|
|
8480
|
-
export function
|
|
8481
|
-
arg0.postMessage(arg1);
|
|
8552
|
+
export function __wbg_postMessage_b9234f931da7f86a() { return handleError(function (arg0, arg1, arg2) {
|
|
8553
|
+
arg0.postMessage(arg1, arg2);
|
|
8482
8554
|
}, arguments) };
|
|
8483
8555
|
|
|
8484
|
-
export function
|
|
8556
|
+
export function __wbg_postMessage_ecb1e9ee54a5b2f1() { return handleError(function (arg0, arg1) {
|
|
8485
8557
|
arg0.postMessage(arg1);
|
|
8486
8558
|
}, arguments) };
|
|
8487
8559
|
|
|
8488
|
-
export function
|
|
8560
|
+
export function __wbg_priority_1990e2825970b82f(arg0) {
|
|
8489
8561
|
const ret = arg0.priority;
|
|
8490
8562
|
return isLikeNone(ret) ? 0 : ret;
|
|
8491
8563
|
};
|
|
8492
8564
|
|
|
8493
|
-
export function
|
|
8565
|
+
export function __wbg_process_dc0fbacc7c1c06f7(arg0) {
|
|
8494
8566
|
const ret = arg0.process;
|
|
8495
8567
|
return ret;
|
|
8496
8568
|
};
|
|
@@ -8505,88 +8577,97 @@ export function __wbg_proofop_unwrap(arg0) {
|
|
|
8505
8577
|
return ret;
|
|
8506
8578
|
};
|
|
8507
8579
|
|
|
8508
|
-
export function
|
|
8580
|
+
export function __wbg_prototypesetcall_c5f74efd31aea86b(arg0, arg1, arg2) {
|
|
8581
|
+
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
8582
|
+
};
|
|
8583
|
+
|
|
8584
|
+
export function __wbg_push_cd3ac7d5b094565d(arg0, arg1) {
|
|
8509
8585
|
const ret = arg0.push(arg1);
|
|
8510
8586
|
return ret;
|
|
8511
8587
|
};
|
|
8512
8588
|
|
|
8513
|
-
export function
|
|
8589
|
+
export function __wbg_put_26029bce45af287b() { return handleError(function (arg0, arg1, arg2) {
|
|
8514
8590
|
const ret = arg0.put(arg1, arg2);
|
|
8515
8591
|
return ret;
|
|
8516
8592
|
}, arguments) };
|
|
8517
8593
|
|
|
8518
|
-
export function
|
|
8594
|
+
export function __wbg_put_adbbd8f247db7544() { return handleError(function (arg0, arg1) {
|
|
8519
8595
|
const ret = arg0.put(arg1);
|
|
8520
8596
|
return ret;
|
|
8521
8597
|
}, arguments) };
|
|
8522
8598
|
|
|
8523
|
-
export function
|
|
8524
|
-
queueMicrotask(arg0);
|
|
8525
|
-
};
|
|
8526
|
-
|
|
8527
|
-
export function __wbg_queueMicrotask_d3219def82552485(arg0) {
|
|
8599
|
+
export function __wbg_queueMicrotask_bcc6e26d899696db(arg0) {
|
|
8528
8600
|
const ret = arg0.queueMicrotask;
|
|
8529
8601
|
return ret;
|
|
8530
8602
|
};
|
|
8531
8603
|
|
|
8532
|
-
export function
|
|
8604
|
+
export function __wbg_queueMicrotask_f24a794d09c42640(arg0) {
|
|
8605
|
+
queueMicrotask(arg0);
|
|
8606
|
+
};
|
|
8607
|
+
|
|
8608
|
+
export function __wbg_randomFillSync_ac0988aba3254290() { return handleError(function (arg0, arg1) {
|
|
8533
8609
|
arg0.randomFillSync(arg1);
|
|
8534
8610
|
}, arguments) };
|
|
8535
8611
|
|
|
8536
|
-
export function
|
|
8612
|
+
export function __wbg_random_57255a777f5a0573() {
|
|
8537
8613
|
const ret = Math.random();
|
|
8538
8614
|
return ret;
|
|
8539
8615
|
};
|
|
8540
8616
|
|
|
8541
|
-
export function
|
|
8617
|
+
export function __wbg_read_dc3d89b58ce2ae65(arg0) {
|
|
8542
8618
|
const ret = arg0.read();
|
|
8543
8619
|
return ret;
|
|
8544
8620
|
};
|
|
8545
8621
|
|
|
8546
|
-
export function
|
|
8622
|
+
export function __wbg_readable_e39b6396dce1aa98(arg0) {
|
|
8547
8623
|
const ret = arg0.readable;
|
|
8548
8624
|
return ret;
|
|
8549
8625
|
};
|
|
8550
8626
|
|
|
8551
|
-
export function
|
|
8627
|
+
export function __wbg_readyState_e97ec9955f858a83(arg0) {
|
|
8552
8628
|
const ret = arg0.readyState;
|
|
8553
8629
|
return ret;
|
|
8554
8630
|
};
|
|
8555
8631
|
|
|
8556
|
-
export function
|
|
8632
|
+
export function __wbg_ready_a624cdffdc1b39dc(arg0) {
|
|
8557
8633
|
const ret = arg0.ready;
|
|
8558
8634
|
return ret;
|
|
8559
8635
|
};
|
|
8560
8636
|
|
|
8561
|
-
export function
|
|
8637
|
+
export function __wbg_ready_a8d2b97e1fe33dcb(arg0) {
|
|
8562
8638
|
const ret = arg0.ready;
|
|
8563
8639
|
return ret;
|
|
8564
8640
|
};
|
|
8565
8641
|
|
|
8566
|
-
export function
|
|
8642
|
+
export function __wbg_releaseLock_fbec365467db2e6c(arg0) {
|
|
8567
8643
|
arg0.releaseLock();
|
|
8568
8644
|
};
|
|
8569
8645
|
|
|
8570
|
-
export function
|
|
8646
|
+
export function __wbg_request_3be0f0335cc6a465(arg0, arg1, arg2, arg3, arg4) {
|
|
8647
|
+
const ret = arg0.request(getStringFromWasm0(arg1, arg2), arg3, arg4);
|
|
8648
|
+
return ret;
|
|
8649
|
+
};
|
|
8650
|
+
|
|
8651
|
+
export function __wbg_request_d6e49e725ba3024b(arg0) {
|
|
8571
8652
|
const ret = arg0.request;
|
|
8572
8653
|
return ret;
|
|
8573
8654
|
};
|
|
8574
8655
|
|
|
8575
|
-
export function
|
|
8656
|
+
export function __wbg_require_60cc747a6bc5215a() { return handleError(function () {
|
|
8576
8657
|
const ret = module.require;
|
|
8577
8658
|
return ret;
|
|
8578
8659
|
}, arguments) };
|
|
8579
8660
|
|
|
8580
|
-
export function
|
|
8661
|
+
export function __wbg_resolve_5775c0ef9222f556(arg0) {
|
|
8581
8662
|
const ret = Promise.resolve(arg0);
|
|
8582
8663
|
return ret;
|
|
8583
8664
|
};
|
|
8584
8665
|
|
|
8585
|
-
export function
|
|
8666
|
+
export function __wbg_respond_0003f7c68aa35ef6() { return handleError(function (arg0, arg1) {
|
|
8586
8667
|
arg0.respond(arg1 >>> 0);
|
|
8587
8668
|
}, arguments) };
|
|
8588
8669
|
|
|
8589
|
-
export function
|
|
8670
|
+
export function __wbg_result_b30a0a7bc6b6345f() { return handleError(function (arg0) {
|
|
8590
8671
|
const ret = arg0.result;
|
|
8591
8672
|
return ret;
|
|
8592
8673
|
}, arguments) };
|
|
@@ -8596,16 +8677,16 @@ export function __wbg_samplingmetadata_new(arg0) {
|
|
|
8596
8677
|
return ret;
|
|
8597
8678
|
};
|
|
8598
8679
|
|
|
8599
|
-
export function
|
|
8680
|
+
export function __wbg_send_f0af552dcc5d8183() { return handleError(function (arg0, arg1, arg2) {
|
|
8600
8681
|
arg0.send(getArrayU8FromWasm0(arg1, arg2));
|
|
8601
8682
|
}, arguments) };
|
|
8602
8683
|
|
|
8603
|
-
export function
|
|
8684
|
+
export function __wbg_setInterval_a708e6782af78d02() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
8604
8685
|
const ret = arg0.setInterval(arg1, arg2, ...arg3);
|
|
8605
8686
|
return ret;
|
|
8606
8687
|
}, arguments) };
|
|
8607
8688
|
|
|
8608
|
-
export function
|
|
8689
|
+
export function __wbg_setInterval_deb388473d598809() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
8609
8690
|
const ret = arg0.setInterval(arg1, arg2, ...arg3);
|
|
8610
8691
|
return ret;
|
|
8611
8692
|
}, arguments) };
|
|
@@ -8615,7 +8696,7 @@ export function __wbg_setInterval_ed3b5e3c3ebb8a6d() { return handleError(functi
|
|
|
8615
8696
|
return ret;
|
|
8616
8697
|
}, arguments) };
|
|
8617
8698
|
|
|
8618
|
-
export function
|
|
8699
|
+
export function __wbg_setTimeout_c19d61d90c66d11f(arg0, arg1) {
|
|
8619
8700
|
const ret = setTimeout(arg0, arg1 >>> 0);
|
|
8620
8701
|
return ret;
|
|
8621
8702
|
};
|
|
@@ -8630,137 +8711,137 @@ export function __wbg_setTimeout_eefe7f4c234b0c6b() { return handleError(functio
|
|
|
8630
8711
|
return ret;
|
|
8631
8712
|
}, arguments) };
|
|
8632
8713
|
|
|
8633
|
-
export function
|
|
8714
|
+
export function __wbg_set_1d5fe1e3f51a48d8(arg0, arg1, arg2) {
|
|
8715
|
+
arg0.set(getArrayU8FromWasm0(arg1, arg2));
|
|
8716
|
+
};
|
|
8717
|
+
|
|
8718
|
+
export function __wbg_set_2df374478acad331() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
8634
8719
|
arg0.set(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
8635
8720
|
}, arguments) };
|
|
8636
8721
|
|
|
8637
|
-
export function
|
|
8638
|
-
|
|
8722
|
+
export function __wbg_set_31197016f65a6a19(arg0, arg1, arg2) {
|
|
8723
|
+
const ret = arg0.set(arg1, arg2);
|
|
8724
|
+
return ret;
|
|
8639
8725
|
};
|
|
8640
8726
|
|
|
8641
8727
|
export function __wbg_set_3f1d0b984ed272ed(arg0, arg1, arg2) {
|
|
8642
8728
|
arg0[arg1] = arg2;
|
|
8643
8729
|
};
|
|
8644
8730
|
|
|
8645
|
-
export function
|
|
8646
|
-
arg0.set(arg1, arg2 >>> 0);
|
|
8647
|
-
};
|
|
8648
|
-
|
|
8649
|
-
export function __wbg_set_8fc6bf8a5b1071d1(arg0, arg1, arg2) {
|
|
8650
|
-
const ret = arg0.set(arg1, arg2);
|
|
8651
|
-
return ret;
|
|
8652
|
-
};
|
|
8653
|
-
|
|
8654
|
-
export function __wbg_set_bb8cecf6a62b9f46() { return handleError(function (arg0, arg1, arg2) {
|
|
8731
|
+
export function __wbg_set_b33e7a98099eed58() { return handleError(function (arg0, arg1, arg2) {
|
|
8655
8732
|
const ret = Reflect.set(arg0, arg1, arg2);
|
|
8656
8733
|
return ret;
|
|
8657
8734
|
}, arguments) };
|
|
8658
8735
|
|
|
8659
|
-
export function
|
|
8736
|
+
export function __wbg_set_d636a0463acf1dbc(arg0, arg1, arg2) {
|
|
8737
|
+
arg0[arg1 >>> 0] = arg2;
|
|
8738
|
+
};
|
|
8739
|
+
|
|
8740
|
+
export function __wbg_setautoincrement_5ae17c87fe2d4f9b(arg0, arg1) {
|
|
8660
8741
|
arg0.autoIncrement = arg1 !== 0;
|
|
8661
8742
|
};
|
|
8662
8743
|
|
|
8663
|
-
export function
|
|
8744
|
+
export function __wbg_setbinaryType_c6d319ec56ffc9f5(arg0, arg1) {
|
|
8664
8745
|
arg0.binaryType = __wbindgen_enum_BinaryType[arg1];
|
|
8665
8746
|
};
|
|
8666
8747
|
|
|
8667
|
-
export function
|
|
8748
|
+
export function __wbg_setbody_e324371c31597f2a(arg0, arg1) {
|
|
8668
8749
|
arg0.body = arg1;
|
|
8669
8750
|
};
|
|
8670
8751
|
|
|
8671
|
-
export function
|
|
8752
|
+
export function __wbg_setcache_7c95e3469a5bfb76(arg0, arg1) {
|
|
8672
8753
|
arg0.cache = __wbindgen_enum_RequestCache[arg1];
|
|
8673
8754
|
};
|
|
8674
8755
|
|
|
8675
|
-
export function
|
|
8756
|
+
export function __wbg_setcause_b0108db2f5bad08c(arg0, arg1) {
|
|
8676
8757
|
arg0.cause = arg1;
|
|
8677
8758
|
};
|
|
8678
8759
|
|
|
8679
|
-
export function
|
|
8760
|
+
export function __wbg_setcredentials_55a9317ed2777533(arg0, arg1) {
|
|
8680
8761
|
arg0.credentials = __wbindgen_enum_RequestCredentials[arg1];
|
|
8681
8762
|
};
|
|
8682
8763
|
|
|
8683
|
-
export function
|
|
8764
|
+
export function __wbg_setheaders_ac0b1e4890a949cd(arg0, arg1) {
|
|
8684
8765
|
arg0.headers = arg1;
|
|
8685
8766
|
};
|
|
8686
8767
|
|
|
8687
|
-
export function
|
|
8768
|
+
export function __wbg_setintegrity_b99a69a0174d6d2d(arg0, arg1, arg2) {
|
|
8688
8769
|
arg0.integrity = getStringFromWasm0(arg1, arg2);
|
|
8689
8770
|
};
|
|
8690
8771
|
|
|
8691
|
-
export function
|
|
8772
|
+
export function __wbg_setkeypath_8d8c800a95646c4d(arg0, arg1) {
|
|
8692
8773
|
arg0.keyPath = arg1;
|
|
8693
8774
|
};
|
|
8694
8775
|
|
|
8695
|
-
export function
|
|
8776
|
+
export function __wbg_setmethod_9ce6e95af1ae0eaf(arg0, arg1, arg2) {
|
|
8696
8777
|
arg0.method = getStringFromWasm0(arg1, arg2);
|
|
8697
8778
|
};
|
|
8698
8779
|
|
|
8699
|
-
export function
|
|
8780
|
+
export function __wbg_setmode_b89d1784e7e7f118(arg0, arg1) {
|
|
8700
8781
|
arg0.mode = __wbindgen_enum_RequestMode[arg1];
|
|
8701
8782
|
};
|
|
8702
8783
|
|
|
8703
|
-
export function
|
|
8784
|
+
export function __wbg_setmultientry_2d965bfbe831d349(arg0, arg1) {
|
|
8704
8785
|
arg0.multiEntry = arg1 !== 0;
|
|
8705
8786
|
};
|
|
8706
8787
|
|
|
8707
|
-
export function
|
|
8788
|
+
export function __wbg_setonabort_2b64fe553e1f30a5(arg0, arg1) {
|
|
8708
8789
|
arg0.onabort = arg1;
|
|
8709
8790
|
};
|
|
8710
8791
|
|
|
8711
|
-
export function
|
|
8792
|
+
export function __wbg_setonclose_31fecac020b76f64(arg0, arg1) {
|
|
8712
8793
|
arg0.onclose = arg1;
|
|
8713
8794
|
};
|
|
8714
8795
|
|
|
8715
|
-
export function
|
|
8796
|
+
export function __wbg_setoncomplete_2dee9e6e91eb390c(arg0, arg1) {
|
|
8716
8797
|
arg0.oncomplete = arg1;
|
|
8717
8798
|
};
|
|
8718
8799
|
|
|
8719
|
-
export function
|
|
8800
|
+
export function __wbg_setonerror_12c7b6aa014e29ff(arg0, arg1) {
|
|
8720
8801
|
arg0.onerror = arg1;
|
|
8721
8802
|
};
|
|
8722
8803
|
|
|
8723
|
-
export function
|
|
8804
|
+
export function __wbg_setonerror_1c09126416a8732a(arg0, arg1) {
|
|
8724
8805
|
arg0.onerror = arg1;
|
|
8725
8806
|
};
|
|
8726
8807
|
|
|
8727
|
-
export function
|
|
8808
|
+
export function __wbg_setonerror_d12d470adff34fe2(arg0, arg1) {
|
|
8728
8809
|
arg0.onerror = arg1;
|
|
8729
8810
|
};
|
|
8730
8811
|
|
|
8731
|
-
export function
|
|
8812
|
+
export function __wbg_setonmessage_202c21ecebb3d86d(arg0, arg1) {
|
|
8732
8813
|
arg0.onmessage = arg1;
|
|
8733
8814
|
};
|
|
8734
8815
|
|
|
8735
|
-
export function
|
|
8816
|
+
export function __wbg_setonopen_dbb4e4d6121f7c34(arg0, arg1) {
|
|
8736
8817
|
arg0.onopen = arg1;
|
|
8737
8818
|
};
|
|
8738
8819
|
|
|
8739
|
-
export function
|
|
8820
|
+
export function __wbg_setonsuccess_81a109828a9b7d7c(arg0, arg1) {
|
|
8740
8821
|
arg0.onsuccess = arg1;
|
|
8741
8822
|
};
|
|
8742
8823
|
|
|
8743
|
-
export function
|
|
8824
|
+
export function __wbg_setonupgradeneeded_41c59fde839b5142(arg0, arg1) {
|
|
8744
8825
|
arg0.onupgradeneeded = arg1;
|
|
8745
8826
|
};
|
|
8746
8827
|
|
|
8747
|
-
export function
|
|
8828
|
+
export function __wbg_setonversionchange_6d4cf4b5eafafccc(arg0, arg1) {
|
|
8748
8829
|
arg0.onversionchange = arg1;
|
|
8749
8830
|
};
|
|
8750
8831
|
|
|
8751
|
-
export function
|
|
8832
|
+
export function __wbg_setredirect_4017ceebe5aecf8c(arg0, arg1) {
|
|
8752
8833
|
arg0.redirect = __wbindgen_enum_RequestRedirect[arg1];
|
|
8753
8834
|
};
|
|
8754
8835
|
|
|
8755
|
-
export function
|
|
8836
|
+
export function __wbg_setreferrer_4625041984f4c279(arg0, arg1, arg2) {
|
|
8756
8837
|
arg0.referrer = getStringFromWasm0(arg1, arg2);
|
|
8757
8838
|
};
|
|
8758
8839
|
|
|
8759
|
-
export function
|
|
8840
|
+
export function __wbg_setreferrerpolicy_16cc29e0e528b435(arg0, arg1) {
|
|
8760
8841
|
arg0.referrerPolicy = __wbindgen_enum_ReferrerPolicy[arg1];
|
|
8761
8842
|
};
|
|
8762
8843
|
|
|
8763
|
-
export function
|
|
8844
|
+
export function __wbg_setunique_bccba0d1ccd21f16(arg0, arg1) {
|
|
8764
8845
|
arg0.unique = arg1 !== 0;
|
|
8765
8846
|
};
|
|
8766
8847
|
|
|
@@ -8779,7 +8860,7 @@ export function __wbg_signerinfo_unwrap(arg0) {
|
|
|
8779
8860
|
return ret;
|
|
8780
8861
|
};
|
|
8781
8862
|
|
|
8782
|
-
export function
|
|
8863
|
+
export function __wbg_slice_4d3ad79b14a0c0ec(arg0, arg1, arg2) {
|
|
8783
8864
|
const ret = arg0.slice(arg1 >>> 0, arg2 >>> 0);
|
|
8784
8865
|
return ret;
|
|
8785
8866
|
};
|
|
@@ -8792,37 +8873,37 @@ export function __wbg_stack_0ed75d68575b0f3c(arg0, arg1) {
|
|
|
8792
8873
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
8793
8874
|
};
|
|
8794
8875
|
|
|
8795
|
-
export function
|
|
8876
|
+
export function __wbg_static_accessor_GLOBAL_1f13249cc3acc96d() {
|
|
8796
8877
|
const ret = typeof global === 'undefined' ? null : global;
|
|
8797
8878
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
8798
8879
|
};
|
|
8799
8880
|
|
|
8800
|
-
export function
|
|
8881
|
+
export function __wbg_static_accessor_GLOBAL_THIS_df7ae94b1e0ed6a3() {
|
|
8801
8882
|
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
8802
8883
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
8803
8884
|
};
|
|
8804
8885
|
|
|
8805
|
-
export function
|
|
8886
|
+
export function __wbg_static_accessor_SELF_6265471db3b3c228() {
|
|
8806
8887
|
const ret = typeof self === 'undefined' ? null : self;
|
|
8807
8888
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
8808
8889
|
};
|
|
8809
8890
|
|
|
8810
|
-
export function
|
|
8891
|
+
export function __wbg_static_accessor_WINDOW_16fb482f8ec52863() {
|
|
8811
8892
|
const ret = typeof window === 'undefined' ? null : window;
|
|
8812
8893
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
8813
8894
|
};
|
|
8814
8895
|
|
|
8815
|
-
export function
|
|
8896
|
+
export function __wbg_status_31874648c8651949(arg0) {
|
|
8816
8897
|
const ret = arg0.status;
|
|
8817
8898
|
return ret;
|
|
8818
8899
|
};
|
|
8819
8900
|
|
|
8820
|
-
export function
|
|
8901
|
+
export function __wbg_storage_144f3515656273ac(arg0) {
|
|
8821
8902
|
const ret = arg0.storage;
|
|
8822
8903
|
return ret;
|
|
8823
8904
|
};
|
|
8824
8905
|
|
|
8825
|
-
export function
|
|
8906
|
+
export function __wbg_storage_f49596759b4c8730(arg0) {
|
|
8826
8907
|
const ret = arg0.storage;
|
|
8827
8908
|
return ret;
|
|
8828
8909
|
};
|
|
@@ -8837,7 +8918,7 @@ export function __wbg_stringevent_unwrap(arg0) {
|
|
|
8837
8918
|
return ret;
|
|
8838
8919
|
};
|
|
8839
8920
|
|
|
8840
|
-
export function
|
|
8921
|
+
export function __wbg_subarray_a219824899e59712(arg0, arg1, arg2) {
|
|
8841
8922
|
const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
|
|
8842
8923
|
return ret;
|
|
8843
8924
|
};
|
|
@@ -8847,45 +8928,40 @@ export function __wbg_syncinginfosnapshot_new(arg0) {
|
|
|
8847
8928
|
return ret;
|
|
8848
8929
|
};
|
|
8849
8930
|
|
|
8850
|
-
export function
|
|
8931
|
+
export function __wbg_target_bfb4281bfa013115(arg0) {
|
|
8851
8932
|
const ret = arg0.target;
|
|
8852
8933
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
8853
8934
|
};
|
|
8854
8935
|
|
|
8855
|
-
export function
|
|
8856
|
-
const ret = arg0.then(arg1);
|
|
8936
|
+
export function __wbg_then_8d2fcccde5380a03(arg0, arg1, arg2) {
|
|
8937
|
+
const ret = arg0.then(arg1, arg2);
|
|
8857
8938
|
return ret;
|
|
8858
8939
|
};
|
|
8859
8940
|
|
|
8860
|
-
export function
|
|
8861
|
-
const ret = arg0.then(arg1
|
|
8941
|
+
export function __wbg_then_9cc266be2bf537b6(arg0, arg1) {
|
|
8942
|
+
const ret = arg0.then(arg1);
|
|
8862
8943
|
return ret;
|
|
8863
8944
|
};
|
|
8864
8945
|
|
|
8865
|
-
export function
|
|
8946
|
+
export function __wbg_toString_1144ec2f872e8cf3(arg0) {
|
|
8866
8947
|
const ret = arg0.toString();
|
|
8867
8948
|
return ret;
|
|
8868
8949
|
};
|
|
8869
8950
|
|
|
8870
|
-
export function
|
|
8951
|
+
export function __wbg_toString_1588a16751ba3f70(arg0) {
|
|
8871
8952
|
const ret = arg0.toString();
|
|
8872
8953
|
return ret;
|
|
8873
8954
|
};
|
|
8874
8955
|
|
|
8875
|
-
export function
|
|
8876
|
-
const ret = arg0.transaction(arg1, __wbindgen_enum_IdbTransactionMode[arg2]);
|
|
8877
|
-
return ret;
|
|
8878
|
-
}, arguments) };
|
|
8879
|
-
|
|
8880
|
-
export function __wbg_transaction_e713aa7b07ccaedd(arg0) {
|
|
8956
|
+
export function __wbg_transaction_8267254fd462a1bb(arg0) {
|
|
8881
8957
|
const ret = arg0.transaction;
|
|
8882
8958
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
8883
8959
|
};
|
|
8884
8960
|
|
|
8885
|
-
export function
|
|
8886
|
-
const ret =
|
|
8961
|
+
export function __wbg_transaction_fca796495943f7a5() { return handleError(function (arg0, arg1, arg2) {
|
|
8962
|
+
const ret = arg0.transaction(arg1, __wbindgen_enum_IdbTransactionMode[arg2]);
|
|
8887
8963
|
return ret;
|
|
8888
|
-
};
|
|
8964
|
+
}, arguments) };
|
|
8889
8965
|
|
|
8890
8966
|
export function __wbg_txresponse_new(arg0) {
|
|
8891
8967
|
const ret = TxResponse.__wrap(arg0);
|
|
@@ -8897,7 +8973,7 @@ export function __wbg_txstatusresponse_new(arg0) {
|
|
|
8897
8973
|
return ret;
|
|
8898
8974
|
};
|
|
8899
8975
|
|
|
8900
|
-
export function
|
|
8976
|
+
export function __wbg_typeUrl_3684fcca6ad58882(arg0, arg1) {
|
|
8901
8977
|
const ret = arg1.typeUrl;
|
|
8902
8978
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
8903
8979
|
const len1 = WASM_VECTOR_LEN;
|
|
@@ -8905,12 +8981,12 @@ export function __wbg_typeUrl_2c98c99b2904d84c(arg0, arg1) {
|
|
|
8905
8981
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
8906
8982
|
};
|
|
8907
8983
|
|
|
8908
|
-
export function
|
|
8984
|
+
export function __wbg_unique_2ffe24c606d8bfd2(arg0) {
|
|
8909
8985
|
const ret = arg0.unique;
|
|
8910
8986
|
return ret;
|
|
8911
8987
|
};
|
|
8912
8988
|
|
|
8913
|
-
export function
|
|
8989
|
+
export function __wbg_userAgent_1157325f8a8128d1() { return handleError(function (arg0, arg1) {
|
|
8914
8990
|
const ret = arg1.userAgent;
|
|
8915
8991
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
8916
8992
|
const len1 = WASM_VECTOR_LEN;
|
|
@@ -8918,7 +8994,7 @@ export function __wbg_userAgent_12e9d8e62297563f() { return handleError(function
|
|
|
8918
8994
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
8919
8995
|
}, arguments) };
|
|
8920
8996
|
|
|
8921
|
-
export function
|
|
8997
|
+
export function __wbg_userAgent_9b943f9412e5e199() { return handleError(function (arg0, arg1) {
|
|
8922
8998
|
const ret = arg1.userAgent;
|
|
8923
8999
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
8924
9000
|
const len1 = WASM_VECTOR_LEN;
|
|
@@ -8926,12 +9002,12 @@ export function __wbg_userAgent_d036e8722fea0cde() { return handleError(function
|
|
|
8926
9002
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
8927
9003
|
}, arguments) };
|
|
8928
9004
|
|
|
8929
|
-
export function
|
|
9005
|
+
export function __wbg_value_09d0b4eaab48b91d(arg0) {
|
|
8930
9006
|
const ret = arg0.value;
|
|
8931
9007
|
return ret;
|
|
8932
|
-
}
|
|
9008
|
+
};
|
|
8933
9009
|
|
|
8934
|
-
export function
|
|
9010
|
+
export function __wbg_value_1c415f2db45fc801(arg0, arg1) {
|
|
8935
9011
|
const ret = arg1.value;
|
|
8936
9012
|
const ptr1 = passArray8ToWasm0(ret, wasm.__wbindgen_malloc);
|
|
8937
9013
|
const len1 = WASM_VECTOR_LEN;
|
|
@@ -8939,244 +9015,272 @@ export function __wbg_value_9d0a1475adca6e41(arg0, arg1) {
|
|
|
8939
9015
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
8940
9016
|
};
|
|
8941
9017
|
|
|
8942
|
-
export function
|
|
9018
|
+
export function __wbg_value_3e45d77a58bc804d() { return handleError(function (arg0) {
|
|
8943
9019
|
const ret = arg0.value;
|
|
8944
9020
|
return ret;
|
|
8945
|
-
};
|
|
9021
|
+
}, arguments) };
|
|
8946
9022
|
|
|
8947
|
-
export function
|
|
9023
|
+
export function __wbg_versions_c01dfd4722a88165(arg0) {
|
|
8948
9024
|
const ret = arg0.versions;
|
|
8949
9025
|
return ret;
|
|
8950
9026
|
};
|
|
8951
9027
|
|
|
8952
|
-
export function
|
|
9028
|
+
export function __wbg_view_d36d28552eb70661(arg0) {
|
|
8953
9029
|
const ret = arg0.view;
|
|
8954
9030
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
8955
9031
|
};
|
|
8956
9032
|
|
|
8957
|
-
export function
|
|
9033
|
+
export function __wbg_warn_07ef1f61c52799fb(arg0) {
|
|
8958
9034
|
console.warn(arg0);
|
|
8959
9035
|
};
|
|
8960
9036
|
|
|
8961
|
-
export function
|
|
8962
|
-
const
|
|
8963
|
-
|
|
9037
|
+
export function __wbg_wbindgenbigintgetasi64_7637cb1a7fb9a81e(arg0, arg1) {
|
|
9038
|
+
const v = arg1;
|
|
9039
|
+
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
9040
|
+
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
9041
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
8964
9042
|
};
|
|
8965
9043
|
|
|
8966
|
-
export function
|
|
8967
|
-
const
|
|
8968
|
-
|
|
9044
|
+
export function __wbg_wbindgenbooleanget_59f830b1a70d2530(arg0) {
|
|
9045
|
+
const v = arg0;
|
|
9046
|
+
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
9047
|
+
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
8969
9048
|
};
|
|
8970
9049
|
|
|
8971
|
-
export function
|
|
8972
|
-
const
|
|
9050
|
+
export function __wbg_wbindgencbdrop_a85ed476c6a370b9(arg0) {
|
|
9051
|
+
const obj = arg0.original;
|
|
9052
|
+
if (obj.cnt-- == 1) {
|
|
9053
|
+
obj.a = 0;
|
|
9054
|
+
return true;
|
|
9055
|
+
}
|
|
9056
|
+
const ret = false;
|
|
8973
9057
|
return ret;
|
|
8974
9058
|
};
|
|
8975
9059
|
|
|
8976
|
-
export function
|
|
8977
|
-
|
|
9060
|
+
export function __wbg_wbindgendebugstring_bb652b1bc2061b6d(arg0, arg1) {
|
|
9061
|
+
const ret = debugString(arg1);
|
|
9062
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
9063
|
+
const len1 = WASM_VECTOR_LEN;
|
|
9064
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
9065
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
8978
9066
|
};
|
|
8979
9067
|
|
|
8980
|
-
export function
|
|
8981
|
-
const ret =
|
|
9068
|
+
export function __wbg_wbindgenin_192b210aa1c401e9(arg0, arg1) {
|
|
9069
|
+
const ret = arg0 in arg1;
|
|
8982
9070
|
return ret;
|
|
8983
9071
|
};
|
|
8984
9072
|
|
|
8985
|
-
export function
|
|
8986
|
-
const ret = arg0;
|
|
9073
|
+
export function __wbg_wbindgenisbigint_7d76a1ca6454e439(arg0) {
|
|
9074
|
+
const ret = typeof(arg0) === 'bigint';
|
|
8987
9075
|
return ret;
|
|
8988
9076
|
};
|
|
8989
9077
|
|
|
8990
|
-
export function
|
|
8991
|
-
const ret =
|
|
9078
|
+
export function __wbg_wbindgenisfalsy_a15841cca6156044(arg0) {
|
|
9079
|
+
const ret = !arg0;
|
|
8992
9080
|
return ret;
|
|
8993
9081
|
};
|
|
8994
9082
|
|
|
8995
|
-
export function
|
|
8996
|
-
const
|
|
8997
|
-
|
|
8998
|
-
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
8999
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
9083
|
+
export function __wbg_wbindgenisfunction_ea72b9d66a0e1705(arg0) {
|
|
9084
|
+
const ret = typeof(arg0) === 'function';
|
|
9085
|
+
return ret;
|
|
9000
9086
|
};
|
|
9001
9087
|
|
|
9002
|
-
export function
|
|
9003
|
-
const
|
|
9004
|
-
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
|
9088
|
+
export function __wbg_wbindgenisnull_e1388bbe88158c3f(arg0) {
|
|
9089
|
+
const ret = arg0 === null;
|
|
9005
9090
|
return ret;
|
|
9006
9091
|
};
|
|
9007
9092
|
|
|
9008
|
-
export function
|
|
9009
|
-
const
|
|
9010
|
-
|
|
9011
|
-
obj.a = 0;
|
|
9012
|
-
return true;
|
|
9013
|
-
}
|
|
9014
|
-
const ret = false;
|
|
9093
|
+
export function __wbg_wbindgenisobject_dfe064a121d87553(arg0) {
|
|
9094
|
+
const val = arg0;
|
|
9095
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
9015
9096
|
return ret;
|
|
9016
9097
|
};
|
|
9017
9098
|
|
|
9018
|
-
export function
|
|
9019
|
-
const ret =
|
|
9099
|
+
export function __wbg_wbindgenisstring_4b74e4111ba029e6(arg0) {
|
|
9100
|
+
const ret = typeof(arg0) === 'string';
|
|
9020
9101
|
return ret;
|
|
9021
9102
|
};
|
|
9022
9103
|
|
|
9023
|
-
export function
|
|
9024
|
-
const ret =
|
|
9104
|
+
export function __wbg_wbindgenisundefined_71f08a6ade4354e7(arg0) {
|
|
9105
|
+
const ret = arg0 === undefined;
|
|
9025
9106
|
return ret;
|
|
9026
9107
|
};
|
|
9027
9108
|
|
|
9028
|
-
export function
|
|
9029
|
-
const ret =
|
|
9109
|
+
export function __wbg_wbindgenjsvaleq_f27272c0a890df7f(arg0, arg1) {
|
|
9110
|
+
const ret = arg0 === arg1;
|
|
9030
9111
|
return ret;
|
|
9031
9112
|
};
|
|
9032
9113
|
|
|
9033
|
-
export function
|
|
9034
|
-
const ret =
|
|
9114
|
+
export function __wbg_wbindgenjsvallooseeq_9dd7bb4b95ac195c(arg0, arg1) {
|
|
9115
|
+
const ret = arg0 == arg1;
|
|
9035
9116
|
return ret;
|
|
9036
9117
|
};
|
|
9037
9118
|
|
|
9038
|
-
export function
|
|
9039
|
-
const
|
|
9040
|
-
|
|
9119
|
+
export function __wbg_wbindgennumberget_d855f947247a3fbc(arg0, arg1) {
|
|
9120
|
+
const obj = arg1;
|
|
9121
|
+
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
9122
|
+
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
9123
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
9041
9124
|
};
|
|
9042
9125
|
|
|
9043
|
-
export function
|
|
9044
|
-
const
|
|
9045
|
-
|
|
9126
|
+
export function __wbg_wbindgenstringget_43fe05afe34b0cb1(arg0, arg1) {
|
|
9127
|
+
const obj = arg1;
|
|
9128
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
9129
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
9130
|
+
var len1 = WASM_VECTOR_LEN;
|
|
9131
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
9132
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
9046
9133
|
};
|
|
9047
9134
|
|
|
9048
|
-
export function
|
|
9049
|
-
|
|
9050
|
-
return ret;
|
|
9135
|
+
export function __wbg_wbindgenthrow_4c11a24fca429ccf(arg0, arg1) {
|
|
9136
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
9051
9137
|
};
|
|
9052
9138
|
|
|
9053
|
-
export function
|
|
9054
|
-
const ret =
|
|
9139
|
+
export function __wbg_wbindgentypeof_7219206940ac0898(arg0) {
|
|
9140
|
+
const ret = typeof arg0;
|
|
9055
9141
|
return ret;
|
|
9056
9142
|
};
|
|
9057
9143
|
|
|
9058
|
-
export function
|
|
9059
|
-
const ret =
|
|
9144
|
+
export function __wbg_writable_4f9d2cae62a7c0cb(arg0) {
|
|
9145
|
+
const ret = arg0.writable;
|
|
9060
9146
|
return ret;
|
|
9061
9147
|
};
|
|
9062
9148
|
|
|
9063
|
-
export function
|
|
9064
|
-
const ret =
|
|
9065
|
-
|
|
9066
|
-
const len1 = WASM_VECTOR_LEN;
|
|
9067
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
9068
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
9149
|
+
export function __wbg_write_39d7c51f917777a5(arg0, arg1) {
|
|
9150
|
+
const ret = arg0.write(arg1);
|
|
9151
|
+
return ret;
|
|
9069
9152
|
};
|
|
9070
9153
|
|
|
9071
|
-
export function
|
|
9072
|
-
|
|
9154
|
+
export function __wbindgen_cast_0d71f2ff3d5df848(arg0, arg1) {
|
|
9155
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 2886, function: Function { arguments: [], shim_idx: 2887, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
9156
|
+
const ret = makeMutClosure(arg0, arg1, 2886, __wbg_adapter_13);
|
|
9073
9157
|
return ret;
|
|
9074
9158
|
};
|
|
9075
9159
|
|
|
9076
|
-
export function
|
|
9077
|
-
|
|
9160
|
+
export function __wbindgen_cast_13f728beb3308701(arg0, arg1) {
|
|
9161
|
+
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
9162
|
+
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
9163
|
+
// Cast intrinsic for `Vector(NamedExternref("Coin")) -> Externref`.
|
|
9164
|
+
const ret = v0;
|
|
9078
9165
|
return ret;
|
|
9079
9166
|
};
|
|
9080
9167
|
|
|
9081
|
-
export function
|
|
9082
|
-
|
|
9083
|
-
const
|
|
9084
|
-
|
|
9085
|
-
table.set(offset + 0, undefined);
|
|
9086
|
-
table.set(offset + 1, null);
|
|
9087
|
-
table.set(offset + 2, true);
|
|
9088
|
-
table.set(offset + 3, false);
|
|
9089
|
-
;
|
|
9168
|
+
export function __wbindgen_cast_1549fdb98e982686(arg0, arg1) {
|
|
9169
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 669, function: Function { arguments: [Externref], shim_idx: 675, ret: NamedExternref("Promise<any>"), inner_ret: Some(NamedExternref("Promise<any>")) }, mutable: true }) -> Externref`.
|
|
9170
|
+
const ret = makeMutClosure(arg0, arg1, 669, __wbg_adapter_38);
|
|
9171
|
+
return ret;
|
|
9090
9172
|
};
|
|
9091
9173
|
|
|
9092
|
-
export function
|
|
9093
|
-
|
|
9174
|
+
export function __wbindgen_cast_2241b6af4c4b2941(arg0, arg1) {
|
|
9175
|
+
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
9176
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
9094
9177
|
return ret;
|
|
9095
9178
|
};
|
|
9096
9179
|
|
|
9097
|
-
export function
|
|
9098
|
-
|
|
9180
|
+
export function __wbindgen_cast_2d3f4f6921336305(arg0, arg1) {
|
|
9181
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 1784, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 1785, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
9182
|
+
const ret = makeMutClosure(arg0, arg1, 1784, __wbg_adapter_8);
|
|
9099
9183
|
return ret;
|
|
9100
9184
|
};
|
|
9101
9185
|
|
|
9102
|
-
export function
|
|
9103
|
-
|
|
9186
|
+
export function __wbindgen_cast_439df55617f52063(arg0, arg1) {
|
|
9187
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 669, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 673, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`.
|
|
9188
|
+
const ret = makeClosure(arg0, arg1, 669, __wbg_adapter_47);
|
|
9104
9189
|
return ret;
|
|
9105
9190
|
};
|
|
9106
9191
|
|
|
9107
|
-
export function
|
|
9108
|
-
|
|
9192
|
+
export function __wbindgen_cast_4625c577ab2ec9ee(arg0) {
|
|
9193
|
+
// Cast intrinsic for `U64 -> Externref`.
|
|
9194
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
9109
9195
|
return ret;
|
|
9110
9196
|
};
|
|
9111
9197
|
|
|
9112
|
-
export function
|
|
9113
|
-
|
|
9198
|
+
export function __wbindgen_cast_5ce2b55b30716d02(arg0, arg1) {
|
|
9199
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 2976, function: Function { arguments: [NamedExternref("Event")], shim_idx: 2977, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
9200
|
+
const ret = makeMutClosure(arg0, arg1, 2976, __wbg_adapter_16);
|
|
9114
9201
|
return ret;
|
|
9115
9202
|
};
|
|
9116
9203
|
|
|
9117
|
-
export function
|
|
9118
|
-
|
|
9119
|
-
const ret =
|
|
9204
|
+
export function __wbindgen_cast_6fcc2e550fb2fc08(arg0, arg1) {
|
|
9205
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 2874, function: Function { arguments: [Externref], shim_idx: 2875, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
9206
|
+
const ret = makeMutClosure(arg0, arg1, 2874, __wbg_adapter_33);
|
|
9120
9207
|
return ret;
|
|
9121
9208
|
};
|
|
9122
9209
|
|
|
9123
|
-
export function
|
|
9124
|
-
|
|
9210
|
+
export function __wbindgen_cast_76a0f6231a633ad2(arg0, arg1) {
|
|
9211
|
+
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
9212
|
+
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
9213
|
+
// Cast intrinsic for `Vector(NamedExternref("BaseAccount")) -> Externref`.
|
|
9214
|
+
const ret = v0;
|
|
9125
9215
|
return ret;
|
|
9126
9216
|
};
|
|
9127
9217
|
|
|
9128
|
-
export function
|
|
9129
|
-
|
|
9218
|
+
export function __wbindgen_cast_84b488785ba1336b(arg0, arg1) {
|
|
9219
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 1784, function: Function { arguments: [NamedExternref("Event")], shim_idx: 1785, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
9220
|
+
const ret = makeMutClosure(arg0, arg1, 1784, __wbg_adapter_8);
|
|
9130
9221
|
return ret;
|
|
9131
9222
|
};
|
|
9132
9223
|
|
|
9133
|
-
export function
|
|
9134
|
-
|
|
9224
|
+
export function __wbindgen_cast_999e199e4c24168d(arg0, arg1) {
|
|
9225
|
+
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
9226
|
+
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
9227
|
+
// Cast intrinsic for `Vector(NamedExternref("Blob")) -> Externref`.
|
|
9228
|
+
const ret = v0;
|
|
9135
9229
|
return ret;
|
|
9136
9230
|
};
|
|
9137
9231
|
|
|
9138
|
-
export function
|
|
9139
|
-
|
|
9232
|
+
export function __wbindgen_cast_9ae0607507abb057(arg0) {
|
|
9233
|
+
// Cast intrinsic for `I64 -> Externref`.
|
|
9234
|
+
const ret = arg0;
|
|
9140
9235
|
return ret;
|
|
9141
9236
|
};
|
|
9142
9237
|
|
|
9143
|
-
export function
|
|
9144
|
-
|
|
9238
|
+
export function __wbindgen_cast_b48b6bd0973f59e2(arg0, arg1) {
|
|
9239
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 1784, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 1785, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
9240
|
+
const ret = makeMutClosure(arg0, arg1, 1784, __wbg_adapter_8);
|
|
9145
9241
|
return ret;
|
|
9146
9242
|
};
|
|
9147
9243
|
|
|
9148
|
-
export function
|
|
9149
|
-
|
|
9150
|
-
const ret =
|
|
9151
|
-
|
|
9152
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
9244
|
+
export function __wbindgen_cast_b56f0f95b6de8085(arg0, arg1) {
|
|
9245
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 2337, function: Function { arguments: [], shim_idx: 2338, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
9246
|
+
const ret = makeMutClosure(arg0, arg1, 2337, __wbg_adapter_19);
|
|
9247
|
+
return ret;
|
|
9153
9248
|
};
|
|
9154
9249
|
|
|
9155
|
-
export function
|
|
9156
|
-
|
|
9250
|
+
export function __wbindgen_cast_cb9088102bce6b30(arg0, arg1) {
|
|
9251
|
+
// Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
|
|
9252
|
+
const ret = getArrayU8FromWasm0(arg0, arg1);
|
|
9157
9253
|
return ret;
|
|
9158
9254
|
};
|
|
9159
9255
|
|
|
9160
|
-
export function
|
|
9161
|
-
|
|
9162
|
-
const ret =
|
|
9163
|
-
|
|
9164
|
-
var len1 = WASM_VECTOR_LEN;
|
|
9165
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
9166
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
9256
|
+
export function __wbindgen_cast_cdc847d25519f930(arg0, arg1) {
|
|
9257
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 669, function: Function { arguments: [NamedExternref("IDBVersionChangeEvent")], shim_idx: 670, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
9258
|
+
const ret = makeMutClosure(arg0, arg1, 669, __wbg_adapter_28);
|
|
9259
|
+
return ret;
|
|
9167
9260
|
};
|
|
9168
9261
|
|
|
9169
|
-
export function
|
|
9170
|
-
|
|
9262
|
+
export function __wbindgen_cast_d6cd19b81560fd6e(arg0) {
|
|
9263
|
+
// Cast intrinsic for `F64 -> Externref`.
|
|
9264
|
+
const ret = arg0;
|
|
9171
9265
|
return ret;
|
|
9172
9266
|
};
|
|
9173
9267
|
|
|
9174
|
-
export function
|
|
9175
|
-
|
|
9268
|
+
export function __wbindgen_cast_da0d185114cf54d4(arg0, arg1) {
|
|
9269
|
+
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
9270
|
+
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
9271
|
+
// Cast intrinsic for `Vector(NamedExternref("ExtendedHeader")) -> Externref`.
|
|
9272
|
+
const ret = v0;
|
|
9273
|
+
return ret;
|
|
9176
9274
|
};
|
|
9177
9275
|
|
|
9178
|
-
export function
|
|
9179
|
-
const
|
|
9180
|
-
|
|
9276
|
+
export function __wbindgen_init_externref_table() {
|
|
9277
|
+
const table = wasm.__wbindgen_export_4;
|
|
9278
|
+
const offset = table.grow(4);
|
|
9279
|
+
table.set(0, undefined);
|
|
9280
|
+
table.set(offset + 0, undefined);
|
|
9281
|
+
table.set(offset + 1, null);
|
|
9282
|
+
table.set(offset + 2, true);
|
|
9283
|
+
table.set(offset + 3, false);
|
|
9284
|
+
;
|
|
9181
9285
|
};
|
|
9182
9286
|
|