saito-wasm 0.2.2 → 0.2.3
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 +93 -94
- package/pkg/node/index_bg.wasm +0 -0
- package/pkg/node/index_bg.wasm.d.ts +82 -82
- package/pkg/node/package.json +3 -3
- package/pkg/web/index.d.ts +82 -82
- package/pkg/web/index.js +86 -87
- package/pkg/web/index_bg.wasm +0 -0
- package/pkg/web/index_bg.wasm.d.ts +82 -82
- package/pkg/web/package.json +1 -1
- /package/pkg/node/snippets/{saito-wasm-36ef46c03e11a68e → saito-wasm-d09df772ee8ec91d}/js/msg_handler.js +0 -0
- /package/pkg/web/snippets/{saito-wasm-36ef46c03e11a68e → saito-wasm-d09df772ee8ec91d}/js/msg_handler.js +0 -0
package/Cargo.toml
CHANGED
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-d09df772ee8ec91d/js/msg_handler.js`);
|
|
5
5
|
const { TextDecoder, TextEncoder } = require(`util`);
|
|
6
6
|
|
|
7
7
|
const heap = new Array(128).fill(undefined);
|
|
@@ -24,15 +24,6 @@ function takeObject(idx) {
|
|
|
24
24
|
return ret;
|
|
25
25
|
}
|
|
26
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
27
|
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
37
28
|
|
|
38
29
|
cachedTextDecoder.decode();
|
|
@@ -51,6 +42,15 @@ function getStringFromWasm0(ptr, len) {
|
|
|
51
42
|
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
52
43
|
}
|
|
53
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
54
|
let WASM_VECTOR_LEN = 0;
|
|
55
55
|
|
|
56
56
|
let cachedTextEncoder = new TextEncoder('utf-8');
|
|
@@ -234,14 +234,6 @@ function _assertClass(instance, klass) {
|
|
|
234
234
|
}
|
|
235
235
|
return instance.ptr;
|
|
236
236
|
}
|
|
237
|
-
|
|
238
|
-
function handleError(f, args) {
|
|
239
|
-
try {
|
|
240
|
-
return f.apply(this, args);
|
|
241
|
-
} catch (e) {
|
|
242
|
-
wasm.__wbindgen_exn_store(addHeapObject(e));
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
237
|
/**
|
|
246
238
|
* @param {string} json
|
|
247
239
|
* @param {string} private_key
|
|
@@ -583,6 +575,13 @@ module.exports.write_issuance_file = function(threshold) {
|
|
|
583
575
|
return takeObject(ret);
|
|
584
576
|
};
|
|
585
577
|
|
|
578
|
+
function handleError(f, args) {
|
|
579
|
+
try {
|
|
580
|
+
return f.apply(this, args);
|
|
581
|
+
} catch (e) {
|
|
582
|
+
wasm.__wbindgen_exn_store(addHeapObject(e));
|
|
583
|
+
}
|
|
584
|
+
}
|
|
586
585
|
function __wbg_adapter_372(arg0, arg1, arg2, arg3) {
|
|
587
586
|
wasm.wasm_bindgen__convert__closures__invoke2_mut__h159099ca72b28043(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
588
587
|
}
|
|
@@ -2165,13 +2164,13 @@ class WasmWalletSlip {
|
|
|
2165
2164
|
}
|
|
2166
2165
|
module.exports.WasmWalletSlip = WasmWalletSlip;
|
|
2167
2166
|
|
|
2168
|
-
module.exports.
|
|
2169
|
-
|
|
2167
|
+
module.exports.__wbg_wasmblockchain_new = function(arg0) {
|
|
2168
|
+
const ret = WasmBlockchain.__wrap(arg0);
|
|
2169
|
+
return addHeapObject(ret);
|
|
2170
2170
|
};
|
|
2171
2171
|
|
|
2172
|
-
module.exports.
|
|
2173
|
-
|
|
2174
|
-
return addHeapObject(ret);
|
|
2172
|
+
module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
2173
|
+
takeObject(arg0);
|
|
2175
2174
|
};
|
|
2176
2175
|
|
|
2177
2176
|
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
@@ -2179,48 +2178,43 @@ module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
|
2179
2178
|
return addHeapObject(ret);
|
|
2180
2179
|
};
|
|
2181
2180
|
|
|
2182
|
-
module.exports.
|
|
2183
|
-
const ret =
|
|
2184
|
-
return addHeapObject(ret);
|
|
2185
|
-
};
|
|
2186
|
-
|
|
2187
|
-
module.exports.__wbg_wasmslip_new = function(arg0) {
|
|
2188
|
-
const ret = WasmSlip.__wrap(arg0);
|
|
2181
|
+
module.exports.__wbg_wasmblock_new = function(arg0) {
|
|
2182
|
+
const ret = WasmBlock.__wrap(arg0);
|
|
2189
2183
|
return addHeapObject(ret);
|
|
2190
2184
|
};
|
|
2191
2185
|
|
|
2192
|
-
module.exports.
|
|
2193
|
-
const ret =
|
|
2186
|
+
module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
2187
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
2194
2188
|
return addHeapObject(ret);
|
|
2195
2189
|
};
|
|
2196
2190
|
|
|
2197
|
-
module.exports.
|
|
2198
|
-
const ret =
|
|
2191
|
+
module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
|
|
2192
|
+
const ret = WasmBalanceSnapshot.__wrap(arg0);
|
|
2199
2193
|
return addHeapObject(ret);
|
|
2200
2194
|
};
|
|
2201
2195
|
|
|
2202
|
-
module.exports.
|
|
2203
|
-
const ret =
|
|
2196
|
+
module.exports.__wbg_wasmwallet_new = function(arg0) {
|
|
2197
|
+
const ret = WasmWallet.__wrap(arg0);
|
|
2204
2198
|
return addHeapObject(ret);
|
|
2205
2199
|
};
|
|
2206
2200
|
|
|
2207
|
-
module.exports.
|
|
2208
|
-
const ret =
|
|
2201
|
+
module.exports.__wbg_wasmpeer_new = function(arg0) {
|
|
2202
|
+
const ret = WasmPeer.__wrap(arg0);
|
|
2209
2203
|
return addHeapObject(ret);
|
|
2210
2204
|
};
|
|
2211
2205
|
|
|
2212
|
-
module.exports.
|
|
2213
|
-
const ret =
|
|
2206
|
+
module.exports.__wbg_wasmtransaction_new = function(arg0) {
|
|
2207
|
+
const ret = WasmTransaction.__wrap(arg0);
|
|
2214
2208
|
return addHeapObject(ret);
|
|
2215
2209
|
};
|
|
2216
2210
|
|
|
2217
|
-
module.exports.
|
|
2218
|
-
const ret =
|
|
2211
|
+
module.exports.__wbg_wasmslip_new = function(arg0) {
|
|
2212
|
+
const ret = WasmSlip.__wrap(arg0);
|
|
2219
2213
|
return addHeapObject(ret);
|
|
2220
2214
|
};
|
|
2221
2215
|
|
|
2222
|
-
module.exports.
|
|
2223
|
-
const ret =
|
|
2216
|
+
module.exports.__wbg_wasmwalletslip_new = function(arg0) {
|
|
2217
|
+
const ret = WasmWalletSlip.__wrap(arg0);
|
|
2224
2218
|
return addHeapObject(ret);
|
|
2225
2219
|
};
|
|
2226
2220
|
|
|
@@ -2238,15 +2232,46 @@ module.exports.__wbg_wasmconsensusvalues_new = function(arg0) {
|
|
|
2238
2232
|
return addHeapObject(ret);
|
|
2239
2233
|
};
|
|
2240
2234
|
|
|
2241
|
-
module.exports.
|
|
2235
|
+
module.exports.__wbg_wasmhop_new = function(arg0) {
|
|
2236
|
+
const ret = WasmHop.__wrap(arg0);
|
|
2237
|
+
return addHeapObject(ret);
|
|
2238
|
+
};
|
|
2239
|
+
|
|
2240
|
+
module.exports.__wbindgen_error_new = function(arg0, arg1) {
|
|
2241
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
2242
|
+
return addHeapObject(ret);
|
|
2243
|
+
};
|
|
2244
|
+
|
|
2245
|
+
module.exports.__wbg_wasmpeerservice_new = function(arg0) {
|
|
2246
|
+
const ret = WasmPeerService.__wrap(arg0);
|
|
2247
|
+
return addHeapObject(ret);
|
|
2248
|
+
};
|
|
2249
|
+
|
|
2250
|
+
module.exports.__wbindgen_is_object = function(arg0) {
|
|
2251
|
+
const val = getObject(arg0);
|
|
2252
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
2253
|
+
return ret;
|
|
2254
|
+
};
|
|
2255
|
+
|
|
2256
|
+
module.exports.__wbindgen_is_undefined = function(arg0) {
|
|
2257
|
+
const ret = getObject(arg0) === undefined;
|
|
2258
|
+
return ret;
|
|
2259
|
+
};
|
|
2260
|
+
|
|
2261
|
+
module.exports.__wbindgen_in = function(arg0, arg1) {
|
|
2262
|
+
const ret = getObject(arg0) in getObject(arg1);
|
|
2263
|
+
return ret;
|
|
2264
|
+
};
|
|
2265
|
+
|
|
2266
|
+
module.exports.__wbg_sendmessage_0b1a52b2c520071e = function(arg0, arg1) {
|
|
2242
2267
|
MsgHandler.send_message(takeObject(arg0), getObject(arg1));
|
|
2243
2268
|
};
|
|
2244
2269
|
|
|
2245
|
-
module.exports.
|
|
2270
|
+
module.exports.__wbg_sendmessagetoall_b797f4c64a53d1cc = function(arg0, arg1) {
|
|
2246
2271
|
MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
|
|
2247
2272
|
};
|
|
2248
2273
|
|
|
2249
|
-
module.exports.
|
|
2274
|
+
module.exports.__wbg_connecttopeer_f4305c605f1dc764 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
2250
2275
|
let deferred0_0;
|
|
2251
2276
|
let deferred0_1;
|
|
2252
2277
|
try {
|
|
@@ -2259,12 +2284,12 @@ module.exports.__wbg_connecttopeer_ff97d90270d8add5 = function() { return handle
|
|
|
2259
2284
|
}
|
|
2260
2285
|
}, arguments) };
|
|
2261
2286
|
|
|
2262
|
-
module.exports.
|
|
2287
|
+
module.exports.__wbg_disconnectfrompeer_522caa9628a9991a = function() { return handleError(function (arg0) {
|
|
2263
2288
|
const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
|
|
2264
2289
|
return addHeapObject(ret);
|
|
2265
2290
|
}, arguments) };
|
|
2266
2291
|
|
|
2267
|
-
module.exports.
|
|
2292
|
+
module.exports.__wbg_fetchblockfrompeer_86f6a39b690bea3e = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2268
2293
|
let deferred0_0;
|
|
2269
2294
|
let deferred0_1;
|
|
2270
2295
|
try {
|
|
@@ -2277,7 +2302,7 @@ module.exports.__wbg_fetchblockfrompeer_d043da5ff30449b8 = function() { return h
|
|
|
2277
2302
|
}
|
|
2278
2303
|
}, arguments) };
|
|
2279
2304
|
|
|
2280
|
-
module.exports.
|
|
2305
|
+
module.exports.__wbg_writevalue_0a1c55d620d8482b = function(arg0, arg1, arg2) {
|
|
2281
2306
|
let deferred0_0;
|
|
2282
2307
|
let deferred0_1;
|
|
2283
2308
|
try {
|
|
@@ -2289,7 +2314,7 @@ module.exports.__wbg_writevalue_a872d0cd4b9d437d = function(arg0, arg1, arg2) {
|
|
|
2289
2314
|
}
|
|
2290
2315
|
};
|
|
2291
2316
|
|
|
2292
|
-
module.exports.
|
|
2317
|
+
module.exports.__wbg_appendvalue_955e2680e0158308 = function(arg0, arg1, arg2) {
|
|
2293
2318
|
let deferred0_0;
|
|
2294
2319
|
let deferred0_1;
|
|
2295
2320
|
try {
|
|
@@ -2301,7 +2326,7 @@ module.exports.__wbg_appendvalue_af44896bd2f4a3f9 = function(arg0, arg1, arg2) {
|
|
|
2301
2326
|
}
|
|
2302
2327
|
};
|
|
2303
2328
|
|
|
2304
|
-
module.exports.
|
|
2329
|
+
module.exports.__wbg_flushdata_1ff65703868693dc = function(arg0, arg1) {
|
|
2305
2330
|
let deferred0_0;
|
|
2306
2331
|
let deferred0_1;
|
|
2307
2332
|
try {
|
|
@@ -2313,7 +2338,7 @@ module.exports.__wbg_flushdata_a5376eef6c458262 = function(arg0, arg1) {
|
|
|
2313
2338
|
}
|
|
2314
2339
|
};
|
|
2315
2340
|
|
|
2316
|
-
module.exports.
|
|
2341
|
+
module.exports.__wbg_readvalue_6326726e74830b6a = function() { return handleError(function (arg0, arg1) {
|
|
2317
2342
|
let deferred0_0;
|
|
2318
2343
|
let deferred0_1;
|
|
2319
2344
|
try {
|
|
@@ -2326,12 +2351,12 @@ module.exports.__wbg_readvalue_3354a9ec31fb7e64 = function() { return handleErro
|
|
|
2326
2351
|
}
|
|
2327
2352
|
}, arguments) };
|
|
2328
2353
|
|
|
2329
|
-
module.exports.
|
|
2354
|
+
module.exports.__wbg_loadblockfilelist_e5b675fc0edd4599 = function() { return handleError(function () {
|
|
2330
2355
|
const ret = MsgHandler.load_block_file_list();
|
|
2331
2356
|
return addHeapObject(ret);
|
|
2332
2357
|
}, arguments) };
|
|
2333
2358
|
|
|
2334
|
-
module.exports.
|
|
2359
|
+
module.exports.__wbg_isexistingfile_fba8b8a121aaeef0 = function() { return handleError(function (arg0, arg1) {
|
|
2335
2360
|
let deferred0_0;
|
|
2336
2361
|
let deferred0_1;
|
|
2337
2362
|
try {
|
|
@@ -2344,7 +2369,7 @@ module.exports.__wbg_isexistingfile_e0b51536a97dca88 = function() { return handl
|
|
|
2344
2369
|
}
|
|
2345
2370
|
}, arguments) };
|
|
2346
2371
|
|
|
2347
|
-
module.exports.
|
|
2372
|
+
module.exports.__wbg_removevalue_56600749b17e6328 = function() { return handleError(function (arg0, arg1) {
|
|
2348
2373
|
let deferred0_0;
|
|
2349
2374
|
let deferred0_1;
|
|
2350
2375
|
try {
|
|
@@ -2357,7 +2382,7 @@ module.exports.__wbg_removevalue_1437bd724935bcca = function() { return handleEr
|
|
|
2357
2382
|
}
|
|
2358
2383
|
}, arguments) };
|
|
2359
2384
|
|
|
2360
|
-
module.exports.
|
|
2385
|
+
module.exports.__wbg_ensureblockdirectoryexists_87a785b73a8702f3 = function() { return handleError(function (arg0, arg1) {
|
|
2361
2386
|
let deferred0_0;
|
|
2362
2387
|
let deferred0_1;
|
|
2363
2388
|
try {
|
|
@@ -2369,19 +2394,19 @@ module.exports.__wbg_ensureblockdirectoryexists_9ee938234c25a908 = function() {
|
|
|
2369
2394
|
}
|
|
2370
2395
|
}, arguments) };
|
|
2371
2396
|
|
|
2372
|
-
module.exports.
|
|
2397
|
+
module.exports.__wbg_processapicall_c82c1dddf4e93967 = function(arg0, arg1, arg2) {
|
|
2373
2398
|
MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
|
|
2374
2399
|
};
|
|
2375
2400
|
|
|
2376
|
-
module.exports.
|
|
2401
|
+
module.exports.__wbg_processapisuccess_d30583726df5dfe6 = function(arg0, arg1, arg2) {
|
|
2377
2402
|
MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
|
|
2378
2403
|
};
|
|
2379
2404
|
|
|
2380
|
-
module.exports.
|
|
2405
|
+
module.exports.__wbg_processapierror_c9229b17fa98409d = function(arg0, arg1, arg2) {
|
|
2381
2406
|
MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
|
|
2382
2407
|
};
|
|
2383
2408
|
|
|
2384
|
-
module.exports.
|
|
2409
|
+
module.exports.__wbg_sendinterfaceevent_f0f27fa0a8ab4f5e = function(arg0, arg1, arg2) {
|
|
2385
2410
|
let deferred0_0;
|
|
2386
2411
|
let deferred0_1;
|
|
2387
2412
|
try {
|
|
@@ -2393,7 +2418,7 @@ module.exports.__wbg_sendinterfaceevent_97e1b8bb6a3fec90 = function(arg0, arg1,
|
|
|
2393
2418
|
}
|
|
2394
2419
|
};
|
|
2395
2420
|
|
|
2396
|
-
module.exports.
|
|
2421
|
+
module.exports.__wbg_sendblocksuccess_78989949d7798214 = function(arg0, arg1, arg2) {
|
|
2397
2422
|
let deferred0_0;
|
|
2398
2423
|
let deferred0_1;
|
|
2399
2424
|
try {
|
|
@@ -2405,11 +2430,11 @@ module.exports.__wbg_sendblocksuccess_ffe00a0435ab2679 = function(arg0, arg1, ar
|
|
|
2405
2430
|
}
|
|
2406
2431
|
};
|
|
2407
2432
|
|
|
2408
|
-
module.exports.
|
|
2433
|
+
module.exports.__wbg_sendwalletupdate_283c9249aac46ba4 = function() {
|
|
2409
2434
|
MsgHandler.send_wallet_update();
|
|
2410
2435
|
};
|
|
2411
2436
|
|
|
2412
|
-
module.exports.
|
|
2437
|
+
module.exports.__wbg_sendnewversionalert_8441287a3f324077 = function(arg0, arg1, arg2) {
|
|
2413
2438
|
let deferred0_0;
|
|
2414
2439
|
let deferred0_1;
|
|
2415
2440
|
try {
|
|
@@ -2421,47 +2446,21 @@ module.exports.__wbg_sendnewversionalert_2e913aeee49274f1 = function(arg0, arg1,
|
|
|
2421
2446
|
}
|
|
2422
2447
|
};
|
|
2423
2448
|
|
|
2424
|
-
module.exports.
|
|
2449
|
+
module.exports.__wbg_savewallet_6b9d3a8d989302c3 = function() {
|
|
2425
2450
|
MsgHandler.save_wallet();
|
|
2426
2451
|
};
|
|
2427
2452
|
|
|
2428
|
-
module.exports.
|
|
2453
|
+
module.exports.__wbg_loadwallet_5539e12e2a77ba36 = function() {
|
|
2429
2454
|
MsgHandler.load_wallet();
|
|
2430
2455
|
};
|
|
2431
2456
|
|
|
2432
|
-
module.exports.
|
|
2457
|
+
module.exports.__wbg_getmyservices_cde79f92638e3743 = function() {
|
|
2433
2458
|
const ret = MsgHandler.get_my_services();
|
|
2434
2459
|
_assertClass(ret, WasmPeerServiceList);
|
|
2435
2460
|
var ptr1 = ret.__destroy_into_raw();
|
|
2436
2461
|
return ptr1;
|
|
2437
2462
|
};
|
|
2438
2463
|
|
|
2439
|
-
module.exports.__wbg_wasmpeerservice_new = function(arg0) {
|
|
2440
|
-
const ret = WasmPeerService.__wrap(arg0);
|
|
2441
|
-
return addHeapObject(ret);
|
|
2442
|
-
};
|
|
2443
|
-
|
|
2444
|
-
module.exports.__wbindgen_error_new = function(arg0, arg1) {
|
|
2445
|
-
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
2446
|
-
return addHeapObject(ret);
|
|
2447
|
-
};
|
|
2448
|
-
|
|
2449
|
-
module.exports.__wbindgen_is_object = function(arg0) {
|
|
2450
|
-
const val = getObject(arg0);
|
|
2451
|
-
const ret = typeof(val) === 'object' && val !== null;
|
|
2452
|
-
return ret;
|
|
2453
|
-
};
|
|
2454
|
-
|
|
2455
|
-
module.exports.__wbindgen_is_undefined = function(arg0) {
|
|
2456
|
-
const ret = getObject(arg0) === undefined;
|
|
2457
|
-
return ret;
|
|
2458
|
-
};
|
|
2459
|
-
|
|
2460
|
-
module.exports.__wbindgen_in = function(arg0, arg1) {
|
|
2461
|
-
const ret = getObject(arg0) in getObject(arg1);
|
|
2462
|
-
return ret;
|
|
2463
|
-
};
|
|
2464
|
-
|
|
2465
2464
|
module.exports.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
|
|
2466
2465
|
const ret = getObject(arg0) == getObject(arg1);
|
|
2467
2466
|
return ret;
|
|
@@ -2807,7 +2806,7 @@ module.exports.__wbindgen_memory = function() {
|
|
|
2807
2806
|
return addHeapObject(ret);
|
|
2808
2807
|
};
|
|
2809
2808
|
|
|
2810
|
-
module.exports.
|
|
2809
|
+
module.exports.__wbindgen_closure_wrapper1266 = function(arg0, arg1, arg2) {
|
|
2811
2810
|
const ret = makeMutClosure(arg0, arg1, 460, __wbg_adapter_38);
|
|
2812
2811
|
return addHeapObject(ret);
|
|
2813
2812
|
};
|
package/pkg/node/index_bg.wasm
CHANGED
|
Binary file
|
|
@@ -1,54 +1,6 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
|
-
export function __wbg_wasmbalancesnapshot_free(a: number): void;
|
|
5
|
-
export function wasmbalancesnapshot_get_file_name(a: number): number;
|
|
6
|
-
export function wasmbalancesnapshot_get_entries(a: number): number;
|
|
7
|
-
export function wasmbalancesnapshot_from_string(a: number, b: number): void;
|
|
8
|
-
export function wasmbalancesnapshot_to_string(a: number): number;
|
|
9
|
-
export function __wbg_wasmconsensusvalues_free(a: number): void;
|
|
10
|
-
export function wasmconsensusvalues_it_num(a: number): number;
|
|
11
|
-
export function wasmconsensusvalues_fee_transaction(a: number): number;
|
|
12
|
-
export function wasmconsensusvalues_it_index(a: number): number;
|
|
13
|
-
export function wasmconsensusvalues_ft_num(a: number): number;
|
|
14
|
-
export function wasmconsensusvalues_ft_index(a: number): number;
|
|
15
|
-
export function wasmconsensusvalues_gt_index(a: number): number;
|
|
16
|
-
export function wasmconsensusvalues_total_fees(a: number): number;
|
|
17
|
-
export function wasmconsensusvalues_expected_difficulty(a: number): number;
|
|
18
|
-
export function wasmconsensusvalues_total_rebroadcast_slips(a: number): number;
|
|
19
|
-
export function wasmconsensusvalues_total_rebroadcast_nolan(a: number): number;
|
|
20
|
-
export function wasmconsensusvalues_total_rebroadcast_fees_nolan(a: number): number;
|
|
21
|
-
export function wasmconsensusvalues_total_rebroadcast_staking_payouts_nolan(a: number): number;
|
|
22
|
-
export function wasmconsensusvalues_rebroadcast_hash(a: number): number;
|
|
23
|
-
export function wasmconsensusvalues_nolan_falling_off_chain(a: number): number;
|
|
24
|
-
export function wasmconsensusvalues_avg_income(a: number): number;
|
|
25
|
-
export function __wbg_wasmhop_free(a: number): void;
|
|
26
|
-
export function wasmhop_from(a: number, b: number): void;
|
|
27
|
-
export function wasmhop_sig(a: number, b: number): void;
|
|
28
|
-
export function wasmhop_to(a: number, b: number): void;
|
|
29
|
-
export function __wbg_wasmtransaction_free(a: number): void;
|
|
30
|
-
export function wasmtransaction_new(): number;
|
|
31
|
-
export function wasmtransaction_signature(a: number): number;
|
|
32
|
-
export function wasmtransaction_get_routing_path(a: number): number;
|
|
33
|
-
export function wasmtransaction_set_signature(a: number, b: number): void;
|
|
34
|
-
export function wasmtransaction_add_to_slip(a: number, b: number): void;
|
|
35
|
-
export function wasmtransaction_add_from_slip(a: number, b: number): void;
|
|
36
|
-
export function wasmtransaction_get_txs_replacements(a: number): number;
|
|
37
|
-
export function wasmtransaction_set_txs_replacements(a: number, b: number): void;
|
|
38
|
-
export function wasmtransaction_to(a: number): number;
|
|
39
|
-
export function wasmtransaction_from(a: number): number;
|
|
40
|
-
export function wasmtransaction_is_from(a: number, b: number): number;
|
|
41
|
-
export function wasmtransaction_is_to(a: number, b: number): number;
|
|
42
|
-
export function wasmtransaction_get_data(a: number): number;
|
|
43
|
-
export function wasmtransaction_set_data(a: number, b: number): void;
|
|
44
|
-
export function wasmtransaction_get_timestamp(a: number): number;
|
|
45
|
-
export function wasmtransaction_set_timestamp(a: number, b: number): void;
|
|
46
|
-
export function wasmtransaction_sign(a: number): number;
|
|
47
|
-
export function wasmtransaction_get_type(a: number): number;
|
|
48
|
-
export function wasmtransaction_set_type(a: number, b: number): void;
|
|
49
|
-
export function wasmtransaction_total_fees(a: number): number;
|
|
50
|
-
export function wasmtransaction_serialize(a: number): number;
|
|
51
|
-
export function wasmtransaction_deserialize(a: number, b: number): void;
|
|
52
4
|
export function __wbg_wasmblock_free(a: number): void;
|
|
53
5
|
export function wasmblock_new(): number;
|
|
54
6
|
export function wasmblock_get_transactions(a: number): number;
|
|
@@ -108,6 +60,54 @@ export function wasmslip_set_tx_ordinal(a: number, b: number): void;
|
|
|
108
60
|
export function wasmslip_set_utxo_key(a: number, b: number): void;
|
|
109
61
|
export function wasmslip_utxo_key(a: number): number;
|
|
110
62
|
export function wasmslip_new(): number;
|
|
63
|
+
export function __wbg_wasmbalancesnapshot_free(a: number): void;
|
|
64
|
+
export function wasmbalancesnapshot_get_file_name(a: number): number;
|
|
65
|
+
export function wasmbalancesnapshot_get_entries(a: number): number;
|
|
66
|
+
export function wasmbalancesnapshot_from_string(a: number, b: number): void;
|
|
67
|
+
export function wasmbalancesnapshot_to_string(a: number): number;
|
|
68
|
+
export function __wbg_wasmconsensusvalues_free(a: number): void;
|
|
69
|
+
export function wasmconsensusvalues_it_num(a: number): number;
|
|
70
|
+
export function wasmconsensusvalues_fee_transaction(a: number): number;
|
|
71
|
+
export function wasmconsensusvalues_it_index(a: number): number;
|
|
72
|
+
export function wasmconsensusvalues_ft_num(a: number): number;
|
|
73
|
+
export function wasmconsensusvalues_ft_index(a: number): number;
|
|
74
|
+
export function wasmconsensusvalues_gt_index(a: number): number;
|
|
75
|
+
export function wasmconsensusvalues_total_fees(a: number): number;
|
|
76
|
+
export function wasmconsensusvalues_expected_difficulty(a: number): number;
|
|
77
|
+
export function wasmconsensusvalues_total_rebroadcast_slips(a: number): number;
|
|
78
|
+
export function wasmconsensusvalues_total_rebroadcast_nolan(a: number): number;
|
|
79
|
+
export function wasmconsensusvalues_total_rebroadcast_fees_nolan(a: number): number;
|
|
80
|
+
export function wasmconsensusvalues_total_rebroadcast_staking_payouts_nolan(a: number): number;
|
|
81
|
+
export function wasmconsensusvalues_rebroadcast_hash(a: number): number;
|
|
82
|
+
export function wasmconsensusvalues_nolan_falling_off_chain(a: number): number;
|
|
83
|
+
export function wasmconsensusvalues_avg_income(a: number): number;
|
|
84
|
+
export function __wbg_wasmhop_free(a: number): void;
|
|
85
|
+
export function wasmhop_from(a: number, b: number): void;
|
|
86
|
+
export function wasmhop_sig(a: number, b: number): void;
|
|
87
|
+
export function wasmhop_to(a: number, b: number): void;
|
|
88
|
+
export function __wbg_wasmtransaction_free(a: number): void;
|
|
89
|
+
export function wasmtransaction_new(): number;
|
|
90
|
+
export function wasmtransaction_signature(a: number): number;
|
|
91
|
+
export function wasmtransaction_get_routing_path(a: number): number;
|
|
92
|
+
export function wasmtransaction_set_signature(a: number, b: number): void;
|
|
93
|
+
export function wasmtransaction_add_to_slip(a: number, b: number): void;
|
|
94
|
+
export function wasmtransaction_add_from_slip(a: number, b: number): void;
|
|
95
|
+
export function wasmtransaction_get_txs_replacements(a: number): number;
|
|
96
|
+
export function wasmtransaction_set_txs_replacements(a: number, b: number): void;
|
|
97
|
+
export function wasmtransaction_to(a: number): number;
|
|
98
|
+
export function wasmtransaction_from(a: number): number;
|
|
99
|
+
export function wasmtransaction_is_from(a: number, b: number): number;
|
|
100
|
+
export function wasmtransaction_is_to(a: number, b: number): number;
|
|
101
|
+
export function wasmtransaction_get_data(a: number): number;
|
|
102
|
+
export function wasmtransaction_set_data(a: number, b: number): void;
|
|
103
|
+
export function wasmtransaction_get_timestamp(a: number): number;
|
|
104
|
+
export function wasmtransaction_set_timestamp(a: number, b: number): void;
|
|
105
|
+
export function wasmtransaction_sign(a: number): number;
|
|
106
|
+
export function wasmtransaction_get_type(a: number): number;
|
|
107
|
+
export function wasmtransaction_set_type(a: number, b: number): void;
|
|
108
|
+
export function wasmtransaction_total_fees(a: number): number;
|
|
109
|
+
export function wasmtransaction_serialize(a: number): number;
|
|
110
|
+
export function wasmtransaction_deserialize(a: number, b: number): void;
|
|
111
111
|
export function __wbg_wasmblockchain_free(a: number): void;
|
|
112
112
|
export function wasmblockchain_reset(a: number): number;
|
|
113
113
|
export function wasmblockchain_get_last_block_id(a: number): number;
|
|
@@ -126,6 +126,40 @@ export function wasmblockchain_get_longest_chain_hash_at_id(a: number, b: number
|
|
|
126
126
|
export function wasmblockchain_get_hashes_at_id(a: number, b: number): number;
|
|
127
127
|
export function __wbg_wasmconfiguration_free(a: number): void;
|
|
128
128
|
export function wasmconfiguration_new(): number;
|
|
129
|
+
export function __wbg_saitowasm_free(a: number): void;
|
|
130
|
+
export function initialize(a: number, b: number, c: number, d: number): number;
|
|
131
|
+
export function create_transaction(a: number, b: number, c: number, d: number): number;
|
|
132
|
+
export function create_transaction_with_multiple_payments(a: number, b: number, c: number, d: number): number;
|
|
133
|
+
export function get_latest_block_hash(): number;
|
|
134
|
+
export function get_block(a: number): number;
|
|
135
|
+
export function process_new_peer(a: number): number;
|
|
136
|
+
export function get_next_peer_index(): number;
|
|
137
|
+
export function process_peer_disconnection(a: number): number;
|
|
138
|
+
export function process_msg_buffer_from_peer(a: number, b: number): number;
|
|
139
|
+
export function process_fetched_block(a: number, b: number, c: number, d: number): number;
|
|
140
|
+
export function process_failed_block_fetch(a: number, b: number, c: number): number;
|
|
141
|
+
export function process_timer_event(a: number): number;
|
|
142
|
+
export function process_stat_interval(a: number): number;
|
|
143
|
+
export function hash(a: number): number;
|
|
144
|
+
export function sign_buffer(a: number, b: number, c: number): void;
|
|
145
|
+
export function verify_signature(a: number, b: number, c: number): number;
|
|
146
|
+
export function get_peers(): number;
|
|
147
|
+
export function get_peer(a: number): number;
|
|
148
|
+
export function get_account_slips(a: number): number;
|
|
149
|
+
export function get_balance_snapshot(a: number): number;
|
|
150
|
+
export function update_from_balance_snapshot(a: number): number;
|
|
151
|
+
export function generate_private_key(): number;
|
|
152
|
+
export function generate_public_key(a: number, b: number): void;
|
|
153
|
+
export function propagate_transaction(a: number): number;
|
|
154
|
+
export function send_api_call(a: number, b: number, c: number): number;
|
|
155
|
+
export function send_api_success(a: number, b: number, c: number): number;
|
|
156
|
+
export function send_api_error(a: number, b: number, c: number): number;
|
|
157
|
+
export function get_wallet(): number;
|
|
158
|
+
export function get_blockchain(): number;
|
|
159
|
+
export function get_mempool_txs(): number;
|
|
160
|
+
export function set_wallet_version(a: number, b: number, c: number): number;
|
|
161
|
+
export function is_valid_public_key(a: number): number;
|
|
162
|
+
export function write_issuance_file(a: number): number;
|
|
129
163
|
export function __wbg_wasmpeer_free(a: number): void;
|
|
130
164
|
export function wasmpeer_get_public_key(a: number): number;
|
|
131
165
|
export function wasmpeer_get_key_list(a: number): number;
|
|
@@ -176,40 +210,6 @@ export function wasmwalletslip_is_lc(a: number): number;
|
|
|
176
210
|
export function wasmwalletslip_set_lc(a: number, b: number): void;
|
|
177
211
|
export function wasmwalletslip_new_(): number;
|
|
178
212
|
export function wasmwalletslip_get_amount(a: number): number;
|
|
179
|
-
export function __wbg_saitowasm_free(a: number): void;
|
|
180
|
-
export function initialize(a: number, b: number, c: number, d: number): number;
|
|
181
|
-
export function create_transaction(a: number, b: number, c: number, d: number): number;
|
|
182
|
-
export function create_transaction_with_multiple_payments(a: number, b: number, c: number, d: number): number;
|
|
183
|
-
export function get_latest_block_hash(): number;
|
|
184
|
-
export function get_block(a: number): number;
|
|
185
|
-
export function process_new_peer(a: number): number;
|
|
186
|
-
export function get_next_peer_index(): number;
|
|
187
|
-
export function process_peer_disconnection(a: number): number;
|
|
188
|
-
export function process_msg_buffer_from_peer(a: number, b: number): number;
|
|
189
|
-
export function process_fetched_block(a: number, b: number, c: number, d: number): number;
|
|
190
|
-
export function process_failed_block_fetch(a: number, b: number, c: number): number;
|
|
191
|
-
export function process_timer_event(a: number): number;
|
|
192
|
-
export function process_stat_interval(a: number): number;
|
|
193
|
-
export function hash(a: number): number;
|
|
194
|
-
export function sign_buffer(a: number, b: number, c: number): void;
|
|
195
|
-
export function verify_signature(a: number, b: number, c: number): number;
|
|
196
|
-
export function get_peers(): number;
|
|
197
|
-
export function get_peer(a: number): number;
|
|
198
|
-
export function get_account_slips(a: number): number;
|
|
199
|
-
export function get_balance_snapshot(a: number): number;
|
|
200
|
-
export function update_from_balance_snapshot(a: number): number;
|
|
201
|
-
export function generate_private_key(): number;
|
|
202
|
-
export function generate_public_key(a: number, b: number): void;
|
|
203
|
-
export function propagate_transaction(a: number): number;
|
|
204
|
-
export function send_api_call(a: number, b: number, c: number): number;
|
|
205
|
-
export function send_api_success(a: number, b: number, c: number): number;
|
|
206
|
-
export function send_api_error(a: number, b: number, c: number): number;
|
|
207
|
-
export function get_wallet(): number;
|
|
208
|
-
export function get_blockchain(): number;
|
|
209
|
-
export function get_mempool_txs(): number;
|
|
210
|
-
export function set_wallet_version(a: number, b: number, c: number): number;
|
|
211
|
-
export function is_valid_public_key(a: number): number;
|
|
212
|
-
export function write_issuance_file(a: number): number;
|
|
213
213
|
export function rustsecp256k1_v0_10_0_context_create(a: number): number;
|
|
214
214
|
export function rustsecp256k1_v0_10_0_context_destroy(a: number): void;
|
|
215
215
|
export function rustsecp256k1_v0_10_0_default_illegal_callback_fn(a: number, b: number): void;
|
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.3",
|
|
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
|
+
"cross-env": "^7.0.3",
|
|
13
|
+
"node-fetch": "^3.3.0"
|
|
14
14
|
}
|
|
15
15
|
}
|