saito-wasm 0.1.52 → 0.1.53
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.js +100 -100
- package/pkg/node/index_bg.wasm +0 -0
- package/pkg/node/index_bg.wasm.d.ts +10 -10
- package/pkg/node/package.json +1 -1
- package/pkg/web/index.d.ts +10 -10
- package/pkg/web/index.js +96 -96
- package/pkg/web/index_bg.wasm +0 -0
- package/pkg/web/index_bg.wasm.d.ts +10 -10
- package/pkg/web/package.json +3 -3
- /package/pkg/node/snippets/{saito-wasm-5f728c5d28b10a07 → saito-wasm-ae026fe17b27dc73}/js/msg_handler.js +0 -0
- /package/pkg/web/snippets/{saito-wasm-5f728c5d28b10a07 → saito-wasm-ae026fe17b27dc73}/js/msg_handler.js +0 -0
package/Cargo.toml
CHANGED
package/package.json
CHANGED
package/pkg/node/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
let imports = {};
|
|
2
2
|
imports['__wbindgen_placeholder__'] = module.exports;
|
|
3
3
|
let wasm;
|
|
4
|
-
const { MsgHandler } = require(String.raw`./snippets/saito-wasm-
|
|
5
|
-
const {
|
|
4
|
+
const { MsgHandler } = require(String.raw`./snippets/saito-wasm-ae026fe17b27dc73/js/msg_handler.js`);
|
|
5
|
+
const { TextEncoder, TextDecoder } = require(`util`);
|
|
6
6
|
|
|
7
7
|
const heap = new Array(128).fill(undefined);
|
|
8
8
|
|
|
@@ -10,23 +10,7 @@ heap.push(undefined, null, true, false);
|
|
|
10
10
|
|
|
11
11
|
function getObject(idx) { return heap[idx]; }
|
|
12
12
|
|
|
13
|
-
let
|
|
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
|
-
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
28
|
-
|
|
29
|
-
cachedTextDecoder.decode();
|
|
13
|
+
let WASM_VECTOR_LEN = 0;
|
|
30
14
|
|
|
31
15
|
let cachedUint8Memory0 = null;
|
|
32
16
|
|
|
@@ -37,22 +21,6 @@ function getUint8Memory0() {
|
|
|
37
21
|
return cachedUint8Memory0;
|
|
38
22
|
}
|
|
39
23
|
|
|
40
|
-
function getStringFromWasm0(ptr, len) {
|
|
41
|
-
ptr = ptr >>> 0;
|
|
42
|
-
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
function addHeapObject(obj) {
|
|
46
|
-
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
47
|
-
const idx = heap_next;
|
|
48
|
-
heap_next = heap[idx];
|
|
49
|
-
|
|
50
|
-
heap[idx] = obj;
|
|
51
|
-
return idx;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
let WASM_VECTOR_LEN = 0;
|
|
55
|
-
|
|
56
24
|
let cachedTextEncoder = new TextEncoder('utf-8');
|
|
57
25
|
|
|
58
26
|
const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
|
|
@@ -120,6 +88,38 @@ function getInt32Memory0() {
|
|
|
120
88
|
return cachedInt32Memory0;
|
|
121
89
|
}
|
|
122
90
|
|
|
91
|
+
let heap_next = heap.length;
|
|
92
|
+
|
|
93
|
+
function dropObject(idx) {
|
|
94
|
+
if (idx < 132) return;
|
|
95
|
+
heap[idx] = heap_next;
|
|
96
|
+
heap_next = idx;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
function takeObject(idx) {
|
|
100
|
+
const ret = getObject(idx);
|
|
101
|
+
dropObject(idx);
|
|
102
|
+
return ret;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
function addHeapObject(obj) {
|
|
106
|
+
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
107
|
+
const idx = heap_next;
|
|
108
|
+
heap_next = heap[idx];
|
|
109
|
+
|
|
110
|
+
heap[idx] = obj;
|
|
111
|
+
return idx;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
115
|
+
|
|
116
|
+
cachedTextDecoder.decode();
|
|
117
|
+
|
|
118
|
+
function getStringFromWasm0(ptr, len) {
|
|
119
|
+
ptr = ptr >>> 0;
|
|
120
|
+
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
121
|
+
}
|
|
122
|
+
|
|
123
123
|
let cachedFloat64Memory0 = null;
|
|
124
124
|
|
|
125
125
|
function getFloat64Memory0() {
|
|
@@ -2165,13 +2165,22 @@ class WasmWalletSlip {
|
|
|
2165
2165
|
}
|
|
2166
2166
|
module.exports.WasmWalletSlip = WasmWalletSlip;
|
|
2167
2167
|
|
|
2168
|
-
module.exports.
|
|
2169
|
-
|
|
2168
|
+
module.exports.__wbindgen_is_falsy = function(arg0) {
|
|
2169
|
+
const ret = !getObject(arg0);
|
|
2170
|
+
return ret;
|
|
2170
2171
|
};
|
|
2171
2172
|
|
|
2172
|
-
module.exports.
|
|
2173
|
-
const
|
|
2174
|
-
|
|
2173
|
+
module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
2174
|
+
const obj = getObject(arg1);
|
|
2175
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
2176
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2177
|
+
var len1 = WASM_VECTOR_LEN;
|
|
2178
|
+
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
2179
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
2180
|
+
};
|
|
2181
|
+
|
|
2182
|
+
module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
2183
|
+
takeObject(arg0);
|
|
2175
2184
|
};
|
|
2176
2185
|
|
|
2177
2186
|
module.exports.__wbg_wasmpeer_new = function(arg0) {
|
|
@@ -2179,43 +2188,34 @@ module.exports.__wbg_wasmpeer_new = function(arg0) {
|
|
|
2179
2188
|
return addHeapObject(ret);
|
|
2180
2189
|
};
|
|
2181
2190
|
|
|
2182
|
-
module.exports.
|
|
2183
|
-
const ret =
|
|
2191
|
+
module.exports.__wbg_wasmblockchain_new = function(arg0) {
|
|
2192
|
+
const ret = WasmBlockchain.__wrap(arg0);
|
|
2184
2193
|
return addHeapObject(ret);
|
|
2185
2194
|
};
|
|
2186
2195
|
|
|
2187
|
-
module.exports.
|
|
2188
|
-
const ret =
|
|
2196
|
+
module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
2197
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
2189
2198
|
return addHeapObject(ret);
|
|
2190
2199
|
};
|
|
2191
2200
|
|
|
2192
|
-
module.exports.
|
|
2193
|
-
const ret =
|
|
2201
|
+
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
2202
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
2194
2203
|
return addHeapObject(ret);
|
|
2195
2204
|
};
|
|
2196
2205
|
|
|
2197
|
-
module.exports.
|
|
2198
|
-
const ret =
|
|
2206
|
+
module.exports.__wbg_wasmslip_new = function(arg0) {
|
|
2207
|
+
const ret = WasmSlip.__wrap(arg0);
|
|
2199
2208
|
return addHeapObject(ret);
|
|
2200
2209
|
};
|
|
2201
2210
|
|
|
2202
|
-
module.exports.
|
|
2203
|
-
const ret =
|
|
2211
|
+
module.exports.__wbg_wasmtransaction_new = function(arg0) {
|
|
2212
|
+
const ret = WasmTransaction.__wrap(arg0);
|
|
2204
2213
|
return addHeapObject(ret);
|
|
2205
2214
|
};
|
|
2206
2215
|
|
|
2207
|
-
module.exports.
|
|
2208
|
-
const ret =
|
|
2209
|
-
return ret;
|
|
2210
|
-
};
|
|
2211
|
-
|
|
2212
|
-
module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
2213
|
-
const obj = getObject(arg1);
|
|
2214
|
-
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
2215
|
-
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2216
|
-
var len1 = WASM_VECTOR_LEN;
|
|
2217
|
-
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
2218
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
2216
|
+
module.exports.__wbg_wasmwalletslip_new = function(arg0) {
|
|
2217
|
+
const ret = WasmWalletSlip.__wrap(arg0);
|
|
2218
|
+
return addHeapObject(ret);
|
|
2219
2219
|
};
|
|
2220
2220
|
|
|
2221
2221
|
module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
|
|
@@ -2223,35 +2223,35 @@ module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
|
|
|
2223
2223
|
return addHeapObject(ret);
|
|
2224
2224
|
};
|
|
2225
2225
|
|
|
2226
|
-
module.exports.
|
|
2227
|
-
const ret =
|
|
2226
|
+
module.exports.__wbg_wasmwallet_new = function(arg0) {
|
|
2227
|
+
const ret = WasmWallet.__wrap(arg0);
|
|
2228
2228
|
return addHeapObject(ret);
|
|
2229
2229
|
};
|
|
2230
2230
|
|
|
2231
|
-
module.exports.
|
|
2232
|
-
const ret =
|
|
2231
|
+
module.exports.__wbg_wasmblock_new = function(arg0) {
|
|
2232
|
+
const ret = WasmBlock.__wrap(arg0);
|
|
2233
2233
|
return addHeapObject(ret);
|
|
2234
2234
|
};
|
|
2235
2235
|
|
|
2236
|
-
module.exports.
|
|
2236
|
+
module.exports.__wbg_sendmessage_2da770b51e5e223d = function(arg0, arg1) {
|
|
2237
2237
|
MsgHandler.send_message(takeObject(arg0), getObject(arg1));
|
|
2238
2238
|
};
|
|
2239
2239
|
|
|
2240
|
-
module.exports.
|
|
2240
|
+
module.exports.__wbg_sendmessagetoall_2b70ea85b94dba39 = function(arg0, arg1) {
|
|
2241
2241
|
MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
|
|
2242
2242
|
};
|
|
2243
2243
|
|
|
2244
|
-
module.exports.
|
|
2244
|
+
module.exports.__wbg_connecttopeer_8f4e38f46e7fb3bb = function() { return handleError(function (arg0) {
|
|
2245
2245
|
const ret = MsgHandler.connect_to_peer(takeObject(arg0));
|
|
2246
2246
|
return addHeapObject(ret);
|
|
2247
2247
|
}, arguments) };
|
|
2248
2248
|
|
|
2249
|
-
module.exports.
|
|
2249
|
+
module.exports.__wbg_disconnectfrompeer_d0475d3b501263e3 = function() { return handleError(function (arg0) {
|
|
2250
2250
|
const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
|
|
2251
2251
|
return addHeapObject(ret);
|
|
2252
2252
|
}, arguments) };
|
|
2253
2253
|
|
|
2254
|
-
module.exports.
|
|
2254
|
+
module.exports.__wbg_fetchblockfrompeer_ddabe10d490527d8 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2255
2255
|
let deferred0_0;
|
|
2256
2256
|
let deferred0_1;
|
|
2257
2257
|
try {
|
|
@@ -2264,7 +2264,7 @@ module.exports.__wbg_fetchblockfrompeer_8a43074070daf0c1 = function() { return h
|
|
|
2264
2264
|
}
|
|
2265
2265
|
}, arguments) };
|
|
2266
2266
|
|
|
2267
|
-
module.exports.
|
|
2267
|
+
module.exports.__wbg_writevalue_0051613a7c08b919 = function(arg0, arg1, arg2) {
|
|
2268
2268
|
let deferred0_0;
|
|
2269
2269
|
let deferred0_1;
|
|
2270
2270
|
try {
|
|
@@ -2276,7 +2276,7 @@ module.exports.__wbg_writevalue_be4f148c2e289d0c = function(arg0, arg1, arg2) {
|
|
|
2276
2276
|
}
|
|
2277
2277
|
};
|
|
2278
2278
|
|
|
2279
|
-
module.exports.
|
|
2279
|
+
module.exports.__wbg_appendvalue_775e1bd83ce26bae = function(arg0, arg1, arg2) {
|
|
2280
2280
|
let deferred0_0;
|
|
2281
2281
|
let deferred0_1;
|
|
2282
2282
|
try {
|
|
@@ -2288,7 +2288,7 @@ module.exports.__wbg_appendvalue_d9713bf89f9d142c = function(arg0, arg1, arg2) {
|
|
|
2288
2288
|
}
|
|
2289
2289
|
};
|
|
2290
2290
|
|
|
2291
|
-
module.exports.
|
|
2291
|
+
module.exports.__wbg_flushdata_044a6f1737b37dd7 = function(arg0, arg1) {
|
|
2292
2292
|
let deferred0_0;
|
|
2293
2293
|
let deferred0_1;
|
|
2294
2294
|
try {
|
|
@@ -2300,7 +2300,7 @@ module.exports.__wbg_flushdata_6a1714ec638be8c5 = function(arg0, arg1) {
|
|
|
2300
2300
|
}
|
|
2301
2301
|
};
|
|
2302
2302
|
|
|
2303
|
-
module.exports.
|
|
2303
|
+
module.exports.__wbg_readvalue_cf803049d33ddd16 = function() { return handleError(function (arg0, arg1) {
|
|
2304
2304
|
let deferred0_0;
|
|
2305
2305
|
let deferred0_1;
|
|
2306
2306
|
try {
|
|
@@ -2313,12 +2313,12 @@ module.exports.__wbg_readvalue_e6b568e70b861bc6 = function() { return handleErro
|
|
|
2313
2313
|
}
|
|
2314
2314
|
}, arguments) };
|
|
2315
2315
|
|
|
2316
|
-
module.exports.
|
|
2316
|
+
module.exports.__wbg_loadblockfilelist_5539c3e2f18e1584 = function() { return handleError(function () {
|
|
2317
2317
|
const ret = MsgHandler.load_block_file_list();
|
|
2318
2318
|
return addHeapObject(ret);
|
|
2319
2319
|
}, arguments) };
|
|
2320
2320
|
|
|
2321
|
-
module.exports.
|
|
2321
|
+
module.exports.__wbg_isexistingfile_603f90a518cefa00 = function() { return handleError(function (arg0, arg1) {
|
|
2322
2322
|
let deferred0_0;
|
|
2323
2323
|
let deferred0_1;
|
|
2324
2324
|
try {
|
|
@@ -2331,7 +2331,7 @@ module.exports.__wbg_isexistingfile_1d4b64a11d7e58a8 = function() { return handl
|
|
|
2331
2331
|
}
|
|
2332
2332
|
}, arguments) };
|
|
2333
2333
|
|
|
2334
|
-
module.exports.
|
|
2334
|
+
module.exports.__wbg_removevalue_5010a3758edf6753 = function() { return handleError(function (arg0, arg1) {
|
|
2335
2335
|
let deferred0_0;
|
|
2336
2336
|
let deferred0_1;
|
|
2337
2337
|
try {
|
|
@@ -2344,7 +2344,7 @@ module.exports.__wbg_removevalue_7207deeba8454627 = function() { return handleEr
|
|
|
2344
2344
|
}
|
|
2345
2345
|
}, arguments) };
|
|
2346
2346
|
|
|
2347
|
-
module.exports.
|
|
2347
|
+
module.exports.__wbg_ensureblockdirectoryexists_24d2ca8da3214ee7 = function() { return handleError(function (arg0, arg1) {
|
|
2348
2348
|
let deferred0_0;
|
|
2349
2349
|
let deferred0_1;
|
|
2350
2350
|
try {
|
|
@@ -2356,19 +2356,19 @@ module.exports.__wbg_ensureblockdirectoryexists_b852e467097ad120 = function() {
|
|
|
2356
2356
|
}
|
|
2357
2357
|
}, arguments) };
|
|
2358
2358
|
|
|
2359
|
-
module.exports.
|
|
2359
|
+
module.exports.__wbg_processapicall_284328851ae1c82d = function(arg0, arg1, arg2) {
|
|
2360
2360
|
MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
|
|
2361
2361
|
};
|
|
2362
2362
|
|
|
2363
|
-
module.exports.
|
|
2363
|
+
module.exports.__wbg_processapisuccess_2498b390855965a4 = function(arg0, arg1, arg2) {
|
|
2364
2364
|
MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
|
|
2365
2365
|
};
|
|
2366
2366
|
|
|
2367
|
-
module.exports.
|
|
2367
|
+
module.exports.__wbg_processapierror_b99650ffb33d40ac = function(arg0, arg1, arg2) {
|
|
2368
2368
|
MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
|
|
2369
2369
|
};
|
|
2370
2370
|
|
|
2371
|
-
module.exports.
|
|
2371
|
+
module.exports.__wbg_sendinterfaceevent_08111420e728c186 = function(arg0, arg1, arg2) {
|
|
2372
2372
|
let deferred0_0;
|
|
2373
2373
|
let deferred0_1;
|
|
2374
2374
|
try {
|
|
@@ -2380,7 +2380,7 @@ module.exports.__wbg_sendinterfaceevent_9cbaa4205f5b0ba2 = function(arg0, arg1,
|
|
|
2380
2380
|
}
|
|
2381
2381
|
};
|
|
2382
2382
|
|
|
2383
|
-
module.exports.
|
|
2383
|
+
module.exports.__wbg_sendblocksuccess_a9be79c400734a5e = function(arg0, arg1, arg2) {
|
|
2384
2384
|
let deferred0_0;
|
|
2385
2385
|
let deferred0_1;
|
|
2386
2386
|
try {
|
|
@@ -2392,11 +2392,11 @@ module.exports.__wbg_sendblocksuccess_8c28b153a9d0dad5 = function(arg0, arg1, ar
|
|
|
2392
2392
|
}
|
|
2393
2393
|
};
|
|
2394
2394
|
|
|
2395
|
-
module.exports.
|
|
2395
|
+
module.exports.__wbg_sendwalletupdate_9cf0f3793c5d3c08 = function() {
|
|
2396
2396
|
MsgHandler.send_wallet_update();
|
|
2397
2397
|
};
|
|
2398
2398
|
|
|
2399
|
-
module.exports.
|
|
2399
|
+
module.exports.__wbg_sendnewversionalert_4d28f4aad3a22d9e = function(arg0, arg1, arg2) {
|
|
2400
2400
|
let deferred0_0;
|
|
2401
2401
|
let deferred0_1;
|
|
2402
2402
|
try {
|
|
@@ -2408,28 +2408,28 @@ module.exports.__wbg_sendnewversionalert_11362b34c62573be = function(arg0, arg1,
|
|
|
2408
2408
|
}
|
|
2409
2409
|
};
|
|
2410
2410
|
|
|
2411
|
-
module.exports.
|
|
2411
|
+
module.exports.__wbg_savewallet_f317ad485d6efaa1 = function() {
|
|
2412
2412
|
MsgHandler.save_wallet();
|
|
2413
2413
|
};
|
|
2414
2414
|
|
|
2415
|
-
module.exports.
|
|
2415
|
+
module.exports.__wbg_loadwallet_12f734b44c62dcca = function() {
|
|
2416
2416
|
MsgHandler.load_wallet();
|
|
2417
2417
|
};
|
|
2418
2418
|
|
|
2419
|
-
module.exports.
|
|
2419
|
+
module.exports.__wbg_getmyservices_557fad08832bd7b3 = function() {
|
|
2420
2420
|
const ret = MsgHandler.get_my_services();
|
|
2421
2421
|
_assertClass(ret, WasmPeerServiceList);
|
|
2422
2422
|
var ptr1 = ret.__destroy_into_raw();
|
|
2423
2423
|
return ptr1;
|
|
2424
2424
|
};
|
|
2425
2425
|
|
|
2426
|
-
module.exports.
|
|
2427
|
-
const ret =
|
|
2426
|
+
module.exports.__wbindgen_error_new = function(arg0, arg1) {
|
|
2427
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
2428
2428
|
return addHeapObject(ret);
|
|
2429
2429
|
};
|
|
2430
2430
|
|
|
2431
|
-
module.exports.
|
|
2432
|
-
const ret =
|
|
2431
|
+
module.exports.__wbg_wasmpeerservice_new = function(arg0) {
|
|
2432
|
+
const ret = WasmPeerService.__wrap(arg0);
|
|
2433
2433
|
return addHeapObject(ret);
|
|
2434
2434
|
};
|
|
2435
2435
|
|
|
@@ -2438,6 +2438,11 @@ module.exports.__wbg_wasmconsensusvalues_new = function(arg0) {
|
|
|
2438
2438
|
return addHeapObject(ret);
|
|
2439
2439
|
};
|
|
2440
2440
|
|
|
2441
|
+
module.exports.__wbg_wasmhop_new = function(arg0) {
|
|
2442
|
+
const ret = WasmHop.__wrap(arg0);
|
|
2443
|
+
return addHeapObject(ret);
|
|
2444
|
+
};
|
|
2445
|
+
|
|
2441
2446
|
module.exports.__wbindgen_is_object = function(arg0) {
|
|
2442
2447
|
const val = getObject(arg0);
|
|
2443
2448
|
const ret = typeof(val) === 'object' && val !== null;
|
|
@@ -2454,11 +2459,6 @@ module.exports.__wbindgen_in = function(arg0, arg1) {
|
|
|
2454
2459
|
return ret;
|
|
2455
2460
|
};
|
|
2456
2461
|
|
|
2457
|
-
module.exports.__wbg_wasmhop_new = function(arg0) {
|
|
2458
|
-
const ret = WasmHop.__wrap(arg0);
|
|
2459
|
-
return addHeapObject(ret);
|
|
2460
|
-
};
|
|
2461
|
-
|
|
2462
2462
|
module.exports.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
|
|
2463
2463
|
const ret = getObject(arg0) == getObject(arg1);
|
|
2464
2464
|
return ret;
|
|
@@ -2814,8 +2814,8 @@ module.exports.__wbindgen_memory = function() {
|
|
|
2814
2814
|
return addHeapObject(ret);
|
|
2815
2815
|
};
|
|
2816
2816
|
|
|
2817
|
-
module.exports.
|
|
2818
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2817
|
+
module.exports.__wbindgen_closure_wrapper1297 = function(arg0, arg1, arg2) {
|
|
2818
|
+
const ret = makeMutClosure(arg0, arg1, 473, __wbg_adapter_40);
|
|
2819
2819
|
return addHeapObject(ret);
|
|
2820
2820
|
};
|
|
2821
2821
|
|
package/pkg/node/index_bg.wasm
CHANGED
|
Binary file
|
|
@@ -46,16 +46,6 @@ export function wasmblockchain_get_longest_chain_hash_at_id(a: number, b: number
|
|
|
46
46
|
export function wasmblockchain_get_hashes_at_id(a: number, b: number): number;
|
|
47
47
|
export function __wbg_wasmconfiguration_free(a: number): void;
|
|
48
48
|
export function wasmconfiguration_new(): number;
|
|
49
|
-
export function __wbg_wasmpeer_free(a: number): void;
|
|
50
|
-
export function wasmpeer_get_public_key(a: number): number;
|
|
51
|
-
export function wasmpeer_get_key_list(a: number): number;
|
|
52
|
-
export function wasmpeer_get_peer_index(a: number): number;
|
|
53
|
-
export function wasmpeer_new(a: number): number;
|
|
54
|
-
export function wasmpeer_get_sync_type(a: number): number;
|
|
55
|
-
export function wasmpeer_get_services(a: number): number;
|
|
56
|
-
export function wasmpeer_set_services(a: number, b: number): void;
|
|
57
|
-
export function wasmpeer_has_service(a: number, b: number): number;
|
|
58
|
-
export function wasmpeer_is_main_peer(a: number): number;
|
|
59
49
|
export function __wbg_saitowasm_free(a: number): void;
|
|
60
50
|
export function initialize(a: number, b: number, c: number, d: number): number;
|
|
61
51
|
export function create_transaction(a: number, b: number, c: number, d: number): number;
|
|
@@ -89,6 +79,16 @@ export function get_mempool_txs(): number;
|
|
|
89
79
|
export function set_wallet_version(a: number, b: number, c: number): number;
|
|
90
80
|
export function is_valid_public_key(a: number): number;
|
|
91
81
|
export function write_issuance_file(a: number): number;
|
|
82
|
+
export function __wbg_wasmpeer_free(a: number): void;
|
|
83
|
+
export function wasmpeer_get_public_key(a: number): number;
|
|
84
|
+
export function wasmpeer_get_key_list(a: number): number;
|
|
85
|
+
export function wasmpeer_get_peer_index(a: number): number;
|
|
86
|
+
export function wasmpeer_new(a: number): number;
|
|
87
|
+
export function wasmpeer_get_sync_type(a: number): number;
|
|
88
|
+
export function wasmpeer_get_services(a: number): number;
|
|
89
|
+
export function wasmpeer_set_services(a: number, b: number): void;
|
|
90
|
+
export function wasmpeer_has_service(a: number, b: number): number;
|
|
91
|
+
export function wasmpeer_is_main_peer(a: number): number;
|
|
92
92
|
export function __wbg_wasmblock_free(a: number): void;
|
|
93
93
|
export function wasmblock_new(): number;
|
|
94
94
|
export function wasmblock_get_transactions(a: number): number;
|
package/pkg/node/package.json
CHANGED
package/pkg/web/index.d.ts
CHANGED
|
@@ -804,16 +804,6 @@ export interface InitOutput {
|
|
|
804
804
|
readonly wasmblockchain_get_hashes_at_id: (a: number, b: number) => number;
|
|
805
805
|
readonly __wbg_wasmconfiguration_free: (a: number) => void;
|
|
806
806
|
readonly wasmconfiguration_new: () => number;
|
|
807
|
-
readonly __wbg_wasmpeer_free: (a: number) => void;
|
|
808
|
-
readonly wasmpeer_get_public_key: (a: number) => number;
|
|
809
|
-
readonly wasmpeer_get_key_list: (a: number) => number;
|
|
810
|
-
readonly wasmpeer_get_peer_index: (a: number) => number;
|
|
811
|
-
readonly wasmpeer_new: (a: number) => number;
|
|
812
|
-
readonly wasmpeer_get_sync_type: (a: number) => number;
|
|
813
|
-
readonly wasmpeer_get_services: (a: number) => number;
|
|
814
|
-
readonly wasmpeer_set_services: (a: number, b: number) => void;
|
|
815
|
-
readonly wasmpeer_has_service: (a: number, b: number) => number;
|
|
816
|
-
readonly wasmpeer_is_main_peer: (a: number) => number;
|
|
817
807
|
readonly __wbg_saitowasm_free: (a: number) => void;
|
|
818
808
|
readonly initialize: (a: number, b: number, c: number, d: number) => number;
|
|
819
809
|
readonly create_transaction: (a: number, b: number, c: number, d: number) => number;
|
|
@@ -847,6 +837,16 @@ export interface InitOutput {
|
|
|
847
837
|
readonly set_wallet_version: (a: number, b: number, c: number) => number;
|
|
848
838
|
readonly is_valid_public_key: (a: number) => number;
|
|
849
839
|
readonly write_issuance_file: (a: number) => number;
|
|
840
|
+
readonly __wbg_wasmpeer_free: (a: number) => void;
|
|
841
|
+
readonly wasmpeer_get_public_key: (a: number) => number;
|
|
842
|
+
readonly wasmpeer_get_key_list: (a: number) => number;
|
|
843
|
+
readonly wasmpeer_get_peer_index: (a: number) => number;
|
|
844
|
+
readonly wasmpeer_new: (a: number) => number;
|
|
845
|
+
readonly wasmpeer_get_sync_type: (a: number) => number;
|
|
846
|
+
readonly wasmpeer_get_services: (a: number) => number;
|
|
847
|
+
readonly wasmpeer_set_services: (a: number, b: number) => void;
|
|
848
|
+
readonly wasmpeer_has_service: (a: number, b: number) => number;
|
|
849
|
+
readonly wasmpeer_is_main_peer: (a: number) => number;
|
|
850
850
|
readonly __wbg_wasmblock_free: (a: number) => void;
|
|
851
851
|
readonly wasmblock_new: () => number;
|
|
852
852
|
readonly wasmblock_get_transactions: (a: number) => number;
|
package/pkg/web/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MsgHandler } from './snippets/saito-wasm-
|
|
1
|
+
import { MsgHandler } from './snippets/saito-wasm-ae026fe17b27dc73/js/msg_handler.js';
|
|
2
2
|
|
|
3
3
|
let wasm;
|
|
4
4
|
|
|
@@ -8,23 +8,7 @@ heap.push(undefined, null, true, false);
|
|
|
8
8
|
|
|
9
9
|
function getObject(idx) { return heap[idx]; }
|
|
10
10
|
|
|
11
|
-
let
|
|
12
|
-
|
|
13
|
-
function dropObject(idx) {
|
|
14
|
-
if (idx < 132) return;
|
|
15
|
-
heap[idx] = heap_next;
|
|
16
|
-
heap_next = idx;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
function takeObject(idx) {
|
|
20
|
-
const ret = getObject(idx);
|
|
21
|
-
dropObject(idx);
|
|
22
|
-
return ret;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
|
|
26
|
-
|
|
27
|
-
if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
|
|
11
|
+
let WASM_VECTOR_LEN = 0;
|
|
28
12
|
|
|
29
13
|
let cachedUint8Memory0 = null;
|
|
30
14
|
|
|
@@ -35,22 +19,6 @@ function getUint8Memory0() {
|
|
|
35
19
|
return cachedUint8Memory0;
|
|
36
20
|
}
|
|
37
21
|
|
|
38
|
-
function getStringFromWasm0(ptr, len) {
|
|
39
|
-
ptr = ptr >>> 0;
|
|
40
|
-
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
function addHeapObject(obj) {
|
|
44
|
-
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
45
|
-
const idx = heap_next;
|
|
46
|
-
heap_next = heap[idx];
|
|
47
|
-
|
|
48
|
-
heap[idx] = obj;
|
|
49
|
-
return idx;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
let WASM_VECTOR_LEN = 0;
|
|
53
|
-
|
|
54
22
|
const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );
|
|
55
23
|
|
|
56
24
|
const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
|
|
@@ -118,6 +86,38 @@ function getInt32Memory0() {
|
|
|
118
86
|
return cachedInt32Memory0;
|
|
119
87
|
}
|
|
120
88
|
|
|
89
|
+
let heap_next = heap.length;
|
|
90
|
+
|
|
91
|
+
function dropObject(idx) {
|
|
92
|
+
if (idx < 132) return;
|
|
93
|
+
heap[idx] = heap_next;
|
|
94
|
+
heap_next = idx;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
function takeObject(idx) {
|
|
98
|
+
const ret = getObject(idx);
|
|
99
|
+
dropObject(idx);
|
|
100
|
+
return ret;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
function addHeapObject(obj) {
|
|
104
|
+
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
105
|
+
const idx = heap_next;
|
|
106
|
+
heap_next = heap[idx];
|
|
107
|
+
|
|
108
|
+
heap[idx] = obj;
|
|
109
|
+
return idx;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
|
|
113
|
+
|
|
114
|
+
if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
|
|
115
|
+
|
|
116
|
+
function getStringFromWasm0(ptr, len) {
|
|
117
|
+
ptr = ptr >>> 0;
|
|
118
|
+
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
119
|
+
}
|
|
120
|
+
|
|
121
121
|
let cachedFloat64Memory0 = null;
|
|
122
122
|
|
|
123
123
|
function getFloat64Memory0() {
|
|
@@ -2183,76 +2183,76 @@ async function __wbg_load(module, imports) {
|
|
|
2183
2183
|
function __wbg_get_imports() {
|
|
2184
2184
|
const imports = {};
|
|
2185
2185
|
imports.wbg = {};
|
|
2186
|
+
imports.wbg.__wbindgen_is_falsy = function(arg0) {
|
|
2187
|
+
const ret = !getObject(arg0);
|
|
2188
|
+
return ret;
|
|
2189
|
+
};
|
|
2190
|
+
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
2191
|
+
const obj = getObject(arg1);
|
|
2192
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
2193
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2194
|
+
var len1 = WASM_VECTOR_LEN;
|
|
2195
|
+
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
2196
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
2197
|
+
};
|
|
2186
2198
|
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
2187
2199
|
takeObject(arg0);
|
|
2188
2200
|
};
|
|
2189
|
-
imports.wbg.__wbg_wasmtransaction_new = function(arg0) {
|
|
2190
|
-
const ret = WasmTransaction.__wrap(arg0);
|
|
2191
|
-
return addHeapObject(ret);
|
|
2192
|
-
};
|
|
2193
2201
|
imports.wbg.__wbg_wasmpeer_new = function(arg0) {
|
|
2194
2202
|
const ret = WasmPeer.__wrap(arg0);
|
|
2195
2203
|
return addHeapObject(ret);
|
|
2196
2204
|
};
|
|
2197
|
-
imports.wbg.
|
|
2198
|
-
const ret =
|
|
2205
|
+
imports.wbg.__wbg_wasmblockchain_new = function(arg0) {
|
|
2206
|
+
const ret = WasmBlockchain.__wrap(arg0);
|
|
2199
2207
|
return addHeapObject(ret);
|
|
2200
2208
|
};
|
|
2201
|
-
imports.wbg.
|
|
2202
|
-
const ret =
|
|
2209
|
+
imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
2210
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
2203
2211
|
return addHeapObject(ret);
|
|
2204
2212
|
};
|
|
2205
|
-
imports.wbg.
|
|
2206
|
-
const ret =
|
|
2213
|
+
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
2214
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
2207
2215
|
return addHeapObject(ret);
|
|
2208
2216
|
};
|
|
2209
|
-
imports.wbg.
|
|
2210
|
-
const ret =
|
|
2217
|
+
imports.wbg.__wbg_wasmslip_new = function(arg0) {
|
|
2218
|
+
const ret = WasmSlip.__wrap(arg0);
|
|
2211
2219
|
return addHeapObject(ret);
|
|
2212
2220
|
};
|
|
2213
|
-
imports.wbg.
|
|
2214
|
-
const ret =
|
|
2221
|
+
imports.wbg.__wbg_wasmtransaction_new = function(arg0) {
|
|
2222
|
+
const ret = WasmTransaction.__wrap(arg0);
|
|
2215
2223
|
return addHeapObject(ret);
|
|
2216
2224
|
};
|
|
2217
|
-
imports.wbg.
|
|
2218
|
-
const ret =
|
|
2219
|
-
return ret;
|
|
2220
|
-
};
|
|
2221
|
-
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
2222
|
-
const obj = getObject(arg1);
|
|
2223
|
-
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
2224
|
-
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2225
|
-
var len1 = WASM_VECTOR_LEN;
|
|
2226
|
-
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
2227
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
2225
|
+
imports.wbg.__wbg_wasmwalletslip_new = function(arg0) {
|
|
2226
|
+
const ret = WasmWalletSlip.__wrap(arg0);
|
|
2227
|
+
return addHeapObject(ret);
|
|
2228
2228
|
};
|
|
2229
2229
|
imports.wbg.__wbg_wasmbalancesnapshot_new = function(arg0) {
|
|
2230
2230
|
const ret = WasmBalanceSnapshot.__wrap(arg0);
|
|
2231
2231
|
return addHeapObject(ret);
|
|
2232
2232
|
};
|
|
2233
|
-
imports.wbg.
|
|
2234
|
-
const ret =
|
|
2233
|
+
imports.wbg.__wbg_wasmwallet_new = function(arg0) {
|
|
2234
|
+
const ret = WasmWallet.__wrap(arg0);
|
|
2235
2235
|
return addHeapObject(ret);
|
|
2236
2236
|
};
|
|
2237
|
-
imports.wbg.
|
|
2238
|
-
const ret =
|
|
2237
|
+
imports.wbg.__wbg_wasmblock_new = function(arg0) {
|
|
2238
|
+
const ret = WasmBlock.__wrap(arg0);
|
|
2239
2239
|
return addHeapObject(ret);
|
|
2240
2240
|
};
|
|
2241
|
-
imports.wbg.
|
|
2241
|
+
imports.wbg.__wbg_sendmessage_2da770b51e5e223d = function(arg0, arg1) {
|
|
2242
2242
|
MsgHandler.send_message(takeObject(arg0), getObject(arg1));
|
|
2243
2243
|
};
|
|
2244
|
-
imports.wbg.
|
|
2244
|
+
imports.wbg.__wbg_sendmessagetoall_2b70ea85b94dba39 = function(arg0, arg1) {
|
|
2245
2245
|
MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
|
|
2246
2246
|
};
|
|
2247
|
-
imports.wbg.
|
|
2247
|
+
imports.wbg.__wbg_connecttopeer_8f4e38f46e7fb3bb = function() { return handleError(function (arg0) {
|
|
2248
2248
|
const ret = MsgHandler.connect_to_peer(takeObject(arg0));
|
|
2249
2249
|
return addHeapObject(ret);
|
|
2250
2250
|
}, arguments) };
|
|
2251
|
-
imports.wbg.
|
|
2251
|
+
imports.wbg.__wbg_disconnectfrompeer_d0475d3b501263e3 = function() { return handleError(function (arg0) {
|
|
2252
2252
|
const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
|
|
2253
2253
|
return addHeapObject(ret);
|
|
2254
2254
|
}, arguments) };
|
|
2255
|
-
imports.wbg.
|
|
2255
|
+
imports.wbg.__wbg_fetchblockfrompeer_ddabe10d490527d8 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2256
2256
|
let deferred0_0;
|
|
2257
2257
|
let deferred0_1;
|
|
2258
2258
|
try {
|
|
@@ -2264,7 +2264,7 @@ function __wbg_get_imports() {
|
|
|
2264
2264
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2265
2265
|
}
|
|
2266
2266
|
}, arguments) };
|
|
2267
|
-
imports.wbg.
|
|
2267
|
+
imports.wbg.__wbg_writevalue_0051613a7c08b919 = function(arg0, arg1, arg2) {
|
|
2268
2268
|
let deferred0_0;
|
|
2269
2269
|
let deferred0_1;
|
|
2270
2270
|
try {
|
|
@@ -2275,7 +2275,7 @@ function __wbg_get_imports() {
|
|
|
2275
2275
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2276
2276
|
}
|
|
2277
2277
|
};
|
|
2278
|
-
imports.wbg.
|
|
2278
|
+
imports.wbg.__wbg_appendvalue_775e1bd83ce26bae = function(arg0, arg1, arg2) {
|
|
2279
2279
|
let deferred0_0;
|
|
2280
2280
|
let deferred0_1;
|
|
2281
2281
|
try {
|
|
@@ -2286,7 +2286,7 @@ function __wbg_get_imports() {
|
|
|
2286
2286
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2287
2287
|
}
|
|
2288
2288
|
};
|
|
2289
|
-
imports.wbg.
|
|
2289
|
+
imports.wbg.__wbg_flushdata_044a6f1737b37dd7 = function(arg0, arg1) {
|
|
2290
2290
|
let deferred0_0;
|
|
2291
2291
|
let deferred0_1;
|
|
2292
2292
|
try {
|
|
@@ -2297,7 +2297,7 @@ function __wbg_get_imports() {
|
|
|
2297
2297
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2298
2298
|
}
|
|
2299
2299
|
};
|
|
2300
|
-
imports.wbg.
|
|
2300
|
+
imports.wbg.__wbg_readvalue_cf803049d33ddd16 = function() { return handleError(function (arg0, arg1) {
|
|
2301
2301
|
let deferred0_0;
|
|
2302
2302
|
let deferred0_1;
|
|
2303
2303
|
try {
|
|
@@ -2309,11 +2309,11 @@ function __wbg_get_imports() {
|
|
|
2309
2309
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2310
2310
|
}
|
|
2311
2311
|
}, arguments) };
|
|
2312
|
-
imports.wbg.
|
|
2312
|
+
imports.wbg.__wbg_loadblockfilelist_5539c3e2f18e1584 = function() { return handleError(function () {
|
|
2313
2313
|
const ret = MsgHandler.load_block_file_list();
|
|
2314
2314
|
return addHeapObject(ret);
|
|
2315
2315
|
}, arguments) };
|
|
2316
|
-
imports.wbg.
|
|
2316
|
+
imports.wbg.__wbg_isexistingfile_603f90a518cefa00 = function() { return handleError(function (arg0, arg1) {
|
|
2317
2317
|
let deferred0_0;
|
|
2318
2318
|
let deferred0_1;
|
|
2319
2319
|
try {
|
|
@@ -2325,7 +2325,7 @@ function __wbg_get_imports() {
|
|
|
2325
2325
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2326
2326
|
}
|
|
2327
2327
|
}, arguments) };
|
|
2328
|
-
imports.wbg.
|
|
2328
|
+
imports.wbg.__wbg_removevalue_5010a3758edf6753 = function() { return handleError(function (arg0, arg1) {
|
|
2329
2329
|
let deferred0_0;
|
|
2330
2330
|
let deferred0_1;
|
|
2331
2331
|
try {
|
|
@@ -2337,7 +2337,7 @@ 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_ensureblockdirectoryexists_24d2ca8da3214ee7 = function() { return handleError(function (arg0, arg1) {
|
|
2341
2341
|
let deferred0_0;
|
|
2342
2342
|
let deferred0_1;
|
|
2343
2343
|
try {
|
|
@@ -2348,16 +2348,16 @@ function __wbg_get_imports() {
|
|
|
2348
2348
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2349
2349
|
}
|
|
2350
2350
|
}, arguments) };
|
|
2351
|
-
imports.wbg.
|
|
2351
|
+
imports.wbg.__wbg_processapicall_284328851ae1c82d = function(arg0, arg1, arg2) {
|
|
2352
2352
|
MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
|
|
2353
2353
|
};
|
|
2354
|
-
imports.wbg.
|
|
2354
|
+
imports.wbg.__wbg_processapisuccess_2498b390855965a4 = function(arg0, arg1, arg2) {
|
|
2355
2355
|
MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
|
|
2356
2356
|
};
|
|
2357
|
-
imports.wbg.
|
|
2357
|
+
imports.wbg.__wbg_processapierror_b99650ffb33d40ac = function(arg0, arg1, arg2) {
|
|
2358
2358
|
MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
|
|
2359
2359
|
};
|
|
2360
|
-
imports.wbg.
|
|
2360
|
+
imports.wbg.__wbg_sendinterfaceevent_08111420e728c186 = function(arg0, arg1, arg2) {
|
|
2361
2361
|
let deferred0_0;
|
|
2362
2362
|
let deferred0_1;
|
|
2363
2363
|
try {
|
|
@@ -2368,7 +2368,7 @@ function __wbg_get_imports() {
|
|
|
2368
2368
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2369
2369
|
}
|
|
2370
2370
|
};
|
|
2371
|
-
imports.wbg.
|
|
2371
|
+
imports.wbg.__wbg_sendblocksuccess_a9be79c400734a5e = function(arg0, arg1, arg2) {
|
|
2372
2372
|
let deferred0_0;
|
|
2373
2373
|
let deferred0_1;
|
|
2374
2374
|
try {
|
|
@@ -2379,10 +2379,10 @@ function __wbg_get_imports() {
|
|
|
2379
2379
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2380
2380
|
}
|
|
2381
2381
|
};
|
|
2382
|
-
imports.wbg.
|
|
2382
|
+
imports.wbg.__wbg_sendwalletupdate_9cf0f3793c5d3c08 = function() {
|
|
2383
2383
|
MsgHandler.send_wallet_update();
|
|
2384
2384
|
};
|
|
2385
|
-
imports.wbg.
|
|
2385
|
+
imports.wbg.__wbg_sendnewversionalert_4d28f4aad3a22d9e = function(arg0, arg1, arg2) {
|
|
2386
2386
|
let deferred0_0;
|
|
2387
2387
|
let deferred0_1;
|
|
2388
2388
|
try {
|
|
@@ -2393,30 +2393,34 @@ function __wbg_get_imports() {
|
|
|
2393
2393
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2394
2394
|
}
|
|
2395
2395
|
};
|
|
2396
|
-
imports.wbg.
|
|
2396
|
+
imports.wbg.__wbg_savewallet_f317ad485d6efaa1 = function() {
|
|
2397
2397
|
MsgHandler.save_wallet();
|
|
2398
2398
|
};
|
|
2399
|
-
imports.wbg.
|
|
2399
|
+
imports.wbg.__wbg_loadwallet_12f734b44c62dcca = function() {
|
|
2400
2400
|
MsgHandler.load_wallet();
|
|
2401
2401
|
};
|
|
2402
|
-
imports.wbg.
|
|
2402
|
+
imports.wbg.__wbg_getmyservices_557fad08832bd7b3 = function() {
|
|
2403
2403
|
const ret = MsgHandler.get_my_services();
|
|
2404
2404
|
_assertClass(ret, WasmPeerServiceList);
|
|
2405
2405
|
var ptr1 = ret.__destroy_into_raw();
|
|
2406
2406
|
return ptr1;
|
|
2407
2407
|
};
|
|
2408
|
-
imports.wbg.__wbg_wasmpeerservice_new = function(arg0) {
|
|
2409
|
-
const ret = WasmPeerService.__wrap(arg0);
|
|
2410
|
-
return addHeapObject(ret);
|
|
2411
|
-
};
|
|
2412
2408
|
imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
|
|
2413
2409
|
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
2414
2410
|
return addHeapObject(ret);
|
|
2415
2411
|
};
|
|
2412
|
+
imports.wbg.__wbg_wasmpeerservice_new = function(arg0) {
|
|
2413
|
+
const ret = WasmPeerService.__wrap(arg0);
|
|
2414
|
+
return addHeapObject(ret);
|
|
2415
|
+
};
|
|
2416
2416
|
imports.wbg.__wbg_wasmconsensusvalues_new = function(arg0) {
|
|
2417
2417
|
const ret = WasmConsensusValues.__wrap(arg0);
|
|
2418
2418
|
return addHeapObject(ret);
|
|
2419
2419
|
};
|
|
2420
|
+
imports.wbg.__wbg_wasmhop_new = function(arg0) {
|
|
2421
|
+
const ret = WasmHop.__wrap(arg0);
|
|
2422
|
+
return addHeapObject(ret);
|
|
2423
|
+
};
|
|
2420
2424
|
imports.wbg.__wbindgen_is_object = function(arg0) {
|
|
2421
2425
|
const val = getObject(arg0);
|
|
2422
2426
|
const ret = typeof(val) === 'object' && val !== null;
|
|
@@ -2430,10 +2434,6 @@ function __wbg_get_imports() {
|
|
|
2430
2434
|
const ret = getObject(arg0) in getObject(arg1);
|
|
2431
2435
|
return ret;
|
|
2432
2436
|
};
|
|
2433
|
-
imports.wbg.__wbg_wasmhop_new = function(arg0) {
|
|
2434
|
-
const ret = WasmHop.__wrap(arg0);
|
|
2435
|
-
return addHeapObject(ret);
|
|
2436
|
-
};
|
|
2437
2437
|
imports.wbg.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
|
|
2438
2438
|
const ret = getObject(arg0) == getObject(arg1);
|
|
2439
2439
|
return ret;
|
|
@@ -2723,8 +2723,8 @@ function __wbg_get_imports() {
|
|
|
2723
2723
|
const ret = wasm.memory;
|
|
2724
2724
|
return addHeapObject(ret);
|
|
2725
2725
|
};
|
|
2726
|
-
imports.wbg.
|
|
2727
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2726
|
+
imports.wbg.__wbindgen_closure_wrapper1297 = function(arg0, arg1, arg2) {
|
|
2727
|
+
const ret = makeMutClosure(arg0, arg1, 473, __wbg_adapter_40);
|
|
2728
2728
|
return addHeapObject(ret);
|
|
2729
2729
|
};
|
|
2730
2730
|
|
package/pkg/web/index_bg.wasm
CHANGED
|
Binary file
|
|
@@ -46,16 +46,6 @@ export function wasmblockchain_get_longest_chain_hash_at_id(a: number, b: number
|
|
|
46
46
|
export function wasmblockchain_get_hashes_at_id(a: number, b: number): number;
|
|
47
47
|
export function __wbg_wasmconfiguration_free(a: number): void;
|
|
48
48
|
export function wasmconfiguration_new(): number;
|
|
49
|
-
export function __wbg_wasmpeer_free(a: number): void;
|
|
50
|
-
export function wasmpeer_get_public_key(a: number): number;
|
|
51
|
-
export function wasmpeer_get_key_list(a: number): number;
|
|
52
|
-
export function wasmpeer_get_peer_index(a: number): number;
|
|
53
|
-
export function wasmpeer_new(a: number): number;
|
|
54
|
-
export function wasmpeer_get_sync_type(a: number): number;
|
|
55
|
-
export function wasmpeer_get_services(a: number): number;
|
|
56
|
-
export function wasmpeer_set_services(a: number, b: number): void;
|
|
57
|
-
export function wasmpeer_has_service(a: number, b: number): number;
|
|
58
|
-
export function wasmpeer_is_main_peer(a: number): number;
|
|
59
49
|
export function __wbg_saitowasm_free(a: number): void;
|
|
60
50
|
export function initialize(a: number, b: number, c: number, d: number): number;
|
|
61
51
|
export function create_transaction(a: number, b: number, c: number, d: number): number;
|
|
@@ -89,6 +79,16 @@ export function get_mempool_txs(): number;
|
|
|
89
79
|
export function set_wallet_version(a: number, b: number, c: number): number;
|
|
90
80
|
export function is_valid_public_key(a: number): number;
|
|
91
81
|
export function write_issuance_file(a: number): number;
|
|
82
|
+
export function __wbg_wasmpeer_free(a: number): void;
|
|
83
|
+
export function wasmpeer_get_public_key(a: number): number;
|
|
84
|
+
export function wasmpeer_get_key_list(a: number): number;
|
|
85
|
+
export function wasmpeer_get_peer_index(a: number): number;
|
|
86
|
+
export function wasmpeer_new(a: number): number;
|
|
87
|
+
export function wasmpeer_get_sync_type(a: number): number;
|
|
88
|
+
export function wasmpeer_get_services(a: number): number;
|
|
89
|
+
export function wasmpeer_set_services(a: number, b: number): void;
|
|
90
|
+
export function wasmpeer_has_service(a: number, b: number): number;
|
|
91
|
+
export function wasmpeer_is_main_peer(a: number): number;
|
|
92
92
|
export function __wbg_wasmblock_free(a: number): void;
|
|
93
93
|
export function wasmblock_new(): number;
|
|
94
94
|
export function wasmblock_get_transactions(a: number): number;
|
package/pkg/web/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "saito-wasm",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.53",
|
|
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
|