saito-wasm 0.1.21 → 0.1.22
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 +4 -0
- package/pkg/node/index.js +70 -63
- package/pkg/node/index_bg.wasm +0 -0
- package/pkg/node/index_bg.wasm.d.ts +17 -16
- package/pkg/node/package.json +1 -1
- package/pkg/web/index.d.ts +21 -16
- package/pkg/web/index.js +65 -58
- package/pkg/web/index_bg.wasm +0 -0
- package/pkg/web/index_bg.wasm.d.ts +17 -16
- package/pkg/web/package.json +1 -1
- /package/pkg/node/snippets/{saito-wasm-e3ebbb2a2afd2eac → saito-wasm-97d32f2d251a611b}/js/msg_handler.js +0 -0
- /package/pkg/web/snippets/{saito-wasm-e3ebbb2a2afd2eac → saito-wasm-97d32f2d251a611b}/js/msg_handler.js +0 -0
package/Cargo.toml
CHANGED
package/package.json
CHANGED
package/pkg/node/index.d.ts
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-97d32f2d251a611b/js/msg_handler.js`);
|
|
5
5
|
const { TextDecoder, TextEncoder } = require(`util`);
|
|
6
6
|
|
|
7
7
|
const heap = new Array(128).fill(undefined);
|
|
@@ -514,7 +514,7 @@ function handleError(f, args) {
|
|
|
514
514
|
wasm.__wbindgen_exn_store(addHeapObject(e));
|
|
515
515
|
}
|
|
516
516
|
}
|
|
517
|
-
function
|
|
517
|
+
function __wbg_adapter_370(arg0, arg1, arg2, arg3) {
|
|
518
518
|
wasm.wasm_bindgen__convert__closures__invoke2_mut__h2a9104be04933eb2(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
519
519
|
}
|
|
520
520
|
|
|
@@ -1103,6 +1103,13 @@ class WasmBlockchain {
|
|
|
1103
1103
|
return takeObject(ret);
|
|
1104
1104
|
}
|
|
1105
1105
|
/**
|
|
1106
|
+
* @returns {Promise<string>}
|
|
1107
|
+
*/
|
|
1108
|
+
get_fork_id() {
|
|
1109
|
+
const ret = wasm.wasmblockchain_get_fork_id(this.__wbg_ptr);
|
|
1110
|
+
return takeObject(ret);
|
|
1111
|
+
}
|
|
1112
|
+
/**
|
|
1106
1113
|
* @param {bigint} block_id
|
|
1107
1114
|
* @returns {Promise<string>}
|
|
1108
1115
|
*/
|
|
@@ -2140,48 +2147,38 @@ module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
|
2140
2147
|
takeObject(arg0);
|
|
2141
2148
|
};
|
|
2142
2149
|
|
|
2143
|
-
module.exports.__wbg_wasmblockchain_new = function(arg0) {
|
|
2144
|
-
const ret = WasmBlockchain.__wrap(arg0);
|
|
2145
|
-
return addHeapObject(ret);
|
|
2146
|
-
};
|
|
2147
|
-
|
|
2148
2150
|
module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
2149
2151
|
const ret = BigInt.asUintN(64, arg0);
|
|
2150
2152
|
return addHeapObject(ret);
|
|
2151
2153
|
};
|
|
2152
2154
|
|
|
2153
|
-
module.exports.
|
|
2154
|
-
const ret =
|
|
2155
|
-
return addHeapObject(ret);
|
|
2156
|
-
};
|
|
2157
|
-
|
|
2158
|
-
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
2159
|
-
const ret = getStringFromWasm0(arg0, arg1);
|
|
2155
|
+
module.exports.__wbg_wasmtransaction_new = function(arg0) {
|
|
2156
|
+
const ret = WasmTransaction.__wrap(arg0);
|
|
2160
2157
|
return addHeapObject(ret);
|
|
2161
2158
|
};
|
|
2162
2159
|
|
|
2163
|
-
module.exports.
|
|
2164
|
-
const ret =
|
|
2160
|
+
module.exports.__wbg_wasmpeer_new = function(arg0) {
|
|
2161
|
+
const ret = WasmPeer.__wrap(arg0);
|
|
2165
2162
|
return addHeapObject(ret);
|
|
2166
2163
|
};
|
|
2167
2164
|
|
|
2168
|
-
module.exports.
|
|
2169
|
-
const ret =
|
|
2165
|
+
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
2166
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
2170
2167
|
return addHeapObject(ret);
|
|
2171
2168
|
};
|
|
2172
2169
|
|
|
2173
|
-
module.exports.
|
|
2174
|
-
const ret =
|
|
2170
|
+
module.exports.__wbg_wasmblock_new = function(arg0) {
|
|
2171
|
+
const ret = WasmBlock.__wrap(arg0);
|
|
2175
2172
|
return addHeapObject(ret);
|
|
2176
2173
|
};
|
|
2177
2174
|
|
|
2178
|
-
module.exports.
|
|
2179
|
-
const ret =
|
|
2175
|
+
module.exports.__wbg_wasmwallet_new = function(arg0) {
|
|
2176
|
+
const ret = WasmWallet.__wrap(arg0);
|
|
2180
2177
|
return addHeapObject(ret);
|
|
2181
2178
|
};
|
|
2182
2179
|
|
|
2183
|
-
module.exports.
|
|
2184
|
-
const ret =
|
|
2180
|
+
module.exports.__wbg_wasmwalletslip_new = function(arg0) {
|
|
2181
|
+
const ret = WasmWalletSlip.__wrap(arg0);
|
|
2185
2182
|
return addHeapObject(ret);
|
|
2186
2183
|
};
|
|
2187
2184
|
|
|
@@ -2199,8 +2196,18 @@ module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
|
2199
2196
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
2200
2197
|
};
|
|
2201
2198
|
|
|
2202
|
-
module.exports.
|
|
2203
|
-
const ret =
|
|
2199
|
+
module.exports.__wbg_wasmblockchain_new = function(arg0) {
|
|
2200
|
+
const ret = WasmBlockchain.__wrap(arg0);
|
|
2201
|
+
return addHeapObject(ret);
|
|
2202
|
+
};
|
|
2203
|
+
|
|
2204
|
+
module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
|
|
2205
|
+
const ret = WasmBalanceSnapshot.__wrap(arg0);
|
|
2206
|
+
return addHeapObject(ret);
|
|
2207
|
+
};
|
|
2208
|
+
|
|
2209
|
+
module.exports.__wbg_wasmslip_new = function(arg0) {
|
|
2210
|
+
const ret = WasmSlip.__wrap(arg0);
|
|
2204
2211
|
return addHeapObject(ret);
|
|
2205
2212
|
};
|
|
2206
2213
|
|
|
@@ -2214,25 +2221,40 @@ module.exports.__wbg_wasmblockpayout_new = function(arg0) {
|
|
|
2214
2221
|
return addHeapObject(ret);
|
|
2215
2222
|
};
|
|
2216
2223
|
|
|
2217
|
-
module.exports.
|
|
2224
|
+
module.exports.__wbindgen_error_new = function(arg0, arg1) {
|
|
2225
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
2226
|
+
return addHeapObject(ret);
|
|
2227
|
+
};
|
|
2228
|
+
|
|
2229
|
+
module.exports.__wbg_wasmconsensusvalues_new = function(arg0) {
|
|
2230
|
+
const ret = WasmConsensusValues.__wrap(arg0);
|
|
2231
|
+
return addHeapObject(ret);
|
|
2232
|
+
};
|
|
2233
|
+
|
|
2234
|
+
module.exports.__wbg_wasmhop_new = function(arg0) {
|
|
2235
|
+
const ret = WasmHop.__wrap(arg0);
|
|
2236
|
+
return addHeapObject(ret);
|
|
2237
|
+
};
|
|
2238
|
+
|
|
2239
|
+
module.exports.__wbg_sendmessage_b34440c987e83297 = function(arg0, arg1) {
|
|
2218
2240
|
MsgHandler.send_message(takeObject(arg0), getObject(arg1));
|
|
2219
2241
|
};
|
|
2220
2242
|
|
|
2221
|
-
module.exports.
|
|
2243
|
+
module.exports.__wbg_sendmessagetoall_d3973f11029a95ef = function(arg0, arg1) {
|
|
2222
2244
|
MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
|
|
2223
2245
|
};
|
|
2224
2246
|
|
|
2225
|
-
module.exports.
|
|
2247
|
+
module.exports.__wbg_connecttopeer_77a57e46e75f2ea4 = function() { return handleError(function (arg0) {
|
|
2226
2248
|
const ret = MsgHandler.connect_to_peer(takeObject(arg0));
|
|
2227
2249
|
return addHeapObject(ret);
|
|
2228
2250
|
}, arguments) };
|
|
2229
2251
|
|
|
2230
|
-
module.exports.
|
|
2252
|
+
module.exports.__wbg_disconnectfrompeer_613a42b148447b01 = function() { return handleError(function (arg0) {
|
|
2231
2253
|
const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
|
|
2232
2254
|
return addHeapObject(ret);
|
|
2233
2255
|
}, arguments) };
|
|
2234
2256
|
|
|
2235
|
-
module.exports.
|
|
2257
|
+
module.exports.__wbg_fetchblockfrompeer_c727f614897a3fb8 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
2236
2258
|
let deferred0_0;
|
|
2237
2259
|
let deferred0_1;
|
|
2238
2260
|
try {
|
|
@@ -2245,7 +2267,7 @@ module.exports.__wbg_fetchblockfrompeer_b99afa0c081f9f7d = function() { return h
|
|
|
2245
2267
|
}
|
|
2246
2268
|
}, arguments) };
|
|
2247
2269
|
|
|
2248
|
-
module.exports.
|
|
2270
|
+
module.exports.__wbg_writevalue_0123f1894288573b = function(arg0, arg1, arg2) {
|
|
2249
2271
|
let deferred0_0;
|
|
2250
2272
|
let deferred0_1;
|
|
2251
2273
|
try {
|
|
@@ -2257,7 +2279,7 @@ module.exports.__wbg_writevalue_ffd93c5a658a4605 = function(arg0, arg1, arg2) {
|
|
|
2257
2279
|
}
|
|
2258
2280
|
};
|
|
2259
2281
|
|
|
2260
|
-
module.exports.
|
|
2282
|
+
module.exports.__wbg_readvalue_641beabce072d837 = function() { return handleError(function (arg0, arg1) {
|
|
2261
2283
|
let deferred0_0;
|
|
2262
2284
|
let deferred0_1;
|
|
2263
2285
|
try {
|
|
@@ -2270,12 +2292,12 @@ module.exports.__wbg_readvalue_4897861730119eca = function() { return handleErro
|
|
|
2270
2292
|
}
|
|
2271
2293
|
}, arguments) };
|
|
2272
2294
|
|
|
2273
|
-
module.exports.
|
|
2295
|
+
module.exports.__wbg_loadblockfilelist_a4c4f3da66f06458 = function() { return handleError(function () {
|
|
2274
2296
|
const ret = MsgHandler.load_block_file_list();
|
|
2275
2297
|
return addHeapObject(ret);
|
|
2276
2298
|
}, arguments) };
|
|
2277
2299
|
|
|
2278
|
-
module.exports.
|
|
2300
|
+
module.exports.__wbg_isexistingfile_9cf2bdb8e61fe222 = function() { return handleError(function (arg0, arg1) {
|
|
2279
2301
|
let deferred0_0;
|
|
2280
2302
|
let deferred0_1;
|
|
2281
2303
|
try {
|
|
@@ -2288,7 +2310,7 @@ module.exports.__wbg_isexistingfile_e6d4da8437312145 = function() { return handl
|
|
|
2288
2310
|
}
|
|
2289
2311
|
}, arguments) };
|
|
2290
2312
|
|
|
2291
|
-
module.exports.
|
|
2313
|
+
module.exports.__wbg_removevalue_33f3e1e4e16baa07 = function() { return handleError(function (arg0, arg1) {
|
|
2292
2314
|
let deferred0_0;
|
|
2293
2315
|
let deferred0_1;
|
|
2294
2316
|
try {
|
|
@@ -2301,19 +2323,19 @@ module.exports.__wbg_removevalue_553753071b617389 = function() { return handleEr
|
|
|
2301
2323
|
}
|
|
2302
2324
|
}, arguments) };
|
|
2303
2325
|
|
|
2304
|
-
module.exports.
|
|
2326
|
+
module.exports.__wbg_processapicall_c4967bfc39420002 = function(arg0, arg1, arg2) {
|
|
2305
2327
|
MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
|
|
2306
2328
|
};
|
|
2307
2329
|
|
|
2308
|
-
module.exports.
|
|
2330
|
+
module.exports.__wbg_processapisuccess_58c334f93c7a8ad0 = function(arg0, arg1, arg2) {
|
|
2309
2331
|
MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
|
|
2310
2332
|
};
|
|
2311
2333
|
|
|
2312
|
-
module.exports.
|
|
2334
|
+
module.exports.__wbg_processapierror_471f6b6bd5daf382 = function(arg0, arg1, arg2) {
|
|
2313
2335
|
MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
|
|
2314
2336
|
};
|
|
2315
2337
|
|
|
2316
|
-
module.exports.
|
|
2338
|
+
module.exports.__wbg_sendinterfaceevent_cb14835bdb678fd8 = function(arg0, arg1, arg2) {
|
|
2317
2339
|
let deferred0_0;
|
|
2318
2340
|
let deferred0_1;
|
|
2319
2341
|
try {
|
|
@@ -2325,7 +2347,7 @@ module.exports.__wbg_sendinterfaceevent_7726ef2f32a039aa = function(arg0, arg1,
|
|
|
2325
2347
|
}
|
|
2326
2348
|
};
|
|
2327
2349
|
|
|
2328
|
-
module.exports.
|
|
2350
|
+
module.exports.__wbg_sendblocksuccess_caaac2d97dcd9606 = function(arg0, arg1, arg2) {
|
|
2329
2351
|
let deferred0_0;
|
|
2330
2352
|
let deferred0_1;
|
|
2331
2353
|
try {
|
|
@@ -2337,19 +2359,19 @@ module.exports.__wbg_sendblocksuccess_c35f27a696249534 = function(arg0, arg1, ar
|
|
|
2337
2359
|
}
|
|
2338
2360
|
};
|
|
2339
2361
|
|
|
2340
|
-
module.exports.
|
|
2362
|
+
module.exports.__wbg_sendwalletupdate_f6379d3c99d9ba52 = function() {
|
|
2341
2363
|
MsgHandler.send_wallet_update();
|
|
2342
2364
|
};
|
|
2343
2365
|
|
|
2344
|
-
module.exports.
|
|
2366
|
+
module.exports.__wbg_savewallet_ce93ac356c7dd793 = function() {
|
|
2345
2367
|
MsgHandler.save_wallet();
|
|
2346
2368
|
};
|
|
2347
2369
|
|
|
2348
|
-
module.exports.
|
|
2370
|
+
module.exports.__wbg_loadwallet_ab92e4d554fa0563 = function() {
|
|
2349
2371
|
MsgHandler.load_wallet();
|
|
2350
2372
|
};
|
|
2351
2373
|
|
|
2352
|
-
module.exports.
|
|
2374
|
+
module.exports.__wbg_getmyservices_ef3b0cdba9e0ae88 = function() {
|
|
2353
2375
|
const ret = MsgHandler.get_my_services();
|
|
2354
2376
|
_assertClass(ret, WasmPeerServiceList);
|
|
2355
2377
|
var ptr1 = ret.__destroy_into_raw();
|
|
@@ -2372,21 +2394,6 @@ module.exports.__wbindgen_in = function(arg0, arg1) {
|
|
|
2372
2394
|
return ret;
|
|
2373
2395
|
};
|
|
2374
2396
|
|
|
2375
|
-
module.exports.__wbg_wasmconsensusvalues_new = function(arg0) {
|
|
2376
|
-
const ret = WasmConsensusValues.__wrap(arg0);
|
|
2377
|
-
return addHeapObject(ret);
|
|
2378
|
-
};
|
|
2379
|
-
|
|
2380
|
-
module.exports.__wbg_wasmhop_new = function(arg0) {
|
|
2381
|
-
const ret = WasmHop.__wrap(arg0);
|
|
2382
|
-
return addHeapObject(ret);
|
|
2383
|
-
};
|
|
2384
|
-
|
|
2385
|
-
module.exports.__wbindgen_error_new = function(arg0, arg1) {
|
|
2386
|
-
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
2387
|
-
return addHeapObject(ret);
|
|
2388
|
-
};
|
|
2389
|
-
|
|
2390
2397
|
module.exports.__wbindgen_object_clone_ref = function(arg0) {
|
|
2391
2398
|
const ret = getObject(arg0);
|
|
2392
2399
|
return addHeapObject(ret);
|
|
@@ -2630,7 +2637,7 @@ module.exports.__wbg_new_43f1b47c28813cbd = function(arg0, arg1) {
|
|
|
2630
2637
|
const a = state0.a;
|
|
2631
2638
|
state0.a = 0;
|
|
2632
2639
|
try {
|
|
2633
|
-
return
|
|
2640
|
+
return __wbg_adapter_370(a, state0.b, arg0, arg1);
|
|
2634
2641
|
} finally {
|
|
2635
2642
|
state0.a = a;
|
|
2636
2643
|
}
|
|
@@ -2724,8 +2731,8 @@ module.exports.__wbindgen_memory = function() {
|
|
|
2724
2731
|
return addHeapObject(ret);
|
|
2725
2732
|
};
|
|
2726
2733
|
|
|
2727
|
-
module.exports.
|
|
2728
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2734
|
+
module.exports.__wbindgen_closure_wrapper1068 = function(arg0, arg1, arg2) {
|
|
2735
|
+
const ret = makeMutClosure(arg0, arg1, 337, __wbg_adapter_40);
|
|
2729
2736
|
return addHeapObject(ret);
|
|
2730
2737
|
};
|
|
2731
2738
|
|
package/pkg/node/index_bg.wasm
CHANGED
|
Binary file
|
|
@@ -42,6 +42,7 @@ export function wasmblockchain_get_lowest_acceptable_timestamp(a: number): numbe
|
|
|
42
42
|
export function wasmblockchain_get_lowest_acceptable_block_hash(a: number): number;
|
|
43
43
|
export function wasmblockchain_get_lowest_acceptable_block_id(a: number): number;
|
|
44
44
|
export function wasmblockchain_get_latest_block_id(a: number): number;
|
|
45
|
+
export function wasmblockchain_get_fork_id(a: number): number;
|
|
45
46
|
export function wasmblockchain_get_longest_chain_hash_at_id(a: number, b: number): number;
|
|
46
47
|
export function wasmblockchain_get_hashes_at_id(a: number, b: number): number;
|
|
47
48
|
export function __wbg_wasmpeer_free(a: number): void;
|
|
@@ -84,6 +85,22 @@ export function wasmblockpayout_miner_payout(a: number): number;
|
|
|
84
85
|
export function wasmblockpayout_router_payout(a: number): number;
|
|
85
86
|
export function wasmblockpayout_staking_treasury(a: number): number;
|
|
86
87
|
export function wasmblockpayout_random_number(a: number): number;
|
|
88
|
+
export function __wbg_wasmbalancesnapshot_free(a: number): void;
|
|
89
|
+
export function wasmbalancesnapshot_get_file_name(a: number): number;
|
|
90
|
+
export function wasmbalancesnapshot_get_entries(a: number): number;
|
|
91
|
+
export function wasmbalancesnapshot_from_string(a: number, b: number): void;
|
|
92
|
+
export function wasmbalancesnapshot_to_string(a: number): number;
|
|
93
|
+
export function __wbg_wasmpeerservicelist_free(a: number): void;
|
|
94
|
+
export function __wbg_wasmpeerservice_free(a: number): void;
|
|
95
|
+
export function wasmpeerservice_new(): number;
|
|
96
|
+
export function wasmpeerservice_set_service(a: number, b: number): void;
|
|
97
|
+
export function wasmpeerservice_get_service(a: number): number;
|
|
98
|
+
export function wasmpeerservice_set_name(a: number, b: number): void;
|
|
99
|
+
export function wasmpeerservice_get_name(a: number): number;
|
|
100
|
+
export function wasmpeerservice_set_domain(a: number, b: number): void;
|
|
101
|
+
export function wasmpeerservice_get_domain(a: number): number;
|
|
102
|
+
export function wasmpeerservicelist_push(a: number, b: number): void;
|
|
103
|
+
export function wasmpeerservicelist_new(): number;
|
|
87
104
|
export function __wbg_wasmwallet_free(a: number): void;
|
|
88
105
|
export function __wbg_wasmwalletslip_free(a: number): void;
|
|
89
106
|
export function wasmwallet_save(a: number): number;
|
|
@@ -198,22 +215,6 @@ export function wasmtransaction_set_type(a: number, b: number): void;
|
|
|
198
215
|
export function wasmtransaction_total_fees(a: number): number;
|
|
199
216
|
export function wasmtransaction_serialize(a: number): number;
|
|
200
217
|
export function wasmtransaction_deserialize(a: number, b: number): void;
|
|
201
|
-
export function __wbg_wasmbalancesnapshot_free(a: number): void;
|
|
202
|
-
export function wasmbalancesnapshot_get_file_name(a: number): number;
|
|
203
|
-
export function wasmbalancesnapshot_get_entries(a: number): number;
|
|
204
|
-
export function wasmbalancesnapshot_from_string(a: number, b: number): void;
|
|
205
|
-
export function wasmbalancesnapshot_to_string(a: number): number;
|
|
206
|
-
export function __wbg_wasmpeerservicelist_free(a: number): void;
|
|
207
|
-
export function __wbg_wasmpeerservice_free(a: number): void;
|
|
208
|
-
export function wasmpeerservice_new(): number;
|
|
209
|
-
export function wasmpeerservice_set_service(a: number, b: number): void;
|
|
210
|
-
export function wasmpeerservice_get_service(a: number): number;
|
|
211
|
-
export function wasmpeerservice_set_name(a: number, b: number): void;
|
|
212
|
-
export function wasmpeerservice_get_name(a: number): number;
|
|
213
|
-
export function wasmpeerservice_set_domain(a: number, b: number): void;
|
|
214
|
-
export function wasmpeerservice_get_domain(a: number): number;
|
|
215
|
-
export function wasmpeerservicelist_push(a: number, b: number): void;
|
|
216
|
-
export function wasmpeerservicelist_new(): number;
|
|
217
218
|
export function rustsecp256k1_v0_9_0_context_create(a: number): number;
|
|
218
219
|
export function rustsecp256k1_v0_9_0_context_destroy(a: number): void;
|
|
219
220
|
export function rustsecp256k1_v0_9_0_default_illegal_callback_fn(a: number, b: number): void;
|
package/pkg/node/package.json
CHANGED
package/pkg/web/index.d.ts
CHANGED
|
@@ -376,6 +376,10 @@ export class WasmBlockchain {
|
|
|
376
376
|
*/
|
|
377
377
|
get_latest_block_id(): Promise<bigint>;
|
|
378
378
|
/**
|
|
379
|
+
* @returns {Promise<string>}
|
|
380
|
+
*/
|
|
381
|
+
get_fork_id(): Promise<string>;
|
|
382
|
+
/**
|
|
379
383
|
* @param {bigint} block_id
|
|
380
384
|
* @returns {Promise<string>}
|
|
381
385
|
*/
|
|
@@ -793,6 +797,7 @@ export interface InitOutput {
|
|
|
793
797
|
readonly wasmblockchain_get_lowest_acceptable_block_hash: (a: number) => number;
|
|
794
798
|
readonly wasmblockchain_get_lowest_acceptable_block_id: (a: number) => number;
|
|
795
799
|
readonly wasmblockchain_get_latest_block_id: (a: number) => number;
|
|
800
|
+
readonly wasmblockchain_get_fork_id: (a: number) => number;
|
|
796
801
|
readonly wasmblockchain_get_longest_chain_hash_at_id: (a: number, b: number) => number;
|
|
797
802
|
readonly wasmblockchain_get_hashes_at_id: (a: number, b: number) => number;
|
|
798
803
|
readonly __wbg_wasmpeer_free: (a: number) => void;
|
|
@@ -835,6 +840,22 @@ export interface InitOutput {
|
|
|
835
840
|
readonly wasmblockpayout_router_payout: (a: number) => number;
|
|
836
841
|
readonly wasmblockpayout_staking_treasury: (a: number) => number;
|
|
837
842
|
readonly wasmblockpayout_random_number: (a: number) => number;
|
|
843
|
+
readonly __wbg_wasmbalancesnapshot_free: (a: number) => void;
|
|
844
|
+
readonly wasmbalancesnapshot_get_file_name: (a: number) => number;
|
|
845
|
+
readonly wasmbalancesnapshot_get_entries: (a: number) => number;
|
|
846
|
+
readonly wasmbalancesnapshot_from_string: (a: number, b: number) => void;
|
|
847
|
+
readonly wasmbalancesnapshot_to_string: (a: number) => number;
|
|
848
|
+
readonly __wbg_wasmpeerservicelist_free: (a: number) => void;
|
|
849
|
+
readonly __wbg_wasmpeerservice_free: (a: number) => void;
|
|
850
|
+
readonly wasmpeerservice_new: () => number;
|
|
851
|
+
readonly wasmpeerservice_set_service: (a: number, b: number) => void;
|
|
852
|
+
readonly wasmpeerservice_get_service: (a: number) => number;
|
|
853
|
+
readonly wasmpeerservice_set_name: (a: number, b: number) => void;
|
|
854
|
+
readonly wasmpeerservice_get_name: (a: number) => number;
|
|
855
|
+
readonly wasmpeerservice_set_domain: (a: number, b: number) => void;
|
|
856
|
+
readonly wasmpeerservice_get_domain: (a: number) => number;
|
|
857
|
+
readonly wasmpeerservicelist_push: (a: number, b: number) => void;
|
|
858
|
+
readonly wasmpeerservicelist_new: () => number;
|
|
838
859
|
readonly __wbg_wasmwallet_free: (a: number) => void;
|
|
839
860
|
readonly __wbg_wasmwalletslip_free: (a: number) => void;
|
|
840
861
|
readonly wasmwallet_save: (a: number) => number;
|
|
@@ -949,22 +970,6 @@ export interface InitOutput {
|
|
|
949
970
|
readonly wasmtransaction_total_fees: (a: number) => number;
|
|
950
971
|
readonly wasmtransaction_serialize: (a: number) => number;
|
|
951
972
|
readonly wasmtransaction_deserialize: (a: number, b: number) => void;
|
|
952
|
-
readonly __wbg_wasmbalancesnapshot_free: (a: number) => void;
|
|
953
|
-
readonly wasmbalancesnapshot_get_file_name: (a: number) => number;
|
|
954
|
-
readonly wasmbalancesnapshot_get_entries: (a: number) => number;
|
|
955
|
-
readonly wasmbalancesnapshot_from_string: (a: number, b: number) => void;
|
|
956
|
-
readonly wasmbalancesnapshot_to_string: (a: number) => number;
|
|
957
|
-
readonly __wbg_wasmpeerservicelist_free: (a: number) => void;
|
|
958
|
-
readonly __wbg_wasmpeerservice_free: (a: number) => void;
|
|
959
|
-
readonly wasmpeerservice_new: () => number;
|
|
960
|
-
readonly wasmpeerservice_set_service: (a: number, b: number) => void;
|
|
961
|
-
readonly wasmpeerservice_get_service: (a: number) => number;
|
|
962
|
-
readonly wasmpeerservice_set_name: (a: number, b: number) => void;
|
|
963
|
-
readonly wasmpeerservice_get_name: (a: number) => number;
|
|
964
|
-
readonly wasmpeerservice_set_domain: (a: number, b: number) => void;
|
|
965
|
-
readonly wasmpeerservice_get_domain: (a: number) => number;
|
|
966
|
-
readonly wasmpeerservicelist_push: (a: number, b: number) => void;
|
|
967
|
-
readonly wasmpeerservicelist_new: () => number;
|
|
968
973
|
readonly rustsecp256k1_v0_9_0_context_create: (a: number) => number;
|
|
969
974
|
readonly rustsecp256k1_v0_9_0_context_destroy: (a: number) => void;
|
|
970
975
|
readonly rustsecp256k1_v0_9_0_default_illegal_callback_fn: (a: number, b: number) => void;
|
package/pkg/web/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MsgHandler } from './snippets/saito-wasm-
|
|
1
|
+
import { MsgHandler } from './snippets/saito-wasm-97d32f2d251a611b/js/msg_handler.js';
|
|
2
2
|
|
|
3
3
|
let wasm;
|
|
4
4
|
|
|
@@ -516,7 +516,7 @@ function handleError(f, args) {
|
|
|
516
516
|
wasm.__wbindgen_exn_store(addHeapObject(e));
|
|
517
517
|
}
|
|
518
518
|
}
|
|
519
|
-
function
|
|
519
|
+
function __wbg_adapter_370(arg0, arg1, arg2, arg3) {
|
|
520
520
|
wasm.wasm_bindgen__convert__closures__invoke2_mut__h2a9104be04933eb2(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
521
521
|
}
|
|
522
522
|
|
|
@@ -1110,6 +1110,13 @@ export class WasmBlockchain {
|
|
|
1110
1110
|
return takeObject(ret);
|
|
1111
1111
|
}
|
|
1112
1112
|
/**
|
|
1113
|
+
* @returns {Promise<string>}
|
|
1114
|
+
*/
|
|
1115
|
+
get_fork_id() {
|
|
1116
|
+
const ret = wasm.wasmblockchain_get_fork_id(this.__wbg_ptr);
|
|
1117
|
+
return takeObject(ret);
|
|
1118
|
+
}
|
|
1119
|
+
/**
|
|
1113
1120
|
* @param {bigint} block_id
|
|
1114
1121
|
* @returns {Promise<string>}
|
|
1115
1122
|
*/
|
|
@@ -2189,42 +2196,34 @@ function __wbg_get_imports() {
|
|
|
2189
2196
|
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
2190
2197
|
takeObject(arg0);
|
|
2191
2198
|
};
|
|
2192
|
-
imports.wbg.__wbg_wasmblockchain_new = function(arg0) {
|
|
2193
|
-
const ret = WasmBlockchain.__wrap(arg0);
|
|
2194
|
-
return addHeapObject(ret);
|
|
2195
|
-
};
|
|
2196
2199
|
imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
2197
2200
|
const ret = BigInt.asUintN(64, arg0);
|
|
2198
2201
|
return addHeapObject(ret);
|
|
2199
2202
|
};
|
|
2200
|
-
imports.wbg.__wbg_wasmwalletslip_new = function(arg0) {
|
|
2201
|
-
const ret = WasmWalletSlip.__wrap(arg0);
|
|
2202
|
-
return addHeapObject(ret);
|
|
2203
|
-
};
|
|
2204
|
-
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
2205
|
-
const ret = getStringFromWasm0(arg0, arg1);
|
|
2206
|
-
return addHeapObject(ret);
|
|
2207
|
-
};
|
|
2208
|
-
imports.wbg.__wbg_wasmslip_new = function(arg0) {
|
|
2209
|
-
const ret = WasmSlip.__wrap(arg0);
|
|
2210
|
-
return addHeapObject(ret);
|
|
2211
|
-
};
|
|
2212
2203
|
imports.wbg.__wbg_wasmtransaction_new = function(arg0) {
|
|
2213
2204
|
const ret = WasmTransaction.__wrap(arg0);
|
|
2214
2205
|
return addHeapObject(ret);
|
|
2215
2206
|
};
|
|
2216
|
-
imports.wbg.__wbg_wasmbalancesnapshot_new = function(arg0) {
|
|
2217
|
-
const ret = WasmBalanceSnapshot.__wrap(arg0);
|
|
2218
|
-
return addHeapObject(ret);
|
|
2219
|
-
};
|
|
2220
2207
|
imports.wbg.__wbg_wasmpeer_new = function(arg0) {
|
|
2221
2208
|
const ret = WasmPeer.__wrap(arg0);
|
|
2222
2209
|
return addHeapObject(ret);
|
|
2223
2210
|
};
|
|
2211
|
+
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
2212
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
2213
|
+
return addHeapObject(ret);
|
|
2214
|
+
};
|
|
2224
2215
|
imports.wbg.__wbg_wasmblock_new = function(arg0) {
|
|
2225
2216
|
const ret = WasmBlock.__wrap(arg0);
|
|
2226
2217
|
return addHeapObject(ret);
|
|
2227
2218
|
};
|
|
2219
|
+
imports.wbg.__wbg_wasmwallet_new = function(arg0) {
|
|
2220
|
+
const ret = WasmWallet.__wrap(arg0);
|
|
2221
|
+
return addHeapObject(ret);
|
|
2222
|
+
};
|
|
2223
|
+
imports.wbg.__wbg_wasmwalletslip_new = function(arg0) {
|
|
2224
|
+
const ret = WasmWalletSlip.__wrap(arg0);
|
|
2225
|
+
return addHeapObject(ret);
|
|
2226
|
+
};
|
|
2228
2227
|
imports.wbg.__wbindgen_is_falsy = function(arg0) {
|
|
2229
2228
|
const ret = !getObject(arg0);
|
|
2230
2229
|
return ret;
|
|
@@ -2237,8 +2236,16 @@ function __wbg_get_imports() {
|
|
|
2237
2236
|
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
2238
2237
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
2239
2238
|
};
|
|
2240
|
-
imports.wbg.
|
|
2241
|
-
const ret =
|
|
2239
|
+
imports.wbg.__wbg_wasmblockchain_new = function(arg0) {
|
|
2240
|
+
const ret = WasmBlockchain.__wrap(arg0);
|
|
2241
|
+
return addHeapObject(ret);
|
|
2242
|
+
};
|
|
2243
|
+
imports.wbg.__wbg_wasmbalancesnapshot_new = function(arg0) {
|
|
2244
|
+
const ret = WasmBalanceSnapshot.__wrap(arg0);
|
|
2245
|
+
return addHeapObject(ret);
|
|
2246
|
+
};
|
|
2247
|
+
imports.wbg.__wbg_wasmslip_new = function(arg0) {
|
|
2248
|
+
const ret = WasmSlip.__wrap(arg0);
|
|
2242
2249
|
return addHeapObject(ret);
|
|
2243
2250
|
};
|
|
2244
2251
|
imports.wbg.__wbg_wasmpeerservice_new = function(arg0) {
|
|
@@ -2249,21 +2256,33 @@ function __wbg_get_imports() {
|
|
|
2249
2256
|
const ret = WasmBlockPayout.__wrap(arg0);
|
|
2250
2257
|
return addHeapObject(ret);
|
|
2251
2258
|
};
|
|
2252
|
-
imports.wbg.
|
|
2259
|
+
imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
|
|
2260
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
2261
|
+
return addHeapObject(ret);
|
|
2262
|
+
};
|
|
2263
|
+
imports.wbg.__wbg_wasmconsensusvalues_new = function(arg0) {
|
|
2264
|
+
const ret = WasmConsensusValues.__wrap(arg0);
|
|
2265
|
+
return addHeapObject(ret);
|
|
2266
|
+
};
|
|
2267
|
+
imports.wbg.__wbg_wasmhop_new = function(arg0) {
|
|
2268
|
+
const ret = WasmHop.__wrap(arg0);
|
|
2269
|
+
return addHeapObject(ret);
|
|
2270
|
+
};
|
|
2271
|
+
imports.wbg.__wbg_sendmessage_b34440c987e83297 = function(arg0, arg1) {
|
|
2253
2272
|
MsgHandler.send_message(takeObject(arg0), getObject(arg1));
|
|
2254
2273
|
};
|
|
2255
|
-
imports.wbg.
|
|
2274
|
+
imports.wbg.__wbg_sendmessagetoall_d3973f11029a95ef = function(arg0, arg1) {
|
|
2256
2275
|
MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
|
|
2257
2276
|
};
|
|
2258
|
-
imports.wbg.
|
|
2277
|
+
imports.wbg.__wbg_connecttopeer_77a57e46e75f2ea4 = function() { return handleError(function (arg0) {
|
|
2259
2278
|
const ret = MsgHandler.connect_to_peer(takeObject(arg0));
|
|
2260
2279
|
return addHeapObject(ret);
|
|
2261
2280
|
}, arguments) };
|
|
2262
|
-
imports.wbg.
|
|
2281
|
+
imports.wbg.__wbg_disconnectfrompeer_613a42b148447b01 = function() { return handleError(function (arg0) {
|
|
2263
2282
|
const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
|
|
2264
2283
|
return addHeapObject(ret);
|
|
2265
2284
|
}, arguments) };
|
|
2266
|
-
imports.wbg.
|
|
2285
|
+
imports.wbg.__wbg_fetchblockfrompeer_c727f614897a3fb8 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
2267
2286
|
let deferred0_0;
|
|
2268
2287
|
let deferred0_1;
|
|
2269
2288
|
try {
|
|
@@ -2275,7 +2294,7 @@ function __wbg_get_imports() {
|
|
|
2275
2294
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2276
2295
|
}
|
|
2277
2296
|
}, arguments) };
|
|
2278
|
-
imports.wbg.
|
|
2297
|
+
imports.wbg.__wbg_writevalue_0123f1894288573b = function(arg0, arg1, arg2) {
|
|
2279
2298
|
let deferred0_0;
|
|
2280
2299
|
let deferred0_1;
|
|
2281
2300
|
try {
|
|
@@ -2286,7 +2305,7 @@ function __wbg_get_imports() {
|
|
|
2286
2305
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2287
2306
|
}
|
|
2288
2307
|
};
|
|
2289
|
-
imports.wbg.
|
|
2308
|
+
imports.wbg.__wbg_readvalue_641beabce072d837 = function() { return handleError(function (arg0, arg1) {
|
|
2290
2309
|
let deferred0_0;
|
|
2291
2310
|
let deferred0_1;
|
|
2292
2311
|
try {
|
|
@@ -2298,11 +2317,11 @@ function __wbg_get_imports() {
|
|
|
2298
2317
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2299
2318
|
}
|
|
2300
2319
|
}, arguments) };
|
|
2301
|
-
imports.wbg.
|
|
2320
|
+
imports.wbg.__wbg_loadblockfilelist_a4c4f3da66f06458 = function() { return handleError(function () {
|
|
2302
2321
|
const ret = MsgHandler.load_block_file_list();
|
|
2303
2322
|
return addHeapObject(ret);
|
|
2304
2323
|
}, arguments) };
|
|
2305
|
-
imports.wbg.
|
|
2324
|
+
imports.wbg.__wbg_isexistingfile_9cf2bdb8e61fe222 = function() { return handleError(function (arg0, arg1) {
|
|
2306
2325
|
let deferred0_0;
|
|
2307
2326
|
let deferred0_1;
|
|
2308
2327
|
try {
|
|
@@ -2314,7 +2333,7 @@ function __wbg_get_imports() {
|
|
|
2314
2333
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2315
2334
|
}
|
|
2316
2335
|
}, arguments) };
|
|
2317
|
-
imports.wbg.
|
|
2336
|
+
imports.wbg.__wbg_removevalue_33f3e1e4e16baa07 = function() { return handleError(function (arg0, arg1) {
|
|
2318
2337
|
let deferred0_0;
|
|
2319
2338
|
let deferred0_1;
|
|
2320
2339
|
try {
|
|
@@ -2326,16 +2345,16 @@ function __wbg_get_imports() {
|
|
|
2326
2345
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2327
2346
|
}
|
|
2328
2347
|
}, arguments) };
|
|
2329
|
-
imports.wbg.
|
|
2348
|
+
imports.wbg.__wbg_processapicall_c4967bfc39420002 = function(arg0, arg1, arg2) {
|
|
2330
2349
|
MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
|
|
2331
2350
|
};
|
|
2332
|
-
imports.wbg.
|
|
2351
|
+
imports.wbg.__wbg_processapisuccess_58c334f93c7a8ad0 = function(arg0, arg1, arg2) {
|
|
2333
2352
|
MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
|
|
2334
2353
|
};
|
|
2335
|
-
imports.wbg.
|
|
2354
|
+
imports.wbg.__wbg_processapierror_471f6b6bd5daf382 = function(arg0, arg1, arg2) {
|
|
2336
2355
|
MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
|
|
2337
2356
|
};
|
|
2338
|
-
imports.wbg.
|
|
2357
|
+
imports.wbg.__wbg_sendinterfaceevent_cb14835bdb678fd8 = function(arg0, arg1, arg2) {
|
|
2339
2358
|
let deferred0_0;
|
|
2340
2359
|
let deferred0_1;
|
|
2341
2360
|
try {
|
|
@@ -2346,7 +2365,7 @@ function __wbg_get_imports() {
|
|
|
2346
2365
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2347
2366
|
}
|
|
2348
2367
|
};
|
|
2349
|
-
imports.wbg.
|
|
2368
|
+
imports.wbg.__wbg_sendblocksuccess_caaac2d97dcd9606 = function(arg0, arg1, arg2) {
|
|
2350
2369
|
let deferred0_0;
|
|
2351
2370
|
let deferred0_1;
|
|
2352
2371
|
try {
|
|
@@ -2357,16 +2376,16 @@ function __wbg_get_imports() {
|
|
|
2357
2376
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2358
2377
|
}
|
|
2359
2378
|
};
|
|
2360
|
-
imports.wbg.
|
|
2379
|
+
imports.wbg.__wbg_sendwalletupdate_f6379d3c99d9ba52 = function() {
|
|
2361
2380
|
MsgHandler.send_wallet_update();
|
|
2362
2381
|
};
|
|
2363
|
-
imports.wbg.
|
|
2382
|
+
imports.wbg.__wbg_savewallet_ce93ac356c7dd793 = function() {
|
|
2364
2383
|
MsgHandler.save_wallet();
|
|
2365
2384
|
};
|
|
2366
|
-
imports.wbg.
|
|
2385
|
+
imports.wbg.__wbg_loadwallet_ab92e4d554fa0563 = function() {
|
|
2367
2386
|
MsgHandler.load_wallet();
|
|
2368
2387
|
};
|
|
2369
|
-
imports.wbg.
|
|
2388
|
+
imports.wbg.__wbg_getmyservices_ef3b0cdba9e0ae88 = function() {
|
|
2370
2389
|
const ret = MsgHandler.get_my_services();
|
|
2371
2390
|
_assertClass(ret, WasmPeerServiceList);
|
|
2372
2391
|
var ptr1 = ret.__destroy_into_raw();
|
|
@@ -2385,18 +2404,6 @@ function __wbg_get_imports() {
|
|
|
2385
2404
|
const ret = getObject(arg0) in getObject(arg1);
|
|
2386
2405
|
return ret;
|
|
2387
2406
|
};
|
|
2388
|
-
imports.wbg.__wbg_wasmconsensusvalues_new = function(arg0) {
|
|
2389
|
-
const ret = WasmConsensusValues.__wrap(arg0);
|
|
2390
|
-
return addHeapObject(ret);
|
|
2391
|
-
};
|
|
2392
|
-
imports.wbg.__wbg_wasmhop_new = function(arg0) {
|
|
2393
|
-
const ret = WasmHop.__wrap(arg0);
|
|
2394
|
-
return addHeapObject(ret);
|
|
2395
|
-
};
|
|
2396
|
-
imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
|
|
2397
|
-
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
2398
|
-
return addHeapObject(ret);
|
|
2399
|
-
};
|
|
2400
2407
|
imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
|
|
2401
2408
|
const ret = getObject(arg0);
|
|
2402
2409
|
return addHeapObject(ret);
|
|
@@ -2594,7 +2601,7 @@ function __wbg_get_imports() {
|
|
|
2594
2601
|
const a = state0.a;
|
|
2595
2602
|
state0.a = 0;
|
|
2596
2603
|
try {
|
|
2597
|
-
return
|
|
2604
|
+
return __wbg_adapter_370(a, state0.b, arg0, arg1);
|
|
2598
2605
|
} finally {
|
|
2599
2606
|
state0.a = a;
|
|
2600
2607
|
}
|
|
@@ -2672,8 +2679,8 @@ function __wbg_get_imports() {
|
|
|
2672
2679
|
const ret = wasm.memory;
|
|
2673
2680
|
return addHeapObject(ret);
|
|
2674
2681
|
};
|
|
2675
|
-
imports.wbg.
|
|
2676
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2682
|
+
imports.wbg.__wbindgen_closure_wrapper1068 = function(arg0, arg1, arg2) {
|
|
2683
|
+
const ret = makeMutClosure(arg0, arg1, 337, __wbg_adapter_40);
|
|
2677
2684
|
return addHeapObject(ret);
|
|
2678
2685
|
};
|
|
2679
2686
|
|
package/pkg/web/index_bg.wasm
CHANGED
|
Binary file
|
|
@@ -42,6 +42,7 @@ export function wasmblockchain_get_lowest_acceptable_timestamp(a: number): numbe
|
|
|
42
42
|
export function wasmblockchain_get_lowest_acceptable_block_hash(a: number): number;
|
|
43
43
|
export function wasmblockchain_get_lowest_acceptable_block_id(a: number): number;
|
|
44
44
|
export function wasmblockchain_get_latest_block_id(a: number): number;
|
|
45
|
+
export function wasmblockchain_get_fork_id(a: number): number;
|
|
45
46
|
export function wasmblockchain_get_longest_chain_hash_at_id(a: number, b: number): number;
|
|
46
47
|
export function wasmblockchain_get_hashes_at_id(a: number, b: number): number;
|
|
47
48
|
export function __wbg_wasmpeer_free(a: number): void;
|
|
@@ -84,6 +85,22 @@ export function wasmblockpayout_miner_payout(a: number): number;
|
|
|
84
85
|
export function wasmblockpayout_router_payout(a: number): number;
|
|
85
86
|
export function wasmblockpayout_staking_treasury(a: number): number;
|
|
86
87
|
export function wasmblockpayout_random_number(a: number): number;
|
|
88
|
+
export function __wbg_wasmbalancesnapshot_free(a: number): void;
|
|
89
|
+
export function wasmbalancesnapshot_get_file_name(a: number): number;
|
|
90
|
+
export function wasmbalancesnapshot_get_entries(a: number): number;
|
|
91
|
+
export function wasmbalancesnapshot_from_string(a: number, b: number): void;
|
|
92
|
+
export function wasmbalancesnapshot_to_string(a: number): number;
|
|
93
|
+
export function __wbg_wasmpeerservicelist_free(a: number): void;
|
|
94
|
+
export function __wbg_wasmpeerservice_free(a: number): void;
|
|
95
|
+
export function wasmpeerservice_new(): number;
|
|
96
|
+
export function wasmpeerservice_set_service(a: number, b: number): void;
|
|
97
|
+
export function wasmpeerservice_get_service(a: number): number;
|
|
98
|
+
export function wasmpeerservice_set_name(a: number, b: number): void;
|
|
99
|
+
export function wasmpeerservice_get_name(a: number): number;
|
|
100
|
+
export function wasmpeerservice_set_domain(a: number, b: number): void;
|
|
101
|
+
export function wasmpeerservice_get_domain(a: number): number;
|
|
102
|
+
export function wasmpeerservicelist_push(a: number, b: number): void;
|
|
103
|
+
export function wasmpeerservicelist_new(): number;
|
|
87
104
|
export function __wbg_wasmwallet_free(a: number): void;
|
|
88
105
|
export function __wbg_wasmwalletslip_free(a: number): void;
|
|
89
106
|
export function wasmwallet_save(a: number): number;
|
|
@@ -198,22 +215,6 @@ export function wasmtransaction_set_type(a: number, b: number): void;
|
|
|
198
215
|
export function wasmtransaction_total_fees(a: number): number;
|
|
199
216
|
export function wasmtransaction_serialize(a: number): number;
|
|
200
217
|
export function wasmtransaction_deserialize(a: number, b: number): void;
|
|
201
|
-
export function __wbg_wasmbalancesnapshot_free(a: number): void;
|
|
202
|
-
export function wasmbalancesnapshot_get_file_name(a: number): number;
|
|
203
|
-
export function wasmbalancesnapshot_get_entries(a: number): number;
|
|
204
|
-
export function wasmbalancesnapshot_from_string(a: number, b: number): void;
|
|
205
|
-
export function wasmbalancesnapshot_to_string(a: number): number;
|
|
206
|
-
export function __wbg_wasmpeerservicelist_free(a: number): void;
|
|
207
|
-
export function __wbg_wasmpeerservice_free(a: number): void;
|
|
208
|
-
export function wasmpeerservice_new(): number;
|
|
209
|
-
export function wasmpeerservice_set_service(a: number, b: number): void;
|
|
210
|
-
export function wasmpeerservice_get_service(a: number): number;
|
|
211
|
-
export function wasmpeerservice_set_name(a: number, b: number): void;
|
|
212
|
-
export function wasmpeerservice_get_name(a: number): number;
|
|
213
|
-
export function wasmpeerservice_set_domain(a: number, b: number): void;
|
|
214
|
-
export function wasmpeerservice_get_domain(a: number): number;
|
|
215
|
-
export function wasmpeerservicelist_push(a: number, b: number): void;
|
|
216
|
-
export function wasmpeerservicelist_new(): number;
|
|
217
218
|
export function rustsecp256k1_v0_9_0_context_create(a: number): number;
|
|
218
219
|
export function rustsecp256k1_v0_9_0_context_destroy(a: number): void;
|
|
219
220
|
export function rustsecp256k1_v0_9_0_default_illegal_callback_fn(a: number, b: number): void;
|
package/pkg/web/package.json
CHANGED
|
File without changes
|
|
File without changes
|