lumina-node-wasm 0.8.0 → 0.8.2
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/README.md +12 -5
- package/lumina_node_wasm.d.ts +85 -30
- package/lumina_node_wasm_bg.js +189 -107
- package/lumina_node_wasm_bg.wasm +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -3,11 +3,15 @@
|
|
|
3
3
|
A compatibility layer for the [`Lumina`](https://github.com/eigerco/lumina) node to
|
|
4
4
|
work within a browser environment and be operable with javascript.
|
|
5
5
|
|
|
6
|
+
# Changelog
|
|
7
|
+
|
|
8
|
+
You can find about the latest changes [here](https://github.com/eigerco/lumina/blob/main/node-wasm/CHANGELOG.md).
|
|
9
|
+
|
|
6
10
|
# Example
|
|
7
11
|
Starting lumina inside a dedicated worker
|
|
8
12
|
|
|
9
13
|
```javascript
|
|
10
|
-
import { spawnNode,
|
|
14
|
+
import { spawnNode, Network, NodeConfig } from "lumina-node";
|
|
11
15
|
|
|
12
16
|
const node = await spawnNode();
|
|
13
17
|
const mainnetConfig = NodeConfig.default(Network.Mainnet);
|
|
@@ -20,12 +24,12 @@ await node.requestHeadHeader();
|
|
|
20
24
|
|
|
21
25
|
## Manual setup
|
|
22
26
|
|
|
23
|
-
|
|
27
|
+
`spawnNode` sets up a `DedicatedWorker` instance and runs `NodeWorker` there. If you want to set things up manually
|
|
28
|
+
you need to connect client and worker using objects that have `MessagePort` interface.
|
|
24
29
|
|
|
25
30
|
```javascript
|
|
26
|
-
import
|
|
31
|
+
import { Network, NodeClient, NodeConfig, NodeWorker } from "lumina-node";
|
|
27
32
|
|
|
28
|
-
await init();
|
|
29
33
|
const config = NodeConfig.default(Network.Mainnet);
|
|
30
34
|
|
|
31
35
|
// client and worker accept any object with MessagePort like interface e.g. Worker
|
|
@@ -43,5 +47,8 @@ await client.requestHeadHeader();
|
|
|
43
47
|
|
|
44
48
|
## Rust API
|
|
45
49
|
|
|
46
|
-
For comprehensive and fully typed interface documentation, see [lumina-node](https://docs.rs/lumina-node/latest/lumina_node/)
|
|
50
|
+
For comprehensive and fully typed interface documentation, see [lumina-node](https://docs.rs/lumina-node/latest/lumina_node/)
|
|
51
|
+
and [celestia-types](https://docs.rs/celestia-types/latest/celestia_types/) documentation on docs.rs.
|
|
52
|
+
You can see there the exact structure of more complex types, such as [`ExtendedHeader`](https://docs.rs/celestia-types/latest/celestia_types/struct.ExtendedHeader.html).
|
|
53
|
+
JavaScript API's goal is to provide similar interface to Rust when possible, e.g. `NodeClient` mirrors [`Node`](https://docs.rs/lumina-node/latest/lumina_node/node/struct.Node.html).
|
|
47
54
|
|
package/lumina_node_wasm.d.ts
CHANGED
|
@@ -53,6 +53,16 @@ export enum SamplingStatus {
|
|
|
53
53
|
*/
|
|
54
54
|
type ReadableStreamType = "bytes";
|
|
55
55
|
|
|
56
|
+
/**
|
|
57
|
+
* Coin
|
|
58
|
+
*/
|
|
59
|
+
export interface Coin {
|
|
60
|
+
denom: string,
|
|
61
|
+
amount: bigint
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
56
66
|
/**
|
|
57
67
|
* Public key
|
|
58
68
|
*/
|
|
@@ -84,34 +94,6 @@ type ReadableStreamType = "bytes";
|
|
|
84
94
|
|
|
85
95
|
|
|
86
96
|
|
|
87
|
-
/**
|
|
88
|
-
* Coin
|
|
89
|
-
*/
|
|
90
|
-
export interface Coin {
|
|
91
|
-
denom: string,
|
|
92
|
-
amount: bigint
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
/**
|
|
98
|
-
* Transaction info
|
|
99
|
-
*/
|
|
100
|
-
export interface TxInfo {
|
|
101
|
-
hash: string;
|
|
102
|
-
height: bigint;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
* Transaction config.
|
|
107
|
-
*/
|
|
108
|
-
export interface TxConfig {
|
|
109
|
-
gasLimit?: bigint; // utia
|
|
110
|
-
gasPrice?: number;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
97
|
/**
|
|
116
98
|
* A payload to be signed
|
|
117
99
|
*/
|
|
@@ -138,6 +120,39 @@ export interface ProtoAny {
|
|
|
138
120
|
}
|
|
139
121
|
|
|
140
122
|
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* Transaction info
|
|
126
|
+
*/
|
|
127
|
+
export interface TxInfo {
|
|
128
|
+
hash: string;
|
|
129
|
+
height: bigint;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Transaction config.
|
|
134
|
+
*/
|
|
135
|
+
export interface TxConfig {
|
|
136
|
+
gasLimit?: bigint; // utia
|
|
137
|
+
gasPrice?: number;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Address of an account.
|
|
143
|
+
*/
|
|
144
|
+
export class AccAddress {
|
|
145
|
+
private constructor();
|
|
146
|
+
/**
|
|
147
|
+
** Return copy of self without private attributes.
|
|
148
|
+
*/
|
|
149
|
+
toJSON(): Object;
|
|
150
|
+
/**
|
|
151
|
+
* Return stringified version of self.
|
|
152
|
+
*/
|
|
153
|
+
toString(): string;
|
|
154
|
+
free(): void;
|
|
155
|
+
}
|
|
141
156
|
/**
|
|
142
157
|
* Version of the App
|
|
143
158
|
*/
|
|
@@ -192,8 +207,6 @@ export class Blob {
|
|
|
192
207
|
data: Uint8Array;
|
|
193
208
|
/**
|
|
194
209
|
* Version indicating the format in which [`Share`]s should be created from this [`Blob`].
|
|
195
|
-
*
|
|
196
|
-
* [`Share`]: crate::share::Share
|
|
197
210
|
*/
|
|
198
211
|
share_version: number;
|
|
199
212
|
/**
|
|
@@ -208,6 +221,18 @@ export class Blob {
|
|
|
208
221
|
* Index of the blob's first share in the EDS. Only set for blobs retrieved from chain.
|
|
209
222
|
*/
|
|
210
223
|
set index(value: bigint | null | undefined);
|
|
224
|
+
/**
|
|
225
|
+
* A signer of the blob, i.e. address of the account which submitted the blob.
|
|
226
|
+
*
|
|
227
|
+
* Must be present in `share_version 1` and absent otherwise.
|
|
228
|
+
*/
|
|
229
|
+
get signer(): AccAddress | undefined;
|
|
230
|
+
/**
|
|
231
|
+
* A signer of the blob, i.e. address of the account which submitted the blob.
|
|
232
|
+
*
|
|
233
|
+
* Must be present in `share_version 1` and absent otherwise.
|
|
234
|
+
*/
|
|
235
|
+
set signer(value: AccAddress | null | undefined);
|
|
211
236
|
}
|
|
212
237
|
/**
|
|
213
238
|
* A range of blocks between `start` and `end` height, inclusive
|
|
@@ -326,6 +351,21 @@ export class ConnectionCountersSnapshot {
|
|
|
326
351
|
*/
|
|
327
352
|
num_established_outgoing: number;
|
|
328
353
|
}
|
|
354
|
+
/**
|
|
355
|
+
* Address of a consensus node.
|
|
356
|
+
*/
|
|
357
|
+
export class ConsAddress {
|
|
358
|
+
private constructor();
|
|
359
|
+
/**
|
|
360
|
+
** Return copy of self without private attributes.
|
|
361
|
+
*/
|
|
362
|
+
toJSON(): Object;
|
|
363
|
+
/**
|
|
364
|
+
* Return stringified version of self.
|
|
365
|
+
*/
|
|
366
|
+
toString(): string;
|
|
367
|
+
free(): void;
|
|
368
|
+
}
|
|
329
369
|
/**
|
|
330
370
|
* Header with commitments of the data availability.
|
|
331
371
|
*
|
|
@@ -1101,3 +1141,18 @@ export class TxClient {
|
|
|
1101
1141
|
*/
|
|
1102
1142
|
readonly appVersion: AppVersion;
|
|
1103
1143
|
}
|
|
1144
|
+
/**
|
|
1145
|
+
* Address of a validator.
|
|
1146
|
+
*/
|
|
1147
|
+
export class ValAddress {
|
|
1148
|
+
private constructor();
|
|
1149
|
+
/**
|
|
1150
|
+
** Return copy of self without private attributes.
|
|
1151
|
+
*/
|
|
1152
|
+
toJSON(): Object;
|
|
1153
|
+
/**
|
|
1154
|
+
* Return stringified version of self.
|
|
1155
|
+
*/
|
|
1156
|
+
toString(): string;
|
|
1157
|
+
free(): void;
|
|
1158
|
+
}
|
package/lumina_node_wasm_bg.js
CHANGED
|
@@ -128,23 +128,20 @@ const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
|
128
128
|
wasm.__wbindgen_export_6.get(state.dtor)(state.a, state.b)
|
|
129
129
|
});
|
|
130
130
|
|
|
131
|
-
function
|
|
131
|
+
function makeClosure(arg0, arg1, dtor, f) {
|
|
132
132
|
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
|
133
133
|
const real = (...args) => {
|
|
134
134
|
// First up with a closure we increment the internal reference
|
|
135
135
|
// count. This ensures that the Rust closure environment won't
|
|
136
136
|
// be deallocated while we're invoking it.
|
|
137
137
|
state.cnt++;
|
|
138
|
-
const a = state.a;
|
|
139
|
-
state.a = 0;
|
|
140
138
|
try {
|
|
141
|
-
return f(a, state.b, ...args);
|
|
139
|
+
return f(state.a, state.b, ...args);
|
|
142
140
|
} finally {
|
|
143
141
|
if (--state.cnt === 0) {
|
|
144
|
-
wasm.__wbindgen_export_6.get(state.dtor)(a, state.b);
|
|
142
|
+
wasm.__wbindgen_export_6.get(state.dtor)(state.a, state.b);
|
|
143
|
+
state.a = 0;
|
|
145
144
|
CLOSURE_DTORS.unregister(state);
|
|
146
|
-
} else {
|
|
147
|
-
state.a = a;
|
|
148
145
|
}
|
|
149
146
|
}
|
|
150
147
|
};
|
|
@@ -153,20 +150,23 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
153
150
|
return real;
|
|
154
151
|
}
|
|
155
152
|
|
|
156
|
-
function
|
|
153
|
+
function makeMutClosure(arg0, arg1, dtor, f) {
|
|
157
154
|
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
|
158
155
|
const real = (...args) => {
|
|
159
156
|
// First up with a closure we increment the internal reference
|
|
160
157
|
// count. This ensures that the Rust closure environment won't
|
|
161
158
|
// be deallocated while we're invoking it.
|
|
162
159
|
state.cnt++;
|
|
160
|
+
const a = state.a;
|
|
161
|
+
state.a = 0;
|
|
163
162
|
try {
|
|
164
|
-
return f(
|
|
163
|
+
return f(a, state.b, ...args);
|
|
165
164
|
} finally {
|
|
166
165
|
if (--state.cnt === 0) {
|
|
167
|
-
wasm.__wbindgen_export_6.get(state.dtor)(
|
|
168
|
-
state.a = 0;
|
|
166
|
+
wasm.__wbindgen_export_6.get(state.dtor)(a, state.b);
|
|
169
167
|
CLOSURE_DTORS.unregister(state);
|
|
168
|
+
} else {
|
|
169
|
+
state.a = a;
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
172
|
};
|
|
@@ -239,6 +239,12 @@ function debugString(val) {
|
|
|
239
239
|
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
240
240
|
return className;
|
|
241
241
|
}
|
|
242
|
+
/**
|
|
243
|
+
* Set up a logging layer that direct logs to the browser's console.
|
|
244
|
+
*/
|
|
245
|
+
export function setup_logging() {
|
|
246
|
+
wasm.setup_logging();
|
|
247
|
+
}
|
|
242
248
|
|
|
243
249
|
function getArrayJsValueFromWasm0(ptr, len) {
|
|
244
250
|
ptr = ptr >>> 0;
|
|
@@ -266,12 +272,6 @@ function _assertClass(instance, klass) {
|
|
|
266
272
|
throw new Error(`expected instance of ${klass.name}`);
|
|
267
273
|
}
|
|
268
274
|
}
|
|
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
275
|
|
|
276
276
|
function takeFromExternrefTable0(idx) {
|
|
277
277
|
const value = wasm.__wbindgen_export_4.get(idx);
|
|
@@ -290,48 +290,36 @@ export function protoEncodeSignDoc(sign_doc) {
|
|
|
290
290
|
return v1;
|
|
291
291
|
}
|
|
292
292
|
|
|
293
|
-
function __wbg_adapter_64(arg0, arg1) {
|
|
294
|
-
wasm.
|
|
293
|
+
function __wbg_adapter_64(arg0, arg1, arg2) {
|
|
294
|
+
wasm.closure910_externref_shim(arg0, arg1, arg2);
|
|
295
295
|
}
|
|
296
296
|
|
|
297
297
|
function __wbg_adapter_67(arg0, arg1, arg2) {
|
|
298
|
-
wasm.
|
|
298
|
+
wasm.closure914_externref_shim(arg0, arg1, arg2);
|
|
299
299
|
}
|
|
300
300
|
|
|
301
|
-
function __wbg_adapter_70(arg0, arg1
|
|
302
|
-
wasm.
|
|
301
|
+
function __wbg_adapter_70(arg0, arg1) {
|
|
302
|
+
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h4743a7cc2d205e02(arg0, arg1);
|
|
303
303
|
}
|
|
304
304
|
|
|
305
|
-
function
|
|
306
|
-
wasm.
|
|
305
|
+
function __wbg_adapter_73(arg0, arg1, arg2) {
|
|
306
|
+
wasm.closure1631_externref_shim(arg0, arg1, arg2);
|
|
307
307
|
}
|
|
308
308
|
|
|
309
309
|
function __wbg_adapter_80(arg0, arg1, arg2) {
|
|
310
|
-
wasm.
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
function __wbg_adapter_83(arg0, arg1, arg2) {
|
|
314
|
-
wasm.closure1650_externref_shim(arg0, arg1, arg2);
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
function __wbg_adapter_90(arg0, arg1, arg2) {
|
|
318
|
-
wasm.closure2288_externref_shim(arg0, arg1, arg2);
|
|
310
|
+
wasm.closure2137_externref_shim(arg0, arg1, arg2);
|
|
319
311
|
}
|
|
320
312
|
|
|
321
|
-
function
|
|
322
|
-
wasm.
|
|
313
|
+
function __wbg_adapter_83(arg0, arg1) {
|
|
314
|
+
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h8135cbb9e0286213(arg0, arg1);
|
|
323
315
|
}
|
|
324
316
|
|
|
325
|
-
function
|
|
326
|
-
wasm.
|
|
317
|
+
function __wbg_adapter_86(arg0, arg1, arg2) {
|
|
318
|
+
wasm.closure2824_externref_shim(arg0, arg1, arg2);
|
|
327
319
|
}
|
|
328
320
|
|
|
329
|
-
function
|
|
330
|
-
wasm.
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
function __wbg_adapter_681(arg0, arg1, arg2, arg3) {
|
|
334
|
-
wasm.closure2971_externref_shim(arg0, arg1, arg2, arg3);
|
|
321
|
+
function __wbg_adapter_682(arg0, arg1, arg2, arg3) {
|
|
322
|
+
wasm.closure2842_externref_shim(arg0, arg1, arg2, arg3);
|
|
335
323
|
}
|
|
336
324
|
|
|
337
325
|
/**
|
|
@@ -393,6 +381,44 @@ const __wbindgen_enum_RequestMode = ["same-origin", "no-cors", "cors", "navigate
|
|
|
393
381
|
|
|
394
382
|
const __wbindgen_enum_RequestRedirect = ["follow", "error", "manual"];
|
|
395
383
|
|
|
384
|
+
const AccAddressFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
385
|
+
? { register: () => {}, unregister: () => {} }
|
|
386
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_accaddress_free(ptr >>> 0, 1));
|
|
387
|
+
/**
|
|
388
|
+
* Address of an account.
|
|
389
|
+
*/
|
|
390
|
+
export class AccAddress {
|
|
391
|
+
|
|
392
|
+
static __wrap(ptr) {
|
|
393
|
+
ptr = ptr >>> 0;
|
|
394
|
+
const obj = Object.create(AccAddress.prototype);
|
|
395
|
+
obj.__wbg_ptr = ptr;
|
|
396
|
+
AccAddressFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
397
|
+
return obj;
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
toJSON() {
|
|
401
|
+
return {
|
|
402
|
+
};
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
toString() {
|
|
406
|
+
return JSON.stringify(this);
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
__destroy_into_raw() {
|
|
410
|
+
const ptr = this.__wbg_ptr;
|
|
411
|
+
this.__wbg_ptr = 0;
|
|
412
|
+
AccAddressFinalization.unregister(this);
|
|
413
|
+
return ptr;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
free() {
|
|
417
|
+
const ptr = this.__destroy_into_raw();
|
|
418
|
+
wasm.__wbg_accaddress_free(ptr, 0);
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
|
|
396
422
|
const AppVersionFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
397
423
|
? { register: () => {}, unregister: () => {} }
|
|
398
424
|
: new FinalizationRegistry(ptr => wasm.__wbg_appversion_free(ptr >>> 0, 1));
|
|
@@ -484,6 +510,7 @@ export class Blob {
|
|
|
484
510
|
share_version: this.share_version,
|
|
485
511
|
commitment: this.commitment,
|
|
486
512
|
index: this.index,
|
|
513
|
+
signer: this.signer,
|
|
487
514
|
};
|
|
488
515
|
}
|
|
489
516
|
|
|
@@ -540,8 +567,6 @@ export class Blob {
|
|
|
540
567
|
}
|
|
541
568
|
/**
|
|
542
569
|
* Version indicating the format in which [`Share`]s should be created from this [`Blob`].
|
|
543
|
-
*
|
|
544
|
-
* [`Share`]: crate::share::Share
|
|
545
570
|
* @returns {number}
|
|
546
571
|
*/
|
|
547
572
|
get share_version() {
|
|
@@ -550,8 +575,6 @@ export class Blob {
|
|
|
550
575
|
}
|
|
551
576
|
/**
|
|
552
577
|
* Version indicating the format in which [`Share`]s should be created from this [`Blob`].
|
|
553
|
-
*
|
|
554
|
-
* [`Share`]: crate::share::Share
|
|
555
578
|
* @param {number} arg0
|
|
556
579
|
*/
|
|
557
580
|
set share_version(arg0) {
|
|
@@ -589,6 +612,30 @@ export class Blob {
|
|
|
589
612
|
set index(arg0) {
|
|
590
613
|
wasm.__wbg_set_blob_index(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
|
|
591
614
|
}
|
|
615
|
+
/**
|
|
616
|
+
* A signer of the blob, i.e. address of the account which submitted the blob.
|
|
617
|
+
*
|
|
618
|
+
* Must be present in `share_version 1` and absent otherwise.
|
|
619
|
+
* @returns {AccAddress | undefined}
|
|
620
|
+
*/
|
|
621
|
+
get signer() {
|
|
622
|
+
const ret = wasm.__wbg_get_blob_signer(this.__wbg_ptr);
|
|
623
|
+
return ret === 0 ? undefined : AccAddress.__wrap(ret);
|
|
624
|
+
}
|
|
625
|
+
/**
|
|
626
|
+
* A signer of the blob, i.e. address of the account which submitted the blob.
|
|
627
|
+
*
|
|
628
|
+
* Must be present in `share_version 1` and absent otherwise.
|
|
629
|
+
* @param {AccAddress | null} [arg0]
|
|
630
|
+
*/
|
|
631
|
+
set signer(arg0) {
|
|
632
|
+
let ptr0 = 0;
|
|
633
|
+
if (!isLikeNone(arg0)) {
|
|
634
|
+
_assertClass(arg0, AccAddress);
|
|
635
|
+
ptr0 = arg0.__destroy_into_raw();
|
|
636
|
+
}
|
|
637
|
+
wasm.__wbg_set_blob_signer(this.__wbg_ptr, ptr0);
|
|
638
|
+
}
|
|
592
639
|
/**
|
|
593
640
|
* Create a new blob with the given data within the [`Namespace`].
|
|
594
641
|
* @param {Namespace} namespace
|
|
@@ -926,6 +973,36 @@ export class ConnectionCountersSnapshot {
|
|
|
926
973
|
}
|
|
927
974
|
}
|
|
928
975
|
|
|
976
|
+
const ConsAddressFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
977
|
+
? { register: () => {}, unregister: () => {} }
|
|
978
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_consaddress_free(ptr >>> 0, 1));
|
|
979
|
+
/**
|
|
980
|
+
* Address of a consensus node.
|
|
981
|
+
*/
|
|
982
|
+
export class ConsAddress {
|
|
983
|
+
|
|
984
|
+
toJSON() {
|
|
985
|
+
return {
|
|
986
|
+
};
|
|
987
|
+
}
|
|
988
|
+
|
|
989
|
+
toString() {
|
|
990
|
+
return JSON.stringify(this);
|
|
991
|
+
}
|
|
992
|
+
|
|
993
|
+
__destroy_into_raw() {
|
|
994
|
+
const ptr = this.__wbg_ptr;
|
|
995
|
+
this.__wbg_ptr = 0;
|
|
996
|
+
ConsAddressFinalization.unregister(this);
|
|
997
|
+
return ptr;
|
|
998
|
+
}
|
|
999
|
+
|
|
1000
|
+
free() {
|
|
1001
|
+
const ptr = this.__destroy_into_raw();
|
|
1002
|
+
wasm.__wbg_consaddress_free(ptr, 0);
|
|
1003
|
+
}
|
|
1004
|
+
}
|
|
1005
|
+
|
|
929
1006
|
const DataAvailabilityHeaderFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
930
1007
|
? { register: () => {}, unregister: () => {} }
|
|
931
1008
|
: new FinalizationRegistry(ptr => wasm.__wbg_dataavailabilityheader_free(ptr >>> 0, 1));
|
|
@@ -2672,6 +2749,36 @@ export class TxClient {
|
|
|
2672
2749
|
}
|
|
2673
2750
|
}
|
|
2674
2751
|
|
|
2752
|
+
const ValAddressFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2753
|
+
? { register: () => {}, unregister: () => {} }
|
|
2754
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_valaddress_free(ptr >>> 0, 1));
|
|
2755
|
+
/**
|
|
2756
|
+
* Address of a validator.
|
|
2757
|
+
*/
|
|
2758
|
+
export class ValAddress {
|
|
2759
|
+
|
|
2760
|
+
toJSON() {
|
|
2761
|
+
return {
|
|
2762
|
+
};
|
|
2763
|
+
}
|
|
2764
|
+
|
|
2765
|
+
toString() {
|
|
2766
|
+
return JSON.stringify(this);
|
|
2767
|
+
}
|
|
2768
|
+
|
|
2769
|
+
__destroy_into_raw() {
|
|
2770
|
+
const ptr = this.__wbg_ptr;
|
|
2771
|
+
this.__wbg_ptr = 0;
|
|
2772
|
+
ValAddressFinalization.unregister(this);
|
|
2773
|
+
return ptr;
|
|
2774
|
+
}
|
|
2775
|
+
|
|
2776
|
+
free() {
|
|
2777
|
+
const ptr = this.__destroy_into_raw();
|
|
2778
|
+
wasm.__wbg_valaddress_free(ptr, 0);
|
|
2779
|
+
}
|
|
2780
|
+
}
|
|
2781
|
+
|
|
2675
2782
|
export function __wbg_String_8f0eb39a4a4c2f66(arg0, arg1) {
|
|
2676
2783
|
const ret = String(arg1);
|
|
2677
2784
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -2689,7 +2796,7 @@ export function __wbg_abort_99fc644e2c79c9fb() { return handleError(function (ar
|
|
|
2689
2796
|
arg0.abort();
|
|
2690
2797
|
}, arguments) };
|
|
2691
2798
|
|
|
2692
|
-
export function
|
|
2799
|
+
export function __wbg_accountNumber_121c2e37366d2972(arg0) {
|
|
2693
2800
|
const ret = arg0.accountNumber;
|
|
2694
2801
|
return ret;
|
|
2695
2802
|
};
|
|
@@ -2717,7 +2824,7 @@ export function __wbg_apply_eb9e9b97497f91e4() { return handleError(function (ar
|
|
|
2717
2824
|
return ret;
|
|
2718
2825
|
}, arguments) };
|
|
2719
2826
|
|
|
2720
|
-
export function
|
|
2827
|
+
export function __wbg_authInfoBytes_8b86c2efe5465846(arg0, arg1) {
|
|
2721
2828
|
const ret = arg1.authInfoBytes;
|
|
2722
2829
|
const ptr1 = passArray8ToWasm0(ret, wasm.__wbindgen_malloc);
|
|
2723
2830
|
const len1 = WASM_VECTOR_LEN;
|
|
@@ -2745,7 +2852,7 @@ export function __wbg_blockrange_unwrap(arg0) {
|
|
|
2745
2852
|
return ret;
|
|
2746
2853
|
};
|
|
2747
2854
|
|
|
2748
|
-
export function
|
|
2855
|
+
export function __wbg_bodyBytes_7dd0c3b48bbba77f(arg0, arg1) {
|
|
2749
2856
|
const ret = arg1.bodyBytes;
|
|
2750
2857
|
const ptr1 = passArray8ToWasm0(ret, wasm.__wbindgen_malloc);
|
|
2751
2858
|
const len1 = WASM_VECTOR_LEN;
|
|
@@ -2813,7 +2920,7 @@ export function __wbg_cause_9940c4e8dfcd5129(arg0) {
|
|
|
2813
2920
|
return ret;
|
|
2814
2921
|
};
|
|
2815
2922
|
|
|
2816
|
-
export function
|
|
2923
|
+
export function __wbg_chainId_84d9e6fe45faca43(arg0, arg1) {
|
|
2817
2924
|
const ret = arg1.chainId;
|
|
2818
2925
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2819
2926
|
const len1 = WASM_VECTOR_LEN;
|
|
@@ -2834,6 +2941,10 @@ export function __wbg_clearInterval_eba67734fd13a7f1(arg0, arg1) {
|
|
|
2834
2941
|
arg0.clearInterval(arg1);
|
|
2835
2942
|
};
|
|
2836
2943
|
|
|
2944
|
+
export function __wbg_clearTimeout_1313f6f67a9e499e(arg0) {
|
|
2945
|
+
clearTimeout(arg0);
|
|
2946
|
+
};
|
|
2947
|
+
|
|
2837
2948
|
export function __wbg_clearTimeout_5a54f8841c30079a(arg0) {
|
|
2838
2949
|
const ret = clearTimeout(arg0);
|
|
2839
2950
|
return ret;
|
|
@@ -2844,10 +2955,6 @@ export function __wbg_clearTimeout_96804de0ab838f26(arg0) {
|
|
|
2844
2955
|
return ret;
|
|
2845
2956
|
};
|
|
2846
2957
|
|
|
2847
|
-
export function __wbg_clearTimeout_f783c0393672b222(arg0) {
|
|
2848
|
-
clearTimeout(arg0);
|
|
2849
|
-
};
|
|
2850
|
-
|
|
2851
2958
|
export function __wbg_clear_f450db7eeb71163f() { return handleError(function (arg0) {
|
|
2852
2959
|
const ret = arg0.clear();
|
|
2853
2960
|
return ret;
|
|
@@ -3028,7 +3135,7 @@ export function __wbg_fetch_3079ee47bab2b144(arg0, arg1) {
|
|
|
3028
3135
|
return ret;
|
|
3029
3136
|
};
|
|
3030
3137
|
|
|
3031
|
-
export function
|
|
3138
|
+
export function __wbg_fetch_76c96a54db5c99a7(arg0) {
|
|
3032
3139
|
const ret = fetch(arg0);
|
|
3033
3140
|
return ret;
|
|
3034
3141
|
};
|
|
@@ -3038,13 +3145,13 @@ export function __wbg_from_2a5d3e218e67aa85(arg0) {
|
|
|
3038
3145
|
return ret;
|
|
3039
3146
|
};
|
|
3040
3147
|
|
|
3041
|
-
export function
|
|
3148
|
+
export function __wbg_gasLimit_c2be35081d7a92e6(arg0, arg1) {
|
|
3042
3149
|
const ret = arg1.gasLimit;
|
|
3043
3150
|
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
3044
3151
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
3045
3152
|
};
|
|
3046
3153
|
|
|
3047
|
-
export function
|
|
3154
|
+
export function __wbg_gasPrice_e8f7f10704595c50(arg0, arg1) {
|
|
3048
3155
|
const ret = arg1.gasPrice;
|
|
3049
3156
|
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
3050
3157
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
@@ -3476,7 +3583,7 @@ export function __wbg_new_23a2665fac83c611(arg0, arg1) {
|
|
|
3476
3583
|
const a = state0.a;
|
|
3477
3584
|
state0.a = 0;
|
|
3478
3585
|
try {
|
|
3479
|
-
return
|
|
3586
|
+
return __wbg_adapter_682(a, state0.b, arg0, arg1);
|
|
3480
3587
|
} finally {
|
|
3481
3588
|
state0.a = a;
|
|
3482
3589
|
}
|
|
@@ -3658,11 +3765,11 @@ export function __wbg_ports_b00492ca2866b691(arg0) {
|
|
|
3658
3765
|
return ret;
|
|
3659
3766
|
};
|
|
3660
3767
|
|
|
3661
|
-
export function
|
|
3768
|
+
export function __wbg_postMessage_0ddd829db04d7ca0() { return handleError(function (arg0, arg1, arg2) {
|
|
3662
3769
|
arg0.postMessage(arg1, arg2);
|
|
3663
3770
|
}, arguments) };
|
|
3664
3771
|
|
|
3665
|
-
export function
|
|
3772
|
+
export function __wbg_postMessage_a80a624a33a099b7() { return handleError(function (arg0, arg1) {
|
|
3666
3773
|
arg0.postMessage(arg1);
|
|
3667
3774
|
}, arguments) };
|
|
3668
3775
|
|
|
@@ -3785,7 +3892,7 @@ export function __wbg_setInterval_ed3b5e3c3ebb8a6d() { return handleError(functi
|
|
|
3785
3892
|
return ret;
|
|
3786
3893
|
}, arguments) };
|
|
3787
3894
|
|
|
3788
|
-
export function
|
|
3895
|
+
export function __wbg_setTimeout_d8a2f689cdf318cb(arg0, arg1) {
|
|
3789
3896
|
const ret = setTimeout(arg0, arg1 >>> 0);
|
|
3790
3897
|
return ret;
|
|
3791
3898
|
};
|
|
@@ -4032,7 +4139,7 @@ export function __wbg_txclient_new(arg0) {
|
|
|
4032
4139
|
return ret;
|
|
4033
4140
|
};
|
|
4034
4141
|
|
|
4035
|
-
export function
|
|
4142
|
+
export function __wbg_typeUrl_ae57c1589a39dff7(arg0, arg1) {
|
|
4036
4143
|
const ret = arg1.typeUrl;
|
|
4037
4144
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4038
4145
|
const len1 = WASM_VECTOR_LEN;
|
|
@@ -4061,7 +4168,7 @@ export function __wbg_userAgent_d036e8722fea0cde() { return handleError(function
|
|
|
4061
4168
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
4062
4169
|
}, arguments) };
|
|
4063
4170
|
|
|
4064
|
-
export function
|
|
4171
|
+
export function __wbg_value_2dd2bace22d8214f(arg0, arg1) {
|
|
4065
4172
|
const ret = arg1.value;
|
|
4066
4173
|
const ptr1 = passArray8ToWasm0(ret, wasm.__wbindgen_malloc);
|
|
4067
4174
|
const len1 = WASM_VECTOR_LEN;
|
|
@@ -4150,73 +4257,48 @@ export function __wbindgen_cb_drop(arg0) {
|
|
|
4150
4257
|
return ret;
|
|
4151
4258
|
};
|
|
4152
4259
|
|
|
4153
|
-
export function
|
|
4154
|
-
const ret =
|
|
4155
|
-
return ret;
|
|
4156
|
-
};
|
|
4157
|
-
|
|
4158
|
-
export function __wbindgen_closure_wrapper1251(arg0, arg1, arg2) {
|
|
4159
|
-
const ret = makeMutClosure(arg0, arg1, 194, __wbg_adapter_64);
|
|
4160
|
-
return ret;
|
|
4161
|
-
};
|
|
4162
|
-
|
|
4163
|
-
export function __wbindgen_closure_wrapper1263(arg0, arg1, arg2) {
|
|
4164
|
-
const ret = makeMutClosure(arg0, arg1, 194, __wbg_adapter_67);
|
|
4165
|
-
return ret;
|
|
4166
|
-
};
|
|
4167
|
-
|
|
4168
|
-
export function __wbindgen_closure_wrapper1264(arg0, arg1, arg2) {
|
|
4169
|
-
const ret = makeClosure(arg0, arg1, 194, __wbg_adapter_70);
|
|
4170
|
-
return ret;
|
|
4171
|
-
};
|
|
4172
|
-
|
|
4173
|
-
export function __wbindgen_closure_wrapper1265(arg0, arg1, arg2) {
|
|
4174
|
-
const ret = makeMutClosure(arg0, arg1, 194, __wbg_adapter_67);
|
|
4175
|
-
return ret;
|
|
4176
|
-
};
|
|
4177
|
-
|
|
4178
|
-
export function __wbindgen_closure_wrapper1269(arg0, arg1, arg2) {
|
|
4179
|
-
const ret = makeMutClosure(arg0, arg1, 194, __wbg_adapter_67);
|
|
4260
|
+
export function __wbindgen_closure_wrapper2428(arg0, arg1, arg2) {
|
|
4261
|
+
const ret = makeClosure(arg0, arg1, 911, __wbg_adapter_64);
|
|
4180
4262
|
return ret;
|
|
4181
4263
|
};
|
|
4182
4264
|
|
|
4183
|
-
export function
|
|
4184
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4265
|
+
export function __wbindgen_closure_wrapper2430(arg0, arg1, arg2) {
|
|
4266
|
+
const ret = makeMutClosure(arg0, arg1, 911, __wbg_adapter_67);
|
|
4185
4267
|
return ret;
|
|
4186
4268
|
};
|
|
4187
4269
|
|
|
4188
|
-
export function
|
|
4189
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4270
|
+
export function __wbindgen_closure_wrapper4366(arg0, arg1, arg2) {
|
|
4271
|
+
const ret = makeMutClosure(arg0, arg1, 1480, __wbg_adapter_70);
|
|
4190
4272
|
return ret;
|
|
4191
4273
|
};
|
|
4192
4274
|
|
|
4193
|
-
export function
|
|
4194
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4275
|
+
export function __wbindgen_closure_wrapper4690(arg0, arg1, arg2) {
|
|
4276
|
+
const ret = makeMutClosure(arg0, arg1, 1632, __wbg_adapter_73);
|
|
4195
4277
|
return ret;
|
|
4196
4278
|
};
|
|
4197
4279
|
|
|
4198
|
-
export function
|
|
4199
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4280
|
+
export function __wbindgen_closure_wrapper4691(arg0, arg1, arg2) {
|
|
4281
|
+
const ret = makeMutClosure(arg0, arg1, 1632, __wbg_adapter_73);
|
|
4200
4282
|
return ret;
|
|
4201
4283
|
};
|
|
4202
4284
|
|
|
4203
|
-
export function
|
|
4204
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4285
|
+
export function __wbindgen_closure_wrapper4692(arg0, arg1, arg2) {
|
|
4286
|
+
const ret = makeMutClosure(arg0, arg1, 1632, __wbg_adapter_73);
|
|
4205
4287
|
return ret;
|
|
4206
4288
|
};
|
|
4207
4289
|
|
|
4208
|
-
export function
|
|
4209
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4290
|
+
export function __wbindgen_closure_wrapper6145(arg0, arg1, arg2) {
|
|
4291
|
+
const ret = makeMutClosure(arg0, arg1, 2138, __wbg_adapter_80);
|
|
4210
4292
|
return ret;
|
|
4211
4293
|
};
|
|
4212
4294
|
|
|
4213
|
-
export function
|
|
4214
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4295
|
+
export function __wbindgen_closure_wrapper6253(arg0, arg1, arg2) {
|
|
4296
|
+
const ret = makeMutClosure(arg0, arg1, 2195, __wbg_adapter_83);
|
|
4215
4297
|
return ret;
|
|
4216
4298
|
};
|
|
4217
4299
|
|
|
4218
|
-
export function
|
|
4219
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4300
|
+
export function __wbindgen_closure_wrapper8032(arg0, arg1, arg2) {
|
|
4301
|
+
const ret = makeMutClosure(arg0, arg1, 2825, __wbg_adapter_86);
|
|
4220
4302
|
return ret;
|
|
4221
4303
|
};
|
|
4222
4304
|
|
package/lumina_node_wasm_bg.wasm
CHANGED
|
Binary file
|