saito-wasm 0.2.164 → 0.2.165
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Cargo.toml +1 -1
- package/package.json +1 -1
- package/pkg/node/index.d.ts +145 -145
- package/pkg/node/index.js +287 -287
- package/pkg/node/index_bg.wasm +0 -0
- package/pkg/node/package.json +3 -3
- package/pkg/web/index.d.ts +145 -145
- package/pkg/web/index.js +283 -283
- package/pkg/web/index_bg.wasm +0 -0
- package/pkg/web/package.json +1 -1
- /package/pkg/node/snippets/{saito-wasm-21975b2e7dbeb5a0 → saito-wasm-9c691657239d0ce9}/js/msg_handler.js +0 -0
- /package/pkg/web/snippets/{saito-wasm-21975b2e7dbeb5a0 → saito-wasm-9c691657239d0ce9}/js/msg_handler.js +0 -0
package/pkg/node/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
let imports = {};
|
|
2
2
|
imports['__wbindgen_placeholder__'] = module.exports;
|
|
3
3
|
let wasm;
|
|
4
|
-
const { MsgHandler } = require(String.raw`./snippets/saito-wasm-
|
|
4
|
+
const { MsgHandler } = require(String.raw`./snippets/saito-wasm-9c691657239d0ce9/js/msg_handler.js`);
|
|
5
5
|
const { TextDecoder, TextEncoder } = require(`util`);
|
|
6
6
|
|
|
7
7
|
const heap = new Array(128).fill(undefined);
|
|
@@ -243,209 +243,209 @@ function addBorrowedObject(obj) {
|
|
|
243
243
|
return stack_pointer;
|
|
244
244
|
}
|
|
245
245
|
/**
|
|
246
|
-
* @
|
|
247
|
-
* @returns {string}
|
|
246
|
+
* @returns {Promise<string>}
|
|
248
247
|
*/
|
|
249
|
-
module.exports.
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
wasm.generate_public_key(retptr, addHeapObject(private_key));
|
|
253
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
254
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
255
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
256
|
-
if (r2) {
|
|
257
|
-
throw takeObject(r1);
|
|
258
|
-
}
|
|
259
|
-
return takeObject(r0);
|
|
260
|
-
} finally {
|
|
261
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
262
|
-
}
|
|
248
|
+
module.exports.get_latest_block_hash = function() {
|
|
249
|
+
const ret = wasm.get_latest_block_hash();
|
|
250
|
+
return takeObject(ret);
|
|
263
251
|
};
|
|
264
252
|
|
|
265
253
|
/**
|
|
266
|
-
* @
|
|
267
|
-
* @returns {Promise<void>}
|
|
254
|
+
* @returns {Promise<WasmWallet>}
|
|
268
255
|
*/
|
|
269
|
-
module.exports.
|
|
270
|
-
const ret = wasm.
|
|
256
|
+
module.exports.get_wallet = function() {
|
|
257
|
+
const ret = wasm.get_wallet();
|
|
271
258
|
return takeObject(ret);
|
|
272
259
|
};
|
|
273
260
|
|
|
274
261
|
/**
|
|
275
|
-
* @param {string}
|
|
276
|
-
* @
|
|
262
|
+
* @param {string} nft_id_hex
|
|
263
|
+
* @param {Uint8Array} tx_msg
|
|
264
|
+
* @returns {Promise<WasmTransaction>}
|
|
277
265
|
*/
|
|
278
|
-
module.exports.
|
|
279
|
-
const
|
|
266
|
+
module.exports.create_merge_bound_transaction = function(nft_id_hex, tx_msg) {
|
|
267
|
+
const ptr0 = passStringToWasm0(nft_id_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
268
|
+
const len0 = WASM_VECTOR_LEN;
|
|
269
|
+
const ret = wasm.create_merge_bound_transaction(ptr0, len0, addHeapObject(tx_msg));
|
|
280
270
|
return takeObject(ret);
|
|
281
271
|
};
|
|
282
272
|
|
|
283
273
|
/**
|
|
284
|
-
* @
|
|
274
|
+
* @param {bigint} num
|
|
275
|
+
* @param {bigint} deposit
|
|
276
|
+
* @param {Uint8Array} tx_msg
|
|
277
|
+
* @param {bigint} fee
|
|
278
|
+
* @param {string} recipient_public_key
|
|
279
|
+
* @param {string} nft_type
|
|
280
|
+
* @returns {Promise<WasmTransaction>}
|
|
285
281
|
*/
|
|
286
|
-
module.exports.
|
|
287
|
-
const ret = wasm.
|
|
282
|
+
module.exports.create_bound_transaction = function(num, deposit, tx_msg, fee, recipient_public_key, nft_type) {
|
|
283
|
+
const ret = wasm.create_bound_transaction(num, deposit, addHeapObject(tx_msg), fee, addHeapObject(recipient_public_key), addHeapObject(nft_type));
|
|
288
284
|
return takeObject(ret);
|
|
289
285
|
};
|
|
290
286
|
|
|
291
287
|
/**
|
|
292
|
-
* @param {
|
|
293
|
-
* @returns {
|
|
288
|
+
* @param {string} key
|
|
289
|
+
* @returns {boolean}
|
|
294
290
|
*/
|
|
295
|
-
module.exports.
|
|
296
|
-
const ret = wasm.
|
|
297
|
-
return
|
|
291
|
+
module.exports.is_valid_public_key = function(key) {
|
|
292
|
+
const ret = wasm.is_valid_public_key(addHeapObject(key));
|
|
293
|
+
return ret !== 0;
|
|
298
294
|
};
|
|
299
295
|
|
|
300
296
|
/**
|
|
301
|
-
* @returns {Promise<
|
|
297
|
+
* @returns {Promise<string>}
|
|
302
298
|
*/
|
|
303
|
-
module.exports.
|
|
304
|
-
const ret = wasm.
|
|
299
|
+
module.exports.get_congestion_stats = function() {
|
|
300
|
+
const ret = wasm.get_congestion_stats();
|
|
305
301
|
return takeObject(ret);
|
|
306
302
|
};
|
|
307
303
|
|
|
308
304
|
/**
|
|
309
|
-
* @param {
|
|
310
|
-
* @param {
|
|
311
|
-
* @param {bigint}
|
|
312
|
-
* @
|
|
305
|
+
* @param {Array<any>} public_keys
|
|
306
|
+
* @param {BigUint64Array} amounts
|
|
307
|
+
* @param {bigint} fee
|
|
308
|
+
* @param {boolean} _force_merge
|
|
309
|
+
* @returns {Promise<WasmTransaction>}
|
|
313
310
|
*/
|
|
314
|
-
module.exports.
|
|
315
|
-
const ret = wasm.
|
|
311
|
+
module.exports.create_transaction_with_multiple_payments = function(public_keys, amounts, fee, _force_merge) {
|
|
312
|
+
const ret = wasm.create_transaction_with_multiple_payments(addHeapObject(public_keys), addHeapObject(amounts), fee, _force_merge);
|
|
316
313
|
return takeObject(ret);
|
|
317
314
|
};
|
|
318
315
|
|
|
319
316
|
/**
|
|
320
|
-
* @param {bigint} peer_index
|
|
321
|
-
* @param {string} public_key
|
|
322
317
|
* @returns {Promise<void>}
|
|
323
318
|
*/
|
|
324
|
-
module.exports.
|
|
325
|
-
const ret = wasm.
|
|
319
|
+
module.exports.start_from_received_ghost_chain = function() {
|
|
320
|
+
const ret = wasm.start_from_received_ghost_chain();
|
|
326
321
|
return takeObject(ret);
|
|
327
322
|
};
|
|
328
323
|
|
|
329
324
|
/**
|
|
330
|
-
* @
|
|
331
|
-
* @param {bigint} block_id
|
|
332
|
-
* @param {bigint} peer_index
|
|
333
|
-
* @returns {Promise<void>}
|
|
325
|
+
* @returns {Promise<WasmBlockchain>}
|
|
334
326
|
*/
|
|
335
|
-
module.exports.
|
|
336
|
-
const ret = wasm.
|
|
327
|
+
module.exports.get_blockchain = function() {
|
|
328
|
+
const ret = wasm.get_blockchain();
|
|
337
329
|
return takeObject(ret);
|
|
338
330
|
};
|
|
339
331
|
|
|
340
332
|
/**
|
|
341
|
-
* @param {
|
|
342
|
-
* @
|
|
343
|
-
* @param {number} log_level_num
|
|
344
|
-
* @param {bigint} hasten_multiplier
|
|
345
|
-
* @param {boolean} delete_old_blocks
|
|
346
|
-
* @returns {Promise<any>}
|
|
333
|
+
* @param {Array<any>} keys
|
|
334
|
+
* @returns {Promise<WasmBalanceSnapshot>}
|
|
347
335
|
*/
|
|
348
|
-
module.exports.
|
|
349
|
-
const ret = wasm.
|
|
336
|
+
module.exports.get_balance_snapshot = function(keys) {
|
|
337
|
+
const ret = wasm.get_balance_snapshot(addHeapObject(keys));
|
|
350
338
|
return takeObject(ret);
|
|
351
339
|
};
|
|
352
340
|
|
|
353
341
|
/**
|
|
354
|
-
* @
|
|
355
|
-
* @returns {boolean}
|
|
342
|
+
* @returns {Promise<any>}
|
|
356
343
|
*/
|
|
357
|
-
module.exports.
|
|
358
|
-
const ret = wasm.
|
|
359
|
-
return ret
|
|
344
|
+
module.exports.get_confirmations = function() {
|
|
345
|
+
const ret = wasm.get_confirmations();
|
|
346
|
+
return takeObject(ret);
|
|
360
347
|
};
|
|
361
348
|
|
|
362
349
|
/**
|
|
363
350
|
* @returns {Promise<Array<any>>}
|
|
364
351
|
*/
|
|
365
|
-
module.exports.
|
|
366
|
-
const ret = wasm.
|
|
352
|
+
module.exports.get_peers = function() {
|
|
353
|
+
const ret = wasm.get_peers();
|
|
367
354
|
return takeObject(ret);
|
|
368
355
|
};
|
|
369
356
|
|
|
370
357
|
/**
|
|
371
|
-
* @param {
|
|
372
|
-
* @param {
|
|
373
|
-
* @returns {Promise<
|
|
358
|
+
* @param {bigint} peer_index
|
|
359
|
+
* @param {string} ip
|
|
360
|
+
* @returns {Promise<void>}
|
|
374
361
|
*/
|
|
375
|
-
module.exports.
|
|
376
|
-
const
|
|
377
|
-
const len0 = WASM_VECTOR_LEN;
|
|
378
|
-
const ret = wasm.create_merge_bound_transaction(ptr0, len0, addHeapObject(tx_msg));
|
|
362
|
+
module.exports.process_new_peer = function(peer_index, ip) {
|
|
363
|
+
const ret = wasm.process_new_peer(peer_index, addHeapObject(ip));
|
|
379
364
|
return takeObject(ret);
|
|
380
365
|
};
|
|
381
366
|
|
|
382
367
|
/**
|
|
383
|
-
* @
|
|
368
|
+
* @param {Uint8Array} buffer
|
|
369
|
+
* @returns {string}
|
|
384
370
|
*/
|
|
385
|
-
module.exports.
|
|
386
|
-
const ret = wasm.
|
|
371
|
+
module.exports.hash = function(buffer) {
|
|
372
|
+
const ret = wasm.hash(addHeapObject(buffer));
|
|
387
373
|
return takeObject(ret);
|
|
388
374
|
};
|
|
389
375
|
|
|
390
376
|
/**
|
|
391
|
-
* @param {
|
|
392
|
-
* @
|
|
377
|
+
* @param {Uint8Array} buffer
|
|
378
|
+
* @param {Uint8Array} hash
|
|
379
|
+
* @param {bigint} block_id
|
|
380
|
+
* @param {bigint} peer_index
|
|
381
|
+
* @returns {Promise<void>}
|
|
393
382
|
*/
|
|
394
|
-
module.exports.
|
|
395
|
-
const ret = wasm.
|
|
383
|
+
module.exports.process_fetched_block = function(buffer, hash, block_id, peer_index) {
|
|
384
|
+
const ret = wasm.process_fetched_block(addHeapObject(buffer), addHeapObject(hash), block_id, peer_index);
|
|
396
385
|
return takeObject(ret);
|
|
397
386
|
};
|
|
398
387
|
|
|
399
388
|
/**
|
|
400
|
-
* @param {bigint}
|
|
389
|
+
* @param {bigint} peer_index
|
|
401
390
|
* @returns {Promise<void>}
|
|
402
391
|
*/
|
|
403
|
-
module.exports.
|
|
404
|
-
const ret = wasm.
|
|
392
|
+
module.exports.process_peer_disconnection = function(peer_index) {
|
|
393
|
+
const ret = wasm.process_peer_disconnection(peer_index);
|
|
394
|
+
return takeObject(ret);
|
|
395
|
+
};
|
|
396
|
+
|
|
397
|
+
/**
|
|
398
|
+
* @param {bigint} peer_index
|
|
399
|
+
* @returns {Promise<WasmPeer | undefined>}
|
|
400
|
+
*/
|
|
401
|
+
module.exports.get_peer = function(peer_index) {
|
|
402
|
+
const ret = wasm.get_peer(peer_index);
|
|
405
403
|
return takeObject(ret);
|
|
406
404
|
};
|
|
407
405
|
|
|
408
406
|
/**
|
|
409
407
|
* @param {Uint8Array} buffer
|
|
410
|
-
* @param {
|
|
411
|
-
* @param {bigint} block_id
|
|
408
|
+
* @param {number} msg_index
|
|
412
409
|
* @param {bigint} peer_index
|
|
413
410
|
* @returns {Promise<void>}
|
|
414
411
|
*/
|
|
415
|
-
module.exports.
|
|
416
|
-
const ret = wasm.
|
|
412
|
+
module.exports.send_api_error = function(buffer, msg_index, peer_index) {
|
|
413
|
+
const ret = wasm.send_api_error(addHeapObject(buffer), msg_index, peer_index);
|
|
417
414
|
return takeObject(ret);
|
|
418
415
|
};
|
|
419
416
|
|
|
420
417
|
/**
|
|
421
|
-
* @returns {Promise<
|
|
418
|
+
* @returns {Promise<void>}
|
|
422
419
|
*/
|
|
423
|
-
module.exports.
|
|
424
|
-
const ret = wasm.
|
|
420
|
+
module.exports.disable_producing_blocks_by_timer = function() {
|
|
421
|
+
const ret = wasm.disable_producing_blocks_by_timer();
|
|
425
422
|
return takeObject(ret);
|
|
426
423
|
};
|
|
427
424
|
|
|
428
425
|
/**
|
|
429
|
-
* @
|
|
426
|
+
* @param {bigint} duration_in_ms
|
|
427
|
+
* @returns {Promise<void>}
|
|
430
428
|
*/
|
|
431
|
-
module.exports.
|
|
432
|
-
const ret = wasm.
|
|
429
|
+
module.exports.process_timer_event = function(duration_in_ms) {
|
|
430
|
+
const ret = wasm.process_timer_event(duration_in_ms);
|
|
433
431
|
return takeObject(ret);
|
|
434
432
|
};
|
|
435
433
|
|
|
436
434
|
/**
|
|
437
|
-
* @
|
|
435
|
+
* @param {string} block_hash
|
|
436
|
+
* @returns {Promise<WasmBlock>}
|
|
438
437
|
*/
|
|
439
|
-
module.exports.
|
|
440
|
-
const ret = wasm.
|
|
438
|
+
module.exports.get_block = function(block_hash) {
|
|
439
|
+
const ret = wasm.get_block(addHeapObject(block_hash));
|
|
441
440
|
return takeObject(ret);
|
|
442
441
|
};
|
|
443
442
|
|
|
444
443
|
/**
|
|
445
|
-
* @
|
|
444
|
+
* @param {bigint} threshold
|
|
445
|
+
* @returns {Promise<void>}
|
|
446
446
|
*/
|
|
447
|
-
module.exports.
|
|
448
|
-
const ret = wasm.
|
|
447
|
+
module.exports.write_issuance_file = function(threshold) {
|
|
448
|
+
const ret = wasm.write_issuance_file(threshold);
|
|
449
449
|
return takeObject(ret);
|
|
450
450
|
};
|
|
451
451
|
|
|
@@ -455,114 +455,110 @@ module.exports.generate_private_key = function() {
|
|
|
455
455
|
* @param {bigint} peer_index
|
|
456
456
|
* @returns {Promise<void>}
|
|
457
457
|
*/
|
|
458
|
-
module.exports.
|
|
459
|
-
const ret = wasm.
|
|
458
|
+
module.exports.send_api_call = function(buffer, msg_index, peer_index) {
|
|
459
|
+
const ret = wasm.send_api_call(addHeapObject(buffer), msg_index, peer_index);
|
|
460
460
|
return takeObject(ret);
|
|
461
461
|
};
|
|
462
462
|
|
|
463
463
|
/**
|
|
464
|
-
* @
|
|
465
|
-
* @param {string} slip2_utxo_key
|
|
466
|
-
* @param {string} slip3_utxo_key
|
|
467
|
-
* @param {number} left_count
|
|
468
|
-
* @param {number} right_count
|
|
469
|
-
* @param {Uint8Array} tx_msg
|
|
470
|
-
* @returns {Promise<WasmTransaction>}
|
|
464
|
+
* @returns {Promise<string>}
|
|
471
465
|
*/
|
|
472
|
-
module.exports.
|
|
473
|
-
const ret = wasm.
|
|
466
|
+
module.exports.get_peer_stats = function() {
|
|
467
|
+
const ret = wasm.get_peer_stats();
|
|
474
468
|
return takeObject(ret);
|
|
475
469
|
};
|
|
476
470
|
|
|
477
471
|
/**
|
|
478
|
-
* @
|
|
479
|
-
* @returns {Promise<void>}
|
|
472
|
+
* @returns {Promise<Array<any>>}
|
|
480
473
|
*/
|
|
481
|
-
module.exports.
|
|
482
|
-
|
|
483
|
-
var ptr0 = snapshot.__destroy_into_raw();
|
|
484
|
-
const ret = wasm.update_from_balance_snapshot(ptr0);
|
|
474
|
+
module.exports.get_mempool_txs = function() {
|
|
475
|
+
const ret = wasm.get_mempool_txs();
|
|
485
476
|
return takeObject(ret);
|
|
486
477
|
};
|
|
487
478
|
|
|
488
479
|
/**
|
|
489
|
-
* @param {
|
|
490
|
-
* @param {
|
|
491
|
-
* @param {
|
|
492
|
-
* @param {
|
|
493
|
-
* @param {string} recipient_public_key
|
|
494
|
-
* @param {Uint8Array} tx_msg
|
|
480
|
+
* @param {string} public_key
|
|
481
|
+
* @param {bigint} amount
|
|
482
|
+
* @param {bigint} fee
|
|
483
|
+
* @param {boolean} force_merge
|
|
495
484
|
* @returns {Promise<WasmTransaction>}
|
|
496
485
|
*/
|
|
497
|
-
module.exports.
|
|
498
|
-
const ret = wasm.
|
|
486
|
+
module.exports.create_transaction = function(public_key, amount, fee, force_merge) {
|
|
487
|
+
const ret = wasm.create_transaction(addHeapObject(public_key), amount, fee, force_merge);
|
|
499
488
|
return takeObject(ret);
|
|
500
489
|
};
|
|
501
490
|
|
|
502
491
|
/**
|
|
503
|
-
* @
|
|
504
|
-
* @returns {Promise<WasmBlock>}
|
|
492
|
+
* @returns {Promise<boolean>}
|
|
505
493
|
*/
|
|
506
|
-
module.exports.
|
|
507
|
-
const ret = wasm.
|
|
494
|
+
module.exports.produce_block_without_gt = function() {
|
|
495
|
+
const ret = wasm.produce_block_without_gt();
|
|
508
496
|
return takeObject(ret);
|
|
509
497
|
};
|
|
510
498
|
|
|
511
499
|
/**
|
|
512
|
-
* @
|
|
500
|
+
* @param {Uint8Array} buffer
|
|
501
|
+
* @param {string} private_key
|
|
502
|
+
* @returns {string}
|
|
503
|
+
*/
|
|
504
|
+
module.exports.sign_buffer = function(buffer, private_key) {
|
|
505
|
+
try {
|
|
506
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
507
|
+
wasm.sign_buffer(retptr, addHeapObject(buffer), addHeapObject(private_key));
|
|
508
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
509
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
510
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
511
|
+
if (r2) {
|
|
512
|
+
throw takeObject(r1);
|
|
513
|
+
}
|
|
514
|
+
return takeObject(r0);
|
|
515
|
+
} finally {
|
|
516
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
517
|
+
}
|
|
518
|
+
};
|
|
519
|
+
|
|
520
|
+
/**
|
|
521
|
+
* @returns {string}
|
|
513
522
|
*/
|
|
514
|
-
module.exports.
|
|
515
|
-
const ret = wasm.
|
|
523
|
+
module.exports.generate_private_key = function() {
|
|
524
|
+
const ret = wasm.generate_private_key();
|
|
516
525
|
return takeObject(ret);
|
|
517
526
|
};
|
|
518
527
|
|
|
519
528
|
/**
|
|
529
|
+
* @param {Uint8Array} hash
|
|
530
|
+
* @param {bigint} block_id
|
|
520
531
|
* @param {bigint} peer_index
|
|
521
532
|
* @returns {Promise<void>}
|
|
522
533
|
*/
|
|
523
|
-
module.exports.
|
|
524
|
-
const ret = wasm.
|
|
525
|
-
return takeObject(ret);
|
|
526
|
-
};
|
|
527
|
-
|
|
528
|
-
/**
|
|
529
|
-
* @param {Uint8Array} buffer
|
|
530
|
-
* @returns {string}
|
|
531
|
-
*/
|
|
532
|
-
module.exports.hash = function(buffer) {
|
|
533
|
-
const ret = wasm.hash(addHeapObject(buffer));
|
|
534
|
+
module.exports.process_failed_block_fetch = function(hash, block_id, peer_index) {
|
|
535
|
+
const ret = wasm.process_failed_block_fetch(addHeapObject(hash), block_id, peer_index);
|
|
534
536
|
return takeObject(ret);
|
|
535
537
|
};
|
|
536
538
|
|
|
537
539
|
/**
|
|
538
|
-
* @param {
|
|
539
|
-
* @
|
|
540
|
-
* @param {bigint} fee
|
|
541
|
-
* @param {boolean} _force_merge
|
|
542
|
-
* @returns {Promise<WasmTransaction>}
|
|
540
|
+
* @param {bigint} peer_index
|
|
541
|
+
* @returns {Promise<void>}
|
|
543
542
|
*/
|
|
544
|
-
module.exports.
|
|
545
|
-
const ret = wasm.
|
|
543
|
+
module.exports.remove_stun_peer = function(peer_index) {
|
|
544
|
+
const ret = wasm.remove_stun_peer(peer_index);
|
|
546
545
|
return takeObject(ret);
|
|
547
546
|
};
|
|
548
547
|
|
|
549
548
|
/**
|
|
550
|
-
* @
|
|
551
|
-
* @returns {Promise<void>}
|
|
549
|
+
* @returns {Promise<string>}
|
|
552
550
|
*/
|
|
553
|
-
module.exports.
|
|
554
|
-
const ret = wasm.
|
|
551
|
+
module.exports.get_stats = function() {
|
|
552
|
+
const ret = wasm.get_stats();
|
|
555
553
|
return takeObject(ret);
|
|
556
554
|
};
|
|
557
555
|
|
|
558
556
|
/**
|
|
559
|
-
* @param {
|
|
560
|
-
* @
|
|
561
|
-
* @param {number} patch
|
|
562
|
-
* @returns {Promise<void>}
|
|
557
|
+
* @param {string} public_key
|
|
558
|
+
* @returns {Promise<Array<any>>}
|
|
563
559
|
*/
|
|
564
|
-
module.exports.
|
|
565
|
-
const ret = wasm.
|
|
560
|
+
module.exports.get_account_slips = function(public_key) {
|
|
561
|
+
const ret = wasm.get_account_slips(addHeapObject(public_key));
|
|
566
562
|
return takeObject(ret);
|
|
567
563
|
};
|
|
568
564
|
|
|
@@ -578,155 +574,159 @@ module.exports.send_api_success = function(buffer, msg_index, peer_index) {
|
|
|
578
574
|
};
|
|
579
575
|
|
|
580
576
|
/**
|
|
581
|
-
* @param {
|
|
582
|
-
* @param {string}
|
|
583
|
-
* @
|
|
577
|
+
* @param {string} config_json
|
|
578
|
+
* @param {string} private_key
|
|
579
|
+
* @param {number} log_level_num
|
|
580
|
+
* @param {bigint} hasten_multiplier
|
|
581
|
+
* @param {boolean} delete_old_blocks
|
|
582
|
+
* @returns {Promise<any>}
|
|
584
583
|
*/
|
|
585
|
-
module.exports.
|
|
586
|
-
const ret = wasm.
|
|
584
|
+
module.exports.initialize = function(config_json, private_key, log_level_num, hasten_multiplier, delete_old_blocks) {
|
|
585
|
+
const ret = wasm.initialize(addHeapObject(config_json), addHeapObject(private_key), log_level_num, hasten_multiplier, delete_old_blocks);
|
|
587
586
|
return takeObject(ret);
|
|
588
587
|
};
|
|
589
588
|
|
|
590
589
|
/**
|
|
591
|
-
* @param {
|
|
592
|
-
* @
|
|
593
|
-
* @param {string} public_key
|
|
594
|
-
* @returns {boolean}
|
|
595
|
-
*/
|
|
596
|
-
module.exports.verify_signature = function(buffer, signature, public_key) {
|
|
597
|
-
const ret = wasm.verify_signature(addHeapObject(buffer), addHeapObject(signature), addHeapObject(public_key));
|
|
598
|
-
return ret !== 0;
|
|
599
|
-
};
|
|
600
|
-
|
|
601
|
-
/**
|
|
602
|
-
* @returns {Promise<Array<any>>}
|
|
590
|
+
* @param {string} private_key
|
|
591
|
+
* @returns {string}
|
|
603
592
|
*/
|
|
604
|
-
module.exports.
|
|
605
|
-
|
|
606
|
-
|
|
593
|
+
module.exports.generate_public_key = function(private_key) {
|
|
594
|
+
try {
|
|
595
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
596
|
+
wasm.generate_public_key(retptr, addHeapObject(private_key));
|
|
597
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
598
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
599
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
600
|
+
if (r2) {
|
|
601
|
+
throw takeObject(r1);
|
|
602
|
+
}
|
|
603
|
+
return takeObject(r0);
|
|
604
|
+
} finally {
|
|
605
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
606
|
+
}
|
|
607
607
|
};
|
|
608
608
|
|
|
609
609
|
/**
|
|
610
|
-
* @
|
|
611
|
-
* @param {bigint} peer_index
|
|
612
|
-
* @returns {Promise<void>}
|
|
610
|
+
* @returns {Promise<bigint>}
|
|
613
611
|
*/
|
|
614
|
-
module.exports.
|
|
615
|
-
const ret = wasm.
|
|
612
|
+
module.exports.get_next_peer_index = function() {
|
|
613
|
+
const ret = wasm.get_next_peer_index();
|
|
616
614
|
return takeObject(ret);
|
|
617
615
|
};
|
|
618
616
|
|
|
619
617
|
/**
|
|
618
|
+
* @param {WasmTransaction} tx
|
|
620
619
|
* @returns {Promise<void>}
|
|
621
620
|
*/
|
|
622
|
-
module.exports.
|
|
623
|
-
|
|
621
|
+
module.exports.propagate_transaction = function(tx) {
|
|
622
|
+
_assertClass(tx, WasmTransaction);
|
|
623
|
+
const ret = wasm.propagate_transaction(tx.__wbg_ptr);
|
|
624
624
|
return takeObject(ret);
|
|
625
625
|
};
|
|
626
626
|
|
|
627
627
|
/**
|
|
628
|
+
* @param {Uint8Array} buffer
|
|
629
|
+
* @param {string} signature
|
|
628
630
|
* @param {string} public_key
|
|
629
|
-
* @
|
|
630
|
-
* @param {bigint} fee
|
|
631
|
-
* @param {boolean} force_merge
|
|
632
|
-
* @returns {Promise<WasmTransaction>}
|
|
631
|
+
* @returns {boolean}
|
|
633
632
|
*/
|
|
634
|
-
module.exports.
|
|
635
|
-
const ret = wasm.
|
|
636
|
-
return
|
|
633
|
+
module.exports.verify_signature = function(buffer, signature, public_key) {
|
|
634
|
+
const ret = wasm.verify_signature(addHeapObject(buffer), addHeapObject(signature), addHeapObject(public_key));
|
|
635
|
+
return ret !== 0;
|
|
637
636
|
};
|
|
638
637
|
|
|
639
638
|
/**
|
|
640
|
-
* @
|
|
639
|
+
* @param {number} major
|
|
640
|
+
* @param {number} minor
|
|
641
|
+
* @param {number} patch
|
|
642
|
+
* @returns {Promise<void>}
|
|
641
643
|
*/
|
|
642
|
-
module.exports.
|
|
643
|
-
const ret = wasm.
|
|
644
|
+
module.exports.set_wallet_version = function(major, minor, patch) {
|
|
645
|
+
const ret = wasm.set_wallet_version(major, minor, patch);
|
|
644
646
|
return takeObject(ret);
|
|
645
647
|
};
|
|
646
648
|
|
|
647
649
|
/**
|
|
648
|
-
* @param {
|
|
649
|
-
* @param {string}
|
|
650
|
-
* @returns {
|
|
650
|
+
* @param {bigint} peer_index
|
|
651
|
+
* @param {string} public_key
|
|
652
|
+
* @returns {Promise<void>}
|
|
651
653
|
*/
|
|
652
|
-
module.exports.
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
wasm.sign_buffer(retptr, addHeapObject(buffer), addHeapObject(private_key));
|
|
656
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
657
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
658
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
659
|
-
if (r2) {
|
|
660
|
-
throw takeObject(r1);
|
|
661
|
-
}
|
|
662
|
-
return takeObject(r0);
|
|
663
|
-
} finally {
|
|
664
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
665
|
-
}
|
|
654
|
+
module.exports.process_stun_peer = function(peer_index, public_key) {
|
|
655
|
+
const ret = wasm.process_stun_peer(peer_index, addHeapObject(public_key));
|
|
656
|
+
return takeObject(ret);
|
|
666
657
|
};
|
|
667
658
|
|
|
668
659
|
/**
|
|
669
|
-
* @returns {Promise<
|
|
660
|
+
* @returns {Promise<boolean>}
|
|
670
661
|
*/
|
|
671
|
-
module.exports.
|
|
672
|
-
const ret = wasm.
|
|
662
|
+
module.exports.produce_block_with_gt = function() {
|
|
663
|
+
const ret = wasm.produce_block_with_gt();
|
|
673
664
|
return takeObject(ret);
|
|
674
665
|
};
|
|
675
666
|
|
|
676
667
|
/**
|
|
677
|
-
* @param {bigint}
|
|
678
|
-
* @param {
|
|
679
|
-
* @param {
|
|
680
|
-
* @param {
|
|
668
|
+
* @param {bigint} amt
|
|
669
|
+
* @param {string} slip1_utxo_key
|
|
670
|
+
* @param {string} slip2_utxo_key
|
|
671
|
+
* @param {string} slip3_utxo_key
|
|
681
672
|
* @param {string} recipient_public_key
|
|
682
|
-
* @param {
|
|
673
|
+
* @param {Uint8Array} tx_msg
|
|
683
674
|
* @returns {Promise<WasmTransaction>}
|
|
684
675
|
*/
|
|
685
|
-
module.exports.
|
|
686
|
-
const ret = wasm.
|
|
676
|
+
module.exports.create_send_bound_transaction = function(amt, slip1_utxo_key, slip2_utxo_key, slip3_utxo_key, recipient_public_key, tx_msg) {
|
|
677
|
+
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));
|
|
687
678
|
return takeObject(ret);
|
|
688
679
|
};
|
|
689
680
|
|
|
690
681
|
/**
|
|
691
|
-
* @
|
|
682
|
+
* @param {string} slip1_utxo_key
|
|
683
|
+
* @param {string} slip2_utxo_key
|
|
684
|
+
* @param {string} slip3_utxo_key
|
|
685
|
+
* @param {number} left_count
|
|
686
|
+
* @param {number} right_count
|
|
687
|
+
* @param {Uint8Array} tx_msg
|
|
688
|
+
* @returns {Promise<WasmTransaction>}
|
|
692
689
|
*/
|
|
693
|
-
module.exports.
|
|
694
|
-
const ret = wasm.
|
|
690
|
+
module.exports.create_split_bound_transaction = function(slip1_utxo_key, slip2_utxo_key, slip3_utxo_key, left_count, right_count, tx_msg) {
|
|
691
|
+
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));
|
|
695
692
|
return takeObject(ret);
|
|
696
693
|
};
|
|
697
694
|
|
|
698
695
|
/**
|
|
699
|
-
* @param {
|
|
696
|
+
* @param {Uint8Array} buffer
|
|
697
|
+
* @param {bigint} peer_index
|
|
700
698
|
* @returns {Promise<void>}
|
|
701
699
|
*/
|
|
702
|
-
module.exports.
|
|
703
|
-
|
|
704
|
-
const ret = wasm.propagate_transaction(tx.__wbg_ptr);
|
|
700
|
+
module.exports.process_msg_buffer_from_peer = function(buffer, peer_index) {
|
|
701
|
+
const ret = wasm.process_msg_buffer_from_peer(addHeapObject(buffer), peer_index);
|
|
705
702
|
return takeObject(ret);
|
|
706
703
|
};
|
|
707
704
|
|
|
708
705
|
/**
|
|
709
|
-
* @returns {Promise<
|
|
706
|
+
* @returns {Promise<Array<any>>}
|
|
710
707
|
*/
|
|
711
|
-
module.exports.
|
|
712
|
-
const ret = wasm.
|
|
708
|
+
module.exports.get_nft_list = function() {
|
|
709
|
+
const ret = wasm.get_nft_list();
|
|
713
710
|
return takeObject(ret);
|
|
714
711
|
};
|
|
715
712
|
|
|
716
713
|
/**
|
|
717
|
-
* @param {
|
|
714
|
+
* @param {WasmBalanceSnapshot} snapshot
|
|
718
715
|
* @returns {Promise<void>}
|
|
719
716
|
*/
|
|
720
|
-
module.exports.
|
|
721
|
-
|
|
717
|
+
module.exports.update_from_balance_snapshot = function(snapshot) {
|
|
718
|
+
_assertClass(snapshot, WasmBalanceSnapshot);
|
|
719
|
+
var ptr0 = snapshot.__destroy_into_raw();
|
|
720
|
+
const ret = wasm.update_from_balance_snapshot(ptr0);
|
|
722
721
|
return takeObject(ret);
|
|
723
722
|
};
|
|
724
723
|
|
|
725
724
|
/**
|
|
725
|
+
* @param {bigint} current_time
|
|
726
726
|
* @returns {Promise<void>}
|
|
727
727
|
*/
|
|
728
|
-
module.exports.
|
|
729
|
-
const ret = wasm.
|
|
728
|
+
module.exports.process_stat_interval = function(current_time) {
|
|
729
|
+
const ret = wasm.process_stat_interval(current_time);
|
|
730
730
|
return takeObject(ret);
|
|
731
731
|
};
|
|
732
732
|
|
|
@@ -2650,28 +2650,18 @@ module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
|
2650
2650
|
return addHeapObject(ret);
|
|
2651
2651
|
};
|
|
2652
2652
|
|
|
2653
|
-
module.exports.__wbg_wasmtransaction_new = function(arg0) {
|
|
2654
|
-
const ret = WasmTransaction.__wrap(arg0);
|
|
2655
|
-
return addHeapObject(ret);
|
|
2656
|
-
};
|
|
2657
|
-
|
|
2658
|
-
module.exports.__wbg_wasmpeer_new = function(arg0) {
|
|
2659
|
-
const ret = WasmPeer.__wrap(arg0);
|
|
2660
|
-
return addHeapObject(ret);
|
|
2661
|
-
};
|
|
2662
|
-
|
|
2663
2653
|
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
2664
2654
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
2665
2655
|
return addHeapObject(ret);
|
|
2666
2656
|
};
|
|
2667
2657
|
|
|
2668
|
-
module.exports.
|
|
2669
|
-
const ret =
|
|
2658
|
+
module.exports.__wbg_wasmwalletslip_new = function(arg0) {
|
|
2659
|
+
const ret = WasmWalletSlip.__wrap(arg0);
|
|
2670
2660
|
return addHeapObject(ret);
|
|
2671
2661
|
};
|
|
2672
2662
|
|
|
2673
|
-
module.exports.
|
|
2674
|
-
const ret =
|
|
2663
|
+
module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
|
|
2664
|
+
const ret = WasmBalanceSnapshot.__wrap(arg0);
|
|
2675
2665
|
return addHeapObject(ret);
|
|
2676
2666
|
};
|
|
2677
2667
|
|
|
@@ -2684,8 +2674,13 @@ module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
|
2684
2674
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
2685
2675
|
};
|
|
2686
2676
|
|
|
2687
|
-
module.exports.
|
|
2688
|
-
const ret =
|
|
2677
|
+
module.exports.__wbg_wasmtransaction_new = function(arg0) {
|
|
2678
|
+
const ret = WasmTransaction.__wrap(arg0);
|
|
2679
|
+
return addHeapObject(ret);
|
|
2680
|
+
};
|
|
2681
|
+
|
|
2682
|
+
module.exports.__wbg_wasmblockchain_new = function(arg0) {
|
|
2683
|
+
const ret = WasmBlockchain.__wrap(arg0);
|
|
2689
2684
|
return addHeapObject(ret);
|
|
2690
2685
|
};
|
|
2691
2686
|
|
|
@@ -2694,8 +2689,13 @@ module.exports.__wbg_wasmnft_new = function(arg0) {
|
|
|
2694
2689
|
return addHeapObject(ret);
|
|
2695
2690
|
};
|
|
2696
2691
|
|
|
2697
|
-
module.exports.
|
|
2698
|
-
const ret =
|
|
2692
|
+
module.exports.__wbg_wasmpeer_new = function(arg0) {
|
|
2693
|
+
const ret = WasmPeer.__wrap(arg0);
|
|
2694
|
+
return addHeapObject(ret);
|
|
2695
|
+
};
|
|
2696
|
+
|
|
2697
|
+
module.exports.__wbg_wasmblock_new = function(arg0) {
|
|
2698
|
+
const ret = WasmBlock.__wrap(arg0);
|
|
2699
2699
|
return addHeapObject(ret);
|
|
2700
2700
|
};
|
|
2701
2701
|
|
|
@@ -2704,13 +2704,13 @@ module.exports.__wbg_wasmwallet_new = function(arg0) {
|
|
|
2704
2704
|
return addHeapObject(ret);
|
|
2705
2705
|
};
|
|
2706
2706
|
|
|
2707
|
-
module.exports.
|
|
2708
|
-
const ret =
|
|
2707
|
+
module.exports.__wbindgen_object_clone_ref = function(arg0) {
|
|
2708
|
+
const ret = getObject(arg0);
|
|
2709
2709
|
return addHeapObject(ret);
|
|
2710
2710
|
};
|
|
2711
2711
|
|
|
2712
|
-
module.exports.
|
|
2713
|
-
const ret =
|
|
2712
|
+
module.exports.__wbg_wasmslip_new = function(arg0) {
|
|
2713
|
+
const ret = WasmSlip.__wrap(arg0);
|
|
2714
2714
|
return addHeapObject(ret);
|
|
2715
2715
|
};
|
|
2716
2716
|
|
|
@@ -2745,7 +2745,7 @@ module.exports.__wbg_wasmpeerservice_new = function(arg0) {
|
|
|
2745
2745
|
return addHeapObject(ret);
|
|
2746
2746
|
};
|
|
2747
2747
|
|
|
2748
|
-
module.exports.
|
|
2748
|
+
module.exports.__wbg_flushdata_02f5939a34c7adf1 = function(arg0, arg1) {
|
|
2749
2749
|
let deferred0_0;
|
|
2750
2750
|
let deferred0_1;
|
|
2751
2751
|
try {
|
|
@@ -2757,7 +2757,7 @@ module.exports.__wbg_flushdata_aece8dc223521e86 = function(arg0, arg1) {
|
|
|
2757
2757
|
}
|
|
2758
2758
|
};
|
|
2759
2759
|
|
|
2760
|
-
module.exports.
|
|
2760
|
+
module.exports.__wbg_readvalue_6f58b8d737c8947f = function() { return handleError(function (arg0, arg1) {
|
|
2761
2761
|
let deferred0_0;
|
|
2762
2762
|
let deferred0_1;
|
|
2763
2763
|
try {
|
|
@@ -2770,15 +2770,15 @@ module.exports.__wbg_readvalue_6b30d6a36eadedae = function() { return handleErro
|
|
|
2770
2770
|
}
|
|
2771
2771
|
}, arguments) };
|
|
2772
2772
|
|
|
2773
|
-
module.exports.
|
|
2773
|
+
module.exports.__wbg_loadwallet_4fa9260e0e5b29ad = function() {
|
|
2774
2774
|
MsgHandler.load_wallet();
|
|
2775
2775
|
};
|
|
2776
2776
|
|
|
2777
|
-
module.exports.
|
|
2777
|
+
module.exports.__wbg_savewallet_db43f92c74d98db4 = function() {
|
|
2778
2778
|
MsgHandler.save_wallet();
|
|
2779
2779
|
};
|
|
2780
2780
|
|
|
2781
|
-
module.exports.
|
|
2781
|
+
module.exports.__wbg_writevalue_64abf78ec7b7a0a7 = function(arg0, arg1, arg2) {
|
|
2782
2782
|
let deferred0_0;
|
|
2783
2783
|
let deferred0_1;
|
|
2784
2784
|
try {
|
|
@@ -2790,7 +2790,7 @@ module.exports.__wbg_writevalue_6c5d0ae738c625fd = function(arg0, arg1, arg2) {
|
|
|
2790
2790
|
}
|
|
2791
2791
|
};
|
|
2792
2792
|
|
|
2793
|
-
module.exports.
|
|
2793
|
+
module.exports.__wbg_appendvalue_dfb9143a42c8a96f = function(arg0, arg1, arg2) {
|
|
2794
2794
|
let deferred0_0;
|
|
2795
2795
|
let deferred0_1;
|
|
2796
2796
|
try {
|
|
@@ -2802,7 +2802,7 @@ module.exports.__wbg_appendvalue_7a64f2b8d6b939c6 = function(arg0, arg1, arg2) {
|
|
|
2802
2802
|
}
|
|
2803
2803
|
};
|
|
2804
2804
|
|
|
2805
|
-
module.exports.
|
|
2805
|
+
module.exports.__wbg_removevalue_54c2c52edfb40121 = function() { return handleError(function (arg0, arg1) {
|
|
2806
2806
|
let deferred0_0;
|
|
2807
2807
|
let deferred0_1;
|
|
2808
2808
|
try {
|
|
@@ -2815,11 +2815,11 @@ module.exports.__wbg_removevalue_fa146f87d5f18cc2 = function() { return handleEr
|
|
|
2815
2815
|
}
|
|
2816
2816
|
}, arguments) };
|
|
2817
2817
|
|
|
2818
|
-
module.exports.
|
|
2818
|
+
module.exports.__wbg_sendmessage_dd1c456fc24d6ae2 = function(arg0, arg1) {
|
|
2819
2819
|
MsgHandler.send_message(takeObject(arg0), getObject(arg1));
|
|
2820
2820
|
};
|
|
2821
2821
|
|
|
2822
|
-
module.exports.
|
|
2822
|
+
module.exports.__wbg_connecttopeer_2e3115f373923a34 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
2823
2823
|
let deferred0_0;
|
|
2824
2824
|
let deferred0_1;
|
|
2825
2825
|
try {
|
|
@@ -2832,14 +2832,14 @@ module.exports.__wbg_connecttopeer_67e8d4deca7e7daf = function() { return handle
|
|
|
2832
2832
|
}
|
|
2833
2833
|
}, arguments) };
|
|
2834
2834
|
|
|
2835
|
-
module.exports.
|
|
2835
|
+
module.exports.__wbg_getmyservices_247b7276a00aa7a1 = function() {
|
|
2836
2836
|
const ret = MsgHandler.get_my_services();
|
|
2837
2837
|
_assertClass(ret, WasmPeerServiceList);
|
|
2838
2838
|
var ptr1 = ret.__destroy_into_raw();
|
|
2839
2839
|
return ptr1;
|
|
2840
2840
|
};
|
|
2841
2841
|
|
|
2842
|
-
module.exports.
|
|
2842
|
+
module.exports.__wbg_isexistingfile_54560db336503ad5 = function() { return handleError(function (arg0, arg1) {
|
|
2843
2843
|
let deferred0_0;
|
|
2844
2844
|
let deferred0_1;
|
|
2845
2845
|
try {
|
|
@@ -2852,33 +2852,33 @@ module.exports.__wbg_isexistingfile_e53dd691a0d35efd = function() { return handl
|
|
|
2852
2852
|
}
|
|
2853
2853
|
}, arguments) };
|
|
2854
2854
|
|
|
2855
|
-
module.exports.
|
|
2855
|
+
module.exports.__wbg_processapicall_d409cedb7f665312 = function(arg0, arg1, arg2) {
|
|
2856
2856
|
MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2857
2857
|
};
|
|
2858
2858
|
|
|
2859
|
-
module.exports.
|
|
2859
|
+
module.exports.__wbg_processapierror_e2c1f858819cf5cf = function(arg0, arg1, arg2) {
|
|
2860
2860
|
MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2861
2861
|
};
|
|
2862
2862
|
|
|
2863
|
-
module.exports.
|
|
2863
|
+
module.exports.__wbg_processapisuccess_dc587307a8ec6a59 = function(arg0, arg1, arg2) {
|
|
2864
2864
|
MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2865
2865
|
};
|
|
2866
2866
|
|
|
2867
|
-
module.exports.
|
|
2867
|
+
module.exports.__wbg_sendmessagetoall_5c38c389c7434159 = function(arg0, arg1) {
|
|
2868
2868
|
MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
|
|
2869
2869
|
};
|
|
2870
2870
|
|
|
2871
|
-
module.exports.
|
|
2871
|
+
module.exports.__wbg_disconnectfrompeer_41e790d250243fd7 = function() { return handleError(function (arg0) {
|
|
2872
2872
|
const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
|
|
2873
2873
|
return addHeapObject(ret);
|
|
2874
2874
|
}, arguments) };
|
|
2875
2875
|
|
|
2876
|
-
module.exports.
|
|
2876
|
+
module.exports.__wbg_loadblockfilelist_5e719b9d74178df6 = function() { return handleError(function () {
|
|
2877
2877
|
const ret = MsgHandler.load_block_file_list();
|
|
2878
2878
|
return addHeapObject(ret);
|
|
2879
2879
|
}, arguments) };
|
|
2880
2880
|
|
|
2881
|
-
module.exports.
|
|
2881
|
+
module.exports.__wbg_sendinterfaceevent_890fc416d90ba971 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
2882
2882
|
let deferred0_0;
|
|
2883
2883
|
let deferred0_1;
|
|
2884
2884
|
let deferred1_0;
|
|
@@ -2895,7 +2895,7 @@ module.exports.__wbg_sendinterfaceevent_9ec642f87407fb57 = function(arg0, arg1,
|
|
|
2895
2895
|
}
|
|
2896
2896
|
};
|
|
2897
2897
|
|
|
2898
|
-
module.exports.
|
|
2898
|
+
module.exports.__wbg_sendblocksuccess_294795b33a4eb2c8 = function(arg0, arg1, arg2) {
|
|
2899
2899
|
let deferred0_0;
|
|
2900
2900
|
let deferred0_1;
|
|
2901
2901
|
try {
|
|
@@ -2907,11 +2907,11 @@ module.exports.__wbg_sendblocksuccess_8593630796d08f4a = function(arg0, arg1, ar
|
|
|
2907
2907
|
}
|
|
2908
2908
|
};
|
|
2909
2909
|
|
|
2910
|
-
module.exports.
|
|
2910
|
+
module.exports.__wbg_sendwalletupdate_6128fb2a65955772 = function() {
|
|
2911
2911
|
MsgHandler.send_wallet_update();
|
|
2912
2912
|
};
|
|
2913
2913
|
|
|
2914
|
-
module.exports.
|
|
2914
|
+
module.exports.__wbg_sendnewversionalert_90c0405e8fc96529 = function(arg0, arg1, arg2) {
|
|
2915
2915
|
let deferred0_0;
|
|
2916
2916
|
let deferred0_1;
|
|
2917
2917
|
try {
|
|
@@ -2923,15 +2923,15 @@ module.exports.__wbg_sendnewversionalert_90ce546ef6f38fc8 = function(arg0, arg1,
|
|
|
2923
2923
|
}
|
|
2924
2924
|
};
|
|
2925
2925
|
|
|
2926
|
-
module.exports.
|
|
2926
|
+
module.exports.__wbg_sendblockfetchstatusevent_f8ad3e0c574a3d2f = function(arg0) {
|
|
2927
2927
|
MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
|
|
2928
2928
|
};
|
|
2929
2929
|
|
|
2930
|
-
module.exports.
|
|
2930
|
+
module.exports.__wbg_sendnewchaindetectedevent_814f1cb2a0968c86 = function() {
|
|
2931
2931
|
MsgHandler.send_new_chain_detected_event();
|
|
2932
2932
|
};
|
|
2933
2933
|
|
|
2934
|
-
module.exports.
|
|
2934
|
+
module.exports.__wbg_fetchblockfrompeer_1ae370fdece9cb73 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2935
2935
|
let deferred0_0;
|
|
2936
2936
|
let deferred0_1;
|
|
2937
2937
|
try {
|
|
@@ -2944,7 +2944,7 @@ module.exports.__wbg_fetchblockfrompeer_e70058129ff6d454 = function() { return h
|
|
|
2944
2944
|
}
|
|
2945
2945
|
}, arguments) };
|
|
2946
2946
|
|
|
2947
|
-
module.exports.
|
|
2947
|
+
module.exports.__wbg_ensureblockdirectoryexists_7fcab2b9dc2610fe = function() { return handleError(function (arg0, arg1) {
|
|
2948
2948
|
let deferred0_0;
|
|
2949
2949
|
let deferred0_1;
|
|
2950
2950
|
try {
|
|
@@ -3332,7 +3332,7 @@ module.exports.__wbindgen_debug_string = function(arg0, arg1) {
|
|
|
3332
3332
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
3333
3333
|
};
|
|
3334
3334
|
|
|
3335
|
-
module.exports.
|
|
3335
|
+
module.exports.__wbindgen_closure_wrapper1619 = function(arg0, arg1, arg2) {
|
|
3336
3336
|
const ret = makeMutClosure(arg0, arg1, 574, __wbg_adapter_38);
|
|
3337
3337
|
return addHeapObject(ret);
|
|
3338
3338
|
};
|