saito-wasm 0.2.163 → 0.2.165
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 +141 -141
- package/pkg/node/index.js +270 -270
- package/pkg/node/index_bg.wasm +0 -0
- package/pkg/node/package.json +1 -1
- package/pkg/web/index.d.ts +141 -141
- package/pkg/web/index.js +269 -269
- package/pkg/web/index_bg.wasm +0 -0
- package/pkg/web/package.json +1 -1
- /package/pkg/node/snippets/{saito-wasm-e8d94f6fc48cc1ba → saito-wasm-9c691657239d0ce9}/js/msg_handler.js +0 -0
- /package/pkg/web/snippets/{saito-wasm-e8d94f6fc48cc1ba → saito-wasm-9c691657239d0ce9}/js/msg_handler.js +0 -0
package/pkg/web/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MsgHandler } from './snippets/saito-wasm-
|
|
1
|
+
import { MsgHandler } from './snippets/saito-wasm-9c691657239d0ce9/js/msg_handler.js';
|
|
2
2
|
|
|
3
3
|
let wasm;
|
|
4
4
|
|
|
@@ -241,35 +241,61 @@ function addBorrowedObject(obj) {
|
|
|
241
241
|
return stack_pointer;
|
|
242
242
|
}
|
|
243
243
|
/**
|
|
244
|
-
* @
|
|
245
|
-
* @returns {Promise<void>}
|
|
244
|
+
* @returns {Promise<string>}
|
|
246
245
|
*/
|
|
247
|
-
export function
|
|
248
|
-
const ret = wasm.
|
|
246
|
+
export function get_latest_block_hash() {
|
|
247
|
+
const ret = wasm.get_latest_block_hash();
|
|
249
248
|
return takeObject(ret);
|
|
250
249
|
}
|
|
251
250
|
|
|
252
251
|
/**
|
|
253
|
-
* @
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
252
|
+
* @returns {Promise<WasmWallet>}
|
|
253
|
+
*/
|
|
254
|
+
export function get_wallet() {
|
|
255
|
+
const ret = wasm.get_wallet();
|
|
256
|
+
return takeObject(ret);
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
* @param {string} nft_id_hex
|
|
258
261
|
* @param {Uint8Array} tx_msg
|
|
259
262
|
* @returns {Promise<WasmTransaction>}
|
|
260
263
|
*/
|
|
261
|
-
export function
|
|
262
|
-
const
|
|
264
|
+
export function create_merge_bound_transaction(nft_id_hex, tx_msg) {
|
|
265
|
+
const ptr0 = passStringToWasm0(nft_id_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
266
|
+
const len0 = WASM_VECTOR_LEN;
|
|
267
|
+
const ret = wasm.create_merge_bound_transaction(ptr0, len0, addHeapObject(tx_msg));
|
|
263
268
|
return takeObject(ret);
|
|
264
269
|
}
|
|
265
270
|
|
|
266
271
|
/**
|
|
267
|
-
* @param {bigint}
|
|
268
|
-
* @param {
|
|
269
|
-
* @
|
|
272
|
+
* @param {bigint} num
|
|
273
|
+
* @param {bigint} deposit
|
|
274
|
+
* @param {Uint8Array} tx_msg
|
|
275
|
+
* @param {bigint} fee
|
|
276
|
+
* @param {string} recipient_public_key
|
|
277
|
+
* @param {string} nft_type
|
|
278
|
+
* @returns {Promise<WasmTransaction>}
|
|
270
279
|
*/
|
|
271
|
-
export function
|
|
272
|
-
const ret = wasm.
|
|
280
|
+
export function create_bound_transaction(num, deposit, tx_msg, fee, recipient_public_key, nft_type) {
|
|
281
|
+
const ret = wasm.create_bound_transaction(num, deposit, addHeapObject(tx_msg), fee, addHeapObject(recipient_public_key), addHeapObject(nft_type));
|
|
282
|
+
return takeObject(ret);
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
/**
|
|
286
|
+
* @param {string} key
|
|
287
|
+
* @returns {boolean}
|
|
288
|
+
*/
|
|
289
|
+
export function is_valid_public_key(key) {
|
|
290
|
+
const ret = wasm.is_valid_public_key(addHeapObject(key));
|
|
291
|
+
return ret !== 0;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
/**
|
|
295
|
+
* @returns {Promise<string>}
|
|
296
|
+
*/
|
|
297
|
+
export function get_congestion_stats() {
|
|
298
|
+
const ret = wasm.get_congestion_stats();
|
|
273
299
|
return takeObject(ret);
|
|
274
300
|
}
|
|
275
301
|
|
|
@@ -286,133 +312,149 @@ export function create_transaction_with_multiple_payments(public_keys, amounts,
|
|
|
286
312
|
}
|
|
287
313
|
|
|
288
314
|
/**
|
|
289
|
-
* @
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
315
|
+
* @returns {Promise<void>}
|
|
316
|
+
*/
|
|
317
|
+
export function start_from_received_ghost_chain() {
|
|
318
|
+
const ret = wasm.start_from_received_ghost_chain();
|
|
319
|
+
return takeObject(ret);
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
/**
|
|
323
|
+
* @returns {Promise<WasmBlockchain>}
|
|
324
|
+
*/
|
|
325
|
+
export function get_blockchain() {
|
|
326
|
+
const ret = wasm.get_blockchain();
|
|
327
|
+
return takeObject(ret);
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
/**
|
|
331
|
+
* @param {Array<any>} keys
|
|
332
|
+
* @returns {Promise<WasmBalanceSnapshot>}
|
|
333
|
+
*/
|
|
334
|
+
export function get_balance_snapshot(keys) {
|
|
335
|
+
const ret = wasm.get_balance_snapshot(addHeapObject(keys));
|
|
336
|
+
return takeObject(ret);
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
/**
|
|
294
340
|
* @returns {Promise<any>}
|
|
295
341
|
*/
|
|
296
|
-
export function
|
|
297
|
-
const ret = wasm.
|
|
342
|
+
export function get_confirmations() {
|
|
343
|
+
const ret = wasm.get_confirmations();
|
|
298
344
|
return takeObject(ret);
|
|
299
345
|
}
|
|
300
346
|
|
|
301
347
|
/**
|
|
302
|
-
* @returns {Promise<
|
|
348
|
+
* @returns {Promise<Array<any>>}
|
|
303
349
|
*/
|
|
304
|
-
export function
|
|
305
|
-
const ret = wasm.
|
|
350
|
+
export function get_peers() {
|
|
351
|
+
const ret = wasm.get_peers();
|
|
306
352
|
return takeObject(ret);
|
|
307
353
|
}
|
|
308
354
|
|
|
309
355
|
/**
|
|
310
|
-
* @param {Uint8Array} hash
|
|
311
|
-
* @param {bigint} block_id
|
|
312
356
|
* @param {bigint} peer_index
|
|
357
|
+
* @param {string} ip
|
|
313
358
|
* @returns {Promise<void>}
|
|
314
359
|
*/
|
|
315
|
-
export function
|
|
316
|
-
const ret = wasm.
|
|
360
|
+
export function process_new_peer(peer_index, ip) {
|
|
361
|
+
const ret = wasm.process_new_peer(peer_index, addHeapObject(ip));
|
|
317
362
|
return takeObject(ret);
|
|
318
363
|
}
|
|
319
364
|
|
|
320
365
|
/**
|
|
321
|
-
* @param {
|
|
322
|
-
* @
|
|
323
|
-
* @param {bigint} fee
|
|
324
|
-
* @param {boolean} force_merge
|
|
325
|
-
* @returns {Promise<WasmTransaction>}
|
|
366
|
+
* @param {Uint8Array} buffer
|
|
367
|
+
* @returns {string}
|
|
326
368
|
*/
|
|
327
|
-
export function
|
|
328
|
-
const ret = wasm.
|
|
369
|
+
export function hash(buffer) {
|
|
370
|
+
const ret = wasm.hash(addHeapObject(buffer));
|
|
329
371
|
return takeObject(ret);
|
|
330
372
|
}
|
|
331
373
|
|
|
332
374
|
/**
|
|
333
375
|
* @param {Uint8Array} buffer
|
|
334
|
-
* @param {
|
|
376
|
+
* @param {Uint8Array} hash
|
|
377
|
+
* @param {bigint} block_id
|
|
335
378
|
* @param {bigint} peer_index
|
|
336
379
|
* @returns {Promise<void>}
|
|
337
380
|
*/
|
|
338
|
-
export function
|
|
339
|
-
const ret = wasm.
|
|
381
|
+
export function process_fetched_block(buffer, hash, block_id, peer_index) {
|
|
382
|
+
const ret = wasm.process_fetched_block(addHeapObject(buffer), addHeapObject(hash), block_id, peer_index);
|
|
340
383
|
return takeObject(ret);
|
|
341
384
|
}
|
|
342
385
|
|
|
343
386
|
/**
|
|
344
|
-
* @param {bigint}
|
|
387
|
+
* @param {bigint} peer_index
|
|
345
388
|
* @returns {Promise<void>}
|
|
346
389
|
*/
|
|
347
|
-
export function
|
|
348
|
-
const ret = wasm.
|
|
390
|
+
export function process_peer_disconnection(peer_index) {
|
|
391
|
+
const ret = wasm.process_peer_disconnection(peer_index);
|
|
349
392
|
return takeObject(ret);
|
|
350
393
|
}
|
|
351
394
|
|
|
352
395
|
/**
|
|
353
|
-
* @
|
|
396
|
+
* @param {bigint} peer_index
|
|
397
|
+
* @returns {Promise<WasmPeer | undefined>}
|
|
354
398
|
*/
|
|
355
|
-
export function
|
|
356
|
-
const ret = wasm.
|
|
399
|
+
export function get_peer(peer_index) {
|
|
400
|
+
const ret = wasm.get_peer(peer_index);
|
|
357
401
|
return takeObject(ret);
|
|
358
402
|
}
|
|
359
403
|
|
|
360
404
|
/**
|
|
361
|
-
* @param {
|
|
362
|
-
* @param {
|
|
363
|
-
* @param {
|
|
364
|
-
* @
|
|
365
|
-
* @param {string} recipient_public_key
|
|
366
|
-
* @param {string} nft_type
|
|
367
|
-
* @returns {Promise<WasmTransaction>}
|
|
405
|
+
* @param {Uint8Array} buffer
|
|
406
|
+
* @param {number} msg_index
|
|
407
|
+
* @param {bigint} peer_index
|
|
408
|
+
* @returns {Promise<void>}
|
|
368
409
|
*/
|
|
369
|
-
export function
|
|
370
|
-
const ret = wasm.
|
|
410
|
+
export function send_api_error(buffer, msg_index, peer_index) {
|
|
411
|
+
const ret = wasm.send_api_error(addHeapObject(buffer), msg_index, peer_index);
|
|
371
412
|
return takeObject(ret);
|
|
372
413
|
}
|
|
373
414
|
|
|
374
415
|
/**
|
|
375
|
-
* @param {WasmBalanceSnapshot} snapshot
|
|
376
416
|
* @returns {Promise<void>}
|
|
377
417
|
*/
|
|
378
|
-
export function
|
|
379
|
-
|
|
380
|
-
var ptr0 = snapshot.__destroy_into_raw();
|
|
381
|
-
const ret = wasm.update_from_balance_snapshot(ptr0);
|
|
418
|
+
export function disable_producing_blocks_by_timer() {
|
|
419
|
+
const ret = wasm.disable_producing_blocks_by_timer();
|
|
382
420
|
return takeObject(ret);
|
|
383
421
|
}
|
|
384
422
|
|
|
385
423
|
/**
|
|
386
|
-
* @param {bigint}
|
|
424
|
+
* @param {bigint} duration_in_ms
|
|
387
425
|
* @returns {Promise<void>}
|
|
388
426
|
*/
|
|
389
|
-
export function
|
|
390
|
-
const ret = wasm.
|
|
427
|
+
export function process_timer_event(duration_in_ms) {
|
|
428
|
+
const ret = wasm.process_timer_event(duration_in_ms);
|
|
391
429
|
return takeObject(ret);
|
|
392
430
|
}
|
|
393
431
|
|
|
394
432
|
/**
|
|
395
|
-
* @
|
|
433
|
+
* @param {string} block_hash
|
|
434
|
+
* @returns {Promise<WasmBlock>}
|
|
396
435
|
*/
|
|
397
|
-
export function
|
|
398
|
-
const ret = wasm.
|
|
436
|
+
export function get_block(block_hash) {
|
|
437
|
+
const ret = wasm.get_block(addHeapObject(block_hash));
|
|
399
438
|
return takeObject(ret);
|
|
400
439
|
}
|
|
401
440
|
|
|
402
441
|
/**
|
|
403
|
-
* @param {
|
|
404
|
-
* @returns {
|
|
442
|
+
* @param {bigint} threshold
|
|
443
|
+
* @returns {Promise<void>}
|
|
405
444
|
*/
|
|
406
|
-
export function
|
|
407
|
-
const ret = wasm.
|
|
445
|
+
export function write_issuance_file(threshold) {
|
|
446
|
+
const ret = wasm.write_issuance_file(threshold);
|
|
408
447
|
return takeObject(ret);
|
|
409
448
|
}
|
|
410
449
|
|
|
411
450
|
/**
|
|
412
|
-
* @
|
|
451
|
+
* @param {Uint8Array} buffer
|
|
452
|
+
* @param {number} msg_index
|
|
453
|
+
* @param {bigint} peer_index
|
|
454
|
+
* @returns {Promise<void>}
|
|
413
455
|
*/
|
|
414
|
-
export function
|
|
415
|
-
const ret = wasm.
|
|
456
|
+
export function send_api_call(buffer, msg_index, peer_index) {
|
|
457
|
+
const ret = wasm.send_api_call(addHeapObject(buffer), msg_index, peer_index);
|
|
416
458
|
return takeObject(ret);
|
|
417
459
|
}
|
|
418
460
|
|
|
@@ -425,42 +467,42 @@ export function get_peer_stats() {
|
|
|
425
467
|
}
|
|
426
468
|
|
|
427
469
|
/**
|
|
428
|
-
* @
|
|
429
|
-
* @returns {boolean}
|
|
470
|
+
* @returns {Promise<Array<any>>}
|
|
430
471
|
*/
|
|
431
|
-
export function
|
|
432
|
-
const ret = wasm.
|
|
433
|
-
return ret
|
|
472
|
+
export function get_mempool_txs() {
|
|
473
|
+
const ret = wasm.get_mempool_txs();
|
|
474
|
+
return takeObject(ret);
|
|
434
475
|
}
|
|
435
476
|
|
|
436
477
|
/**
|
|
437
|
-
* @param {string}
|
|
438
|
-
* @param {
|
|
478
|
+
* @param {string} public_key
|
|
479
|
+
* @param {bigint} amount
|
|
480
|
+
* @param {bigint} fee
|
|
481
|
+
* @param {boolean} force_merge
|
|
439
482
|
* @returns {Promise<WasmTransaction>}
|
|
440
483
|
*/
|
|
441
|
-
export function
|
|
442
|
-
const
|
|
443
|
-
const len0 = WASM_VECTOR_LEN;
|
|
444
|
-
const ret = wasm.create_merge_bound_transaction(ptr0, len0, addHeapObject(tx_msg));
|
|
484
|
+
export function create_transaction(public_key, amount, fee, force_merge) {
|
|
485
|
+
const ret = wasm.create_transaction(addHeapObject(public_key), amount, fee, force_merge);
|
|
445
486
|
return takeObject(ret);
|
|
446
487
|
}
|
|
447
488
|
|
|
448
489
|
/**
|
|
449
490
|
* @returns {Promise<boolean>}
|
|
450
491
|
*/
|
|
451
|
-
export function
|
|
452
|
-
const ret = wasm.
|
|
492
|
+
export function produce_block_without_gt() {
|
|
493
|
+
const ret = wasm.produce_block_without_gt();
|
|
453
494
|
return takeObject(ret);
|
|
454
495
|
}
|
|
455
496
|
|
|
456
497
|
/**
|
|
498
|
+
* @param {Uint8Array} buffer
|
|
457
499
|
* @param {string} private_key
|
|
458
500
|
* @returns {string}
|
|
459
501
|
*/
|
|
460
|
-
export function
|
|
502
|
+
export function sign_buffer(buffer, private_key) {
|
|
461
503
|
try {
|
|
462
504
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
463
|
-
wasm.
|
|
505
|
+
wasm.sign_buffer(retptr, addHeapObject(buffer), addHeapObject(private_key));
|
|
464
506
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
465
507
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
466
508
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -474,68 +516,38 @@ export function generate_public_key(private_key) {
|
|
|
474
516
|
}
|
|
475
517
|
|
|
476
518
|
/**
|
|
477
|
-
* @returns {
|
|
519
|
+
* @returns {string}
|
|
478
520
|
*/
|
|
479
|
-
export function
|
|
480
|
-
const ret = wasm.
|
|
521
|
+
export function generate_private_key() {
|
|
522
|
+
const ret = wasm.generate_private_key();
|
|
481
523
|
return takeObject(ret);
|
|
482
524
|
}
|
|
483
525
|
|
|
484
526
|
/**
|
|
527
|
+
* @param {Uint8Array} hash
|
|
528
|
+
* @param {bigint} block_id
|
|
485
529
|
* @param {bigint} peer_index
|
|
486
|
-
* @param {string} public_key
|
|
487
530
|
* @returns {Promise<void>}
|
|
488
531
|
*/
|
|
489
|
-
export function
|
|
490
|
-
const ret = wasm.
|
|
491
|
-
return takeObject(ret);
|
|
492
|
-
}
|
|
493
|
-
|
|
494
|
-
/**
|
|
495
|
-
* @param {Uint8Array} buffer
|
|
496
|
-
* @param {string} signature
|
|
497
|
-
* @param {string} public_key
|
|
498
|
-
* @returns {boolean}
|
|
499
|
-
*/
|
|
500
|
-
export function verify_signature(buffer, signature, public_key) {
|
|
501
|
-
const ret = wasm.verify_signature(addHeapObject(buffer), addHeapObject(signature), addHeapObject(public_key));
|
|
502
|
-
return ret !== 0;
|
|
503
|
-
}
|
|
504
|
-
|
|
505
|
-
/**
|
|
506
|
-
* @returns {Promise<string>}
|
|
507
|
-
*/
|
|
508
|
-
export function get_congestion_stats() {
|
|
509
|
-
const ret = wasm.get_congestion_stats();
|
|
510
|
-
return takeObject(ret);
|
|
511
|
-
}
|
|
512
|
-
|
|
513
|
-
/**
|
|
514
|
-
* @returns {Promise<Array<any>>}
|
|
515
|
-
*/
|
|
516
|
-
export function get_nft_list() {
|
|
517
|
-
const ret = wasm.get_nft_list();
|
|
532
|
+
export function process_failed_block_fetch(hash, block_id, peer_index) {
|
|
533
|
+
const ret = wasm.process_failed_block_fetch(addHeapObject(hash), block_id, peer_index);
|
|
518
534
|
return takeObject(ret);
|
|
519
535
|
}
|
|
520
536
|
|
|
521
537
|
/**
|
|
522
|
-
* @param {Uint8Array} buffer
|
|
523
|
-
* @param {number} msg_index
|
|
524
538
|
* @param {bigint} peer_index
|
|
525
539
|
* @returns {Promise<void>}
|
|
526
540
|
*/
|
|
527
|
-
export function
|
|
528
|
-
const ret = wasm.
|
|
541
|
+
export function remove_stun_peer(peer_index) {
|
|
542
|
+
const ret = wasm.remove_stun_peer(peer_index);
|
|
529
543
|
return takeObject(ret);
|
|
530
544
|
}
|
|
531
545
|
|
|
532
546
|
/**
|
|
533
|
-
* @
|
|
534
|
-
* @returns {Promise<void>}
|
|
547
|
+
* @returns {Promise<string>}
|
|
535
548
|
*/
|
|
536
|
-
export function
|
|
537
|
-
|
|
538
|
-
const ret = wasm.propagate_transaction(tx.__wbg_ptr);
|
|
549
|
+
export function get_stats() {
|
|
550
|
+
const ret = wasm.get_stats();
|
|
539
551
|
return takeObject(ret);
|
|
540
552
|
}
|
|
541
553
|
|
|
@@ -548,112 +560,133 @@ export function get_account_slips(public_key) {
|
|
|
548
560
|
return takeObject(ret);
|
|
549
561
|
}
|
|
550
562
|
|
|
551
|
-
/**
|
|
552
|
-
* @returns {Promise<boolean>}
|
|
553
|
-
*/
|
|
554
|
-
export function produce_block_without_gt() {
|
|
555
|
-
const ret = wasm.produce_block_without_gt();
|
|
556
|
-
return takeObject(ret);
|
|
557
|
-
}
|
|
558
|
-
|
|
559
563
|
/**
|
|
560
564
|
* @param {Uint8Array} buffer
|
|
561
565
|
* @param {number} msg_index
|
|
562
566
|
* @param {bigint} peer_index
|
|
563
567
|
* @returns {Promise<void>}
|
|
564
568
|
*/
|
|
565
|
-
export function
|
|
566
|
-
const ret = wasm.
|
|
569
|
+
export function send_api_success(buffer, msg_index, peer_index) {
|
|
570
|
+
const ret = wasm.send_api_success(addHeapObject(buffer), msg_index, peer_index);
|
|
567
571
|
return takeObject(ret);
|
|
568
572
|
}
|
|
569
573
|
|
|
570
574
|
/**
|
|
571
|
-
* @param {
|
|
572
|
-
* @
|
|
575
|
+
* @param {string} config_json
|
|
576
|
+
* @param {string} private_key
|
|
577
|
+
* @param {number} log_level_num
|
|
578
|
+
* @param {bigint} hasten_multiplier
|
|
579
|
+
* @param {boolean} delete_old_blocks
|
|
580
|
+
* @returns {Promise<any>}
|
|
573
581
|
*/
|
|
574
|
-
export function
|
|
575
|
-
const ret = wasm.
|
|
582
|
+
export function initialize(config_json, private_key, log_level_num, hasten_multiplier, delete_old_blocks) {
|
|
583
|
+
const ret = wasm.initialize(addHeapObject(config_json), addHeapObject(private_key), log_level_num, hasten_multiplier, delete_old_blocks);
|
|
576
584
|
return takeObject(ret);
|
|
577
585
|
}
|
|
578
586
|
|
|
579
587
|
/**
|
|
580
|
-
* @param {string}
|
|
581
|
-
* @
|
|
582
|
-
* @param {string} slip3_utxo_key
|
|
583
|
-
* @param {number} left_count
|
|
584
|
-
* @param {number} right_count
|
|
585
|
-
* @param {Uint8Array} tx_msg
|
|
586
|
-
* @returns {Promise<WasmTransaction>}
|
|
588
|
+
* @param {string} private_key
|
|
589
|
+
* @returns {string}
|
|
587
590
|
*/
|
|
588
|
-
export function
|
|
589
|
-
|
|
590
|
-
|
|
591
|
+
export function generate_public_key(private_key) {
|
|
592
|
+
try {
|
|
593
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
594
|
+
wasm.generate_public_key(retptr, addHeapObject(private_key));
|
|
595
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
596
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
597
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
598
|
+
if (r2) {
|
|
599
|
+
throw takeObject(r1);
|
|
600
|
+
}
|
|
601
|
+
return takeObject(r0);
|
|
602
|
+
} finally {
|
|
603
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
604
|
+
}
|
|
591
605
|
}
|
|
592
606
|
|
|
593
607
|
/**
|
|
594
|
-
* @returns {Promise<
|
|
608
|
+
* @returns {Promise<bigint>}
|
|
595
609
|
*/
|
|
596
|
-
export function
|
|
597
|
-
const ret = wasm.
|
|
610
|
+
export function get_next_peer_index() {
|
|
611
|
+
const ret = wasm.get_next_peer_index();
|
|
598
612
|
return takeObject(ret);
|
|
599
613
|
}
|
|
600
614
|
|
|
601
615
|
/**
|
|
602
|
-
* @
|
|
616
|
+
* @param {WasmTransaction} tx
|
|
617
|
+
* @returns {Promise<void>}
|
|
603
618
|
*/
|
|
604
|
-
export function
|
|
605
|
-
|
|
619
|
+
export function propagate_transaction(tx) {
|
|
620
|
+
_assertClass(tx, WasmTransaction);
|
|
621
|
+
const ret = wasm.propagate_transaction(tx.__wbg_ptr);
|
|
606
622
|
return takeObject(ret);
|
|
607
623
|
}
|
|
608
624
|
|
|
609
625
|
/**
|
|
610
|
-
* @param {
|
|
611
|
-
* @
|
|
626
|
+
* @param {Uint8Array} buffer
|
|
627
|
+
* @param {string} signature
|
|
628
|
+
* @param {string} public_key
|
|
629
|
+
* @returns {boolean}
|
|
612
630
|
*/
|
|
613
|
-
export function
|
|
614
|
-
const ret = wasm.
|
|
615
|
-
return
|
|
631
|
+
export function verify_signature(buffer, signature, public_key) {
|
|
632
|
+
const ret = wasm.verify_signature(addHeapObject(buffer), addHeapObject(signature), addHeapObject(public_key));
|
|
633
|
+
return ret !== 0;
|
|
616
634
|
}
|
|
617
635
|
|
|
618
636
|
/**
|
|
637
|
+
* @param {number} major
|
|
638
|
+
* @param {number} minor
|
|
639
|
+
* @param {number} patch
|
|
619
640
|
* @returns {Promise<void>}
|
|
620
641
|
*/
|
|
621
|
-
export function
|
|
622
|
-
const ret = wasm.
|
|
642
|
+
export function set_wallet_version(major, minor, patch) {
|
|
643
|
+
const ret = wasm.set_wallet_version(major, minor, patch);
|
|
623
644
|
return takeObject(ret);
|
|
624
645
|
}
|
|
625
646
|
|
|
626
647
|
/**
|
|
627
|
-
* @
|
|
648
|
+
* @param {bigint} peer_index
|
|
649
|
+
* @param {string} public_key
|
|
650
|
+
* @returns {Promise<void>}
|
|
628
651
|
*/
|
|
629
|
-
export function
|
|
630
|
-
const ret = wasm.
|
|
652
|
+
export function process_stun_peer(peer_index, public_key) {
|
|
653
|
+
const ret = wasm.process_stun_peer(peer_index, addHeapObject(public_key));
|
|
631
654
|
return takeObject(ret);
|
|
632
655
|
}
|
|
633
656
|
|
|
634
657
|
/**
|
|
635
|
-
* @
|
|
636
|
-
* @returns {Promise<WasmBlock>}
|
|
658
|
+
* @returns {Promise<boolean>}
|
|
637
659
|
*/
|
|
638
|
-
export function
|
|
639
|
-
const ret = wasm.
|
|
660
|
+
export function produce_block_with_gt() {
|
|
661
|
+
const ret = wasm.produce_block_with_gt();
|
|
640
662
|
return takeObject(ret);
|
|
641
663
|
}
|
|
642
664
|
|
|
643
665
|
/**
|
|
644
|
-
* @param {bigint}
|
|
645
|
-
* @
|
|
666
|
+
* @param {bigint} amt
|
|
667
|
+
* @param {string} slip1_utxo_key
|
|
668
|
+
* @param {string} slip2_utxo_key
|
|
669
|
+
* @param {string} slip3_utxo_key
|
|
670
|
+
* @param {string} recipient_public_key
|
|
671
|
+
* @param {Uint8Array} tx_msg
|
|
672
|
+
* @returns {Promise<WasmTransaction>}
|
|
646
673
|
*/
|
|
647
|
-
export function
|
|
648
|
-
const ret = wasm.
|
|
674
|
+
export function create_send_bound_transaction(amt, slip1_utxo_key, slip2_utxo_key, slip3_utxo_key, recipient_public_key, tx_msg) {
|
|
675
|
+
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));
|
|
649
676
|
return takeObject(ret);
|
|
650
677
|
}
|
|
651
678
|
|
|
652
679
|
/**
|
|
653
|
-
* @
|
|
680
|
+
* @param {string} slip1_utxo_key
|
|
681
|
+
* @param {string} slip2_utxo_key
|
|
682
|
+
* @param {string} slip3_utxo_key
|
|
683
|
+
* @param {number} left_count
|
|
684
|
+
* @param {number} right_count
|
|
685
|
+
* @param {Uint8Array} tx_msg
|
|
686
|
+
* @returns {Promise<WasmTransaction>}
|
|
654
687
|
*/
|
|
655
|
-
export function
|
|
656
|
-
const ret = wasm.
|
|
688
|
+
export function create_split_bound_transaction(slip1_utxo_key, slip2_utxo_key, slip3_utxo_key, left_count, right_count, tx_msg) {
|
|
689
|
+
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));
|
|
657
690
|
return takeObject(ret);
|
|
658
691
|
}
|
|
659
692
|
|
|
@@ -670,61 +703,28 @@ export function process_msg_buffer_from_peer(buffer, peer_index) {
|
|
|
670
703
|
/**
|
|
671
704
|
* @returns {Promise<Array<any>>}
|
|
672
705
|
*/
|
|
673
|
-
export function
|
|
674
|
-
const ret = wasm.
|
|
706
|
+
export function get_nft_list() {
|
|
707
|
+
const ret = wasm.get_nft_list();
|
|
675
708
|
return takeObject(ret);
|
|
676
709
|
}
|
|
677
710
|
|
|
678
711
|
/**
|
|
679
|
-
* @param {
|
|
680
|
-
* @param {number} minor
|
|
681
|
-
* @param {number} patch
|
|
712
|
+
* @param {WasmBalanceSnapshot} snapshot
|
|
682
713
|
* @returns {Promise<void>}
|
|
683
714
|
*/
|
|
684
|
-
export function
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
/**
|
|
690
|
-
* @param {Uint8Array} buffer
|
|
691
|
-
* @param {string} private_key
|
|
692
|
-
* @returns {string}
|
|
693
|
-
*/
|
|
694
|
-
export function sign_buffer(buffer, private_key) {
|
|
695
|
-
try {
|
|
696
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
697
|
-
wasm.sign_buffer(retptr, addHeapObject(buffer), addHeapObject(private_key));
|
|
698
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
699
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
700
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
701
|
-
if (r2) {
|
|
702
|
-
throw takeObject(r1);
|
|
703
|
-
}
|
|
704
|
-
return takeObject(r0);
|
|
705
|
-
} finally {
|
|
706
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
707
|
-
}
|
|
708
|
-
}
|
|
709
|
-
|
|
710
|
-
/**
|
|
711
|
-
* @param {bigint} peer_index
|
|
712
|
-
* @returns {Promise<WasmPeer | undefined>}
|
|
713
|
-
*/
|
|
714
|
-
export function get_peer(peer_index) {
|
|
715
|
-
const ret = wasm.get_peer(peer_index);
|
|
715
|
+
export function update_from_balance_snapshot(snapshot) {
|
|
716
|
+
_assertClass(snapshot, WasmBalanceSnapshot);
|
|
717
|
+
var ptr0 = snapshot.__destroy_into_raw();
|
|
718
|
+
const ret = wasm.update_from_balance_snapshot(ptr0);
|
|
716
719
|
return takeObject(ret);
|
|
717
720
|
}
|
|
718
721
|
|
|
719
722
|
/**
|
|
720
|
-
* @param {
|
|
721
|
-
* @param {Uint8Array} hash
|
|
722
|
-
* @param {bigint} block_id
|
|
723
|
-
* @param {bigint} peer_index
|
|
723
|
+
* @param {bigint} current_time
|
|
724
724
|
* @returns {Promise<void>}
|
|
725
725
|
*/
|
|
726
|
-
export function
|
|
727
|
-
const ret = wasm.
|
|
726
|
+
export function process_stat_interval(current_time) {
|
|
727
|
+
const ret = wasm.process_stat_interval(current_time);
|
|
728
728
|
return takeObject(ret);
|
|
729
729
|
}
|
|
730
730
|
|
|
@@ -2664,14 +2664,18 @@ function __wbg_get_imports() {
|
|
|
2664
2664
|
const ret = BigInt.asUintN(64, arg0);
|
|
2665
2665
|
return addHeapObject(ret);
|
|
2666
2666
|
};
|
|
2667
|
-
imports.wbg.__wbg_wasmwallet_new = function(arg0) {
|
|
2668
|
-
const ret = WasmWallet.__wrap(arg0);
|
|
2669
|
-
return addHeapObject(ret);
|
|
2670
|
-
};
|
|
2671
2667
|
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
2672
2668
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
2673
2669
|
return addHeapObject(ret);
|
|
2674
2670
|
};
|
|
2671
|
+
imports.wbg.__wbg_wasmwalletslip_new = function(arg0) {
|
|
2672
|
+
const ret = WasmWalletSlip.__wrap(arg0);
|
|
2673
|
+
return addHeapObject(ret);
|
|
2674
|
+
};
|
|
2675
|
+
imports.wbg.__wbg_wasmbalancesnapshot_new = function(arg0) {
|
|
2676
|
+
const ret = WasmBalanceSnapshot.__wrap(arg0);
|
|
2677
|
+
return addHeapObject(ret);
|
|
2678
|
+
};
|
|
2675
2679
|
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
2676
2680
|
const obj = getObject(arg1);
|
|
2677
2681
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
@@ -2684,36 +2688,32 @@ function __wbg_get_imports() {
|
|
|
2684
2688
|
const ret = WasmTransaction.__wrap(arg0);
|
|
2685
2689
|
return addHeapObject(ret);
|
|
2686
2690
|
};
|
|
2687
|
-
imports.wbg.
|
|
2688
|
-
const ret =
|
|
2689
|
-
return addHeapObject(ret);
|
|
2690
|
-
};
|
|
2691
|
-
imports.wbg.__wbg_wasmwalletslip_new = function(arg0) {
|
|
2692
|
-
const ret = WasmWalletSlip.__wrap(arg0);
|
|
2691
|
+
imports.wbg.__wbg_wasmblockchain_new = function(arg0) {
|
|
2692
|
+
const ret = WasmBlockchain.__wrap(arg0);
|
|
2693
2693
|
return addHeapObject(ret);
|
|
2694
2694
|
};
|
|
2695
2695
|
imports.wbg.__wbg_wasmnft_new = function(arg0) {
|
|
2696
2696
|
const ret = WasmNFT.__wrap(arg0);
|
|
2697
2697
|
return addHeapObject(ret);
|
|
2698
2698
|
};
|
|
2699
|
-
imports.wbg.
|
|
2700
|
-
const ret =
|
|
2699
|
+
imports.wbg.__wbg_wasmpeer_new = function(arg0) {
|
|
2700
|
+
const ret = WasmPeer.__wrap(arg0);
|
|
2701
2701
|
return addHeapObject(ret);
|
|
2702
2702
|
};
|
|
2703
2703
|
imports.wbg.__wbg_wasmblock_new = function(arg0) {
|
|
2704
2704
|
const ret = WasmBlock.__wrap(arg0);
|
|
2705
2705
|
return addHeapObject(ret);
|
|
2706
2706
|
};
|
|
2707
|
-
imports.wbg.
|
|
2708
|
-
const ret =
|
|
2707
|
+
imports.wbg.__wbg_wasmwallet_new = function(arg0) {
|
|
2708
|
+
const ret = WasmWallet.__wrap(arg0);
|
|
2709
2709
|
return addHeapObject(ret);
|
|
2710
2710
|
};
|
|
2711
|
-
imports.wbg.
|
|
2712
|
-
const ret =
|
|
2711
|
+
imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
|
|
2712
|
+
const ret = getObject(arg0);
|
|
2713
2713
|
return addHeapObject(ret);
|
|
2714
2714
|
};
|
|
2715
|
-
imports.wbg.
|
|
2716
|
-
const ret =
|
|
2715
|
+
imports.wbg.__wbg_wasmslip_new = function(arg0) {
|
|
2716
|
+
const ret = WasmSlip.__wrap(arg0);
|
|
2717
2717
|
return addHeapObject(ret);
|
|
2718
2718
|
};
|
|
2719
2719
|
imports.wbg.__wbindgen_is_object = function(arg0) {
|
|
@@ -2741,7 +2741,7 @@ function __wbg_get_imports() {
|
|
|
2741
2741
|
const ret = WasmPeerService.__wrap(arg0);
|
|
2742
2742
|
return addHeapObject(ret);
|
|
2743
2743
|
};
|
|
2744
|
-
imports.wbg.
|
|
2744
|
+
imports.wbg.__wbg_flushdata_02f5939a34c7adf1 = function(arg0, arg1) {
|
|
2745
2745
|
let deferred0_0;
|
|
2746
2746
|
let deferred0_1;
|
|
2747
2747
|
try {
|
|
@@ -2752,7 +2752,7 @@ function __wbg_get_imports() {
|
|
|
2752
2752
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2753
2753
|
}
|
|
2754
2754
|
};
|
|
2755
|
-
imports.wbg.
|
|
2755
|
+
imports.wbg.__wbg_readvalue_6f58b8d737c8947f = function() { return handleError(function (arg0, arg1) {
|
|
2756
2756
|
let deferred0_0;
|
|
2757
2757
|
let deferred0_1;
|
|
2758
2758
|
try {
|
|
@@ -2764,13 +2764,13 @@ function __wbg_get_imports() {
|
|
|
2764
2764
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2765
2765
|
}
|
|
2766
2766
|
}, arguments) };
|
|
2767
|
-
imports.wbg.
|
|
2767
|
+
imports.wbg.__wbg_loadwallet_4fa9260e0e5b29ad = function() {
|
|
2768
2768
|
MsgHandler.load_wallet();
|
|
2769
2769
|
};
|
|
2770
|
-
imports.wbg.
|
|
2770
|
+
imports.wbg.__wbg_savewallet_db43f92c74d98db4 = function() {
|
|
2771
2771
|
MsgHandler.save_wallet();
|
|
2772
2772
|
};
|
|
2773
|
-
imports.wbg.
|
|
2773
|
+
imports.wbg.__wbg_writevalue_64abf78ec7b7a0a7 = function(arg0, arg1, arg2) {
|
|
2774
2774
|
let deferred0_0;
|
|
2775
2775
|
let deferred0_1;
|
|
2776
2776
|
try {
|
|
@@ -2781,7 +2781,7 @@ function __wbg_get_imports() {
|
|
|
2781
2781
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2782
2782
|
}
|
|
2783
2783
|
};
|
|
2784
|
-
imports.wbg.
|
|
2784
|
+
imports.wbg.__wbg_appendvalue_dfb9143a42c8a96f = function(arg0, arg1, arg2) {
|
|
2785
2785
|
let deferred0_0;
|
|
2786
2786
|
let deferred0_1;
|
|
2787
2787
|
try {
|
|
@@ -2792,7 +2792,7 @@ function __wbg_get_imports() {
|
|
|
2792
2792
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2793
2793
|
}
|
|
2794
2794
|
};
|
|
2795
|
-
imports.wbg.
|
|
2795
|
+
imports.wbg.__wbg_removevalue_54c2c52edfb40121 = function() { return handleError(function (arg0, arg1) {
|
|
2796
2796
|
let deferred0_0;
|
|
2797
2797
|
let deferred0_1;
|
|
2798
2798
|
try {
|
|
@@ -2804,10 +2804,10 @@ function __wbg_get_imports() {
|
|
|
2804
2804
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2805
2805
|
}
|
|
2806
2806
|
}, arguments) };
|
|
2807
|
-
imports.wbg.
|
|
2807
|
+
imports.wbg.__wbg_sendmessage_dd1c456fc24d6ae2 = function(arg0, arg1) {
|
|
2808
2808
|
MsgHandler.send_message(takeObject(arg0), getObject(arg1));
|
|
2809
2809
|
};
|
|
2810
|
-
imports.wbg.
|
|
2810
|
+
imports.wbg.__wbg_connecttopeer_2e3115f373923a34 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
2811
2811
|
let deferred0_0;
|
|
2812
2812
|
let deferred0_1;
|
|
2813
2813
|
try {
|
|
@@ -2819,13 +2819,13 @@ function __wbg_get_imports() {
|
|
|
2819
2819
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2820
2820
|
}
|
|
2821
2821
|
}, arguments) };
|
|
2822
|
-
imports.wbg.
|
|
2822
|
+
imports.wbg.__wbg_getmyservices_247b7276a00aa7a1 = function() {
|
|
2823
2823
|
const ret = MsgHandler.get_my_services();
|
|
2824
2824
|
_assertClass(ret, WasmPeerServiceList);
|
|
2825
2825
|
var ptr1 = ret.__destroy_into_raw();
|
|
2826
2826
|
return ptr1;
|
|
2827
2827
|
};
|
|
2828
|
-
imports.wbg.
|
|
2828
|
+
imports.wbg.__wbg_isexistingfile_54560db336503ad5 = function() { return handleError(function (arg0, arg1) {
|
|
2829
2829
|
let deferred0_0;
|
|
2830
2830
|
let deferred0_1;
|
|
2831
2831
|
try {
|
|
@@ -2837,27 +2837,27 @@ function __wbg_get_imports() {
|
|
|
2837
2837
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2838
2838
|
}
|
|
2839
2839
|
}, arguments) };
|
|
2840
|
-
imports.wbg.
|
|
2840
|
+
imports.wbg.__wbg_processapicall_d409cedb7f665312 = function(arg0, arg1, arg2) {
|
|
2841
2841
|
MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2842
2842
|
};
|
|
2843
|
-
imports.wbg.
|
|
2843
|
+
imports.wbg.__wbg_processapierror_e2c1f858819cf5cf = function(arg0, arg1, arg2) {
|
|
2844
2844
|
MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2845
2845
|
};
|
|
2846
|
-
imports.wbg.
|
|
2846
|
+
imports.wbg.__wbg_processapisuccess_dc587307a8ec6a59 = function(arg0, arg1, arg2) {
|
|
2847
2847
|
MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2848
2848
|
};
|
|
2849
|
-
imports.wbg.
|
|
2849
|
+
imports.wbg.__wbg_sendmessagetoall_5c38c389c7434159 = function(arg0, arg1) {
|
|
2850
2850
|
MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
|
|
2851
2851
|
};
|
|
2852
|
-
imports.wbg.
|
|
2852
|
+
imports.wbg.__wbg_disconnectfrompeer_41e790d250243fd7 = function() { return handleError(function (arg0) {
|
|
2853
2853
|
const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
|
|
2854
2854
|
return addHeapObject(ret);
|
|
2855
2855
|
}, arguments) };
|
|
2856
|
-
imports.wbg.
|
|
2856
|
+
imports.wbg.__wbg_loadblockfilelist_5e719b9d74178df6 = function() { return handleError(function () {
|
|
2857
2857
|
const ret = MsgHandler.load_block_file_list();
|
|
2858
2858
|
return addHeapObject(ret);
|
|
2859
2859
|
}, arguments) };
|
|
2860
|
-
imports.wbg.
|
|
2860
|
+
imports.wbg.__wbg_sendinterfaceevent_890fc416d90ba971 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
2861
2861
|
let deferred0_0;
|
|
2862
2862
|
let deferred0_1;
|
|
2863
2863
|
let deferred1_0;
|
|
@@ -2873,7 +2873,7 @@ function __wbg_get_imports() {
|
|
|
2873
2873
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
2874
2874
|
}
|
|
2875
2875
|
};
|
|
2876
|
-
imports.wbg.
|
|
2876
|
+
imports.wbg.__wbg_sendblocksuccess_294795b33a4eb2c8 = function(arg0, arg1, arg2) {
|
|
2877
2877
|
let deferred0_0;
|
|
2878
2878
|
let deferred0_1;
|
|
2879
2879
|
try {
|
|
@@ -2884,10 +2884,10 @@ function __wbg_get_imports() {
|
|
|
2884
2884
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2885
2885
|
}
|
|
2886
2886
|
};
|
|
2887
|
-
imports.wbg.
|
|
2887
|
+
imports.wbg.__wbg_sendwalletupdate_6128fb2a65955772 = function() {
|
|
2888
2888
|
MsgHandler.send_wallet_update();
|
|
2889
2889
|
};
|
|
2890
|
-
imports.wbg.
|
|
2890
|
+
imports.wbg.__wbg_sendnewversionalert_90c0405e8fc96529 = function(arg0, arg1, arg2) {
|
|
2891
2891
|
let deferred0_0;
|
|
2892
2892
|
let deferred0_1;
|
|
2893
2893
|
try {
|
|
@@ -2898,13 +2898,13 @@ function __wbg_get_imports() {
|
|
|
2898
2898
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2899
2899
|
}
|
|
2900
2900
|
};
|
|
2901
|
-
imports.wbg.
|
|
2901
|
+
imports.wbg.__wbg_sendblockfetchstatusevent_f8ad3e0c574a3d2f = function(arg0) {
|
|
2902
2902
|
MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
|
|
2903
2903
|
};
|
|
2904
|
-
imports.wbg.
|
|
2904
|
+
imports.wbg.__wbg_sendnewchaindetectedevent_814f1cb2a0968c86 = function() {
|
|
2905
2905
|
MsgHandler.send_new_chain_detected_event();
|
|
2906
2906
|
};
|
|
2907
|
-
imports.wbg.
|
|
2907
|
+
imports.wbg.__wbg_fetchblockfrompeer_1ae370fdece9cb73 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2908
2908
|
let deferred0_0;
|
|
2909
2909
|
let deferred0_1;
|
|
2910
2910
|
try {
|
|
@@ -2916,7 +2916,7 @@ function __wbg_get_imports() {
|
|
|
2916
2916
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2917
2917
|
}
|
|
2918
2918
|
}, arguments) };
|
|
2919
|
-
imports.wbg.
|
|
2919
|
+
imports.wbg.__wbg_ensureblockdirectoryexists_7fcab2b9dc2610fe = function() { return handleError(function (arg0, arg1) {
|
|
2920
2920
|
let deferred0_0;
|
|
2921
2921
|
let deferred0_1;
|
|
2922
2922
|
try {
|
|
@@ -3235,7 +3235,7 @@ function __wbg_get_imports() {
|
|
|
3235
3235
|
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
3236
3236
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
3237
3237
|
};
|
|
3238
|
-
imports.wbg.
|
|
3238
|
+
imports.wbg.__wbindgen_closure_wrapper1619 = function(arg0, arg1, arg2) {
|
|
3239
3239
|
const ret = makeMutClosure(arg0, arg1, 574, __wbg_adapter_38);
|
|
3240
3240
|
return addHeapObject(ret);
|
|
3241
3241
|
};
|