saito-wasm 0.2.0 → 0.2.1
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 -2
- package/package.json +1 -1
- package/pkg/node/index.js +45 -45
- package/pkg/node/index_bg.wasm +0 -0
- package/pkg/node/package.json +3 -3
- package/pkg/web/index.js +42 -42
- package/pkg/web/index_bg.wasm +0 -0
- package/pkg/web/package.json +3 -3
- /package/pkg/node/snippets/{saito-wasm-25f998ceaff6cd77 → saito-wasm-ae6ce8908f9cbb68}/js/msg_handler.js +0 -0
- /package/pkg/web/snippets/{saito-wasm-25f998ceaff6cd77 → saito-wasm-ae6ce8908f9cbb68}/js/msg_handler.js +0 -0
package/Cargo.toml
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[package]
|
|
2
2
|
name = "saito-wasm"
|
|
3
|
-
version = "0.2.
|
|
3
|
+
version = "0.2.1"
|
|
4
4
|
edition = "2021"
|
|
5
5
|
|
|
6
6
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
@@ -26,7 +26,7 @@ rand = { version = "0.8.5", features = ["getrandom"] }
|
|
|
26
26
|
secp256k1 = { version = "0.29.0", features = ["hashes", "global-context", "serde"] }
|
|
27
27
|
bs58 = "0.5.0"
|
|
28
28
|
figment = { version = "0.10.12", features = ["json"] }
|
|
29
|
-
serde_json = { version = "1.0.
|
|
29
|
+
serde_json = { version = "1.0.117" }
|
|
30
30
|
num-derive = { version = "0.4.2" }
|
|
31
31
|
num-traits = { version = "0.2.19" }
|
|
32
32
|
wee_alloc = "0.4.5"
|
package/package.json
CHANGED
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-ae6ce8908f9cbb68/js/msg_handler.js`);
|
|
5
5
|
const { TextDecoder, TextEncoder } = require(`util`);
|
|
6
6
|
|
|
7
7
|
const heap = new Array(128).fill(undefined);
|
|
@@ -2164,6 +2164,11 @@ class WasmWalletSlip {
|
|
|
2164
2164
|
}
|
|
2165
2165
|
module.exports.WasmWalletSlip = WasmWalletSlip;
|
|
2166
2166
|
|
|
2167
|
+
module.exports.__wbg_wasmtransaction_new = function(arg0) {
|
|
2168
|
+
const ret = WasmTransaction.__wrap(arg0);
|
|
2169
|
+
return addHeapObject(ret);
|
|
2170
|
+
};
|
|
2171
|
+
|
|
2167
2172
|
module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
2168
2173
|
takeObject(arg0);
|
|
2169
2174
|
};
|
|
@@ -2178,13 +2183,18 @@ module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
|
2178
2183
|
return addHeapObject(ret);
|
|
2179
2184
|
};
|
|
2180
2185
|
|
|
2181
|
-
module.exports.
|
|
2182
|
-
const ret =
|
|
2186
|
+
module.exports.__wbg_wasmblock_new = function(arg0) {
|
|
2187
|
+
const ret = WasmBlock.__wrap(arg0);
|
|
2183
2188
|
return addHeapObject(ret);
|
|
2184
2189
|
};
|
|
2185
2190
|
|
|
2186
|
-
module.exports.
|
|
2187
|
-
const ret =
|
|
2191
|
+
module.exports.__wbg_wasmpeer_new = function(arg0) {
|
|
2192
|
+
const ret = WasmPeer.__wrap(arg0);
|
|
2193
|
+
return addHeapObject(ret);
|
|
2194
|
+
};
|
|
2195
|
+
|
|
2196
|
+
module.exports.__wbg_wasmslip_new = function(arg0) {
|
|
2197
|
+
const ret = WasmSlip.__wrap(arg0);
|
|
2188
2198
|
return addHeapObject(ret);
|
|
2189
2199
|
};
|
|
2190
2200
|
|
|
@@ -2193,8 +2203,13 @@ module.exports.__wbg_wasmwallet_new = function(arg0) {
|
|
|
2193
2203
|
return addHeapObject(ret);
|
|
2194
2204
|
};
|
|
2195
2205
|
|
|
2196
|
-
module.exports.
|
|
2197
|
-
const ret =
|
|
2206
|
+
module.exports.__wbg_wasmwalletslip_new = function(arg0) {
|
|
2207
|
+
const ret = WasmWalletSlip.__wrap(arg0);
|
|
2208
|
+
return addHeapObject(ret);
|
|
2209
|
+
};
|
|
2210
|
+
|
|
2211
|
+
module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
|
|
2212
|
+
const ret = WasmBalanceSnapshot.__wrap(arg0);
|
|
2198
2213
|
return addHeapObject(ret);
|
|
2199
2214
|
};
|
|
2200
2215
|
|
|
@@ -2212,21 +2227,6 @@ module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
|
2212
2227
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
2213
2228
|
};
|
|
2214
2229
|
|
|
2215
|
-
module.exports.__wbg_wasmwalletslip_new = function(arg0) {
|
|
2216
|
-
const ret = WasmWalletSlip.__wrap(arg0);
|
|
2217
|
-
return addHeapObject(ret);
|
|
2218
|
-
};
|
|
2219
|
-
|
|
2220
|
-
module.exports.__wbg_wasmblock_new = function(arg0) {
|
|
2221
|
-
const ret = WasmBlock.__wrap(arg0);
|
|
2222
|
-
return addHeapObject(ret);
|
|
2223
|
-
};
|
|
2224
|
-
|
|
2225
|
-
module.exports.__wbg_wasmslip_new = function(arg0) {
|
|
2226
|
-
const ret = WasmSlip.__wrap(arg0);
|
|
2227
|
-
return addHeapObject(ret);
|
|
2228
|
-
};
|
|
2229
|
-
|
|
2230
2230
|
module.exports.__wbg_wasmblockchain_new = function(arg0) {
|
|
2231
2231
|
const ret = WasmBlockchain.__wrap(arg0);
|
|
2232
2232
|
return addHeapObject(ret);
|
|
@@ -2268,25 +2268,25 @@ module.exports.__wbindgen_in = function(arg0, arg1) {
|
|
|
2268
2268
|
return ret;
|
|
2269
2269
|
};
|
|
2270
2270
|
|
|
2271
|
-
module.exports.
|
|
2271
|
+
module.exports.__wbg_sendmessage_1e6d7f758706903d = function(arg0, arg1) {
|
|
2272
2272
|
MsgHandler.send_message(takeObject(arg0), getObject(arg1));
|
|
2273
2273
|
};
|
|
2274
2274
|
|
|
2275
|
-
module.exports.
|
|
2275
|
+
module.exports.__wbg_sendmessagetoall_33b067522d2f024e = function(arg0, arg1) {
|
|
2276
2276
|
MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
|
|
2277
2277
|
};
|
|
2278
2278
|
|
|
2279
|
-
module.exports.
|
|
2279
|
+
module.exports.__wbg_connecttopeer_41d0b947686c23f1 = function() { return handleError(function (arg0) {
|
|
2280
2280
|
const ret = MsgHandler.connect_to_peer(takeObject(arg0));
|
|
2281
2281
|
return addHeapObject(ret);
|
|
2282
2282
|
}, arguments) };
|
|
2283
2283
|
|
|
2284
|
-
module.exports.
|
|
2284
|
+
module.exports.__wbg_disconnectfrompeer_1eebab04a4d53272 = function() { return handleError(function (arg0) {
|
|
2285
2285
|
const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
|
|
2286
2286
|
return addHeapObject(ret);
|
|
2287
2287
|
}, arguments) };
|
|
2288
2288
|
|
|
2289
|
-
module.exports.
|
|
2289
|
+
module.exports.__wbg_fetchblockfrompeer_555f204f60376cf6 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2290
2290
|
let deferred0_0;
|
|
2291
2291
|
let deferred0_1;
|
|
2292
2292
|
try {
|
|
@@ -2299,7 +2299,7 @@ module.exports.__wbg_fetchblockfrompeer_cd5a725b32b30d71 = function() { return h
|
|
|
2299
2299
|
}
|
|
2300
2300
|
}, arguments) };
|
|
2301
2301
|
|
|
2302
|
-
module.exports.
|
|
2302
|
+
module.exports.__wbg_writevalue_0b3b158e34574638 = function(arg0, arg1, arg2) {
|
|
2303
2303
|
let deferred0_0;
|
|
2304
2304
|
let deferred0_1;
|
|
2305
2305
|
try {
|
|
@@ -2311,7 +2311,7 @@ module.exports.__wbg_writevalue_0142b6bed41e27bf = function(arg0, arg1, arg2) {
|
|
|
2311
2311
|
}
|
|
2312
2312
|
};
|
|
2313
2313
|
|
|
2314
|
-
module.exports.
|
|
2314
|
+
module.exports.__wbg_appendvalue_d9972ae45410c2ff = function(arg0, arg1, arg2) {
|
|
2315
2315
|
let deferred0_0;
|
|
2316
2316
|
let deferred0_1;
|
|
2317
2317
|
try {
|
|
@@ -2323,7 +2323,7 @@ module.exports.__wbg_appendvalue_eefd407e3c23e6cf = function(arg0, arg1, arg2) {
|
|
|
2323
2323
|
}
|
|
2324
2324
|
};
|
|
2325
2325
|
|
|
2326
|
-
module.exports.
|
|
2326
|
+
module.exports.__wbg_flushdata_022d3235204f08cc = function(arg0, arg1) {
|
|
2327
2327
|
let deferred0_0;
|
|
2328
2328
|
let deferred0_1;
|
|
2329
2329
|
try {
|
|
@@ -2335,7 +2335,7 @@ module.exports.__wbg_flushdata_d1e8f6ae7bf7eb1a = function(arg0, arg1) {
|
|
|
2335
2335
|
}
|
|
2336
2336
|
};
|
|
2337
2337
|
|
|
2338
|
-
module.exports.
|
|
2338
|
+
module.exports.__wbg_readvalue_168fa22a6fa8d090 = function() { return handleError(function (arg0, arg1) {
|
|
2339
2339
|
let deferred0_0;
|
|
2340
2340
|
let deferred0_1;
|
|
2341
2341
|
try {
|
|
@@ -2348,12 +2348,12 @@ module.exports.__wbg_readvalue_a8adbd0333f34a91 = function() { return handleErro
|
|
|
2348
2348
|
}
|
|
2349
2349
|
}, arguments) };
|
|
2350
2350
|
|
|
2351
|
-
module.exports.
|
|
2351
|
+
module.exports.__wbg_loadblockfilelist_dad61142ab73c36c = function() { return handleError(function () {
|
|
2352
2352
|
const ret = MsgHandler.load_block_file_list();
|
|
2353
2353
|
return addHeapObject(ret);
|
|
2354
2354
|
}, arguments) };
|
|
2355
2355
|
|
|
2356
|
-
module.exports.
|
|
2356
|
+
module.exports.__wbg_isexistingfile_06b7476350d7b1d6 = function() { return handleError(function (arg0, arg1) {
|
|
2357
2357
|
let deferred0_0;
|
|
2358
2358
|
let deferred0_1;
|
|
2359
2359
|
try {
|
|
@@ -2366,7 +2366,7 @@ module.exports.__wbg_isexistingfile_5297bb756296017a = function() { return handl
|
|
|
2366
2366
|
}
|
|
2367
2367
|
}, arguments) };
|
|
2368
2368
|
|
|
2369
|
-
module.exports.
|
|
2369
|
+
module.exports.__wbg_removevalue_c7ae2201d6183dfe = function() { return handleError(function (arg0, arg1) {
|
|
2370
2370
|
let deferred0_0;
|
|
2371
2371
|
let deferred0_1;
|
|
2372
2372
|
try {
|
|
@@ -2379,7 +2379,7 @@ module.exports.__wbg_removevalue_4a5d1e4ee077d92b = function() { return handleEr
|
|
|
2379
2379
|
}
|
|
2380
2380
|
}, arguments) };
|
|
2381
2381
|
|
|
2382
|
-
module.exports.
|
|
2382
|
+
module.exports.__wbg_ensureblockdirectoryexists_b1120d67b103050c = function() { return handleError(function (arg0, arg1) {
|
|
2383
2383
|
let deferred0_0;
|
|
2384
2384
|
let deferred0_1;
|
|
2385
2385
|
try {
|
|
@@ -2391,19 +2391,19 @@ module.exports.__wbg_ensureblockdirectoryexists_2385579ffa2a62a0 = function() {
|
|
|
2391
2391
|
}
|
|
2392
2392
|
}, arguments) };
|
|
2393
2393
|
|
|
2394
|
-
module.exports.
|
|
2394
|
+
module.exports.__wbg_processapicall_c2fd63736ec05530 = function(arg0, arg1, arg2) {
|
|
2395
2395
|
MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
|
|
2396
2396
|
};
|
|
2397
2397
|
|
|
2398
|
-
module.exports.
|
|
2398
|
+
module.exports.__wbg_processapisuccess_4793409f442867f0 = function(arg0, arg1, arg2) {
|
|
2399
2399
|
MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
|
|
2400
2400
|
};
|
|
2401
2401
|
|
|
2402
|
-
module.exports.
|
|
2402
|
+
module.exports.__wbg_processapierror_720ac81e67fb48ec = function(arg0, arg1, arg2) {
|
|
2403
2403
|
MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
|
|
2404
2404
|
};
|
|
2405
2405
|
|
|
2406
|
-
module.exports.
|
|
2406
|
+
module.exports.__wbg_sendinterfaceevent_552e9e215760c8ec = function(arg0, arg1, arg2) {
|
|
2407
2407
|
let deferred0_0;
|
|
2408
2408
|
let deferred0_1;
|
|
2409
2409
|
try {
|
|
@@ -2415,7 +2415,7 @@ module.exports.__wbg_sendinterfaceevent_94df649463255d71 = function(arg0, arg1,
|
|
|
2415
2415
|
}
|
|
2416
2416
|
};
|
|
2417
2417
|
|
|
2418
|
-
module.exports.
|
|
2418
|
+
module.exports.__wbg_sendblocksuccess_6fcdd9b24dd8a443 = function(arg0, arg1, arg2) {
|
|
2419
2419
|
let deferred0_0;
|
|
2420
2420
|
let deferred0_1;
|
|
2421
2421
|
try {
|
|
@@ -2427,11 +2427,11 @@ module.exports.__wbg_sendblocksuccess_65e9b8bd8ef4671f = function(arg0, arg1, ar
|
|
|
2427
2427
|
}
|
|
2428
2428
|
};
|
|
2429
2429
|
|
|
2430
|
-
module.exports.
|
|
2430
|
+
module.exports.__wbg_sendwalletupdate_5e88e286d5032ada = function() {
|
|
2431
2431
|
MsgHandler.send_wallet_update();
|
|
2432
2432
|
};
|
|
2433
2433
|
|
|
2434
|
-
module.exports.
|
|
2434
|
+
module.exports.__wbg_sendnewversionalert_af54ec945b1e1d48 = function(arg0, arg1, arg2) {
|
|
2435
2435
|
let deferred0_0;
|
|
2436
2436
|
let deferred0_1;
|
|
2437
2437
|
try {
|
|
@@ -2443,15 +2443,15 @@ module.exports.__wbg_sendnewversionalert_caf21f74d912ba0a = function(arg0, arg1,
|
|
|
2443
2443
|
}
|
|
2444
2444
|
};
|
|
2445
2445
|
|
|
2446
|
-
module.exports.
|
|
2446
|
+
module.exports.__wbg_savewallet_b9e158e877e3c237 = function() {
|
|
2447
2447
|
MsgHandler.save_wallet();
|
|
2448
2448
|
};
|
|
2449
2449
|
|
|
2450
|
-
module.exports.
|
|
2450
|
+
module.exports.__wbg_loadwallet_2655aee7dc69f094 = function() {
|
|
2451
2451
|
MsgHandler.load_wallet();
|
|
2452
2452
|
};
|
|
2453
2453
|
|
|
2454
|
-
module.exports.
|
|
2454
|
+
module.exports.__wbg_getmyservices_d7a53d0309a70a47 = function() {
|
|
2455
2455
|
const ret = MsgHandler.get_my_services();
|
|
2456
2456
|
_assertClass(ret, WasmPeerServiceList);
|
|
2457
2457
|
var ptr1 = ret.__destroy_into_raw();
|
package/pkg/node/index_bg.wasm
CHANGED
|
Binary file
|
package/pkg/node/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "saito-wasm",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
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
|
-
"
|
|
13
|
-
"
|
|
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-
|
|
1
|
+
import { MsgHandler } from './snippets/saito-wasm-ae6ce8908f9cbb68/js/msg_handler.js';
|
|
2
2
|
|
|
3
3
|
let wasm;
|
|
4
4
|
|
|
@@ -2182,6 +2182,10 @@ async function __wbg_load(module, imports) {
|
|
|
2182
2182
|
function __wbg_get_imports() {
|
|
2183
2183
|
const imports = {};
|
|
2184
2184
|
imports.wbg = {};
|
|
2185
|
+
imports.wbg.__wbg_wasmtransaction_new = function(arg0) {
|
|
2186
|
+
const ret = WasmTransaction.__wrap(arg0);
|
|
2187
|
+
return addHeapObject(ret);
|
|
2188
|
+
};
|
|
2185
2189
|
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
2186
2190
|
takeObject(arg0);
|
|
2187
2191
|
};
|
|
@@ -2193,20 +2197,28 @@ function __wbg_get_imports() {
|
|
|
2193
2197
|
const ret = BigInt.asUintN(64, arg0);
|
|
2194
2198
|
return addHeapObject(ret);
|
|
2195
2199
|
};
|
|
2196
|
-
imports.wbg.
|
|
2197
|
-
const ret =
|
|
2200
|
+
imports.wbg.__wbg_wasmblock_new = function(arg0) {
|
|
2201
|
+
const ret = WasmBlock.__wrap(arg0);
|
|
2198
2202
|
return addHeapObject(ret);
|
|
2199
2203
|
};
|
|
2200
|
-
imports.wbg.
|
|
2201
|
-
const ret =
|
|
2204
|
+
imports.wbg.__wbg_wasmpeer_new = function(arg0) {
|
|
2205
|
+
const ret = WasmPeer.__wrap(arg0);
|
|
2206
|
+
return addHeapObject(ret);
|
|
2207
|
+
};
|
|
2208
|
+
imports.wbg.__wbg_wasmslip_new = function(arg0) {
|
|
2209
|
+
const ret = WasmSlip.__wrap(arg0);
|
|
2202
2210
|
return addHeapObject(ret);
|
|
2203
2211
|
};
|
|
2204
2212
|
imports.wbg.__wbg_wasmwallet_new = function(arg0) {
|
|
2205
2213
|
const ret = WasmWallet.__wrap(arg0);
|
|
2206
2214
|
return addHeapObject(ret);
|
|
2207
2215
|
};
|
|
2208
|
-
imports.wbg.
|
|
2209
|
-
const ret =
|
|
2216
|
+
imports.wbg.__wbg_wasmwalletslip_new = function(arg0) {
|
|
2217
|
+
const ret = WasmWalletSlip.__wrap(arg0);
|
|
2218
|
+
return addHeapObject(ret);
|
|
2219
|
+
};
|
|
2220
|
+
imports.wbg.__wbg_wasmbalancesnapshot_new = function(arg0) {
|
|
2221
|
+
const ret = WasmBalanceSnapshot.__wrap(arg0);
|
|
2210
2222
|
return addHeapObject(ret);
|
|
2211
2223
|
};
|
|
2212
2224
|
imports.wbg.__wbindgen_is_falsy = function(arg0) {
|
|
@@ -2221,18 +2233,6 @@ function __wbg_get_imports() {
|
|
|
2221
2233
|
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
2222
2234
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
2223
2235
|
};
|
|
2224
|
-
imports.wbg.__wbg_wasmwalletslip_new = function(arg0) {
|
|
2225
|
-
const ret = WasmWalletSlip.__wrap(arg0);
|
|
2226
|
-
return addHeapObject(ret);
|
|
2227
|
-
};
|
|
2228
|
-
imports.wbg.__wbg_wasmblock_new = function(arg0) {
|
|
2229
|
-
const ret = WasmBlock.__wrap(arg0);
|
|
2230
|
-
return addHeapObject(ret);
|
|
2231
|
-
};
|
|
2232
|
-
imports.wbg.__wbg_wasmslip_new = function(arg0) {
|
|
2233
|
-
const ret = WasmSlip.__wrap(arg0);
|
|
2234
|
-
return addHeapObject(ret);
|
|
2235
|
-
};
|
|
2236
2236
|
imports.wbg.__wbg_wasmblockchain_new = function(arg0) {
|
|
2237
2237
|
const ret = WasmBlockchain.__wrap(arg0);
|
|
2238
2238
|
return addHeapObject(ret);
|
|
@@ -2266,21 +2266,21 @@ function __wbg_get_imports() {
|
|
|
2266
2266
|
const ret = getObject(arg0) in getObject(arg1);
|
|
2267
2267
|
return ret;
|
|
2268
2268
|
};
|
|
2269
|
-
imports.wbg.
|
|
2269
|
+
imports.wbg.__wbg_sendmessage_1e6d7f758706903d = function(arg0, arg1) {
|
|
2270
2270
|
MsgHandler.send_message(takeObject(arg0), getObject(arg1));
|
|
2271
2271
|
};
|
|
2272
|
-
imports.wbg.
|
|
2272
|
+
imports.wbg.__wbg_sendmessagetoall_33b067522d2f024e = function(arg0, arg1) {
|
|
2273
2273
|
MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
|
|
2274
2274
|
};
|
|
2275
|
-
imports.wbg.
|
|
2275
|
+
imports.wbg.__wbg_connecttopeer_41d0b947686c23f1 = function() { return handleError(function (arg0) {
|
|
2276
2276
|
const ret = MsgHandler.connect_to_peer(takeObject(arg0));
|
|
2277
2277
|
return addHeapObject(ret);
|
|
2278
2278
|
}, arguments) };
|
|
2279
|
-
imports.wbg.
|
|
2279
|
+
imports.wbg.__wbg_disconnectfrompeer_1eebab04a4d53272 = function() { return handleError(function (arg0) {
|
|
2280
2280
|
const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
|
|
2281
2281
|
return addHeapObject(ret);
|
|
2282
2282
|
}, arguments) };
|
|
2283
|
-
imports.wbg.
|
|
2283
|
+
imports.wbg.__wbg_fetchblockfrompeer_555f204f60376cf6 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2284
2284
|
let deferred0_0;
|
|
2285
2285
|
let deferred0_1;
|
|
2286
2286
|
try {
|
|
@@ -2292,7 +2292,7 @@ function __wbg_get_imports() {
|
|
|
2292
2292
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2293
2293
|
}
|
|
2294
2294
|
}, arguments) };
|
|
2295
|
-
imports.wbg.
|
|
2295
|
+
imports.wbg.__wbg_writevalue_0b3b158e34574638 = function(arg0, arg1, arg2) {
|
|
2296
2296
|
let deferred0_0;
|
|
2297
2297
|
let deferred0_1;
|
|
2298
2298
|
try {
|
|
@@ -2303,7 +2303,7 @@ function __wbg_get_imports() {
|
|
|
2303
2303
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2304
2304
|
}
|
|
2305
2305
|
};
|
|
2306
|
-
imports.wbg.
|
|
2306
|
+
imports.wbg.__wbg_appendvalue_d9972ae45410c2ff = function(arg0, arg1, arg2) {
|
|
2307
2307
|
let deferred0_0;
|
|
2308
2308
|
let deferred0_1;
|
|
2309
2309
|
try {
|
|
@@ -2314,7 +2314,7 @@ function __wbg_get_imports() {
|
|
|
2314
2314
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2315
2315
|
}
|
|
2316
2316
|
};
|
|
2317
|
-
imports.wbg.
|
|
2317
|
+
imports.wbg.__wbg_flushdata_022d3235204f08cc = function(arg0, arg1) {
|
|
2318
2318
|
let deferred0_0;
|
|
2319
2319
|
let deferred0_1;
|
|
2320
2320
|
try {
|
|
@@ -2325,7 +2325,7 @@ function __wbg_get_imports() {
|
|
|
2325
2325
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2326
2326
|
}
|
|
2327
2327
|
};
|
|
2328
|
-
imports.wbg.
|
|
2328
|
+
imports.wbg.__wbg_readvalue_168fa22a6fa8d090 = function() { return handleError(function (arg0, arg1) {
|
|
2329
2329
|
let deferred0_0;
|
|
2330
2330
|
let deferred0_1;
|
|
2331
2331
|
try {
|
|
@@ -2337,11 +2337,11 @@ function __wbg_get_imports() {
|
|
|
2337
2337
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2338
2338
|
}
|
|
2339
2339
|
}, arguments) };
|
|
2340
|
-
imports.wbg.
|
|
2340
|
+
imports.wbg.__wbg_loadblockfilelist_dad61142ab73c36c = function() { return handleError(function () {
|
|
2341
2341
|
const ret = MsgHandler.load_block_file_list();
|
|
2342
2342
|
return addHeapObject(ret);
|
|
2343
2343
|
}, arguments) };
|
|
2344
|
-
imports.wbg.
|
|
2344
|
+
imports.wbg.__wbg_isexistingfile_06b7476350d7b1d6 = function() { return handleError(function (arg0, arg1) {
|
|
2345
2345
|
let deferred0_0;
|
|
2346
2346
|
let deferred0_1;
|
|
2347
2347
|
try {
|
|
@@ -2353,7 +2353,7 @@ function __wbg_get_imports() {
|
|
|
2353
2353
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2354
2354
|
}
|
|
2355
2355
|
}, arguments) };
|
|
2356
|
-
imports.wbg.
|
|
2356
|
+
imports.wbg.__wbg_removevalue_c7ae2201d6183dfe = function() { return handleError(function (arg0, arg1) {
|
|
2357
2357
|
let deferred0_0;
|
|
2358
2358
|
let deferred0_1;
|
|
2359
2359
|
try {
|
|
@@ -2365,7 +2365,7 @@ function __wbg_get_imports() {
|
|
|
2365
2365
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2366
2366
|
}
|
|
2367
2367
|
}, arguments) };
|
|
2368
|
-
imports.wbg.
|
|
2368
|
+
imports.wbg.__wbg_ensureblockdirectoryexists_b1120d67b103050c = function() { return handleError(function (arg0, arg1) {
|
|
2369
2369
|
let deferred0_0;
|
|
2370
2370
|
let deferred0_1;
|
|
2371
2371
|
try {
|
|
@@ -2376,16 +2376,16 @@ function __wbg_get_imports() {
|
|
|
2376
2376
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2377
2377
|
}
|
|
2378
2378
|
}, arguments) };
|
|
2379
|
-
imports.wbg.
|
|
2379
|
+
imports.wbg.__wbg_processapicall_c2fd63736ec05530 = function(arg0, arg1, arg2) {
|
|
2380
2380
|
MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
|
|
2381
2381
|
};
|
|
2382
|
-
imports.wbg.
|
|
2382
|
+
imports.wbg.__wbg_processapisuccess_4793409f442867f0 = function(arg0, arg1, arg2) {
|
|
2383
2383
|
MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
|
|
2384
2384
|
};
|
|
2385
|
-
imports.wbg.
|
|
2385
|
+
imports.wbg.__wbg_processapierror_720ac81e67fb48ec = function(arg0, arg1, arg2) {
|
|
2386
2386
|
MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
|
|
2387
2387
|
};
|
|
2388
|
-
imports.wbg.
|
|
2388
|
+
imports.wbg.__wbg_sendinterfaceevent_552e9e215760c8ec = function(arg0, arg1, arg2) {
|
|
2389
2389
|
let deferred0_0;
|
|
2390
2390
|
let deferred0_1;
|
|
2391
2391
|
try {
|
|
@@ -2396,7 +2396,7 @@ function __wbg_get_imports() {
|
|
|
2396
2396
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2397
2397
|
}
|
|
2398
2398
|
};
|
|
2399
|
-
imports.wbg.
|
|
2399
|
+
imports.wbg.__wbg_sendblocksuccess_6fcdd9b24dd8a443 = function(arg0, arg1, arg2) {
|
|
2400
2400
|
let deferred0_0;
|
|
2401
2401
|
let deferred0_1;
|
|
2402
2402
|
try {
|
|
@@ -2407,10 +2407,10 @@ function __wbg_get_imports() {
|
|
|
2407
2407
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2408
2408
|
}
|
|
2409
2409
|
};
|
|
2410
|
-
imports.wbg.
|
|
2410
|
+
imports.wbg.__wbg_sendwalletupdate_5e88e286d5032ada = function() {
|
|
2411
2411
|
MsgHandler.send_wallet_update();
|
|
2412
2412
|
};
|
|
2413
|
-
imports.wbg.
|
|
2413
|
+
imports.wbg.__wbg_sendnewversionalert_af54ec945b1e1d48 = function(arg0, arg1, arg2) {
|
|
2414
2414
|
let deferred0_0;
|
|
2415
2415
|
let deferred0_1;
|
|
2416
2416
|
try {
|
|
@@ -2421,13 +2421,13 @@ function __wbg_get_imports() {
|
|
|
2421
2421
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2422
2422
|
}
|
|
2423
2423
|
};
|
|
2424
|
-
imports.wbg.
|
|
2424
|
+
imports.wbg.__wbg_savewallet_b9e158e877e3c237 = function() {
|
|
2425
2425
|
MsgHandler.save_wallet();
|
|
2426
2426
|
};
|
|
2427
|
-
imports.wbg.
|
|
2427
|
+
imports.wbg.__wbg_loadwallet_2655aee7dc69f094 = function() {
|
|
2428
2428
|
MsgHandler.load_wallet();
|
|
2429
2429
|
};
|
|
2430
|
-
imports.wbg.
|
|
2430
|
+
imports.wbg.__wbg_getmyservices_d7a53d0309a70a47 = function() {
|
|
2431
2431
|
const ret = MsgHandler.get_my_services();
|
|
2432
2432
|
_assertClass(ret, WasmPeerServiceList);
|
|
2433
2433
|
var ptr1 = ret.__destroy_into_raw();
|
package/pkg/web/index_bg.wasm
CHANGED
|
Binary file
|
package/pkg/web/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "saito-wasm",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
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
|
-
"
|
|
16
|
-
"
|
|
15
|
+
"node-fetch": "^3.3.0",
|
|
16
|
+
"cross-env": "^7.0.3"
|
|
17
17
|
}
|
|
18
18
|
}
|
|
File without changes
|
|
File without changes
|