saito-wasm 0.2.162 → 0.2.164
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/Cargo.toml +1 -1
- package/package.json +1 -1
- package/pkg/node/index.d.ts +134 -134
- package/pkg/node/index.js +279 -279
- package/pkg/node/index_bg.wasm +0 -0
- package/pkg/node/package.json +1 -1
- package/pkg/web/index.d.ts +134 -134
- package/pkg/web/index.js +279 -279
- package/pkg/web/index_bg.wasm +0 -0
- package/pkg/web/package.json +1 -1
- /package/pkg/node/snippets/{saito-wasm-4fafc63e3cd3af2c → saito-wasm-21975b2e7dbeb5a0}/js/msg_handler.js +0 -0
- /package/pkg/web/snippets/{saito-wasm-4fafc63e3cd3af2c → saito-wasm-21975b2e7dbeb5a0}/js/msg_handler.js +0 -0
package/pkg/node/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
let imports = {};
|
|
2
2
|
imports['__wbindgen_placeholder__'] = module.exports;
|
|
3
3
|
let wasm;
|
|
4
|
-
const { MsgHandler } = require(String.raw`./snippets/saito-wasm-
|
|
4
|
+
const { MsgHandler } = require(String.raw`./snippets/saito-wasm-21975b2e7dbeb5a0/js/msg_handler.js`);
|
|
5
5
|
const { TextDecoder, TextEncoder } = require(`util`);
|
|
6
6
|
|
|
7
7
|
const heap = new Array(128).fill(undefined);
|
|
@@ -24,6 +24,15 @@ function takeObject(idx) {
|
|
|
24
24
|
return ret;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
+
function addHeapObject(obj) {
|
|
28
|
+
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
29
|
+
const idx = heap_next;
|
|
30
|
+
heap_next = heap[idx];
|
|
31
|
+
|
|
32
|
+
heap[idx] = obj;
|
|
33
|
+
return idx;
|
|
34
|
+
}
|
|
35
|
+
|
|
27
36
|
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
28
37
|
|
|
29
38
|
cachedTextDecoder.decode();
|
|
@@ -42,15 +51,6 @@ function getStringFromWasm0(ptr, len) {
|
|
|
42
51
|
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
43
52
|
}
|
|
44
53
|
|
|
45
|
-
function addHeapObject(obj) {
|
|
46
|
-
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
47
|
-
const idx = heap_next;
|
|
48
|
-
heap_next = heap[idx];
|
|
49
|
-
|
|
50
|
-
heap[idx] = obj;
|
|
51
|
-
return idx;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
54
|
let WASM_VECTOR_LEN = 0;
|
|
55
55
|
|
|
56
56
|
let cachedTextEncoder = new TextEncoder('utf-8');
|
|
@@ -242,6 +242,35 @@ function addBorrowedObject(obj) {
|
|
|
242
242
|
heap[--stack_pointer] = obj;
|
|
243
243
|
return stack_pointer;
|
|
244
244
|
}
|
|
245
|
+
/**
|
|
246
|
+
* @param {string} private_key
|
|
247
|
+
* @returns {string}
|
|
248
|
+
*/
|
|
249
|
+
module.exports.generate_public_key = function(private_key) {
|
|
250
|
+
try {
|
|
251
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
252
|
+
wasm.generate_public_key(retptr, addHeapObject(private_key));
|
|
253
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
254
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
255
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
256
|
+
if (r2) {
|
|
257
|
+
throw takeObject(r1);
|
|
258
|
+
}
|
|
259
|
+
return takeObject(r0);
|
|
260
|
+
} finally {
|
|
261
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
262
|
+
}
|
|
263
|
+
};
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* @param {bigint} current_time
|
|
267
|
+
* @returns {Promise<void>}
|
|
268
|
+
*/
|
|
269
|
+
module.exports.process_stat_interval = function(current_time) {
|
|
270
|
+
const ret = wasm.process_stat_interval(current_time);
|
|
271
|
+
return takeObject(ret);
|
|
272
|
+
};
|
|
273
|
+
|
|
245
274
|
/**
|
|
246
275
|
* @param {string} public_key
|
|
247
276
|
* @returns {Promise<Array<any>>}
|
|
@@ -251,6 +280,14 @@ module.exports.get_account_slips = function(public_key) {
|
|
|
251
280
|
return takeObject(ret);
|
|
252
281
|
};
|
|
253
282
|
|
|
283
|
+
/**
|
|
284
|
+
* @returns {Promise<string>}
|
|
285
|
+
*/
|
|
286
|
+
module.exports.get_latest_block_hash = function() {
|
|
287
|
+
const ret = wasm.get_latest_block_hash();
|
|
288
|
+
return takeObject(ret);
|
|
289
|
+
};
|
|
290
|
+
|
|
254
291
|
/**
|
|
255
292
|
* @param {bigint} peer_index
|
|
256
293
|
* @returns {Promise<WasmPeer | undefined>}
|
|
@@ -261,10 +298,10 @@ module.exports.get_peer = function(peer_index) {
|
|
|
261
298
|
};
|
|
262
299
|
|
|
263
300
|
/**
|
|
264
|
-
* @returns {Promise<
|
|
301
|
+
* @returns {Promise<boolean>}
|
|
265
302
|
*/
|
|
266
|
-
module.exports.
|
|
267
|
-
const ret = wasm.
|
|
303
|
+
module.exports.produce_block_without_gt = function() {
|
|
304
|
+
const ret = wasm.produce_block_without_gt();
|
|
268
305
|
return takeObject(ret);
|
|
269
306
|
};
|
|
270
307
|
|
|
@@ -274,42 +311,29 @@ module.exports.get_confirmations = function() {
|
|
|
274
311
|
* @param {bigint} peer_index
|
|
275
312
|
* @returns {Promise<void>}
|
|
276
313
|
*/
|
|
277
|
-
module.exports.
|
|
278
|
-
const ret = wasm.
|
|
314
|
+
module.exports.send_api_call = function(buffer, msg_index, peer_index) {
|
|
315
|
+
const ret = wasm.send_api_call(addHeapObject(buffer), msg_index, peer_index);
|
|
279
316
|
return takeObject(ret);
|
|
280
317
|
};
|
|
281
318
|
|
|
282
319
|
/**
|
|
283
|
-
* @param {
|
|
284
|
-
* @param {
|
|
285
|
-
* @param {number} patch
|
|
320
|
+
* @param {bigint} peer_index
|
|
321
|
+
* @param {string} public_key
|
|
286
322
|
* @returns {Promise<void>}
|
|
287
323
|
*/
|
|
288
|
-
module.exports.
|
|
289
|
-
const ret = wasm.
|
|
290
|
-
return takeObject(ret);
|
|
291
|
-
};
|
|
292
|
-
|
|
293
|
-
/**
|
|
294
|
-
* @param {string} block_hash
|
|
295
|
-
* @returns {Promise<WasmBlock>}
|
|
296
|
-
*/
|
|
297
|
-
module.exports.get_block = function(block_hash) {
|
|
298
|
-
const ret = wasm.get_block(addHeapObject(block_hash));
|
|
324
|
+
module.exports.process_stun_peer = function(peer_index, public_key) {
|
|
325
|
+
const ret = wasm.process_stun_peer(peer_index, addHeapObject(public_key));
|
|
299
326
|
return takeObject(ret);
|
|
300
327
|
};
|
|
301
328
|
|
|
302
329
|
/**
|
|
303
|
-
* @param {
|
|
304
|
-
* @param {bigint}
|
|
305
|
-
* @param {
|
|
306
|
-
* @
|
|
307
|
-
* @param {string} recipient_public_key
|
|
308
|
-
* @param {string} nft_type
|
|
309
|
-
* @returns {Promise<WasmTransaction>}
|
|
330
|
+
* @param {Uint8Array} hash
|
|
331
|
+
* @param {bigint} block_id
|
|
332
|
+
* @param {bigint} peer_index
|
|
333
|
+
* @returns {Promise<void>}
|
|
310
334
|
*/
|
|
311
|
-
module.exports.
|
|
312
|
-
const ret = wasm.
|
|
335
|
+
module.exports.process_failed_block_fetch = function(hash, block_id, peer_index) {
|
|
336
|
+
const ret = wasm.process_failed_block_fetch(addHeapObject(hash), block_id, peer_index);
|
|
313
337
|
return takeObject(ret);
|
|
314
338
|
};
|
|
315
339
|
|
|
@@ -327,31 +351,19 @@ module.exports.initialize = function(config_json, private_key, log_level_num, ha
|
|
|
327
351
|
};
|
|
328
352
|
|
|
329
353
|
/**
|
|
330
|
-
* @param {
|
|
331
|
-
* @param {string} signature
|
|
332
|
-
* @param {string} public_key
|
|
354
|
+
* @param {string} key
|
|
333
355
|
* @returns {boolean}
|
|
334
356
|
*/
|
|
335
|
-
module.exports.
|
|
336
|
-
const ret = wasm.
|
|
357
|
+
module.exports.is_valid_public_key = function(key) {
|
|
358
|
+
const ret = wasm.is_valid_public_key(addHeapObject(key));
|
|
337
359
|
return ret !== 0;
|
|
338
360
|
};
|
|
339
361
|
|
|
340
362
|
/**
|
|
341
|
-
* @returns {Promise<
|
|
342
|
-
*/
|
|
343
|
-
module.exports.get_stats = function() {
|
|
344
|
-
const ret = wasm.get_stats();
|
|
345
|
-
return takeObject(ret);
|
|
346
|
-
};
|
|
347
|
-
|
|
348
|
-
/**
|
|
349
|
-
* @param {bigint} peer_index
|
|
350
|
-
* @param {string} public_key
|
|
351
|
-
* @returns {Promise<void>}
|
|
363
|
+
* @returns {Promise<Array<any>>}
|
|
352
364
|
*/
|
|
353
|
-
module.exports.
|
|
354
|
-
const ret = wasm.
|
|
365
|
+
module.exports.get_nft_list = function() {
|
|
366
|
+
const ret = wasm.get_nft_list();
|
|
355
367
|
return takeObject(ret);
|
|
356
368
|
};
|
|
357
369
|
|
|
@@ -368,50 +380,108 @@ module.exports.create_merge_bound_transaction = function(nft_id_hex, tx_msg) {
|
|
|
368
380
|
};
|
|
369
381
|
|
|
370
382
|
/**
|
|
371
|
-
* @
|
|
383
|
+
* @returns {Promise<WasmBlockchain>}
|
|
384
|
+
*/
|
|
385
|
+
module.exports.get_blockchain = function() {
|
|
386
|
+
const ret = wasm.get_blockchain();
|
|
387
|
+
return takeObject(ret);
|
|
388
|
+
};
|
|
389
|
+
|
|
390
|
+
/**
|
|
391
|
+
* @param {Array<any>} keys
|
|
392
|
+
* @returns {Promise<WasmBalanceSnapshot>}
|
|
393
|
+
*/
|
|
394
|
+
module.exports.get_balance_snapshot = function(keys) {
|
|
395
|
+
const ret = wasm.get_balance_snapshot(addHeapObject(keys));
|
|
396
|
+
return takeObject(ret);
|
|
397
|
+
};
|
|
398
|
+
|
|
399
|
+
/**
|
|
400
|
+
* @param {bigint} threshold
|
|
372
401
|
* @returns {Promise<void>}
|
|
373
402
|
*/
|
|
374
|
-
module.exports.
|
|
375
|
-
|
|
376
|
-
|
|
403
|
+
module.exports.write_issuance_file = function(threshold) {
|
|
404
|
+
const ret = wasm.write_issuance_file(threshold);
|
|
405
|
+
return takeObject(ret);
|
|
406
|
+
};
|
|
407
|
+
|
|
408
|
+
/**
|
|
409
|
+
* @param {Uint8Array} buffer
|
|
410
|
+
* @param {Uint8Array} hash
|
|
411
|
+
* @param {bigint} block_id
|
|
412
|
+
* @param {bigint} peer_index
|
|
413
|
+
* @returns {Promise<void>}
|
|
414
|
+
*/
|
|
415
|
+
module.exports.process_fetched_block = function(buffer, hash, block_id, peer_index) {
|
|
416
|
+
const ret = wasm.process_fetched_block(addHeapObject(buffer), addHeapObject(hash), block_id, peer_index);
|
|
417
|
+
return takeObject(ret);
|
|
418
|
+
};
|
|
419
|
+
|
|
420
|
+
/**
|
|
421
|
+
* @returns {Promise<bigint>}
|
|
422
|
+
*/
|
|
423
|
+
module.exports.get_next_peer_index = function() {
|
|
424
|
+
const ret = wasm.get_next_peer_index();
|
|
377
425
|
return takeObject(ret);
|
|
378
426
|
};
|
|
379
427
|
|
|
380
428
|
/**
|
|
381
429
|
* @returns {Promise<Array<any>>}
|
|
382
430
|
*/
|
|
383
|
-
module.exports.
|
|
384
|
-
const ret = wasm.
|
|
431
|
+
module.exports.get_mempool_txs = function() {
|
|
432
|
+
const ret = wasm.get_mempool_txs();
|
|
385
433
|
return takeObject(ret);
|
|
386
434
|
};
|
|
387
435
|
|
|
388
436
|
/**
|
|
437
|
+
* @returns {Promise<boolean>}
|
|
438
|
+
*/
|
|
439
|
+
module.exports.produce_block_with_gt = function() {
|
|
440
|
+
const ret = wasm.produce_block_with_gt();
|
|
441
|
+
return takeObject(ret);
|
|
442
|
+
};
|
|
443
|
+
|
|
444
|
+
/**
|
|
445
|
+
* @returns {string}
|
|
446
|
+
*/
|
|
447
|
+
module.exports.generate_private_key = function() {
|
|
448
|
+
const ret = wasm.generate_private_key();
|
|
449
|
+
return takeObject(ret);
|
|
450
|
+
};
|
|
451
|
+
|
|
452
|
+
/**
|
|
453
|
+
* @param {Uint8Array} buffer
|
|
454
|
+
* @param {number} msg_index
|
|
389
455
|
* @param {bigint} peer_index
|
|
390
|
-
* @param {string} ip
|
|
391
456
|
* @returns {Promise<void>}
|
|
392
457
|
*/
|
|
393
|
-
module.exports.
|
|
394
|
-
const ret = wasm.
|
|
458
|
+
module.exports.send_api_error = function(buffer, msg_index, peer_index) {
|
|
459
|
+
const ret = wasm.send_api_error(addHeapObject(buffer), msg_index, peer_index);
|
|
395
460
|
return takeObject(ret);
|
|
396
461
|
};
|
|
397
462
|
|
|
398
463
|
/**
|
|
399
|
-
* @param {
|
|
400
|
-
* @
|
|
464
|
+
* @param {string} slip1_utxo_key
|
|
465
|
+
* @param {string} slip2_utxo_key
|
|
466
|
+
* @param {string} slip3_utxo_key
|
|
467
|
+
* @param {number} left_count
|
|
468
|
+
* @param {number} right_count
|
|
469
|
+
* @param {Uint8Array} tx_msg
|
|
470
|
+
* @returns {Promise<WasmTransaction>}
|
|
401
471
|
*/
|
|
402
|
-
module.exports.
|
|
403
|
-
|
|
404
|
-
var ptr0 = snapshot.__destroy_into_raw();
|
|
405
|
-
const ret = wasm.update_from_balance_snapshot(ptr0);
|
|
472
|
+
module.exports.create_split_bound_transaction = function(slip1_utxo_key, slip2_utxo_key, slip3_utxo_key, left_count, right_count, tx_msg) {
|
|
473
|
+
const ret = wasm.create_split_bound_transaction(addHeapObject(slip1_utxo_key), addHeapObject(slip2_utxo_key), addHeapObject(slip3_utxo_key), left_count, right_count, addHeapObject(tx_msg));
|
|
406
474
|
return takeObject(ret);
|
|
407
475
|
};
|
|
408
476
|
|
|
409
477
|
/**
|
|
410
|
-
* @param {
|
|
478
|
+
* @param {WasmBalanceSnapshot} snapshot
|
|
411
479
|
* @returns {Promise<void>}
|
|
412
480
|
*/
|
|
413
|
-
module.exports.
|
|
414
|
-
|
|
481
|
+
module.exports.update_from_balance_snapshot = function(snapshot) {
|
|
482
|
+
_assertClass(snapshot, WasmBalanceSnapshot);
|
|
483
|
+
var ptr0 = snapshot.__destroy_into_raw();
|
|
484
|
+
const ret = wasm.update_from_balance_snapshot(ptr0);
|
|
415
485
|
return takeObject(ret);
|
|
416
486
|
};
|
|
417
487
|
|
|
@@ -430,73 +500,69 @@ module.exports.create_send_bound_transaction = function(amt, slip1_utxo_key, sli
|
|
|
430
500
|
};
|
|
431
501
|
|
|
432
502
|
/**
|
|
433
|
-
* @param {
|
|
434
|
-
* @
|
|
435
|
-
* @returns {string}
|
|
503
|
+
* @param {string} block_hash
|
|
504
|
+
* @returns {Promise<WasmBlock>}
|
|
436
505
|
*/
|
|
437
|
-
module.exports.
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
wasm.sign_buffer(retptr, addHeapObject(buffer), addHeapObject(private_key));
|
|
441
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
442
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
443
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
444
|
-
if (r2) {
|
|
445
|
-
throw takeObject(r1);
|
|
446
|
-
}
|
|
447
|
-
return takeObject(r0);
|
|
448
|
-
} finally {
|
|
449
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
450
|
-
}
|
|
506
|
+
module.exports.get_block = function(block_hash) {
|
|
507
|
+
const ret = wasm.get_block(addHeapObject(block_hash));
|
|
508
|
+
return takeObject(ret);
|
|
451
509
|
};
|
|
452
510
|
|
|
453
511
|
/**
|
|
454
|
-
* @
|
|
455
|
-
* @returns {Promise<void>}
|
|
512
|
+
* @returns {Promise<string>}
|
|
456
513
|
*/
|
|
457
|
-
module.exports.
|
|
458
|
-
const ret = wasm.
|
|
514
|
+
module.exports.get_peer_stats = function() {
|
|
515
|
+
const ret = wasm.get_peer_stats();
|
|
459
516
|
return takeObject(ret);
|
|
460
517
|
};
|
|
461
518
|
|
|
462
519
|
/**
|
|
463
|
-
* @
|
|
520
|
+
* @param {bigint} peer_index
|
|
521
|
+
* @returns {Promise<void>}
|
|
464
522
|
*/
|
|
465
|
-
module.exports.
|
|
466
|
-
const ret = wasm.
|
|
523
|
+
module.exports.remove_stun_peer = function(peer_index) {
|
|
524
|
+
const ret = wasm.remove_stun_peer(peer_index);
|
|
467
525
|
return takeObject(ret);
|
|
468
526
|
};
|
|
469
527
|
|
|
470
528
|
/**
|
|
471
|
-
* @
|
|
529
|
+
* @param {Uint8Array} buffer
|
|
530
|
+
* @returns {string}
|
|
472
531
|
*/
|
|
473
|
-
module.exports.
|
|
474
|
-
const ret = wasm.
|
|
532
|
+
module.exports.hash = function(buffer) {
|
|
533
|
+
const ret = wasm.hash(addHeapObject(buffer));
|
|
475
534
|
return takeObject(ret);
|
|
476
535
|
};
|
|
477
536
|
|
|
478
537
|
/**
|
|
479
|
-
* @param {
|
|
480
|
-
* @
|
|
538
|
+
* @param {Array<any>} public_keys
|
|
539
|
+
* @param {BigUint64Array} amounts
|
|
540
|
+
* @param {bigint} fee
|
|
541
|
+
* @param {boolean} _force_merge
|
|
542
|
+
* @returns {Promise<WasmTransaction>}
|
|
481
543
|
*/
|
|
482
|
-
module.exports.
|
|
483
|
-
const ret = wasm.
|
|
544
|
+
module.exports.create_transaction_with_multiple_payments = function(public_keys, amounts, fee, _force_merge) {
|
|
545
|
+
const ret = wasm.create_transaction_with_multiple_payments(addHeapObject(public_keys), addHeapObject(amounts), fee, _force_merge);
|
|
484
546
|
return takeObject(ret);
|
|
485
547
|
};
|
|
486
548
|
|
|
487
549
|
/**
|
|
488
|
-
* @
|
|
550
|
+
* @param {bigint} duration_in_ms
|
|
551
|
+
* @returns {Promise<void>}
|
|
489
552
|
*/
|
|
490
|
-
module.exports.
|
|
491
|
-
const ret = wasm.
|
|
553
|
+
module.exports.process_timer_event = function(duration_in_ms) {
|
|
554
|
+
const ret = wasm.process_timer_event(duration_in_ms);
|
|
492
555
|
return takeObject(ret);
|
|
493
556
|
};
|
|
494
557
|
|
|
495
558
|
/**
|
|
496
|
-
* @
|
|
559
|
+
* @param {number} major
|
|
560
|
+
* @param {number} minor
|
|
561
|
+
* @param {number} patch
|
|
562
|
+
* @returns {Promise<void>}
|
|
497
563
|
*/
|
|
498
|
-
module.exports.
|
|
499
|
-
const ret = wasm.
|
|
564
|
+
module.exports.set_wallet_version = function(major, minor, patch) {
|
|
565
|
+
const ret = wasm.set_wallet_version(major, minor, patch);
|
|
500
566
|
return takeObject(ret);
|
|
501
567
|
};
|
|
502
568
|
|
|
@@ -512,33 +578,49 @@ module.exports.send_api_success = function(buffer, msg_index, peer_index) {
|
|
|
512
578
|
};
|
|
513
579
|
|
|
514
580
|
/**
|
|
515
|
-
* @
|
|
581
|
+
* @param {bigint} peer_index
|
|
582
|
+
* @param {string} ip
|
|
583
|
+
* @returns {Promise<void>}
|
|
516
584
|
*/
|
|
517
|
-
module.exports.
|
|
518
|
-
const ret = wasm.
|
|
585
|
+
module.exports.process_new_peer = function(peer_index, ip) {
|
|
586
|
+
const ret = wasm.process_new_peer(peer_index, addHeapObject(ip));
|
|
519
587
|
return takeObject(ret);
|
|
520
588
|
};
|
|
521
589
|
|
|
522
590
|
/**
|
|
523
|
-
* @param {
|
|
524
|
-
* @param {string}
|
|
525
|
-
* @param {string}
|
|
526
|
-
* @
|
|
527
|
-
* @param {number} right_count
|
|
528
|
-
* @param {Uint8Array} tx_msg
|
|
529
|
-
* @returns {Promise<WasmTransaction>}
|
|
591
|
+
* @param {Uint8Array} buffer
|
|
592
|
+
* @param {string} signature
|
|
593
|
+
* @param {string} public_key
|
|
594
|
+
* @returns {boolean}
|
|
530
595
|
*/
|
|
531
|
-
module.exports.
|
|
532
|
-
const ret = wasm.
|
|
596
|
+
module.exports.verify_signature = function(buffer, signature, public_key) {
|
|
597
|
+
const ret = wasm.verify_signature(addHeapObject(buffer), addHeapObject(signature), addHeapObject(public_key));
|
|
598
|
+
return ret !== 0;
|
|
599
|
+
};
|
|
600
|
+
|
|
601
|
+
/**
|
|
602
|
+
* @returns {Promise<Array<any>>}
|
|
603
|
+
*/
|
|
604
|
+
module.exports.get_peers = function() {
|
|
605
|
+
const ret = wasm.get_peers();
|
|
533
606
|
return takeObject(ret);
|
|
534
607
|
};
|
|
535
608
|
|
|
536
609
|
/**
|
|
610
|
+
* @param {Uint8Array} buffer
|
|
537
611
|
* @param {bigint} peer_index
|
|
538
612
|
* @returns {Promise<void>}
|
|
539
613
|
*/
|
|
540
|
-
module.exports.
|
|
541
|
-
const ret = wasm.
|
|
614
|
+
module.exports.process_msg_buffer_from_peer = function(buffer, peer_index) {
|
|
615
|
+
const ret = wasm.process_msg_buffer_from_peer(addHeapObject(buffer), peer_index);
|
|
616
|
+
return takeObject(ret);
|
|
617
|
+
};
|
|
618
|
+
|
|
619
|
+
/**
|
|
620
|
+
* @returns {Promise<void>}
|
|
621
|
+
*/
|
|
622
|
+
module.exports.start_from_received_ghost_chain = function() {
|
|
623
|
+
const ret = wasm.start_from_received_ghost_chain();
|
|
542
624
|
return takeObject(ret);
|
|
543
625
|
};
|
|
544
626
|
|
|
@@ -555,21 +637,22 @@ module.exports.create_transaction = function(public_key, amount, fee, force_merg
|
|
|
555
637
|
};
|
|
556
638
|
|
|
557
639
|
/**
|
|
558
|
-
* @returns {Promise<
|
|
640
|
+
* @returns {Promise<string>}
|
|
559
641
|
*/
|
|
560
|
-
module.exports.
|
|
561
|
-
const ret = wasm.
|
|
642
|
+
module.exports.get_congestion_stats = function() {
|
|
643
|
+
const ret = wasm.get_congestion_stats();
|
|
562
644
|
return takeObject(ret);
|
|
563
645
|
};
|
|
564
646
|
|
|
565
647
|
/**
|
|
648
|
+
* @param {Uint8Array} buffer
|
|
566
649
|
* @param {string} private_key
|
|
567
650
|
* @returns {string}
|
|
568
651
|
*/
|
|
569
|
-
module.exports.
|
|
652
|
+
module.exports.sign_buffer = function(buffer, private_key) {
|
|
570
653
|
try {
|
|
571
654
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
572
|
-
wasm.
|
|
655
|
+
wasm.sign_buffer(retptr, addHeapObject(buffer), addHeapObject(private_key));
|
|
573
656
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
574
657
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
575
658
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -591,142 +674,59 @@ module.exports.get_wallet = function() {
|
|
|
591
674
|
};
|
|
592
675
|
|
|
593
676
|
/**
|
|
594
|
-
* @
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
const ret = wasm.get_mempool_txs();
|
|
598
|
-
return takeObject(ret);
|
|
599
|
-
};
|
|
600
|
-
|
|
601
|
-
/**
|
|
602
|
-
* @returns {Promise<void>}
|
|
603
|
-
*/
|
|
604
|
-
module.exports.start_from_received_ghost_chain = function() {
|
|
605
|
-
const ret = wasm.start_from_received_ghost_chain();
|
|
606
|
-
return takeObject(ret);
|
|
607
|
-
};
|
|
608
|
-
|
|
609
|
-
/**
|
|
610
|
-
* @param {bigint} current_time
|
|
611
|
-
* @returns {Promise<void>}
|
|
612
|
-
*/
|
|
613
|
-
module.exports.process_stat_interval = function(current_time) {
|
|
614
|
-
const ret = wasm.process_stat_interval(current_time);
|
|
615
|
-
return takeObject(ret);
|
|
616
|
-
};
|
|
617
|
-
|
|
618
|
-
/**
|
|
619
|
-
* @returns {string}
|
|
620
|
-
*/
|
|
621
|
-
module.exports.generate_private_key = function() {
|
|
622
|
-
const ret = wasm.generate_private_key();
|
|
623
|
-
return takeObject(ret);
|
|
624
|
-
};
|
|
625
|
-
|
|
626
|
-
/**
|
|
627
|
-
* @param {Uint8Array} buffer
|
|
628
|
-
* @param {Uint8Array} hash
|
|
629
|
-
* @param {bigint} block_id
|
|
630
|
-
* @param {bigint} peer_index
|
|
631
|
-
* @returns {Promise<void>}
|
|
632
|
-
*/
|
|
633
|
-
module.exports.process_fetched_block = function(buffer, hash, block_id, peer_index) {
|
|
634
|
-
const ret = wasm.process_fetched_block(addHeapObject(buffer), addHeapObject(hash), block_id, peer_index);
|
|
635
|
-
return takeObject(ret);
|
|
636
|
-
};
|
|
637
|
-
|
|
638
|
-
/**
|
|
639
|
-
* @returns {Promise<Array<any>>}
|
|
640
|
-
*/
|
|
641
|
-
module.exports.get_peers = function() {
|
|
642
|
-
const ret = wasm.get_peers();
|
|
643
|
-
return takeObject(ret);
|
|
644
|
-
};
|
|
645
|
-
|
|
646
|
-
/**
|
|
647
|
-
* @param {Uint8Array} buffer
|
|
648
|
-
* @param {bigint} peer_index
|
|
649
|
-
* @returns {Promise<void>}
|
|
650
|
-
*/
|
|
651
|
-
module.exports.process_msg_buffer_from_peer = function(buffer, peer_index) {
|
|
652
|
-
const ret = wasm.process_msg_buffer_from_peer(addHeapObject(buffer), peer_index);
|
|
653
|
-
return takeObject(ret);
|
|
654
|
-
};
|
|
655
|
-
|
|
656
|
-
/**
|
|
657
|
-
* @param {string} key
|
|
658
|
-
* @returns {boolean}
|
|
659
|
-
*/
|
|
660
|
-
module.exports.is_valid_public_key = function(key) {
|
|
661
|
-
const ret = wasm.is_valid_public_key(addHeapObject(key));
|
|
662
|
-
return ret !== 0;
|
|
663
|
-
};
|
|
664
|
-
|
|
665
|
-
/**
|
|
666
|
-
* @param {Array<any>} public_keys
|
|
667
|
-
* @param {BigUint64Array} amounts
|
|
677
|
+
* @param {bigint} num
|
|
678
|
+
* @param {bigint} deposit
|
|
679
|
+
* @param {Uint8Array} tx_msg
|
|
668
680
|
* @param {bigint} fee
|
|
669
|
-
* @param {
|
|
681
|
+
* @param {string} recipient_public_key
|
|
682
|
+
* @param {string} nft_type
|
|
670
683
|
* @returns {Promise<WasmTransaction>}
|
|
671
684
|
*/
|
|
672
|
-
module.exports.
|
|
673
|
-
const ret = wasm.
|
|
685
|
+
module.exports.create_bound_transaction = function(num, deposit, tx_msg, fee, recipient_public_key, nft_type) {
|
|
686
|
+
const ret = wasm.create_bound_transaction(num, deposit, addHeapObject(tx_msg), fee, addHeapObject(recipient_public_key), addHeapObject(nft_type));
|
|
674
687
|
return takeObject(ret);
|
|
675
688
|
};
|
|
676
689
|
|
|
677
690
|
/**
|
|
678
|
-
* @returns {Promise<
|
|
691
|
+
* @returns {Promise<any>}
|
|
679
692
|
*/
|
|
680
|
-
module.exports.
|
|
681
|
-
const ret = wasm.
|
|
693
|
+
module.exports.get_confirmations = function() {
|
|
694
|
+
const ret = wasm.get_confirmations();
|
|
682
695
|
return takeObject(ret);
|
|
683
696
|
};
|
|
684
697
|
|
|
685
698
|
/**
|
|
699
|
+
* @param {WasmTransaction} tx
|
|
686
700
|
* @returns {Promise<void>}
|
|
687
701
|
*/
|
|
688
|
-
module.exports.
|
|
689
|
-
|
|
702
|
+
module.exports.propagate_transaction = function(tx) {
|
|
703
|
+
_assertClass(tx, WasmTransaction);
|
|
704
|
+
const ret = wasm.propagate_transaction(tx.__wbg_ptr);
|
|
690
705
|
return takeObject(ret);
|
|
691
706
|
};
|
|
692
707
|
|
|
693
708
|
/**
|
|
694
|
-
* @
|
|
695
|
-
* @returns {string}
|
|
709
|
+
* @returns {Promise<string>}
|
|
696
710
|
*/
|
|
697
|
-
module.exports.
|
|
698
|
-
const ret = wasm.
|
|
711
|
+
module.exports.get_stats = function() {
|
|
712
|
+
const ret = wasm.get_stats();
|
|
699
713
|
return takeObject(ret);
|
|
700
714
|
};
|
|
701
715
|
|
|
702
716
|
/**
|
|
703
|
-
* @param {Uint8Array} hash
|
|
704
|
-
* @param {bigint} block_id
|
|
705
717
|
* @param {bigint} peer_index
|
|
706
718
|
* @returns {Promise<void>}
|
|
707
719
|
*/
|
|
708
|
-
module.exports.
|
|
709
|
-
const ret = wasm.
|
|
720
|
+
module.exports.process_peer_disconnection = function(peer_index) {
|
|
721
|
+
const ret = wasm.process_peer_disconnection(peer_index);
|
|
710
722
|
return takeObject(ret);
|
|
711
723
|
};
|
|
712
724
|
|
|
713
725
|
/**
|
|
714
|
-
* @param {Uint8Array} buffer
|
|
715
|
-
* @param {number} msg_index
|
|
716
|
-
* @param {bigint} peer_index
|
|
717
726
|
* @returns {Promise<void>}
|
|
718
727
|
*/
|
|
719
|
-
module.exports.
|
|
720
|
-
const ret = wasm.
|
|
721
|
-
return takeObject(ret);
|
|
722
|
-
};
|
|
723
|
-
|
|
724
|
-
/**
|
|
725
|
-
* @param {Array<any>} keys
|
|
726
|
-
* @returns {Promise<WasmBalanceSnapshot>}
|
|
727
|
-
*/
|
|
728
|
-
module.exports.get_balance_snapshot = function(keys) {
|
|
729
|
-
const ret = wasm.get_balance_snapshot(addHeapObject(keys));
|
|
728
|
+
module.exports.disable_producing_blocks_by_timer = function() {
|
|
729
|
+
const ret = wasm.disable_producing_blocks_by_timer();
|
|
730
730
|
return takeObject(ret);
|
|
731
731
|
};
|
|
732
732
|
|
|
@@ -2645,8 +2645,8 @@ module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
|
2645
2645
|
takeObject(arg0);
|
|
2646
2646
|
};
|
|
2647
2647
|
|
|
2648
|
-
module.exports.
|
|
2649
|
-
const ret =
|
|
2648
|
+
module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
2649
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
2650
2650
|
return addHeapObject(ret);
|
|
2651
2651
|
};
|
|
2652
2652
|
|
|
@@ -2655,23 +2655,23 @@ module.exports.__wbg_wasmtransaction_new = function(arg0) {
|
|
|
2655
2655
|
return addHeapObject(ret);
|
|
2656
2656
|
};
|
|
2657
2657
|
|
|
2658
|
-
module.exports.
|
|
2659
|
-
const ret =
|
|
2658
|
+
module.exports.__wbg_wasmpeer_new = function(arg0) {
|
|
2659
|
+
const ret = WasmPeer.__wrap(arg0);
|
|
2660
2660
|
return addHeapObject(ret);
|
|
2661
2661
|
};
|
|
2662
2662
|
|
|
2663
|
-
module.exports.
|
|
2664
|
-
const ret =
|
|
2663
|
+
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
2664
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
2665
2665
|
return addHeapObject(ret);
|
|
2666
2666
|
};
|
|
2667
2667
|
|
|
2668
|
-
module.exports.
|
|
2669
|
-
const ret =
|
|
2668
|
+
module.exports.__wbindgen_object_clone_ref = function(arg0) {
|
|
2669
|
+
const ret = getObject(arg0);
|
|
2670
2670
|
return addHeapObject(ret);
|
|
2671
2671
|
};
|
|
2672
2672
|
|
|
2673
|
-
module.exports.
|
|
2674
|
-
const ret =
|
|
2673
|
+
module.exports.__wbg_wasmslip_new = function(arg0) {
|
|
2674
|
+
const ret = WasmSlip.__wrap(arg0);
|
|
2675
2675
|
return addHeapObject(ret);
|
|
2676
2676
|
};
|
|
2677
2677
|
|
|
@@ -2689,28 +2689,28 @@ module.exports.__wbg_wasmblock_new = function(arg0) {
|
|
|
2689
2689
|
return addHeapObject(ret);
|
|
2690
2690
|
};
|
|
2691
2691
|
|
|
2692
|
-
module.exports.
|
|
2693
|
-
const ret =
|
|
2692
|
+
module.exports.__wbg_wasmnft_new = function(arg0) {
|
|
2693
|
+
const ret = WasmNFT.__wrap(arg0);
|
|
2694
2694
|
return addHeapObject(ret);
|
|
2695
2695
|
};
|
|
2696
2696
|
|
|
2697
|
-
module.exports.
|
|
2698
|
-
const ret =
|
|
2697
|
+
module.exports.__wbg_wasmwalletslip_new = function(arg0) {
|
|
2698
|
+
const ret = WasmWalletSlip.__wrap(arg0);
|
|
2699
2699
|
return addHeapObject(ret);
|
|
2700
2700
|
};
|
|
2701
2701
|
|
|
2702
|
-
module.exports.
|
|
2703
|
-
const ret =
|
|
2702
|
+
module.exports.__wbg_wasmwallet_new = function(arg0) {
|
|
2703
|
+
const ret = WasmWallet.__wrap(arg0);
|
|
2704
2704
|
return addHeapObject(ret);
|
|
2705
2705
|
};
|
|
2706
2706
|
|
|
2707
|
-
module.exports.
|
|
2708
|
-
const ret =
|
|
2707
|
+
module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
|
|
2708
|
+
const ret = WasmBalanceSnapshot.__wrap(arg0);
|
|
2709
2709
|
return addHeapObject(ret);
|
|
2710
2710
|
};
|
|
2711
2711
|
|
|
2712
|
-
module.exports.
|
|
2713
|
-
const ret =
|
|
2712
|
+
module.exports.__wbg_wasmblockchain_new = function(arg0) {
|
|
2713
|
+
const ret = WasmBlockchain.__wrap(arg0);
|
|
2714
2714
|
return addHeapObject(ret);
|
|
2715
2715
|
};
|
|
2716
2716
|
|
|
@@ -2745,7 +2745,7 @@ module.exports.__wbg_wasmpeerservice_new = function(arg0) {
|
|
|
2745
2745
|
return addHeapObject(ret);
|
|
2746
2746
|
};
|
|
2747
2747
|
|
|
2748
|
-
module.exports.
|
|
2748
|
+
module.exports.__wbg_flushdata_aece8dc223521e86 = function(arg0, arg1) {
|
|
2749
2749
|
let deferred0_0;
|
|
2750
2750
|
let deferred0_1;
|
|
2751
2751
|
try {
|
|
@@ -2757,7 +2757,7 @@ module.exports.__wbg_flushdata_18a251eb49cec9a9 = function(arg0, arg1) {
|
|
|
2757
2757
|
}
|
|
2758
2758
|
};
|
|
2759
2759
|
|
|
2760
|
-
module.exports.
|
|
2760
|
+
module.exports.__wbg_readvalue_6b30d6a36eadedae = function() { return handleError(function (arg0, arg1) {
|
|
2761
2761
|
let deferred0_0;
|
|
2762
2762
|
let deferred0_1;
|
|
2763
2763
|
try {
|
|
@@ -2770,15 +2770,15 @@ module.exports.__wbg_readvalue_63d41520b484fd87 = function() { return handleErro
|
|
|
2770
2770
|
}
|
|
2771
2771
|
}, arguments) };
|
|
2772
2772
|
|
|
2773
|
-
module.exports.
|
|
2773
|
+
module.exports.__wbg_loadwallet_859958a8a64bf9fa = function() {
|
|
2774
2774
|
MsgHandler.load_wallet();
|
|
2775
2775
|
};
|
|
2776
2776
|
|
|
2777
|
-
module.exports.
|
|
2777
|
+
module.exports.__wbg_savewallet_2980f66ae84af44e = function() {
|
|
2778
2778
|
MsgHandler.save_wallet();
|
|
2779
2779
|
};
|
|
2780
2780
|
|
|
2781
|
-
module.exports.
|
|
2781
|
+
module.exports.__wbg_writevalue_6c5d0ae738c625fd = function(arg0, arg1, arg2) {
|
|
2782
2782
|
let deferred0_0;
|
|
2783
2783
|
let deferred0_1;
|
|
2784
2784
|
try {
|
|
@@ -2790,7 +2790,7 @@ module.exports.__wbg_writevalue_9096a95d5621ed81 = function(arg0, arg1, arg2) {
|
|
|
2790
2790
|
}
|
|
2791
2791
|
};
|
|
2792
2792
|
|
|
2793
|
-
module.exports.
|
|
2793
|
+
module.exports.__wbg_appendvalue_7a64f2b8d6b939c6 = function(arg0, arg1, arg2) {
|
|
2794
2794
|
let deferred0_0;
|
|
2795
2795
|
let deferred0_1;
|
|
2796
2796
|
try {
|
|
@@ -2802,7 +2802,7 @@ module.exports.__wbg_appendvalue_72e46d3bea542087 = function(arg0, arg1, arg2) {
|
|
|
2802
2802
|
}
|
|
2803
2803
|
};
|
|
2804
2804
|
|
|
2805
|
-
module.exports.
|
|
2805
|
+
module.exports.__wbg_removevalue_fa146f87d5f18cc2 = function() { return handleError(function (arg0, arg1) {
|
|
2806
2806
|
let deferred0_0;
|
|
2807
2807
|
let deferred0_1;
|
|
2808
2808
|
try {
|
|
@@ -2815,11 +2815,11 @@ module.exports.__wbg_removevalue_f0a580705086fe4e = function() { return handleEr
|
|
|
2815
2815
|
}
|
|
2816
2816
|
}, arguments) };
|
|
2817
2817
|
|
|
2818
|
-
module.exports.
|
|
2818
|
+
module.exports.__wbg_sendmessage_678a358e5a2bbc3c = function(arg0, arg1) {
|
|
2819
2819
|
MsgHandler.send_message(takeObject(arg0), getObject(arg1));
|
|
2820
2820
|
};
|
|
2821
2821
|
|
|
2822
|
-
module.exports.
|
|
2822
|
+
module.exports.__wbg_connecttopeer_67e8d4deca7e7daf = function() { return handleError(function (arg0, arg1, arg2) {
|
|
2823
2823
|
let deferred0_0;
|
|
2824
2824
|
let deferred0_1;
|
|
2825
2825
|
try {
|
|
@@ -2832,14 +2832,14 @@ module.exports.__wbg_connecttopeer_6324d1d563208b33 = function() { return handle
|
|
|
2832
2832
|
}
|
|
2833
2833
|
}, arguments) };
|
|
2834
2834
|
|
|
2835
|
-
module.exports.
|
|
2835
|
+
module.exports.__wbg_getmyservices_519eae3c1e735bb8 = function() {
|
|
2836
2836
|
const ret = MsgHandler.get_my_services();
|
|
2837
2837
|
_assertClass(ret, WasmPeerServiceList);
|
|
2838
2838
|
var ptr1 = ret.__destroy_into_raw();
|
|
2839
2839
|
return ptr1;
|
|
2840
2840
|
};
|
|
2841
2841
|
|
|
2842
|
-
module.exports.
|
|
2842
|
+
module.exports.__wbg_isexistingfile_e53dd691a0d35efd = function() { return handleError(function (arg0, arg1) {
|
|
2843
2843
|
let deferred0_0;
|
|
2844
2844
|
let deferred0_1;
|
|
2845
2845
|
try {
|
|
@@ -2852,33 +2852,33 @@ module.exports.__wbg_isexistingfile_066460c532232f85 = function() { return handl
|
|
|
2852
2852
|
}
|
|
2853
2853
|
}, arguments) };
|
|
2854
2854
|
|
|
2855
|
-
module.exports.
|
|
2855
|
+
module.exports.__wbg_processapicall_7010105e6c44f1f7 = function(arg0, arg1, arg2) {
|
|
2856
2856
|
MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2857
2857
|
};
|
|
2858
2858
|
|
|
2859
|
-
module.exports.
|
|
2859
|
+
module.exports.__wbg_processapierror_f885f698605b436e = function(arg0, arg1, arg2) {
|
|
2860
2860
|
MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2861
2861
|
};
|
|
2862
2862
|
|
|
2863
|
-
module.exports.
|
|
2863
|
+
module.exports.__wbg_processapisuccess_f35eaefa100da4a2 = function(arg0, arg1, arg2) {
|
|
2864
2864
|
MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2865
2865
|
};
|
|
2866
2866
|
|
|
2867
|
-
module.exports.
|
|
2867
|
+
module.exports.__wbg_sendmessagetoall_4a160fbd574d23b3 = function(arg0, arg1) {
|
|
2868
2868
|
MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
|
|
2869
2869
|
};
|
|
2870
2870
|
|
|
2871
|
-
module.exports.
|
|
2871
|
+
module.exports.__wbg_disconnectfrompeer_2739f7a30005ac18 = function() { return handleError(function (arg0) {
|
|
2872
2872
|
const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
|
|
2873
2873
|
return addHeapObject(ret);
|
|
2874
2874
|
}, arguments) };
|
|
2875
2875
|
|
|
2876
|
-
module.exports.
|
|
2876
|
+
module.exports.__wbg_loadblockfilelist_9c3eba157d4018d7 = function() { return handleError(function () {
|
|
2877
2877
|
const ret = MsgHandler.load_block_file_list();
|
|
2878
2878
|
return addHeapObject(ret);
|
|
2879
2879
|
}, arguments) };
|
|
2880
2880
|
|
|
2881
|
-
module.exports.
|
|
2881
|
+
module.exports.__wbg_sendinterfaceevent_9ec642f87407fb57 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
2882
2882
|
let deferred0_0;
|
|
2883
2883
|
let deferred0_1;
|
|
2884
2884
|
let deferred1_0;
|
|
@@ -2895,7 +2895,7 @@ module.exports.__wbg_sendinterfaceevent_0f5591a40cdc28a0 = function(arg0, arg1,
|
|
|
2895
2895
|
}
|
|
2896
2896
|
};
|
|
2897
2897
|
|
|
2898
|
-
module.exports.
|
|
2898
|
+
module.exports.__wbg_sendblocksuccess_8593630796d08f4a = function(arg0, arg1, arg2) {
|
|
2899
2899
|
let deferred0_0;
|
|
2900
2900
|
let deferred0_1;
|
|
2901
2901
|
try {
|
|
@@ -2907,11 +2907,11 @@ module.exports.__wbg_sendblocksuccess_331ed20b601c69a1 = function(arg0, arg1, ar
|
|
|
2907
2907
|
}
|
|
2908
2908
|
};
|
|
2909
2909
|
|
|
2910
|
-
module.exports.
|
|
2910
|
+
module.exports.__wbg_sendwalletupdate_a4fae063dc4307f9 = function() {
|
|
2911
2911
|
MsgHandler.send_wallet_update();
|
|
2912
2912
|
};
|
|
2913
2913
|
|
|
2914
|
-
module.exports.
|
|
2914
|
+
module.exports.__wbg_sendnewversionalert_90ce546ef6f38fc8 = function(arg0, arg1, arg2) {
|
|
2915
2915
|
let deferred0_0;
|
|
2916
2916
|
let deferred0_1;
|
|
2917
2917
|
try {
|
|
@@ -2923,15 +2923,15 @@ module.exports.__wbg_sendnewversionalert_0668d8f5d25f4178 = function(arg0, arg1,
|
|
|
2923
2923
|
}
|
|
2924
2924
|
};
|
|
2925
2925
|
|
|
2926
|
-
module.exports.
|
|
2926
|
+
module.exports.__wbg_sendblockfetchstatusevent_1a279a1f6532f08b = function(arg0) {
|
|
2927
2927
|
MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
|
|
2928
2928
|
};
|
|
2929
2929
|
|
|
2930
|
-
module.exports.
|
|
2930
|
+
module.exports.__wbg_sendnewchaindetectedevent_3137097dd52dfe5f = function() {
|
|
2931
2931
|
MsgHandler.send_new_chain_detected_event();
|
|
2932
2932
|
};
|
|
2933
2933
|
|
|
2934
|
-
module.exports.
|
|
2934
|
+
module.exports.__wbg_fetchblockfrompeer_e70058129ff6d454 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2935
2935
|
let deferred0_0;
|
|
2936
2936
|
let deferred0_1;
|
|
2937
2937
|
try {
|
|
@@ -2944,7 +2944,7 @@ module.exports.__wbg_fetchblockfrompeer_07c7276e8f9a93fe = function() { return h
|
|
|
2944
2944
|
}
|
|
2945
2945
|
}, arguments) };
|
|
2946
2946
|
|
|
2947
|
-
module.exports.
|
|
2947
|
+
module.exports.__wbg_ensureblockdirectoryexists_423cb5cd137cb12e = function() { return handleError(function (arg0, arg1) {
|
|
2948
2948
|
let deferred0_0;
|
|
2949
2949
|
let deferred0_1;
|
|
2950
2950
|
try {
|