lumina-node-wasm 0.3.0 → 0.4.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 +43 -45
- package/lumina_node_wasm.js +113 -120
- package/lumina_node_wasm_bg.wasm +0 -0
- package/package.json +1 -1
package/lumina_node_wasm.d.ts
CHANGED
|
@@ -129,6 +129,10 @@ export class NodeClient {
|
|
|
129
129
|
*/
|
|
130
130
|
start(config: NodeConfig): Promise<void>;
|
|
131
131
|
/**
|
|
132
|
+
* @returns {Promise<void>}
|
|
133
|
+
*/
|
|
134
|
+
stop(): Promise<void>;
|
|
135
|
+
/**
|
|
132
136
|
* Get node's local peer ID.
|
|
133
137
|
* @returns {Promise<string>}
|
|
134
138
|
*/
|
|
@@ -275,12 +279,6 @@ export class NodeClient {
|
|
|
275
279
|
*/
|
|
276
280
|
getSamplingMetadata(height: bigint): Promise<any>;
|
|
277
281
|
/**
|
|
278
|
-
* Requests SharedWorker running lumina to close. Any events received afterwards wont
|
|
279
|
-
* be processed and new NodeClient needs to be created to restart a node.
|
|
280
|
-
* @returns {Promise<void>}
|
|
281
|
-
*/
|
|
282
|
-
close(): Promise<void>;
|
|
283
|
-
/**
|
|
284
282
|
* Returns a [`BroadcastChannel`] for events generated by [`Node`].
|
|
285
283
|
* @returns {Promise<BroadcastChannel>}
|
|
286
284
|
*/
|
|
@@ -370,42 +368,6 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
|
|
|
370
368
|
|
|
371
369
|
export interface InitOutput {
|
|
372
370
|
readonly memory: WebAssembly.Memory;
|
|
373
|
-
readonly setup_logging: () => void;
|
|
374
|
-
readonly __wbg_nodeconfig_free: (a: number, b: number) => void;
|
|
375
|
-
readonly __wbg_get_nodeconfig_network: (a: number) => number;
|
|
376
|
-
readonly __wbg_set_nodeconfig_network: (a: number, b: number) => void;
|
|
377
|
-
readonly __wbg_get_nodeconfig_bootnodes: (a: number, b: number) => void;
|
|
378
|
-
readonly __wbg_set_nodeconfig_bootnodes: (a: number, b: number, c: number) => void;
|
|
379
|
-
readonly __wbg_nodeclient_free: (a: number, b: number) => void;
|
|
380
|
-
readonly nodeclient_new: (a: number) => number;
|
|
381
|
-
readonly nodeclient_addConnectionToWorker: (a: number, b: number) => number;
|
|
382
|
-
readonly nodeclient_isRunning: (a: number) => number;
|
|
383
|
-
readonly nodeclient_start: (a: number, b: number) => number;
|
|
384
|
-
readonly nodeclient_localPeerId: (a: number) => number;
|
|
385
|
-
readonly nodeclient_peerTrackerInfo: (a: number) => number;
|
|
386
|
-
readonly nodeclient_waitConnected: (a: number) => number;
|
|
387
|
-
readonly nodeclient_waitConnectedTrusted: (a: number) => number;
|
|
388
|
-
readonly nodeclient_networkInfo: (a: number) => number;
|
|
389
|
-
readonly nodeclient_listeners: (a: number) => number;
|
|
390
|
-
readonly nodeclient_connectedPeers: (a: number) => number;
|
|
391
|
-
readonly nodeclient_setPeerTrust: (a: number, b: number, c: number, d: number) => number;
|
|
392
|
-
readonly nodeclient_requestHeadHeader: (a: number) => number;
|
|
393
|
-
readonly nodeclient_requestHeaderByHash: (a: number, b: number, c: number) => number;
|
|
394
|
-
readonly nodeclient_requestHeaderByHeight: (a: number, b: number) => number;
|
|
395
|
-
readonly nodeclient_requestVerifiedHeaders: (a: number, b: number, c: number) => number;
|
|
396
|
-
readonly nodeclient_syncerInfo: (a: number) => number;
|
|
397
|
-
readonly nodeclient_getNetworkHeadHeader: (a: number) => number;
|
|
398
|
-
readonly nodeclient_getLocalHeadHeader: (a: number) => number;
|
|
399
|
-
readonly nodeclient_getHeaderByHash: (a: number, b: number, c: number) => number;
|
|
400
|
-
readonly nodeclient_getHeaderByHeight: (a: number, b: number) => number;
|
|
401
|
-
readonly nodeclient_getHeaders: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
402
|
-
readonly nodeclient_getSamplingMetadata: (a: number, b: number) => number;
|
|
403
|
-
readonly nodeclient_close: (a: number) => number;
|
|
404
|
-
readonly nodeclient_eventsChannel: (a: number) => number;
|
|
405
|
-
readonly nodeconfig_default: (a: number) => number;
|
|
406
|
-
readonly __wbg_nodeworker_free: (a: number, b: number) => void;
|
|
407
|
-
readonly nodeworker_new: (a: number) => number;
|
|
408
|
-
readonly nodeworker_run: (a: number) => number;
|
|
409
371
|
readonly __wbg_networkinfosnapshot_free: (a: number, b: number) => void;
|
|
410
372
|
readonly __wbg_get_networkinfosnapshot_connection_counters: (a: number) => number;
|
|
411
373
|
readonly __wbg_set_networkinfosnapshot_connection_counters: (a: number, b: number) => void;
|
|
@@ -426,6 +388,7 @@ export interface InitOutput {
|
|
|
426
388
|
readonly __wbg_set_connectioncounterssnapshot_num_established_outgoing: (a: number, b: number) => void;
|
|
427
389
|
readonly __wbg_set_networkinfosnapshot_num_peers: (a: number, b: number) => void;
|
|
428
390
|
readonly __wbg_get_networkinfosnapshot_num_peers: (a: number) => number;
|
|
391
|
+
readonly setup_logging: () => void;
|
|
429
392
|
readonly __wbg_blockrange_free: (a: number, b: number) => void;
|
|
430
393
|
readonly __wbg_get_blockrange_start: (a: number) => number;
|
|
431
394
|
readonly __wbg_set_blockrange_start: (a: number, b: number) => void;
|
|
@@ -441,12 +404,47 @@ export interface InitOutput {
|
|
|
441
404
|
readonly __wbg_get_peertrackerinfosnapshot_num_connected_trusted_peers: (a: number) => number;
|
|
442
405
|
readonly __wbg_get_syncinginfosnapshot_subjective_head: (a: number) => number;
|
|
443
406
|
readonly __wbg_peertrackerinfosnapshot_free: (a: number, b: number) => void;
|
|
407
|
+
readonly __wbg_nodeconfig_free: (a: number, b: number) => void;
|
|
408
|
+
readonly __wbg_get_nodeconfig_network: (a: number) => number;
|
|
409
|
+
readonly __wbg_set_nodeconfig_network: (a: number, b: number) => void;
|
|
410
|
+
readonly __wbg_get_nodeconfig_bootnodes: (a: number, b: number) => void;
|
|
411
|
+
readonly __wbg_set_nodeconfig_bootnodes: (a: number, b: number, c: number) => void;
|
|
412
|
+
readonly __wbg_nodeclient_free: (a: number, b: number) => void;
|
|
413
|
+
readonly nodeclient_new: (a: number) => number;
|
|
414
|
+
readonly nodeclient_addConnectionToWorker: (a: number, b: number) => number;
|
|
415
|
+
readonly nodeclient_isRunning: (a: number) => number;
|
|
416
|
+
readonly nodeclient_start: (a: number, b: number) => number;
|
|
417
|
+
readonly nodeclient_stop: (a: number) => number;
|
|
418
|
+
readonly nodeclient_localPeerId: (a: number) => number;
|
|
419
|
+
readonly nodeclient_peerTrackerInfo: (a: number) => number;
|
|
420
|
+
readonly nodeclient_waitConnected: (a: number) => number;
|
|
421
|
+
readonly nodeclient_waitConnectedTrusted: (a: number) => number;
|
|
422
|
+
readonly nodeclient_networkInfo: (a: number) => number;
|
|
423
|
+
readonly nodeclient_listeners: (a: number) => number;
|
|
424
|
+
readonly nodeclient_connectedPeers: (a: number) => number;
|
|
425
|
+
readonly nodeclient_setPeerTrust: (a: number, b: number, c: number, d: number) => number;
|
|
426
|
+
readonly nodeclient_requestHeadHeader: (a: number) => number;
|
|
427
|
+
readonly nodeclient_requestHeaderByHash: (a: number, b: number, c: number) => number;
|
|
428
|
+
readonly nodeclient_requestHeaderByHeight: (a: number, b: number) => number;
|
|
429
|
+
readonly nodeclient_requestVerifiedHeaders: (a: number, b: number, c: number) => number;
|
|
430
|
+
readonly nodeclient_syncerInfo: (a: number) => number;
|
|
431
|
+
readonly nodeclient_getNetworkHeadHeader: (a: number) => number;
|
|
432
|
+
readonly nodeclient_getLocalHeadHeader: (a: number) => number;
|
|
433
|
+
readonly nodeclient_getHeaderByHash: (a: number, b: number, c: number) => number;
|
|
434
|
+
readonly nodeclient_getHeaderByHeight: (a: number, b: number) => number;
|
|
435
|
+
readonly nodeclient_getHeaders: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
436
|
+
readonly nodeclient_getSamplingMetadata: (a: number, b: number) => number;
|
|
437
|
+
readonly nodeclient_eventsChannel: (a: number) => number;
|
|
438
|
+
readonly nodeconfig_default: (a: number) => number;
|
|
439
|
+
readonly __wbg_nodeworker_free: (a: number, b: number) => void;
|
|
440
|
+
readonly nodeworker_new: (a: number) => number;
|
|
441
|
+
readonly nodeworker_run: (a: number) => number;
|
|
444
442
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
445
443
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
446
444
|
readonly __wbindgen_export_2: WebAssembly.Table;
|
|
447
|
-
readonly
|
|
448
|
-
readonly
|
|
449
|
-
readonly
|
|
445
|
+
readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h7b30f8a760eb9e89: (a: number, b: number, c: number) => void;
|
|
446
|
+
readonly _dyn_core__ops__function__Fn__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h27a0729df05e61c2: (a: number, b: number, c: number) => void;
|
|
447
|
+
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hd779103e89088afd: (a: number, b: number) => void;
|
|
450
448
|
readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h62ad66d3e9f77ac4: (a: number, b: number, c: number) => void;
|
|
451
449
|
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h0a0047be2e37408e: (a: number, b: number) => void;
|
|
452
450
|
readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h80386b419f109aff: (a: number, b: number, c: number) => void;
|
package/lumina_node_wasm.js
CHANGED
|
@@ -212,7 +212,7 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
212
212
|
return real;
|
|
213
213
|
}
|
|
214
214
|
function __wbg_adapter_58(arg0, arg1, arg2) {
|
|
215
|
-
wasm.
|
|
215
|
+
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h7b30f8a760eb9e89(arg0, arg1, addHeapObject(arg2));
|
|
216
216
|
}
|
|
217
217
|
|
|
218
218
|
function makeClosure(arg0, arg1, dtor, f) {
|
|
@@ -237,11 +237,11 @@ function makeClosure(arg0, arg1, dtor, f) {
|
|
|
237
237
|
return real;
|
|
238
238
|
}
|
|
239
239
|
function __wbg_adapter_61(arg0, arg1, arg2) {
|
|
240
|
-
wasm.
|
|
240
|
+
wasm._dyn_core__ops__function__Fn__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h27a0729df05e61c2(arg0, arg1, addHeapObject(arg2));
|
|
241
241
|
}
|
|
242
242
|
|
|
243
243
|
function __wbg_adapter_64(arg0, arg1) {
|
|
244
|
-
wasm.
|
|
244
|
+
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hd779103e89088afd(arg0, arg1);
|
|
245
245
|
}
|
|
246
246
|
|
|
247
247
|
function __wbg_adapter_71(arg0, arg1, arg2) {
|
|
@@ -268,6 +268,12 @@ function __wbg_adapter_90(arg0, arg1) {
|
|
|
268
268
|
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h9503509ad8c78ce2(arg0, arg1);
|
|
269
269
|
}
|
|
270
270
|
|
|
271
|
+
function _assertClass(instance, klass) {
|
|
272
|
+
if (!(instance instanceof klass)) {
|
|
273
|
+
throw new Error(`expected instance of ${klass.name}`);
|
|
274
|
+
}
|
|
275
|
+
return instance.ptr;
|
|
276
|
+
}
|
|
271
277
|
/**
|
|
272
278
|
* Set up a logging layer that direct logs to the browser's console.
|
|
273
279
|
*/
|
|
@@ -295,13 +301,6 @@ function passArrayJsValueToWasm0(array, malloc) {
|
|
|
295
301
|
return ptr;
|
|
296
302
|
}
|
|
297
303
|
|
|
298
|
-
function _assertClass(instance, klass) {
|
|
299
|
-
if (!(instance instanceof klass)) {
|
|
300
|
-
throw new Error(`expected instance of ${klass.name}`);
|
|
301
|
-
}
|
|
302
|
-
return instance.ptr;
|
|
303
|
-
}
|
|
304
|
-
|
|
305
304
|
function handleError(f, args) {
|
|
306
305
|
try {
|
|
307
306
|
return f.apply(this, args);
|
|
@@ -310,15 +309,16 @@ function handleError(f, args) {
|
|
|
310
309
|
}
|
|
311
310
|
}
|
|
312
311
|
|
|
312
|
+
function notDefined(what) { return () => { throw new Error(`${what} is not defined`); }; }
|
|
313
|
+
|
|
313
314
|
function getArrayU8FromWasm0(ptr, len) {
|
|
314
315
|
ptr = ptr >>> 0;
|
|
315
316
|
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
316
317
|
}
|
|
317
|
-
function
|
|
318
|
+
function __wbg_adapter_552(arg0, arg1, arg2, arg3) {
|
|
318
319
|
wasm.wasm_bindgen__convert__closures__invoke2_mut__h47e988f82b6e4529(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
319
320
|
}
|
|
320
321
|
|
|
321
|
-
function notDefined(what) { return () => { throw new Error(`${what} is not defined`); }; }
|
|
322
322
|
/**
|
|
323
323
|
* Supported Celestia networks.
|
|
324
324
|
*/
|
|
@@ -677,8 +677,14 @@ export class NodeClient {
|
|
|
677
677
|
*/
|
|
678
678
|
start(config) {
|
|
679
679
|
_assertClass(config, NodeConfig);
|
|
680
|
-
|
|
681
|
-
|
|
680
|
+
const ret = wasm.nodeclient_start(this.__wbg_ptr, config.__wbg_ptr);
|
|
681
|
+
return takeObject(ret);
|
|
682
|
+
}
|
|
683
|
+
/**
|
|
684
|
+
* @returns {Promise<void>}
|
|
685
|
+
*/
|
|
686
|
+
stop() {
|
|
687
|
+
const ret = wasm.nodeclient_stop(this.__wbg_ptr);
|
|
682
688
|
return takeObject(ret);
|
|
683
689
|
}
|
|
684
690
|
/**
|
|
@@ -891,15 +897,6 @@ export class NodeClient {
|
|
|
891
897
|
return takeObject(ret);
|
|
892
898
|
}
|
|
893
899
|
/**
|
|
894
|
-
* Requests SharedWorker running lumina to close. Any events received afterwards wont
|
|
895
|
-
* be processed and new NodeClient needs to be created to restart a node.
|
|
896
|
-
* @returns {Promise<void>}
|
|
897
|
-
*/
|
|
898
|
-
close() {
|
|
899
|
-
const ret = wasm.nodeclient_close(this.__wbg_ptr);
|
|
900
|
-
return takeObject(ret);
|
|
901
|
-
}
|
|
902
|
-
/**
|
|
903
900
|
* Returns a [`BroadcastChannel`] for events generated by [`Node`].
|
|
904
901
|
* @returns {Promise<BroadcastChannel>}
|
|
905
902
|
*/
|
|
@@ -1213,6 +1210,14 @@ function __wbg_get_imports() {
|
|
|
1213
1210
|
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
1214
1211
|
takeObject(arg0);
|
|
1215
1212
|
};
|
|
1213
|
+
imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
|
|
1214
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
1215
|
+
return addHeapObject(ret);
|
|
1216
|
+
};
|
|
1217
|
+
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
1218
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
1219
|
+
return addHeapObject(ret);
|
|
1220
|
+
};
|
|
1216
1221
|
imports.wbg.__wbindgen_cb_drop = function(arg0) {
|
|
1217
1222
|
const obj = takeObject(arg0).original;
|
|
1218
1223
|
if (obj.cnt-- == 1) {
|
|
@@ -1222,12 +1227,8 @@ function __wbg_get_imports() {
|
|
|
1222
1227
|
const ret = false;
|
|
1223
1228
|
return ret;
|
|
1224
1229
|
};
|
|
1225
|
-
imports.wbg.
|
|
1226
|
-
const ret =
|
|
1227
|
-
return addHeapObject(ret);
|
|
1228
|
-
};
|
|
1229
|
-
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
1230
|
-
const ret = getStringFromWasm0(arg0, arg1);
|
|
1230
|
+
imports.wbg.__wbindgen_typeof = function(arg0) {
|
|
1231
|
+
const ret = typeof getObject(arg0);
|
|
1231
1232
|
return addHeapObject(ret);
|
|
1232
1233
|
};
|
|
1233
1234
|
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
@@ -1238,10 +1239,38 @@ function __wbg_get_imports() {
|
|
|
1238
1239
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1239
1240
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1240
1241
|
};
|
|
1241
|
-
imports.wbg.
|
|
1242
|
-
const ret =
|
|
1242
|
+
imports.wbg.__wbg_syncinginfosnapshot_new = function(arg0) {
|
|
1243
|
+
const ret = SyncingInfoSnapshot.__wrap(arg0);
|
|
1244
|
+
return addHeapObject(ret);
|
|
1245
|
+
};
|
|
1246
|
+
imports.wbg.__wbg_blockrange_new = function(arg0) {
|
|
1247
|
+
const ret = BlockRange.__wrap(arg0);
|
|
1248
|
+
return addHeapObject(ret);
|
|
1249
|
+
};
|
|
1250
|
+
imports.wbg.__wbindgen_number_new = function(arg0) {
|
|
1251
|
+
const ret = arg0;
|
|
1252
|
+
return addHeapObject(ret);
|
|
1253
|
+
};
|
|
1254
|
+
imports.wbg.__wbg_peertrackerinfosnapshot_new = function(arg0) {
|
|
1255
|
+
const ret = PeerTrackerInfoSnapshot.__wrap(arg0);
|
|
1256
|
+
return addHeapObject(ret);
|
|
1257
|
+
};
|
|
1258
|
+
imports.wbg.__wbg_networkinfosnapshot_new = function(arg0) {
|
|
1259
|
+
const ret = NetworkInfoSnapshot.__wrap(arg0);
|
|
1260
|
+
return addHeapObject(ret);
|
|
1261
|
+
};
|
|
1262
|
+
imports.wbg.__wbg_nodeclient_new = function(arg0) {
|
|
1263
|
+
const ret = NodeClient.__wrap(arg0);
|
|
1264
|
+
return addHeapObject(ret);
|
|
1265
|
+
};
|
|
1266
|
+
imports.wbg.__wbindgen_is_object = function(arg0) {
|
|
1267
|
+
const val = getObject(arg0);
|
|
1268
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
1243
1269
|
return ret;
|
|
1244
1270
|
};
|
|
1271
|
+
imports.wbg.__wbg_postMessage_8649714a6cbab7be = function() { return handleError(function (arg0, arg1) {
|
|
1272
|
+
getObject(arg0).postMessage(getObject(arg1));
|
|
1273
|
+
}, arguments) };
|
|
1245
1274
|
imports.wbg.__wbindgen_as_number = function(arg0) {
|
|
1246
1275
|
const ret = +getObject(arg0);
|
|
1247
1276
|
return ret;
|
|
@@ -1250,9 +1279,12 @@ function __wbg_get_imports() {
|
|
|
1250
1279
|
const ret = getObject(arg0);
|
|
1251
1280
|
return addHeapObject(ret);
|
|
1252
1281
|
};
|
|
1253
|
-
imports.wbg.
|
|
1254
|
-
const
|
|
1255
|
-
|
|
1282
|
+
imports.wbg.__wbindgen_is_string = function(arg0) {
|
|
1283
|
+
const ret = typeof(getObject(arg0)) === 'string';
|
|
1284
|
+
return ret;
|
|
1285
|
+
};
|
|
1286
|
+
imports.wbg.__wbindgen_is_falsy = function(arg0) {
|
|
1287
|
+
const ret = !getObject(arg0);
|
|
1256
1288
|
return ret;
|
|
1257
1289
|
};
|
|
1258
1290
|
imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
|
|
@@ -1261,83 +1293,48 @@ function __wbg_get_imports() {
|
|
|
1261
1293
|
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
1262
1294
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
1263
1295
|
};
|
|
1264
|
-
imports.wbg.__wbindgen_number_new = function(arg0) {
|
|
1265
|
-
const ret = arg0;
|
|
1266
|
-
return addHeapObject(ret);
|
|
1267
|
-
};
|
|
1268
1296
|
imports.wbg.__wbindgen_is_function = function(arg0) {
|
|
1269
1297
|
const ret = typeof(getObject(arg0)) === 'function';
|
|
1270
1298
|
return ret;
|
|
1271
1299
|
};
|
|
1272
|
-
imports.wbg.
|
|
1273
|
-
const
|
|
1274
|
-
const ret = typeof(val) === 'object' && val !== null;
|
|
1300
|
+
imports.wbg.__wbg_blockrange_unwrap = function(arg0) {
|
|
1301
|
+
const ret = BlockRange.__unwrap(takeObject(arg0));
|
|
1275
1302
|
return ret;
|
|
1276
1303
|
};
|
|
1277
|
-
imports.wbg.
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
const ret = PeerTrackerInfoSnapshot.__wrap(arg0);
|
|
1283
|
-
return addHeapObject(ret);
|
|
1284
|
-
};
|
|
1285
|
-
imports.wbg.__wbg_networkinfosnapshot_new = function(arg0) {
|
|
1286
|
-
const ret = NetworkInfoSnapshot.__wrap(arg0);
|
|
1287
|
-
return addHeapObject(ret);
|
|
1288
|
-
};
|
|
1289
|
-
imports.wbg.__wbg_syncinginfosnapshot_new = function(arg0) {
|
|
1290
|
-
const ret = SyncingInfoSnapshot.__wrap(arg0);
|
|
1291
|
-
return addHeapObject(ret);
|
|
1292
|
-
};
|
|
1293
|
-
imports.wbg.__wbindgen_is_string = function(arg0) {
|
|
1294
|
-
const ret = typeof(getObject(arg0)) === 'string';
|
|
1304
|
+
imports.wbg.__wbg_postMessage_415d5111deee4f28 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1305
|
+
getObject(arg0).postMessage(getObject(arg1), getObject(arg2));
|
|
1306
|
+
}, arguments) };
|
|
1307
|
+
imports.wbg.__wbindgen_is_array = function(arg0) {
|
|
1308
|
+
const ret = Array.isArray(getObject(arg0));
|
|
1295
1309
|
return ret;
|
|
1296
1310
|
};
|
|
1297
|
-
imports.wbg.__wbg_nodeclient_new = function(arg0) {
|
|
1298
|
-
const ret = NodeClient.__wrap(arg0);
|
|
1299
|
-
return addHeapObject(ret);
|
|
1300
|
-
};
|
|
1301
1311
|
imports.wbg.__wbindgen_is_undefined = function(arg0) {
|
|
1302
1312
|
const ret = getObject(arg0) === undefined;
|
|
1303
1313
|
return ret;
|
|
1304
1314
|
};
|
|
1305
|
-
imports.wbg.
|
|
1306
|
-
const
|
|
1315
|
+
imports.wbg.__wbindgen_boolean_get = function(arg0) {
|
|
1316
|
+
const v = getObject(arg0);
|
|
1317
|
+
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
|
1307
1318
|
return ret;
|
|
1308
1319
|
};
|
|
1309
1320
|
imports.wbg.__wbindgen_is_bigint = function(arg0) {
|
|
1310
1321
|
const ret = typeof(getObject(arg0)) === 'bigint';
|
|
1311
1322
|
return ret;
|
|
1312
1323
|
};
|
|
1313
|
-
imports.wbg.
|
|
1314
|
-
const ret =
|
|
1315
|
-
return addHeapObject(ret);
|
|
1316
|
-
};
|
|
1317
|
-
imports.wbg.__wbindgen_jsval_eq = function(arg0, arg1) {
|
|
1318
|
-
const ret = getObject(arg0) === getObject(arg1);
|
|
1324
|
+
imports.wbg.__wbindgen_in = function(arg0, arg1) {
|
|
1325
|
+
const ret = getObject(arg0) in getObject(arg1);
|
|
1319
1326
|
return ret;
|
|
1320
1327
|
};
|
|
1321
1328
|
imports.wbg.__wbindgen_bigint_from_i64 = function(arg0) {
|
|
1322
1329
|
const ret = arg0;
|
|
1323
1330
|
return addHeapObject(ret);
|
|
1324
1331
|
};
|
|
1325
|
-
imports.wbg.
|
|
1326
|
-
getObject(arg0)
|
|
1327
|
-
}, arguments) };
|
|
1328
|
-
imports.wbg.__wbg_postMessage_c16855619017e301 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1329
|
-
getObject(arg0).postMessage(getObject(arg1), getObject(arg2));
|
|
1330
|
-
}, arguments) };
|
|
1331
|
-
imports.wbg.__wbg_blockrange_unwrap = function(arg0) {
|
|
1332
|
-
const ret = BlockRange.__unwrap(takeObject(arg0));
|
|
1333
|
-
return ret;
|
|
1334
|
-
};
|
|
1335
|
-
imports.wbg.__wbindgen_is_array = function(arg0) {
|
|
1336
|
-
const ret = Array.isArray(getObject(arg0));
|
|
1332
|
+
imports.wbg.__wbindgen_jsval_eq = function(arg0, arg1) {
|
|
1333
|
+
const ret = getObject(arg0) === getObject(arg1);
|
|
1337
1334
|
return ret;
|
|
1338
1335
|
};
|
|
1339
|
-
imports.wbg.
|
|
1340
|
-
const ret =
|
|
1336
|
+
imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
1337
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
1341
1338
|
return addHeapObject(ret);
|
|
1342
1339
|
};
|
|
1343
1340
|
imports.wbg.__wbg_new_abda76e883ba8a5f = function() {
|
|
@@ -1362,8 +1359,10 @@ function __wbg_get_imports() {
|
|
|
1362
1359
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1363
1360
|
}
|
|
1364
1361
|
};
|
|
1365
|
-
imports.wbg.
|
|
1366
|
-
|
|
1362
|
+
imports.wbg.__wbg_clearTimeout_e821a57e0a355106 = typeof clearTimeout == 'function' ? clearTimeout : notDefined('clearTimeout');
|
|
1363
|
+
imports.wbg.__wbg_setTimeout_0e2683d7f8a5eec5 = function(arg0, arg1) {
|
|
1364
|
+
const ret = setTimeout(getObject(arg0), arg1 >>> 0);
|
|
1365
|
+
return ret;
|
|
1367
1366
|
};
|
|
1368
1367
|
imports.wbg.__wbindgen_is_null = function(arg0) {
|
|
1369
1368
|
const ret = getObject(arg0) === null;
|
|
@@ -1737,9 +1736,6 @@ function __wbg_get_imports() {
|
|
|
1737
1736
|
const ret = new BroadcastChannel(getStringFromWasm0(arg0, arg1));
|
|
1738
1737
|
return addHeapObject(ret);
|
|
1739
1738
|
}, arguments) };
|
|
1740
|
-
imports.wbg.__wbg_close_e86acd87e438bb6f = function(arg0) {
|
|
1741
|
-
getObject(arg0).close();
|
|
1742
|
-
};
|
|
1743
1739
|
imports.wbg.__wbg_postMessage_b33651b7ca54b884 = function() { return handleError(function (arg0, arg1) {
|
|
1744
1740
|
getObject(arg0).postMessage(getObject(arg1));
|
|
1745
1741
|
}, arguments) };
|
|
@@ -1826,9 +1822,6 @@ function __wbg_get_imports() {
|
|
|
1826
1822
|
const ret = result;
|
|
1827
1823
|
return ret;
|
|
1828
1824
|
};
|
|
1829
|
-
imports.wbg.__wbg_close_a265b5724b82a0f7 = function(arg0) {
|
|
1830
|
-
getObject(arg0).close();
|
|
1831
|
-
};
|
|
1832
1825
|
imports.wbg.__wbg_debug_5a33c41aeac15ee6 = function(arg0) {
|
|
1833
1826
|
console.debug(getObject(arg0));
|
|
1834
1827
|
};
|
|
@@ -2210,7 +2203,7 @@ function __wbg_get_imports() {
|
|
|
2210
2203
|
const a = state0.a;
|
|
2211
2204
|
state0.a = 0;
|
|
2212
2205
|
try {
|
|
2213
|
-
return
|
|
2206
|
+
return __wbg_adapter_552(a, state0.b, arg0, arg1);
|
|
2214
2207
|
} finally {
|
|
2215
2208
|
state0.a = a;
|
|
2216
2209
|
}
|
|
@@ -2315,56 +2308,56 @@ function __wbg_get_imports() {
|
|
|
2315
2308
|
const ret = wasm.memory;
|
|
2316
2309
|
return addHeapObject(ret);
|
|
2317
2310
|
};
|
|
2318
|
-
imports.wbg.
|
|
2319
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2311
|
+
imports.wbg.__wbindgen_closure_wrapper2148 = function(arg0, arg1, arg2) {
|
|
2312
|
+
const ret = makeMutClosure(arg0, arg1, 742, __wbg_adapter_58);
|
|
2320
2313
|
return addHeapObject(ret);
|
|
2321
2314
|
};
|
|
2322
|
-
imports.wbg.
|
|
2323
|
-
const ret = makeClosure(arg0, arg1,
|
|
2315
|
+
imports.wbg.__wbindgen_closure_wrapper2149 = function(arg0, arg1, arg2) {
|
|
2316
|
+
const ret = makeClosure(arg0, arg1, 742, __wbg_adapter_61);
|
|
2324
2317
|
return addHeapObject(ret);
|
|
2325
2318
|
};
|
|
2326
|
-
imports.wbg.
|
|
2327
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2319
|
+
imports.wbg.__wbindgen_closure_wrapper2150 = function(arg0, arg1, arg2) {
|
|
2320
|
+
const ret = makeMutClosure(arg0, arg1, 742, __wbg_adapter_64);
|
|
2328
2321
|
return addHeapObject(ret);
|
|
2329
2322
|
};
|
|
2330
|
-
imports.wbg.
|
|
2331
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2323
|
+
imports.wbg.__wbindgen_closure_wrapper2153 = function(arg0, arg1, arg2) {
|
|
2324
|
+
const ret = makeMutClosure(arg0, arg1, 742, __wbg_adapter_58);
|
|
2332
2325
|
return addHeapObject(ret);
|
|
2333
2326
|
};
|
|
2334
|
-
imports.wbg.
|
|
2335
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2327
|
+
imports.wbg.__wbindgen_closure_wrapper2155 = function(arg0, arg1, arg2) {
|
|
2328
|
+
const ret = makeMutClosure(arg0, arg1, 742, __wbg_adapter_58);
|
|
2336
2329
|
return addHeapObject(ret);
|
|
2337
2330
|
};
|
|
2338
|
-
imports.wbg.
|
|
2339
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2331
|
+
imports.wbg.__wbindgen_closure_wrapper4455 = function(arg0, arg1, arg2) {
|
|
2332
|
+
const ret = makeMutClosure(arg0, arg1, 1469, __wbg_adapter_71);
|
|
2340
2333
|
return addHeapObject(ret);
|
|
2341
2334
|
};
|
|
2342
|
-
imports.wbg.
|
|
2343
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2335
|
+
imports.wbg.__wbindgen_closure_wrapper4515 = function(arg0, arg1, arg2) {
|
|
2336
|
+
const ret = makeMutClosure(arg0, arg1, 1474, __wbg_adapter_74);
|
|
2344
2337
|
return addHeapObject(ret);
|
|
2345
2338
|
};
|
|
2346
|
-
imports.wbg.
|
|
2347
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2339
|
+
imports.wbg.__wbindgen_closure_wrapper5372 = function(arg0, arg1, arg2) {
|
|
2340
|
+
const ret = makeMutClosure(arg0, arg1, 1835, __wbg_adapter_77);
|
|
2348
2341
|
return addHeapObject(ret);
|
|
2349
2342
|
};
|
|
2350
|
-
imports.wbg.
|
|
2351
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2343
|
+
imports.wbg.__wbindgen_closure_wrapper5404 = function(arg0, arg1, arg2) {
|
|
2344
|
+
const ret = makeMutClosure(arg0, arg1, 1861, __wbg_adapter_80);
|
|
2352
2345
|
return addHeapObject(ret);
|
|
2353
2346
|
};
|
|
2354
|
-
imports.wbg.
|
|
2355
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2347
|
+
imports.wbg.__wbindgen_closure_wrapper5405 = function(arg0, arg1, arg2) {
|
|
2348
|
+
const ret = makeMutClosure(arg0, arg1, 1861, __wbg_adapter_80);
|
|
2356
2349
|
return addHeapObject(ret);
|
|
2357
2350
|
};
|
|
2358
|
-
imports.wbg.
|
|
2359
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2351
|
+
imports.wbg.__wbindgen_closure_wrapper5406 = function(arg0, arg1, arg2) {
|
|
2352
|
+
const ret = makeMutClosure(arg0, arg1, 1861, __wbg_adapter_80);
|
|
2360
2353
|
return addHeapObject(ret);
|
|
2361
2354
|
};
|
|
2362
|
-
imports.wbg.
|
|
2363
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2355
|
+
imports.wbg.__wbindgen_closure_wrapper7638 = function(arg0, arg1, arg2) {
|
|
2356
|
+
const ret = makeMutClosure(arg0, arg1, 2503, __wbg_adapter_87);
|
|
2364
2357
|
return addHeapObject(ret);
|
|
2365
2358
|
};
|
|
2366
|
-
imports.wbg.
|
|
2367
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2359
|
+
imports.wbg.__wbindgen_closure_wrapper7746 = function(arg0, arg1, arg2) {
|
|
2360
|
+
const ret = makeMutClosure(arg0, arg1, 2563, __wbg_adapter_90);
|
|
2368
2361
|
return addHeapObject(ret);
|
|
2369
2362
|
};
|
|
2370
2363
|
|
package/lumina_node_wasm_bg.wasm
CHANGED
|
Binary file
|