saito-wasm 0.2.168 → 0.2.169
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 +135 -135
- package/pkg/node/index.js +282 -282
- package/pkg/node/index_bg.wasm +0 -0
- package/pkg/node/index_bg.wasm.d.ts +61 -61
- package/pkg/node/package.json +3 -3
- package/pkg/web/index.d.ts +196 -196
- package/pkg/web/index.js +279 -279
- package/pkg/web/index_bg.wasm +0 -0
- package/pkg/web/index_bg.wasm.d.ts +61 -61
- package/pkg/web/package.json +1 -1
- /package/pkg/node/snippets/{saito-wasm-86859bf1424d0da8 → saito-wasm-ac621af49b696a83}/js/msg_handler.js +0 -0
- /package/pkg/web/snippets/{saito-wasm-86859bf1424d0da8 → saito-wasm-ac621af49b696a83}/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-ac621af49b696a83/js/msg_handler.js';
|
|
2
2
|
|
|
3
3
|
let wasm;
|
|
4
4
|
|
|
@@ -22,16 +22,9 @@ function takeObject(idx) {
|
|
|
22
22
|
return ret;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
27
|
-
const idx = heap_next;
|
|
28
|
-
heap_next = heap[idx];
|
|
29
|
-
|
|
30
|
-
heap[idx] = obj;
|
|
31
|
-
return idx;
|
|
32
|
-
}
|
|
25
|
+
const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
|
|
33
26
|
|
|
34
|
-
|
|
27
|
+
if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
|
|
35
28
|
|
|
36
29
|
let cachedUint8Memory0 = null;
|
|
37
30
|
|
|
@@ -42,6 +35,22 @@ function getUint8Memory0() {
|
|
|
42
35
|
return cachedUint8Memory0;
|
|
43
36
|
}
|
|
44
37
|
|
|
38
|
+
function getStringFromWasm0(ptr, len) {
|
|
39
|
+
ptr = ptr >>> 0;
|
|
40
|
+
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
function addHeapObject(obj) {
|
|
44
|
+
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
45
|
+
const idx = heap_next;
|
|
46
|
+
heap_next = heap[idx];
|
|
47
|
+
|
|
48
|
+
heap[idx] = obj;
|
|
49
|
+
return idx;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
let WASM_VECTOR_LEN = 0;
|
|
53
|
+
|
|
45
54
|
const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );
|
|
46
55
|
|
|
47
56
|
const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
|
|
@@ -109,15 +118,6 @@ function getInt32Memory0() {
|
|
|
109
118
|
return cachedInt32Memory0;
|
|
110
119
|
}
|
|
111
120
|
|
|
112
|
-
const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
|
|
113
|
-
|
|
114
|
-
if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
|
|
115
|
-
|
|
116
|
-
function getStringFromWasm0(ptr, len) {
|
|
117
|
-
ptr = ptr >>> 0;
|
|
118
|
-
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
119
|
-
}
|
|
120
|
-
|
|
121
121
|
let cachedFloat64Memory0 = null;
|
|
122
122
|
|
|
123
123
|
function getFloat64Memory0() {
|
|
@@ -233,64 +233,71 @@ function _assertClass(instance, klass) {
|
|
|
233
233
|
return instance.ptr;
|
|
234
234
|
}
|
|
235
235
|
/**
|
|
236
|
-
* @
|
|
236
|
+
* @param {Uint8Array} buffer
|
|
237
|
+
* @returns {string}
|
|
237
238
|
*/
|
|
238
|
-
export function
|
|
239
|
-
const ret = wasm.
|
|
239
|
+
export function hash(buffer) {
|
|
240
|
+
const ret = wasm.hash(addHeapObject(buffer));
|
|
240
241
|
return takeObject(ret);
|
|
241
242
|
}
|
|
242
243
|
|
|
243
244
|
/**
|
|
244
|
-
* @param {
|
|
245
|
-
* @
|
|
246
|
-
* @param {string} slip3_utxo_key
|
|
247
|
-
* @returns {Promise<WasmTransaction>}
|
|
245
|
+
* @param {bigint} threshold
|
|
246
|
+
* @returns {Promise<void>}
|
|
248
247
|
*/
|
|
249
|
-
export function
|
|
250
|
-
const ret = wasm.
|
|
248
|
+
export function write_issuance_file(threshold) {
|
|
249
|
+
const ret = wasm.write_issuance_file(threshold);
|
|
251
250
|
return takeObject(ret);
|
|
252
251
|
}
|
|
253
252
|
|
|
254
253
|
/**
|
|
255
|
-
* @
|
|
254
|
+
* @param {bigint} peer_index
|
|
255
|
+
* @returns {Promise<void>}
|
|
256
256
|
*/
|
|
257
|
-
export function
|
|
258
|
-
const ret = wasm.
|
|
257
|
+
export function process_peer_disconnection(peer_index) {
|
|
258
|
+
const ret = wasm.process_peer_disconnection(peer_index);
|
|
259
259
|
return takeObject(ret);
|
|
260
260
|
}
|
|
261
261
|
|
|
262
262
|
/**
|
|
263
|
-
* @
|
|
264
|
-
* @returns {Promise<void>}
|
|
263
|
+
* @returns {Promise<string>}
|
|
265
264
|
*/
|
|
266
|
-
export function
|
|
267
|
-
const ret = wasm.
|
|
265
|
+
export function get_peer_stats() {
|
|
266
|
+
const ret = wasm.get_peer_stats();
|
|
268
267
|
return takeObject(ret);
|
|
269
268
|
}
|
|
270
269
|
|
|
271
270
|
/**
|
|
272
|
-
* @
|
|
271
|
+
* @param {bigint} num
|
|
272
|
+
* @param {bigint} deposit
|
|
273
|
+
* @param {Uint8Array} tx_msg
|
|
274
|
+
* @param {bigint} fee
|
|
275
|
+
* @param {string} recipient_public_key
|
|
276
|
+
* @param {string} nft_type
|
|
277
|
+
* @returns {Promise<WasmTransaction>}
|
|
273
278
|
*/
|
|
274
|
-
export function
|
|
275
|
-
const ret = wasm.
|
|
279
|
+
export function create_bound_transaction(num, deposit, tx_msg, fee, recipient_public_key, nft_type) {
|
|
280
|
+
const ret = wasm.create_bound_transaction(num, deposit, addHeapObject(tx_msg), fee, addHeapObject(recipient_public_key), addHeapObject(nft_type));
|
|
276
281
|
return takeObject(ret);
|
|
277
282
|
}
|
|
278
283
|
|
|
279
284
|
/**
|
|
280
|
-
* @
|
|
285
|
+
* @param {WasmTransaction} tx
|
|
286
|
+
* @returns {Promise<void>}
|
|
281
287
|
*/
|
|
282
|
-
export function
|
|
283
|
-
|
|
288
|
+
export function propagate_transaction(tx) {
|
|
289
|
+
_assertClass(tx, WasmTransaction);
|
|
290
|
+
const ret = wasm.propagate_transaction(tx.__wbg_ptr);
|
|
284
291
|
return takeObject(ret);
|
|
285
292
|
}
|
|
286
293
|
|
|
287
294
|
/**
|
|
288
295
|
* @param {bigint} peer_index
|
|
289
|
-
* @param {string}
|
|
296
|
+
* @param {string} public_key
|
|
290
297
|
* @returns {Promise<void>}
|
|
291
298
|
*/
|
|
292
|
-
export function
|
|
293
|
-
const ret = wasm.
|
|
299
|
+
export function process_stun_peer(peer_index, public_key) {
|
|
300
|
+
const ret = wasm.process_stun_peer(peer_index, addHeapObject(public_key));
|
|
294
301
|
return takeObject(ret);
|
|
295
302
|
}
|
|
296
303
|
|
|
@@ -307,23 +314,24 @@ export function create_transaction_with_multiple_payments(public_keys, amounts,
|
|
|
307
314
|
}
|
|
308
315
|
|
|
309
316
|
/**
|
|
317
|
+
* @param {Uint8Array} hash
|
|
318
|
+
* @param {bigint} block_id
|
|
310
319
|
* @param {bigint} peer_index
|
|
311
320
|
* @returns {Promise<void>}
|
|
312
321
|
*/
|
|
313
|
-
export function
|
|
314
|
-
const ret = wasm.
|
|
322
|
+
export function process_failed_block_fetch(hash, block_id, peer_index) {
|
|
323
|
+
const ret = wasm.process_failed_block_fetch(addHeapObject(hash), block_id, peer_index);
|
|
315
324
|
return takeObject(ret);
|
|
316
325
|
}
|
|
317
326
|
|
|
318
327
|
/**
|
|
319
|
-
* @param {Uint8Array} buffer
|
|
320
328
|
* @param {string} private_key
|
|
321
329
|
* @returns {string}
|
|
322
330
|
*/
|
|
323
|
-
export function
|
|
331
|
+
export function generate_public_key(private_key) {
|
|
324
332
|
try {
|
|
325
333
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
326
|
-
wasm.
|
|
334
|
+
wasm.generate_public_key(retptr, addHeapObject(private_key));
|
|
327
335
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
328
336
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
329
337
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -337,36 +345,47 @@ export function sign_buffer(buffer, private_key) {
|
|
|
337
345
|
}
|
|
338
346
|
|
|
339
347
|
/**
|
|
340
|
-
* @param {
|
|
341
|
-
* @returns {
|
|
348
|
+
* @param {string} key
|
|
349
|
+
* @returns {boolean}
|
|
342
350
|
*/
|
|
343
|
-
export function
|
|
344
|
-
const ret = wasm.
|
|
351
|
+
export function is_valid_public_key(key) {
|
|
352
|
+
const ret = wasm.is_valid_public_key(addHeapObject(key));
|
|
353
|
+
return ret !== 0;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
/**
|
|
357
|
+
* @returns {Promise<Array<any>>}
|
|
358
|
+
*/
|
|
359
|
+
export function get_nft_list() {
|
|
360
|
+
const ret = wasm.get_nft_list();
|
|
345
361
|
return takeObject(ret);
|
|
346
362
|
}
|
|
347
363
|
|
|
348
364
|
/**
|
|
349
|
-
* @returns {Promise<
|
|
365
|
+
* @returns {Promise<WasmBlockchain>}
|
|
350
366
|
*/
|
|
351
|
-
export function
|
|
352
|
-
const ret = wasm.
|
|
367
|
+
export function get_blockchain() {
|
|
368
|
+
const ret = wasm.get_blockchain();
|
|
353
369
|
return takeObject(ret);
|
|
354
370
|
}
|
|
355
371
|
|
|
356
372
|
/**
|
|
357
|
-
* @
|
|
373
|
+
* @param {Uint8Array} buffer
|
|
374
|
+
* @param {number} msg_index
|
|
375
|
+
* @param {bigint} peer_index
|
|
376
|
+
* @returns {Promise<void>}
|
|
358
377
|
*/
|
|
359
|
-
export function
|
|
360
|
-
const ret = wasm.
|
|
378
|
+
export function send_api_call(buffer, msg_index, peer_index) {
|
|
379
|
+
const ret = wasm.send_api_call(addHeapObject(buffer), msg_index, peer_index);
|
|
361
380
|
return takeObject(ret);
|
|
362
381
|
}
|
|
363
382
|
|
|
364
383
|
/**
|
|
365
384
|
* @param {bigint} peer_index
|
|
366
|
-
* @returns {Promise<
|
|
385
|
+
* @returns {Promise<void>}
|
|
367
386
|
*/
|
|
368
|
-
export function
|
|
369
|
-
const ret = wasm.
|
|
387
|
+
export function remove_stun_peer(peer_index) {
|
|
388
|
+
const ret = wasm.remove_stun_peer(peer_index);
|
|
370
389
|
return takeObject(ret);
|
|
371
390
|
}
|
|
372
391
|
|
|
@@ -380,43 +399,48 @@ export function process_timer_event(duration_in_ms) {
|
|
|
380
399
|
}
|
|
381
400
|
|
|
382
401
|
/**
|
|
383
|
-
* @
|
|
402
|
+
* @param {bigint} peer_index
|
|
403
|
+
* @param {string} ip
|
|
404
|
+
* @returns {Promise<void>}
|
|
384
405
|
*/
|
|
385
|
-
export function
|
|
386
|
-
const ret = wasm.
|
|
406
|
+
export function process_new_peer(peer_index, ip) {
|
|
407
|
+
const ret = wasm.process_new_peer(peer_index, addHeapObject(ip));
|
|
387
408
|
return takeObject(ret);
|
|
388
409
|
}
|
|
389
410
|
|
|
390
411
|
/**
|
|
391
|
-
* @param {
|
|
392
|
-
* @
|
|
393
|
-
* @param {string} slip3_utxo_key
|
|
394
|
-
* @param {number} left_count
|
|
395
|
-
* @param {number} right_count
|
|
396
|
-
* @param {Uint8Array} tx_msg
|
|
397
|
-
* @returns {Promise<WasmTransaction>}
|
|
412
|
+
* @param {WasmBalanceSnapshot} snapshot
|
|
413
|
+
* @returns {Promise<void>}
|
|
398
414
|
*/
|
|
399
|
-
export function
|
|
400
|
-
|
|
415
|
+
export function update_from_balance_snapshot(snapshot) {
|
|
416
|
+
_assertClass(snapshot, WasmBalanceSnapshot);
|
|
417
|
+
var ptr0 = snapshot.__destroy_into_raw();
|
|
418
|
+
const ret = wasm.update_from_balance_snapshot(ptr0);
|
|
401
419
|
return takeObject(ret);
|
|
402
420
|
}
|
|
403
421
|
|
|
404
422
|
/**
|
|
405
|
-
* @param {
|
|
406
|
-
* @returns {Promise<
|
|
423
|
+
* @param {Array<any>} keys
|
|
424
|
+
* @returns {Promise<WasmBalanceSnapshot>}
|
|
407
425
|
*/
|
|
408
|
-
export function
|
|
409
|
-
const ret = wasm.
|
|
426
|
+
export function get_balance_snapshot(keys) {
|
|
427
|
+
const ret = wasm.get_balance_snapshot(addHeapObject(keys));
|
|
410
428
|
return takeObject(ret);
|
|
411
429
|
}
|
|
412
430
|
|
|
413
431
|
/**
|
|
414
|
-
* @
|
|
415
|
-
* @param {string} public_key
|
|
416
|
-
* @returns {Promise<void>}
|
|
432
|
+
* @returns {Promise<string>}
|
|
417
433
|
*/
|
|
418
|
-
export function
|
|
419
|
-
const ret = wasm.
|
|
434
|
+
export function get_stats() {
|
|
435
|
+
const ret = wasm.get_stats();
|
|
436
|
+
return takeObject(ret);
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
/**
|
|
440
|
+
* @returns {Promise<Array<any>>}
|
|
441
|
+
*/
|
|
442
|
+
export function get_mempool_txs() {
|
|
443
|
+
const ret = wasm.get_mempool_txs();
|
|
420
444
|
return takeObject(ret);
|
|
421
445
|
}
|
|
422
446
|
|
|
@@ -429,10 +453,10 @@ export function get_confirmations() {
|
|
|
429
453
|
}
|
|
430
454
|
|
|
431
455
|
/**
|
|
432
|
-
* @returns {
|
|
456
|
+
* @returns {string}
|
|
433
457
|
*/
|
|
434
|
-
export function
|
|
435
|
-
const ret = wasm.
|
|
458
|
+
export function generate_private_key() {
|
|
459
|
+
const ret = wasm.generate_private_key();
|
|
436
460
|
return takeObject(ret);
|
|
437
461
|
}
|
|
438
462
|
|
|
@@ -448,31 +472,40 @@ export function send_api_error(buffer, msg_index, peer_index) {
|
|
|
448
472
|
}
|
|
449
473
|
|
|
450
474
|
/**
|
|
451
|
-
* @
|
|
475
|
+
* @param {bigint} peer_index
|
|
476
|
+
* @returns {Promise<WasmPeer | undefined>}
|
|
452
477
|
*/
|
|
453
|
-
export function
|
|
454
|
-
const ret = wasm.
|
|
478
|
+
export function get_peer(peer_index) {
|
|
479
|
+
const ret = wasm.get_peer(peer_index);
|
|
455
480
|
return takeObject(ret);
|
|
456
481
|
}
|
|
457
482
|
|
|
458
483
|
/**
|
|
459
|
-
* @
|
|
460
|
-
* @returns {string}
|
|
484
|
+
* @returns {Promise<void>}
|
|
461
485
|
*/
|
|
462
|
-
export function
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
486
|
+
export function start_from_received_ghost_chain() {
|
|
487
|
+
const ret = wasm.start_from_received_ghost_chain();
|
|
488
|
+
return takeObject(ret);
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
/**
|
|
492
|
+
* @returns {Promise<void>}
|
|
493
|
+
*/
|
|
494
|
+
export function disable_producing_blocks_by_timer() {
|
|
495
|
+
const ret = wasm.disable_producing_blocks_by_timer();
|
|
496
|
+
return takeObject(ret);
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
/**
|
|
500
|
+
* @param {string} nft_id_hex
|
|
501
|
+
* @param {Uint8Array} tx_msg
|
|
502
|
+
* @returns {Promise<WasmTransaction>}
|
|
503
|
+
*/
|
|
504
|
+
export function create_merge_bound_transaction(nft_id_hex, tx_msg) {
|
|
505
|
+
const ptr0 = passStringToWasm0(nft_id_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
506
|
+
const len0 = WASM_VECTOR_LEN;
|
|
507
|
+
const ret = wasm.create_merge_bound_transaction(ptr0, len0, addHeapObject(tx_msg));
|
|
508
|
+
return takeObject(ret);
|
|
476
509
|
}
|
|
477
510
|
|
|
478
511
|
/**
|
|
@@ -500,53 +533,20 @@ export function verify_signature(buffer, signature, public_key) {
|
|
|
500
533
|
}
|
|
501
534
|
|
|
502
535
|
/**
|
|
503
|
-
* @param {
|
|
504
|
-
* @
|
|
505
|
-
* @returns {Promise<void>}
|
|
506
|
-
*/
|
|
507
|
-
export function process_msg_buffer_from_peer(buffer, peer_index) {
|
|
508
|
-
const ret = wasm.process_msg_buffer_from_peer(addHeapObject(buffer), peer_index);
|
|
509
|
-
return takeObject(ret);
|
|
510
|
-
}
|
|
511
|
-
|
|
512
|
-
/**
|
|
513
|
-
* @param {bigint} num
|
|
514
|
-
* @param {bigint} deposit
|
|
515
|
-
* @param {Uint8Array} tx_msg
|
|
516
|
-
* @param {bigint} fee
|
|
517
|
-
* @param {string} recipient_public_key
|
|
518
|
-
* @param {string} nft_type
|
|
519
|
-
* @returns {Promise<WasmTransaction>}
|
|
520
|
-
*/
|
|
521
|
-
export function create_bound_transaction(num, deposit, tx_msg, fee, recipient_public_key, nft_type) {
|
|
522
|
-
const ret = wasm.create_bound_transaction(num, deposit, addHeapObject(tx_msg), fee, addHeapObject(recipient_public_key), addHeapObject(nft_type));
|
|
523
|
-
return takeObject(ret);
|
|
524
|
-
}
|
|
525
|
-
|
|
526
|
-
/**
|
|
527
|
-
* @returns {Promise<WasmBlockchain>}
|
|
528
|
-
*/
|
|
529
|
-
export function get_blockchain() {
|
|
530
|
-
const ret = wasm.get_blockchain();
|
|
531
|
-
return takeObject(ret);
|
|
532
|
-
}
|
|
533
|
-
|
|
534
|
-
/**
|
|
535
|
-
* @param {Uint8Array} hash
|
|
536
|
-
* @param {bigint} block_id
|
|
537
|
-
* @param {bigint} peer_index
|
|
538
|
-
* @returns {Promise<void>}
|
|
536
|
+
* @param {string} public_key
|
|
537
|
+
* @returns {Promise<Array<any>>}
|
|
539
538
|
*/
|
|
540
|
-
export function
|
|
541
|
-
const ret = wasm.
|
|
539
|
+
export function get_account_slips(public_key) {
|
|
540
|
+
const ret = wasm.get_account_slips(addHeapObject(public_key));
|
|
542
541
|
return takeObject(ret);
|
|
543
542
|
}
|
|
544
543
|
|
|
545
544
|
/**
|
|
546
|
-
* @
|
|
545
|
+
* @param {string} block_hash
|
|
546
|
+
* @returns {Promise<WasmBlock>}
|
|
547
547
|
*/
|
|
548
|
-
export function
|
|
549
|
-
const ret = wasm.
|
|
548
|
+
export function get_block(block_hash) {
|
|
549
|
+
const ret = wasm.get_block(addHeapObject(block_hash));
|
|
550
550
|
return takeObject(ret);
|
|
551
551
|
}
|
|
552
552
|
|
|
@@ -563,171 +563,171 @@ export function create_transaction(public_key, amount, fee, force_merge) {
|
|
|
563
563
|
}
|
|
564
564
|
|
|
565
565
|
/**
|
|
566
|
-
* @param {
|
|
567
|
-
* @
|
|
566
|
+
* @param {Uint8Array} buffer
|
|
567
|
+
* @param {string} private_key
|
|
568
|
+
* @returns {string}
|
|
568
569
|
*/
|
|
569
|
-
export function
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
570
|
+
export function sign_buffer(buffer, private_key) {
|
|
571
|
+
try {
|
|
572
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
573
|
+
wasm.sign_buffer(retptr, addHeapObject(buffer), addHeapObject(private_key));
|
|
574
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
575
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
576
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
577
|
+
if (r2) {
|
|
578
|
+
throw takeObject(r1);
|
|
579
|
+
}
|
|
580
|
+
return takeObject(r0);
|
|
581
|
+
} finally {
|
|
582
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
583
|
+
}
|
|
574
584
|
}
|
|
575
585
|
|
|
576
586
|
/**
|
|
577
|
-
* @param {
|
|
587
|
+
* @param {bigint} current_time
|
|
578
588
|
* @returns {Promise<void>}
|
|
579
589
|
*/
|
|
580
|
-
export function
|
|
581
|
-
|
|
582
|
-
const ret = wasm.propagate_transaction(tx.__wbg_ptr);
|
|
590
|
+
export function process_stat_interval(current_time) {
|
|
591
|
+
const ret = wasm.process_stat_interval(current_time);
|
|
583
592
|
return takeObject(ret);
|
|
584
593
|
}
|
|
585
594
|
|
|
586
595
|
/**
|
|
587
|
-
* @
|
|
588
|
-
* @returns {Promise<void>}
|
|
596
|
+
* @returns {Promise<WasmWallet>}
|
|
589
597
|
*/
|
|
590
|
-
export function
|
|
591
|
-
const ret = wasm.
|
|
598
|
+
export function get_wallet() {
|
|
599
|
+
const ret = wasm.get_wallet();
|
|
592
600
|
return takeObject(ret);
|
|
593
601
|
}
|
|
594
602
|
|
|
595
603
|
/**
|
|
596
604
|
* @param {Uint8Array} buffer
|
|
597
|
-
* @param {Uint8Array} hash
|
|
598
|
-
* @param {bigint} block_id
|
|
599
605
|
* @param {bigint} peer_index
|
|
600
606
|
* @returns {Promise<void>}
|
|
601
607
|
*/
|
|
602
|
-
export function
|
|
603
|
-
const ret = wasm.
|
|
608
|
+
export function process_msg_buffer_from_peer(buffer, peer_index) {
|
|
609
|
+
const ret = wasm.process_msg_buffer_from_peer(addHeapObject(buffer), peer_index);
|
|
604
610
|
return takeObject(ret);
|
|
605
611
|
}
|
|
606
612
|
|
|
607
613
|
/**
|
|
608
|
-
* @param {
|
|
609
|
-
* @
|
|
614
|
+
* @param {Uint8Array} buffer
|
|
615
|
+
* @param {number} msg_index
|
|
616
|
+
* @param {bigint} peer_index
|
|
617
|
+
* @returns {Promise<void>}
|
|
610
618
|
*/
|
|
611
|
-
export function
|
|
612
|
-
const ret = wasm.
|
|
619
|
+
export function send_api_success(buffer, msg_index, peer_index) {
|
|
620
|
+
const ret = wasm.send_api_success(addHeapObject(buffer), msg_index, peer_index);
|
|
613
621
|
return takeObject(ret);
|
|
614
622
|
}
|
|
615
623
|
|
|
616
624
|
/**
|
|
617
|
-
* @
|
|
625
|
+
* @param {string} slip1_utxo_key
|
|
626
|
+
* @param {string} slip2_utxo_key
|
|
627
|
+
* @param {string} slip3_utxo_key
|
|
628
|
+
* @returns {Promise<WasmTransaction>}
|
|
618
629
|
*/
|
|
619
|
-
export function
|
|
620
|
-
const ret = wasm.
|
|
630
|
+
export function create_remove_bound_transaction(slip1_utxo_key, slip2_utxo_key, slip3_utxo_key) {
|
|
631
|
+
const ret = wasm.create_remove_bound_transaction(addHeapObject(slip1_utxo_key), addHeapObject(slip2_utxo_key), addHeapObject(slip3_utxo_key));
|
|
621
632
|
return takeObject(ret);
|
|
622
633
|
}
|
|
623
634
|
|
|
624
635
|
/**
|
|
625
|
-
* @
|
|
626
|
-
* @returns {boolean}
|
|
636
|
+
* @returns {Promise<string>}
|
|
627
637
|
*/
|
|
628
|
-
export function
|
|
629
|
-
const ret = wasm.
|
|
630
|
-
return ret
|
|
638
|
+
export function get_congestion_stats() {
|
|
639
|
+
const ret = wasm.get_congestion_stats();
|
|
640
|
+
return takeObject(ret);
|
|
631
641
|
}
|
|
632
642
|
|
|
633
643
|
/**
|
|
634
|
-
* @
|
|
635
|
-
* @returns {Promise<WasmBlock>}
|
|
644
|
+
* @returns {Promise<boolean>}
|
|
636
645
|
*/
|
|
637
|
-
export function
|
|
638
|
-
const ret = wasm.
|
|
646
|
+
export function produce_block_with_gt() {
|
|
647
|
+
const ret = wasm.produce_block_with_gt();
|
|
639
648
|
return takeObject(ret);
|
|
640
649
|
}
|
|
641
650
|
|
|
642
651
|
/**
|
|
643
|
-
* @returns {Promise<
|
|
652
|
+
* @returns {Promise<Array<any>>}
|
|
644
653
|
*/
|
|
645
|
-
export function
|
|
646
|
-
const ret = wasm.
|
|
654
|
+
export function get_peers() {
|
|
655
|
+
const ret = wasm.get_peers();
|
|
647
656
|
return takeObject(ret);
|
|
648
657
|
}
|
|
649
658
|
|
|
650
659
|
/**
|
|
651
|
-
* @param {
|
|
652
|
-
* @param {
|
|
653
|
-
* @param {
|
|
654
|
-
* @
|
|
655
|
-
* @param {string} recipient_public_key
|
|
656
|
-
* @param {Uint8Array} tx_msg
|
|
657
|
-
* @returns {Promise<WasmTransaction>}
|
|
660
|
+
* @param {number} major
|
|
661
|
+
* @param {number} minor
|
|
662
|
+
* @param {number} patch
|
|
663
|
+
* @returns {Promise<void>}
|
|
658
664
|
*/
|
|
659
|
-
export function
|
|
660
|
-
const ret = wasm.
|
|
665
|
+
export function set_wallet_version(major, minor, patch) {
|
|
666
|
+
const ret = wasm.set_wallet_version(major, minor, patch);
|
|
661
667
|
return takeObject(ret);
|
|
662
668
|
}
|
|
663
669
|
|
|
664
670
|
/**
|
|
665
|
-
* @returns {Promise<
|
|
671
|
+
* @returns {Promise<boolean>}
|
|
666
672
|
*/
|
|
667
|
-
export function
|
|
668
|
-
const ret = wasm.
|
|
673
|
+
export function produce_block_without_gt() {
|
|
674
|
+
const ret = wasm.produce_block_without_gt();
|
|
669
675
|
return takeObject(ret);
|
|
670
676
|
}
|
|
671
677
|
|
|
672
678
|
/**
|
|
673
|
-
* @returns {Promise<
|
|
679
|
+
* @returns {Promise<string>}
|
|
674
680
|
*/
|
|
675
|
-
export function
|
|
676
|
-
const ret = wasm.
|
|
681
|
+
export function get_latest_block_hash() {
|
|
682
|
+
const ret = wasm.get_latest_block_hash();
|
|
677
683
|
return takeObject(ret);
|
|
678
684
|
}
|
|
679
685
|
|
|
680
686
|
/**
|
|
681
687
|
* @param {Uint8Array} buffer
|
|
682
|
-
* @param {
|
|
688
|
+
* @param {Uint8Array} hash
|
|
689
|
+
* @param {bigint} block_id
|
|
683
690
|
* @param {bigint} peer_index
|
|
684
691
|
* @returns {Promise<void>}
|
|
685
692
|
*/
|
|
686
|
-
export function
|
|
687
|
-
const ret = wasm.
|
|
688
|
-
return takeObject(ret);
|
|
689
|
-
}
|
|
690
|
-
|
|
691
|
-
/**
|
|
692
|
-
* @param {Array<any>} keys
|
|
693
|
-
* @returns {Promise<WasmBalanceSnapshot>}
|
|
694
|
-
*/
|
|
695
|
-
export function get_balance_snapshot(keys) {
|
|
696
|
-
const ret = wasm.get_balance_snapshot(addHeapObject(keys));
|
|
693
|
+
export function process_fetched_block(buffer, hash, block_id, peer_index) {
|
|
694
|
+
const ret = wasm.process_fetched_block(addHeapObject(buffer), addHeapObject(hash), block_id, peer_index);
|
|
697
695
|
return takeObject(ret);
|
|
698
696
|
}
|
|
699
697
|
|
|
700
698
|
/**
|
|
701
|
-
* @
|
|
702
|
-
* @param {number} msg_index
|
|
703
|
-
* @param {bigint} peer_index
|
|
704
|
-
* @returns {Promise<void>}
|
|
699
|
+
* @returns {Promise<bigint>}
|
|
705
700
|
*/
|
|
706
|
-
export function
|
|
707
|
-
const ret = wasm.
|
|
701
|
+
export function get_next_peer_index() {
|
|
702
|
+
const ret = wasm.get_next_peer_index();
|
|
708
703
|
return takeObject(ret);
|
|
709
704
|
}
|
|
710
705
|
|
|
711
706
|
/**
|
|
712
|
-
* @param {string}
|
|
707
|
+
* @param {string} slip1_utxo_key
|
|
708
|
+
* @param {string} slip2_utxo_key
|
|
709
|
+
* @param {string} slip3_utxo_key
|
|
710
|
+
* @param {number} left_count
|
|
711
|
+
* @param {number} right_count
|
|
713
712
|
* @param {Uint8Array} tx_msg
|
|
714
713
|
* @returns {Promise<WasmTransaction>}
|
|
715
714
|
*/
|
|
716
|
-
export function
|
|
717
|
-
const
|
|
718
|
-
const len0 = WASM_VECTOR_LEN;
|
|
719
|
-
const ret = wasm.create_merge_bound_transaction(ptr0, len0, addHeapObject(tx_msg));
|
|
715
|
+
export function create_split_bound_transaction(slip1_utxo_key, slip2_utxo_key, slip3_utxo_key, left_count, right_count, tx_msg) {
|
|
716
|
+
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));
|
|
720
717
|
return takeObject(ret);
|
|
721
718
|
}
|
|
722
719
|
|
|
723
720
|
/**
|
|
724
|
-
* @param {
|
|
725
|
-
* @param {
|
|
726
|
-
* @param {
|
|
727
|
-
* @
|
|
721
|
+
* @param {bigint} amt
|
|
722
|
+
* @param {string} slip1_utxo_key
|
|
723
|
+
* @param {string} slip2_utxo_key
|
|
724
|
+
* @param {string} slip3_utxo_key
|
|
725
|
+
* @param {string} recipient_public_key
|
|
726
|
+
* @param {Uint8Array} tx_msg
|
|
727
|
+
* @returns {Promise<WasmTransaction>}
|
|
728
728
|
*/
|
|
729
|
-
export function
|
|
730
|
-
const ret = wasm.
|
|
729
|
+
export function create_send_bound_transaction(amt, slip1_utxo_key, slip2_utxo_key, slip3_utxo_key, recipient_public_key, tx_msg) {
|
|
730
|
+
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));
|
|
731
731
|
return takeObject(ret);
|
|
732
732
|
}
|
|
733
733
|
|
|
@@ -2668,19 +2668,19 @@ async function __wbg_load(module, imports) {
|
|
|
2668
2668
|
function __wbg_get_imports() {
|
|
2669
2669
|
const imports = {};
|
|
2670
2670
|
imports.wbg = {};
|
|
2671
|
-
imports.wbg.__wbg_wasmwallet_new = function(arg0) {
|
|
2672
|
-
const ret = WasmWallet.__wrap(arg0);
|
|
2673
|
-
return addHeapObject(ret);
|
|
2674
|
-
};
|
|
2675
2671
|
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
2676
2672
|
takeObject(arg0);
|
|
2677
2673
|
};
|
|
2678
|
-
imports.wbg.
|
|
2679
|
-
const ret =
|
|
2674
|
+
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
2675
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
2680
2676
|
return addHeapObject(ret);
|
|
2681
2677
|
};
|
|
2682
|
-
imports.wbg.
|
|
2683
|
-
const ret =
|
|
2678
|
+
imports.wbg.__wbg_wasmtransaction_new = function(arg0) {
|
|
2679
|
+
const ret = WasmTransaction.__wrap(arg0);
|
|
2680
|
+
return addHeapObject(ret);
|
|
2681
|
+
};
|
|
2682
|
+
imports.wbg.__wbg_wasmnft_new = function(arg0) {
|
|
2683
|
+
const ret = WasmNFT.__wrap(arg0);
|
|
2684
2684
|
return addHeapObject(ret);
|
|
2685
2685
|
};
|
|
2686
2686
|
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
@@ -2691,42 +2691,42 @@ function __wbg_get_imports() {
|
|
|
2691
2691
|
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
2692
2692
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
2693
2693
|
};
|
|
2694
|
-
imports.wbg.
|
|
2695
|
-
const ret =
|
|
2696
|
-
return addHeapObject(ret);
|
|
2697
|
-
};
|
|
2698
|
-
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
2699
|
-
const ret = getStringFromWasm0(arg0, arg1);
|
|
2694
|
+
imports.wbg.__wbg_wasmpeer_new = function(arg0) {
|
|
2695
|
+
const ret = WasmPeer.__wrap(arg0);
|
|
2700
2696
|
return addHeapObject(ret);
|
|
2701
2697
|
};
|
|
2702
|
-
imports.wbg.
|
|
2703
|
-
const ret =
|
|
2698
|
+
imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
2699
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
2704
2700
|
return addHeapObject(ret);
|
|
2705
2701
|
};
|
|
2706
|
-
imports.wbg.
|
|
2707
|
-
const ret =
|
|
2702
|
+
imports.wbg.__wbg_wasmwallet_new = function(arg0) {
|
|
2703
|
+
const ret = WasmWallet.__wrap(arg0);
|
|
2708
2704
|
return addHeapObject(ret);
|
|
2709
2705
|
};
|
|
2710
|
-
imports.wbg.
|
|
2711
|
-
const ret =
|
|
2706
|
+
imports.wbg.__wbg_wasmbalancesnapshot_new = function(arg0) {
|
|
2707
|
+
const ret = WasmBalanceSnapshot.__wrap(arg0);
|
|
2712
2708
|
return addHeapObject(ret);
|
|
2713
2709
|
};
|
|
2714
2710
|
imports.wbg.__wbg_wasmwalletslip_new = function(arg0) {
|
|
2715
2711
|
const ret = WasmWalletSlip.__wrap(arg0);
|
|
2716
2712
|
return addHeapObject(ret);
|
|
2717
2713
|
};
|
|
2718
|
-
imports.wbg.
|
|
2719
|
-
const ret =
|
|
2714
|
+
imports.wbg.__wbg_wasmblock_new = function(arg0) {
|
|
2715
|
+
const ret = WasmBlock.__wrap(arg0);
|
|
2720
2716
|
return addHeapObject(ret);
|
|
2721
2717
|
};
|
|
2722
|
-
imports.wbg.
|
|
2723
|
-
const ret =
|
|
2718
|
+
imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
|
|
2719
|
+
const ret = getObject(arg0);
|
|
2724
2720
|
return addHeapObject(ret);
|
|
2725
2721
|
};
|
|
2726
2722
|
imports.wbg.__wbg_wasmslip_new = function(arg0) {
|
|
2727
2723
|
const ret = WasmSlip.__wrap(arg0);
|
|
2728
2724
|
return addHeapObject(ret);
|
|
2729
2725
|
};
|
|
2726
|
+
imports.wbg.__wbg_wasmblockchain_new = function(arg0) {
|
|
2727
|
+
const ret = WasmBlockchain.__wrap(arg0);
|
|
2728
|
+
return addHeapObject(ret);
|
|
2729
|
+
};
|
|
2730
2730
|
imports.wbg.__wbg_wasmpeerservice_new = function(arg0) {
|
|
2731
2731
|
const ret = WasmPeerService.__wrap(arg0);
|
|
2732
2732
|
return addHeapObject(ret);
|
|
@@ -2752,7 +2752,7 @@ function __wbg_get_imports() {
|
|
|
2752
2752
|
const ret = getObject(arg0) in getObject(arg1);
|
|
2753
2753
|
return ret;
|
|
2754
2754
|
};
|
|
2755
|
-
imports.wbg.
|
|
2755
|
+
imports.wbg.__wbg_flushdata_571e46cce4f70e72 = function(arg0, arg1) {
|
|
2756
2756
|
let deferred0_0;
|
|
2757
2757
|
let deferred0_1;
|
|
2758
2758
|
try {
|
|
@@ -2763,7 +2763,7 @@ function __wbg_get_imports() {
|
|
|
2763
2763
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2764
2764
|
}
|
|
2765
2765
|
};
|
|
2766
|
-
imports.wbg.
|
|
2766
|
+
imports.wbg.__wbg_readvalue_0023aabd3b029c28 = function() { return handleError(function (arg0, arg1) {
|
|
2767
2767
|
let deferred0_0;
|
|
2768
2768
|
let deferred0_1;
|
|
2769
2769
|
try {
|
|
@@ -2775,13 +2775,13 @@ function __wbg_get_imports() {
|
|
|
2775
2775
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2776
2776
|
}
|
|
2777
2777
|
}, arguments) };
|
|
2778
|
-
imports.wbg.
|
|
2778
|
+
imports.wbg.__wbg_loadwallet_c7d36edfd9b3141c = function() {
|
|
2779
2779
|
MsgHandler.load_wallet();
|
|
2780
2780
|
};
|
|
2781
|
-
imports.wbg.
|
|
2781
|
+
imports.wbg.__wbg_savewallet_7f660732fea84939 = function() {
|
|
2782
2782
|
MsgHandler.save_wallet();
|
|
2783
2783
|
};
|
|
2784
|
-
imports.wbg.
|
|
2784
|
+
imports.wbg.__wbg_writevalue_a37456c36a13f7c1 = 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_appendvalue_5e41b908bebdda6f = function(arg0, arg1, arg2) {
|
|
2796
2796
|
let deferred0_0;
|
|
2797
2797
|
let deferred0_1;
|
|
2798
2798
|
try {
|
|
@@ -2803,7 +2803,7 @@ function __wbg_get_imports() {
|
|
|
2803
2803
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2804
2804
|
}
|
|
2805
2805
|
};
|
|
2806
|
-
imports.wbg.
|
|
2806
|
+
imports.wbg.__wbg_removevalue_942827cd11acedcd = function() { return handleError(function (arg0, arg1) {
|
|
2807
2807
|
let deferred0_0;
|
|
2808
2808
|
let deferred0_1;
|
|
2809
2809
|
try {
|
|
@@ -2815,10 +2815,10 @@ function __wbg_get_imports() {
|
|
|
2815
2815
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2816
2816
|
}
|
|
2817
2817
|
}, arguments) };
|
|
2818
|
-
imports.wbg.
|
|
2818
|
+
imports.wbg.__wbg_sendmessage_586a19ec4082b8fb = function(arg0, arg1) {
|
|
2819
2819
|
MsgHandler.send_message(takeObject(arg0), getObject(arg1));
|
|
2820
2820
|
};
|
|
2821
|
-
imports.wbg.
|
|
2821
|
+
imports.wbg.__wbg_connecttopeer_da5cf59d8cfa1695 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
2822
2822
|
let deferred0_0;
|
|
2823
2823
|
let deferred0_1;
|
|
2824
2824
|
try {
|
|
@@ -2830,13 +2830,13 @@ function __wbg_get_imports() {
|
|
|
2830
2830
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2831
2831
|
}
|
|
2832
2832
|
}, arguments) };
|
|
2833
|
-
imports.wbg.
|
|
2833
|
+
imports.wbg.__wbg_getmyservices_4cd3d2838160a2e4 = function() {
|
|
2834
2834
|
const ret = MsgHandler.get_my_services();
|
|
2835
2835
|
_assertClass(ret, WasmPeerServiceList);
|
|
2836
2836
|
var ptr1 = ret.__destroy_into_raw();
|
|
2837
2837
|
return ptr1;
|
|
2838
2838
|
};
|
|
2839
|
-
imports.wbg.
|
|
2839
|
+
imports.wbg.__wbg_isexistingfile_dfbccf2cbef6e84d = function() { return handleError(function (arg0, arg1) {
|
|
2840
2840
|
let deferred0_0;
|
|
2841
2841
|
let deferred0_1;
|
|
2842
2842
|
try {
|
|
@@ -2848,27 +2848,27 @@ function __wbg_get_imports() {
|
|
|
2848
2848
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2849
2849
|
}
|
|
2850
2850
|
}, arguments) };
|
|
2851
|
-
imports.wbg.
|
|
2851
|
+
imports.wbg.__wbg_processapicall_acd7d33fd42c3d1f = function(arg0, arg1, arg2) {
|
|
2852
2852
|
MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2853
2853
|
};
|
|
2854
|
-
imports.wbg.
|
|
2854
|
+
imports.wbg.__wbg_processapierror_ab72949eda06b691 = function(arg0, arg1, arg2) {
|
|
2855
2855
|
MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2856
2856
|
};
|
|
2857
|
-
imports.wbg.
|
|
2857
|
+
imports.wbg.__wbg_processapisuccess_961e9892246de79c = function(arg0, arg1, arg2) {
|
|
2858
2858
|
MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2859
2859
|
};
|
|
2860
|
-
imports.wbg.
|
|
2860
|
+
imports.wbg.__wbg_sendmessagetoall_11e5fcfef1b07a13 = function(arg0, arg1) {
|
|
2861
2861
|
MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
|
|
2862
2862
|
};
|
|
2863
|
-
imports.wbg.
|
|
2863
|
+
imports.wbg.__wbg_disconnectfrompeer_5c175d44122eb2c6 = function() { return handleError(function (arg0) {
|
|
2864
2864
|
const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
|
|
2865
2865
|
return addHeapObject(ret);
|
|
2866
2866
|
}, arguments) };
|
|
2867
|
-
imports.wbg.
|
|
2867
|
+
imports.wbg.__wbg_loadblockfilelist_b7839cc4defb38f4 = function() { return handleError(function () {
|
|
2868
2868
|
const ret = MsgHandler.load_block_file_list();
|
|
2869
2869
|
return addHeapObject(ret);
|
|
2870
2870
|
}, arguments) };
|
|
2871
|
-
imports.wbg.
|
|
2871
|
+
imports.wbg.__wbg_sendinterfaceevent_a6e7d41837b235e5 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
2872
2872
|
let deferred0_0;
|
|
2873
2873
|
let deferred0_1;
|
|
2874
2874
|
let deferred1_0;
|
|
@@ -2884,7 +2884,7 @@ function __wbg_get_imports() {
|
|
|
2884
2884
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
2885
2885
|
}
|
|
2886
2886
|
};
|
|
2887
|
-
imports.wbg.
|
|
2887
|
+
imports.wbg.__wbg_sendblocksuccess_3b8aec2ff636f96a = function(arg0, arg1, arg2) {
|
|
2888
2888
|
let deferred0_0;
|
|
2889
2889
|
let deferred0_1;
|
|
2890
2890
|
try {
|
|
@@ -2895,10 +2895,10 @@ function __wbg_get_imports() {
|
|
|
2895
2895
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2896
2896
|
}
|
|
2897
2897
|
};
|
|
2898
|
-
imports.wbg.
|
|
2898
|
+
imports.wbg.__wbg_sendwalletupdate_7adec123401b1a23 = function() {
|
|
2899
2899
|
MsgHandler.send_wallet_update();
|
|
2900
2900
|
};
|
|
2901
|
-
imports.wbg.
|
|
2901
|
+
imports.wbg.__wbg_sendnewversionalert_a07a565734d2fc1d = function(arg0, arg1, arg2) {
|
|
2902
2902
|
let deferred0_0;
|
|
2903
2903
|
let deferred0_1;
|
|
2904
2904
|
try {
|
|
@@ -2909,13 +2909,13 @@ function __wbg_get_imports() {
|
|
|
2909
2909
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2910
2910
|
}
|
|
2911
2911
|
};
|
|
2912
|
-
imports.wbg.
|
|
2912
|
+
imports.wbg.__wbg_sendblockfetchstatusevent_1d40c9cc7dd2eab0 = function(arg0) {
|
|
2913
2913
|
MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
|
|
2914
2914
|
};
|
|
2915
|
-
imports.wbg.
|
|
2915
|
+
imports.wbg.__wbg_sendnewchaindetectedevent_32e1d671ab68b024 = function() {
|
|
2916
2916
|
MsgHandler.send_new_chain_detected_event();
|
|
2917
2917
|
};
|
|
2918
|
-
imports.wbg.
|
|
2918
|
+
imports.wbg.__wbg_fetchblockfrompeer_8c4ed4e20aed0348 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2919
2919
|
let deferred0_0;
|
|
2920
2920
|
let deferred0_1;
|
|
2921
2921
|
try {
|
|
@@ -2927,7 +2927,7 @@ function __wbg_get_imports() {
|
|
|
2927
2927
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2928
2928
|
}
|
|
2929
2929
|
}, arguments) };
|
|
2930
|
-
imports.wbg.
|
|
2930
|
+
imports.wbg.__wbg_ensuredirectoryexists_9661b66ed6842ef4 = function() { return handleError(function (arg0, arg1) {
|
|
2931
2931
|
let deferred0_0;
|
|
2932
2932
|
let deferred0_1;
|
|
2933
2933
|
try {
|
|
@@ -3246,8 +3246,8 @@ function __wbg_get_imports() {
|
|
|
3246
3246
|
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
3247
3247
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
3248
3248
|
};
|
|
3249
|
-
imports.wbg.
|
|
3250
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3249
|
+
imports.wbg.__wbindgen_closure_wrapper1554 = function(arg0, arg1, arg2) {
|
|
3250
|
+
const ret = makeMutClosure(arg0, arg1, 572, __wbg_adapter_38);
|
|
3251
3251
|
return addHeapObject(ret);
|
|
3252
3252
|
};
|
|
3253
3253
|
|