saito-wasm 0.2.166 → 0.2.167
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 +2 -1
- package/package.json +1 -1
- package/pkg/node/index.d.ts +148 -148
- package/pkg/node/index.js +297 -297
- package/pkg/node/index_bg.wasm +0 -0
- package/pkg/node/package.json +3 -3
- package/pkg/web/index.d.ts +148 -148
- package/pkg/web/index.js +295 -295
- package/pkg/web/index_bg.wasm +0 -0
- package/pkg/web/package.json +1 -1
- /package/pkg/node/snippets/{saito-wasm-083e81febfc0ef0c → saito-wasm-25d13ca010c26982}/js/msg_handler.js +0 -0
- /package/pkg/web/snippets/{saito-wasm-083e81febfc0ef0c → saito-wasm-25d13ca010c26982}/js/msg_handler.js +0 -0
package/pkg/node/index.js
CHANGED
|
@@ -1,29 +1,9 @@
|
|
|
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-25d13ca010c26982/js/msg_handler.js`);
|
|
5
5
|
const { TextDecoder, TextEncoder } = require(`util`);
|
|
6
6
|
|
|
7
|
-
const heap = new Array(128).fill(undefined);
|
|
8
|
-
|
|
9
|
-
heap.push(undefined, null, true, false);
|
|
10
|
-
|
|
11
|
-
function getObject(idx) { return heap[idx]; }
|
|
12
|
-
|
|
13
|
-
let heap_next = heap.length;
|
|
14
|
-
|
|
15
|
-
function dropObject(idx) {
|
|
16
|
-
if (idx < 132) return;
|
|
17
|
-
heap[idx] = heap_next;
|
|
18
|
-
heap_next = idx;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
function takeObject(idx) {
|
|
22
|
-
const ret = getObject(idx);
|
|
23
|
-
dropObject(idx);
|
|
24
|
-
return ret;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
7
|
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
28
8
|
|
|
29
9
|
cachedTextDecoder.decode();
|
|
@@ -42,6 +22,12 @@ function getStringFromWasm0(ptr, len) {
|
|
|
42
22
|
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
43
23
|
}
|
|
44
24
|
|
|
25
|
+
const heap = new Array(128).fill(undefined);
|
|
26
|
+
|
|
27
|
+
heap.push(undefined, null, true, false);
|
|
28
|
+
|
|
29
|
+
let heap_next = heap.length;
|
|
30
|
+
|
|
45
31
|
function addHeapObject(obj) {
|
|
46
32
|
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
47
33
|
const idx = heap_next;
|
|
@@ -51,6 +37,20 @@ function addHeapObject(obj) {
|
|
|
51
37
|
return idx;
|
|
52
38
|
}
|
|
53
39
|
|
|
40
|
+
function getObject(idx) { return heap[idx]; }
|
|
41
|
+
|
|
42
|
+
function dropObject(idx) {
|
|
43
|
+
if (idx < 132) return;
|
|
44
|
+
heap[idx] = heap_next;
|
|
45
|
+
heap_next = idx;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
function takeObject(idx) {
|
|
49
|
+
const ret = getObject(idx);
|
|
50
|
+
dropObject(idx);
|
|
51
|
+
return ret;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
54
|
let WASM_VECTOR_LEN = 0;
|
|
55
55
|
|
|
56
56
|
let cachedTextEncoder = new TextEncoder('utf-8');
|
|
@@ -251,232 +251,222 @@ function handleError(f, args) {
|
|
|
251
251
|
}
|
|
252
252
|
}
|
|
253
253
|
/**
|
|
254
|
-
* @returns {Promise<
|
|
254
|
+
* @returns {Promise<boolean>}
|
|
255
255
|
*/
|
|
256
|
-
module.exports.
|
|
257
|
-
const ret = wasm.
|
|
256
|
+
module.exports.produce_block_with_gt = function() {
|
|
257
|
+
const ret = wasm.produce_block_with_gt();
|
|
258
258
|
return takeObject(ret);
|
|
259
259
|
};
|
|
260
260
|
|
|
261
261
|
/**
|
|
262
|
-
* @param {
|
|
262
|
+
* @param {bigint} duration_in_ms
|
|
263
263
|
* @returns {Promise<void>}
|
|
264
264
|
*/
|
|
265
|
-
module.exports.
|
|
266
|
-
|
|
267
|
-
var ptr0 = snapshot.__destroy_into_raw();
|
|
268
|
-
const ret = wasm.update_from_balance_snapshot(ptr0);
|
|
265
|
+
module.exports.process_timer_event = function(duration_in_ms) {
|
|
266
|
+
const ret = wasm.process_timer_event(duration_in_ms);
|
|
269
267
|
return takeObject(ret);
|
|
270
268
|
};
|
|
271
269
|
|
|
272
270
|
/**
|
|
273
|
-
* @
|
|
271
|
+
* @param {Array<any>} public_keys
|
|
272
|
+
* @param {BigUint64Array} amounts
|
|
273
|
+
* @param {bigint} fee
|
|
274
|
+
* @param {boolean} _force_merge
|
|
275
|
+
* @returns {Promise<WasmTransaction>}
|
|
274
276
|
*/
|
|
275
|
-
module.exports.
|
|
276
|
-
const ret = wasm.
|
|
277
|
+
module.exports.create_transaction_with_multiple_payments = function(public_keys, amounts, fee, _force_merge) {
|
|
278
|
+
const ret = wasm.create_transaction_with_multiple_payments(addHeapObject(public_keys), addHeapObject(amounts), fee, _force_merge);
|
|
277
279
|
return takeObject(ret);
|
|
278
280
|
};
|
|
279
281
|
|
|
280
282
|
/**
|
|
281
|
-
* @returns {Promise<
|
|
283
|
+
* @returns {Promise<boolean>}
|
|
282
284
|
*/
|
|
283
|
-
module.exports.
|
|
284
|
-
const ret = wasm.
|
|
285
|
+
module.exports.produce_block_without_gt = function() {
|
|
286
|
+
const ret = wasm.produce_block_without_gt();
|
|
285
287
|
return takeObject(ret);
|
|
286
288
|
};
|
|
287
289
|
|
|
288
290
|
/**
|
|
289
|
-
* @param {
|
|
290
|
-
* @
|
|
291
|
+
* @param {Uint8Array} buffer
|
|
292
|
+
* @param {number} msg_index
|
|
293
|
+
* @param {bigint} peer_index
|
|
294
|
+
* @returns {Promise<void>}
|
|
291
295
|
*/
|
|
292
|
-
module.exports.
|
|
293
|
-
const ret = wasm.
|
|
296
|
+
module.exports.send_api_success = function(buffer, msg_index, peer_index) {
|
|
297
|
+
const ret = wasm.send_api_success(addHeapObject(buffer), msg_index, peer_index);
|
|
294
298
|
return takeObject(ret);
|
|
295
299
|
};
|
|
296
300
|
|
|
297
301
|
/**
|
|
298
|
-
* @param {
|
|
299
|
-
* @param {
|
|
300
|
-
* @param {
|
|
301
|
-
* @
|
|
302
|
-
* @param {string} recipient_public_key
|
|
303
|
-
* @param {string} nft_type
|
|
304
|
-
* @returns {Promise<WasmTransaction>}
|
|
302
|
+
* @param {number} major
|
|
303
|
+
* @param {number} minor
|
|
304
|
+
* @param {number} patch
|
|
305
|
+
* @returns {Promise<void>}
|
|
305
306
|
*/
|
|
306
|
-
module.exports.
|
|
307
|
-
const ret = wasm.
|
|
307
|
+
module.exports.set_wallet_version = function(major, minor, patch) {
|
|
308
|
+
const ret = wasm.set_wallet_version(major, minor, patch);
|
|
308
309
|
return takeObject(ret);
|
|
309
310
|
};
|
|
310
311
|
|
|
311
312
|
/**
|
|
313
|
+
* @param {Uint8Array} hash
|
|
314
|
+
* @param {bigint} block_id
|
|
312
315
|
* @param {bigint} peer_index
|
|
313
316
|
* @returns {Promise<void>}
|
|
314
317
|
*/
|
|
315
|
-
module.exports.
|
|
316
|
-
const ret = wasm.
|
|
318
|
+
module.exports.process_failed_block_fetch = function(hash, block_id, peer_index) {
|
|
319
|
+
const ret = wasm.process_failed_block_fetch(addHeapObject(hash), block_id, peer_index);
|
|
317
320
|
return takeObject(ret);
|
|
318
321
|
};
|
|
319
322
|
|
|
320
323
|
/**
|
|
321
|
-
* @
|
|
324
|
+
* @param {string} block_hash
|
|
325
|
+
* @returns {Promise<WasmBlock>}
|
|
322
326
|
*/
|
|
323
|
-
module.exports.
|
|
324
|
-
const ret = wasm.
|
|
327
|
+
module.exports.get_block = function(block_hash) {
|
|
328
|
+
const ret = wasm.get_block(addHeapObject(block_hash));
|
|
325
329
|
return takeObject(ret);
|
|
326
330
|
};
|
|
327
331
|
|
|
328
332
|
/**
|
|
329
|
-
* @param {
|
|
330
|
-
* @returns {
|
|
333
|
+
* @param {string} private_key
|
|
334
|
+
* @returns {string}
|
|
331
335
|
*/
|
|
332
|
-
module.exports.
|
|
333
|
-
|
|
334
|
-
|
|
336
|
+
module.exports.generate_public_key = function(private_key) {
|
|
337
|
+
try {
|
|
338
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
339
|
+
wasm.generate_public_key(retptr, addHeapObject(private_key));
|
|
340
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
341
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
342
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
343
|
+
if (r2) {
|
|
344
|
+
throw takeObject(r1);
|
|
345
|
+
}
|
|
346
|
+
return takeObject(r0);
|
|
347
|
+
} finally {
|
|
348
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
349
|
+
}
|
|
335
350
|
};
|
|
336
351
|
|
|
337
352
|
/**
|
|
338
|
-
* @
|
|
339
|
-
* @returns {boolean}
|
|
353
|
+
* @returns {Promise<Array<any>>}
|
|
340
354
|
*/
|
|
341
|
-
module.exports.
|
|
342
|
-
const ret = wasm.
|
|
343
|
-
return ret
|
|
355
|
+
module.exports.get_nft_list = function() {
|
|
356
|
+
const ret = wasm.get_nft_list();
|
|
357
|
+
return takeObject(ret);
|
|
344
358
|
};
|
|
345
359
|
|
|
346
360
|
/**
|
|
347
|
-
* @param {
|
|
348
|
-
* @param {string}
|
|
349
|
-
* @param {
|
|
350
|
-
* @
|
|
351
|
-
* @param {boolean} delete_old_blocks
|
|
352
|
-
* @returns {Promise<any>}
|
|
361
|
+
* @param {Uint8Array} buffer
|
|
362
|
+
* @param {string} signature
|
|
363
|
+
* @param {string} public_key
|
|
364
|
+
* @returns {boolean}
|
|
353
365
|
*/
|
|
354
|
-
module.exports.
|
|
355
|
-
const ret = wasm.
|
|
356
|
-
return
|
|
366
|
+
module.exports.verify_signature = function(buffer, signature, public_key) {
|
|
367
|
+
const ret = wasm.verify_signature(addHeapObject(buffer), addHeapObject(signature), addHeapObject(public_key));
|
|
368
|
+
return ret !== 0;
|
|
357
369
|
};
|
|
358
370
|
|
|
359
371
|
/**
|
|
360
|
-
* @
|
|
361
|
-
* @param {string} slip1_utxo_key
|
|
362
|
-
* @param {string} slip2_utxo_key
|
|
363
|
-
* @param {string} slip3_utxo_key
|
|
364
|
-
* @param {string} recipient_public_key
|
|
365
|
-
* @param {Uint8Array} tx_msg
|
|
366
|
-
* @returns {Promise<WasmTransaction>}
|
|
372
|
+
* @returns {Promise<string>}
|
|
367
373
|
*/
|
|
368
|
-
module.exports.
|
|
369
|
-
const ret = wasm.
|
|
374
|
+
module.exports.get_stats = function() {
|
|
375
|
+
const ret = wasm.get_stats();
|
|
370
376
|
return takeObject(ret);
|
|
371
377
|
};
|
|
372
378
|
|
|
373
379
|
/**
|
|
374
|
-
* @
|
|
375
|
-
* @param {string} slip2_utxo_key
|
|
376
|
-
* @param {string} slip3_utxo_key
|
|
377
|
-
* @returns {Promise<WasmTransaction>}
|
|
380
|
+
* @returns {Promise<any>}
|
|
378
381
|
*/
|
|
379
|
-
module.exports.
|
|
380
|
-
const ret = wasm.
|
|
382
|
+
module.exports.get_confirmations = function() {
|
|
383
|
+
const ret = wasm.get_confirmations();
|
|
381
384
|
return takeObject(ret);
|
|
382
385
|
};
|
|
383
386
|
|
|
384
387
|
/**
|
|
385
|
-
* @returns {Promise<
|
|
388
|
+
* @returns {Promise<string>}
|
|
386
389
|
*/
|
|
387
|
-
module.exports.
|
|
388
|
-
const ret = wasm.
|
|
390
|
+
module.exports.get_latest_block_hash = function() {
|
|
391
|
+
const ret = wasm.get_latest_block_hash();
|
|
389
392
|
return takeObject(ret);
|
|
390
393
|
};
|
|
391
394
|
|
|
392
395
|
/**
|
|
393
|
-
* @
|
|
396
|
+
* @param {Uint8Array} buffer
|
|
397
|
+
* @returns {string}
|
|
394
398
|
*/
|
|
395
|
-
module.exports.
|
|
396
|
-
const ret = wasm.
|
|
399
|
+
module.exports.hash = function(buffer) {
|
|
400
|
+
const ret = wasm.hash(addHeapObject(buffer));
|
|
397
401
|
return takeObject(ret);
|
|
398
402
|
};
|
|
399
403
|
|
|
400
404
|
/**
|
|
401
|
-
* @
|
|
402
|
-
* @param {Uint8Array} tx_msg
|
|
403
|
-
* @returns {Promise<WasmTransaction>}
|
|
405
|
+
* @returns {Promise<string>}
|
|
404
406
|
*/
|
|
405
|
-
module.exports.
|
|
406
|
-
const
|
|
407
|
-
const len0 = WASM_VECTOR_LEN;
|
|
408
|
-
const ret = wasm.create_merge_bound_transaction(ptr0, len0, addHeapObject(tx_msg));
|
|
407
|
+
module.exports.get_peer_stats = function() {
|
|
408
|
+
const ret = wasm.get_peer_stats();
|
|
409
409
|
return takeObject(ret);
|
|
410
410
|
};
|
|
411
411
|
|
|
412
412
|
/**
|
|
413
|
-
* @
|
|
413
|
+
* @param {bigint} peer_index
|
|
414
|
+
* @param {string} public_key
|
|
415
|
+
* @returns {Promise<void>}
|
|
414
416
|
*/
|
|
415
|
-
module.exports.
|
|
416
|
-
const ret = wasm.
|
|
417
|
+
module.exports.process_stun_peer = function(peer_index, public_key) {
|
|
418
|
+
const ret = wasm.process_stun_peer(peer_index, addHeapObject(public_key));
|
|
417
419
|
return takeObject(ret);
|
|
418
420
|
};
|
|
419
421
|
|
|
420
422
|
/**
|
|
421
|
-
* @returns {Promise<
|
|
423
|
+
* @returns {Promise<WasmWallet>}
|
|
422
424
|
*/
|
|
423
|
-
module.exports.
|
|
424
|
-
const ret = wasm.
|
|
425
|
+
module.exports.get_wallet = function() {
|
|
426
|
+
const ret = wasm.get_wallet();
|
|
425
427
|
return takeObject(ret);
|
|
426
428
|
};
|
|
427
429
|
|
|
428
430
|
/**
|
|
429
431
|
* @param {Uint8Array} buffer
|
|
430
|
-
* @param {
|
|
431
|
-
* @returns {
|
|
432
|
+
* @param {bigint} peer_index
|
|
433
|
+
* @returns {Promise<void>}
|
|
432
434
|
*/
|
|
433
|
-
module.exports.
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
wasm.sign_buffer(retptr, addHeapObject(buffer), addHeapObject(private_key));
|
|
437
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
438
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
439
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
440
|
-
if (r2) {
|
|
441
|
-
throw takeObject(r1);
|
|
442
|
-
}
|
|
443
|
-
return takeObject(r0);
|
|
444
|
-
} finally {
|
|
445
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
446
|
-
}
|
|
435
|
+
module.exports.process_msg_buffer_from_peer = function(buffer, peer_index) {
|
|
436
|
+
const ret = wasm.process_msg_buffer_from_peer(addHeapObject(buffer), peer_index);
|
|
437
|
+
return takeObject(ret);
|
|
447
438
|
};
|
|
448
439
|
|
|
449
440
|
/**
|
|
450
|
-
* @
|
|
451
|
-
* @returns {Promise<WasmPeer | undefined>}
|
|
441
|
+
* @returns {Promise<bigint>}
|
|
452
442
|
*/
|
|
453
|
-
module.exports.
|
|
454
|
-
const ret = wasm.
|
|
443
|
+
module.exports.get_next_peer_index = function() {
|
|
444
|
+
const ret = wasm.get_next_peer_index();
|
|
455
445
|
return takeObject(ret);
|
|
456
446
|
};
|
|
457
447
|
|
|
458
448
|
/**
|
|
459
|
-
* @returns {Promise<
|
|
449
|
+
* @returns {Promise<Array<any>>}
|
|
460
450
|
*/
|
|
461
|
-
module.exports.
|
|
462
|
-
const ret = wasm.
|
|
451
|
+
module.exports.get_peers = function() {
|
|
452
|
+
const ret = wasm.get_peers();
|
|
463
453
|
return takeObject(ret);
|
|
464
454
|
};
|
|
465
455
|
|
|
466
456
|
/**
|
|
467
|
-
* @returns {
|
|
457
|
+
* @returns {Promise<WasmBlockchain>}
|
|
468
458
|
*/
|
|
469
|
-
module.exports.
|
|
470
|
-
const ret = wasm.
|
|
459
|
+
module.exports.get_blockchain = function() {
|
|
460
|
+
const ret = wasm.get_blockchain();
|
|
471
461
|
return takeObject(ret);
|
|
472
462
|
};
|
|
473
463
|
|
|
474
464
|
/**
|
|
475
|
-
* @param {
|
|
476
|
-
* @returns {Promise<
|
|
465
|
+
* @param {bigint} threshold
|
|
466
|
+
* @returns {Promise<void>}
|
|
477
467
|
*/
|
|
478
|
-
module.exports.
|
|
479
|
-
const ret = wasm.
|
|
468
|
+
module.exports.write_issuance_file = function(threshold) {
|
|
469
|
+
const ret = wasm.write_issuance_file(threshold);
|
|
480
470
|
return takeObject(ret);
|
|
481
471
|
};
|
|
482
472
|
|
|
@@ -492,91 +482,81 @@ module.exports.send_api_error = function(buffer, msg_index, peer_index) {
|
|
|
492
482
|
};
|
|
493
483
|
|
|
494
484
|
/**
|
|
495
|
-
* @param {
|
|
496
|
-
* @param {
|
|
497
|
-
* @param {bigint} fee
|
|
498
|
-
* @param {boolean} _force_merge
|
|
485
|
+
* @param {string} nft_id_hex
|
|
486
|
+
* @param {Uint8Array} tx_msg
|
|
499
487
|
* @returns {Promise<WasmTransaction>}
|
|
500
488
|
*/
|
|
501
|
-
module.exports.
|
|
502
|
-
const
|
|
489
|
+
module.exports.create_merge_bound_transaction = function(nft_id_hex, tx_msg) {
|
|
490
|
+
const ptr0 = passStringToWasm0(nft_id_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
491
|
+
const len0 = WASM_VECTOR_LEN;
|
|
492
|
+
const ret = wasm.create_merge_bound_transaction(ptr0, len0, addHeapObject(tx_msg));
|
|
503
493
|
return takeObject(ret);
|
|
504
494
|
};
|
|
505
495
|
|
|
506
496
|
/**
|
|
507
|
-
* @param {Uint8Array} buffer
|
|
508
497
|
* @returns {string}
|
|
509
498
|
*/
|
|
510
|
-
module.exports.
|
|
511
|
-
const ret = wasm.
|
|
512
|
-
return takeObject(ret);
|
|
513
|
-
};
|
|
514
|
-
|
|
515
|
-
/**
|
|
516
|
-
* @returns {Promise<boolean>}
|
|
517
|
-
*/
|
|
518
|
-
module.exports.produce_block_with_gt = function() {
|
|
519
|
-
const ret = wasm.produce_block_with_gt();
|
|
499
|
+
module.exports.generate_private_key = function() {
|
|
500
|
+
const ret = wasm.generate_private_key();
|
|
520
501
|
return takeObject(ret);
|
|
521
502
|
};
|
|
522
503
|
|
|
523
504
|
/**
|
|
524
|
-
* @param {Uint8Array} hash
|
|
525
|
-
* @param {bigint} block_id
|
|
526
505
|
* @param {bigint} peer_index
|
|
527
506
|
* @returns {Promise<void>}
|
|
528
507
|
*/
|
|
529
|
-
module.exports.
|
|
530
|
-
const ret = wasm.
|
|
508
|
+
module.exports.remove_stun_peer = function(peer_index) {
|
|
509
|
+
const ret = wasm.remove_stun_peer(peer_index);
|
|
531
510
|
return takeObject(ret);
|
|
532
511
|
};
|
|
533
512
|
|
|
534
513
|
/**
|
|
535
|
-
* @param {
|
|
536
|
-
* @param {Uint8Array} hash
|
|
537
|
-
* @param {bigint} block_id
|
|
538
|
-
* @param {bigint} peer_index
|
|
514
|
+
* @param {WasmBalanceSnapshot} snapshot
|
|
539
515
|
* @returns {Promise<void>}
|
|
540
516
|
*/
|
|
541
|
-
module.exports.
|
|
542
|
-
|
|
517
|
+
module.exports.update_from_balance_snapshot = function(snapshot) {
|
|
518
|
+
_assertClass(snapshot, WasmBalanceSnapshot);
|
|
519
|
+
var ptr0 = snapshot.__destroy_into_raw();
|
|
520
|
+
const ret = wasm.update_from_balance_snapshot(ptr0);
|
|
543
521
|
return takeObject(ret);
|
|
544
522
|
};
|
|
545
523
|
|
|
546
524
|
/**
|
|
547
|
-
* @
|
|
548
|
-
* @param {number} minor
|
|
549
|
-
* @param {number} patch
|
|
550
|
-
* @returns {Promise<void>}
|
|
525
|
+
* @returns {Promise<string>}
|
|
551
526
|
*/
|
|
552
|
-
module.exports.
|
|
553
|
-
const ret = wasm.
|
|
527
|
+
module.exports.get_congestion_stats = function() {
|
|
528
|
+
const ret = wasm.get_congestion_stats();
|
|
554
529
|
return takeObject(ret);
|
|
555
530
|
};
|
|
556
531
|
|
|
557
532
|
/**
|
|
558
|
-
* @
|
|
533
|
+
* @param {Uint8Array} buffer
|
|
534
|
+
* @param {Uint8Array} hash
|
|
535
|
+
* @param {bigint} block_id
|
|
536
|
+
* @param {bigint} peer_index
|
|
537
|
+
* @returns {Promise<void>}
|
|
559
538
|
*/
|
|
560
|
-
module.exports.
|
|
561
|
-
const ret = wasm.
|
|
539
|
+
module.exports.process_fetched_block = function(buffer, hash, block_id, peer_index) {
|
|
540
|
+
const ret = wasm.process_fetched_block(addHeapObject(buffer), addHeapObject(hash), block_id, peer_index);
|
|
562
541
|
return takeObject(ret);
|
|
563
542
|
};
|
|
564
543
|
|
|
565
544
|
/**
|
|
566
|
-
* @param {
|
|
567
|
-
* @
|
|
545
|
+
* @param {string} slip1_utxo_key
|
|
546
|
+
* @param {string} slip2_utxo_key
|
|
547
|
+
* @param {string} slip3_utxo_key
|
|
548
|
+
* @returns {Promise<WasmTransaction>}
|
|
568
549
|
*/
|
|
569
|
-
module.exports.
|
|
570
|
-
const ret = wasm.
|
|
550
|
+
module.exports.create_remove_bound_transaction = function(slip1_utxo_key, slip2_utxo_key, slip3_utxo_key) {
|
|
551
|
+
const ret = wasm.create_remove_bound_transaction(addHeapObject(slip1_utxo_key), addHeapObject(slip2_utxo_key), addHeapObject(slip3_utxo_key));
|
|
571
552
|
return takeObject(ret);
|
|
572
553
|
};
|
|
573
554
|
|
|
574
555
|
/**
|
|
575
|
-
* @param {bigint} peer_index
|
|
576
556
|
* @returns {Promise<void>}
|
|
577
557
|
*/
|
|
578
|
-
module.exports.
|
|
579
|
-
const ret = wasm.
|
|
558
|
+
module.exports.disable_producing_blocks_by_timer = function() {
|
|
559
|
+
const ret = wasm.disable_producing_blocks_by_timer();
|
|
580
560
|
return takeObject(ret);
|
|
581
561
|
};
|
|
582
562
|
|
|
@@ -593,58 +573,86 @@ module.exports.create_transaction = function(public_key, amount, fee, force_merg
|
|
|
593
573
|
};
|
|
594
574
|
|
|
595
575
|
/**
|
|
596
|
-
* @
|
|
597
|
-
* @returns {Promise<WasmBalanceSnapshot>}
|
|
576
|
+
* @returns {Promise<Array<any>>}
|
|
598
577
|
*/
|
|
599
|
-
module.exports.
|
|
600
|
-
const ret = wasm.
|
|
578
|
+
module.exports.get_mempool_txs = function() {
|
|
579
|
+
const ret = wasm.get_mempool_txs();
|
|
601
580
|
return takeObject(ret);
|
|
602
581
|
};
|
|
603
582
|
|
|
604
583
|
/**
|
|
605
|
-
* @param {Uint8Array} buffer
|
|
606
|
-
* @param {bigint} peer_index
|
|
607
584
|
* @returns {Promise<void>}
|
|
608
585
|
*/
|
|
609
|
-
module.exports.
|
|
610
|
-
const ret = wasm.
|
|
586
|
+
module.exports.start_from_received_ghost_chain = function() {
|
|
587
|
+
const ret = wasm.start_from_received_ghost_chain();
|
|
611
588
|
return takeObject(ret);
|
|
612
589
|
};
|
|
613
590
|
|
|
614
591
|
/**
|
|
615
592
|
* @param {bigint} peer_index
|
|
616
|
-
* @
|
|
617
|
-
* @returns {Promise<void>}
|
|
593
|
+
* @returns {Promise<WasmPeer | undefined>}
|
|
618
594
|
*/
|
|
619
|
-
module.exports.
|
|
620
|
-
const ret = wasm.
|
|
595
|
+
module.exports.get_peer = function(peer_index) {
|
|
596
|
+
const ret = wasm.get_peer(peer_index);
|
|
621
597
|
return takeObject(ret);
|
|
622
598
|
};
|
|
623
599
|
|
|
624
600
|
/**
|
|
625
|
-
* @param {
|
|
626
|
-
* @param {
|
|
627
|
-
* @param {
|
|
628
|
-
* @
|
|
601
|
+
* @param {bigint} amt
|
|
602
|
+
* @param {string} slip1_utxo_key
|
|
603
|
+
* @param {string} slip2_utxo_key
|
|
604
|
+
* @param {string} slip3_utxo_key
|
|
605
|
+
* @param {string} recipient_public_key
|
|
606
|
+
* @param {Uint8Array} tx_msg
|
|
607
|
+
* @returns {Promise<WasmTransaction>}
|
|
629
608
|
*/
|
|
630
|
-
module.exports.
|
|
631
|
-
const ret = wasm.
|
|
609
|
+
module.exports.create_send_bound_transaction = function(amt, slip1_utxo_key, slip2_utxo_key, slip3_utxo_key, recipient_public_key, tx_msg) {
|
|
610
|
+
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));
|
|
632
611
|
return takeObject(ret);
|
|
633
612
|
};
|
|
634
613
|
|
|
635
614
|
/**
|
|
636
|
-
* @
|
|
615
|
+
* @param {string} key
|
|
616
|
+
* @returns {boolean}
|
|
637
617
|
*/
|
|
638
|
-
module.exports.
|
|
639
|
-
const ret = wasm.
|
|
618
|
+
module.exports.is_valid_public_key = function(key) {
|
|
619
|
+
const ret = wasm.is_valid_public_key(addHeapObject(key));
|
|
620
|
+
return ret !== 0;
|
|
621
|
+
};
|
|
622
|
+
|
|
623
|
+
/**
|
|
624
|
+
* @param {Array<any>} keys
|
|
625
|
+
* @returns {Promise<WasmBalanceSnapshot>}
|
|
626
|
+
*/
|
|
627
|
+
module.exports.get_balance_snapshot = function(keys) {
|
|
628
|
+
const ret = wasm.get_balance_snapshot(addHeapObject(keys));
|
|
640
629
|
return takeObject(ret);
|
|
641
630
|
};
|
|
642
631
|
|
|
643
632
|
/**
|
|
644
|
-
* @
|
|
633
|
+
* @param {string} config_json
|
|
634
|
+
* @param {string} private_key
|
|
635
|
+
* @param {number} log_level_num
|
|
636
|
+
* @param {bigint} hasten_multiplier
|
|
637
|
+
* @param {boolean} delete_old_blocks
|
|
638
|
+
* @returns {Promise<any>}
|
|
645
639
|
*/
|
|
646
|
-
module.exports.
|
|
647
|
-
const ret = wasm.
|
|
640
|
+
module.exports.initialize = function(config_json, private_key, log_level_num, hasten_multiplier, delete_old_blocks) {
|
|
641
|
+
const ret = wasm.initialize(addHeapObject(config_json), addHeapObject(private_key), log_level_num, hasten_multiplier, delete_old_blocks);
|
|
642
|
+
return takeObject(ret);
|
|
643
|
+
};
|
|
644
|
+
|
|
645
|
+
/**
|
|
646
|
+
* @param {string} slip1_utxo_key
|
|
647
|
+
* @param {string} slip2_utxo_key
|
|
648
|
+
* @param {string} slip3_utxo_key
|
|
649
|
+
* @param {number} left_count
|
|
650
|
+
* @param {number} right_count
|
|
651
|
+
* @param {Uint8Array} tx_msg
|
|
652
|
+
* @returns {Promise<WasmTransaction>}
|
|
653
|
+
*/
|
|
654
|
+
module.exports.create_split_bound_transaction = function(slip1_utxo_key, slip2_utxo_key, slip3_utxo_key, left_count, right_count, tx_msg) {
|
|
655
|
+
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));
|
|
648
656
|
return takeObject(ret);
|
|
649
657
|
};
|
|
650
658
|
|
|
@@ -660,12 +668,11 @@ module.exports.send_api_call = function(buffer, msg_index, peer_index) {
|
|
|
660
668
|
};
|
|
661
669
|
|
|
662
670
|
/**
|
|
663
|
-
* @param {
|
|
664
|
-
* @
|
|
665
|
-
* @returns {Promise<void>}
|
|
671
|
+
* @param {string} public_key
|
|
672
|
+
* @returns {Promise<Array<any>>}
|
|
666
673
|
*/
|
|
667
|
-
module.exports.
|
|
668
|
-
const ret = wasm.
|
|
674
|
+
module.exports.get_account_slips = function(public_key) {
|
|
675
|
+
const ret = wasm.get_account_slips(addHeapObject(public_key));
|
|
669
676
|
return takeObject(ret);
|
|
670
677
|
};
|
|
671
678
|
|
|
@@ -680,40 +687,56 @@ module.exports.propagate_transaction = function(tx) {
|
|
|
680
687
|
};
|
|
681
688
|
|
|
682
689
|
/**
|
|
683
|
-
* @
|
|
690
|
+
* @param {bigint} peer_index
|
|
691
|
+
* @param {string} ip
|
|
692
|
+
* @returns {Promise<void>}
|
|
684
693
|
*/
|
|
685
|
-
module.exports.
|
|
686
|
-
const ret = wasm.
|
|
694
|
+
module.exports.process_new_peer = function(peer_index, ip) {
|
|
695
|
+
const ret = wasm.process_new_peer(peer_index, addHeapObject(ip));
|
|
687
696
|
return takeObject(ret);
|
|
688
697
|
};
|
|
689
698
|
|
|
690
699
|
/**
|
|
691
|
-
* @param {
|
|
692
|
-
* @
|
|
693
|
-
* @param {string} public_key
|
|
694
|
-
* @returns {boolean}
|
|
700
|
+
* @param {bigint} current_time
|
|
701
|
+
* @returns {Promise<void>}
|
|
695
702
|
*/
|
|
696
|
-
module.exports.
|
|
697
|
-
const ret = wasm.
|
|
698
|
-
return ret
|
|
703
|
+
module.exports.process_stat_interval = function(current_time) {
|
|
704
|
+
const ret = wasm.process_stat_interval(current_time);
|
|
705
|
+
return takeObject(ret);
|
|
699
706
|
};
|
|
700
707
|
|
|
701
708
|
/**
|
|
702
|
-
* @
|
|
709
|
+
* @param {bigint} peer_index
|
|
710
|
+
* @returns {Promise<void>}
|
|
703
711
|
*/
|
|
704
|
-
module.exports.
|
|
705
|
-
const ret = wasm.
|
|
712
|
+
module.exports.process_peer_disconnection = function(peer_index) {
|
|
713
|
+
const ret = wasm.process_peer_disconnection(peer_index);
|
|
714
|
+
return takeObject(ret);
|
|
715
|
+
};
|
|
716
|
+
|
|
717
|
+
/**
|
|
718
|
+
* @param {bigint} num
|
|
719
|
+
* @param {bigint} deposit
|
|
720
|
+
* @param {Uint8Array} tx_msg
|
|
721
|
+
* @param {bigint} fee
|
|
722
|
+
* @param {string} recipient_public_key
|
|
723
|
+
* @param {string} nft_type
|
|
724
|
+
* @returns {Promise<WasmTransaction>}
|
|
725
|
+
*/
|
|
726
|
+
module.exports.create_bound_transaction = function(num, deposit, tx_msg, fee, recipient_public_key, nft_type) {
|
|
727
|
+
const ret = wasm.create_bound_transaction(num, deposit, addHeapObject(tx_msg), fee, addHeapObject(recipient_public_key), addHeapObject(nft_type));
|
|
706
728
|
return takeObject(ret);
|
|
707
729
|
};
|
|
708
730
|
|
|
709
731
|
/**
|
|
732
|
+
* @param {Uint8Array} buffer
|
|
710
733
|
* @param {string} private_key
|
|
711
734
|
* @returns {string}
|
|
712
735
|
*/
|
|
713
|
-
module.exports.
|
|
736
|
+
module.exports.sign_buffer = function(buffer, private_key) {
|
|
714
737
|
try {
|
|
715
738
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
716
|
-
wasm.
|
|
739
|
+
wasm.sign_buffer(retptr, addHeapObject(buffer), addHeapObject(private_key));
|
|
717
740
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
718
741
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
719
742
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -726,29 +749,6 @@ module.exports.generate_public_key = function(private_key) {
|
|
|
726
749
|
}
|
|
727
750
|
};
|
|
728
751
|
|
|
729
|
-
/**
|
|
730
|
-
* @param {bigint} duration_in_ms
|
|
731
|
-
* @returns {Promise<void>}
|
|
732
|
-
*/
|
|
733
|
-
module.exports.process_timer_event = function(duration_in_ms) {
|
|
734
|
-
const ret = wasm.process_timer_event(duration_in_ms);
|
|
735
|
-
return takeObject(ret);
|
|
736
|
-
};
|
|
737
|
-
|
|
738
|
-
/**
|
|
739
|
-
* @param {string} slip1_utxo_key
|
|
740
|
-
* @param {string} slip2_utxo_key
|
|
741
|
-
* @param {string} slip3_utxo_key
|
|
742
|
-
* @param {number} left_count
|
|
743
|
-
* @param {number} right_count
|
|
744
|
-
* @param {Uint8Array} tx_msg
|
|
745
|
-
* @returns {Promise<WasmTransaction>}
|
|
746
|
-
*/
|
|
747
|
-
module.exports.create_split_bound_transaction = function(slip1_utxo_key, slip2_utxo_key, slip3_utxo_key, left_count, right_count, tx_msg) {
|
|
748
|
-
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));
|
|
749
|
-
return takeObject(ret);
|
|
750
|
-
};
|
|
751
|
-
|
|
752
752
|
function __wbg_adapter_406(arg0, arg1, arg2, arg3) {
|
|
753
753
|
wasm.wasm_bindgen__convert__closures__invoke2_mut__h58ba5fc31ee09770(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
754
754
|
}
|
|
@@ -2653,23 +2653,13 @@ class WasmWalletSlip {
|
|
|
2653
2653
|
}
|
|
2654
2654
|
module.exports.WasmWalletSlip = WasmWalletSlip;
|
|
2655
2655
|
|
|
2656
|
-
module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
2657
|
-
takeObject(arg0);
|
|
2658
|
-
};
|
|
2659
|
-
|
|
2660
2656
|
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
2661
2657
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
2662
2658
|
return addHeapObject(ret);
|
|
2663
2659
|
};
|
|
2664
2660
|
|
|
2665
|
-
module.exports.
|
|
2666
|
-
|
|
2667
|
-
return addHeapObject(ret);
|
|
2668
|
-
};
|
|
2669
|
-
|
|
2670
|
-
module.exports.__wbg_wasmtransaction_new = function(arg0) {
|
|
2671
|
-
const ret = WasmTransaction.__wrap(arg0);
|
|
2672
|
-
return addHeapObject(ret);
|
|
2661
|
+
module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
2662
|
+
takeObject(arg0);
|
|
2673
2663
|
};
|
|
2674
2664
|
|
|
2675
2665
|
module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
@@ -2682,13 +2672,8 @@ module.exports.__wbg_wasmblock_new = function(arg0) {
|
|
|
2682
2672
|
return addHeapObject(ret);
|
|
2683
2673
|
};
|
|
2684
2674
|
|
|
2685
|
-
module.exports.
|
|
2686
|
-
const ret =
|
|
2687
|
-
return addHeapObject(ret);
|
|
2688
|
-
};
|
|
2689
|
-
|
|
2690
|
-
module.exports.__wbg_wasmnft_new = function(arg0) {
|
|
2691
|
-
const ret = WasmNFT.__wrap(arg0);
|
|
2675
|
+
module.exports.__wbg_wasmtransaction_new = function(arg0) {
|
|
2676
|
+
const ret = WasmTransaction.__wrap(arg0);
|
|
2692
2677
|
return addHeapObject(ret);
|
|
2693
2678
|
};
|
|
2694
2679
|
|
|
@@ -2701,18 +2686,18 @@ module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
|
2701
2686
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
2702
2687
|
};
|
|
2703
2688
|
|
|
2704
|
-
module.exports.
|
|
2705
|
-
const ret =
|
|
2689
|
+
module.exports.__wbg_wasmslip_new = function(arg0) {
|
|
2690
|
+
const ret = WasmSlip.__wrap(arg0);
|
|
2706
2691
|
return addHeapObject(ret);
|
|
2707
2692
|
};
|
|
2708
2693
|
|
|
2709
|
-
module.exports.
|
|
2710
|
-
const ret =
|
|
2694
|
+
module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
|
|
2695
|
+
const ret = WasmBalanceSnapshot.__wrap(arg0);
|
|
2711
2696
|
return addHeapObject(ret);
|
|
2712
2697
|
};
|
|
2713
2698
|
|
|
2714
|
-
module.exports.
|
|
2715
|
-
const ret =
|
|
2699
|
+
module.exports.__wbg_wasmpeer_new = function(arg0) {
|
|
2700
|
+
const ret = WasmPeer.__wrap(arg0);
|
|
2716
2701
|
return addHeapObject(ret);
|
|
2717
2702
|
};
|
|
2718
2703
|
|
|
@@ -2721,6 +2706,21 @@ module.exports.__wbg_wasmblockchain_new = function(arg0) {
|
|
|
2721
2706
|
return addHeapObject(ret);
|
|
2722
2707
|
};
|
|
2723
2708
|
|
|
2709
|
+
module.exports.__wbg_wasmwallet_new = function(arg0) {
|
|
2710
|
+
const ret = WasmWallet.__wrap(arg0);
|
|
2711
|
+
return addHeapObject(ret);
|
|
2712
|
+
};
|
|
2713
|
+
|
|
2714
|
+
module.exports.__wbindgen_object_clone_ref = function(arg0) {
|
|
2715
|
+
const ret = getObject(arg0);
|
|
2716
|
+
return addHeapObject(ret);
|
|
2717
|
+
};
|
|
2718
|
+
|
|
2719
|
+
module.exports.__wbg_wasmnft_new = function(arg0) {
|
|
2720
|
+
const ret = WasmNFT.__wrap(arg0);
|
|
2721
|
+
return addHeapObject(ret);
|
|
2722
|
+
};
|
|
2723
|
+
|
|
2724
2724
|
module.exports.__wbg_wasmwalletslip_new = function(arg0) {
|
|
2725
2725
|
const ret = WasmWalletSlip.__wrap(arg0);
|
|
2726
2726
|
return addHeapObject(ret);
|
|
@@ -2752,7 +2752,7 @@ module.exports.__wbindgen_in = function(arg0, arg1) {
|
|
|
2752
2752
|
return ret;
|
|
2753
2753
|
};
|
|
2754
2754
|
|
|
2755
|
-
module.exports.
|
|
2755
|
+
module.exports.__wbg_flushdata_2c769b019d5f1e66 = function(arg0, arg1) {
|
|
2756
2756
|
let deferred0_0;
|
|
2757
2757
|
let deferred0_1;
|
|
2758
2758
|
try {
|
|
@@ -2764,7 +2764,7 @@ module.exports.__wbg_flushdata_3e493160b5623279 = function(arg0, arg1) {
|
|
|
2764
2764
|
}
|
|
2765
2765
|
};
|
|
2766
2766
|
|
|
2767
|
-
module.exports.
|
|
2767
|
+
module.exports.__wbg_readvalue_19e0ac3170ed6477 = function() { return handleError(function (arg0, arg1) {
|
|
2768
2768
|
let deferred0_0;
|
|
2769
2769
|
let deferred0_1;
|
|
2770
2770
|
try {
|
|
@@ -2777,15 +2777,15 @@ module.exports.__wbg_readvalue_5d0f093e1595617d = function() { return handleErro
|
|
|
2777
2777
|
}
|
|
2778
2778
|
}, arguments) };
|
|
2779
2779
|
|
|
2780
|
-
module.exports.
|
|
2780
|
+
module.exports.__wbg_loadwallet_9ad824e287b4d1e9 = function() {
|
|
2781
2781
|
MsgHandler.load_wallet();
|
|
2782
2782
|
};
|
|
2783
2783
|
|
|
2784
|
-
module.exports.
|
|
2784
|
+
module.exports.__wbg_savewallet_c607f3a3206411cf = function() {
|
|
2785
2785
|
MsgHandler.save_wallet();
|
|
2786
2786
|
};
|
|
2787
2787
|
|
|
2788
|
-
module.exports.
|
|
2788
|
+
module.exports.__wbg_writevalue_2f493d22dc09e6f5 = function(arg0, arg1, arg2) {
|
|
2789
2789
|
let deferred0_0;
|
|
2790
2790
|
let deferred0_1;
|
|
2791
2791
|
try {
|
|
@@ -2797,7 +2797,7 @@ module.exports.__wbg_writevalue_9f48cba844bce929 = function(arg0, arg1, arg2) {
|
|
|
2797
2797
|
}
|
|
2798
2798
|
};
|
|
2799
2799
|
|
|
2800
|
-
module.exports.
|
|
2800
|
+
module.exports.__wbg_appendvalue_720c0ca8080d6eac = function(arg0, arg1, arg2) {
|
|
2801
2801
|
let deferred0_0;
|
|
2802
2802
|
let deferred0_1;
|
|
2803
2803
|
try {
|
|
@@ -2809,7 +2809,7 @@ module.exports.__wbg_appendvalue_e7ab232264abb10f = function(arg0, arg1, arg2) {
|
|
|
2809
2809
|
}
|
|
2810
2810
|
};
|
|
2811
2811
|
|
|
2812
|
-
module.exports.
|
|
2812
|
+
module.exports.__wbg_removevalue_215faba975f5b863 = function() { return handleError(function (arg0, arg1) {
|
|
2813
2813
|
let deferred0_0;
|
|
2814
2814
|
let deferred0_1;
|
|
2815
2815
|
try {
|
|
@@ -2822,11 +2822,11 @@ module.exports.__wbg_removevalue_c5af6fcdb8e65e93 = function() { return handleEr
|
|
|
2822
2822
|
}
|
|
2823
2823
|
}, arguments) };
|
|
2824
2824
|
|
|
2825
|
-
module.exports.
|
|
2825
|
+
module.exports.__wbg_sendmessage_bd6888af7ee69749 = function(arg0, arg1) {
|
|
2826
2826
|
MsgHandler.send_message(takeObject(arg0), getObject(arg1));
|
|
2827
2827
|
};
|
|
2828
2828
|
|
|
2829
|
-
module.exports.
|
|
2829
|
+
module.exports.__wbg_connecttopeer_6940934591bed84e = function() { return handleError(function (arg0, arg1, arg2) {
|
|
2830
2830
|
let deferred0_0;
|
|
2831
2831
|
let deferred0_1;
|
|
2832
2832
|
try {
|
|
@@ -2839,14 +2839,14 @@ module.exports.__wbg_connecttopeer_099b3d1c7c6e20da = function() { return handle
|
|
|
2839
2839
|
}
|
|
2840
2840
|
}, arguments) };
|
|
2841
2841
|
|
|
2842
|
-
module.exports.
|
|
2842
|
+
module.exports.__wbg_getmyservices_ba97efc7dbbb3da2 = function() {
|
|
2843
2843
|
const ret = MsgHandler.get_my_services();
|
|
2844
2844
|
_assertClass(ret, WasmPeerServiceList);
|
|
2845
2845
|
var ptr1 = ret.__destroy_into_raw();
|
|
2846
2846
|
return ptr1;
|
|
2847
2847
|
};
|
|
2848
2848
|
|
|
2849
|
-
module.exports.
|
|
2849
|
+
module.exports.__wbg_isexistingfile_7f4f0c51bececaa6 = function() { return handleError(function (arg0, arg1) {
|
|
2850
2850
|
let deferred0_0;
|
|
2851
2851
|
let deferred0_1;
|
|
2852
2852
|
try {
|
|
@@ -2859,33 +2859,33 @@ module.exports.__wbg_isexistingfile_89e9eb758e45ff5e = function() { return handl
|
|
|
2859
2859
|
}
|
|
2860
2860
|
}, arguments) };
|
|
2861
2861
|
|
|
2862
|
-
module.exports.
|
|
2862
|
+
module.exports.__wbg_processapicall_9af56479d30d7f49 = function(arg0, arg1, arg2) {
|
|
2863
2863
|
MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2864
2864
|
};
|
|
2865
2865
|
|
|
2866
|
-
module.exports.
|
|
2866
|
+
module.exports.__wbg_processapierror_1405fddcb5daf450 = function(arg0, arg1, arg2) {
|
|
2867
2867
|
MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2868
2868
|
};
|
|
2869
2869
|
|
|
2870
|
-
module.exports.
|
|
2870
|
+
module.exports.__wbg_processapisuccess_8690e76bad65861c = function(arg0, arg1, arg2) {
|
|
2871
2871
|
MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2872
2872
|
};
|
|
2873
2873
|
|
|
2874
|
-
module.exports.
|
|
2874
|
+
module.exports.__wbg_sendmessagetoall_7d5345f9160e8d4c = function(arg0, arg1) {
|
|
2875
2875
|
MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
|
|
2876
2876
|
};
|
|
2877
2877
|
|
|
2878
|
-
module.exports.
|
|
2878
|
+
module.exports.__wbg_disconnectfrompeer_86615bc01515789c = function() { return handleError(function (arg0) {
|
|
2879
2879
|
const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
|
|
2880
2880
|
return addHeapObject(ret);
|
|
2881
2881
|
}, arguments) };
|
|
2882
2882
|
|
|
2883
|
-
module.exports.
|
|
2883
|
+
module.exports.__wbg_loadblockfilelist_39475ff4bda56def = function() { return handleError(function () {
|
|
2884
2884
|
const ret = MsgHandler.load_block_file_list();
|
|
2885
2885
|
return addHeapObject(ret);
|
|
2886
2886
|
}, arguments) };
|
|
2887
2887
|
|
|
2888
|
-
module.exports.
|
|
2888
|
+
module.exports.__wbg_sendinterfaceevent_9c79439340b79f8e = function(arg0, arg1, arg2, arg3, arg4) {
|
|
2889
2889
|
let deferred0_0;
|
|
2890
2890
|
let deferred0_1;
|
|
2891
2891
|
let deferred1_0;
|
|
@@ -2902,7 +2902,7 @@ module.exports.__wbg_sendinterfaceevent_3091ea002268b66a = function(arg0, arg1,
|
|
|
2902
2902
|
}
|
|
2903
2903
|
};
|
|
2904
2904
|
|
|
2905
|
-
module.exports.
|
|
2905
|
+
module.exports.__wbg_sendblocksuccess_1c721c4150775963 = function(arg0, arg1, arg2) {
|
|
2906
2906
|
let deferred0_0;
|
|
2907
2907
|
let deferred0_1;
|
|
2908
2908
|
try {
|
|
@@ -2914,11 +2914,11 @@ module.exports.__wbg_sendblocksuccess_4076186533b0dd4b = function(arg0, arg1, ar
|
|
|
2914
2914
|
}
|
|
2915
2915
|
};
|
|
2916
2916
|
|
|
2917
|
-
module.exports.
|
|
2917
|
+
module.exports.__wbg_sendwalletupdate_ddb4fb9d9766e284 = function() {
|
|
2918
2918
|
MsgHandler.send_wallet_update();
|
|
2919
2919
|
};
|
|
2920
2920
|
|
|
2921
|
-
module.exports.
|
|
2921
|
+
module.exports.__wbg_sendnewversionalert_fa5e1d7df7e1161b = function(arg0, arg1, arg2) {
|
|
2922
2922
|
let deferred0_0;
|
|
2923
2923
|
let deferred0_1;
|
|
2924
2924
|
try {
|
|
@@ -2930,15 +2930,15 @@ module.exports.__wbg_sendnewversionalert_3ec71b6bf65d28d0 = function(arg0, arg1,
|
|
|
2930
2930
|
}
|
|
2931
2931
|
};
|
|
2932
2932
|
|
|
2933
|
-
module.exports.
|
|
2933
|
+
module.exports.__wbg_sendblockfetchstatusevent_3f27984e18d29a1c = function(arg0) {
|
|
2934
2934
|
MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
|
|
2935
2935
|
};
|
|
2936
2936
|
|
|
2937
|
-
module.exports.
|
|
2937
|
+
module.exports.__wbg_sendnewchaindetectedevent_8e502ee05519582d = function() {
|
|
2938
2938
|
MsgHandler.send_new_chain_detected_event();
|
|
2939
2939
|
};
|
|
2940
2940
|
|
|
2941
|
-
module.exports.
|
|
2941
|
+
module.exports.__wbg_fetchblockfrompeer_d09e3f0752b33dd5 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2942
2942
|
let deferred0_0;
|
|
2943
2943
|
let deferred0_1;
|
|
2944
2944
|
try {
|
|
@@ -2951,7 +2951,7 @@ module.exports.__wbg_fetchblockfrompeer_ab58f5ed93834e68 = function() { return h
|
|
|
2951
2951
|
}
|
|
2952
2952
|
}, arguments) };
|
|
2953
2953
|
|
|
2954
|
-
module.exports.
|
|
2954
|
+
module.exports.__wbg_ensureblockdirectoryexists_23741132d74452f6 = function() { return handleError(function (arg0, arg1) {
|
|
2955
2955
|
let deferred0_0;
|
|
2956
2956
|
let deferred0_1;
|
|
2957
2957
|
try {
|
|
@@ -3344,7 +3344,7 @@ module.exports.__wbindgen_debug_string = function(arg0, arg1) {
|
|
|
3344
3344
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
3345
3345
|
};
|
|
3346
3346
|
|
|
3347
|
-
module.exports.
|
|
3347
|
+
module.exports.__wbindgen_closure_wrapper1628 = function(arg0, arg1, arg2) {
|
|
3348
3348
|
const ret = makeMutClosure(arg0, arg1, 581, __wbg_adapter_38);
|
|
3349
3349
|
return addHeapObject(ret);
|
|
3350
3350
|
};
|