saito-wasm 0.2.163 → 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 +146 -146
- package/pkg/node/index.js +290 -290
- package/pkg/node/index_bg.wasm +0 -0
- package/pkg/node/package.json +3 -3
- package/pkg/web/index.d.ts +146 -146
- package/pkg/web/index.js +280 -280
- package/pkg/web/index_bg.wasm +0 -0
- package/pkg/web/package.json +1 -1
- /package/pkg/node/snippets/{saito-wasm-e8d94f6fc48cc1ba → saito-wasm-21975b2e7dbeb5a0}/js/msg_handler.js +0 -0
- /package/pkg/web/snippets/{saito-wasm-e8d94f6fc48cc1ba → 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);
|
|
@@ -243,91 +243,65 @@ function addBorrowedObject(obj) {
|
|
|
243
243
|
return stack_pointer;
|
|
244
244
|
}
|
|
245
245
|
/**
|
|
246
|
-
* @param {
|
|
247
|
-
* @returns {
|
|
248
|
-
*/
|
|
249
|
-
module.exports.remove_stun_peer = function(peer_index) {
|
|
250
|
-
const ret = wasm.remove_stun_peer(peer_index);
|
|
251
|
-
return takeObject(ret);
|
|
252
|
-
};
|
|
253
|
-
|
|
254
|
-
/**
|
|
255
|
-
* @param {bigint} amt
|
|
256
|
-
* @param {string} slip1_utxo_key
|
|
257
|
-
* @param {string} slip2_utxo_key
|
|
258
|
-
* @param {string} slip3_utxo_key
|
|
259
|
-
* @param {string} recipient_public_key
|
|
260
|
-
* @param {Uint8Array} tx_msg
|
|
261
|
-
* @returns {Promise<WasmTransaction>}
|
|
246
|
+
* @param {string} private_key
|
|
247
|
+
* @returns {string}
|
|
262
248
|
*/
|
|
263
|
-
module.exports.
|
|
264
|
-
|
|
265
|
-
|
|
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
|
+
}
|
|
266
263
|
};
|
|
267
264
|
|
|
268
265
|
/**
|
|
269
|
-
* @param {bigint}
|
|
270
|
-
* @param {string} ip
|
|
266
|
+
* @param {bigint} current_time
|
|
271
267
|
* @returns {Promise<void>}
|
|
272
268
|
*/
|
|
273
|
-
module.exports.
|
|
274
|
-
const ret = wasm.
|
|
275
|
-
return takeObject(ret);
|
|
276
|
-
};
|
|
277
|
-
|
|
278
|
-
/**
|
|
279
|
-
* @param {Array<any>} public_keys
|
|
280
|
-
* @param {BigUint64Array} amounts
|
|
281
|
-
* @param {bigint} fee
|
|
282
|
-
* @param {boolean} _force_merge
|
|
283
|
-
* @returns {Promise<WasmTransaction>}
|
|
284
|
-
*/
|
|
285
|
-
module.exports.create_transaction_with_multiple_payments = function(public_keys, amounts, fee, _force_merge) {
|
|
286
|
-
const ret = wasm.create_transaction_with_multiple_payments(addHeapObject(public_keys), addHeapObject(amounts), fee, _force_merge);
|
|
269
|
+
module.exports.process_stat_interval = function(current_time) {
|
|
270
|
+
const ret = wasm.process_stat_interval(current_time);
|
|
287
271
|
return takeObject(ret);
|
|
288
272
|
};
|
|
289
273
|
|
|
290
274
|
/**
|
|
291
|
-
* @param {string}
|
|
292
|
-
* @
|
|
293
|
-
* @param {number} log_level_num
|
|
294
|
-
* @param {bigint} hasten_multiplier
|
|
295
|
-
* @param {boolean} delete_old_blocks
|
|
296
|
-
* @returns {Promise<any>}
|
|
275
|
+
* @param {string} public_key
|
|
276
|
+
* @returns {Promise<Array<any>>}
|
|
297
277
|
*/
|
|
298
|
-
module.exports.
|
|
299
|
-
const ret = wasm.
|
|
278
|
+
module.exports.get_account_slips = function(public_key) {
|
|
279
|
+
const ret = wasm.get_account_slips(addHeapObject(public_key));
|
|
300
280
|
return takeObject(ret);
|
|
301
281
|
};
|
|
302
282
|
|
|
303
283
|
/**
|
|
304
|
-
* @returns {Promise<
|
|
284
|
+
* @returns {Promise<string>}
|
|
305
285
|
*/
|
|
306
|
-
module.exports.
|
|
307
|
-
const ret = wasm.
|
|
286
|
+
module.exports.get_latest_block_hash = function() {
|
|
287
|
+
const ret = wasm.get_latest_block_hash();
|
|
308
288
|
return takeObject(ret);
|
|
309
289
|
};
|
|
310
290
|
|
|
311
291
|
/**
|
|
312
|
-
* @param {Uint8Array} hash
|
|
313
|
-
* @param {bigint} block_id
|
|
314
292
|
* @param {bigint} peer_index
|
|
315
|
-
* @returns {Promise<
|
|
293
|
+
* @returns {Promise<WasmPeer | undefined>}
|
|
316
294
|
*/
|
|
317
|
-
module.exports.
|
|
318
|
-
const ret = wasm.
|
|
295
|
+
module.exports.get_peer = function(peer_index) {
|
|
296
|
+
const ret = wasm.get_peer(peer_index);
|
|
319
297
|
return takeObject(ret);
|
|
320
298
|
};
|
|
321
299
|
|
|
322
300
|
/**
|
|
323
|
-
* @
|
|
324
|
-
* @param {bigint} amount
|
|
325
|
-
* @param {bigint} fee
|
|
326
|
-
* @param {boolean} force_merge
|
|
327
|
-
* @returns {Promise<WasmTransaction>}
|
|
301
|
+
* @returns {Promise<boolean>}
|
|
328
302
|
*/
|
|
329
|
-
module.exports.
|
|
330
|
-
const ret = wasm.
|
|
303
|
+
module.exports.produce_block_without_gt = function() {
|
|
304
|
+
const ret = wasm.produce_block_without_gt();
|
|
331
305
|
return takeObject(ret);
|
|
332
306
|
};
|
|
333
307
|
|
|
@@ -337,92 +311,42 @@ module.exports.create_transaction = function(public_key, amount, fee, force_merg
|
|
|
337
311
|
* @param {bigint} peer_index
|
|
338
312
|
* @returns {Promise<void>}
|
|
339
313
|
*/
|
|
340
|
-
module.exports.
|
|
341
|
-
const ret = wasm.
|
|
342
|
-
return takeObject(ret);
|
|
343
|
-
};
|
|
344
|
-
|
|
345
|
-
/**
|
|
346
|
-
* @param {bigint} threshold
|
|
347
|
-
* @returns {Promise<void>}
|
|
348
|
-
*/
|
|
349
|
-
module.exports.write_issuance_file = function(threshold) {
|
|
350
|
-
const ret = wasm.write_issuance_file(threshold);
|
|
351
|
-
return takeObject(ret);
|
|
352
|
-
};
|
|
353
|
-
|
|
354
|
-
/**
|
|
355
|
-
* @returns {Promise<Array<any>>}
|
|
356
|
-
*/
|
|
357
|
-
module.exports.get_peers = function() {
|
|
358
|
-
const ret = wasm.get_peers();
|
|
359
|
-
return takeObject(ret);
|
|
360
|
-
};
|
|
361
|
-
|
|
362
|
-
/**
|
|
363
|
-
* @param {bigint} num
|
|
364
|
-
* @param {bigint} deposit
|
|
365
|
-
* @param {Uint8Array} tx_msg
|
|
366
|
-
* @param {bigint} fee
|
|
367
|
-
* @param {string} recipient_public_key
|
|
368
|
-
* @param {string} nft_type
|
|
369
|
-
* @returns {Promise<WasmTransaction>}
|
|
370
|
-
*/
|
|
371
|
-
module.exports.create_bound_transaction = function(num, deposit, tx_msg, fee, recipient_public_key, nft_type) {
|
|
372
|
-
const ret = wasm.create_bound_transaction(num, deposit, addHeapObject(tx_msg), fee, addHeapObject(recipient_public_key), addHeapObject(nft_type));
|
|
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);
|
|
373
316
|
return takeObject(ret);
|
|
374
317
|
};
|
|
375
318
|
|
|
376
319
|
/**
|
|
377
|
-
* @param {
|
|
320
|
+
* @param {bigint} peer_index
|
|
321
|
+
* @param {string} public_key
|
|
378
322
|
* @returns {Promise<void>}
|
|
379
323
|
*/
|
|
380
|
-
module.exports.
|
|
381
|
-
|
|
382
|
-
var ptr0 = snapshot.__destroy_into_raw();
|
|
383
|
-
const ret = wasm.update_from_balance_snapshot(ptr0);
|
|
324
|
+
module.exports.process_stun_peer = function(peer_index, public_key) {
|
|
325
|
+
const ret = wasm.process_stun_peer(peer_index, addHeapObject(public_key));
|
|
384
326
|
return takeObject(ret);
|
|
385
327
|
};
|
|
386
328
|
|
|
387
329
|
/**
|
|
330
|
+
* @param {Uint8Array} hash
|
|
331
|
+
* @param {bigint} block_id
|
|
388
332
|
* @param {bigint} peer_index
|
|
389
333
|
* @returns {Promise<void>}
|
|
390
334
|
*/
|
|
391
|
-
module.exports.
|
|
392
|
-
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);
|
|
393
337
|
return takeObject(ret);
|
|
394
338
|
};
|
|
395
339
|
|
|
396
340
|
/**
|
|
341
|
+
* @param {string} config_json
|
|
342
|
+
* @param {string} private_key
|
|
343
|
+
* @param {number} log_level_num
|
|
344
|
+
* @param {bigint} hasten_multiplier
|
|
345
|
+
* @param {boolean} delete_old_blocks
|
|
397
346
|
* @returns {Promise<any>}
|
|
398
347
|
*/
|
|
399
|
-
module.exports.
|
|
400
|
-
const ret = wasm.
|
|
401
|
-
return takeObject(ret);
|
|
402
|
-
};
|
|
403
|
-
|
|
404
|
-
/**
|
|
405
|
-
* @param {Uint8Array} buffer
|
|
406
|
-
* @returns {string}
|
|
407
|
-
*/
|
|
408
|
-
module.exports.hash = function(buffer) {
|
|
409
|
-
const ret = wasm.hash(addHeapObject(buffer));
|
|
410
|
-
return takeObject(ret);
|
|
411
|
-
};
|
|
412
|
-
|
|
413
|
-
/**
|
|
414
|
-
* @returns {Promise<bigint>}
|
|
415
|
-
*/
|
|
416
|
-
module.exports.get_next_peer_index = function() {
|
|
417
|
-
const ret = wasm.get_next_peer_index();
|
|
418
|
-
return takeObject(ret);
|
|
419
|
-
};
|
|
420
|
-
|
|
421
|
-
/**
|
|
422
|
-
* @returns {Promise<string>}
|
|
423
|
-
*/
|
|
424
|
-
module.exports.get_peer_stats = function() {
|
|
425
|
-
const ret = wasm.get_peer_stats();
|
|
348
|
+
module.exports.initialize = function(config_json, private_key, log_level_num, hasten_multiplier, delete_old_blocks) {
|
|
349
|
+
const ret = wasm.initialize(addHeapObject(config_json), addHeapObject(private_key), log_level_num, hasten_multiplier, delete_old_blocks);
|
|
426
350
|
return takeObject(ret);
|
|
427
351
|
};
|
|
428
352
|
|
|
@@ -435,6 +359,14 @@ module.exports.is_valid_public_key = function(key) {
|
|
|
435
359
|
return ret !== 0;
|
|
436
360
|
};
|
|
437
361
|
|
|
362
|
+
/**
|
|
363
|
+
* @returns {Promise<Array<any>>}
|
|
364
|
+
*/
|
|
365
|
+
module.exports.get_nft_list = function() {
|
|
366
|
+
const ret = wasm.get_nft_list();
|
|
367
|
+
return takeObject(ret);
|
|
368
|
+
};
|
|
369
|
+
|
|
438
370
|
/**
|
|
439
371
|
* @param {string} nft_id_hex
|
|
440
372
|
* @param {Uint8Array} tx_msg
|
|
@@ -447,34 +379,6 @@ module.exports.create_merge_bound_transaction = function(nft_id_hex, tx_msg) {
|
|
|
447
379
|
return takeObject(ret);
|
|
448
380
|
};
|
|
449
381
|
|
|
450
|
-
/**
|
|
451
|
-
* @returns {Promise<boolean>}
|
|
452
|
-
*/
|
|
453
|
-
module.exports.produce_block_with_gt = function() {
|
|
454
|
-
const ret = wasm.produce_block_with_gt();
|
|
455
|
-
return takeObject(ret);
|
|
456
|
-
};
|
|
457
|
-
|
|
458
|
-
/**
|
|
459
|
-
* @param {string} private_key
|
|
460
|
-
* @returns {string}
|
|
461
|
-
*/
|
|
462
|
-
module.exports.generate_public_key = function(private_key) {
|
|
463
|
-
try {
|
|
464
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
465
|
-
wasm.generate_public_key(retptr, addHeapObject(private_key));
|
|
466
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
467
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
468
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
469
|
-
if (r2) {
|
|
470
|
-
throw takeObject(r1);
|
|
471
|
-
}
|
|
472
|
-
return takeObject(r0);
|
|
473
|
-
} finally {
|
|
474
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
475
|
-
}
|
|
476
|
-
};
|
|
477
|
-
|
|
478
382
|
/**
|
|
479
383
|
* @returns {Promise<WasmBlockchain>}
|
|
480
384
|
*/
|
|
@@ -484,77 +388,64 @@ module.exports.get_blockchain = function() {
|
|
|
484
388
|
};
|
|
485
389
|
|
|
486
390
|
/**
|
|
487
|
-
* @param {
|
|
488
|
-
* @
|
|
489
|
-
* @returns {Promise<void>}
|
|
490
|
-
*/
|
|
491
|
-
module.exports.process_stun_peer = function(peer_index, public_key) {
|
|
492
|
-
const ret = wasm.process_stun_peer(peer_index, addHeapObject(public_key));
|
|
493
|
-
return takeObject(ret);
|
|
494
|
-
};
|
|
495
|
-
|
|
496
|
-
/**
|
|
497
|
-
* @param {Uint8Array} buffer
|
|
498
|
-
* @param {string} signature
|
|
499
|
-
* @param {string} public_key
|
|
500
|
-
* @returns {boolean}
|
|
501
|
-
*/
|
|
502
|
-
module.exports.verify_signature = function(buffer, signature, public_key) {
|
|
503
|
-
const ret = wasm.verify_signature(addHeapObject(buffer), addHeapObject(signature), addHeapObject(public_key));
|
|
504
|
-
return ret !== 0;
|
|
505
|
-
};
|
|
506
|
-
|
|
507
|
-
/**
|
|
508
|
-
* @returns {Promise<string>}
|
|
391
|
+
* @param {Array<any>} keys
|
|
392
|
+
* @returns {Promise<WasmBalanceSnapshot>}
|
|
509
393
|
*/
|
|
510
|
-
module.exports.
|
|
511
|
-
const ret = wasm.
|
|
394
|
+
module.exports.get_balance_snapshot = function(keys) {
|
|
395
|
+
const ret = wasm.get_balance_snapshot(addHeapObject(keys));
|
|
512
396
|
return takeObject(ret);
|
|
513
397
|
};
|
|
514
398
|
|
|
515
399
|
/**
|
|
516
|
-
* @
|
|
400
|
+
* @param {bigint} threshold
|
|
401
|
+
* @returns {Promise<void>}
|
|
517
402
|
*/
|
|
518
|
-
module.exports.
|
|
519
|
-
const ret = wasm.
|
|
403
|
+
module.exports.write_issuance_file = function(threshold) {
|
|
404
|
+
const ret = wasm.write_issuance_file(threshold);
|
|
520
405
|
return takeObject(ret);
|
|
521
406
|
};
|
|
522
407
|
|
|
523
408
|
/**
|
|
524
409
|
* @param {Uint8Array} buffer
|
|
525
|
-
* @param {
|
|
410
|
+
* @param {Uint8Array} hash
|
|
411
|
+
* @param {bigint} block_id
|
|
526
412
|
* @param {bigint} peer_index
|
|
527
413
|
* @returns {Promise<void>}
|
|
528
414
|
*/
|
|
529
|
-
module.exports.
|
|
530
|
-
const ret = wasm.
|
|
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);
|
|
531
417
|
return takeObject(ret);
|
|
532
418
|
};
|
|
533
419
|
|
|
534
420
|
/**
|
|
535
|
-
* @
|
|
536
|
-
* @returns {Promise<void>}
|
|
421
|
+
* @returns {Promise<bigint>}
|
|
537
422
|
*/
|
|
538
|
-
module.exports.
|
|
539
|
-
|
|
540
|
-
const ret = wasm.propagate_transaction(tx.__wbg_ptr);
|
|
423
|
+
module.exports.get_next_peer_index = function() {
|
|
424
|
+
const ret = wasm.get_next_peer_index();
|
|
541
425
|
return takeObject(ret);
|
|
542
426
|
};
|
|
543
427
|
|
|
544
428
|
/**
|
|
545
|
-
* @param {string} public_key
|
|
546
429
|
* @returns {Promise<Array<any>>}
|
|
547
430
|
*/
|
|
548
|
-
module.exports.
|
|
549
|
-
const ret = wasm.
|
|
431
|
+
module.exports.get_mempool_txs = function() {
|
|
432
|
+
const ret = wasm.get_mempool_txs();
|
|
550
433
|
return takeObject(ret);
|
|
551
434
|
};
|
|
552
435
|
|
|
553
436
|
/**
|
|
554
437
|
* @returns {Promise<boolean>}
|
|
555
438
|
*/
|
|
556
|
-
module.exports.
|
|
557
|
-
const ret = wasm.
|
|
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();
|
|
558
449
|
return takeObject(ret);
|
|
559
450
|
};
|
|
560
451
|
|
|
@@ -569,15 +460,6 @@ module.exports.send_api_error = function(buffer, msg_index, peer_index) {
|
|
|
569
460
|
return takeObject(ret);
|
|
570
461
|
};
|
|
571
462
|
|
|
572
|
-
/**
|
|
573
|
-
* @param {bigint} current_time
|
|
574
|
-
* @returns {Promise<void>}
|
|
575
|
-
*/
|
|
576
|
-
module.exports.process_stat_interval = function(current_time) {
|
|
577
|
-
const ret = wasm.process_stat_interval(current_time);
|
|
578
|
-
return takeObject(ret);
|
|
579
|
-
};
|
|
580
|
-
|
|
581
463
|
/**
|
|
582
464
|
* @param {string} slip1_utxo_key
|
|
583
465
|
* @param {string} slip2_utxo_key
|
|
@@ -593,52 +475,74 @@ module.exports.create_split_bound_transaction = function(slip1_utxo_key, slip2_u
|
|
|
593
475
|
};
|
|
594
476
|
|
|
595
477
|
/**
|
|
596
|
-
* @
|
|
478
|
+
* @param {WasmBalanceSnapshot} snapshot
|
|
479
|
+
* @returns {Promise<void>}
|
|
597
480
|
*/
|
|
598
|
-
module.exports.
|
|
599
|
-
|
|
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);
|
|
600
485
|
return takeObject(ret);
|
|
601
486
|
};
|
|
602
487
|
|
|
603
488
|
/**
|
|
604
|
-
* @
|
|
489
|
+
* @param {bigint} amt
|
|
490
|
+
* @param {string} slip1_utxo_key
|
|
491
|
+
* @param {string} slip2_utxo_key
|
|
492
|
+
* @param {string} slip3_utxo_key
|
|
493
|
+
* @param {string} recipient_public_key
|
|
494
|
+
* @param {Uint8Array} tx_msg
|
|
495
|
+
* @returns {Promise<WasmTransaction>}
|
|
605
496
|
*/
|
|
606
|
-
module.exports.
|
|
607
|
-
const ret = wasm.
|
|
497
|
+
module.exports.create_send_bound_transaction = function(amt, slip1_utxo_key, slip2_utxo_key, slip3_utxo_key, recipient_public_key, tx_msg) {
|
|
498
|
+
const ret = wasm.create_send_bound_transaction(amt, addHeapObject(slip1_utxo_key), addHeapObject(slip2_utxo_key), addHeapObject(slip3_utxo_key), addHeapObject(recipient_public_key), addHeapObject(tx_msg));
|
|
608
499
|
return takeObject(ret);
|
|
609
500
|
};
|
|
610
501
|
|
|
611
502
|
/**
|
|
612
|
-
* @param {
|
|
613
|
-
* @returns {Promise<
|
|
503
|
+
* @param {string} block_hash
|
|
504
|
+
* @returns {Promise<WasmBlock>}
|
|
614
505
|
*/
|
|
615
|
-
module.exports.
|
|
616
|
-
const ret = wasm.
|
|
506
|
+
module.exports.get_block = function(block_hash) {
|
|
507
|
+
const ret = wasm.get_block(addHeapObject(block_hash));
|
|
508
|
+
return takeObject(ret);
|
|
509
|
+
};
|
|
510
|
+
|
|
511
|
+
/**
|
|
512
|
+
* @returns {Promise<string>}
|
|
513
|
+
*/
|
|
514
|
+
module.exports.get_peer_stats = function() {
|
|
515
|
+
const ret = wasm.get_peer_stats();
|
|
617
516
|
return takeObject(ret);
|
|
618
517
|
};
|
|
619
518
|
|
|
620
519
|
/**
|
|
520
|
+
* @param {bigint} peer_index
|
|
621
521
|
* @returns {Promise<void>}
|
|
622
522
|
*/
|
|
623
|
-
module.exports.
|
|
624
|
-
const ret = wasm.
|
|
523
|
+
module.exports.remove_stun_peer = function(peer_index) {
|
|
524
|
+
const ret = wasm.remove_stun_peer(peer_index);
|
|
625
525
|
return takeObject(ret);
|
|
626
526
|
};
|
|
627
527
|
|
|
628
528
|
/**
|
|
529
|
+
* @param {Uint8Array} buffer
|
|
629
530
|
* @returns {string}
|
|
630
531
|
*/
|
|
631
|
-
module.exports.
|
|
632
|
-
const ret = wasm.
|
|
532
|
+
module.exports.hash = function(buffer) {
|
|
533
|
+
const ret = wasm.hash(addHeapObject(buffer));
|
|
633
534
|
return takeObject(ret);
|
|
634
535
|
};
|
|
635
536
|
|
|
636
537
|
/**
|
|
637
|
-
* @param {
|
|
638
|
-
* @
|
|
538
|
+
* @param {Array<any>} public_keys
|
|
539
|
+
* @param {BigUint64Array} amounts
|
|
540
|
+
* @param {bigint} fee
|
|
541
|
+
* @param {boolean} _force_merge
|
|
542
|
+
* @returns {Promise<WasmTransaction>}
|
|
639
543
|
*/
|
|
640
|
-
module.exports.
|
|
641
|
-
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);
|
|
642
546
|
return takeObject(ret);
|
|
643
547
|
};
|
|
644
548
|
|
|
@@ -652,39 +556,91 @@ module.exports.process_timer_event = function(duration_in_ms) {
|
|
|
652
556
|
};
|
|
653
557
|
|
|
654
558
|
/**
|
|
655
|
-
* @
|
|
559
|
+
* @param {number} major
|
|
560
|
+
* @param {number} minor
|
|
561
|
+
* @param {number} patch
|
|
562
|
+
* @returns {Promise<void>}
|
|
656
563
|
*/
|
|
657
|
-
module.exports.
|
|
658
|
-
const ret = wasm.
|
|
564
|
+
module.exports.set_wallet_version = function(major, minor, patch) {
|
|
565
|
+
const ret = wasm.set_wallet_version(major, minor, patch);
|
|
659
566
|
return takeObject(ret);
|
|
660
567
|
};
|
|
661
568
|
|
|
662
569
|
/**
|
|
663
570
|
* @param {Uint8Array} buffer
|
|
571
|
+
* @param {number} msg_index
|
|
664
572
|
* @param {bigint} peer_index
|
|
665
573
|
* @returns {Promise<void>}
|
|
666
574
|
*/
|
|
667
|
-
module.exports.
|
|
668
|
-
const ret = wasm.
|
|
575
|
+
module.exports.send_api_success = function(buffer, msg_index, peer_index) {
|
|
576
|
+
const ret = wasm.send_api_success(addHeapObject(buffer), msg_index, peer_index);
|
|
577
|
+
return takeObject(ret);
|
|
578
|
+
};
|
|
579
|
+
|
|
580
|
+
/**
|
|
581
|
+
* @param {bigint} peer_index
|
|
582
|
+
* @param {string} ip
|
|
583
|
+
* @returns {Promise<void>}
|
|
584
|
+
*/
|
|
585
|
+
module.exports.process_new_peer = function(peer_index, ip) {
|
|
586
|
+
const ret = wasm.process_new_peer(peer_index, addHeapObject(ip));
|
|
669
587
|
return takeObject(ret);
|
|
670
588
|
};
|
|
671
589
|
|
|
590
|
+
/**
|
|
591
|
+
* @param {Uint8Array} buffer
|
|
592
|
+
* @param {string} signature
|
|
593
|
+
* @param {string} public_key
|
|
594
|
+
* @returns {boolean}
|
|
595
|
+
*/
|
|
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
|
+
|
|
672
601
|
/**
|
|
673
602
|
* @returns {Promise<Array<any>>}
|
|
674
603
|
*/
|
|
675
|
-
module.exports.
|
|
676
|
-
const ret = wasm.
|
|
604
|
+
module.exports.get_peers = function() {
|
|
605
|
+
const ret = wasm.get_peers();
|
|
677
606
|
return takeObject(ret);
|
|
678
607
|
};
|
|
679
608
|
|
|
680
609
|
/**
|
|
681
|
-
* @param {
|
|
682
|
-
* @param {
|
|
683
|
-
* @param {number} patch
|
|
610
|
+
* @param {Uint8Array} buffer
|
|
611
|
+
* @param {bigint} peer_index
|
|
684
612
|
* @returns {Promise<void>}
|
|
685
613
|
*/
|
|
686
|
-
module.exports.
|
|
687
|
-
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();
|
|
624
|
+
return takeObject(ret);
|
|
625
|
+
};
|
|
626
|
+
|
|
627
|
+
/**
|
|
628
|
+
* @param {string} public_key
|
|
629
|
+
* @param {bigint} amount
|
|
630
|
+
* @param {bigint} fee
|
|
631
|
+
* @param {boolean} force_merge
|
|
632
|
+
* @returns {Promise<WasmTransaction>}
|
|
633
|
+
*/
|
|
634
|
+
module.exports.create_transaction = function(public_key, amount, fee, force_merge) {
|
|
635
|
+
const ret = wasm.create_transaction(addHeapObject(public_key), amount, fee, force_merge);
|
|
636
|
+
return takeObject(ret);
|
|
637
|
+
};
|
|
638
|
+
|
|
639
|
+
/**
|
|
640
|
+
* @returns {Promise<string>}
|
|
641
|
+
*/
|
|
642
|
+
module.exports.get_congestion_stats = function() {
|
|
643
|
+
const ret = wasm.get_congestion_stats();
|
|
688
644
|
return takeObject(ret);
|
|
689
645
|
};
|
|
690
646
|
|
|
@@ -710,23 +666,67 @@ module.exports.sign_buffer = function(buffer, private_key) {
|
|
|
710
666
|
};
|
|
711
667
|
|
|
712
668
|
/**
|
|
713
|
-
* @
|
|
714
|
-
* @returns {Promise<WasmPeer | undefined>}
|
|
669
|
+
* @returns {Promise<WasmWallet>}
|
|
715
670
|
*/
|
|
716
|
-
module.exports.
|
|
717
|
-
const ret = wasm.
|
|
671
|
+
module.exports.get_wallet = function() {
|
|
672
|
+
const ret = wasm.get_wallet();
|
|
673
|
+
return takeObject(ret);
|
|
674
|
+
};
|
|
675
|
+
|
|
676
|
+
/**
|
|
677
|
+
* @param {bigint} num
|
|
678
|
+
* @param {bigint} deposit
|
|
679
|
+
* @param {Uint8Array} tx_msg
|
|
680
|
+
* @param {bigint} fee
|
|
681
|
+
* @param {string} recipient_public_key
|
|
682
|
+
* @param {string} nft_type
|
|
683
|
+
* @returns {Promise<WasmTransaction>}
|
|
684
|
+
*/
|
|
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));
|
|
687
|
+
return takeObject(ret);
|
|
688
|
+
};
|
|
689
|
+
|
|
690
|
+
/**
|
|
691
|
+
* @returns {Promise<any>}
|
|
692
|
+
*/
|
|
693
|
+
module.exports.get_confirmations = function() {
|
|
694
|
+
const ret = wasm.get_confirmations();
|
|
695
|
+
return takeObject(ret);
|
|
696
|
+
};
|
|
697
|
+
|
|
698
|
+
/**
|
|
699
|
+
* @param {WasmTransaction} tx
|
|
700
|
+
* @returns {Promise<void>}
|
|
701
|
+
*/
|
|
702
|
+
module.exports.propagate_transaction = function(tx) {
|
|
703
|
+
_assertClass(tx, WasmTransaction);
|
|
704
|
+
const ret = wasm.propagate_transaction(tx.__wbg_ptr);
|
|
705
|
+
return takeObject(ret);
|
|
706
|
+
};
|
|
707
|
+
|
|
708
|
+
/**
|
|
709
|
+
* @returns {Promise<string>}
|
|
710
|
+
*/
|
|
711
|
+
module.exports.get_stats = function() {
|
|
712
|
+
const ret = wasm.get_stats();
|
|
718
713
|
return takeObject(ret);
|
|
719
714
|
};
|
|
720
715
|
|
|
721
716
|
/**
|
|
722
|
-
* @param {Uint8Array} buffer
|
|
723
|
-
* @param {Uint8Array} hash
|
|
724
|
-
* @param {bigint} block_id
|
|
725
717
|
* @param {bigint} peer_index
|
|
726
718
|
* @returns {Promise<void>}
|
|
727
719
|
*/
|
|
728
|
-
module.exports.
|
|
729
|
-
const ret = wasm.
|
|
720
|
+
module.exports.process_peer_disconnection = function(peer_index) {
|
|
721
|
+
const ret = wasm.process_peer_disconnection(peer_index);
|
|
722
|
+
return takeObject(ret);
|
|
723
|
+
};
|
|
724
|
+
|
|
725
|
+
/**
|
|
726
|
+
* @returns {Promise<void>}
|
|
727
|
+
*/
|
|
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
|
|
|
@@ -2650,8 +2650,13 @@ module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
|
2650
2650
|
return addHeapObject(ret);
|
|
2651
2651
|
};
|
|
2652
2652
|
|
|
2653
|
-
module.exports.
|
|
2654
|
-
const ret =
|
|
2653
|
+
module.exports.__wbg_wasmtransaction_new = function(arg0) {
|
|
2654
|
+
const ret = WasmTransaction.__wrap(arg0);
|
|
2655
|
+
return addHeapObject(ret);
|
|
2656
|
+
};
|
|
2657
|
+
|
|
2658
|
+
module.exports.__wbg_wasmpeer_new = function(arg0) {
|
|
2659
|
+
const ret = WasmPeer.__wrap(arg0);
|
|
2655
2660
|
return addHeapObject(ret);
|
|
2656
2661
|
};
|
|
2657
2662
|
|
|
@@ -2660,6 +2665,16 @@ module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
|
2660
2665
|
return addHeapObject(ret);
|
|
2661
2666
|
};
|
|
2662
2667
|
|
|
2668
|
+
module.exports.__wbindgen_object_clone_ref = function(arg0) {
|
|
2669
|
+
const ret = getObject(arg0);
|
|
2670
|
+
return addHeapObject(ret);
|
|
2671
|
+
};
|
|
2672
|
+
|
|
2673
|
+
module.exports.__wbg_wasmslip_new = function(arg0) {
|
|
2674
|
+
const ret = WasmSlip.__wrap(arg0);
|
|
2675
|
+
return addHeapObject(ret);
|
|
2676
|
+
};
|
|
2677
|
+
|
|
2663
2678
|
module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
2664
2679
|
const obj = getObject(arg1);
|
|
2665
2680
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
@@ -2669,18 +2684,8 @@ module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
|
2669
2684
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
2670
2685
|
};
|
|
2671
2686
|
|
|
2672
|
-
module.exports.
|
|
2673
|
-
const ret =
|
|
2674
|
-
return addHeapObject(ret);
|
|
2675
|
-
};
|
|
2676
|
-
|
|
2677
|
-
module.exports.__wbg_wasmslip_new = function(arg0) {
|
|
2678
|
-
const ret = WasmSlip.__wrap(arg0);
|
|
2679
|
-
return addHeapObject(ret);
|
|
2680
|
-
};
|
|
2681
|
-
|
|
2682
|
-
module.exports.__wbg_wasmwalletslip_new = function(arg0) {
|
|
2683
|
-
const ret = WasmWalletSlip.__wrap(arg0);
|
|
2687
|
+
module.exports.__wbg_wasmblock_new = function(arg0) {
|
|
2688
|
+
const ret = WasmBlock.__wrap(arg0);
|
|
2684
2689
|
return addHeapObject(ret);
|
|
2685
2690
|
};
|
|
2686
2691
|
|
|
@@ -2689,18 +2694,13 @@ module.exports.__wbg_wasmnft_new = function(arg0) {
|
|
|
2689
2694
|
return addHeapObject(ret);
|
|
2690
2695
|
};
|
|
2691
2696
|
|
|
2692
|
-
module.exports.
|
|
2693
|
-
const ret =
|
|
2694
|
-
return addHeapObject(ret);
|
|
2695
|
-
};
|
|
2696
|
-
|
|
2697
|
-
module.exports.__wbg_wasmblock_new = function(arg0) {
|
|
2698
|
-
const ret = WasmBlock.__wrap(arg0);
|
|
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
|
|
|
@@ -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_43f1541fff3d78bd = 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_0a9c92750448f1d1 = 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_cf07df01ae9d9d9b = 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_3d3f4ddc7cd7f668 = 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_f5900816b911805e = 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_0dbfd6477b38b460 = 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_9c5802df7eec1b8c = 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_478dfe7c1d77edc1 = 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_50f30a221c95ccb2 = 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_cf706b447638507f = 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_42bdb36ab5eb6374 = 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 {
|