saito-wasm 0.2.168 → 0.2.170
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 +137 -137
- package/pkg/node/index.js +281 -281
- package/pkg/node/index_bg.wasm +0 -0
- package/pkg/node/index_bg.wasm.d.ts +61 -61
- package/pkg/node/package.json +1 -1
- package/pkg/web/index.d.ts +198 -198
- package/pkg/web/index.js +278 -278
- 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-110f636d48c332b6}/js/msg_handler.js +0 -0
- /package/pkg/web/snippets/{saito-wasm-86859bf1424d0da8 → saito-wasm-110f636d48c332b6}/js/msg_handler.js +0 -0
package/pkg/node/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
let imports = {};
|
|
2
2
|
imports['__wbindgen_placeholder__'] = module.exports;
|
|
3
3
|
let wasm;
|
|
4
|
-
const { MsgHandler } = require(String.raw`./snippets/saito-wasm-
|
|
5
|
-
const {
|
|
4
|
+
const { MsgHandler } = require(String.raw`./snippets/saito-wasm-110f636d48c332b6/js/msg_handler.js`);
|
|
5
|
+
const { TextDecoder, TextEncoder } = require(`util`);
|
|
6
6
|
|
|
7
7
|
const heap = new Array(128).fill(undefined);
|
|
8
8
|
|
|
@@ -24,16 +24,9 @@ function takeObject(idx) {
|
|
|
24
24
|
return ret;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
29
|
-
const idx = heap_next;
|
|
30
|
-
heap_next = heap[idx];
|
|
31
|
-
|
|
32
|
-
heap[idx] = obj;
|
|
33
|
-
return idx;
|
|
34
|
-
}
|
|
27
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
35
28
|
|
|
36
|
-
|
|
29
|
+
cachedTextDecoder.decode();
|
|
37
30
|
|
|
38
31
|
let cachedUint8Memory0 = null;
|
|
39
32
|
|
|
@@ -44,6 +37,22 @@ function getUint8Memory0() {
|
|
|
44
37
|
return cachedUint8Memory0;
|
|
45
38
|
}
|
|
46
39
|
|
|
40
|
+
function getStringFromWasm0(ptr, len) {
|
|
41
|
+
ptr = ptr >>> 0;
|
|
42
|
+
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
function addHeapObject(obj) {
|
|
46
|
+
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
47
|
+
const idx = heap_next;
|
|
48
|
+
heap_next = heap[idx];
|
|
49
|
+
|
|
50
|
+
heap[idx] = obj;
|
|
51
|
+
return idx;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
let WASM_VECTOR_LEN = 0;
|
|
55
|
+
|
|
47
56
|
let cachedTextEncoder = new TextEncoder('utf-8');
|
|
48
57
|
|
|
49
58
|
const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
|
|
@@ -111,15 +120,6 @@ function getInt32Memory0() {
|
|
|
111
120
|
return cachedInt32Memory0;
|
|
112
121
|
}
|
|
113
122
|
|
|
114
|
-
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
115
|
-
|
|
116
|
-
cachedTextDecoder.decode();
|
|
117
|
-
|
|
118
|
-
function getStringFromWasm0(ptr, len) {
|
|
119
|
-
ptr = ptr >>> 0;
|
|
120
|
-
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
121
|
-
}
|
|
122
|
-
|
|
123
123
|
let cachedFloat64Memory0 = null;
|
|
124
124
|
|
|
125
125
|
function getFloat64Memory0() {
|
|
@@ -235,10 +235,12 @@ function _assertClass(instance, klass) {
|
|
|
235
235
|
return instance.ptr;
|
|
236
236
|
}
|
|
237
237
|
/**
|
|
238
|
-
* @
|
|
238
|
+
* @param {Uint8Array} buffer
|
|
239
|
+
* @param {bigint} peer_index
|
|
240
|
+
* @returns {Promise<void>}
|
|
239
241
|
*/
|
|
240
|
-
module.exports.
|
|
241
|
-
const ret = wasm.
|
|
242
|
+
module.exports.process_msg_buffer_from_peer = function(buffer, peer_index) {
|
|
243
|
+
const ret = wasm.process_msg_buffer_from_peer(addHeapObject(buffer), peer_index);
|
|
242
244
|
return takeObject(ret);
|
|
243
245
|
};
|
|
244
246
|
|
|
@@ -254,66 +256,67 @@ module.exports.create_remove_bound_transaction = function(slip1_utxo_key, slip2_
|
|
|
254
256
|
};
|
|
255
257
|
|
|
256
258
|
/**
|
|
257
|
-
* @
|
|
259
|
+
* @param {Uint8Array} buffer
|
|
260
|
+
* @param {Uint8Array} hash
|
|
261
|
+
* @param {bigint} block_id
|
|
262
|
+
* @param {bigint} peer_index
|
|
263
|
+
* @returns {Promise<void>}
|
|
258
264
|
*/
|
|
259
|
-
module.exports.
|
|
260
|
-
const ret = wasm.
|
|
265
|
+
module.exports.process_fetched_block = function(buffer, hash, block_id, peer_index) {
|
|
266
|
+
const ret = wasm.process_fetched_block(addHeapObject(buffer), addHeapObject(hash), block_id, peer_index);
|
|
261
267
|
return takeObject(ret);
|
|
262
268
|
};
|
|
263
269
|
|
|
264
270
|
/**
|
|
265
|
-
* @param {bigint}
|
|
266
|
-
* @returns {Promise<
|
|
271
|
+
* @param {bigint} peer_index
|
|
272
|
+
* @returns {Promise<WasmPeer | undefined>}
|
|
267
273
|
*/
|
|
268
|
-
module.exports.
|
|
269
|
-
const ret = wasm.
|
|
274
|
+
module.exports.get_peer = function(peer_index) {
|
|
275
|
+
const ret = wasm.get_peer(peer_index);
|
|
270
276
|
return takeObject(ret);
|
|
271
277
|
};
|
|
272
278
|
|
|
273
279
|
/**
|
|
274
|
-
* @
|
|
280
|
+
* @param {string} block_hash
|
|
281
|
+
* @returns {Promise<WasmBlock>}
|
|
275
282
|
*/
|
|
276
|
-
module.exports.
|
|
277
|
-
const ret = wasm.
|
|
283
|
+
module.exports.get_block = function(block_hash) {
|
|
284
|
+
const ret = wasm.get_block(addHeapObject(block_hash));
|
|
278
285
|
return takeObject(ret);
|
|
279
286
|
};
|
|
280
287
|
|
|
281
288
|
/**
|
|
282
|
-
* @returns {Promise<
|
|
289
|
+
* @returns {Promise<Array<any>>}
|
|
283
290
|
*/
|
|
284
|
-
module.exports.
|
|
285
|
-
const ret = wasm.
|
|
291
|
+
module.exports.get_mempool_txs = function() {
|
|
292
|
+
const ret = wasm.get_mempool_txs();
|
|
286
293
|
return takeObject(ret);
|
|
287
294
|
};
|
|
288
295
|
|
|
289
296
|
/**
|
|
290
297
|
* @param {bigint} peer_index
|
|
291
|
-
* @param {string}
|
|
298
|
+
* @param {string} public_key
|
|
292
299
|
* @returns {Promise<void>}
|
|
293
300
|
*/
|
|
294
|
-
module.exports.
|
|
295
|
-
const ret = wasm.
|
|
301
|
+
module.exports.process_stun_peer = function(peer_index, public_key) {
|
|
302
|
+
const ret = wasm.process_stun_peer(peer_index, addHeapObject(public_key));
|
|
296
303
|
return takeObject(ret);
|
|
297
304
|
};
|
|
298
305
|
|
|
299
306
|
/**
|
|
300
|
-
* @param {
|
|
301
|
-
* @
|
|
302
|
-
* @param {bigint} fee
|
|
303
|
-
* @param {boolean} _force_merge
|
|
304
|
-
* @returns {Promise<WasmTransaction>}
|
|
307
|
+
* @param {string} key
|
|
308
|
+
* @returns {boolean}
|
|
305
309
|
*/
|
|
306
|
-
module.exports.
|
|
307
|
-
const ret = wasm.
|
|
308
|
-
return
|
|
310
|
+
module.exports.is_valid_public_key = function(key) {
|
|
311
|
+
const ret = wasm.is_valid_public_key(addHeapObject(key));
|
|
312
|
+
return ret !== 0;
|
|
309
313
|
};
|
|
310
314
|
|
|
311
315
|
/**
|
|
312
|
-
* @
|
|
313
|
-
* @returns {Promise<void>}
|
|
316
|
+
* @returns {Promise<string>}
|
|
314
317
|
*/
|
|
315
|
-
module.exports.
|
|
316
|
-
const ret = wasm.
|
|
318
|
+
module.exports.get_stats = function() {
|
|
319
|
+
const ret = wasm.get_stats();
|
|
317
320
|
return takeObject(ret);
|
|
318
321
|
};
|
|
319
322
|
|
|
@@ -339,53 +342,35 @@ module.exports.sign_buffer = function(buffer, private_key) {
|
|
|
339
342
|
};
|
|
340
343
|
|
|
341
344
|
/**
|
|
342
|
-
* @param {
|
|
343
|
-
* @returns {
|
|
344
|
-
*/
|
|
345
|
-
module.exports.hash = function(buffer) {
|
|
346
|
-
const ret = wasm.hash(addHeapObject(buffer));
|
|
347
|
-
return takeObject(ret);
|
|
348
|
-
};
|
|
349
|
-
|
|
350
|
-
/**
|
|
351
|
-
* @returns {Promise<boolean>}
|
|
352
|
-
*/
|
|
353
|
-
module.exports.produce_block_without_gt = function() {
|
|
354
|
-
const ret = wasm.produce_block_without_gt();
|
|
355
|
-
return takeObject(ret);
|
|
356
|
-
};
|
|
357
|
-
|
|
358
|
-
/**
|
|
359
|
-
* @returns {Promise<Array<any>>}
|
|
345
|
+
* @param {bigint} peer_index
|
|
346
|
+
* @returns {Promise<void>}
|
|
360
347
|
*/
|
|
361
|
-
module.exports.
|
|
362
|
-
const ret = wasm.
|
|
348
|
+
module.exports.process_peer_disconnection = function(peer_index) {
|
|
349
|
+
const ret = wasm.process_peer_disconnection(peer_index);
|
|
363
350
|
return takeObject(ret);
|
|
364
351
|
};
|
|
365
352
|
|
|
366
353
|
/**
|
|
367
|
-
* @
|
|
368
|
-
* @returns {Promise<WasmPeer | undefined>}
|
|
354
|
+
* @returns {Promise<WasmBlockchain>}
|
|
369
355
|
*/
|
|
370
|
-
module.exports.
|
|
371
|
-
const ret = wasm.
|
|
356
|
+
module.exports.get_blockchain = function() {
|
|
357
|
+
const ret = wasm.get_blockchain();
|
|
372
358
|
return takeObject(ret);
|
|
373
359
|
};
|
|
374
360
|
|
|
375
361
|
/**
|
|
376
|
-
* @
|
|
377
|
-
* @returns {Promise<void>}
|
|
362
|
+
* @returns {Promise<string>}
|
|
378
363
|
*/
|
|
379
|
-
module.exports.
|
|
380
|
-
const ret = wasm.
|
|
364
|
+
module.exports.get_congestion_stats = function() {
|
|
365
|
+
const ret = wasm.get_congestion_stats();
|
|
381
366
|
return takeObject(ret);
|
|
382
367
|
};
|
|
383
368
|
|
|
384
369
|
/**
|
|
385
|
-
* @returns {Promise<
|
|
370
|
+
* @returns {Promise<any>}
|
|
386
371
|
*/
|
|
387
|
-
module.exports.
|
|
388
|
-
const ret = wasm.
|
|
372
|
+
module.exports.get_confirmations = function() {
|
|
373
|
+
const ret = wasm.get_confirmations();
|
|
389
374
|
return takeObject(ret);
|
|
390
375
|
};
|
|
391
376
|
|
|
@@ -404,56 +389,59 @@ module.exports.create_split_bound_transaction = function(slip1_utxo_key, slip2_u
|
|
|
404
389
|
};
|
|
405
390
|
|
|
406
391
|
/**
|
|
407
|
-
* @param {bigint}
|
|
408
|
-
* @
|
|
392
|
+
* @param {bigint} amt
|
|
393
|
+
* @param {string} slip1_utxo_key
|
|
394
|
+
* @param {string} slip2_utxo_key
|
|
395
|
+
* @param {string} slip3_utxo_key
|
|
396
|
+
* @param {string} recipient_public_key
|
|
397
|
+
* @param {Uint8Array} tx_msg
|
|
398
|
+
* @returns {Promise<WasmTransaction>}
|
|
409
399
|
*/
|
|
410
|
-
module.exports.
|
|
411
|
-
const ret = wasm.
|
|
400
|
+
module.exports.create_send_bound_transaction = function(amt, slip1_utxo_key, slip2_utxo_key, slip3_utxo_key, recipient_public_key, tx_msg) {
|
|
401
|
+
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));
|
|
412
402
|
return takeObject(ret);
|
|
413
403
|
};
|
|
414
404
|
|
|
415
405
|
/**
|
|
416
|
-
* @
|
|
417
|
-
* @param {string} public_key
|
|
418
|
-
* @returns {Promise<void>}
|
|
406
|
+
* @returns {Promise<string>}
|
|
419
407
|
*/
|
|
420
|
-
module.exports.
|
|
421
|
-
const ret = wasm.
|
|
408
|
+
module.exports.get_latest_block_hash = function() {
|
|
409
|
+
const ret = wasm.get_latest_block_hash();
|
|
422
410
|
return takeObject(ret);
|
|
423
411
|
};
|
|
424
412
|
|
|
425
413
|
/**
|
|
426
|
-
* @returns {Promise<
|
|
414
|
+
* @returns {Promise<WasmWallet>}
|
|
427
415
|
*/
|
|
428
|
-
module.exports.
|
|
429
|
-
const ret = wasm.
|
|
416
|
+
module.exports.get_wallet = function() {
|
|
417
|
+
const ret = wasm.get_wallet();
|
|
430
418
|
return takeObject(ret);
|
|
431
419
|
};
|
|
432
420
|
|
|
433
421
|
/**
|
|
434
|
-
* @returns {Promise<
|
|
422
|
+
* @returns {Promise<string>}
|
|
435
423
|
*/
|
|
436
|
-
module.exports.
|
|
437
|
-
const ret = wasm.
|
|
424
|
+
module.exports.get_peer_stats = function() {
|
|
425
|
+
const ret = wasm.get_peer_stats();
|
|
438
426
|
return takeObject(ret);
|
|
439
427
|
};
|
|
440
428
|
|
|
441
429
|
/**
|
|
442
|
-
* @
|
|
443
|
-
* @param {number} msg_index
|
|
444
|
-
* @param {bigint} peer_index
|
|
445
|
-
* @returns {Promise<void>}
|
|
430
|
+
* @returns {Promise<Array<any>>}
|
|
446
431
|
*/
|
|
447
|
-
module.exports.
|
|
448
|
-
const ret = wasm.
|
|
432
|
+
module.exports.get_peers = function() {
|
|
433
|
+
const ret = wasm.get_peers();
|
|
449
434
|
return takeObject(ret);
|
|
450
435
|
};
|
|
451
436
|
|
|
452
437
|
/**
|
|
453
|
-
* @
|
|
438
|
+
* @param {Uint8Array} buffer
|
|
439
|
+
* @param {number} msg_index
|
|
440
|
+
* @param {bigint} peer_index
|
|
441
|
+
* @returns {Promise<void>}
|
|
454
442
|
*/
|
|
455
|
-
module.exports.
|
|
456
|
-
const ret = wasm.
|
|
443
|
+
module.exports.send_api_call = function(buffer, msg_index, peer_index) {
|
|
444
|
+
const ret = wasm.send_api_call(addHeapObject(buffer), msg_index, peer_index);
|
|
457
445
|
return takeObject(ret);
|
|
458
446
|
};
|
|
459
447
|
|
|
@@ -478,58 +466,55 @@ module.exports.generate_public_key = function(private_key) {
|
|
|
478
466
|
};
|
|
479
467
|
|
|
480
468
|
/**
|
|
481
|
-
* @param {
|
|
482
|
-
* @
|
|
483
|
-
* @param {number} log_level_num
|
|
484
|
-
* @param {bigint} hasten_multiplier
|
|
485
|
-
* @param {boolean} delete_old_blocks
|
|
486
|
-
* @returns {Promise<any>}
|
|
469
|
+
* @param {WasmTransaction} tx
|
|
470
|
+
* @returns {Promise<void>}
|
|
487
471
|
*/
|
|
488
|
-
module.exports.
|
|
489
|
-
|
|
472
|
+
module.exports.propagate_transaction = function(tx) {
|
|
473
|
+
_assertClass(tx, WasmTransaction);
|
|
474
|
+
const ret = wasm.propagate_transaction(tx.__wbg_ptr);
|
|
490
475
|
return takeObject(ret);
|
|
491
476
|
};
|
|
492
477
|
|
|
493
478
|
/**
|
|
494
|
-
* @param {
|
|
495
|
-
* @
|
|
496
|
-
* @param {string} public_key
|
|
497
|
-
* @returns {boolean}
|
|
479
|
+
* @param {Array<any>} keys
|
|
480
|
+
* @returns {Promise<WasmBalanceSnapshot>}
|
|
498
481
|
*/
|
|
499
|
-
module.exports.
|
|
500
|
-
const ret = wasm.
|
|
501
|
-
return ret
|
|
482
|
+
module.exports.get_balance_snapshot = function(keys) {
|
|
483
|
+
const ret = wasm.get_balance_snapshot(addHeapObject(keys));
|
|
484
|
+
return takeObject(ret);
|
|
502
485
|
};
|
|
503
486
|
|
|
504
487
|
/**
|
|
505
|
-
* @param {
|
|
506
|
-
* @param {
|
|
507
|
-
* @returns {Promise<
|
|
488
|
+
* @param {string} nft_id_hex
|
|
489
|
+
* @param {Uint8Array} tx_msg
|
|
490
|
+
* @returns {Promise<WasmTransaction>}
|
|
508
491
|
*/
|
|
509
|
-
module.exports.
|
|
510
|
-
const
|
|
492
|
+
module.exports.create_merge_bound_transaction = function(nft_id_hex, tx_msg) {
|
|
493
|
+
const ptr0 = passStringToWasm0(nft_id_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
494
|
+
const len0 = WASM_VECTOR_LEN;
|
|
495
|
+
const ret = wasm.create_merge_bound_transaction(ptr0, len0, addHeapObject(tx_msg));
|
|
511
496
|
return takeObject(ret);
|
|
512
497
|
};
|
|
513
498
|
|
|
514
499
|
/**
|
|
515
|
-
* @param {bigint}
|
|
516
|
-
* @param {
|
|
517
|
-
* @
|
|
518
|
-
* @param {bigint} fee
|
|
519
|
-
* @param {string} recipient_public_key
|
|
520
|
-
* @param {string} nft_type
|
|
521
|
-
* @returns {Promise<WasmTransaction>}
|
|
500
|
+
* @param {bigint} peer_index
|
|
501
|
+
* @param {string} ip
|
|
502
|
+
* @returns {Promise<void>}
|
|
522
503
|
*/
|
|
523
|
-
module.exports.
|
|
524
|
-
const ret = wasm.
|
|
504
|
+
module.exports.process_new_peer = function(peer_index, ip) {
|
|
505
|
+
const ret = wasm.process_new_peer(peer_index, addHeapObject(ip));
|
|
525
506
|
return takeObject(ret);
|
|
526
507
|
};
|
|
527
508
|
|
|
528
509
|
/**
|
|
529
|
-
* @
|
|
510
|
+
* @param {Array<any>} public_keys
|
|
511
|
+
* @param {BigUint64Array} amounts
|
|
512
|
+
* @param {bigint} fee
|
|
513
|
+
* @param {boolean} _force_merge
|
|
514
|
+
* @returns {Promise<WasmTransaction>}
|
|
530
515
|
*/
|
|
531
|
-
module.exports.
|
|
532
|
-
const ret = wasm.
|
|
516
|
+
module.exports.create_transaction_with_multiple_payments = function(public_keys, amounts, fee, _force_merge) {
|
|
517
|
+
const ret = wasm.create_transaction_with_multiple_payments(addHeapObject(public_keys), addHeapObject(amounts), fee, _force_merge);
|
|
533
518
|
return takeObject(ret);
|
|
534
519
|
};
|
|
535
520
|
|
|
@@ -545,64 +530,55 @@ module.exports.process_failed_block_fetch = function(hash, block_id, peer_index)
|
|
|
545
530
|
};
|
|
546
531
|
|
|
547
532
|
/**
|
|
548
|
-
* @returns {
|
|
533
|
+
* @returns {Promise<Array<any>>}
|
|
549
534
|
*/
|
|
550
|
-
module.exports.
|
|
551
|
-
const ret = wasm.
|
|
535
|
+
module.exports.get_nft_list = function() {
|
|
536
|
+
const ret = wasm.get_nft_list();
|
|
552
537
|
return takeObject(ret);
|
|
553
538
|
};
|
|
554
539
|
|
|
555
540
|
/**
|
|
556
|
-
* @
|
|
557
|
-
* @param {bigint} amount
|
|
558
|
-
* @param {bigint} fee
|
|
559
|
-
* @param {boolean} force_merge
|
|
560
|
-
* @returns {Promise<WasmTransaction>}
|
|
541
|
+
* @returns {Promise<boolean>}
|
|
561
542
|
*/
|
|
562
|
-
module.exports.
|
|
563
|
-
const ret = wasm.
|
|
543
|
+
module.exports.produce_block_with_gt = function() {
|
|
544
|
+
const ret = wasm.produce_block_with_gt();
|
|
564
545
|
return takeObject(ret);
|
|
565
546
|
};
|
|
566
547
|
|
|
567
548
|
/**
|
|
568
|
-
* @param {
|
|
549
|
+
* @param {bigint} peer_index
|
|
569
550
|
* @returns {Promise<void>}
|
|
570
551
|
*/
|
|
571
|
-
module.exports.
|
|
572
|
-
|
|
573
|
-
var ptr0 = snapshot.__destroy_into_raw();
|
|
574
|
-
const ret = wasm.update_from_balance_snapshot(ptr0);
|
|
552
|
+
module.exports.remove_stun_peer = function(peer_index) {
|
|
553
|
+
const ret = wasm.remove_stun_peer(peer_index);
|
|
575
554
|
return takeObject(ret);
|
|
576
555
|
};
|
|
577
556
|
|
|
578
557
|
/**
|
|
579
|
-
* @
|
|
580
|
-
* @returns {Promise<void>}
|
|
558
|
+
* @returns {string}
|
|
581
559
|
*/
|
|
582
|
-
module.exports.
|
|
583
|
-
|
|
584
|
-
const ret = wasm.propagate_transaction(tx.__wbg_ptr);
|
|
560
|
+
module.exports.generate_private_key = function() {
|
|
561
|
+
const ret = wasm.generate_private_key();
|
|
585
562
|
return takeObject(ret);
|
|
586
563
|
};
|
|
587
564
|
|
|
588
565
|
/**
|
|
589
|
-
* @param {bigint} peer_index
|
|
590
566
|
* @returns {Promise<void>}
|
|
591
567
|
*/
|
|
592
|
-
module.exports.
|
|
593
|
-
const ret = wasm.
|
|
568
|
+
module.exports.start_from_received_ghost_chain = function() {
|
|
569
|
+
const ret = wasm.start_from_received_ghost_chain();
|
|
594
570
|
return takeObject(ret);
|
|
595
571
|
};
|
|
596
572
|
|
|
597
573
|
/**
|
|
598
|
-
* @param {
|
|
599
|
-
* @param {
|
|
600
|
-
* @param {bigint}
|
|
601
|
-
* @param {
|
|
602
|
-
* @returns {Promise<
|
|
574
|
+
* @param {string} public_key
|
|
575
|
+
* @param {bigint} amount
|
|
576
|
+
* @param {bigint} fee
|
|
577
|
+
* @param {boolean} force_merge
|
|
578
|
+
* @returns {Promise<WasmTransaction>}
|
|
603
579
|
*/
|
|
604
|
-
module.exports.
|
|
605
|
-
const ret = wasm.
|
|
580
|
+
module.exports.create_transaction = function(public_key, amount, fee, force_merge) {
|
|
581
|
+
const ret = wasm.create_transaction(addHeapObject(public_key), amount, fee, force_merge);
|
|
606
582
|
return takeObject(ret);
|
|
607
583
|
};
|
|
608
584
|
|
|
@@ -616,120 +592,144 @@ module.exports.get_account_slips = function(public_key) {
|
|
|
616
592
|
};
|
|
617
593
|
|
|
618
594
|
/**
|
|
619
|
-
* @
|
|
595
|
+
* @param {bigint} num
|
|
596
|
+
* @param {bigint} deposit
|
|
597
|
+
* @param {Uint8Array} tx_msg
|
|
598
|
+
* @param {bigint} fee
|
|
599
|
+
* @param {string} recipient_public_key
|
|
600
|
+
* @param {string} nft_type
|
|
601
|
+
* @returns {Promise<WasmTransaction>}
|
|
620
602
|
*/
|
|
621
|
-
module.exports.
|
|
622
|
-
const ret = wasm.
|
|
603
|
+
module.exports.create_bound_transaction = function(num, deposit, tx_msg, fee, recipient_public_key, nft_type) {
|
|
604
|
+
const ret = wasm.create_bound_transaction(num, deposit, addHeapObject(tx_msg), fee, addHeapObject(recipient_public_key), addHeapObject(nft_type));
|
|
623
605
|
return takeObject(ret);
|
|
624
606
|
};
|
|
625
607
|
|
|
626
608
|
/**
|
|
627
|
-
* @param {
|
|
628
|
-
* @returns {
|
|
609
|
+
* @param {bigint} current_time
|
|
610
|
+
* @returns {Promise<void>}
|
|
629
611
|
*/
|
|
630
|
-
module.exports.
|
|
631
|
-
const ret = wasm.
|
|
632
|
-
return ret
|
|
612
|
+
module.exports.process_stat_interval = function(current_time) {
|
|
613
|
+
const ret = wasm.process_stat_interval(current_time);
|
|
614
|
+
return takeObject(ret);
|
|
633
615
|
};
|
|
634
616
|
|
|
635
617
|
/**
|
|
636
|
-
* @
|
|
637
|
-
* @returns {Promise<WasmBlock>}
|
|
618
|
+
* @returns {Promise<void>}
|
|
638
619
|
*/
|
|
639
|
-
module.exports.
|
|
640
|
-
const ret = wasm.
|
|
620
|
+
module.exports.disable_producing_blocks_by_timer = function() {
|
|
621
|
+
const ret = wasm.disable_producing_blocks_by_timer();
|
|
641
622
|
return takeObject(ret);
|
|
642
623
|
};
|
|
643
624
|
|
|
644
625
|
/**
|
|
645
|
-
* @
|
|
626
|
+
* @param {Uint8Array} buffer
|
|
627
|
+
* @param {number} msg_index
|
|
628
|
+
* @param {bigint} peer_index
|
|
629
|
+
* @returns {Promise<void>}
|
|
646
630
|
*/
|
|
647
|
-
module.exports.
|
|
648
|
-
const ret = wasm.
|
|
631
|
+
module.exports.send_api_success = function(buffer, msg_index, peer_index) {
|
|
632
|
+
const ret = wasm.send_api_success(addHeapObject(buffer), msg_index, peer_index);
|
|
649
633
|
return takeObject(ret);
|
|
650
634
|
};
|
|
651
635
|
|
|
652
636
|
/**
|
|
653
|
-
* @param {bigint}
|
|
654
|
-
* @
|
|
655
|
-
* @param {string} slip2_utxo_key
|
|
656
|
-
* @param {string} slip3_utxo_key
|
|
657
|
-
* @param {string} recipient_public_key
|
|
658
|
-
* @param {Uint8Array} tx_msg
|
|
659
|
-
* @returns {Promise<WasmTransaction>}
|
|
637
|
+
* @param {bigint} duration_in_ms
|
|
638
|
+
* @returns {Promise<void>}
|
|
660
639
|
*/
|
|
661
|
-
module.exports.
|
|
662
|
-
const ret = wasm.
|
|
640
|
+
module.exports.process_timer_event = function(duration_in_ms) {
|
|
641
|
+
const ret = wasm.process_timer_event(duration_in_ms);
|
|
663
642
|
return takeObject(ret);
|
|
664
643
|
};
|
|
665
644
|
|
|
666
645
|
/**
|
|
667
|
-
* @returns {Promise<
|
|
646
|
+
* @returns {Promise<boolean>}
|
|
668
647
|
*/
|
|
669
|
-
module.exports.
|
|
670
|
-
const ret = wasm.
|
|
648
|
+
module.exports.produce_block_without_gt = function() {
|
|
649
|
+
const ret = wasm.produce_block_without_gt();
|
|
671
650
|
return takeObject(ret);
|
|
672
651
|
};
|
|
673
652
|
|
|
674
653
|
/**
|
|
654
|
+
* @param {WasmBalanceSnapshot} snapshot
|
|
675
655
|
* @returns {Promise<void>}
|
|
676
656
|
*/
|
|
677
|
-
module.exports.
|
|
678
|
-
|
|
657
|
+
module.exports.update_from_balance_snapshot = function(snapshot) {
|
|
658
|
+
_assertClass(snapshot, WasmBalanceSnapshot);
|
|
659
|
+
var ptr0 = snapshot.__destroy_into_raw();
|
|
660
|
+
const ret = wasm.update_from_balance_snapshot(ptr0);
|
|
679
661
|
return takeObject(ret);
|
|
680
662
|
};
|
|
681
663
|
|
|
682
664
|
/**
|
|
683
665
|
* @param {Uint8Array} buffer
|
|
684
|
-
* @param {
|
|
685
|
-
* @param {
|
|
666
|
+
* @param {string} signature
|
|
667
|
+
* @param {string} public_key
|
|
668
|
+
* @returns {boolean}
|
|
669
|
+
*/
|
|
670
|
+
module.exports.verify_signature = function(buffer, signature, public_key) {
|
|
671
|
+
const ret = wasm.verify_signature(addHeapObject(buffer), addHeapObject(signature), addHeapObject(public_key));
|
|
672
|
+
return ret !== 0;
|
|
673
|
+
};
|
|
674
|
+
|
|
675
|
+
/**
|
|
676
|
+
* @param {number} major
|
|
677
|
+
* @param {number} minor
|
|
678
|
+
* @param {number} patch
|
|
686
679
|
* @returns {Promise<void>}
|
|
687
680
|
*/
|
|
688
|
-
module.exports.
|
|
689
|
-
const ret = wasm.
|
|
681
|
+
module.exports.set_wallet_version = function(major, minor, patch) {
|
|
682
|
+
const ret = wasm.set_wallet_version(major, minor, patch);
|
|
690
683
|
return takeObject(ret);
|
|
691
684
|
};
|
|
692
685
|
|
|
693
686
|
/**
|
|
694
|
-
* @param {
|
|
695
|
-
* @returns {Promise<
|
|
687
|
+
* @param {bigint} threshold
|
|
688
|
+
* @returns {Promise<void>}
|
|
696
689
|
*/
|
|
697
|
-
module.exports.
|
|
698
|
-
const ret = wasm.
|
|
690
|
+
module.exports.write_issuance_file = function(threshold) {
|
|
691
|
+
const ret = wasm.write_issuance_file(threshold);
|
|
692
|
+
return takeObject(ret);
|
|
693
|
+
};
|
|
694
|
+
|
|
695
|
+
/**
|
|
696
|
+
* @returns {Promise<bigint>}
|
|
697
|
+
*/
|
|
698
|
+
module.exports.get_next_peer_index = function() {
|
|
699
|
+
const ret = wasm.get_next_peer_index();
|
|
699
700
|
return takeObject(ret);
|
|
700
701
|
};
|
|
701
702
|
|
|
702
703
|
/**
|
|
703
704
|
* @param {Uint8Array} buffer
|
|
704
|
-
* @
|
|
705
|
-
* @param {bigint} peer_index
|
|
706
|
-
* @returns {Promise<void>}
|
|
705
|
+
* @returns {string}
|
|
707
706
|
*/
|
|
708
|
-
module.exports.
|
|
709
|
-
const ret = wasm.
|
|
707
|
+
module.exports.hash = function(buffer) {
|
|
708
|
+
const ret = wasm.hash(addHeapObject(buffer));
|
|
710
709
|
return takeObject(ret);
|
|
711
710
|
};
|
|
712
711
|
|
|
713
712
|
/**
|
|
714
|
-
* @param {string}
|
|
715
|
-
* @param {
|
|
716
|
-
* @
|
|
713
|
+
* @param {string} config_json
|
|
714
|
+
* @param {string} private_key
|
|
715
|
+
* @param {number} log_level_num
|
|
716
|
+
* @param {bigint} hasten_multiplier
|
|
717
|
+
* @param {boolean} delete_old_blocks
|
|
718
|
+
* @returns {Promise<any>}
|
|
717
719
|
*/
|
|
718
|
-
module.exports.
|
|
719
|
-
const
|
|
720
|
-
const len0 = WASM_VECTOR_LEN;
|
|
721
|
-
const ret = wasm.create_merge_bound_transaction(ptr0, len0, addHeapObject(tx_msg));
|
|
720
|
+
module.exports.initialize = function(config_json, private_key, log_level_num, hasten_multiplier, delete_old_blocks) {
|
|
721
|
+
const ret = wasm.initialize(addHeapObject(config_json), addHeapObject(private_key), log_level_num, hasten_multiplier, delete_old_blocks);
|
|
722
722
|
return takeObject(ret);
|
|
723
723
|
};
|
|
724
724
|
|
|
725
725
|
/**
|
|
726
|
-
* @param {
|
|
727
|
-
* @param {number}
|
|
728
|
-
* @param {
|
|
726
|
+
* @param {Uint8Array} buffer
|
|
727
|
+
* @param {number} msg_index
|
|
728
|
+
* @param {bigint} peer_index
|
|
729
729
|
* @returns {Promise<void>}
|
|
730
730
|
*/
|
|
731
|
-
module.exports.
|
|
732
|
-
const ret = wasm.
|
|
731
|
+
module.exports.send_api_error = function(buffer, msg_index, peer_index) {
|
|
732
|
+
const ret = wasm.send_api_error(addHeapObject(buffer), msg_index, peer_index);
|
|
733
733
|
return takeObject(ret);
|
|
734
734
|
};
|
|
735
735
|
|
|
@@ -2652,46 +2652,32 @@ class WasmWalletSlip {
|
|
|
2652
2652
|
}
|
|
2653
2653
|
module.exports.WasmWalletSlip = WasmWalletSlip;
|
|
2654
2654
|
|
|
2655
|
-
module.exports.__wbg_wasmwallet_new = function(arg0) {
|
|
2656
|
-
const ret = WasmWallet.__wrap(arg0);
|
|
2657
|
-
return addHeapObject(ret);
|
|
2658
|
-
};
|
|
2659
|
-
|
|
2660
2655
|
module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
2661
2656
|
takeObject(arg0);
|
|
2662
2657
|
};
|
|
2663
2658
|
|
|
2664
|
-
module.exports.
|
|
2665
|
-
const ret =
|
|
2659
|
+
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
2660
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
2666
2661
|
return addHeapObject(ret);
|
|
2667
2662
|
};
|
|
2668
2663
|
|
|
2669
|
-
module.exports.
|
|
2670
|
-
const ret =
|
|
2664
|
+
module.exports.__wbg_wasmtransaction_new = function(arg0) {
|
|
2665
|
+
const ret = WasmTransaction.__wrap(arg0);
|
|
2671
2666
|
return addHeapObject(ret);
|
|
2672
2667
|
};
|
|
2673
2668
|
|
|
2674
|
-
module.exports.
|
|
2675
|
-
const
|
|
2676
|
-
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
2677
|
-
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2678
|
-
var len1 = WASM_VECTOR_LEN;
|
|
2679
|
-
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
2680
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
2681
|
-
};
|
|
2682
|
-
|
|
2683
|
-
module.exports.__wbindgen_object_clone_ref = function(arg0) {
|
|
2684
|
-
const ret = getObject(arg0);
|
|
2669
|
+
module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
|
|
2670
|
+
const ret = WasmBalanceSnapshot.__wrap(arg0);
|
|
2685
2671
|
return addHeapObject(ret);
|
|
2686
2672
|
};
|
|
2687
2673
|
|
|
2688
|
-
module.exports.
|
|
2689
|
-
const ret =
|
|
2674
|
+
module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
2675
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
2690
2676
|
return addHeapObject(ret);
|
|
2691
2677
|
};
|
|
2692
2678
|
|
|
2693
|
-
module.exports.
|
|
2694
|
-
const ret =
|
|
2679
|
+
module.exports.__wbg_wasmnft_new = function(arg0) {
|
|
2680
|
+
const ret = WasmNFT.__wrap(arg0);
|
|
2695
2681
|
return addHeapObject(ret);
|
|
2696
2682
|
};
|
|
2697
2683
|
|
|
@@ -2700,8 +2686,22 @@ module.exports.__wbg_wasmblock_new = function(arg0) {
|
|
|
2700
2686
|
return addHeapObject(ret);
|
|
2701
2687
|
};
|
|
2702
2688
|
|
|
2703
|
-
module.exports.
|
|
2704
|
-
const ret =
|
|
2689
|
+
module.exports.__wbindgen_object_clone_ref = function(arg0) {
|
|
2690
|
+
const ret = getObject(arg0);
|
|
2691
|
+
return addHeapObject(ret);
|
|
2692
|
+
};
|
|
2693
|
+
|
|
2694
|
+
module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
2695
|
+
const obj = getObject(arg1);
|
|
2696
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
2697
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2698
|
+
var len1 = WASM_VECTOR_LEN;
|
|
2699
|
+
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
2700
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
2701
|
+
};
|
|
2702
|
+
|
|
2703
|
+
module.exports.__wbg_wasmpeer_new = function(arg0) {
|
|
2704
|
+
const ret = WasmPeer.__wrap(arg0);
|
|
2705
2705
|
return addHeapObject(ret);
|
|
2706
2706
|
};
|
|
2707
2707
|
|
|
@@ -2710,18 +2710,18 @@ module.exports.__wbg_wasmwalletslip_new = function(arg0) {
|
|
|
2710
2710
|
return addHeapObject(ret);
|
|
2711
2711
|
};
|
|
2712
2712
|
|
|
2713
|
-
module.exports.
|
|
2714
|
-
const ret =
|
|
2713
|
+
module.exports.__wbg_wasmslip_new = function(arg0) {
|
|
2714
|
+
const ret = WasmSlip.__wrap(arg0);
|
|
2715
2715
|
return addHeapObject(ret);
|
|
2716
2716
|
};
|
|
2717
2717
|
|
|
2718
|
-
module.exports.
|
|
2719
|
-
const ret =
|
|
2718
|
+
module.exports.__wbg_wasmwallet_new = function(arg0) {
|
|
2719
|
+
const ret = WasmWallet.__wrap(arg0);
|
|
2720
2720
|
return addHeapObject(ret);
|
|
2721
2721
|
};
|
|
2722
2722
|
|
|
2723
|
-
module.exports.
|
|
2724
|
-
const ret =
|
|
2723
|
+
module.exports.__wbg_wasmblockchain_new = function(arg0) {
|
|
2724
|
+
const ret = WasmBlockchain.__wrap(arg0);
|
|
2725
2725
|
return addHeapObject(ret);
|
|
2726
2726
|
};
|
|
2727
2727
|
|
|
@@ -2756,7 +2756,7 @@ module.exports.__wbindgen_in = function(arg0, arg1) {
|
|
|
2756
2756
|
return ret;
|
|
2757
2757
|
};
|
|
2758
2758
|
|
|
2759
|
-
module.exports.
|
|
2759
|
+
module.exports.__wbg_flushdata_31d2c087e1642e7d = function(arg0, arg1) {
|
|
2760
2760
|
let deferred0_0;
|
|
2761
2761
|
let deferred0_1;
|
|
2762
2762
|
try {
|
|
@@ -2768,7 +2768,7 @@ module.exports.__wbg_flushdata_808d365e0b29c0a2 = function(arg0, arg1) {
|
|
|
2768
2768
|
}
|
|
2769
2769
|
};
|
|
2770
2770
|
|
|
2771
|
-
module.exports.
|
|
2771
|
+
module.exports.__wbg_readvalue_8d065620fad540d3 = function() { return handleError(function (arg0, arg1) {
|
|
2772
2772
|
let deferred0_0;
|
|
2773
2773
|
let deferred0_1;
|
|
2774
2774
|
try {
|
|
@@ -2781,15 +2781,15 @@ module.exports.__wbg_readvalue_477650491ff9e695 = function() { return handleErro
|
|
|
2781
2781
|
}
|
|
2782
2782
|
}, arguments) };
|
|
2783
2783
|
|
|
2784
|
-
module.exports.
|
|
2784
|
+
module.exports.__wbg_loadwallet_b2c7c0fa442cbf65 = function() {
|
|
2785
2785
|
MsgHandler.load_wallet();
|
|
2786
2786
|
};
|
|
2787
2787
|
|
|
2788
|
-
module.exports.
|
|
2788
|
+
module.exports.__wbg_savewallet_8ffd86ac6de7743c = function() {
|
|
2789
2789
|
MsgHandler.save_wallet();
|
|
2790
2790
|
};
|
|
2791
2791
|
|
|
2792
|
-
module.exports.
|
|
2792
|
+
module.exports.__wbg_writevalue_7d36c3a0011f6888 = function(arg0, arg1, arg2) {
|
|
2793
2793
|
let deferred0_0;
|
|
2794
2794
|
let deferred0_1;
|
|
2795
2795
|
try {
|
|
@@ -2801,7 +2801,7 @@ module.exports.__wbg_writevalue_a276627f5b0daa75 = function(arg0, arg1, arg2) {
|
|
|
2801
2801
|
}
|
|
2802
2802
|
};
|
|
2803
2803
|
|
|
2804
|
-
module.exports.
|
|
2804
|
+
module.exports.__wbg_appendvalue_9c7e734a5893fc55 = function(arg0, arg1, arg2) {
|
|
2805
2805
|
let deferred0_0;
|
|
2806
2806
|
let deferred0_1;
|
|
2807
2807
|
try {
|
|
@@ -2813,7 +2813,7 @@ module.exports.__wbg_appendvalue_a0ebb6a0493e9646 = function(arg0, arg1, arg2) {
|
|
|
2813
2813
|
}
|
|
2814
2814
|
};
|
|
2815
2815
|
|
|
2816
|
-
module.exports.
|
|
2816
|
+
module.exports.__wbg_removevalue_227bcc904f295bd0 = function() { return handleError(function (arg0, arg1) {
|
|
2817
2817
|
let deferred0_0;
|
|
2818
2818
|
let deferred0_1;
|
|
2819
2819
|
try {
|
|
@@ -2826,11 +2826,11 @@ module.exports.__wbg_removevalue_bc2f16573f079618 = function() { return handleEr
|
|
|
2826
2826
|
}
|
|
2827
2827
|
}, arguments) };
|
|
2828
2828
|
|
|
2829
|
-
module.exports.
|
|
2829
|
+
module.exports.__wbg_sendmessage_cd344e9a3340f289 = function(arg0, arg1) {
|
|
2830
2830
|
MsgHandler.send_message(takeObject(arg0), getObject(arg1));
|
|
2831
2831
|
};
|
|
2832
2832
|
|
|
2833
|
-
module.exports.
|
|
2833
|
+
module.exports.__wbg_connecttopeer_16e7986091989ecf = function() { return handleError(function (arg0, arg1, arg2) {
|
|
2834
2834
|
let deferred0_0;
|
|
2835
2835
|
let deferred0_1;
|
|
2836
2836
|
try {
|
|
@@ -2843,14 +2843,14 @@ module.exports.__wbg_connecttopeer_736987b1f0448891 = function() { return handle
|
|
|
2843
2843
|
}
|
|
2844
2844
|
}, arguments) };
|
|
2845
2845
|
|
|
2846
|
-
module.exports.
|
|
2846
|
+
module.exports.__wbg_getmyservices_b806cf3d9852d311 = function() {
|
|
2847
2847
|
const ret = MsgHandler.get_my_services();
|
|
2848
2848
|
_assertClass(ret, WasmPeerServiceList);
|
|
2849
2849
|
var ptr1 = ret.__destroy_into_raw();
|
|
2850
2850
|
return ptr1;
|
|
2851
2851
|
};
|
|
2852
2852
|
|
|
2853
|
-
module.exports.
|
|
2853
|
+
module.exports.__wbg_isexistingfile_c062164dc13b389d = function() { return handleError(function (arg0, arg1) {
|
|
2854
2854
|
let deferred0_0;
|
|
2855
2855
|
let deferred0_1;
|
|
2856
2856
|
try {
|
|
@@ -2863,33 +2863,33 @@ module.exports.__wbg_isexistingfile_1613c50ce134b84a = function() { return handl
|
|
|
2863
2863
|
}
|
|
2864
2864
|
}, arguments) };
|
|
2865
2865
|
|
|
2866
|
-
module.exports.
|
|
2866
|
+
module.exports.__wbg_processapicall_c2228580d601f805 = function(arg0, arg1, arg2) {
|
|
2867
2867
|
MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2868
2868
|
};
|
|
2869
2869
|
|
|
2870
|
-
module.exports.
|
|
2870
|
+
module.exports.__wbg_processapierror_0cb5fae74370713b = function(arg0, arg1, arg2) {
|
|
2871
2871
|
MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2872
2872
|
};
|
|
2873
2873
|
|
|
2874
|
-
module.exports.
|
|
2874
|
+
module.exports.__wbg_processapisuccess_20585df4ae6a3084 = function(arg0, arg1, arg2) {
|
|
2875
2875
|
MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2876
2876
|
};
|
|
2877
2877
|
|
|
2878
|
-
module.exports.
|
|
2878
|
+
module.exports.__wbg_sendmessagetoall_8d207c0a3aad8a72 = function(arg0, arg1) {
|
|
2879
2879
|
MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
|
|
2880
2880
|
};
|
|
2881
2881
|
|
|
2882
|
-
module.exports.
|
|
2882
|
+
module.exports.__wbg_disconnectfrompeer_038b8dc66715b3af = function() { return handleError(function (arg0) {
|
|
2883
2883
|
const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
|
|
2884
2884
|
return addHeapObject(ret);
|
|
2885
2885
|
}, arguments) };
|
|
2886
2886
|
|
|
2887
|
-
module.exports.
|
|
2887
|
+
module.exports.__wbg_loadblockfilelist_ddddc432935846b1 = function() { return handleError(function () {
|
|
2888
2888
|
const ret = MsgHandler.load_block_file_list();
|
|
2889
2889
|
return addHeapObject(ret);
|
|
2890
2890
|
}, arguments) };
|
|
2891
2891
|
|
|
2892
|
-
module.exports.
|
|
2892
|
+
module.exports.__wbg_sendinterfaceevent_b3ac2596012c70b8 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
2893
2893
|
let deferred0_0;
|
|
2894
2894
|
let deferred0_1;
|
|
2895
2895
|
let deferred1_0;
|
|
@@ -2906,7 +2906,7 @@ module.exports.__wbg_sendinterfaceevent_00bfe127965dc99e = function(arg0, arg1,
|
|
|
2906
2906
|
}
|
|
2907
2907
|
};
|
|
2908
2908
|
|
|
2909
|
-
module.exports.
|
|
2909
|
+
module.exports.__wbg_sendblocksuccess_aa77d9dead690b65 = function(arg0, arg1, arg2) {
|
|
2910
2910
|
let deferred0_0;
|
|
2911
2911
|
let deferred0_1;
|
|
2912
2912
|
try {
|
|
@@ -2918,11 +2918,11 @@ module.exports.__wbg_sendblocksuccess_63460f2639b4b899 = function(arg0, arg1, ar
|
|
|
2918
2918
|
}
|
|
2919
2919
|
};
|
|
2920
2920
|
|
|
2921
|
-
module.exports.
|
|
2921
|
+
module.exports.__wbg_sendwalletupdate_35c6568561a24666 = function() {
|
|
2922
2922
|
MsgHandler.send_wallet_update();
|
|
2923
2923
|
};
|
|
2924
2924
|
|
|
2925
|
-
module.exports.
|
|
2925
|
+
module.exports.__wbg_sendnewversionalert_0046b47daaccee8c = function(arg0, arg1, arg2) {
|
|
2926
2926
|
let deferred0_0;
|
|
2927
2927
|
let deferred0_1;
|
|
2928
2928
|
try {
|
|
@@ -2934,15 +2934,15 @@ module.exports.__wbg_sendnewversionalert_e45716b22ec97837 = function(arg0, arg1,
|
|
|
2934
2934
|
}
|
|
2935
2935
|
};
|
|
2936
2936
|
|
|
2937
|
-
module.exports.
|
|
2937
|
+
module.exports.__wbg_sendblockfetchstatusevent_ba790c923d8851df = function(arg0) {
|
|
2938
2938
|
MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
|
|
2939
2939
|
};
|
|
2940
2940
|
|
|
2941
|
-
module.exports.
|
|
2941
|
+
module.exports.__wbg_sendnewchaindetectedevent_ba661f60b624e9c7 = function() {
|
|
2942
2942
|
MsgHandler.send_new_chain_detected_event();
|
|
2943
2943
|
};
|
|
2944
2944
|
|
|
2945
|
-
module.exports.
|
|
2945
|
+
module.exports.__wbg_fetchblockfrompeer_d143d80f117d06f4 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2946
2946
|
let deferred0_0;
|
|
2947
2947
|
let deferred0_1;
|
|
2948
2948
|
try {
|
|
@@ -2955,7 +2955,7 @@ module.exports.__wbg_fetchblockfrompeer_5132eaf236da1718 = function() { return h
|
|
|
2955
2955
|
}
|
|
2956
2956
|
}, arguments) };
|
|
2957
2957
|
|
|
2958
|
-
module.exports.
|
|
2958
|
+
module.exports.__wbg_ensuredirectoryexists_617323f95264e9c1 = function() { return handleError(function (arg0, arg1) {
|
|
2959
2959
|
let deferred0_0;
|
|
2960
2960
|
let deferred0_1;
|
|
2961
2961
|
try {
|
|
@@ -3343,8 +3343,8 @@ module.exports.__wbindgen_debug_string = function(arg0, arg1) {
|
|
|
3343
3343
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
3344
3344
|
};
|
|
3345
3345
|
|
|
3346
|
-
module.exports.
|
|
3347
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3346
|
+
module.exports.__wbindgen_closure_wrapper1554 = function(arg0, arg1, arg2) {
|
|
3347
|
+
const ret = makeMutClosure(arg0, arg1, 572, __wbg_adapter_38);
|
|
3348
3348
|
return addHeapObject(ret);
|
|
3349
3349
|
};
|
|
3350
3350
|
|