saito-wasm 0.1.44 → 0.1.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Cargo.toml +1 -1
- package/package.json +1 -1
- package/pkg/node/index.d.ts +0 -5
- package/pkg/node/index.js +67 -75
- package/pkg/node/index_bg.wasm +0 -0
- package/pkg/node/index_bg.wasm.d.ts +94 -95
- package/pkg/node/package.json +3 -3
- package/pkg/web/index.d.ts +94 -100
- package/pkg/web/index.js +64 -72
- package/pkg/web/index_bg.wasm +0 -0
- package/pkg/web/index_bg.wasm.d.ts +94 -95
- package/pkg/web/package.json +3 -3
- /package/pkg/node/snippets/{saito-wasm-fedb6ef7f38dc051 → saito-wasm-5900c973fb157930}/js/msg_handler.js +0 -0
- /package/pkg/web/snippets/{saito-wasm-fedb6ef7f38dc051 → saito-wasm-5900c973fb157930}/js/msg_handler.js +0 -0
package/Cargo.toml
CHANGED
package/package.json
CHANGED
package/pkg/node/index.d.ts
CHANGED
|
@@ -49,11 +49,6 @@ export function process_msg_buffer_from_peer(buffer: Uint8Array, peer_index: big
|
|
|
49
49
|
*/
|
|
50
50
|
export function process_fetched_block(buffer: Uint8Array, hash: Uint8Array, peer_index: bigint): Promise<void>;
|
|
51
51
|
/**
|
|
52
|
-
* @param {Uint8Array} hash
|
|
53
|
-
* @returns {Promise<void>}
|
|
54
|
-
*/
|
|
55
|
-
export function process_failed_block_fetch(hash: Uint8Array): Promise<void>;
|
|
56
|
-
/**
|
|
57
52
|
* @param {bigint} duration_in_ms
|
|
58
53
|
* @returns {Promise<void>}
|
|
59
54
|
*/
|
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-5900c973fb157930/js/msg_handler.js`);
|
|
5
5
|
const { TextDecoder, TextEncoder } = require(`util`);
|
|
6
6
|
|
|
7
7
|
const heap = new Array(128).fill(undefined);
|
|
@@ -225,7 +225,7 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
225
225
|
return real;
|
|
226
226
|
}
|
|
227
227
|
function __wbg_adapter_40(arg0, arg1, arg2) {
|
|
228
|
-
wasm.
|
|
228
|
+
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h71ee5d4075b93a8f(arg0, arg1, addHeapObject(arg2));
|
|
229
229
|
}
|
|
230
230
|
|
|
231
231
|
function _assertClass(instance, klass) {
|
|
@@ -234,6 +234,14 @@ 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
|
+
}
|
|
237
245
|
/**
|
|
238
246
|
* @param {string} json
|
|
239
247
|
* @param {string} private_key
|
|
@@ -314,15 +322,6 @@ module.exports.process_fetched_block = function(buffer, hash, peer_index) {
|
|
|
314
322
|
return takeObject(ret);
|
|
315
323
|
};
|
|
316
324
|
|
|
317
|
-
/**
|
|
318
|
-
* @param {Uint8Array} hash
|
|
319
|
-
* @returns {Promise<void>}
|
|
320
|
-
*/
|
|
321
|
-
module.exports.process_failed_block_fetch = function(hash) {
|
|
322
|
-
const ret = wasm.process_failed_block_fetch(addHeapObject(hash));
|
|
323
|
-
return takeObject(ret);
|
|
324
|
-
};
|
|
325
|
-
|
|
326
325
|
/**
|
|
327
326
|
* @param {bigint} duration_in_ms
|
|
328
327
|
* @returns {Promise<void>}
|
|
@@ -525,15 +524,8 @@ module.exports.set_wallet_version = function(major, minor, patch) {
|
|
|
525
524
|
return takeObject(ret);
|
|
526
525
|
};
|
|
527
526
|
|
|
528
|
-
function
|
|
529
|
-
|
|
530
|
-
return f.apply(this, args);
|
|
531
|
-
} catch (e) {
|
|
532
|
-
wasm.__wbindgen_exn_store(addHeapObject(e));
|
|
533
|
-
}
|
|
534
|
-
}
|
|
535
|
-
function __wbg_adapter_368(arg0, arg1, arg2, arg3) {
|
|
536
|
-
wasm.wasm_bindgen__convert__closures__invoke2_mut__h0cf221c9239c0b4c(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
527
|
+
function __wbg_adapter_367(arg0, arg1, arg2, arg3) {
|
|
528
|
+
wasm.wasm_bindgen__convert__closures__invoke2_mut__h042dde47a1d77254(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
537
529
|
}
|
|
538
530
|
|
|
539
531
|
const SaitoWasmFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -2125,13 +2117,23 @@ module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
|
2125
2117
|
takeObject(arg0);
|
|
2126
2118
|
};
|
|
2127
2119
|
|
|
2120
|
+
module.exports.__wbg_wasmpeer_new = function(arg0) {
|
|
2121
|
+
const ret = WasmPeer.__wrap(arg0);
|
|
2122
|
+
return addHeapObject(ret);
|
|
2123
|
+
};
|
|
2124
|
+
|
|
2128
2125
|
module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
2129
2126
|
const ret = BigInt.asUintN(64, arg0);
|
|
2130
2127
|
return addHeapObject(ret);
|
|
2131
2128
|
};
|
|
2132
2129
|
|
|
2133
|
-
module.exports.
|
|
2134
|
-
const ret =
|
|
2130
|
+
module.exports.__wbg_wasmwalletslip_new = function(arg0) {
|
|
2131
|
+
const ret = WasmWalletSlip.__wrap(arg0);
|
|
2132
|
+
return addHeapObject(ret);
|
|
2133
|
+
};
|
|
2134
|
+
|
|
2135
|
+
module.exports.__wbg_wasmtransaction_new = function(arg0) {
|
|
2136
|
+
const ret = WasmTransaction.__wrap(arg0);
|
|
2135
2137
|
return addHeapObject(ret);
|
|
2136
2138
|
};
|
|
2137
2139
|
|
|
@@ -2145,18 +2147,22 @@ module.exports.__wbg_wasmslip_new = function(arg0) {
|
|
|
2145
2147
|
return addHeapObject(ret);
|
|
2146
2148
|
};
|
|
2147
2149
|
|
|
2148
|
-
module.exports.
|
|
2149
|
-
const ret =
|
|
2150
|
-
return
|
|
2150
|
+
module.exports.__wbindgen_is_falsy = function(arg0) {
|
|
2151
|
+
const ret = !getObject(arg0);
|
|
2152
|
+
return ret;
|
|
2151
2153
|
};
|
|
2152
2154
|
|
|
2153
|
-
module.exports.
|
|
2154
|
-
const
|
|
2155
|
-
|
|
2155
|
+
module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
2156
|
+
const obj = getObject(arg1);
|
|
2157
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
2158
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2159
|
+
var len1 = WASM_VECTOR_LEN;
|
|
2160
|
+
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
2161
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
2156
2162
|
};
|
|
2157
2163
|
|
|
2158
|
-
module.exports.
|
|
2159
|
-
const ret =
|
|
2164
|
+
module.exports.__wbg_wasmblock_new = function(arg0) {
|
|
2165
|
+
const ret = WasmBlock.__wrap(arg0);
|
|
2160
2166
|
return addHeapObject(ret);
|
|
2161
2167
|
};
|
|
2162
2168
|
|
|
@@ -2165,8 +2171,8 @@ module.exports.__wbg_wasmwallet_new = function(arg0) {
|
|
|
2165
2171
|
return addHeapObject(ret);
|
|
2166
2172
|
};
|
|
2167
2173
|
|
|
2168
|
-
module.exports.
|
|
2169
|
-
const ret =
|
|
2174
|
+
module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
|
|
2175
|
+
const ret = WasmBalanceSnapshot.__wrap(arg0);
|
|
2170
2176
|
return addHeapObject(ret);
|
|
2171
2177
|
};
|
|
2172
2178
|
|
|
@@ -2175,18 +2181,14 @@ module.exports.__wbg_wasmblockchain_new = function(arg0) {
|
|
|
2175
2181
|
return addHeapObject(ret);
|
|
2176
2182
|
};
|
|
2177
2183
|
|
|
2178
|
-
module.exports.
|
|
2179
|
-
const ret =
|
|
2180
|
-
return ret;
|
|
2184
|
+
module.exports.__wbg_wasmhop_new = function(arg0) {
|
|
2185
|
+
const ret = WasmHop.__wrap(arg0);
|
|
2186
|
+
return addHeapObject(ret);
|
|
2181
2187
|
};
|
|
2182
2188
|
|
|
2183
|
-
module.exports.
|
|
2184
|
-
const
|
|
2185
|
-
|
|
2186
|
-
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2187
|
-
var len1 = WASM_VECTOR_LEN;
|
|
2188
|
-
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
2189
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
2189
|
+
module.exports.__wbg_wasmconsensusvalues_new = function(arg0) {
|
|
2190
|
+
const ret = WasmConsensusValues.__wrap(arg0);
|
|
2191
|
+
return addHeapObject(ret);
|
|
2190
2192
|
};
|
|
2191
2193
|
|
|
2192
2194
|
module.exports.__wbg_wasmpeerservice_new = function(arg0) {
|
|
@@ -2199,16 +2201,6 @@ module.exports.__wbindgen_error_new = function(arg0, arg1) {
|
|
|
2199
2201
|
return addHeapObject(ret);
|
|
2200
2202
|
};
|
|
2201
2203
|
|
|
2202
|
-
module.exports.__wbg_wasmhop_new = function(arg0) {
|
|
2203
|
-
const ret = WasmHop.__wrap(arg0);
|
|
2204
|
-
return addHeapObject(ret);
|
|
2205
|
-
};
|
|
2206
|
-
|
|
2207
|
-
module.exports.__wbg_wasmconsensusvalues_new = function(arg0) {
|
|
2208
|
-
const ret = WasmConsensusValues.__wrap(arg0);
|
|
2209
|
-
return addHeapObject(ret);
|
|
2210
|
-
};
|
|
2211
|
-
|
|
2212
2204
|
module.exports.__wbindgen_is_object = function(arg0) {
|
|
2213
2205
|
const val = getObject(arg0);
|
|
2214
2206
|
const ret = typeof(val) === 'object' && val !== null;
|
|
@@ -2225,25 +2217,25 @@ module.exports.__wbindgen_in = function(arg0, arg1) {
|
|
|
2225
2217
|
return ret;
|
|
2226
2218
|
};
|
|
2227
2219
|
|
|
2228
|
-
module.exports.
|
|
2220
|
+
module.exports.__wbg_sendmessage_dcd9de9cf072916d = function(arg0, arg1) {
|
|
2229
2221
|
MsgHandler.send_message(takeObject(arg0), getObject(arg1));
|
|
2230
2222
|
};
|
|
2231
2223
|
|
|
2232
|
-
module.exports.
|
|
2224
|
+
module.exports.__wbg_sendmessagetoall_c0425ee38a63f4d9 = function(arg0, arg1) {
|
|
2233
2225
|
MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
|
|
2234
2226
|
};
|
|
2235
2227
|
|
|
2236
|
-
module.exports.
|
|
2228
|
+
module.exports.__wbg_connecttopeer_080b32e096ff559c = function() { return handleError(function (arg0) {
|
|
2237
2229
|
const ret = MsgHandler.connect_to_peer(takeObject(arg0));
|
|
2238
2230
|
return addHeapObject(ret);
|
|
2239
2231
|
}, arguments) };
|
|
2240
2232
|
|
|
2241
|
-
module.exports.
|
|
2233
|
+
module.exports.__wbg_disconnectfrompeer_37415941e31e178a = function() { return handleError(function (arg0) {
|
|
2242
2234
|
const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
|
|
2243
2235
|
return addHeapObject(ret);
|
|
2244
2236
|
}, arguments) };
|
|
2245
2237
|
|
|
2246
|
-
module.exports.
|
|
2238
|
+
module.exports.__wbg_fetchblockfrompeer_8982dc9e1af80547 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
2247
2239
|
let deferred0_0;
|
|
2248
2240
|
let deferred0_1;
|
|
2249
2241
|
try {
|
|
@@ -2256,7 +2248,7 @@ module.exports.__wbg_fetchblockfrompeer_41b27c4db5a88aff = function() { return h
|
|
|
2256
2248
|
}
|
|
2257
2249
|
}, arguments) };
|
|
2258
2250
|
|
|
2259
|
-
module.exports.
|
|
2251
|
+
module.exports.__wbg_writevalue_813b367ac90d2de0 = function(arg0, arg1, arg2) {
|
|
2260
2252
|
let deferred0_0;
|
|
2261
2253
|
let deferred0_1;
|
|
2262
2254
|
try {
|
|
@@ -2268,7 +2260,7 @@ module.exports.__wbg_writevalue_d74438aa544d2bb7 = function(arg0, arg1, arg2) {
|
|
|
2268
2260
|
}
|
|
2269
2261
|
};
|
|
2270
2262
|
|
|
2271
|
-
module.exports.
|
|
2263
|
+
module.exports.__wbg_readvalue_dd58d461ab4bf783 = function() { return handleError(function (arg0, arg1) {
|
|
2272
2264
|
let deferred0_0;
|
|
2273
2265
|
let deferred0_1;
|
|
2274
2266
|
try {
|
|
@@ -2281,12 +2273,12 @@ module.exports.__wbg_readvalue_61f9a9de39915219 = function() { return handleErro
|
|
|
2281
2273
|
}
|
|
2282
2274
|
}, arguments) };
|
|
2283
2275
|
|
|
2284
|
-
module.exports.
|
|
2276
|
+
module.exports.__wbg_loadblockfilelist_2c0beccb457af27d = function() { return handleError(function () {
|
|
2285
2277
|
const ret = MsgHandler.load_block_file_list();
|
|
2286
2278
|
return addHeapObject(ret);
|
|
2287
2279
|
}, arguments) };
|
|
2288
2280
|
|
|
2289
|
-
module.exports.
|
|
2281
|
+
module.exports.__wbg_isexistingfile_a956653add00fea1 = function() { return handleError(function (arg0, arg1) {
|
|
2290
2282
|
let deferred0_0;
|
|
2291
2283
|
let deferred0_1;
|
|
2292
2284
|
try {
|
|
@@ -2299,7 +2291,7 @@ module.exports.__wbg_isexistingfile_f9fc5641114cf63c = function() { return handl
|
|
|
2299
2291
|
}
|
|
2300
2292
|
}, arguments) };
|
|
2301
2293
|
|
|
2302
|
-
module.exports.
|
|
2294
|
+
module.exports.__wbg_removevalue_b8b545456b9ce686 = function() { return handleError(function (arg0, arg1) {
|
|
2303
2295
|
let deferred0_0;
|
|
2304
2296
|
let deferred0_1;
|
|
2305
2297
|
try {
|
|
@@ -2312,7 +2304,7 @@ module.exports.__wbg_removevalue_1090f58c927a2071 = function() { return handleEr
|
|
|
2312
2304
|
}
|
|
2313
2305
|
}, arguments) };
|
|
2314
2306
|
|
|
2315
|
-
module.exports.
|
|
2307
|
+
module.exports.__wbg_ensureblockdirectoryexists_90e54b6fb40fbac0 = function() { return handleError(function (arg0, arg1) {
|
|
2316
2308
|
let deferred0_0;
|
|
2317
2309
|
let deferred0_1;
|
|
2318
2310
|
try {
|
|
@@ -2324,19 +2316,19 @@ module.exports.__wbg_ensureblockdirectoryexists_765b793dd19f9c1b = function() {
|
|
|
2324
2316
|
}
|
|
2325
2317
|
}, arguments) };
|
|
2326
2318
|
|
|
2327
|
-
module.exports.
|
|
2319
|
+
module.exports.__wbg_processapicall_d4a1830608ad9a0a = function(arg0, arg1, arg2) {
|
|
2328
2320
|
MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
|
|
2329
2321
|
};
|
|
2330
2322
|
|
|
2331
|
-
module.exports.
|
|
2323
|
+
module.exports.__wbg_processapisuccess_02222fb0096c49d7 = function(arg0, arg1, arg2) {
|
|
2332
2324
|
MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
|
|
2333
2325
|
};
|
|
2334
2326
|
|
|
2335
|
-
module.exports.
|
|
2327
|
+
module.exports.__wbg_processapierror_f7524c9e05a7e67b = function(arg0, arg1, arg2) {
|
|
2336
2328
|
MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
|
|
2337
2329
|
};
|
|
2338
2330
|
|
|
2339
|
-
module.exports.
|
|
2331
|
+
module.exports.__wbg_sendinterfaceevent_6a4f11b36c66021b = function(arg0, arg1, arg2) {
|
|
2340
2332
|
let deferred0_0;
|
|
2341
2333
|
let deferred0_1;
|
|
2342
2334
|
try {
|
|
@@ -2348,7 +2340,7 @@ module.exports.__wbg_sendinterfaceevent_d91c674d658a5ed7 = function(arg0, arg1,
|
|
|
2348
2340
|
}
|
|
2349
2341
|
};
|
|
2350
2342
|
|
|
2351
|
-
module.exports.
|
|
2343
|
+
module.exports.__wbg_sendblocksuccess_e85b92237d858d6e = function(arg0, arg1, arg2) {
|
|
2352
2344
|
let deferred0_0;
|
|
2353
2345
|
let deferred0_1;
|
|
2354
2346
|
try {
|
|
@@ -2360,11 +2352,11 @@ module.exports.__wbg_sendblocksuccess_33fbbf5e82ec047c = function(arg0, arg1, ar
|
|
|
2360
2352
|
}
|
|
2361
2353
|
};
|
|
2362
2354
|
|
|
2363
|
-
module.exports.
|
|
2355
|
+
module.exports.__wbg_sendwalletupdate_6c5721280cfe040b = function() {
|
|
2364
2356
|
MsgHandler.send_wallet_update();
|
|
2365
2357
|
};
|
|
2366
2358
|
|
|
2367
|
-
module.exports.
|
|
2359
|
+
module.exports.__wbg_sendnewversionalert_29721c3658bd04d0 = function(arg0, arg1, arg2) {
|
|
2368
2360
|
let deferred0_0;
|
|
2369
2361
|
let deferred0_1;
|
|
2370
2362
|
try {
|
|
@@ -2376,15 +2368,15 @@ module.exports.__wbg_sendnewversionalert_fdeae65b17d57a78 = function(arg0, arg1,
|
|
|
2376
2368
|
}
|
|
2377
2369
|
};
|
|
2378
2370
|
|
|
2379
|
-
module.exports.
|
|
2371
|
+
module.exports.__wbg_savewallet_2fa4d57c2d41a967 = function() {
|
|
2380
2372
|
MsgHandler.save_wallet();
|
|
2381
2373
|
};
|
|
2382
2374
|
|
|
2383
|
-
module.exports.
|
|
2375
|
+
module.exports.__wbg_loadwallet_1e4298b1479d07b2 = function() {
|
|
2384
2376
|
MsgHandler.load_wallet();
|
|
2385
2377
|
};
|
|
2386
2378
|
|
|
2387
|
-
module.exports.
|
|
2379
|
+
module.exports.__wbg_getmyservices_58f0019ed967c00c = function() {
|
|
2388
2380
|
const ret = MsgHandler.get_my_services();
|
|
2389
2381
|
_assertClass(ret, WasmPeerServiceList);
|
|
2390
2382
|
var ptr1 = ret.__destroy_into_raw();
|
|
@@ -2643,7 +2635,7 @@ module.exports.__wbg_new_81740750da40724f = function(arg0, arg1) {
|
|
|
2643
2635
|
const a = state0.a;
|
|
2644
2636
|
state0.a = 0;
|
|
2645
2637
|
try {
|
|
2646
|
-
return
|
|
2638
|
+
return __wbg_adapter_367(a, state0.b, arg0, arg1);
|
|
2647
2639
|
} finally {
|
|
2648
2640
|
state0.a = a;
|
|
2649
2641
|
}
|
|
@@ -2738,7 +2730,7 @@ module.exports.__wbindgen_memory = function() {
|
|
|
2738
2730
|
};
|
|
2739
2731
|
|
|
2740
2732
|
module.exports.__wbindgen_closure_wrapper1165 = function(arg0, arg1, arg2) {
|
|
2741
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2733
|
+
const ret = makeMutClosure(arg0, arg1, 423, __wbg_adapter_40);
|
|
2742
2734
|
return addHeapObject(ret);
|
|
2743
2735
|
};
|
|
2744
2736
|
|
package/pkg/node/index_bg.wasm
CHANGED
|
Binary file
|
|
@@ -1,22 +1,6 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
|
-
export function __wbg_wasmblockchain_free(a: number): void;
|
|
5
|
-
export function wasmblockchain_reset(a: number): number;
|
|
6
|
-
export function wasmblockchain_get_last_block_id(a: number): number;
|
|
7
|
-
export function wasmblockchain_get_last_timestamp(a: number): number;
|
|
8
|
-
export function wasmblockchain_get_longest_chain_hash_at(a: number, b: number): number;
|
|
9
|
-
export function wasmblockchain_get_last_block_hash(a: number): number;
|
|
10
|
-
export function wasmblockchain_get_last_burnfee(a: number): number;
|
|
11
|
-
export function wasmblockchain_get_genesis_block_id(a: number): number;
|
|
12
|
-
export function wasmblockchain_get_genesis_timestamp(a: number): number;
|
|
13
|
-
export function wasmblockchain_get_lowest_acceptable_timestamp(a: number): number;
|
|
14
|
-
export function wasmblockchain_get_lowest_acceptable_block_hash(a: number): number;
|
|
15
|
-
export function wasmblockchain_get_lowest_acceptable_block_id(a: number): number;
|
|
16
|
-
export function wasmblockchain_get_latest_block_id(a: number): number;
|
|
17
|
-
export function wasmblockchain_get_fork_id(a: number): number;
|
|
18
|
-
export function wasmblockchain_get_longest_chain_hash_at_id(a: number, b: number): number;
|
|
19
|
-
export function wasmblockchain_get_hashes_at_id(a: number, b: number): number;
|
|
20
4
|
export function __wbg_wasmwallet_free(a: number): void;
|
|
21
5
|
export function __wbg_wasmwalletslip_free(a: number): void;
|
|
22
6
|
export function wasmwallet_save(a: number): number;
|
|
@@ -47,52 +31,6 @@ export function wasmwalletslip_set_spent(a: number, b: number): void;
|
|
|
47
31
|
export function wasmwalletslip_is_lc(a: number): number;
|
|
48
32
|
export function wasmwalletslip_set_lc(a: number, b: number): void;
|
|
49
33
|
export function wasmwalletslip_new_(): number;
|
|
50
|
-
export function __wbg_wasmbalancesnapshot_free(a: number): void;
|
|
51
|
-
export function wasmbalancesnapshot_get_file_name(a: number): number;
|
|
52
|
-
export function wasmbalancesnapshot_get_entries(a: number): number;
|
|
53
|
-
export function wasmbalancesnapshot_from_string(a: number, b: number): void;
|
|
54
|
-
export function wasmbalancesnapshot_to_string(a: number): number;
|
|
55
|
-
export function __wbg_wasmconfiguration_free(a: number): void;
|
|
56
|
-
export function wasmconfiguration_new(): number;
|
|
57
|
-
export function __wbg_wasmpeer_free(a: number): void;
|
|
58
|
-
export function wasmpeer_get_public_key(a: number): number;
|
|
59
|
-
export function wasmpeer_get_key_list(a: number): number;
|
|
60
|
-
export function wasmpeer_get_peer_index(a: number): number;
|
|
61
|
-
export function wasmpeer_new(a: number): number;
|
|
62
|
-
export function wasmpeer_get_sync_type(a: number): number;
|
|
63
|
-
export function wasmpeer_get_services(a: number): number;
|
|
64
|
-
export function wasmpeer_set_services(a: number, b: number): void;
|
|
65
|
-
export function wasmpeer_has_service(a: number, b: number): number;
|
|
66
|
-
export function wasmpeer_is_main_peer(a: number): number;
|
|
67
|
-
export function __wbg_saitowasm_free(a: number): void;
|
|
68
|
-
export function initialize(a: number, b: number, c: number): number;
|
|
69
|
-
export function create_transaction(a: number, b: number, c: number, d: number): number;
|
|
70
|
-
export function get_latest_block_hash(): number;
|
|
71
|
-
export function get_block(a: number): number;
|
|
72
|
-
export function process_new_peer(a: number, b: number): number;
|
|
73
|
-
export function process_peer_disconnection(a: number): number;
|
|
74
|
-
export function process_msg_buffer_from_peer(a: number, b: number): number;
|
|
75
|
-
export function process_fetched_block(a: number, b: number, c: number): number;
|
|
76
|
-
export function process_failed_block_fetch(a: number): number;
|
|
77
|
-
export function process_timer_event(a: number): number;
|
|
78
|
-
export function hash(a: number): number;
|
|
79
|
-
export function sign_buffer(a: number, b: number, c: number): void;
|
|
80
|
-
export function verify_signature(a: number, b: number, c: number): number;
|
|
81
|
-
export function get_peers(): number;
|
|
82
|
-
export function get_peer(a: number): number;
|
|
83
|
-
export function get_account_slips(a: number): number;
|
|
84
|
-
export function get_balance_snapshot(a: number): number;
|
|
85
|
-
export function update_from_balance_snapshot(a: number): number;
|
|
86
|
-
export function generate_private_key(): number;
|
|
87
|
-
export function generate_public_key(a: number, b: number): void;
|
|
88
|
-
export function propagate_transaction(a: number): number;
|
|
89
|
-
export function send_api_call(a: number, b: number, c: number): number;
|
|
90
|
-
export function send_api_success(a: number, b: number, c: number): number;
|
|
91
|
-
export function send_api_error(a: number, b: number, c: number): number;
|
|
92
|
-
export function get_wallet(): number;
|
|
93
|
-
export function get_blockchain(): number;
|
|
94
|
-
export function get_mempool_txs(): number;
|
|
95
|
-
export function set_wallet_version(a: number, b: number, c: number): number;
|
|
96
34
|
export function __wbg_wasmblock_free(a: number): void;
|
|
97
35
|
export function wasmblock_new(): number;
|
|
98
36
|
export function wasmblock_get_transactions(a: number): number;
|
|
@@ -136,6 +74,27 @@ export function wasmblock_serialize(a: number): number;
|
|
|
136
74
|
export function wasmblock_deserialize(a: number, b: number, c: number): void;
|
|
137
75
|
export function wasmblock_has_keylist_txs(a: number, b: number): number;
|
|
138
76
|
export function wasmblock_generate_lite_block(a: number, b: number): number;
|
|
77
|
+
export function __wbg_wasmpeer_free(a: number): void;
|
|
78
|
+
export function wasmpeer_get_public_key(a: number): number;
|
|
79
|
+
export function wasmpeer_get_key_list(a: number): number;
|
|
80
|
+
export function wasmpeer_get_peer_index(a: number): number;
|
|
81
|
+
export function wasmpeer_new(a: number): number;
|
|
82
|
+
export function wasmpeer_get_sync_type(a: number): number;
|
|
83
|
+
export function wasmpeer_get_services(a: number): number;
|
|
84
|
+
export function wasmpeer_set_services(a: number, b: number): void;
|
|
85
|
+
export function wasmpeer_has_service(a: number, b: number): number;
|
|
86
|
+
export function wasmpeer_is_main_peer(a: number): number;
|
|
87
|
+
export function __wbg_wasmpeerservicelist_free(a: number): void;
|
|
88
|
+
export function __wbg_wasmpeerservice_free(a: number): void;
|
|
89
|
+
export function wasmpeerservice_new(): number;
|
|
90
|
+
export function wasmpeerservice_set_service(a: number, b: number): void;
|
|
91
|
+
export function wasmpeerservice_get_service(a: number): number;
|
|
92
|
+
export function wasmpeerservice_set_name(a: number, b: number): void;
|
|
93
|
+
export function wasmpeerservice_get_name(a: number): number;
|
|
94
|
+
export function wasmpeerservice_set_domain(a: number, b: number): void;
|
|
95
|
+
export function wasmpeerservice_get_domain(a: number): number;
|
|
96
|
+
export function wasmpeerservicelist_push(a: number, b: number): void;
|
|
97
|
+
export function wasmpeerservicelist_new(): number;
|
|
139
98
|
export function __wbg_wasmslip_free(a: number): void;
|
|
140
99
|
export function wasmslip_amount(a: number): number;
|
|
141
100
|
export function wasmslip_set_amount(a: number, b: number): void;
|
|
@@ -152,6 +111,77 @@ export function wasmslip_set_tx_ordinal(a: number, b: number): void;
|
|
|
152
111
|
export function wasmslip_set_utxo_key(a: number, b: number): void;
|
|
153
112
|
export function wasmslip_utxo_key(a: number): number;
|
|
154
113
|
export function wasmslip_new(): number;
|
|
114
|
+
export function __wbg_wasmbalancesnapshot_free(a: number): void;
|
|
115
|
+
export function wasmbalancesnapshot_get_file_name(a: number): number;
|
|
116
|
+
export function wasmbalancesnapshot_get_entries(a: number): number;
|
|
117
|
+
export function wasmbalancesnapshot_from_string(a: number, b: number): void;
|
|
118
|
+
export function wasmbalancesnapshot_to_string(a: number): number;
|
|
119
|
+
export function __wbg_wasmconfiguration_free(a: number): void;
|
|
120
|
+
export function wasmconfiguration_new(): number;
|
|
121
|
+
export function __wbg_wasmblockchain_free(a: number): void;
|
|
122
|
+
export function wasmblockchain_reset(a: number): number;
|
|
123
|
+
export function wasmblockchain_get_last_block_id(a: number): number;
|
|
124
|
+
export function wasmblockchain_get_last_timestamp(a: number): number;
|
|
125
|
+
export function wasmblockchain_get_longest_chain_hash_at(a: number, b: number): number;
|
|
126
|
+
export function wasmblockchain_get_last_block_hash(a: number): number;
|
|
127
|
+
export function wasmblockchain_get_last_burnfee(a: number): number;
|
|
128
|
+
export function wasmblockchain_get_genesis_block_id(a: number): number;
|
|
129
|
+
export function wasmblockchain_get_genesis_timestamp(a: number): number;
|
|
130
|
+
export function wasmblockchain_get_lowest_acceptable_timestamp(a: number): number;
|
|
131
|
+
export function wasmblockchain_get_lowest_acceptable_block_hash(a: number): number;
|
|
132
|
+
export function wasmblockchain_get_lowest_acceptable_block_id(a: number): number;
|
|
133
|
+
export function wasmblockchain_get_latest_block_id(a: number): number;
|
|
134
|
+
export function wasmblockchain_get_fork_id(a: number): number;
|
|
135
|
+
export function wasmblockchain_get_longest_chain_hash_at_id(a: number, b: number): number;
|
|
136
|
+
export function wasmblockchain_get_hashes_at_id(a: number, b: number): number;
|
|
137
|
+
export function __wbg_wasmhop_free(a: number): void;
|
|
138
|
+
export function wasmhop_from(a: number, b: number): void;
|
|
139
|
+
export function wasmhop_sig(a: number, b: number): void;
|
|
140
|
+
export function wasmhop_to(a: number, b: number): void;
|
|
141
|
+
export function __wbg_saitowasm_free(a: number): void;
|
|
142
|
+
export function initialize(a: number, b: number, c: number): number;
|
|
143
|
+
export function create_transaction(a: number, b: number, c: number, d: number): number;
|
|
144
|
+
export function get_latest_block_hash(): number;
|
|
145
|
+
export function get_block(a: number): number;
|
|
146
|
+
export function process_new_peer(a: number, b: number): number;
|
|
147
|
+
export function process_peer_disconnection(a: number): number;
|
|
148
|
+
export function process_msg_buffer_from_peer(a: number, b: number): number;
|
|
149
|
+
export function process_fetched_block(a: number, b: number, c: number): number;
|
|
150
|
+
export function process_timer_event(a: number): number;
|
|
151
|
+
export function hash(a: number): number;
|
|
152
|
+
export function sign_buffer(a: number, b: number, c: number): void;
|
|
153
|
+
export function verify_signature(a: number, b: number, c: number): number;
|
|
154
|
+
export function get_peers(): number;
|
|
155
|
+
export function get_peer(a: number): number;
|
|
156
|
+
export function get_account_slips(a: number): number;
|
|
157
|
+
export function get_balance_snapshot(a: number): number;
|
|
158
|
+
export function update_from_balance_snapshot(a: number): number;
|
|
159
|
+
export function generate_private_key(): number;
|
|
160
|
+
export function generate_public_key(a: number, b: number): void;
|
|
161
|
+
export function propagate_transaction(a: number): number;
|
|
162
|
+
export function send_api_call(a: number, b: number, c: number): number;
|
|
163
|
+
export function send_api_success(a: number, b: number, c: number): number;
|
|
164
|
+
export function send_api_error(a: number, b: number, c: number): number;
|
|
165
|
+
export function get_wallet(): number;
|
|
166
|
+
export function get_blockchain(): number;
|
|
167
|
+
export function get_mempool_txs(): number;
|
|
168
|
+
export function set_wallet_version(a: number, b: number, c: number): number;
|
|
169
|
+
export function __wbg_wasmconsensusvalues_free(a: number): void;
|
|
170
|
+
export function wasmconsensusvalues_it_num(a: number): number;
|
|
171
|
+
export function wasmconsensusvalues_fee_transaction(a: number): number;
|
|
172
|
+
export function wasmconsensusvalues_it_index(a: number): number;
|
|
173
|
+
export function wasmconsensusvalues_ft_num(a: number): number;
|
|
174
|
+
export function wasmconsensusvalues_ft_index(a: number): number;
|
|
175
|
+
export function wasmconsensusvalues_gt_index(a: number): number;
|
|
176
|
+
export function wasmconsensusvalues_total_fees(a: number): number;
|
|
177
|
+
export function wasmconsensusvalues_expected_difficulty(a: number): number;
|
|
178
|
+
export function wasmconsensusvalues_total_rebroadcast_slips(a: number): number;
|
|
179
|
+
export function wasmconsensusvalues_total_rebroadcast_nolan(a: number): number;
|
|
180
|
+
export function wasmconsensusvalues_total_rebroadcast_fees_nolan(a: number): number;
|
|
181
|
+
export function wasmconsensusvalues_total_rebroadcast_staking_payouts_nolan(a: number): number;
|
|
182
|
+
export function wasmconsensusvalues_rebroadcast_hash(a: number): number;
|
|
183
|
+
export function wasmconsensusvalues_nolan_falling_off_chain(a: number): number;
|
|
184
|
+
export function wasmconsensusvalues_avg_income(a: number): number;
|
|
155
185
|
export function __wbg_wasmtransaction_free(a: number): void;
|
|
156
186
|
export function wasmtransaction_new(): number;
|
|
157
187
|
export function wasmtransaction_signature(a: number): number;
|
|
@@ -175,37 +205,6 @@ export function wasmtransaction_set_type(a: number, b: number): void;
|
|
|
175
205
|
export function wasmtransaction_total_fees(a: number): number;
|
|
176
206
|
export function wasmtransaction_serialize(a: number): number;
|
|
177
207
|
export function wasmtransaction_deserialize(a: number, b: number): void;
|
|
178
|
-
export function __wbg_wasmhop_free(a: number): void;
|
|
179
|
-
export function wasmhop_from(a: number, b: number): void;
|
|
180
|
-
export function wasmhop_sig(a: number, b: number): void;
|
|
181
|
-
export function wasmhop_to(a: number, b: number): void;
|
|
182
|
-
export function __wbg_wasmpeerservicelist_free(a: number): void;
|
|
183
|
-
export function __wbg_wasmpeerservice_free(a: number): void;
|
|
184
|
-
export function wasmpeerservice_new(): number;
|
|
185
|
-
export function wasmpeerservice_set_service(a: number, b: number): void;
|
|
186
|
-
export function wasmpeerservice_get_service(a: number): number;
|
|
187
|
-
export function wasmpeerservice_set_name(a: number, b: number): void;
|
|
188
|
-
export function wasmpeerservice_get_name(a: number): number;
|
|
189
|
-
export function wasmpeerservice_set_domain(a: number, b: number): void;
|
|
190
|
-
export function wasmpeerservice_get_domain(a: number): number;
|
|
191
|
-
export function wasmpeerservicelist_push(a: number, b: number): void;
|
|
192
|
-
export function wasmpeerservicelist_new(): number;
|
|
193
|
-
export function __wbg_wasmconsensusvalues_free(a: number): void;
|
|
194
|
-
export function wasmconsensusvalues_it_num(a: number): number;
|
|
195
|
-
export function wasmconsensusvalues_fee_transaction(a: number): number;
|
|
196
|
-
export function wasmconsensusvalues_it_index(a: number): number;
|
|
197
|
-
export function wasmconsensusvalues_ft_num(a: number): number;
|
|
198
|
-
export function wasmconsensusvalues_ft_index(a: number): number;
|
|
199
|
-
export function wasmconsensusvalues_gt_index(a: number): number;
|
|
200
|
-
export function wasmconsensusvalues_total_fees(a: number): number;
|
|
201
|
-
export function wasmconsensusvalues_expected_difficulty(a: number): number;
|
|
202
|
-
export function wasmconsensusvalues_total_rebroadcast_slips(a: number): number;
|
|
203
|
-
export function wasmconsensusvalues_total_rebroadcast_nolan(a: number): number;
|
|
204
|
-
export function wasmconsensusvalues_total_rebroadcast_fees_nolan(a: number): number;
|
|
205
|
-
export function wasmconsensusvalues_total_rebroadcast_staking_payouts_nolan(a: number): number;
|
|
206
|
-
export function wasmconsensusvalues_rebroadcast_hash(a: number): number;
|
|
207
|
-
export function wasmconsensusvalues_nolan_falling_off_chain(a: number): number;
|
|
208
|
-
export function wasmconsensusvalues_avg_income(a: number): number;
|
|
209
208
|
export function rustsecp256k1_v0_9_0_context_create(a: number): number;
|
|
210
209
|
export function rustsecp256k1_v0_9_0_context_destroy(a: number): void;
|
|
211
210
|
export function rustsecp256k1_v0_9_0_default_illegal_callback_fn(a: number, b: number): void;
|
|
@@ -213,8 +212,8 @@ export function rustsecp256k1_v0_9_0_default_error_callback_fn(a: number, b: num
|
|
|
213
212
|
export function __wbindgen_malloc(a: number, b: number): number;
|
|
214
213
|
export function __wbindgen_realloc(a: number, b: number, c: number, d: number): number;
|
|
215
214
|
export const __wbindgen_export_2: WebAssembly.Table;
|
|
216
|
-
export function
|
|
215
|
+
export function _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h71ee5d4075b93a8f(a: number, b: number, c: number): void;
|
|
217
216
|
export function __wbindgen_add_to_stack_pointer(a: number): number;
|
|
218
217
|
export function __wbindgen_free(a: number, b: number, c: number): void;
|
|
219
218
|
export function __wbindgen_exn_store(a: number): void;
|
|
220
|
-
export function
|
|
219
|
+
export function wasm_bindgen__convert__closures__invoke2_mut__h042dde47a1d77254(a: number, b: number, c: number, d: number): void;
|
package/pkg/node/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "saito-wasm",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.45",
|
|
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
|
}
|