saito-wasm 0.0.11 → 0.0.13

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "saito-wasm"
3
- version = "0.1.1"
3
+ version = "0.0.12"
4
4
  edition = "2021"
5
5
 
6
6
  # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
@@ -36,3 +36,6 @@ wasm-opt = ['-Oz']
36
36
 
37
37
  [profile.release]
38
38
  lto = true
39
+
40
+ [features]
41
+ default = []
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "saito-wasm",
3
- "version": "0.0.11",
3
+ "version": "0.0.13",
4
4
  "description": "js wrappings around saito-core using wasm",
5
5
  "scripts": {
6
6
  "test": "./node_modules/.bin/jest",
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-806a53ec0c43fc4b/js/msg_handler.js`);
4
+ const { MsgHandler } = require(String.raw`./snippets/saito-wasm-ab5a63a608170761/js/msg_handler.js`);
5
5
  const { TextEncoder, TextDecoder } = require(`util`);
6
6
 
7
7
  const heap = new Array(128).fill(undefined);
@@ -1348,13 +1348,13 @@ module.exports.__wbg_wasmslip_new = function(arg0) {
1348
1348
  return addHeapObject(ret);
1349
1349
  };
1350
1350
 
1351
- module.exports.__wbg_wasmblockchain_new = function(arg0) {
1352
- const ret = WasmBlockchain.__wrap(arg0);
1351
+ module.exports.__wbg_wasmpeer_new = function(arg0) {
1352
+ const ret = WasmPeer.__wrap(arg0);
1353
1353
  return addHeapObject(ret);
1354
1354
  };
1355
1355
 
1356
- module.exports.__wbg_wasmpeer_new = function(arg0) {
1357
- const ret = WasmPeer.__wrap(arg0);
1356
+ module.exports.__wbg_wasmblockchain_new = function(arg0) {
1357
+ const ret = WasmBlockchain.__wrap(arg0);
1358
1358
  return addHeapObject(ret);
1359
1359
  };
1360
1360
 
@@ -1389,25 +1389,25 @@ module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
1389
1389
  return addHeapObject(ret);
1390
1390
  };
1391
1391
 
1392
- module.exports.__wbg_sendmessage_c963c0943183d8ca = function(arg0, arg1) {
1392
+ module.exports.__wbg_sendmessage_2a7cb3960340003f = function(arg0, arg1) {
1393
1393
  MsgHandler.send_message(takeObject(arg0), getObject(arg1));
1394
1394
  };
1395
1395
 
1396
- module.exports.__wbg_sendmessagetoall_ca3b296ab3d658fd = function(arg0, arg1) {
1396
+ module.exports.__wbg_sendmessagetoall_8e1963596d87a6c9 = function(arg0, arg1) {
1397
1397
  MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
1398
1398
  };
1399
1399
 
1400
- module.exports.__wbg_connecttopeer_80c367cf8308730c = function() { return handleError(function (arg0) {
1400
+ module.exports.__wbg_connecttopeer_5f7b55d0b33d8945 = function() { return handleError(function (arg0) {
1401
1401
  const ret = MsgHandler.connect_to_peer(takeObject(arg0));
1402
1402
  return addHeapObject(ret);
1403
1403
  }, arguments) };
1404
1404
 
1405
- module.exports.__wbg_disconnectfrompeer_0351d95b92a93298 = function() { return handleError(function (arg0) {
1405
+ module.exports.__wbg_disconnectfrompeer_c4b18addc554f556 = function() { return handleError(function (arg0) {
1406
1406
  const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
1407
1407
  return addHeapObject(ret);
1408
1408
  }, arguments) };
1409
1409
 
1410
- module.exports.__wbg_fetchblockfrompeer_d819b6266a1b4e3a = function() { return handleError(function (arg0, arg1, arg2, arg3) {
1410
+ module.exports.__wbg_fetchblockfrompeer_8c17ad7ddc49409a = function() { return handleError(function (arg0, arg1, arg2, arg3) {
1411
1411
  let deferred0_0;
1412
1412
  let deferred0_1;
1413
1413
  try {
@@ -1420,7 +1420,7 @@ module.exports.__wbg_fetchblockfrompeer_d819b6266a1b4e3a = function() { return h
1420
1420
  }
1421
1421
  }, arguments) };
1422
1422
 
1423
- module.exports.__wbg_writevalue_3fac3b108ceb6520 = function(arg0, arg1, arg2) {
1423
+ module.exports.__wbg_writevalue_9e55c94b97509b8e = function(arg0, arg1, arg2) {
1424
1424
  let deferred0_0;
1425
1425
  let deferred0_1;
1426
1426
  try {
@@ -1432,7 +1432,7 @@ module.exports.__wbg_writevalue_3fac3b108ceb6520 = function(arg0, arg1, arg2) {
1432
1432
  }
1433
1433
  };
1434
1434
 
1435
- module.exports.__wbg_readvalue_4c81e272a43be50f = function() { return handleError(function (arg0, arg1) {
1435
+ module.exports.__wbg_readvalue_0c81f78742bebea0 = function() { return handleError(function (arg0, arg1) {
1436
1436
  let deferred0_0;
1437
1437
  let deferred0_1;
1438
1438
  try {
@@ -1445,12 +1445,12 @@ module.exports.__wbg_readvalue_4c81e272a43be50f = function() { return handleErro
1445
1445
  }
1446
1446
  }, arguments) };
1447
1447
 
1448
- module.exports.__wbg_loadblockfilelist_5bfc7fe6e6737863 = function() { return handleError(function () {
1448
+ module.exports.__wbg_loadblockfilelist_9accca826df805e3 = function() { return handleError(function () {
1449
1449
  const ret = MsgHandler.load_block_file_list();
1450
1450
  return addHeapObject(ret);
1451
1451
  }, arguments) };
1452
1452
 
1453
- module.exports.__wbg_isexistingfile_20bd32595a7a2277 = function() { return handleError(function (arg0, arg1) {
1453
+ module.exports.__wbg_isexistingfile_60346c5e9a043ff5 = function() { return handleError(function (arg0, arg1) {
1454
1454
  let deferred0_0;
1455
1455
  let deferred0_1;
1456
1456
  try {
@@ -1463,7 +1463,7 @@ module.exports.__wbg_isexistingfile_20bd32595a7a2277 = function() { return handl
1463
1463
  }
1464
1464
  }, arguments) };
1465
1465
 
1466
- module.exports.__wbg_removevalue_cd58984e046bf55e = function() { return handleError(function (arg0, arg1) {
1466
+ module.exports.__wbg_removevalue_cc0b7e61fa1e8819 = function() { return handleError(function (arg0, arg1) {
1467
1467
  let deferred0_0;
1468
1468
  let deferred0_1;
1469
1469
  try {
@@ -1476,19 +1476,19 @@ module.exports.__wbg_removevalue_cd58984e046bf55e = function() { return handleEr
1476
1476
  }
1477
1477
  }, arguments) };
1478
1478
 
1479
- module.exports.__wbg_processapicall_1ee0c090eec3e022 = function(arg0, arg1, arg2) {
1479
+ module.exports.__wbg_processapicall_5feead2a6c49333c = function(arg0, arg1, arg2) {
1480
1480
  MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
1481
1481
  };
1482
1482
 
1483
- module.exports.__wbg_processapisuccess_656fca26012c71c7 = function(arg0, arg1, arg2) {
1483
+ module.exports.__wbg_processapisuccess_2294422cdc32f937 = function(arg0, arg1, arg2) {
1484
1484
  MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
1485
1485
  };
1486
1486
 
1487
- module.exports.__wbg_processapierror_a5b874d690ed5bbd = function(arg0, arg1, arg2) {
1487
+ module.exports.__wbg_processapierror_49e99c8b78279760 = function(arg0, arg1, arg2) {
1488
1488
  MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
1489
1489
  };
1490
1490
 
1491
- module.exports.__wbg_sendinterfaceevent_a55c668122fe6be9 = function(arg0, arg1, arg2) {
1491
+ module.exports.__wbg_sendinterfaceevent_99ba5a26d98773f2 = function(arg0, arg1, arg2) {
1492
1492
  let deferred0_0;
1493
1493
  let deferred0_1;
1494
1494
  try {
@@ -1500,7 +1500,7 @@ module.exports.__wbg_sendinterfaceevent_a55c668122fe6be9 = function(arg0, arg1,
1500
1500
  }
1501
1501
  };
1502
1502
 
1503
- module.exports.__wbg_sendblocksuccess_1e759c6b606d04cb = function(arg0, arg1, arg2) {
1503
+ module.exports.__wbg_sendblocksuccess_a6b946b45c44c52e = function(arg0, arg1, arg2) {
1504
1504
  let deferred0_0;
1505
1505
  let deferred0_1;
1506
1506
  try {
@@ -1512,23 +1512,23 @@ module.exports.__wbg_sendblocksuccess_1e759c6b606d04cb = function(arg0, arg1, ar
1512
1512
  }
1513
1513
  };
1514
1514
 
1515
- module.exports.__wbg_savewallet_b6f680c5667ab253 = function() {
1515
+ module.exports.__wbg_savewallet_43d0b07b379bb519 = function() {
1516
1516
  MsgHandler.save_wallet();
1517
1517
  };
1518
1518
 
1519
- module.exports.__wbg_loadwallet_49fdb0d4687a6b56 = function() {
1519
+ module.exports.__wbg_loadwallet_46802d85c0a99c4d = function() {
1520
1520
  MsgHandler.load_wallet();
1521
1521
  };
1522
1522
 
1523
- module.exports.__wbg_saveblockchain_f6bfaaaee1e807f6 = function() {
1523
+ module.exports.__wbg_saveblockchain_d8b9d6baad01725e = function() {
1524
1524
  MsgHandler.save_blockchain();
1525
1525
  };
1526
1526
 
1527
- module.exports.__wbg_loadblockchain_702d0e55eb769a63 = function() {
1527
+ module.exports.__wbg_loadblockchain_dc6f8dd1758f25fa = function() {
1528
1528
  MsgHandler.load_blockchain();
1529
1529
  };
1530
1530
 
1531
- module.exports.__wbg_getmyservices_6cc850c74b5ef734 = function() {
1531
+ module.exports.__wbg_getmyservices_07cd9026693aca08 = function() {
1532
1532
  const ret = MsgHandler.get_my_services();
1533
1533
  _assertClass(ret, WasmPeerServiceList);
1534
1534
  var ptr1 = ret.__destroy_into_raw();
Binary file
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "saito-wasm",
3
- "version": "0.1.1",
3
+ "version": "0.0.12",
4
4
  "files": [
5
5
  "index_bg.wasm",
6
6
  "index.js",
@@ -9,7 +9,7 @@
9
9
  "main": "index.js",
10
10
  "types": "index.d.ts",
11
11
  "dependencies": {
12
- "cross-env": "^7.0.3",
13
- "node-fetch": "^3.3.0"
12
+ "node-fetch": "^3.3.0",
13
+ "cross-env": "^7.0.3"
14
14
  }
15
15
  }
package/pkg/web/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { MsgHandler } from './snippets/saito-wasm-806a53ec0c43fc4b/js/msg_handler.js';
1
+ import { MsgHandler } from './snippets/saito-wasm-ab5a63a608170761/js/msg_handler.js';
2
2
 
3
3
  let wasm;
4
4
 
@@ -1387,14 +1387,14 @@ function __wbg_get_imports() {
1387
1387
  const ret = WasmSlip.__wrap(arg0);
1388
1388
  return addHeapObject(ret);
1389
1389
  };
1390
- imports.wbg.__wbg_wasmblockchain_new = function(arg0) {
1391
- const ret = WasmBlockchain.__wrap(arg0);
1392
- return addHeapObject(ret);
1393
- };
1394
1390
  imports.wbg.__wbg_wasmpeer_new = function(arg0) {
1395
1391
  const ret = WasmPeer.__wrap(arg0);
1396
1392
  return addHeapObject(ret);
1397
1393
  };
1394
+ imports.wbg.__wbg_wasmblockchain_new = function(arg0) {
1395
+ const ret = WasmBlockchain.__wrap(arg0);
1396
+ return addHeapObject(ret);
1397
+ };
1398
1398
  imports.wbg.__wbg_wasmtransaction_new = function(arg0) {
1399
1399
  const ret = WasmTransaction.__wrap(arg0);
1400
1400
  return addHeapObject(ret);
@@ -1420,21 +1420,21 @@ function __wbg_get_imports() {
1420
1420
  const ret = BigInt.asUintN(64, arg0);
1421
1421
  return addHeapObject(ret);
1422
1422
  };
1423
- imports.wbg.__wbg_sendmessage_c963c0943183d8ca = function(arg0, arg1) {
1423
+ imports.wbg.__wbg_sendmessage_2a7cb3960340003f = function(arg0, arg1) {
1424
1424
  MsgHandler.send_message(takeObject(arg0), getObject(arg1));
1425
1425
  };
1426
- imports.wbg.__wbg_sendmessagetoall_ca3b296ab3d658fd = function(arg0, arg1) {
1426
+ imports.wbg.__wbg_sendmessagetoall_8e1963596d87a6c9 = function(arg0, arg1) {
1427
1427
  MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
1428
1428
  };
1429
- imports.wbg.__wbg_connecttopeer_80c367cf8308730c = function() { return handleError(function (arg0) {
1429
+ imports.wbg.__wbg_connecttopeer_5f7b55d0b33d8945 = function() { return handleError(function (arg0) {
1430
1430
  const ret = MsgHandler.connect_to_peer(takeObject(arg0));
1431
1431
  return addHeapObject(ret);
1432
1432
  }, arguments) };
1433
- imports.wbg.__wbg_disconnectfrompeer_0351d95b92a93298 = function() { return handleError(function (arg0) {
1433
+ imports.wbg.__wbg_disconnectfrompeer_c4b18addc554f556 = function() { return handleError(function (arg0) {
1434
1434
  const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
1435
1435
  return addHeapObject(ret);
1436
1436
  }, arguments) };
1437
- imports.wbg.__wbg_fetchblockfrompeer_d819b6266a1b4e3a = function() { return handleError(function (arg0, arg1, arg2, arg3) {
1437
+ imports.wbg.__wbg_fetchblockfrompeer_8c17ad7ddc49409a = function() { return handleError(function (arg0, arg1, arg2, arg3) {
1438
1438
  let deferred0_0;
1439
1439
  let deferred0_1;
1440
1440
  try {
@@ -1446,7 +1446,7 @@ function __wbg_get_imports() {
1446
1446
  wasm.__wbindgen_free(deferred0_0, deferred0_1);
1447
1447
  }
1448
1448
  }, arguments) };
1449
- imports.wbg.__wbg_writevalue_3fac3b108ceb6520 = function(arg0, arg1, arg2) {
1449
+ imports.wbg.__wbg_writevalue_9e55c94b97509b8e = function(arg0, arg1, arg2) {
1450
1450
  let deferred0_0;
1451
1451
  let deferred0_1;
1452
1452
  try {
@@ -1457,7 +1457,7 @@ function __wbg_get_imports() {
1457
1457
  wasm.__wbindgen_free(deferred0_0, deferred0_1);
1458
1458
  }
1459
1459
  };
1460
- imports.wbg.__wbg_readvalue_4c81e272a43be50f = function() { return handleError(function (arg0, arg1) {
1460
+ imports.wbg.__wbg_readvalue_0c81f78742bebea0 = function() { return handleError(function (arg0, arg1) {
1461
1461
  let deferred0_0;
1462
1462
  let deferred0_1;
1463
1463
  try {
@@ -1469,11 +1469,11 @@ function __wbg_get_imports() {
1469
1469
  wasm.__wbindgen_free(deferred0_0, deferred0_1);
1470
1470
  }
1471
1471
  }, arguments) };
1472
- imports.wbg.__wbg_loadblockfilelist_5bfc7fe6e6737863 = function() { return handleError(function () {
1472
+ imports.wbg.__wbg_loadblockfilelist_9accca826df805e3 = function() { return handleError(function () {
1473
1473
  const ret = MsgHandler.load_block_file_list();
1474
1474
  return addHeapObject(ret);
1475
1475
  }, arguments) };
1476
- imports.wbg.__wbg_isexistingfile_20bd32595a7a2277 = function() { return handleError(function (arg0, arg1) {
1476
+ imports.wbg.__wbg_isexistingfile_60346c5e9a043ff5 = function() { return handleError(function (arg0, arg1) {
1477
1477
  let deferred0_0;
1478
1478
  let deferred0_1;
1479
1479
  try {
@@ -1485,7 +1485,7 @@ function __wbg_get_imports() {
1485
1485
  wasm.__wbindgen_free(deferred0_0, deferred0_1);
1486
1486
  }
1487
1487
  }, arguments) };
1488
- imports.wbg.__wbg_removevalue_cd58984e046bf55e = function() { return handleError(function (arg0, arg1) {
1488
+ imports.wbg.__wbg_removevalue_cc0b7e61fa1e8819 = function() { return handleError(function (arg0, arg1) {
1489
1489
  let deferred0_0;
1490
1490
  let deferred0_1;
1491
1491
  try {
@@ -1497,16 +1497,16 @@ function __wbg_get_imports() {
1497
1497
  wasm.__wbindgen_free(deferred0_0, deferred0_1);
1498
1498
  }
1499
1499
  }, arguments) };
1500
- imports.wbg.__wbg_processapicall_1ee0c090eec3e022 = function(arg0, arg1, arg2) {
1500
+ imports.wbg.__wbg_processapicall_5feead2a6c49333c = function(arg0, arg1, arg2) {
1501
1501
  MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
1502
1502
  };
1503
- imports.wbg.__wbg_processapisuccess_656fca26012c71c7 = function(arg0, arg1, arg2) {
1503
+ imports.wbg.__wbg_processapisuccess_2294422cdc32f937 = function(arg0, arg1, arg2) {
1504
1504
  MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
1505
1505
  };
1506
- imports.wbg.__wbg_processapierror_a5b874d690ed5bbd = function(arg0, arg1, arg2) {
1506
+ imports.wbg.__wbg_processapierror_49e99c8b78279760 = function(arg0, arg1, arg2) {
1507
1507
  MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
1508
1508
  };
1509
- imports.wbg.__wbg_sendinterfaceevent_a55c668122fe6be9 = function(arg0, arg1, arg2) {
1509
+ imports.wbg.__wbg_sendinterfaceevent_99ba5a26d98773f2 = function(arg0, arg1, arg2) {
1510
1510
  let deferred0_0;
1511
1511
  let deferred0_1;
1512
1512
  try {
@@ -1517,7 +1517,7 @@ function __wbg_get_imports() {
1517
1517
  wasm.__wbindgen_free(deferred0_0, deferred0_1);
1518
1518
  }
1519
1519
  };
1520
- imports.wbg.__wbg_sendblocksuccess_1e759c6b606d04cb = function(arg0, arg1, arg2) {
1520
+ imports.wbg.__wbg_sendblocksuccess_a6b946b45c44c52e = function(arg0, arg1, arg2) {
1521
1521
  let deferred0_0;
1522
1522
  let deferred0_1;
1523
1523
  try {
@@ -1528,19 +1528,19 @@ function __wbg_get_imports() {
1528
1528
  wasm.__wbindgen_free(deferred0_0, deferred0_1);
1529
1529
  }
1530
1530
  };
1531
- imports.wbg.__wbg_savewallet_b6f680c5667ab253 = function() {
1531
+ imports.wbg.__wbg_savewallet_43d0b07b379bb519 = function() {
1532
1532
  MsgHandler.save_wallet();
1533
1533
  };
1534
- imports.wbg.__wbg_loadwallet_49fdb0d4687a6b56 = function() {
1534
+ imports.wbg.__wbg_loadwallet_46802d85c0a99c4d = function() {
1535
1535
  MsgHandler.load_wallet();
1536
1536
  };
1537
- imports.wbg.__wbg_saveblockchain_f6bfaaaee1e807f6 = function() {
1537
+ imports.wbg.__wbg_saveblockchain_d8b9d6baad01725e = function() {
1538
1538
  MsgHandler.save_blockchain();
1539
1539
  };
1540
- imports.wbg.__wbg_loadblockchain_702d0e55eb769a63 = function() {
1540
+ imports.wbg.__wbg_loadblockchain_dc6f8dd1758f25fa = function() {
1541
1541
  MsgHandler.load_blockchain();
1542
1542
  };
1543
- imports.wbg.__wbg_getmyservices_6cc850c74b5ef734 = function() {
1543
+ imports.wbg.__wbg_getmyservices_07cd9026693aca08 = function() {
1544
1544
  const ret = MsgHandler.get_my_services();
1545
1545
  _assertClass(ret, WasmPeerServiceList);
1546
1546
  var ptr1 = ret.__destroy_into_raw();
Binary file
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "saito-wasm",
3
- "version": "0.1.1",
3
+ "version": "0.0.12",
4
4
  "files": [
5
5
  "index_bg.wasm",
6
6
  "index.js",
@@ -12,7 +12,7 @@
12
12
  "./snippets/*"
13
13
  ],
14
14
  "dependencies": {
15
- "cross-env": "^7.0.3",
16
- "node-fetch": "^3.3.0"
15
+ "node-fetch": "^3.3.0",
16
+ "cross-env": "^7.0.3"
17
17
  }
18
18
  }