saito-wasm 0.2.178 → 0.2.179
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 +142 -142
- package/pkg/node/index.js +297 -297
- package/pkg/node/index_bg.wasm +0 -0
- package/pkg/node/package.json +3 -3
- package/pkg/web/index.d.ts +142 -142
- package/pkg/web/index.js +293 -293
- package/pkg/web/index_bg.wasm +0 -0
- package/pkg/web/package.json +3 -3
- /package/pkg/node/snippets/{saito-wasm-aa917f543b5208b0 → saito-wasm-cb5d42cd87cbad30}/js/msg_handler.js +0 -0
- /package/pkg/web/snippets/{saito-wasm-aa917f543b5208b0 → saito-wasm-cb5d42cd87cbad30}/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-cb5d42cd87cbad30/js/msg_handler.js';
|
|
2
2
|
|
|
3
3
|
let wasm;
|
|
4
4
|
|
|
@@ -10,6 +10,15 @@ function getObject(idx) { return heap[idx]; }
|
|
|
10
10
|
|
|
11
11
|
let heap_next = heap.length;
|
|
12
12
|
|
|
13
|
+
function addHeapObject(obj) {
|
|
14
|
+
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
15
|
+
const idx = heap_next;
|
|
16
|
+
heap_next = heap[idx];
|
|
17
|
+
|
|
18
|
+
heap[idx] = obj;
|
|
19
|
+
return idx;
|
|
20
|
+
}
|
|
21
|
+
|
|
13
22
|
function dropObject(idx) {
|
|
14
23
|
if (idx < 132) return;
|
|
15
24
|
heap[idx] = heap_next;
|
|
@@ -40,15 +49,6 @@ function getStringFromWasm0(ptr, len) {
|
|
|
40
49
|
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
41
50
|
}
|
|
42
51
|
|
|
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
52
|
let WASM_VECTOR_LEN = 0;
|
|
53
53
|
|
|
54
54
|
const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );
|
|
@@ -233,74 +233,51 @@ function _assertClass(instance, klass) {
|
|
|
233
233
|
return instance.ptr;
|
|
234
234
|
}
|
|
235
235
|
/**
|
|
236
|
-
* @
|
|
237
|
-
* @returns {Promise<void>}
|
|
238
|
-
*/
|
|
239
|
-
export function write_issuance_file(threshold) {
|
|
240
|
-
const ret = wasm.write_issuance_file(threshold);
|
|
241
|
-
return takeObject(ret);
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
/**
|
|
245
|
-
* @param {bigint} num
|
|
246
|
-
* @param {bigint} deposit
|
|
247
|
-
* @param {Uint8Array} tx_msg
|
|
248
|
-
* @param {bigint} fee
|
|
249
|
-
* @param {string} recipient_public_key
|
|
250
|
-
* @param {string} nft_type
|
|
251
|
-
* @returns {Promise<WasmTransaction>}
|
|
252
|
-
*/
|
|
253
|
-
export function create_bound_transaction(num, deposit, tx_msg, fee, recipient_public_key, nft_type) {
|
|
254
|
-
const ret = wasm.create_bound_transaction(num, deposit, addHeapObject(tx_msg), fee, addHeapObject(recipient_public_key), addHeapObject(nft_type));
|
|
255
|
-
return takeObject(ret);
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
/**
|
|
259
|
-
* @returns {Promise<boolean>}
|
|
236
|
+
* @returns {Promise<Array<any>>}
|
|
260
237
|
*/
|
|
261
|
-
export function
|
|
262
|
-
const ret = wasm.
|
|
238
|
+
export function get_mempool_txs() {
|
|
239
|
+
const ret = wasm.get_mempool_txs();
|
|
263
240
|
return takeObject(ret);
|
|
264
241
|
}
|
|
265
242
|
|
|
266
243
|
/**
|
|
267
|
-
* @param {
|
|
244
|
+
* @param {bigint} peer_index
|
|
268
245
|
* @returns {Promise<void>}
|
|
269
246
|
*/
|
|
270
|
-
export function
|
|
271
|
-
|
|
272
|
-
var ptr0 = snapshot.__destroy_into_raw();
|
|
273
|
-
const ret = wasm.update_from_balance_snapshot(ptr0);
|
|
247
|
+
export function remove_stun_peer(peer_index) {
|
|
248
|
+
const ret = wasm.remove_stun_peer(peer_index);
|
|
274
249
|
return takeObject(ret);
|
|
275
250
|
}
|
|
276
251
|
|
|
277
252
|
/**
|
|
278
|
-
* @
|
|
253
|
+
* @param {string} slip1_utxo_key
|
|
254
|
+
* @param {string} slip2_utxo_key
|
|
255
|
+
* @param {string} slip3_utxo_key
|
|
256
|
+
* @param {number} left_count
|
|
257
|
+
* @param {number} right_count
|
|
258
|
+
* @param {Uint8Array} tx_msg
|
|
259
|
+
* @returns {Promise<WasmTransaction>}
|
|
279
260
|
*/
|
|
280
|
-
export function
|
|
281
|
-
const ret = wasm.
|
|
261
|
+
export function create_split_bound_transaction(slip1_utxo_key, slip2_utxo_key, slip3_utxo_key, left_count, right_count, tx_msg) {
|
|
262
|
+
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));
|
|
282
263
|
return takeObject(ret);
|
|
283
264
|
}
|
|
284
265
|
|
|
285
266
|
/**
|
|
286
|
-
* @param {Uint8Array} hash
|
|
287
|
-
* @param {bigint} block_id
|
|
288
267
|
* @param {bigint} peer_index
|
|
268
|
+
* @param {string} ip
|
|
289
269
|
* @returns {Promise<void>}
|
|
290
270
|
*/
|
|
291
|
-
export function
|
|
292
|
-
const ret = wasm.
|
|
271
|
+
export function process_new_peer(peer_index, ip) {
|
|
272
|
+
const ret = wasm.process_new_peer(peer_index, addHeapObject(ip));
|
|
293
273
|
return takeObject(ret);
|
|
294
274
|
}
|
|
295
275
|
|
|
296
276
|
/**
|
|
297
|
-
* @
|
|
298
|
-
* @param {number} msg_index
|
|
299
|
-
* @param {bigint} peer_index
|
|
300
|
-
* @returns {Promise<void>}
|
|
277
|
+
* @returns {Promise<string>}
|
|
301
278
|
*/
|
|
302
|
-
export function
|
|
303
|
-
const ret = wasm.
|
|
279
|
+
export function get_stats() {
|
|
280
|
+
const ret = wasm.get_stats();
|
|
304
281
|
return takeObject(ret);
|
|
305
282
|
}
|
|
306
283
|
|
|
@@ -317,153 +294,125 @@ export function create_transaction_with_multiple_payments(public_keys, amounts,
|
|
|
317
294
|
}
|
|
318
295
|
|
|
319
296
|
/**
|
|
297
|
+
* @param {string} private_key
|
|
320
298
|
* @returns {string}
|
|
321
299
|
*/
|
|
322
|
-
export function
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
300
|
+
export function generate_public_key(private_key) {
|
|
301
|
+
try {
|
|
302
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
303
|
+
wasm.generate_public_key(retptr, addHeapObject(private_key));
|
|
304
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
305
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
306
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
307
|
+
if (r2) {
|
|
308
|
+
throw takeObject(r1);
|
|
309
|
+
}
|
|
310
|
+
return takeObject(r0);
|
|
311
|
+
} finally {
|
|
312
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
313
|
+
}
|
|
333
314
|
}
|
|
334
315
|
|
|
335
316
|
/**
|
|
336
|
-
* @
|
|
317
|
+
* @param {bigint} num
|
|
318
|
+
* @param {bigint} deposit
|
|
319
|
+
* @param {Uint8Array} tx_msg
|
|
320
|
+
* @param {bigint} fee
|
|
321
|
+
* @param {string} recipient_public_key
|
|
322
|
+
* @param {string} nft_type
|
|
323
|
+
* @returns {Promise<WasmTransaction>}
|
|
337
324
|
*/
|
|
338
|
-
export function
|
|
339
|
-
const ret = wasm.
|
|
325
|
+
export function create_bound_transaction(num, deposit, tx_msg, fee, recipient_public_key, nft_type) {
|
|
326
|
+
const ret = wasm.create_bound_transaction(num, deposit, addHeapObject(tx_msg), fee, addHeapObject(recipient_public_key), addHeapObject(nft_type));
|
|
340
327
|
return takeObject(ret);
|
|
341
328
|
}
|
|
342
329
|
|
|
343
330
|
/**
|
|
344
|
-
* @
|
|
345
|
-
* @param {bigint} peer_index
|
|
346
|
-
* @returns {Promise<void>}
|
|
331
|
+
* @returns {Promise<boolean>}
|
|
347
332
|
*/
|
|
348
|
-
export function
|
|
349
|
-
const ret = wasm.
|
|
333
|
+
export function produce_block_with_gt() {
|
|
334
|
+
const ret = wasm.produce_block_with_gt();
|
|
350
335
|
return takeObject(ret);
|
|
351
336
|
}
|
|
352
337
|
|
|
353
338
|
/**
|
|
354
|
-
* @param {bigint} peer_index
|
|
355
339
|
* @returns {Promise<void>}
|
|
356
340
|
*/
|
|
357
|
-
export function
|
|
358
|
-
const ret = wasm.
|
|
341
|
+
export function disable_producing_blocks_by_timer() {
|
|
342
|
+
const ret = wasm.disable_producing_blocks_by_timer();
|
|
359
343
|
return takeObject(ret);
|
|
360
344
|
}
|
|
361
345
|
|
|
362
346
|
/**
|
|
363
|
-
* @param {
|
|
364
|
-
* @param {number} msg_index
|
|
365
|
-
* @param {bigint} peer_index
|
|
347
|
+
* @param {WasmTransaction} tx
|
|
366
348
|
* @returns {Promise<void>}
|
|
367
349
|
*/
|
|
368
|
-
export function
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
}
|
|
372
|
-
|
|
373
|
-
/**
|
|
374
|
-
* @returns {Promise<bigint>}
|
|
375
|
-
*/
|
|
376
|
-
export function get_next_peer_index() {
|
|
377
|
-
const ret = wasm.get_next_peer_index();
|
|
378
|
-
return takeObject(ret);
|
|
379
|
-
}
|
|
380
|
-
|
|
381
|
-
/**
|
|
382
|
-
* @param {string} block_hash
|
|
383
|
-
* @returns {Promise<WasmBlock>}
|
|
384
|
-
*/
|
|
385
|
-
export function get_block(block_hash) {
|
|
386
|
-
const ret = wasm.get_block(addHeapObject(block_hash));
|
|
387
|
-
return takeObject(ret);
|
|
388
|
-
}
|
|
389
|
-
|
|
390
|
-
/**
|
|
391
|
-
* @returns {Promise<string>}
|
|
392
|
-
*/
|
|
393
|
-
export function get_congestion_stats() {
|
|
394
|
-
const ret = wasm.get_congestion_stats();
|
|
350
|
+
export function propagate_transaction(tx) {
|
|
351
|
+
_assertClass(tx, WasmTransaction);
|
|
352
|
+
const ret = wasm.propagate_transaction(tx.__wbg_ptr);
|
|
395
353
|
return takeObject(ret);
|
|
396
354
|
}
|
|
397
355
|
|
|
398
356
|
/**
|
|
399
|
-
* @
|
|
400
|
-
* @param {Uint8Array} tx_msg
|
|
401
|
-
* @returns {Promise<WasmTransaction>}
|
|
357
|
+
* @returns {string}
|
|
402
358
|
*/
|
|
403
|
-
export function
|
|
404
|
-
const
|
|
405
|
-
const len0 = WASM_VECTOR_LEN;
|
|
406
|
-
const ret = wasm.create_merge_bound_transaction(ptr0, len0, addHeapObject(tx_msg));
|
|
359
|
+
export function generate_private_key() {
|
|
360
|
+
const ret = wasm.generate_private_key();
|
|
407
361
|
return takeObject(ret);
|
|
408
362
|
}
|
|
409
363
|
|
|
410
364
|
/**
|
|
365
|
+
* @param {Uint8Array} buffer
|
|
366
|
+
* @param {Uint8Array} hash
|
|
367
|
+
* @param {bigint} block_id
|
|
411
368
|
* @param {bigint} peer_index
|
|
412
369
|
* @returns {Promise<void>}
|
|
413
370
|
*/
|
|
414
|
-
export function
|
|
415
|
-
const ret = wasm.
|
|
371
|
+
export function process_fetched_block(buffer, hash, block_id, peer_index) {
|
|
372
|
+
const ret = wasm.process_fetched_block(addHeapObject(buffer), addHeapObject(hash), block_id, peer_index);
|
|
416
373
|
return takeObject(ret);
|
|
417
374
|
}
|
|
418
375
|
|
|
419
376
|
/**
|
|
420
|
-
* @param {
|
|
377
|
+
* @param {bigint} peer_index
|
|
378
|
+
* @param {string} public_key
|
|
421
379
|
* @returns {Promise<void>}
|
|
422
380
|
*/
|
|
423
|
-
export function
|
|
424
|
-
|
|
425
|
-
const ret = wasm.propagate_transaction(tx.__wbg_ptr);
|
|
381
|
+
export function process_stun_peer(peer_index, public_key) {
|
|
382
|
+
const ret = wasm.process_stun_peer(peer_index, addHeapObject(public_key));
|
|
426
383
|
return takeObject(ret);
|
|
427
384
|
}
|
|
428
385
|
|
|
429
386
|
/**
|
|
430
|
-
* @param {string}
|
|
431
|
-
* @param {
|
|
432
|
-
* @param {
|
|
433
|
-
* @param {
|
|
387
|
+
* @param {string} slip1_utxo_key
|
|
388
|
+
* @param {string} slip2_utxo_key
|
|
389
|
+
* @param {string} slip3_utxo_key
|
|
390
|
+
* @param {Uint8Array} tx_msg
|
|
434
391
|
* @returns {Promise<WasmTransaction>}
|
|
435
392
|
*/
|
|
436
|
-
export function
|
|
437
|
-
const ret = wasm.
|
|
438
|
-
return takeObject(ret);
|
|
439
|
-
}
|
|
440
|
-
|
|
441
|
-
/**
|
|
442
|
-
* @returns {Promise<any>}
|
|
443
|
-
*/
|
|
444
|
-
export function get_confirmations() {
|
|
445
|
-
const ret = wasm.get_confirmations();
|
|
393
|
+
export function create_remove_bound_transaction(slip1_utxo_key, slip2_utxo_key, slip3_utxo_key, tx_msg) {
|
|
394
|
+
const ret = wasm.create_remove_bound_transaction(addHeapObject(slip1_utxo_key), addHeapObject(slip2_utxo_key), addHeapObject(slip3_utxo_key), addHeapObject(tx_msg));
|
|
446
395
|
return takeObject(ret);
|
|
447
396
|
}
|
|
448
397
|
|
|
449
398
|
/**
|
|
450
|
-
* @param {
|
|
451
|
-
* @
|
|
452
|
-
* @returns {Promise<void>}
|
|
399
|
+
* @param {Array<any>} keys
|
|
400
|
+
* @returns {Promise<WasmBalanceSnapshot>}
|
|
453
401
|
*/
|
|
454
|
-
export function
|
|
455
|
-
const ret = wasm.
|
|
402
|
+
export function get_balance_snapshot(keys) {
|
|
403
|
+
const ret = wasm.get_balance_snapshot(addHeapObject(keys));
|
|
456
404
|
return takeObject(ret);
|
|
457
405
|
}
|
|
458
406
|
|
|
459
407
|
/**
|
|
408
|
+
* @param {Uint8Array} buffer
|
|
460
409
|
* @param {string} private_key
|
|
461
410
|
* @returns {string}
|
|
462
411
|
*/
|
|
463
|
-
export function
|
|
412
|
+
export function sign_buffer(buffer, private_key) {
|
|
464
413
|
try {
|
|
465
414
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
466
|
-
wasm.
|
|
415
|
+
wasm.sign_buffer(retptr, addHeapObject(buffer), addHeapObject(private_key));
|
|
467
416
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
468
417
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
469
418
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -477,35 +426,41 @@ export function generate_public_key(private_key) {
|
|
|
477
426
|
}
|
|
478
427
|
|
|
479
428
|
/**
|
|
480
|
-
* @
|
|
481
|
-
* @param {string} signature
|
|
482
|
-
* @param {string} public_key
|
|
483
|
-
* @returns {boolean}
|
|
429
|
+
* @returns {Promise<boolean>}
|
|
484
430
|
*/
|
|
485
|
-
export function
|
|
486
|
-
const ret = wasm.
|
|
487
|
-
return ret
|
|
431
|
+
export function produce_block_without_gt() {
|
|
432
|
+
const ret = wasm.produce_block_without_gt();
|
|
433
|
+
return takeObject(ret);
|
|
488
434
|
}
|
|
489
435
|
|
|
490
436
|
/**
|
|
491
|
-
* @param {
|
|
437
|
+
* @param {bigint} threshold
|
|
438
|
+
* @returns {Promise<void>}
|
|
439
|
+
*/
|
|
440
|
+
export function write_issuance_file(threshold) {
|
|
441
|
+
const ret = wasm.write_issuance_file(threshold);
|
|
442
|
+
return takeObject(ret);
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
/**
|
|
446
|
+
* @param {string} config_json
|
|
492
447
|
* @param {string} private_key
|
|
493
|
-
* @
|
|
448
|
+
* @param {number} log_level_num
|
|
449
|
+
* @param {bigint} hasten_multiplier
|
|
450
|
+
* @param {boolean} delete_old_blocks
|
|
451
|
+
* @returns {Promise<any>}
|
|
494
452
|
*/
|
|
495
|
-
export function
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
} finally {
|
|
507
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
508
|
-
}
|
|
453
|
+
export function initialize(config_json, private_key, log_level_num, hasten_multiplier, delete_old_blocks) {
|
|
454
|
+
const ret = wasm.initialize(addHeapObject(config_json), addHeapObject(private_key), log_level_num, hasten_multiplier, delete_old_blocks);
|
|
455
|
+
return takeObject(ret);
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
/**
|
|
459
|
+
* @returns {Promise<Array<any>>}
|
|
460
|
+
*/
|
|
461
|
+
export function get_nft_list() {
|
|
462
|
+
const ret = wasm.get_nft_list();
|
|
463
|
+
return takeObject(ret);
|
|
509
464
|
}
|
|
510
465
|
|
|
511
466
|
/**
|
|
@@ -517,34 +472,65 @@ export function get_peers() {
|
|
|
517
472
|
}
|
|
518
473
|
|
|
519
474
|
/**
|
|
475
|
+
* @param {Uint8Array} hash
|
|
476
|
+
* @param {bigint} block_id
|
|
520
477
|
* @param {bigint} peer_index
|
|
521
|
-
* @param {string} ip
|
|
522
478
|
* @returns {Promise<void>}
|
|
523
479
|
*/
|
|
524
|
-
export function
|
|
525
|
-
const ret = wasm.
|
|
480
|
+
export function process_failed_block_fetch(hash, block_id, peer_index) {
|
|
481
|
+
const ret = wasm.process_failed_block_fetch(addHeapObject(hash), block_id, peer_index);
|
|
526
482
|
return takeObject(ret);
|
|
527
483
|
}
|
|
528
484
|
|
|
529
485
|
/**
|
|
530
|
-
* @param {
|
|
531
|
-
* @param {
|
|
532
|
-
* @param {
|
|
533
|
-
* @
|
|
534
|
-
* @param {boolean} delete_old_blocks
|
|
535
|
-
* @returns {Promise<any>}
|
|
486
|
+
* @param {Uint8Array} buffer
|
|
487
|
+
* @param {number} msg_index
|
|
488
|
+
* @param {bigint} peer_index
|
|
489
|
+
* @returns {Promise<void>}
|
|
536
490
|
*/
|
|
537
|
-
export function
|
|
538
|
-
const ret = wasm.
|
|
491
|
+
export function send_api_error(buffer, msg_index, peer_index) {
|
|
492
|
+
const ret = wasm.send_api_error(addHeapObject(buffer), msg_index, peer_index);
|
|
539
493
|
return takeObject(ret);
|
|
540
494
|
}
|
|
541
495
|
|
|
542
496
|
/**
|
|
543
|
-
* @param {
|
|
544
|
-
* @
|
|
497
|
+
* @param {Uint8Array} buffer
|
|
498
|
+
* @param {bigint} peer_index
|
|
499
|
+
* @returns {Promise<void>}
|
|
545
500
|
*/
|
|
546
|
-
export function
|
|
547
|
-
const ret = wasm.
|
|
501
|
+
export function process_msg_buffer_from_peer(buffer, peer_index) {
|
|
502
|
+
const ret = wasm.process_msg_buffer_from_peer(addHeapObject(buffer), peer_index);
|
|
503
|
+
return takeObject(ret);
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
/**
|
|
507
|
+
* @returns {Promise<string>}
|
|
508
|
+
*/
|
|
509
|
+
export function get_peer_stats() {
|
|
510
|
+
const ret = wasm.get_peer_stats();
|
|
511
|
+
return takeObject(ret);
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
/**
|
|
515
|
+
* @param {bigint} amt
|
|
516
|
+
* @param {string} slip1_utxo_key
|
|
517
|
+
* @param {string} slip2_utxo_key
|
|
518
|
+
* @param {string} slip3_utxo_key
|
|
519
|
+
* @param {string} recipient_public_key
|
|
520
|
+
* @param {Uint8Array} tx_msg
|
|
521
|
+
* @returns {Promise<WasmTransaction>}
|
|
522
|
+
*/
|
|
523
|
+
export function create_send_bound_transaction(amt, slip1_utxo_key, slip2_utxo_key, slip3_utxo_key, recipient_public_key, tx_msg) {
|
|
524
|
+
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));
|
|
525
|
+
return takeObject(ret);
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
/**
|
|
529
|
+
* @param {Uint8Array} buffer
|
|
530
|
+
* @returns {string}
|
|
531
|
+
*/
|
|
532
|
+
export function hash(buffer) {
|
|
533
|
+
const ret = wasm.hash(addHeapObject(buffer));
|
|
548
534
|
return takeObject(ret);
|
|
549
535
|
}
|
|
550
536
|
|
|
@@ -560,11 +546,14 @@ export function send_api_call(buffer, msg_index, peer_index) {
|
|
|
560
546
|
}
|
|
561
547
|
|
|
562
548
|
/**
|
|
563
|
-
* @
|
|
549
|
+
* @param {Uint8Array} buffer
|
|
550
|
+
* @param {string} signature
|
|
551
|
+
* @param {string} public_key
|
|
552
|
+
* @returns {boolean}
|
|
564
553
|
*/
|
|
565
|
-
export function
|
|
566
|
-
const ret = wasm.
|
|
567
|
-
return
|
|
554
|
+
export function verify_signature(buffer, signature, public_key) {
|
|
555
|
+
const ret = wasm.verify_signature(addHeapObject(buffer), addHeapObject(signature), addHeapObject(public_key));
|
|
556
|
+
return ret !== 0;
|
|
568
557
|
}
|
|
569
558
|
|
|
570
559
|
/**
|
|
@@ -577,91 +566,83 @@ export function get_peer(peer_index) {
|
|
|
577
566
|
}
|
|
578
567
|
|
|
579
568
|
/**
|
|
580
|
-
* @
|
|
581
|
-
* @returns {Promise<void>}
|
|
569
|
+
* @returns {Promise<string>}
|
|
582
570
|
*/
|
|
583
|
-
export function
|
|
584
|
-
const ret = wasm.
|
|
571
|
+
export function get_congestion_stats() {
|
|
572
|
+
const ret = wasm.get_congestion_stats();
|
|
585
573
|
return takeObject(ret);
|
|
586
574
|
}
|
|
587
575
|
|
|
588
576
|
/**
|
|
589
|
-
* @param {
|
|
590
|
-
* @
|
|
591
|
-
* @param {string} slip3_utxo_key
|
|
592
|
-
* @param {Uint8Array} tx_msg
|
|
593
|
-
* @returns {Promise<WasmTransaction>}
|
|
577
|
+
* @param {WasmBalanceSnapshot} snapshot
|
|
578
|
+
* @returns {Promise<void>}
|
|
594
579
|
*/
|
|
595
|
-
export function
|
|
596
|
-
|
|
580
|
+
export function update_from_balance_snapshot(snapshot) {
|
|
581
|
+
_assertClass(snapshot, WasmBalanceSnapshot);
|
|
582
|
+
var ptr0 = snapshot.__destroy_into_raw();
|
|
583
|
+
const ret = wasm.update_from_balance_snapshot(ptr0);
|
|
597
584
|
return takeObject(ret);
|
|
598
585
|
}
|
|
599
586
|
|
|
600
587
|
/**
|
|
601
|
-
* @returns {Promise<
|
|
588
|
+
* @returns {Promise<WasmWallet>}
|
|
602
589
|
*/
|
|
603
|
-
export function
|
|
604
|
-
const ret = wasm.
|
|
590
|
+
export function get_wallet() {
|
|
591
|
+
const ret = wasm.get_wallet();
|
|
605
592
|
return takeObject(ret);
|
|
606
593
|
}
|
|
607
594
|
|
|
608
595
|
/**
|
|
609
|
-
* @
|
|
610
|
-
* @param {Uint8Array} hash
|
|
611
|
-
* @param {bigint} block_id
|
|
612
|
-
* @param {bigint} peer_index
|
|
613
|
-
* @returns {Promise<void>}
|
|
596
|
+
* @returns {Promise<WasmBlockchain>}
|
|
614
597
|
*/
|
|
615
|
-
export function
|
|
616
|
-
const ret = wasm.
|
|
598
|
+
export function get_blockchain() {
|
|
599
|
+
const ret = wasm.get_blockchain();
|
|
617
600
|
return takeObject(ret);
|
|
618
601
|
}
|
|
619
602
|
|
|
620
603
|
/**
|
|
621
604
|
* @param {string} public_key
|
|
622
|
-
* @
|
|
605
|
+
* @param {bigint} amount
|
|
606
|
+
* @param {bigint} fee
|
|
607
|
+
* @param {boolean} force_merge
|
|
608
|
+
* @returns {Promise<WasmTransaction>}
|
|
623
609
|
*/
|
|
624
|
-
export function
|
|
625
|
-
const ret = wasm.
|
|
610
|
+
export function create_transaction(public_key, amount, fee, force_merge) {
|
|
611
|
+
const ret = wasm.create_transaction(addHeapObject(public_key), amount, fee, force_merge);
|
|
626
612
|
return takeObject(ret);
|
|
627
613
|
}
|
|
628
614
|
|
|
629
615
|
/**
|
|
630
|
-
* @
|
|
631
|
-
* @returns {string}
|
|
616
|
+
* @returns {Promise<void>}
|
|
632
617
|
*/
|
|
633
|
-
export function
|
|
634
|
-
const ret = wasm.
|
|
618
|
+
export function start_from_received_ghost_chain() {
|
|
619
|
+
const ret = wasm.start_from_received_ghost_chain();
|
|
635
620
|
return takeObject(ret);
|
|
636
621
|
}
|
|
637
622
|
|
|
638
623
|
/**
|
|
639
|
-
* @
|
|
624
|
+
* @param {bigint} duration_in_ms
|
|
625
|
+
* @returns {Promise<void>}
|
|
640
626
|
*/
|
|
641
|
-
export function
|
|
642
|
-
const ret = wasm.
|
|
627
|
+
export function process_timer_event(duration_in_ms) {
|
|
628
|
+
const ret = wasm.process_timer_event(duration_in_ms);
|
|
643
629
|
return takeObject(ret);
|
|
644
630
|
}
|
|
645
631
|
|
|
646
632
|
/**
|
|
647
|
-
* @param {bigint}
|
|
648
|
-
* @
|
|
649
|
-
* @param {string} slip2_utxo_key
|
|
650
|
-
* @param {string} slip3_utxo_key
|
|
651
|
-
* @param {string} recipient_public_key
|
|
652
|
-
* @param {Uint8Array} tx_msg
|
|
653
|
-
* @returns {Promise<WasmTransaction>}
|
|
633
|
+
* @param {bigint} peer_index
|
|
634
|
+
* @returns {Promise<void>}
|
|
654
635
|
*/
|
|
655
|
-
export function
|
|
656
|
-
const ret = wasm.
|
|
636
|
+
export function process_peer_disconnection(peer_index) {
|
|
637
|
+
const ret = wasm.process_peer_disconnection(peer_index);
|
|
657
638
|
return takeObject(ret);
|
|
658
639
|
}
|
|
659
640
|
|
|
660
641
|
/**
|
|
661
|
-
* @returns {Promise<
|
|
642
|
+
* @returns {Promise<bigint>}
|
|
662
643
|
*/
|
|
663
|
-
export function
|
|
664
|
-
const ret = wasm.
|
|
644
|
+
export function get_next_peer_index() {
|
|
645
|
+
const ret = wasm.get_next_peer_index();
|
|
665
646
|
return takeObject(ret);
|
|
666
647
|
}
|
|
667
648
|
|
|
@@ -677,33 +658,23 @@ export function set_wallet_version(major, minor, patch) {
|
|
|
677
658
|
}
|
|
678
659
|
|
|
679
660
|
/**
|
|
680
|
-
* @
|
|
661
|
+
* @param {string} block_hash
|
|
662
|
+
* @returns {Promise<WasmBlock>}
|
|
681
663
|
*/
|
|
682
|
-
export function
|
|
683
|
-
const ret = wasm.
|
|
664
|
+
export function get_block(block_hash) {
|
|
665
|
+
const ret = wasm.get_block(addHeapObject(block_hash));
|
|
684
666
|
return takeObject(ret);
|
|
685
667
|
}
|
|
686
668
|
|
|
687
669
|
/**
|
|
688
|
-
* @param {string}
|
|
689
|
-
* @param {string} slip2_utxo_key
|
|
690
|
-
* @param {string} slip3_utxo_key
|
|
691
|
-
* @param {number} left_count
|
|
692
|
-
* @param {number} right_count
|
|
670
|
+
* @param {string} nft_id_hex
|
|
693
671
|
* @param {Uint8Array} tx_msg
|
|
694
672
|
* @returns {Promise<WasmTransaction>}
|
|
695
673
|
*/
|
|
696
|
-
export function
|
|
697
|
-
const
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
/**
|
|
702
|
-
* @param {bigint} duration_in_ms
|
|
703
|
-
* @returns {Promise<void>}
|
|
704
|
-
*/
|
|
705
|
-
export function process_timer_event(duration_in_ms) {
|
|
706
|
-
const ret = wasm.process_timer_event(duration_in_ms);
|
|
674
|
+
export function create_merge_bound_transaction(nft_id_hex, tx_msg) {
|
|
675
|
+
const ptr0 = passStringToWasm0(nft_id_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
676
|
+
const len0 = WASM_VECTOR_LEN;
|
|
677
|
+
const ret = wasm.create_merge_bound_transaction(ptr0, len0, addHeapObject(tx_msg));
|
|
707
678
|
return takeObject(ret);
|
|
708
679
|
}
|
|
709
680
|
|
|
@@ -717,18 +688,47 @@ export function is_valid_public_key(key) {
|
|
|
717
688
|
}
|
|
718
689
|
|
|
719
690
|
/**
|
|
691
|
+
* @returns {Promise<string>}
|
|
692
|
+
*/
|
|
693
|
+
export function get_latest_block_hash() {
|
|
694
|
+
const ret = wasm.get_latest_block_hash();
|
|
695
|
+
return takeObject(ret);
|
|
696
|
+
}
|
|
697
|
+
|
|
698
|
+
/**
|
|
699
|
+
* @returns {Promise<any>}
|
|
700
|
+
*/
|
|
701
|
+
export function get_confirmations() {
|
|
702
|
+
const ret = wasm.get_confirmations();
|
|
703
|
+
return takeObject(ret);
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
/**
|
|
707
|
+
* @param {bigint} current_time
|
|
720
708
|
* @returns {Promise<void>}
|
|
721
709
|
*/
|
|
722
|
-
export function
|
|
723
|
-
const ret = wasm.
|
|
710
|
+
export function process_stat_interval(current_time) {
|
|
711
|
+
const ret = wasm.process_stat_interval(current_time);
|
|
724
712
|
return takeObject(ret);
|
|
725
713
|
}
|
|
726
714
|
|
|
727
715
|
/**
|
|
716
|
+
* @param {string} public_key
|
|
728
717
|
* @returns {Promise<Array<any>>}
|
|
729
718
|
*/
|
|
730
|
-
export function
|
|
731
|
-
const ret = wasm.
|
|
719
|
+
export function get_account_slips(public_key) {
|
|
720
|
+
const ret = wasm.get_account_slips(addHeapObject(public_key));
|
|
721
|
+
return takeObject(ret);
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
/**
|
|
725
|
+
* @param {Uint8Array} buffer
|
|
726
|
+
* @param {number} msg_index
|
|
727
|
+
* @param {bigint} peer_index
|
|
728
|
+
* @returns {Promise<void>}
|
|
729
|
+
*/
|
|
730
|
+
export function send_api_success(buffer, msg_index, peer_index) {
|
|
731
|
+
const ret = wasm.send_api_success(addHeapObject(buffer), msg_index, peer_index);
|
|
732
732
|
return takeObject(ret);
|
|
733
733
|
}
|
|
734
734
|
|
|
@@ -2697,6 +2697,10 @@ async function __wbg_load(module, imports) {
|
|
|
2697
2697
|
function __wbg_get_imports() {
|
|
2698
2698
|
const imports = {};
|
|
2699
2699
|
imports.wbg = {};
|
|
2700
|
+
imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
|
|
2701
|
+
const ret = getObject(arg0);
|
|
2702
|
+
return addHeapObject(ret);
|
|
2703
|
+
};
|
|
2700
2704
|
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
2701
2705
|
takeObject(arg0);
|
|
2702
2706
|
};
|
|
@@ -2704,18 +2708,30 @@ function __wbg_get_imports() {
|
|
|
2704
2708
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
2705
2709
|
return addHeapObject(ret);
|
|
2706
2710
|
};
|
|
2711
|
+
imports.wbg.__wbg_wasmtransaction_new = function(arg0) {
|
|
2712
|
+
const ret = WasmTransaction.__wrap(arg0);
|
|
2713
|
+
return addHeapObject(ret);
|
|
2714
|
+
};
|
|
2707
2715
|
imports.wbg.__wbg_wasmslip_new = function(arg0) {
|
|
2708
2716
|
const ret = WasmSlip.__wrap(arg0);
|
|
2709
2717
|
return addHeapObject(ret);
|
|
2710
2718
|
};
|
|
2711
|
-
imports.wbg.
|
|
2712
|
-
const ret =
|
|
2719
|
+
imports.wbg.__wbg_wasmpeer_new = function(arg0) {
|
|
2720
|
+
const ret = WasmPeer.__wrap(arg0);
|
|
2721
|
+
return addHeapObject(ret);
|
|
2722
|
+
};
|
|
2723
|
+
imports.wbg.__wbg_wasmblockchain_new = function(arg0) {
|
|
2724
|
+
const ret = WasmBlockchain.__wrap(arg0);
|
|
2713
2725
|
return addHeapObject(ret);
|
|
2714
2726
|
};
|
|
2715
2727
|
imports.wbg.__wbg_wasmnft_new = function(arg0) {
|
|
2716
2728
|
const ret = WasmNFT.__wrap(arg0);
|
|
2717
2729
|
return addHeapObject(ret);
|
|
2718
2730
|
};
|
|
2731
|
+
imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
2732
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
2733
|
+
return addHeapObject(ret);
|
|
2734
|
+
};
|
|
2719
2735
|
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
2720
2736
|
const obj = getObject(arg1);
|
|
2721
2737
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
@@ -2724,26 +2740,14 @@ function __wbg_get_imports() {
|
|
|
2724
2740
|
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
2725
2741
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
2726
2742
|
};
|
|
2727
|
-
imports.wbg.
|
|
2728
|
-
const ret =
|
|
2729
|
-
return addHeapObject(ret);
|
|
2730
|
-
};
|
|
2731
|
-
imports.wbg.__wbg_wasmblockchain_new = function(arg0) {
|
|
2732
|
-
const ret = WasmBlockchain.__wrap(arg0);
|
|
2743
|
+
imports.wbg.__wbg_wasmwallet_new = function(arg0) {
|
|
2744
|
+
const ret = WasmWallet.__wrap(arg0);
|
|
2733
2745
|
return addHeapObject(ret);
|
|
2734
2746
|
};
|
|
2735
2747
|
imports.wbg.__wbg_wasmblock_new = function(arg0) {
|
|
2736
2748
|
const ret = WasmBlock.__wrap(arg0);
|
|
2737
2749
|
return addHeapObject(ret);
|
|
2738
2750
|
};
|
|
2739
|
-
imports.wbg.__wbg_wasmpeer_new = function(arg0) {
|
|
2740
|
-
const ret = WasmPeer.__wrap(arg0);
|
|
2741
|
-
return addHeapObject(ret);
|
|
2742
|
-
};
|
|
2743
|
-
imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
2744
|
-
const ret = BigInt.asUintN(64, arg0);
|
|
2745
|
-
return addHeapObject(ret);
|
|
2746
|
-
};
|
|
2747
2751
|
imports.wbg.__wbg_wasmwalletslip_new = function(arg0) {
|
|
2748
2752
|
const ret = WasmWalletSlip.__wrap(arg0);
|
|
2749
2753
|
return addHeapObject(ret);
|
|
@@ -2752,10 +2756,6 @@ function __wbg_get_imports() {
|
|
|
2752
2756
|
const ret = WasmBalanceSnapshot.__wrap(arg0);
|
|
2753
2757
|
return addHeapObject(ret);
|
|
2754
2758
|
};
|
|
2755
|
-
imports.wbg.__wbg_wasmwallet_new = function(arg0) {
|
|
2756
|
-
const ret = WasmWallet.__wrap(arg0);
|
|
2757
|
-
return addHeapObject(ret);
|
|
2758
|
-
};
|
|
2759
2759
|
imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
|
|
2760
2760
|
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
2761
2761
|
return addHeapObject(ret);
|
|
@@ -2781,7 +2781,7 @@ function __wbg_get_imports() {
|
|
|
2781
2781
|
const ret = WasmHop.__wrap(arg0);
|
|
2782
2782
|
return addHeapObject(ret);
|
|
2783
2783
|
};
|
|
2784
|
-
imports.wbg.
|
|
2784
|
+
imports.wbg.__wbg_flushdata_57a24af0b42b2a24 = function(arg0, arg1) {
|
|
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_readvalue_eda09e3e85f91c6e = function() { return handleError(function (arg0, arg1) {
|
|
2796
2796
|
let deferred0_0;
|
|
2797
2797
|
let deferred0_1;
|
|
2798
2798
|
try {
|
|
@@ -2804,13 +2804,13 @@ 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_loadwallet_b5182506283605ab = function() {
|
|
2808
2808
|
MsgHandler.load_wallet();
|
|
2809
2809
|
};
|
|
2810
|
-
imports.wbg.
|
|
2810
|
+
imports.wbg.__wbg_savewallet_1c5ab82d380b4271 = function() {
|
|
2811
2811
|
MsgHandler.save_wallet();
|
|
2812
2812
|
};
|
|
2813
|
-
imports.wbg.
|
|
2813
|
+
imports.wbg.__wbg_writevalue_d45c2dd3c8c56d4f = function(arg0, arg1, arg2) {
|
|
2814
2814
|
let deferred0_0;
|
|
2815
2815
|
let deferred0_1;
|
|
2816
2816
|
try {
|
|
@@ -2821,7 +2821,7 @@ function __wbg_get_imports() {
|
|
|
2821
2821
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2822
2822
|
}
|
|
2823
2823
|
};
|
|
2824
|
-
imports.wbg.
|
|
2824
|
+
imports.wbg.__wbg_appendvalue_80a14b3de2c6810c = function(arg0, arg1, arg2) {
|
|
2825
2825
|
let deferred0_0;
|
|
2826
2826
|
let deferred0_1;
|
|
2827
2827
|
try {
|
|
@@ -2832,7 +2832,7 @@ function __wbg_get_imports() {
|
|
|
2832
2832
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2833
2833
|
}
|
|
2834
2834
|
};
|
|
2835
|
-
imports.wbg.
|
|
2835
|
+
imports.wbg.__wbg_removevalue_0bcbb4eb73cb550c = function() { return handleError(function (arg0, arg1) {
|
|
2836
2836
|
let deferred0_0;
|
|
2837
2837
|
let deferred0_1;
|
|
2838
2838
|
try {
|
|
@@ -2844,10 +2844,10 @@ function __wbg_get_imports() {
|
|
|
2844
2844
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2845
2845
|
}
|
|
2846
2846
|
}, arguments) };
|
|
2847
|
-
imports.wbg.
|
|
2847
|
+
imports.wbg.__wbg_sendmessage_ace5b81144243ec4 = function(arg0, arg1) {
|
|
2848
2848
|
MsgHandler.send_message(takeObject(arg0), getObject(arg1));
|
|
2849
2849
|
};
|
|
2850
|
-
imports.wbg.
|
|
2850
|
+
imports.wbg.__wbg_connecttopeer_718f23f2a1dad46e = function() { return handleError(function (arg0, arg1, arg2) {
|
|
2851
2851
|
let deferred0_0;
|
|
2852
2852
|
let deferred0_1;
|
|
2853
2853
|
try {
|
|
@@ -2859,13 +2859,13 @@ function __wbg_get_imports() {
|
|
|
2859
2859
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2860
2860
|
}
|
|
2861
2861
|
}, arguments) };
|
|
2862
|
-
imports.wbg.
|
|
2862
|
+
imports.wbg.__wbg_getmyservices_7c7c0312b835ecdf = function() {
|
|
2863
2863
|
const ret = MsgHandler.get_my_services();
|
|
2864
2864
|
_assertClass(ret, WasmPeerServiceList);
|
|
2865
2865
|
var ptr1 = ret.__destroy_into_raw();
|
|
2866
2866
|
return ptr1;
|
|
2867
2867
|
};
|
|
2868
|
-
imports.wbg.
|
|
2868
|
+
imports.wbg.__wbg_isexistingfile_10384e694274432a = function() { return handleError(function (arg0, arg1) {
|
|
2869
2869
|
let deferred0_0;
|
|
2870
2870
|
let deferred0_1;
|
|
2871
2871
|
try {
|
|
@@ -2877,27 +2877,27 @@ function __wbg_get_imports() {
|
|
|
2877
2877
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2878
2878
|
}
|
|
2879
2879
|
}, arguments) };
|
|
2880
|
-
imports.wbg.
|
|
2880
|
+
imports.wbg.__wbg_processapicall_429c448ba53022f8 = function(arg0, arg1, arg2) {
|
|
2881
2881
|
MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2882
2882
|
};
|
|
2883
|
-
imports.wbg.
|
|
2883
|
+
imports.wbg.__wbg_processapierror_481f5de5114e5c58 = function(arg0, arg1, arg2) {
|
|
2884
2884
|
MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2885
2885
|
};
|
|
2886
|
-
imports.wbg.
|
|
2886
|
+
imports.wbg.__wbg_processapisuccess_e7f80683c7350d70 = function(arg0, arg1, arg2) {
|
|
2887
2887
|
MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2888
2888
|
};
|
|
2889
|
-
imports.wbg.
|
|
2889
|
+
imports.wbg.__wbg_sendmessagetoall_929a50f93e17f953 = function(arg0, arg1) {
|
|
2890
2890
|
MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
|
|
2891
2891
|
};
|
|
2892
|
-
imports.wbg.
|
|
2892
|
+
imports.wbg.__wbg_disconnectfrompeer_4f6e3738fa40715a = function() { return handleError(function (arg0) {
|
|
2893
2893
|
const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
|
|
2894
2894
|
return addHeapObject(ret);
|
|
2895
2895
|
}, arguments) };
|
|
2896
|
-
imports.wbg.
|
|
2896
|
+
imports.wbg.__wbg_loadblockfilelist_570aba530ebee4ed = function() { return handleError(function () {
|
|
2897
2897
|
const ret = MsgHandler.load_block_file_list();
|
|
2898
2898
|
return addHeapObject(ret);
|
|
2899
2899
|
}, arguments) };
|
|
2900
|
-
imports.wbg.
|
|
2900
|
+
imports.wbg.__wbg_sendinterfaceevent_c21cebbf951ca686 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
2901
2901
|
let deferred0_0;
|
|
2902
2902
|
let deferred0_1;
|
|
2903
2903
|
let deferred1_0;
|
|
@@ -2913,7 +2913,7 @@ function __wbg_get_imports() {
|
|
|
2913
2913
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
2914
2914
|
}
|
|
2915
2915
|
};
|
|
2916
|
-
imports.wbg.
|
|
2916
|
+
imports.wbg.__wbg_sendblocksuccess_802b9fa50313a64b = function(arg0, arg1, arg2) {
|
|
2917
2917
|
let deferred0_0;
|
|
2918
2918
|
let deferred0_1;
|
|
2919
2919
|
try {
|
|
@@ -2924,10 +2924,10 @@ function __wbg_get_imports() {
|
|
|
2924
2924
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2925
2925
|
}
|
|
2926
2926
|
};
|
|
2927
|
-
imports.wbg.
|
|
2927
|
+
imports.wbg.__wbg_sendwalletupdate_636634402ee17f59 = function() {
|
|
2928
2928
|
MsgHandler.send_wallet_update();
|
|
2929
2929
|
};
|
|
2930
|
-
imports.wbg.
|
|
2930
|
+
imports.wbg.__wbg_sendnewversionalert_732df9ad6cd449c7 = function(arg0, arg1, arg2) {
|
|
2931
2931
|
let deferred0_0;
|
|
2932
2932
|
let deferred0_1;
|
|
2933
2933
|
try {
|
|
@@ -2938,13 +2938,13 @@ function __wbg_get_imports() {
|
|
|
2938
2938
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2939
2939
|
}
|
|
2940
2940
|
};
|
|
2941
|
-
imports.wbg.
|
|
2941
|
+
imports.wbg.__wbg_sendblockfetchstatusevent_b001665c60100280 = function(arg0) {
|
|
2942
2942
|
MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
|
|
2943
2943
|
};
|
|
2944
|
-
imports.wbg.
|
|
2944
|
+
imports.wbg.__wbg_sendnewchaindetectedevent_5478f95c31363715 = function() {
|
|
2945
2945
|
MsgHandler.send_new_chain_detected_event();
|
|
2946
2946
|
};
|
|
2947
|
-
imports.wbg.
|
|
2947
|
+
imports.wbg.__wbg_fetchblockfrompeer_2586d36df17cd9e4 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2948
2948
|
let deferred0_0;
|
|
2949
2949
|
let deferred0_1;
|
|
2950
2950
|
try {
|
|
@@ -2956,7 +2956,7 @@ function __wbg_get_imports() {
|
|
|
2956
2956
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2957
2957
|
}
|
|
2958
2958
|
}, arguments) };
|
|
2959
|
-
imports.wbg.
|
|
2959
|
+
imports.wbg.__wbg_ensuredirectoryexists_f091e82931e71635 = function() { return handleError(function (arg0, arg1) {
|
|
2960
2960
|
let deferred0_0;
|
|
2961
2961
|
let deferred0_1;
|
|
2962
2962
|
try {
|