saito-wasm 0.2.179 → 0.2.180
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 +294 -294
- 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 +293 -293
- package/pkg/web/index_bg.wasm +0 -0
- package/pkg/web/package.json +1 -1
- /package/pkg/node/snippets/{saito-wasm-cb5d42cd87cbad30 → saito-wasm-572c1aae3abbfe8d}/js/msg_handler.js +0 -0
- /package/pkg/web/snippets/{saito-wasm-cb5d42cd87cbad30 → saito-wasm-572c1aae3abbfe8d}/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-572c1aae3abbfe8d/js/msg_handler.js`);
|
|
5
5
|
const { TextDecoder, TextEncoder } = require(`util`);
|
|
6
6
|
|
|
7
7
|
const heap = new Array(128).fill(undefined);
|
|
@@ -12,15 +12,6 @@ function getObject(idx) { return heap[idx]; }
|
|
|
12
12
|
|
|
13
13
|
let heap_next = heap.length;
|
|
14
14
|
|
|
15
|
-
function addHeapObject(obj) {
|
|
16
|
-
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
17
|
-
const idx = heap_next;
|
|
18
|
-
heap_next = heap[idx];
|
|
19
|
-
|
|
20
|
-
heap[idx] = obj;
|
|
21
|
-
return idx;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
15
|
function dropObject(idx) {
|
|
25
16
|
if (idx < 132) return;
|
|
26
17
|
heap[idx] = heap_next;
|
|
@@ -33,6 +24,15 @@ function takeObject(idx) {
|
|
|
33
24
|
return ret;
|
|
34
25
|
}
|
|
35
26
|
|
|
27
|
+
function addHeapObject(obj) {
|
|
28
|
+
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
29
|
+
const idx = heap_next;
|
|
30
|
+
heap_next = heap[idx];
|
|
31
|
+
|
|
32
|
+
heap[idx] = obj;
|
|
33
|
+
return idx;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
36
|
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
37
37
|
|
|
38
38
|
cachedTextDecoder.decode();
|
|
@@ -235,131 +235,104 @@ function _assertClass(instance, klass) {
|
|
|
235
235
|
return instance.ptr;
|
|
236
236
|
}
|
|
237
237
|
/**
|
|
238
|
-
* @
|
|
238
|
+
* @param {Uint8Array} buffer
|
|
239
|
+
* @param {string} private_key
|
|
240
|
+
* @returns {string}
|
|
239
241
|
*/
|
|
240
|
-
module.exports.
|
|
241
|
-
|
|
242
|
-
|
|
242
|
+
module.exports.sign_buffer = function(buffer, private_key) {
|
|
243
|
+
try {
|
|
244
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
245
|
+
wasm.sign_buffer(retptr, addHeapObject(buffer), addHeapObject(private_key));
|
|
246
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
247
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
248
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
249
|
+
if (r2) {
|
|
250
|
+
throw takeObject(r1);
|
|
251
|
+
}
|
|
252
|
+
return takeObject(r0);
|
|
253
|
+
} finally {
|
|
254
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
255
|
+
}
|
|
243
256
|
};
|
|
244
257
|
|
|
245
258
|
/**
|
|
246
259
|
* @param {bigint} peer_index
|
|
247
|
-
* @returns {Promise<
|
|
248
|
-
*/
|
|
249
|
-
module.exports.remove_stun_peer = function(peer_index) {
|
|
250
|
-
const ret = wasm.remove_stun_peer(peer_index);
|
|
251
|
-
return takeObject(ret);
|
|
252
|
-
};
|
|
253
|
-
|
|
254
|
-
/**
|
|
255
|
-
* @param {string} slip1_utxo_key
|
|
256
|
-
* @param {string} slip2_utxo_key
|
|
257
|
-
* @param {string} slip3_utxo_key
|
|
258
|
-
* @param {number} left_count
|
|
259
|
-
* @param {number} right_count
|
|
260
|
-
* @param {Uint8Array} tx_msg
|
|
261
|
-
* @returns {Promise<WasmTransaction>}
|
|
260
|
+
* @returns {Promise<WasmPeer | undefined>}
|
|
262
261
|
*/
|
|
263
|
-
module.exports.
|
|
264
|
-
const ret = wasm.
|
|
262
|
+
module.exports.get_peer = function(peer_index) {
|
|
263
|
+
const ret = wasm.get_peer(peer_index);
|
|
265
264
|
return takeObject(ret);
|
|
266
265
|
};
|
|
267
266
|
|
|
268
267
|
/**
|
|
269
|
-
* @
|
|
270
|
-
* @param {string} ip
|
|
271
|
-
* @returns {Promise<void>}
|
|
268
|
+
* @returns {string}
|
|
272
269
|
*/
|
|
273
|
-
module.exports.
|
|
274
|
-
const ret = wasm.
|
|
270
|
+
module.exports.generate_private_key = function() {
|
|
271
|
+
const ret = wasm.generate_private_key();
|
|
275
272
|
return takeObject(ret);
|
|
276
273
|
};
|
|
277
274
|
|
|
278
275
|
/**
|
|
279
276
|
* @returns {Promise<string>}
|
|
280
277
|
*/
|
|
281
|
-
module.exports.
|
|
282
|
-
const ret = wasm.
|
|
278
|
+
module.exports.get_latest_block_hash = function() {
|
|
279
|
+
const ret = wasm.get_latest_block_hash();
|
|
283
280
|
return takeObject(ret);
|
|
284
281
|
};
|
|
285
282
|
|
|
286
283
|
/**
|
|
287
|
-
* @param {
|
|
288
|
-
* @
|
|
289
|
-
* @param {bigint} fee
|
|
290
|
-
* @param {boolean} _force_merge
|
|
291
|
-
* @returns {Promise<WasmTransaction>}
|
|
284
|
+
* @param {string} public_key
|
|
285
|
+
* @returns {Promise<Array<any>>}
|
|
292
286
|
*/
|
|
293
|
-
module.exports.
|
|
294
|
-
const ret = wasm.
|
|
287
|
+
module.exports.get_account_slips = function(public_key) {
|
|
288
|
+
const ret = wasm.get_account_slips(addHeapObject(public_key));
|
|
295
289
|
return takeObject(ret);
|
|
296
290
|
};
|
|
297
291
|
|
|
298
292
|
/**
|
|
299
|
-
* @param {string}
|
|
300
|
-
* @returns {
|
|
301
|
-
*/
|
|
302
|
-
module.exports.generate_public_key = function(private_key) {
|
|
303
|
-
try {
|
|
304
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
305
|
-
wasm.generate_public_key(retptr, addHeapObject(private_key));
|
|
306
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
307
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
308
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
309
|
-
if (r2) {
|
|
310
|
-
throw takeObject(r1);
|
|
311
|
-
}
|
|
312
|
-
return takeObject(r0);
|
|
313
|
-
} finally {
|
|
314
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
315
|
-
}
|
|
316
|
-
};
|
|
317
|
-
|
|
318
|
-
/**
|
|
319
|
-
* @param {bigint} num
|
|
320
|
-
* @param {bigint} deposit
|
|
321
|
-
* @param {Uint8Array} tx_msg
|
|
322
|
-
* @param {bigint} fee
|
|
323
|
-
* @param {string} recipient_public_key
|
|
324
|
-
* @param {string} nft_type
|
|
325
|
-
* @returns {Promise<WasmTransaction>}
|
|
293
|
+
* @param {string} key
|
|
294
|
+
* @returns {boolean}
|
|
326
295
|
*/
|
|
327
|
-
module.exports.
|
|
328
|
-
const ret = wasm.
|
|
329
|
-
return
|
|
296
|
+
module.exports.is_valid_public_key = function(key) {
|
|
297
|
+
const ret = wasm.is_valid_public_key(addHeapObject(key));
|
|
298
|
+
return ret !== 0;
|
|
330
299
|
};
|
|
331
300
|
|
|
332
301
|
/**
|
|
333
|
-
* @
|
|
302
|
+
* @param {Uint8Array} buffer
|
|
303
|
+
* @param {string} signature
|
|
304
|
+
* @param {string} public_key
|
|
305
|
+
* @returns {boolean}
|
|
334
306
|
*/
|
|
335
|
-
module.exports.
|
|
336
|
-
const ret = wasm.
|
|
337
|
-
return
|
|
307
|
+
module.exports.verify_signature = function(buffer, signature, public_key) {
|
|
308
|
+
const ret = wasm.verify_signature(addHeapObject(buffer), addHeapObject(signature), addHeapObject(public_key));
|
|
309
|
+
return ret !== 0;
|
|
338
310
|
};
|
|
339
311
|
|
|
340
312
|
/**
|
|
341
|
-
* @returns {Promise<
|
|
313
|
+
* @returns {Promise<Array<any>>}
|
|
342
314
|
*/
|
|
343
|
-
module.exports.
|
|
344
|
-
const ret = wasm.
|
|
315
|
+
module.exports.get_mempool_txs = function() {
|
|
316
|
+
const ret = wasm.get_mempool_txs();
|
|
345
317
|
return takeObject(ret);
|
|
346
318
|
};
|
|
347
319
|
|
|
348
320
|
/**
|
|
349
|
-
* @param {
|
|
321
|
+
* @param {Uint8Array} buffer
|
|
322
|
+
* @param {number} msg_index
|
|
323
|
+
* @param {bigint} peer_index
|
|
350
324
|
* @returns {Promise<void>}
|
|
351
325
|
*/
|
|
352
|
-
module.exports.
|
|
353
|
-
|
|
354
|
-
const ret = wasm.propagate_transaction(tx.__wbg_ptr);
|
|
326
|
+
module.exports.send_api_error = function(buffer, msg_index, peer_index) {
|
|
327
|
+
const ret = wasm.send_api_error(addHeapObject(buffer), msg_index, peer_index);
|
|
355
328
|
return takeObject(ret);
|
|
356
329
|
};
|
|
357
330
|
|
|
358
331
|
/**
|
|
359
|
-
* @returns {
|
|
332
|
+
* @returns {Promise<Array<any>>}
|
|
360
333
|
*/
|
|
361
|
-
module.exports.
|
|
362
|
-
const ret = wasm.
|
|
334
|
+
module.exports.get_peers = function() {
|
|
335
|
+
const ret = wasm.get_peers();
|
|
363
336
|
return takeObject(ret);
|
|
364
337
|
};
|
|
365
338
|
|
|
@@ -376,140 +349,134 @@ module.exports.process_fetched_block = function(buffer, hash, block_id, peer_ind
|
|
|
376
349
|
};
|
|
377
350
|
|
|
378
351
|
/**
|
|
379
|
-
* @
|
|
380
|
-
* @param {string} public_key
|
|
381
|
-
* @returns {Promise<void>}
|
|
352
|
+
* @returns {Promise<string>}
|
|
382
353
|
*/
|
|
383
|
-
module.exports.
|
|
384
|
-
const ret = wasm.
|
|
354
|
+
module.exports.get_peer_stats = function() {
|
|
355
|
+
const ret = wasm.get_peer_stats();
|
|
385
356
|
return takeObject(ret);
|
|
386
357
|
};
|
|
387
358
|
|
|
388
359
|
/**
|
|
389
|
-
* @
|
|
390
|
-
* @param {string} slip2_utxo_key
|
|
391
|
-
* @param {string} slip3_utxo_key
|
|
392
|
-
* @param {Uint8Array} tx_msg
|
|
393
|
-
* @returns {Promise<WasmTransaction>}
|
|
360
|
+
* @returns {Promise<string>}
|
|
394
361
|
*/
|
|
395
|
-
module.exports.
|
|
396
|
-
const ret = wasm.
|
|
362
|
+
module.exports.get_stats = function() {
|
|
363
|
+
const ret = wasm.get_stats();
|
|
397
364
|
return takeObject(ret);
|
|
398
365
|
};
|
|
399
366
|
|
|
400
367
|
/**
|
|
401
|
-
* @param {
|
|
402
|
-
* @
|
|
368
|
+
* @param {bigint} peer_index
|
|
369
|
+
* @param {string} ip
|
|
370
|
+
* @returns {Promise<void>}
|
|
403
371
|
*/
|
|
404
|
-
module.exports.
|
|
405
|
-
const ret = wasm.
|
|
372
|
+
module.exports.process_new_peer = function(peer_index, ip) {
|
|
373
|
+
const ret = wasm.process_new_peer(peer_index, addHeapObject(ip));
|
|
406
374
|
return takeObject(ret);
|
|
407
375
|
};
|
|
408
376
|
|
|
409
377
|
/**
|
|
410
|
-
* @param {
|
|
411
|
-
* @
|
|
412
|
-
* @returns {string}
|
|
378
|
+
* @param {bigint} threshold
|
|
379
|
+
* @returns {Promise<void>}
|
|
413
380
|
*/
|
|
414
|
-
module.exports.
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
wasm.sign_buffer(retptr, addHeapObject(buffer), addHeapObject(private_key));
|
|
418
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
419
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
420
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
421
|
-
if (r2) {
|
|
422
|
-
throw takeObject(r1);
|
|
423
|
-
}
|
|
424
|
-
return takeObject(r0);
|
|
425
|
-
} finally {
|
|
426
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
427
|
-
}
|
|
381
|
+
module.exports.write_issuance_file = function(threshold) {
|
|
382
|
+
const ret = wasm.write_issuance_file(threshold);
|
|
383
|
+
return takeObject(ret);
|
|
428
384
|
};
|
|
429
385
|
|
|
430
386
|
/**
|
|
431
|
-
* @
|
|
387
|
+
* @param {Array<any>} public_keys
|
|
388
|
+
* @param {BigUint64Array} amounts
|
|
389
|
+
* @param {bigint} fee
|
|
390
|
+
* @param {boolean} _force_merge
|
|
391
|
+
* @returns {Promise<WasmTransaction>}
|
|
432
392
|
*/
|
|
433
|
-
module.exports.
|
|
434
|
-
const ret = wasm.
|
|
393
|
+
module.exports.create_transaction_with_multiple_payments = function(public_keys, amounts, fee, _force_merge) {
|
|
394
|
+
const ret = wasm.create_transaction_with_multiple_payments(addHeapObject(public_keys), addHeapObject(amounts), fee, _force_merge);
|
|
435
395
|
return takeObject(ret);
|
|
436
396
|
};
|
|
437
397
|
|
|
438
398
|
/**
|
|
439
|
-
* @
|
|
440
|
-
* @returns {Promise<void>}
|
|
399
|
+
* @returns {Promise<Array<any>>}
|
|
441
400
|
*/
|
|
442
|
-
module.exports.
|
|
443
|
-
const ret = wasm.
|
|
401
|
+
module.exports.get_nft_list = function() {
|
|
402
|
+
const ret = wasm.get_nft_list();
|
|
444
403
|
return takeObject(ret);
|
|
445
404
|
};
|
|
446
405
|
|
|
447
406
|
/**
|
|
448
|
-
* @param {
|
|
449
|
-
* @
|
|
450
|
-
* @param {number} log_level_num
|
|
451
|
-
* @param {bigint} hasten_multiplier
|
|
452
|
-
* @param {boolean} delete_old_blocks
|
|
453
|
-
* @returns {Promise<any>}
|
|
407
|
+
* @param {WasmBalanceSnapshot} snapshot
|
|
408
|
+
* @returns {Promise<void>}
|
|
454
409
|
*/
|
|
455
|
-
module.exports.
|
|
456
|
-
|
|
410
|
+
module.exports.update_from_balance_snapshot = function(snapshot) {
|
|
411
|
+
_assertClass(snapshot, WasmBalanceSnapshot);
|
|
412
|
+
var ptr0 = snapshot.__destroy_into_raw();
|
|
413
|
+
const ret = wasm.update_from_balance_snapshot(ptr0);
|
|
457
414
|
return takeObject(ret);
|
|
458
415
|
};
|
|
459
416
|
|
|
460
417
|
/**
|
|
461
|
-
* @returns {Promise<
|
|
418
|
+
* @returns {Promise<any>}
|
|
462
419
|
*/
|
|
463
|
-
module.exports.
|
|
464
|
-
const ret = wasm.
|
|
420
|
+
module.exports.get_confirmations = function() {
|
|
421
|
+
const ret = wasm.get_confirmations();
|
|
465
422
|
return takeObject(ret);
|
|
466
423
|
};
|
|
467
424
|
|
|
468
425
|
/**
|
|
469
|
-
* @
|
|
426
|
+
* @param {number} major
|
|
427
|
+
* @param {number} minor
|
|
428
|
+
* @param {number} patch
|
|
429
|
+
* @returns {Promise<void>}
|
|
470
430
|
*/
|
|
471
|
-
module.exports.
|
|
472
|
-
const ret = wasm.
|
|
431
|
+
module.exports.set_wallet_version = function(major, minor, patch) {
|
|
432
|
+
const ret = wasm.set_wallet_version(major, minor, patch);
|
|
473
433
|
return takeObject(ret);
|
|
474
434
|
};
|
|
475
435
|
|
|
476
436
|
/**
|
|
477
|
-
* @param {Uint8Array} hash
|
|
478
|
-
* @param {bigint} block_id
|
|
479
|
-
* @param {bigint} peer_index
|
|
480
437
|
* @returns {Promise<void>}
|
|
481
438
|
*/
|
|
482
|
-
module.exports.
|
|
483
|
-
const ret = wasm.
|
|
439
|
+
module.exports.start_from_received_ghost_chain = function() {
|
|
440
|
+
const ret = wasm.start_from_received_ghost_chain();
|
|
484
441
|
return takeObject(ret);
|
|
485
442
|
};
|
|
486
443
|
|
|
487
444
|
/**
|
|
488
|
-
* @
|
|
489
|
-
* @param {number} msg_index
|
|
490
|
-
* @param {bigint} peer_index
|
|
491
|
-
* @returns {Promise<void>}
|
|
445
|
+
* @returns {Promise<bigint>}
|
|
492
446
|
*/
|
|
493
|
-
module.exports.
|
|
494
|
-
const ret = wasm.
|
|
447
|
+
module.exports.get_next_peer_index = function() {
|
|
448
|
+
const ret = wasm.get_next_peer_index();
|
|
495
449
|
return takeObject(ret);
|
|
496
450
|
};
|
|
497
451
|
|
|
452
|
+
/**
|
|
453
|
+
* @param {string} private_key
|
|
454
|
+
* @returns {string}
|
|
455
|
+
*/
|
|
456
|
+
module.exports.generate_public_key = function(private_key) {
|
|
457
|
+
try {
|
|
458
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
459
|
+
wasm.generate_public_key(retptr, addHeapObject(private_key));
|
|
460
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
461
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
462
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
463
|
+
if (r2) {
|
|
464
|
+
throw takeObject(r1);
|
|
465
|
+
}
|
|
466
|
+
return takeObject(r0);
|
|
467
|
+
} finally {
|
|
468
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
469
|
+
}
|
|
470
|
+
};
|
|
471
|
+
|
|
498
472
|
/**
|
|
499
473
|
* @param {Uint8Array} buffer
|
|
474
|
+
* @param {number} msg_index
|
|
500
475
|
* @param {bigint} peer_index
|
|
501
476
|
* @returns {Promise<void>}
|
|
502
477
|
*/
|
|
503
|
-
module.exports.
|
|
504
|
-
const ret = wasm.
|
|
505
|
-
return takeObject(ret);
|
|
506
|
-
};
|
|
507
|
-
|
|
508
|
-
/**
|
|
509
|
-
* @returns {Promise<string>}
|
|
510
|
-
*/
|
|
511
|
-
module.exports.get_peer_stats = function() {
|
|
512
|
-
const ret = wasm.get_peer_stats();
|
|
478
|
+
module.exports.send_api_call = function(buffer, msg_index, peer_index) {
|
|
479
|
+
const ret = wasm.send_api_call(addHeapObject(buffer), msg_index, peer_index);
|
|
513
480
|
return takeObject(ret);
|
|
514
481
|
};
|
|
515
482
|
|
|
@@ -528,97 +495,88 @@ module.exports.create_send_bound_transaction = function(amt, slip1_utxo_key, sli
|
|
|
528
495
|
};
|
|
529
496
|
|
|
530
497
|
/**
|
|
531
|
-
* @param {
|
|
532
|
-
* @
|
|
498
|
+
* @param {bigint} peer_index
|
|
499
|
+
* @param {string} public_key
|
|
500
|
+
* @returns {Promise<void>}
|
|
533
501
|
*/
|
|
534
|
-
module.exports.
|
|
535
|
-
const ret = wasm.
|
|
502
|
+
module.exports.process_stun_peer = function(peer_index, public_key) {
|
|
503
|
+
const ret = wasm.process_stun_peer(peer_index, addHeapObject(public_key));
|
|
536
504
|
return takeObject(ret);
|
|
537
505
|
};
|
|
538
506
|
|
|
539
507
|
/**
|
|
540
|
-
* @param {Uint8Array}
|
|
541
|
-
* @param {
|
|
508
|
+
* @param {Uint8Array} hash
|
|
509
|
+
* @param {bigint} block_id
|
|
542
510
|
* @param {bigint} peer_index
|
|
543
511
|
* @returns {Promise<void>}
|
|
544
512
|
*/
|
|
545
|
-
module.exports.
|
|
546
|
-
const ret = wasm.
|
|
513
|
+
module.exports.process_failed_block_fetch = function(hash, block_id, peer_index) {
|
|
514
|
+
const ret = wasm.process_failed_block_fetch(addHeapObject(hash), block_id, peer_index);
|
|
547
515
|
return takeObject(ret);
|
|
548
516
|
};
|
|
549
517
|
|
|
550
518
|
/**
|
|
551
|
-
* @param {
|
|
552
|
-
* @
|
|
553
|
-
* @param {string} public_key
|
|
554
|
-
* @returns {boolean}
|
|
555
|
-
*/
|
|
556
|
-
module.exports.verify_signature = function(buffer, signature, public_key) {
|
|
557
|
-
const ret = wasm.verify_signature(addHeapObject(buffer), addHeapObject(signature), addHeapObject(public_key));
|
|
558
|
-
return ret !== 0;
|
|
559
|
-
};
|
|
560
|
-
|
|
561
|
-
/**
|
|
562
|
-
* @param {bigint} peer_index
|
|
563
|
-
* @returns {Promise<WasmPeer | undefined>}
|
|
519
|
+
* @param {Array<any>} keys
|
|
520
|
+
* @returns {Promise<WasmBalanceSnapshot>}
|
|
564
521
|
*/
|
|
565
|
-
module.exports.
|
|
566
|
-
const ret = wasm.
|
|
522
|
+
module.exports.get_balance_snapshot = function(keys) {
|
|
523
|
+
const ret = wasm.get_balance_snapshot(addHeapObject(keys));
|
|
567
524
|
return takeObject(ret);
|
|
568
525
|
};
|
|
569
526
|
|
|
570
527
|
/**
|
|
571
|
-
* @
|
|
528
|
+
* @param {Uint8Array} buffer
|
|
529
|
+
* @param {bigint} peer_index
|
|
530
|
+
* @returns {Promise<void>}
|
|
572
531
|
*/
|
|
573
|
-
module.exports.
|
|
574
|
-
const ret = wasm.
|
|
532
|
+
module.exports.process_msg_buffer_from_peer = function(buffer, peer_index) {
|
|
533
|
+
const ret = wasm.process_msg_buffer_from_peer(addHeapObject(buffer), peer_index);
|
|
575
534
|
return takeObject(ret);
|
|
576
535
|
};
|
|
577
536
|
|
|
578
537
|
/**
|
|
579
|
-
* @param {
|
|
538
|
+
* @param {bigint} peer_index
|
|
580
539
|
* @returns {Promise<void>}
|
|
581
540
|
*/
|
|
582
|
-
module.exports.
|
|
583
|
-
|
|
584
|
-
var ptr0 = snapshot.__destroy_into_raw();
|
|
585
|
-
const ret = wasm.update_from_balance_snapshot(ptr0);
|
|
541
|
+
module.exports.process_peer_disconnection = function(peer_index) {
|
|
542
|
+
const ret = wasm.process_peer_disconnection(peer_index);
|
|
586
543
|
return takeObject(ret);
|
|
587
544
|
};
|
|
588
545
|
|
|
589
546
|
/**
|
|
590
|
-
* @
|
|
547
|
+
* @param {string} config_json
|
|
548
|
+
* @param {string} private_key
|
|
549
|
+
* @param {number} log_level_num
|
|
550
|
+
* @param {bigint} hasten_multiplier
|
|
551
|
+
* @param {boolean} delete_old_blocks
|
|
552
|
+
* @returns {Promise<any>}
|
|
591
553
|
*/
|
|
592
|
-
module.exports.
|
|
593
|
-
const ret = wasm.
|
|
554
|
+
module.exports.initialize = function(config_json, private_key, log_level_num, hasten_multiplier, delete_old_blocks) {
|
|
555
|
+
const ret = wasm.initialize(addHeapObject(config_json), addHeapObject(private_key), log_level_num, hasten_multiplier, delete_old_blocks);
|
|
594
556
|
return takeObject(ret);
|
|
595
557
|
};
|
|
596
558
|
|
|
597
559
|
/**
|
|
598
|
-
* @returns {Promise<
|
|
560
|
+
* @returns {Promise<boolean>}
|
|
599
561
|
*/
|
|
600
|
-
module.exports.
|
|
601
|
-
const ret = wasm.
|
|
562
|
+
module.exports.produce_block_with_gt = function() {
|
|
563
|
+
const ret = wasm.produce_block_with_gt();
|
|
602
564
|
return takeObject(ret);
|
|
603
565
|
};
|
|
604
566
|
|
|
605
567
|
/**
|
|
606
|
-
* @
|
|
607
|
-
* @param {bigint} amount
|
|
608
|
-
* @param {bigint} fee
|
|
609
|
-
* @param {boolean} force_merge
|
|
610
|
-
* @returns {Promise<WasmTransaction>}
|
|
568
|
+
* @returns {Promise<WasmWallet>}
|
|
611
569
|
*/
|
|
612
|
-
module.exports.
|
|
613
|
-
const ret = wasm.
|
|
570
|
+
module.exports.get_wallet = function() {
|
|
571
|
+
const ret = wasm.get_wallet();
|
|
614
572
|
return takeObject(ret);
|
|
615
573
|
};
|
|
616
574
|
|
|
617
575
|
/**
|
|
618
|
-
* @returns {Promise<
|
|
576
|
+
* @returns {Promise<boolean>}
|
|
619
577
|
*/
|
|
620
|
-
module.exports.
|
|
621
|
-
const ret = wasm.
|
|
578
|
+
module.exports.produce_block_without_gt = function() {
|
|
579
|
+
const ret = wasm.produce_block_without_gt();
|
|
622
580
|
return takeObject(ret);
|
|
623
581
|
};
|
|
624
582
|
|
|
@@ -632,39 +590,52 @@ module.exports.process_timer_event = function(duration_in_ms) {
|
|
|
632
590
|
};
|
|
633
591
|
|
|
634
592
|
/**
|
|
635
|
-
* @param {
|
|
593
|
+
* @param {WasmTransaction} tx
|
|
636
594
|
* @returns {Promise<void>}
|
|
637
595
|
*/
|
|
638
|
-
module.exports.
|
|
639
|
-
|
|
596
|
+
module.exports.propagate_transaction = function(tx) {
|
|
597
|
+
_assertClass(tx, WasmTransaction);
|
|
598
|
+
const ret = wasm.propagate_transaction(tx.__wbg_ptr);
|
|
640
599
|
return takeObject(ret);
|
|
641
600
|
};
|
|
642
601
|
|
|
643
602
|
/**
|
|
644
|
-
* @
|
|
603
|
+
* @param {Uint8Array} buffer
|
|
604
|
+
* @returns {string}
|
|
645
605
|
*/
|
|
646
|
-
module.exports.
|
|
647
|
-
const ret = wasm.
|
|
606
|
+
module.exports.hash = function(buffer) {
|
|
607
|
+
const ret = wasm.hash(addHeapObject(buffer));
|
|
648
608
|
return takeObject(ret);
|
|
649
609
|
};
|
|
650
610
|
|
|
651
611
|
/**
|
|
652
|
-
* @param {
|
|
653
|
-
* @param {number}
|
|
654
|
-
* @param {
|
|
612
|
+
* @param {Uint8Array} buffer
|
|
613
|
+
* @param {number} msg_index
|
|
614
|
+
* @param {bigint} peer_index
|
|
655
615
|
* @returns {Promise<void>}
|
|
656
616
|
*/
|
|
657
|
-
module.exports.
|
|
658
|
-
const ret = wasm.
|
|
617
|
+
module.exports.send_api_success = function(buffer, msg_index, peer_index) {
|
|
618
|
+
const ret = wasm.send_api_success(addHeapObject(buffer), msg_index, peer_index);
|
|
659
619
|
return takeObject(ret);
|
|
660
620
|
};
|
|
661
621
|
|
|
662
622
|
/**
|
|
663
|
-
* @param {string}
|
|
664
|
-
* @
|
|
623
|
+
* @param {string} public_key
|
|
624
|
+
* @param {bigint} amount
|
|
625
|
+
* @param {bigint} fee
|
|
626
|
+
* @param {boolean} force_merge
|
|
627
|
+
* @returns {Promise<WasmTransaction>}
|
|
665
628
|
*/
|
|
666
|
-
module.exports.
|
|
667
|
-
const ret = wasm.
|
|
629
|
+
module.exports.create_transaction = function(public_key, amount, fee, force_merge) {
|
|
630
|
+
const ret = wasm.create_transaction(addHeapObject(public_key), amount, fee, force_merge);
|
|
631
|
+
return takeObject(ret);
|
|
632
|
+
};
|
|
633
|
+
|
|
634
|
+
/**
|
|
635
|
+
* @returns {Promise<WasmBlockchain>}
|
|
636
|
+
*/
|
|
637
|
+
module.exports.get_blockchain = function() {
|
|
638
|
+
const ret = wasm.get_blockchain();
|
|
668
639
|
return takeObject(ret);
|
|
669
640
|
};
|
|
670
641
|
|
|
@@ -681,27 +652,59 @@ module.exports.create_merge_bound_transaction = function(nft_id_hex, tx_msg) {
|
|
|
681
652
|
};
|
|
682
653
|
|
|
683
654
|
/**
|
|
684
|
-
* @
|
|
685
|
-
* @returns {boolean}
|
|
655
|
+
* @returns {Promise<string>}
|
|
686
656
|
*/
|
|
687
|
-
module.exports.
|
|
688
|
-
const ret = wasm.
|
|
689
|
-
return ret
|
|
657
|
+
module.exports.get_congestion_stats = function() {
|
|
658
|
+
const ret = wasm.get_congestion_stats();
|
|
659
|
+
return takeObject(ret);
|
|
690
660
|
};
|
|
691
661
|
|
|
692
662
|
/**
|
|
693
|
-
* @
|
|
663
|
+
* @param {string} slip1_utxo_key
|
|
664
|
+
* @param {string} slip2_utxo_key
|
|
665
|
+
* @param {string} slip3_utxo_key
|
|
666
|
+
* @param {number} left_count
|
|
667
|
+
* @param {number} right_count
|
|
668
|
+
* @param {Uint8Array} tx_msg
|
|
669
|
+
* @returns {Promise<WasmTransaction>}
|
|
694
670
|
*/
|
|
695
|
-
module.exports.
|
|
696
|
-
const ret = wasm.
|
|
671
|
+
module.exports.create_split_bound_transaction = function(slip1_utxo_key, slip2_utxo_key, slip3_utxo_key, left_count, right_count, tx_msg) {
|
|
672
|
+
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));
|
|
697
673
|
return takeObject(ret);
|
|
698
674
|
};
|
|
699
675
|
|
|
700
676
|
/**
|
|
701
|
-
* @
|
|
677
|
+
* @param {bigint} num
|
|
678
|
+
* @param {bigint} deposit
|
|
679
|
+
* @param {Uint8Array} tx_msg
|
|
680
|
+
* @param {bigint} fee
|
|
681
|
+
* @param {string} recipient_public_key
|
|
682
|
+
* @param {string} nft_type
|
|
683
|
+
* @returns {Promise<WasmTransaction>}
|
|
702
684
|
*/
|
|
703
|
-
module.exports.
|
|
704
|
-
const ret = wasm.
|
|
685
|
+
module.exports.create_bound_transaction = function(num, deposit, tx_msg, fee, recipient_public_key, nft_type) {
|
|
686
|
+
const ret = wasm.create_bound_transaction(num, deposit, addHeapObject(tx_msg), fee, addHeapObject(recipient_public_key), addHeapObject(nft_type));
|
|
687
|
+
return takeObject(ret);
|
|
688
|
+
};
|
|
689
|
+
|
|
690
|
+
/**
|
|
691
|
+
* @param {string} slip1_utxo_key
|
|
692
|
+
* @param {string} slip2_utxo_key
|
|
693
|
+
* @param {string} slip3_utxo_key
|
|
694
|
+
* @param {Uint8Array} tx_msg
|
|
695
|
+
* @returns {Promise<WasmTransaction>}
|
|
696
|
+
*/
|
|
697
|
+
module.exports.create_remove_bound_transaction = function(slip1_utxo_key, slip2_utxo_key, slip3_utxo_key, tx_msg) {
|
|
698
|
+
const ret = wasm.create_remove_bound_transaction(addHeapObject(slip1_utxo_key), addHeapObject(slip2_utxo_key), addHeapObject(slip3_utxo_key), addHeapObject(tx_msg));
|
|
699
|
+
return takeObject(ret);
|
|
700
|
+
};
|
|
701
|
+
|
|
702
|
+
/**
|
|
703
|
+
* @param {string} block_hash
|
|
704
|
+
* @returns {Promise<WasmBlock>}
|
|
705
|
+
*/
|
|
706
|
+
module.exports.get_block = function(block_hash) {
|
|
707
|
+
const ret = wasm.get_block(addHeapObject(block_hash));
|
|
705
708
|
return takeObject(ret);
|
|
706
709
|
};
|
|
707
710
|
|
|
@@ -715,22 +718,19 @@ module.exports.process_stat_interval = function(current_time) {
|
|
|
715
718
|
};
|
|
716
719
|
|
|
717
720
|
/**
|
|
718
|
-
* @
|
|
719
|
-
* @returns {Promise<Array<any>>}
|
|
721
|
+
* @returns {Promise<void>}
|
|
720
722
|
*/
|
|
721
|
-
module.exports.
|
|
722
|
-
const ret = wasm.
|
|
723
|
+
module.exports.disable_producing_blocks_by_timer = function() {
|
|
724
|
+
const ret = wasm.disable_producing_blocks_by_timer();
|
|
723
725
|
return takeObject(ret);
|
|
724
726
|
};
|
|
725
727
|
|
|
726
728
|
/**
|
|
727
|
-
* @param {Uint8Array} buffer
|
|
728
|
-
* @param {number} msg_index
|
|
729
729
|
* @param {bigint} peer_index
|
|
730
730
|
* @returns {Promise<void>}
|
|
731
731
|
*/
|
|
732
|
-
module.exports.
|
|
733
|
-
const ret = wasm.
|
|
732
|
+
module.exports.remove_stun_peer = function(peer_index) {
|
|
733
|
+
const ret = wasm.remove_stun_peer(peer_index);
|
|
734
734
|
return takeObject(ret);
|
|
735
735
|
};
|
|
736
736
|
|
|
@@ -2681,27 +2681,27 @@ class WasmWalletSlip {
|
|
|
2681
2681
|
}
|
|
2682
2682
|
module.exports.WasmWalletSlip = WasmWalletSlip;
|
|
2683
2683
|
|
|
2684
|
-
module.exports.__wbindgen_object_clone_ref = function(arg0) {
|
|
2685
|
-
const ret = getObject(arg0);
|
|
2686
|
-
return addHeapObject(ret);
|
|
2687
|
-
};
|
|
2688
|
-
|
|
2689
2684
|
module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
2690
2685
|
takeObject(arg0);
|
|
2691
2686
|
};
|
|
2692
2687
|
|
|
2693
|
-
module.exports.
|
|
2694
|
-
const ret =
|
|
2688
|
+
module.exports.__wbg_wasmwalletslip_new = function(arg0) {
|
|
2689
|
+
const ret = WasmWalletSlip.__wrap(arg0);
|
|
2695
2690
|
return addHeapObject(ret);
|
|
2696
2691
|
};
|
|
2697
2692
|
|
|
2698
|
-
module.exports.
|
|
2699
|
-
const ret =
|
|
2693
|
+
module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
2694
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
2700
2695
|
return addHeapObject(ret);
|
|
2701
2696
|
};
|
|
2702
2697
|
|
|
2703
|
-
module.exports.
|
|
2704
|
-
const ret =
|
|
2698
|
+
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
2699
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
2700
|
+
return addHeapObject(ret);
|
|
2701
|
+
};
|
|
2702
|
+
|
|
2703
|
+
module.exports.__wbg_wasmwallet_new = function(arg0) {
|
|
2704
|
+
const ret = WasmWallet.__wrap(arg0);
|
|
2705
2705
|
return addHeapObject(ret);
|
|
2706
2706
|
};
|
|
2707
2707
|
|
|
@@ -2710,18 +2710,18 @@ module.exports.__wbg_wasmpeer_new = function(arg0) {
|
|
|
2710
2710
|
return addHeapObject(ret);
|
|
2711
2711
|
};
|
|
2712
2712
|
|
|
2713
|
-
module.exports.
|
|
2714
|
-
const ret =
|
|
2713
|
+
module.exports.__wbg_wasmblock_new = function(arg0) {
|
|
2714
|
+
const ret = WasmBlock.__wrap(arg0);
|
|
2715
2715
|
return addHeapObject(ret);
|
|
2716
2716
|
};
|
|
2717
2717
|
|
|
2718
|
-
module.exports.
|
|
2719
|
-
const ret =
|
|
2718
|
+
module.exports.__wbg_wasmtransaction_new = function(arg0) {
|
|
2719
|
+
const ret = WasmTransaction.__wrap(arg0);
|
|
2720
2720
|
return addHeapObject(ret);
|
|
2721
2721
|
};
|
|
2722
2722
|
|
|
2723
|
-
module.exports.
|
|
2724
|
-
const ret =
|
|
2723
|
+
module.exports.__wbg_wasmnft_new = function(arg0) {
|
|
2724
|
+
const ret = WasmNFT.__wrap(arg0);
|
|
2725
2725
|
return addHeapObject(ret);
|
|
2726
2726
|
};
|
|
2727
2727
|
|
|
@@ -2734,18 +2734,18 @@ module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
|
2734
2734
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
2735
2735
|
};
|
|
2736
2736
|
|
|
2737
|
-
module.exports.
|
|
2738
|
-
const ret =
|
|
2737
|
+
module.exports.__wbindgen_object_clone_ref = function(arg0) {
|
|
2738
|
+
const ret = getObject(arg0);
|
|
2739
2739
|
return addHeapObject(ret);
|
|
2740
2740
|
};
|
|
2741
2741
|
|
|
2742
|
-
module.exports.
|
|
2743
|
-
const ret =
|
|
2742
|
+
module.exports.__wbg_wasmblockchain_new = function(arg0) {
|
|
2743
|
+
const ret = WasmBlockchain.__wrap(arg0);
|
|
2744
2744
|
return addHeapObject(ret);
|
|
2745
2745
|
};
|
|
2746
2746
|
|
|
2747
|
-
module.exports.
|
|
2748
|
-
const ret =
|
|
2747
|
+
module.exports.__wbg_wasmslip_new = function(arg0) {
|
|
2748
|
+
const ret = WasmSlip.__wrap(arg0);
|
|
2749
2749
|
return addHeapObject(ret);
|
|
2750
2750
|
};
|
|
2751
2751
|
|
|
@@ -2785,7 +2785,7 @@ module.exports.__wbg_wasmhop_new = function(arg0) {
|
|
|
2785
2785
|
return addHeapObject(ret);
|
|
2786
2786
|
};
|
|
2787
2787
|
|
|
2788
|
-
module.exports.
|
|
2788
|
+
module.exports.__wbg_flushdata_8a3be53f8be8f226 = function(arg0, arg1) {
|
|
2789
2789
|
let deferred0_0;
|
|
2790
2790
|
let deferred0_1;
|
|
2791
2791
|
try {
|
|
@@ -2797,7 +2797,7 @@ module.exports.__wbg_flushdata_57a24af0b42b2a24 = function(arg0, arg1) {
|
|
|
2797
2797
|
}
|
|
2798
2798
|
};
|
|
2799
2799
|
|
|
2800
|
-
module.exports.
|
|
2800
|
+
module.exports.__wbg_readvalue_f8e3c605b6013fe7 = function() { return handleError(function (arg0, arg1) {
|
|
2801
2801
|
let deferred0_0;
|
|
2802
2802
|
let deferred0_1;
|
|
2803
2803
|
try {
|
|
@@ -2810,15 +2810,15 @@ module.exports.__wbg_readvalue_eda09e3e85f91c6e = function() { return handleErro
|
|
|
2810
2810
|
}
|
|
2811
2811
|
}, arguments) };
|
|
2812
2812
|
|
|
2813
|
-
module.exports.
|
|
2813
|
+
module.exports.__wbg_loadwallet_40a7a0a063c9ff37 = function() {
|
|
2814
2814
|
MsgHandler.load_wallet();
|
|
2815
2815
|
};
|
|
2816
2816
|
|
|
2817
|
-
module.exports.
|
|
2817
|
+
module.exports.__wbg_savewallet_42bc0a121ea1c325 = function() {
|
|
2818
2818
|
MsgHandler.save_wallet();
|
|
2819
2819
|
};
|
|
2820
2820
|
|
|
2821
|
-
module.exports.
|
|
2821
|
+
module.exports.__wbg_writevalue_1599a6bbe5b9fcba = function(arg0, arg1, arg2) {
|
|
2822
2822
|
let deferred0_0;
|
|
2823
2823
|
let deferred0_1;
|
|
2824
2824
|
try {
|
|
@@ -2830,7 +2830,7 @@ module.exports.__wbg_writevalue_d45c2dd3c8c56d4f = function(arg0, arg1, arg2) {
|
|
|
2830
2830
|
}
|
|
2831
2831
|
};
|
|
2832
2832
|
|
|
2833
|
-
module.exports.
|
|
2833
|
+
module.exports.__wbg_appendvalue_2602f3dff3c02ed3 = function(arg0, arg1, arg2) {
|
|
2834
2834
|
let deferred0_0;
|
|
2835
2835
|
let deferred0_1;
|
|
2836
2836
|
try {
|
|
@@ -2842,7 +2842,7 @@ module.exports.__wbg_appendvalue_80a14b3de2c6810c = function(arg0, arg1, arg2) {
|
|
|
2842
2842
|
}
|
|
2843
2843
|
};
|
|
2844
2844
|
|
|
2845
|
-
module.exports.
|
|
2845
|
+
module.exports.__wbg_removevalue_864a1ee43137bd0c = function() { return handleError(function (arg0, arg1) {
|
|
2846
2846
|
let deferred0_0;
|
|
2847
2847
|
let deferred0_1;
|
|
2848
2848
|
try {
|
|
@@ -2855,11 +2855,11 @@ module.exports.__wbg_removevalue_0bcbb4eb73cb550c = function() { return handleEr
|
|
|
2855
2855
|
}
|
|
2856
2856
|
}, arguments) };
|
|
2857
2857
|
|
|
2858
|
-
module.exports.
|
|
2858
|
+
module.exports.__wbg_sendmessage_94db158b4f1537d2 = function(arg0, arg1) {
|
|
2859
2859
|
MsgHandler.send_message(takeObject(arg0), getObject(arg1));
|
|
2860
2860
|
};
|
|
2861
2861
|
|
|
2862
|
-
module.exports.
|
|
2862
|
+
module.exports.__wbg_connecttopeer_c5deae2cdbdb9f5d = function() { return handleError(function (arg0, arg1, arg2) {
|
|
2863
2863
|
let deferred0_0;
|
|
2864
2864
|
let deferred0_1;
|
|
2865
2865
|
try {
|
|
@@ -2872,14 +2872,14 @@ module.exports.__wbg_connecttopeer_718f23f2a1dad46e = function() { return handle
|
|
|
2872
2872
|
}
|
|
2873
2873
|
}, arguments) };
|
|
2874
2874
|
|
|
2875
|
-
module.exports.
|
|
2875
|
+
module.exports.__wbg_getmyservices_7bc1499ff4f2976d = function() {
|
|
2876
2876
|
const ret = MsgHandler.get_my_services();
|
|
2877
2877
|
_assertClass(ret, WasmPeerServiceList);
|
|
2878
2878
|
var ptr1 = ret.__destroy_into_raw();
|
|
2879
2879
|
return ptr1;
|
|
2880
2880
|
};
|
|
2881
2881
|
|
|
2882
|
-
module.exports.
|
|
2882
|
+
module.exports.__wbg_isexistingfile_0099b8b5ea955d68 = function() { return handleError(function (arg0, arg1) {
|
|
2883
2883
|
let deferred0_0;
|
|
2884
2884
|
let deferred0_1;
|
|
2885
2885
|
try {
|
|
@@ -2892,33 +2892,33 @@ module.exports.__wbg_isexistingfile_10384e694274432a = function() { return handl
|
|
|
2892
2892
|
}
|
|
2893
2893
|
}, arguments) };
|
|
2894
2894
|
|
|
2895
|
-
module.exports.
|
|
2895
|
+
module.exports.__wbg_processapicall_71052b8f6948e2e5 = function(arg0, arg1, arg2) {
|
|
2896
2896
|
MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2897
2897
|
};
|
|
2898
2898
|
|
|
2899
|
-
module.exports.
|
|
2899
|
+
module.exports.__wbg_processapierror_42532e404878dc4f = function(arg0, arg1, arg2) {
|
|
2900
2900
|
MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2901
2901
|
};
|
|
2902
2902
|
|
|
2903
|
-
module.exports.
|
|
2903
|
+
module.exports.__wbg_processapisuccess_99b6c280a2d87a47 = function(arg0, arg1, arg2) {
|
|
2904
2904
|
MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2905
2905
|
};
|
|
2906
2906
|
|
|
2907
|
-
module.exports.
|
|
2907
|
+
module.exports.__wbg_sendmessagetoall_f01c609b2749f987 = function(arg0, arg1) {
|
|
2908
2908
|
MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
|
|
2909
2909
|
};
|
|
2910
2910
|
|
|
2911
|
-
module.exports.
|
|
2911
|
+
module.exports.__wbg_disconnectfrompeer_d2743f7eb8c25e08 = function() { return handleError(function (arg0) {
|
|
2912
2912
|
const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
|
|
2913
2913
|
return addHeapObject(ret);
|
|
2914
2914
|
}, arguments) };
|
|
2915
2915
|
|
|
2916
|
-
module.exports.
|
|
2916
|
+
module.exports.__wbg_loadblockfilelist_8f3794d11016af8e = function() { return handleError(function () {
|
|
2917
2917
|
const ret = MsgHandler.load_block_file_list();
|
|
2918
2918
|
return addHeapObject(ret);
|
|
2919
2919
|
}, arguments) };
|
|
2920
2920
|
|
|
2921
|
-
module.exports.
|
|
2921
|
+
module.exports.__wbg_sendinterfaceevent_ea3b82df825804d3 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
2922
2922
|
let deferred0_0;
|
|
2923
2923
|
let deferred0_1;
|
|
2924
2924
|
let deferred1_0;
|
|
@@ -2935,7 +2935,7 @@ module.exports.__wbg_sendinterfaceevent_c21cebbf951ca686 = function(arg0, arg1,
|
|
|
2935
2935
|
}
|
|
2936
2936
|
};
|
|
2937
2937
|
|
|
2938
|
-
module.exports.
|
|
2938
|
+
module.exports.__wbg_sendblocksuccess_3f6c6666f1c6ce59 = function(arg0, arg1, arg2) {
|
|
2939
2939
|
let deferred0_0;
|
|
2940
2940
|
let deferred0_1;
|
|
2941
2941
|
try {
|
|
@@ -2947,11 +2947,11 @@ module.exports.__wbg_sendblocksuccess_802b9fa50313a64b = function(arg0, arg1, ar
|
|
|
2947
2947
|
}
|
|
2948
2948
|
};
|
|
2949
2949
|
|
|
2950
|
-
module.exports.
|
|
2950
|
+
module.exports.__wbg_sendwalletupdate_2c49ae3e0d15ee8d = function() {
|
|
2951
2951
|
MsgHandler.send_wallet_update();
|
|
2952
2952
|
};
|
|
2953
2953
|
|
|
2954
|
-
module.exports.
|
|
2954
|
+
module.exports.__wbg_sendnewversionalert_011ddf281aa4b239 = function(arg0, arg1, arg2) {
|
|
2955
2955
|
let deferred0_0;
|
|
2956
2956
|
let deferred0_1;
|
|
2957
2957
|
try {
|
|
@@ -2963,15 +2963,15 @@ module.exports.__wbg_sendnewversionalert_732df9ad6cd449c7 = function(arg0, arg1,
|
|
|
2963
2963
|
}
|
|
2964
2964
|
};
|
|
2965
2965
|
|
|
2966
|
-
module.exports.
|
|
2966
|
+
module.exports.__wbg_sendblockfetchstatusevent_0980203dcc2ecc63 = function(arg0) {
|
|
2967
2967
|
MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
|
|
2968
2968
|
};
|
|
2969
2969
|
|
|
2970
|
-
module.exports.
|
|
2970
|
+
module.exports.__wbg_sendnewchaindetectedevent_d12fa4645380fe48 = function() {
|
|
2971
2971
|
MsgHandler.send_new_chain_detected_event();
|
|
2972
2972
|
};
|
|
2973
2973
|
|
|
2974
|
-
module.exports.
|
|
2974
|
+
module.exports.__wbg_fetchblockfrompeer_68ea2e6049430713 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2975
2975
|
let deferred0_0;
|
|
2976
2976
|
let deferred0_1;
|
|
2977
2977
|
try {
|
|
@@ -2984,7 +2984,7 @@ module.exports.__wbg_fetchblockfrompeer_2586d36df17cd9e4 = function() { return h
|
|
|
2984
2984
|
}
|
|
2985
2985
|
}, arguments) };
|
|
2986
2986
|
|
|
2987
|
-
module.exports.
|
|
2987
|
+
module.exports.__wbg_ensuredirectoryexists_c993e374fac2a231 = function() { return handleError(function (arg0, arg1) {
|
|
2988
2988
|
let deferred0_0;
|
|
2989
2989
|
let deferred0_1;
|
|
2990
2990
|
try {
|
|
@@ -3372,7 +3372,7 @@ module.exports.__wbindgen_debug_string = function(arg0, arg1) {
|
|
|
3372
3372
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
3373
3373
|
};
|
|
3374
3374
|
|
|
3375
|
-
module.exports.
|
|
3375
|
+
module.exports.__wbindgen_closure_wrapper1616 = function(arg0, arg1, arg2) {
|
|
3376
3376
|
const ret = makeMutClosure(arg0, arg1, 598, __wbg_adapter_38);
|
|
3377
3377
|
return addHeapObject(ret);
|
|
3378
3378
|
};
|