saito-wasm 0.2.237 → 0.2.239
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 +84 -79
- package/pkg/node/index.js +192 -183
- package/pkg/node/index_bg.wasm +0 -0
- package/pkg/node/index_bg.wasm.d.ts +1 -0
- package/pkg/node/package.json +3 -3
- package/pkg/web/index.d.ts +85 -79
- package/pkg/web/index.js +192 -183
- package/pkg/web/index_bg.wasm +0 -0
- package/pkg/web/index_bg.wasm.d.ts +1 -0
- package/pkg/web/package.json +1 -1
- /package/pkg/node/snippets/{saito-wasm-04195e4e0e289216 → saito-wasm-785d0781d8caf60c}/js/msg_handler.js +0 -0
- /package/pkg/web/snippets/{saito-wasm-04195e4e0e289216 → saito-wasm-785d0781d8caf60c}/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-785d0781d8caf60c/js/msg_handler.js`);
|
|
5
5
|
const { TextDecoder, TextEncoder } = require(`util`);
|
|
6
6
|
|
|
7
7
|
const heap = new Array(128).fill(undefined);
|
|
@@ -254,83 +254,89 @@ function addBorrowedObject(obj) {
|
|
|
254
254
|
return stack_pointer;
|
|
255
255
|
}
|
|
256
256
|
/**
|
|
257
|
-
* @param {
|
|
258
|
-
* @
|
|
257
|
+
* @param {Uint8Array} buffer
|
|
258
|
+
* @param {string} private_key
|
|
259
|
+
* @returns {string}
|
|
259
260
|
*/
|
|
260
|
-
module.exports.
|
|
261
|
-
|
|
262
|
-
|
|
261
|
+
module.exports.sign_buffer = function(buffer, private_key) {
|
|
262
|
+
try {
|
|
263
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
264
|
+
wasm.sign_buffer(retptr, addHeapObject(buffer), addHeapObject(private_key));
|
|
265
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
266
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
267
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
268
|
+
if (r2) {
|
|
269
|
+
throw takeObject(r1);
|
|
270
|
+
}
|
|
271
|
+
return takeObject(r0);
|
|
272
|
+
} finally {
|
|
273
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
274
|
+
}
|
|
263
275
|
};
|
|
264
276
|
|
|
265
277
|
/**
|
|
266
|
-
* @
|
|
278
|
+
* @param {bigint} threshold
|
|
279
|
+
* @returns {Promise<void>}
|
|
267
280
|
*/
|
|
268
|
-
module.exports.
|
|
269
|
-
const ret = wasm.
|
|
281
|
+
module.exports.write_issuance_file = function(threshold) {
|
|
282
|
+
const ret = wasm.write_issuance_file(threshold);
|
|
270
283
|
return takeObject(ret);
|
|
271
284
|
};
|
|
272
285
|
|
|
273
|
-
/**
|
|
274
|
-
* @returns {WasmNetwork}
|
|
275
|
-
*/
|
|
276
|
-
module.exports.get_network = function() {
|
|
277
|
-
const ret = wasm.get_network();
|
|
278
|
-
return WasmNetwork.__wrap(ret);
|
|
279
|
-
};
|
|
280
|
-
|
|
281
286
|
/**
|
|
282
287
|
* @param {bigint} peer_id
|
|
283
|
-
* @param {
|
|
288
|
+
* @param {string} public_key
|
|
284
289
|
* @returns {Promise<void>}
|
|
285
290
|
*/
|
|
286
|
-
module.exports.
|
|
287
|
-
const ret = wasm.
|
|
291
|
+
module.exports.process_stun_peer = function(peer_id, public_key) {
|
|
292
|
+
const ret = wasm.process_stun_peer(peer_id, addHeapObject(public_key));
|
|
288
293
|
return takeObject(ret);
|
|
289
294
|
};
|
|
290
295
|
|
|
291
296
|
/**
|
|
292
|
-
* @
|
|
293
|
-
* @returns {Promise<WasmNetworkPeer>}
|
|
297
|
+
* @returns {Promise<boolean>}
|
|
294
298
|
*/
|
|
295
|
-
module.exports.
|
|
296
|
-
|
|
297
|
-
var len0 = WASM_VECTOR_LEN;
|
|
298
|
-
const ret = wasm.create_network_peer(ptr0, len0);
|
|
299
|
+
module.exports.produce_block_without_gt = function() {
|
|
300
|
+
const ret = wasm.produce_block_without_gt();
|
|
299
301
|
return takeObject(ret);
|
|
300
302
|
};
|
|
301
303
|
|
|
302
304
|
/**
|
|
303
|
-
* @param {
|
|
304
|
-
* @
|
|
305
|
-
* @returns {Promise<Uint8Array>}
|
|
305
|
+
* @param {WasmBalanceSnapshot} snapshot
|
|
306
|
+
* @returns {Promise<void>}
|
|
306
307
|
*/
|
|
307
|
-
module.exports.
|
|
308
|
-
_assertClass(
|
|
309
|
-
|
|
308
|
+
module.exports.update_from_balance_snapshot = function(snapshot) {
|
|
309
|
+
_assertClass(snapshot, WasmBalanceSnapshot);
|
|
310
|
+
var ptr0 = snapshot.__destroy_into_raw();
|
|
311
|
+
const ret = wasm.update_from_balance_snapshot(ptr0);
|
|
310
312
|
return takeObject(ret);
|
|
311
313
|
};
|
|
312
314
|
|
|
313
315
|
/**
|
|
314
|
-
* @returns {Promise<
|
|
316
|
+
* @returns {Promise<void>}
|
|
315
317
|
*/
|
|
316
|
-
module.exports.
|
|
317
|
-
const ret = wasm.
|
|
318
|
+
module.exports.disable_producing_blocks_by_timer = function() {
|
|
319
|
+
const ret = wasm.disable_producing_blocks_by_timer();
|
|
318
320
|
return takeObject(ret);
|
|
319
321
|
};
|
|
320
322
|
|
|
321
323
|
/**
|
|
322
|
-
* @
|
|
324
|
+
* @param {Uint8Array} hash
|
|
325
|
+
* @param {bigint} block_id
|
|
326
|
+
* @param {bigint} peer_id
|
|
327
|
+
* @returns {Promise<void>}
|
|
323
328
|
*/
|
|
324
|
-
module.exports.
|
|
325
|
-
const ret = wasm.
|
|
329
|
+
module.exports.process_failed_block_fetch = function(hash, block_id, peer_id) {
|
|
330
|
+
const ret = wasm.process_failed_block_fetch(addHeapObject(hash), block_id, peer_id);
|
|
326
331
|
return takeObject(ret);
|
|
327
332
|
};
|
|
328
333
|
|
|
329
334
|
/**
|
|
330
|
-
* @
|
|
335
|
+
* @param {string} block_hash
|
|
336
|
+
* @returns {Promise<WasmBlock>}
|
|
331
337
|
*/
|
|
332
|
-
module.exports.
|
|
333
|
-
const ret = wasm.
|
|
338
|
+
module.exports.get_block = function(block_hash) {
|
|
339
|
+
const ret = wasm.get_block(addHeapObject(block_hash));
|
|
334
340
|
return takeObject(ret);
|
|
335
341
|
};
|
|
336
342
|
|
|
@@ -344,36 +350,56 @@ module.exports.isPublicKey = function(key) {
|
|
|
344
350
|
};
|
|
345
351
|
|
|
346
352
|
/**
|
|
347
|
-
* @
|
|
353
|
+
* @param {Uint8Array} buffer
|
|
354
|
+
* @returns {string}
|
|
348
355
|
*/
|
|
349
|
-
module.exports.
|
|
350
|
-
const ret = wasm.
|
|
356
|
+
module.exports.hash = function(buffer) {
|
|
357
|
+
const ret = wasm.hash(addHeapObject(buffer));
|
|
351
358
|
return takeObject(ret);
|
|
352
359
|
};
|
|
353
360
|
|
|
354
361
|
/**
|
|
355
|
-
* @param {
|
|
356
|
-
* @returns {Promise<
|
|
362
|
+
* @param {Array<any>} keys
|
|
363
|
+
* @returns {Promise<WasmBalanceSnapshot>}
|
|
357
364
|
*/
|
|
358
|
-
module.exports.
|
|
359
|
-
const ret = wasm.
|
|
365
|
+
module.exports.get_balance_snapshot = function(keys) {
|
|
366
|
+
const ret = wasm.get_balance_snapshot(addHeapObject(keys));
|
|
360
367
|
return takeObject(ret);
|
|
361
368
|
};
|
|
362
369
|
|
|
363
370
|
/**
|
|
371
|
+
* @param {Uint8Array} buffer
|
|
372
|
+
* @param {string} signature
|
|
364
373
|
* @param {string} public_key
|
|
365
|
-
* @returns {
|
|
374
|
+
* @returns {boolean}
|
|
366
375
|
*/
|
|
367
|
-
module.exports.
|
|
368
|
-
const ret = wasm.
|
|
376
|
+
module.exports.verify_signature = function(buffer, signature, public_key) {
|
|
377
|
+
const ret = wasm.verify_signature(addHeapObject(buffer), addHeapObject(signature), addHeapObject(public_key));
|
|
378
|
+
return ret !== 0;
|
|
379
|
+
};
|
|
380
|
+
|
|
381
|
+
/**
|
|
382
|
+
* @returns {Promise<string>}
|
|
383
|
+
*/
|
|
384
|
+
module.exports.get_latest_block_hash = function() {
|
|
385
|
+
const ret = wasm.get_latest_block_hash();
|
|
369
386
|
return takeObject(ret);
|
|
370
387
|
};
|
|
371
388
|
|
|
372
389
|
/**
|
|
390
|
+
* @returns {Promise<boolean>}
|
|
391
|
+
*/
|
|
392
|
+
module.exports.produce_block_with_gt = function() {
|
|
393
|
+
const ret = wasm.produce_block_with_gt();
|
|
394
|
+
return takeObject(ret);
|
|
395
|
+
};
|
|
396
|
+
|
|
397
|
+
/**
|
|
398
|
+
* @param {bigint} peer_id
|
|
373
399
|
* @returns {Promise<void>}
|
|
374
400
|
*/
|
|
375
|
-
module.exports.
|
|
376
|
-
const ret = wasm.
|
|
401
|
+
module.exports.process_peer_disconnection = function(peer_id) {
|
|
402
|
+
const ret = wasm.process_peer_disconnection(peer_id);
|
|
377
403
|
return takeObject(ret);
|
|
378
404
|
};
|
|
379
405
|
|
|
@@ -396,164 +422,147 @@ module.exports.remove_stun_peer = function(peer_id, public_key) {
|
|
|
396
422
|
};
|
|
397
423
|
|
|
398
424
|
/**
|
|
399
|
-
* @param {
|
|
400
|
-
* @param {
|
|
401
|
-
* @
|
|
402
|
-
* @returns {boolean}
|
|
425
|
+
* @param {bigint} peer_id
|
|
426
|
+
* @param {boolean} initiate_handshake
|
|
427
|
+
* @returns {Promise<void>}
|
|
403
428
|
*/
|
|
404
|
-
module.exports.
|
|
405
|
-
const ret = wasm.
|
|
406
|
-
return ret
|
|
429
|
+
module.exports.process_new_peer = function(peer_id, initiate_handshake) {
|
|
430
|
+
const ret = wasm.process_new_peer(peer_id, initiate_handshake);
|
|
431
|
+
return takeObject(ret);
|
|
407
432
|
};
|
|
408
433
|
|
|
409
434
|
/**
|
|
410
|
-
* @param {string} config_json
|
|
411
435
|
* @param {string} private_key
|
|
412
|
-
* @
|
|
413
|
-
* @param {bigint} hasten_multiplier
|
|
414
|
-
* @param {boolean} delete_old_blocks
|
|
415
|
-
* @returns {Promise<any>}
|
|
436
|
+
* @returns {string}
|
|
416
437
|
*/
|
|
417
|
-
module.exports.
|
|
418
|
-
|
|
419
|
-
|
|
438
|
+
module.exports.generate_public_key = function(private_key) {
|
|
439
|
+
try {
|
|
440
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
441
|
+
wasm.generate_public_key(retptr, addHeapObject(private_key));
|
|
442
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
443
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
444
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
445
|
+
if (r2) {
|
|
446
|
+
throw takeObject(r1);
|
|
447
|
+
}
|
|
448
|
+
return takeObject(r0);
|
|
449
|
+
} finally {
|
|
450
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
451
|
+
}
|
|
420
452
|
};
|
|
421
453
|
|
|
422
454
|
/**
|
|
423
|
-
* @param {
|
|
424
|
-
* @
|
|
425
|
-
* @param {bigint} block_id
|
|
426
|
-
* @param {bigint} peer_id
|
|
427
|
-
* @returns {Promise<void>}
|
|
455
|
+
* @param {string | undefined} [url]
|
|
456
|
+
* @returns {Promise<WasmNetworkPeer>}
|
|
428
457
|
*/
|
|
429
|
-
module.exports.
|
|
430
|
-
|
|
458
|
+
module.exports.create_network_peer = function(url) {
|
|
459
|
+
var ptr0 = isLikeNone(url) ? 0 : passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
460
|
+
var len0 = WASM_VECTOR_LEN;
|
|
461
|
+
const ret = wasm.create_network_peer(ptr0, len0);
|
|
431
462
|
return takeObject(ret);
|
|
432
463
|
};
|
|
433
464
|
|
|
434
465
|
/**
|
|
435
|
-
* @
|
|
436
|
-
* @returns {Promise<WasmBlock>}
|
|
466
|
+
* @returns {WasmNetwork}
|
|
437
467
|
*/
|
|
438
|
-
module.exports.
|
|
439
|
-
const ret = wasm.
|
|
440
|
-
return
|
|
468
|
+
module.exports.get_network = function() {
|
|
469
|
+
const ret = wasm.get_network();
|
|
470
|
+
return WasmNetwork.__wrap(ret);
|
|
441
471
|
};
|
|
442
472
|
|
|
443
473
|
/**
|
|
474
|
+
* @param {Uint8Array} buffer
|
|
444
475
|
* @param {Uint8Array} hash
|
|
445
476
|
* @param {bigint} block_id
|
|
446
477
|
* @param {bigint} peer_id
|
|
447
478
|
* @returns {Promise<void>}
|
|
448
479
|
*/
|
|
449
|
-
module.exports.
|
|
450
|
-
const ret = wasm.
|
|
480
|
+
module.exports.process_fetched_block = function(buffer, hash, block_id, peer_id) {
|
|
481
|
+
const ret = wasm.process_fetched_block(addHeapObject(buffer), addHeapObject(hash), block_id, peer_id);
|
|
451
482
|
return takeObject(ret);
|
|
452
483
|
};
|
|
453
484
|
|
|
454
485
|
/**
|
|
455
|
-
* @param {
|
|
456
|
-
* @returns {Promise<
|
|
486
|
+
* @param {string} json
|
|
487
|
+
* @returns {Promise<number>}
|
|
457
488
|
*/
|
|
458
|
-
module.exports.
|
|
459
|
-
const ret = wasm.
|
|
489
|
+
module.exports.evaluate_script = function(json) {
|
|
490
|
+
const ret = wasm.evaluate_script(addHeapObject(json));
|
|
460
491
|
return takeObject(ret);
|
|
461
492
|
};
|
|
462
493
|
|
|
463
494
|
/**
|
|
464
|
-
* @param {
|
|
495
|
+
* @param {bigint} current_time
|
|
465
496
|
* @returns {Promise<void>}
|
|
466
497
|
*/
|
|
467
|
-
module.exports.
|
|
468
|
-
|
|
469
|
-
var ptr0 = snapshot.__destroy_into_raw();
|
|
470
|
-
const ret = wasm.update_from_balance_snapshot(ptr0);
|
|
498
|
+
module.exports.process_stat_interval = function(current_time) {
|
|
499
|
+
const ret = wasm.process_stat_interval(current_time);
|
|
471
500
|
return takeObject(ret);
|
|
472
501
|
};
|
|
473
502
|
|
|
474
503
|
/**
|
|
475
|
-
* @param {
|
|
476
|
-
* @returns {Promise<
|
|
504
|
+
* @param {string} public_key
|
|
505
|
+
* @returns {Promise<Array<any>>}
|
|
477
506
|
*/
|
|
478
|
-
module.exports.
|
|
479
|
-
const ret = wasm.
|
|
507
|
+
module.exports.get_account_slips = function(public_key) {
|
|
508
|
+
const ret = wasm.get_account_slips(addHeapObject(public_key));
|
|
480
509
|
return takeObject(ret);
|
|
481
510
|
};
|
|
482
511
|
|
|
483
512
|
/**
|
|
484
|
-
* @param {
|
|
485
|
-
* @param {string}
|
|
486
|
-
* @
|
|
513
|
+
* @param {string} config_json
|
|
514
|
+
* @param {string} private_key
|
|
515
|
+
* @param {number} log_level_num
|
|
516
|
+
* @param {bigint} hasten_multiplier
|
|
517
|
+
* @param {boolean} delete_old_blocks
|
|
518
|
+
* @returns {Promise<any>}
|
|
487
519
|
*/
|
|
488
|
-
module.exports.
|
|
489
|
-
const ret = wasm.
|
|
520
|
+
module.exports.initialize = function(config_json, private_key, log_level_num, hasten_multiplier, delete_old_blocks) {
|
|
521
|
+
const ret = wasm.initialize(addHeapObject(config_json), addHeapObject(private_key), log_level_num, hasten_multiplier, delete_old_blocks);
|
|
490
522
|
return takeObject(ret);
|
|
491
523
|
};
|
|
492
524
|
|
|
493
525
|
/**
|
|
494
|
-
* @
|
|
495
|
-
* @param {string} private_key
|
|
496
|
-
* @returns {string}
|
|
526
|
+
* @returns {Promise<Array<any>>}
|
|
497
527
|
*/
|
|
498
|
-
module.exports.
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
wasm.sign_buffer(retptr, addHeapObject(buffer), addHeapObject(private_key));
|
|
502
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
503
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
504
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
505
|
-
if (r2) {
|
|
506
|
-
throw takeObject(r1);
|
|
507
|
-
}
|
|
508
|
-
return takeObject(r0);
|
|
509
|
-
} finally {
|
|
510
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
511
|
-
}
|
|
528
|
+
module.exports.get_mempool_txs = function() {
|
|
529
|
+
const ret = wasm.get_mempool_txs();
|
|
530
|
+
return takeObject(ret);
|
|
512
531
|
};
|
|
513
532
|
|
|
514
533
|
/**
|
|
515
|
-
* @param {
|
|
516
|
-
* @returns {
|
|
534
|
+
* @param {bigint} duration_in_ms
|
|
535
|
+
* @returns {Promise<void>}
|
|
517
536
|
*/
|
|
518
|
-
module.exports.
|
|
519
|
-
const ret = wasm.
|
|
537
|
+
module.exports.process_timer_event = function(duration_in_ms) {
|
|
538
|
+
const ret = wasm.process_timer_event(duration_in_ms);
|
|
520
539
|
return takeObject(ret);
|
|
521
540
|
};
|
|
522
541
|
|
|
523
542
|
/**
|
|
524
|
-
* @returns {
|
|
543
|
+
* @returns {string}
|
|
525
544
|
*/
|
|
526
|
-
module.exports.
|
|
527
|
-
const ret = wasm.
|
|
545
|
+
module.exports.generate_private_key = function() {
|
|
546
|
+
const ret = wasm.generate_private_key();
|
|
528
547
|
return takeObject(ret);
|
|
529
548
|
};
|
|
530
549
|
|
|
531
550
|
/**
|
|
532
|
-
* @param {
|
|
533
|
-
* @
|
|
551
|
+
* @param {Uint8Array} buffer
|
|
552
|
+
* @param {WasmNetworkPeer} peer
|
|
553
|
+
* @returns {Promise<Uint8Array>}
|
|
534
554
|
*/
|
|
535
|
-
module.exports.
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
540
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
541
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
542
|
-
if (r2) {
|
|
543
|
-
throw takeObject(r1);
|
|
544
|
-
}
|
|
545
|
-
return takeObject(r0);
|
|
546
|
-
} finally {
|
|
547
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
548
|
-
}
|
|
555
|
+
module.exports.process_msg_buffer_from_peer = function(buffer, peer) {
|
|
556
|
+
_assertClass(peer, WasmNetworkPeer);
|
|
557
|
+
const ret = wasm.process_msg_buffer_from_peer(addHeapObject(buffer), peer.__wbg_ptr);
|
|
558
|
+
return takeObject(ret);
|
|
549
559
|
};
|
|
550
560
|
|
|
551
561
|
/**
|
|
552
|
-
* @
|
|
553
|
-
* @returns {Promise<void>}
|
|
562
|
+
* @returns {Promise<WasmWallet>}
|
|
554
563
|
*/
|
|
555
|
-
module.exports.
|
|
556
|
-
const ret = wasm.
|
|
564
|
+
module.exports.get_wallet = function() {
|
|
565
|
+
const ret = wasm.get_wallet();
|
|
557
566
|
return takeObject(ret);
|
|
558
567
|
};
|
|
559
568
|
|
|
@@ -3239,7 +3248,7 @@ module.exports.__wbg_set_f975102236d3c502 = function(arg0, arg1, arg2) {
|
|
|
3239
3248
|
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
3240
3249
|
};
|
|
3241
3250
|
|
|
3242
|
-
module.exports.
|
|
3251
|
+
module.exports.__wbg_flushdata_b83ca5dfd0e29452 = function(arg0, arg1) {
|
|
3243
3252
|
let deferred0_0;
|
|
3244
3253
|
let deferred0_1;
|
|
3245
3254
|
try {
|
|
@@ -3251,7 +3260,7 @@ module.exports.__wbg_flushdata_beb249a230c82766 = function(arg0, arg1) {
|
|
|
3251
3260
|
}
|
|
3252
3261
|
};
|
|
3253
3262
|
|
|
3254
|
-
module.exports.
|
|
3263
|
+
module.exports.__wbg_readvalue_8ca89f95bfe8c944 = function() { return handleError(function (arg0, arg1) {
|
|
3255
3264
|
let deferred0_0;
|
|
3256
3265
|
let deferred0_1;
|
|
3257
3266
|
try {
|
|
@@ -3264,15 +3273,15 @@ module.exports.__wbg_readvalue_c48590028c7df8a9 = function() { return handleErro
|
|
|
3264
3273
|
}
|
|
3265
3274
|
}, arguments) };
|
|
3266
3275
|
|
|
3267
|
-
module.exports.
|
|
3276
|
+
module.exports.__wbg_loadwallet_97d25e53a03a6a56 = function() {
|
|
3268
3277
|
MsgHandler.load_wallet();
|
|
3269
3278
|
};
|
|
3270
3279
|
|
|
3271
|
-
module.exports.
|
|
3280
|
+
module.exports.__wbg_savewallet_596fb85e8cbee355 = function() {
|
|
3272
3281
|
MsgHandler.save_wallet();
|
|
3273
3282
|
};
|
|
3274
3283
|
|
|
3275
|
-
module.exports.
|
|
3284
|
+
module.exports.__wbg_writevalue_ea7fa78ef5b39d86 = function(arg0, arg1, arg2) {
|
|
3276
3285
|
let deferred0_0;
|
|
3277
3286
|
let deferred0_1;
|
|
3278
3287
|
try {
|
|
@@ -3284,7 +3293,7 @@ module.exports.__wbg_writevalue_51eec46fb19ca929 = function(arg0, arg1, arg2) {
|
|
|
3284
3293
|
}
|
|
3285
3294
|
};
|
|
3286
3295
|
|
|
3287
|
-
module.exports.
|
|
3296
|
+
module.exports.__wbg_appendvalue_24226e288f591dd1 = function(arg0, arg1, arg2) {
|
|
3288
3297
|
let deferred0_0;
|
|
3289
3298
|
let deferred0_1;
|
|
3290
3299
|
try {
|
|
@@ -3296,7 +3305,7 @@ module.exports.__wbg_appendvalue_f15e7c934617c061 = function(arg0, arg1, arg2) {
|
|
|
3296
3305
|
}
|
|
3297
3306
|
};
|
|
3298
3307
|
|
|
3299
|
-
module.exports.
|
|
3308
|
+
module.exports.__wbg_removevalue_f932e0ed2bf8400d = function() { return handleError(function (arg0, arg1) {
|
|
3300
3309
|
let deferred0_0;
|
|
3301
3310
|
let deferred0_1;
|
|
3302
3311
|
try {
|
|
@@ -3309,7 +3318,7 @@ module.exports.__wbg_removevalue_25479ac17db43454 = function() { return handleEr
|
|
|
3309
3318
|
}
|
|
3310
3319
|
}, arguments) };
|
|
3311
3320
|
|
|
3312
|
-
module.exports.
|
|
3321
|
+
module.exports.__wbg_sendmessage_b4d1847c2b021a82 = function(arg0, arg1, arg2) {
|
|
3313
3322
|
let deferred0_0;
|
|
3314
3323
|
let deferred0_1;
|
|
3315
3324
|
try {
|
|
@@ -3321,7 +3330,7 @@ module.exports.__wbg_sendmessage_08ead62f30c72dad = function(arg0, arg1, arg2) {
|
|
|
3321
3330
|
}
|
|
3322
3331
|
};
|
|
3323
3332
|
|
|
3324
|
-
module.exports.
|
|
3333
|
+
module.exports.__wbg_connecttopeer_8a6739b7848714bb = function() { return handleError(function (arg0, arg1) {
|
|
3325
3334
|
let deferred0_0;
|
|
3326
3335
|
let deferred0_1;
|
|
3327
3336
|
try {
|
|
@@ -3334,14 +3343,14 @@ module.exports.__wbg_connecttopeer_af9c6648136c6fa9 = function() { return handle
|
|
|
3334
3343
|
}
|
|
3335
3344
|
}, arguments) };
|
|
3336
3345
|
|
|
3337
|
-
module.exports.
|
|
3346
|
+
module.exports.__wbg_getmyservices_54e00b491be9702b = function() {
|
|
3338
3347
|
const ret = MsgHandler.get_my_services();
|
|
3339
3348
|
_assertClass(ret, WasmPeerServiceList);
|
|
3340
3349
|
var ptr1 = ret.__destroy_into_raw();
|
|
3341
3350
|
return ptr1;
|
|
3342
3351
|
};
|
|
3343
3352
|
|
|
3344
|
-
module.exports.
|
|
3353
|
+
module.exports.__wbg_isexistingfile_729bbaf16e1fc1eb = function() { return handleError(function (arg0, arg1) {
|
|
3345
3354
|
let deferred0_0;
|
|
3346
3355
|
let deferred0_1;
|
|
3347
3356
|
try {
|
|
@@ -3354,7 +3363,7 @@ module.exports.__wbg_isexistingfile_cf510f78dcffb7f2 = function() { return handl
|
|
|
3354
3363
|
}
|
|
3355
3364
|
}, arguments) };
|
|
3356
3365
|
|
|
3357
|
-
module.exports.
|
|
3366
|
+
module.exports.__wbg_processapicall_894298f60f733af7 = function(arg0, arg1, arg2, arg3) {
|
|
3358
3367
|
let deferred0_0;
|
|
3359
3368
|
let deferred0_1;
|
|
3360
3369
|
try {
|
|
@@ -3366,7 +3375,7 @@ module.exports.__wbg_processapicall_21a70457c3678931 = function(arg0, arg1, arg2
|
|
|
3366
3375
|
}
|
|
3367
3376
|
};
|
|
3368
3377
|
|
|
3369
|
-
module.exports.
|
|
3378
|
+
module.exports.__wbg_processapierror_c0cff35bfda0d70f = function(arg0, arg1, arg2, arg3) {
|
|
3370
3379
|
let deferred0_0;
|
|
3371
3380
|
let deferred0_1;
|
|
3372
3381
|
try {
|
|
@@ -3378,7 +3387,7 @@ module.exports.__wbg_processapierror_a872953ac9a4bd83 = function(arg0, arg1, arg
|
|
|
3378
3387
|
}
|
|
3379
3388
|
};
|
|
3380
3389
|
|
|
3381
|
-
module.exports.
|
|
3390
|
+
module.exports.__wbg_processapisuccess_52f79c0d74c970a8 = function(arg0, arg1, arg2, arg3) {
|
|
3382
3391
|
let deferred0_0;
|
|
3383
3392
|
let deferred0_1;
|
|
3384
3393
|
try {
|
|
@@ -3390,25 +3399,25 @@ module.exports.__wbg_processapisuccess_cf9a66841e1cd4fb = function(arg0, arg1, a
|
|
|
3390
3399
|
}
|
|
3391
3400
|
};
|
|
3392
3401
|
|
|
3393
|
-
module.exports.
|
|
3402
|
+
module.exports.__wbg_sendmessagetoall_596c525857e45a64 = function(arg0, arg1) {
|
|
3394
3403
|
MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
|
|
3395
3404
|
};
|
|
3396
3405
|
|
|
3397
|
-
module.exports.
|
|
3406
|
+
module.exports.__wbg_disconnectfrompeer_de724f594081a3dd = function() { return handleError(function (arg0) {
|
|
3398
3407
|
const ret = MsgHandler.disconnect_from_peer(BigInt.asUintN(64, arg0));
|
|
3399
3408
|
return addHeapObject(ret);
|
|
3400
3409
|
}, arguments) };
|
|
3401
3410
|
|
|
3402
|
-
module.exports.
|
|
3411
|
+
module.exports.__wbg_loadblockfilelist_27d8a02029193360 = function() { return handleError(function () {
|
|
3403
3412
|
const ret = MsgHandler.load_block_file_list();
|
|
3404
3413
|
return addHeapObject(ret);
|
|
3405
3414
|
}, arguments) };
|
|
3406
3415
|
|
|
3407
|
-
module.exports.
|
|
3416
|
+
module.exports.__wbg_emitinterfaceevent_9485f82710a2343d = function(arg0, arg1, arg2, arg3) {
|
|
3408
3417
|
MsgHandler.emit_interface_event(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
|
|
3409
3418
|
};
|
|
3410
3419
|
|
|
3411
|
-
module.exports.
|
|
3420
|
+
module.exports.__wbg_fetchblockfrompeer_5cda6b7a0e312f7b = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
3412
3421
|
let deferred0_0;
|
|
3413
3422
|
let deferred0_1;
|
|
3414
3423
|
try {
|
|
@@ -3421,7 +3430,7 @@ module.exports.__wbg_fetchblockfrompeer_b392dde3946bb09a = function() { return h
|
|
|
3421
3430
|
}
|
|
3422
3431
|
}, arguments) };
|
|
3423
3432
|
|
|
3424
|
-
module.exports.
|
|
3433
|
+
module.exports.__wbg_ensuredirectoryexists_c7d5f00e20b68be6 = function() { return handleError(function (arg0, arg1) {
|
|
3425
3434
|
let deferred0_0;
|
|
3426
3435
|
let deferred0_1;
|
|
3427
3436
|
try {
|
|
@@ -3433,7 +3442,7 @@ module.exports.__wbg_ensuredirectoryexists_d1c681970723bd87 = function() { retur
|
|
|
3433
3442
|
}
|
|
3434
3443
|
}, arguments) };
|
|
3435
3444
|
|
|
3436
|
-
module.exports.
|
|
3445
|
+
module.exports.__wbg_sendmessagebypeerid_6a3fb6b5731d0dfc = function(arg0, arg1) {
|
|
3437
3446
|
MsgHandler.send_message_by_peer_id(BigInt.asUintN(64, arg0), getObject(arg1));
|
|
3438
3447
|
};
|
|
3439
3448
|
|
|
@@ -3442,28 +3451,28 @@ module.exports.__wbg_wasmtransaction_new = function(arg0) {
|
|
|
3442
3451
|
return addHeapObject(ret);
|
|
3443
3452
|
};
|
|
3444
3453
|
|
|
3445
|
-
module.exports.
|
|
3446
|
-
const ret =
|
|
3454
|
+
module.exports.__wbg_wasmwallet_new = function(arg0) {
|
|
3455
|
+
const ret = WasmWallet.__wrap(arg0);
|
|
3447
3456
|
return addHeapObject(ret);
|
|
3448
3457
|
};
|
|
3449
3458
|
|
|
3450
|
-
module.exports.
|
|
3451
|
-
const ret =
|
|
3459
|
+
module.exports.__wbg_wasmblock_new = function(arg0) {
|
|
3460
|
+
const ret = WasmBlock.__wrap(arg0);
|
|
3452
3461
|
return addHeapObject(ret);
|
|
3453
3462
|
};
|
|
3454
3463
|
|
|
3455
|
-
module.exports.
|
|
3456
|
-
const ret =
|
|
3464
|
+
module.exports.__wbg_wasmpeer_new = function(arg0) {
|
|
3465
|
+
const ret = WasmPeer.__wrap(arg0);
|
|
3457
3466
|
return addHeapObject(ret);
|
|
3458
3467
|
};
|
|
3459
3468
|
|
|
3460
|
-
module.exports.
|
|
3461
|
-
const ret =
|
|
3469
|
+
module.exports.__wbg_wasmblockchain_new = function(arg0) {
|
|
3470
|
+
const ret = WasmBlockchain.__wrap(arg0);
|
|
3462
3471
|
return addHeapObject(ret);
|
|
3463
3472
|
};
|
|
3464
3473
|
|
|
3465
|
-
module.exports.
|
|
3466
|
-
const ret =
|
|
3474
|
+
module.exports.__wbg_wasmwalletslip_new = function(arg0) {
|
|
3475
|
+
const ret = WasmWalletSlip.__wrap(arg0);
|
|
3467
3476
|
return addHeapObject(ret);
|
|
3468
3477
|
};
|
|
3469
3478
|
|
|
@@ -3472,18 +3481,18 @@ module.exports.__wbg_wasmnft_new = function(arg0) {
|
|
|
3472
3481
|
return addHeapObject(ret);
|
|
3473
3482
|
};
|
|
3474
3483
|
|
|
3475
|
-
module.exports.
|
|
3476
|
-
const ret =
|
|
3484
|
+
module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
|
|
3485
|
+
const ret = WasmBalanceSnapshot.__wrap(arg0);
|
|
3477
3486
|
return addHeapObject(ret);
|
|
3478
3487
|
};
|
|
3479
3488
|
|
|
3480
|
-
module.exports.
|
|
3481
|
-
const ret =
|
|
3489
|
+
module.exports.__wbg_wasmslip_new = function(arg0) {
|
|
3490
|
+
const ret = WasmSlip.__wrap(arg0);
|
|
3482
3491
|
return addHeapObject(ret);
|
|
3483
3492
|
};
|
|
3484
3493
|
|
|
3485
|
-
module.exports.
|
|
3486
|
-
const ret =
|
|
3494
|
+
module.exports.__wbg_wasmnetworkpeer_new = function(arg0) {
|
|
3495
|
+
const ret = WasmNetworkPeer.__wrap(arg0);
|
|
3487
3496
|
return addHeapObject(ret);
|
|
3488
3497
|
};
|
|
3489
3498
|
|
|
@@ -3577,8 +3586,8 @@ module.exports.__wbg_error_696630710900ec44 = function(arg0, arg1, arg2, arg3) {
|
|
|
3577
3586
|
console.error(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
|
|
3578
3587
|
};
|
|
3579
3588
|
|
|
3580
|
-
module.exports.
|
|
3581
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3589
|
+
module.exports.__wbindgen_closure_wrapper2900 = function(arg0, arg1, arg2) {
|
|
3590
|
+
const ret = makeMutClosure(arg0, arg1, 805, __wbg_adapter_40);
|
|
3582
3591
|
return addHeapObject(ret);
|
|
3583
3592
|
};
|
|
3584
3593
|
|