saito-wasm 0.1.44 → 0.1.46
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 +13 -5
- package/pkg/node/index.js +88 -62
- package/pkg/node/index_bg.wasm +0 -0
- package/pkg/node/index_bg.wasm.d.ts +92 -91
- package/pkg/node/package.json +1 -1
- package/pkg/web/index.d.ts +105 -96
- package/pkg/web/index.js +83 -60
- package/pkg/web/index_bg.wasm +0 -0
- package/pkg/web/index_bg.wasm.d.ts +92 -91
- package/pkg/web/package.json +1 -1
- /package/pkg/node/snippets/{saito-wasm-fedb6ef7f38dc051 → saito-wasm-8c18e4f881e1872e}/js/msg_handler.js +0 -0
- /package/pkg/web/snippets/{saito-wasm-fedb6ef7f38dc051 → saito-wasm-8c18e4f881e1872e}/js/msg_handler.js +0 -0
package/Cargo.toml
CHANGED
package/package.json
CHANGED
package/pkg/node/index.d.ts
CHANGED
|
@@ -16,6 +16,14 @@ export function initialize(json: string, private_key: string, log_level_num: num
|
|
|
16
16
|
*/
|
|
17
17
|
export function create_transaction(public_key: string, amount: bigint, fee: bigint, force_merge: boolean): Promise<WasmTransaction>;
|
|
18
18
|
/**
|
|
19
|
+
* @param {Array<any>} public_keys
|
|
20
|
+
* @param {BigUint64Array} amounts
|
|
21
|
+
* @param {bigint} fee
|
|
22
|
+
* @param {boolean} force_merge
|
|
23
|
+
* @returns {Promise<WasmTransaction>}
|
|
24
|
+
*/
|
|
25
|
+
export function create_transaction_with_multiple_payments(public_keys: Array<any>, amounts: BigUint64Array, fee: bigint, force_merge: boolean): Promise<WasmTransaction>;
|
|
26
|
+
/**
|
|
19
27
|
* @returns {Promise<string>}
|
|
20
28
|
*/
|
|
21
29
|
export function get_latest_block_hash(): Promise<string>;
|
|
@@ -49,11 +57,6 @@ export function process_msg_buffer_from_peer(buffer: Uint8Array, peer_index: big
|
|
|
49
57
|
*/
|
|
50
58
|
export function process_fetched_block(buffer: Uint8Array, hash: Uint8Array, peer_index: bigint): Promise<void>;
|
|
51
59
|
/**
|
|
52
|
-
* @param {Uint8Array} hash
|
|
53
|
-
* @returns {Promise<void>}
|
|
54
|
-
*/
|
|
55
|
-
export function process_failed_block_fetch(hash: Uint8Array): Promise<void>;
|
|
56
|
-
/**
|
|
57
60
|
* @param {bigint} duration_in_ms
|
|
58
61
|
* @returns {Promise<void>}
|
|
59
62
|
*/
|
|
@@ -155,6 +158,11 @@ export function get_mempool_txs(): Promise<Array<any>>;
|
|
|
155
158
|
*/
|
|
156
159
|
export function set_wallet_version(major: number, minor: number, patch: number): Promise<void>;
|
|
157
160
|
/**
|
|
161
|
+
* @param {string} key
|
|
162
|
+
* @returns {boolean}
|
|
163
|
+
*/
|
|
164
|
+
export function is_valid_public_key(key: string): boolean;
|
|
165
|
+
/**
|
|
158
166
|
*/
|
|
159
167
|
export class SaitoWasm {
|
|
160
168
|
free(): void;
|
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-8c18e4f881e1872e/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) {
|
|
@@ -257,6 +257,18 @@ module.exports.create_transaction = function(public_key, amount, fee, force_merg
|
|
|
257
257
|
return takeObject(ret);
|
|
258
258
|
};
|
|
259
259
|
|
|
260
|
+
/**
|
|
261
|
+
* @param {Array<any>} public_keys
|
|
262
|
+
* @param {BigUint64Array} amounts
|
|
263
|
+
* @param {bigint} fee
|
|
264
|
+
* @param {boolean} force_merge
|
|
265
|
+
* @returns {Promise<WasmTransaction>}
|
|
266
|
+
*/
|
|
267
|
+
module.exports.create_transaction_with_multiple_payments = function(public_keys, amounts, fee, force_merge) {
|
|
268
|
+
const ret = wasm.create_transaction_with_multiple_payments(addHeapObject(public_keys), addHeapObject(amounts), fee, force_merge);
|
|
269
|
+
return takeObject(ret);
|
|
270
|
+
};
|
|
271
|
+
|
|
260
272
|
/**
|
|
261
273
|
* @returns {Promise<string>}
|
|
262
274
|
*/
|
|
@@ -314,15 +326,6 @@ module.exports.process_fetched_block = function(buffer, hash, peer_index) {
|
|
|
314
326
|
return takeObject(ret);
|
|
315
327
|
};
|
|
316
328
|
|
|
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
329
|
/**
|
|
327
330
|
* @param {bigint} duration_in_ms
|
|
328
331
|
* @returns {Promise<void>}
|
|
@@ -525,6 +528,15 @@ module.exports.set_wallet_version = function(major, minor, patch) {
|
|
|
525
528
|
return takeObject(ret);
|
|
526
529
|
};
|
|
527
530
|
|
|
531
|
+
/**
|
|
532
|
+
* @param {string} key
|
|
533
|
+
* @returns {boolean}
|
|
534
|
+
*/
|
|
535
|
+
module.exports.is_valid_public_key = function(key) {
|
|
536
|
+
const ret = wasm.is_valid_public_key(addHeapObject(key));
|
|
537
|
+
return ret !== 0;
|
|
538
|
+
};
|
|
539
|
+
|
|
528
540
|
function handleError(f, args) {
|
|
529
541
|
try {
|
|
530
542
|
return f.apply(this, args);
|
|
@@ -532,8 +544,8 @@ function handleError(f, args) {
|
|
|
532
544
|
wasm.__wbindgen_exn_store(addHeapObject(e));
|
|
533
545
|
}
|
|
534
546
|
}
|
|
535
|
-
function
|
|
536
|
-
wasm.
|
|
547
|
+
function __wbg_adapter_369(arg0, arg1, arg2, arg3) {
|
|
548
|
+
wasm.wasm_bindgen__convert__closures__invoke2_mut__h042dde47a1d77254(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
537
549
|
}
|
|
538
550
|
|
|
539
551
|
const SaitoWasmFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -2130,28 +2142,28 @@ module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
|
2130
2142
|
return addHeapObject(ret);
|
|
2131
2143
|
};
|
|
2132
2144
|
|
|
2133
|
-
module.exports.
|
|
2134
|
-
const ret =
|
|
2145
|
+
module.exports.__wbg_wasmwalletslip_new = function(arg0) {
|
|
2146
|
+
const ret = WasmWalletSlip.__wrap(arg0);
|
|
2135
2147
|
return addHeapObject(ret);
|
|
2136
2148
|
};
|
|
2137
2149
|
|
|
2138
|
-
module.exports.
|
|
2139
|
-
const ret =
|
|
2150
|
+
module.exports.__wbg_wasmwallet_new = function(arg0) {
|
|
2151
|
+
const ret = WasmWallet.__wrap(arg0);
|
|
2140
2152
|
return addHeapObject(ret);
|
|
2141
2153
|
};
|
|
2142
2154
|
|
|
2143
|
-
module.exports.
|
|
2144
|
-
const ret =
|
|
2155
|
+
module.exports.__wbg_wasmblockchain_new = function(arg0) {
|
|
2156
|
+
const ret = WasmBlockchain.__wrap(arg0);
|
|
2145
2157
|
return addHeapObject(ret);
|
|
2146
2158
|
};
|
|
2147
2159
|
|
|
2148
|
-
module.exports.
|
|
2149
|
-
const ret =
|
|
2160
|
+
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
2161
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
2150
2162
|
return addHeapObject(ret);
|
|
2151
2163
|
};
|
|
2152
2164
|
|
|
2153
|
-
module.exports.
|
|
2154
|
-
const ret =
|
|
2165
|
+
module.exports.__wbg_wasmslip_new = function(arg0) {
|
|
2166
|
+
const ret = WasmSlip.__wrap(arg0);
|
|
2155
2167
|
return addHeapObject(ret);
|
|
2156
2168
|
};
|
|
2157
2169
|
|
|
@@ -2160,18 +2172,8 @@ module.exports.__wbg_wasmtransaction_new = function(arg0) {
|
|
|
2160
2172
|
return addHeapObject(ret);
|
|
2161
2173
|
};
|
|
2162
2174
|
|
|
2163
|
-
module.exports.
|
|
2164
|
-
const ret =
|
|
2165
|
-
return addHeapObject(ret);
|
|
2166
|
-
};
|
|
2167
|
-
|
|
2168
|
-
module.exports.__wbg_wasmwalletslip_new = function(arg0) {
|
|
2169
|
-
const ret = WasmWalletSlip.__wrap(arg0);
|
|
2170
|
-
return addHeapObject(ret);
|
|
2171
|
-
};
|
|
2172
|
-
|
|
2173
|
-
module.exports.__wbg_wasmblockchain_new = function(arg0) {
|
|
2174
|
-
const ret = WasmBlockchain.__wrap(arg0);
|
|
2175
|
+
module.exports.__wbg_wasmblock_new = function(arg0) {
|
|
2176
|
+
const ret = WasmBlock.__wrap(arg0);
|
|
2175
2177
|
return addHeapObject(ret);
|
|
2176
2178
|
};
|
|
2177
2179
|
|
|
@@ -2189,13 +2191,13 @@ module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
|
2189
2191
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
2190
2192
|
};
|
|
2191
2193
|
|
|
2192
|
-
module.exports.
|
|
2193
|
-
const ret =
|
|
2194
|
+
module.exports.__wbg_wasmpeer_new = function(arg0) {
|
|
2195
|
+
const ret = WasmPeer.__wrap(arg0);
|
|
2194
2196
|
return addHeapObject(ret);
|
|
2195
2197
|
};
|
|
2196
2198
|
|
|
2197
|
-
module.exports.
|
|
2198
|
-
const ret =
|
|
2199
|
+
module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
|
|
2200
|
+
const ret = WasmBalanceSnapshot.__wrap(arg0);
|
|
2199
2201
|
return addHeapObject(ret);
|
|
2200
2202
|
};
|
|
2201
2203
|
|
|
@@ -2209,6 +2211,16 @@ module.exports.__wbg_wasmconsensusvalues_new = function(arg0) {
|
|
|
2209
2211
|
return addHeapObject(ret);
|
|
2210
2212
|
};
|
|
2211
2213
|
|
|
2214
|
+
module.exports.__wbg_wasmpeerservice_new = function(arg0) {
|
|
2215
|
+
const ret = WasmPeerService.__wrap(arg0);
|
|
2216
|
+
return addHeapObject(ret);
|
|
2217
|
+
};
|
|
2218
|
+
|
|
2219
|
+
module.exports.__wbindgen_error_new = function(arg0, arg1) {
|
|
2220
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
2221
|
+
return addHeapObject(ret);
|
|
2222
|
+
};
|
|
2223
|
+
|
|
2212
2224
|
module.exports.__wbindgen_is_object = function(arg0) {
|
|
2213
2225
|
const val = getObject(arg0);
|
|
2214
2226
|
const ret = typeof(val) === 'object' && val !== null;
|
|
@@ -2225,25 +2237,25 @@ module.exports.__wbindgen_in = function(arg0, arg1) {
|
|
|
2225
2237
|
return ret;
|
|
2226
2238
|
};
|
|
2227
2239
|
|
|
2228
|
-
module.exports.
|
|
2240
|
+
module.exports.__wbg_sendmessage_5ad9fcfca644e52d = function(arg0, arg1) {
|
|
2229
2241
|
MsgHandler.send_message(takeObject(arg0), getObject(arg1));
|
|
2230
2242
|
};
|
|
2231
2243
|
|
|
2232
|
-
module.exports.
|
|
2244
|
+
module.exports.__wbg_sendmessagetoall_3a53e557d5a7b3f5 = function(arg0, arg1) {
|
|
2233
2245
|
MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
|
|
2234
2246
|
};
|
|
2235
2247
|
|
|
2236
|
-
module.exports.
|
|
2248
|
+
module.exports.__wbg_connecttopeer_5111d21e039c34a4 = function() { return handleError(function (arg0) {
|
|
2237
2249
|
const ret = MsgHandler.connect_to_peer(takeObject(arg0));
|
|
2238
2250
|
return addHeapObject(ret);
|
|
2239
2251
|
}, arguments) };
|
|
2240
2252
|
|
|
2241
|
-
module.exports.
|
|
2253
|
+
module.exports.__wbg_disconnectfrompeer_6147b8c175b9ff9a = function() { return handleError(function (arg0) {
|
|
2242
2254
|
const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
|
|
2243
2255
|
return addHeapObject(ret);
|
|
2244
2256
|
}, arguments) };
|
|
2245
2257
|
|
|
2246
|
-
module.exports.
|
|
2258
|
+
module.exports.__wbg_fetchblockfrompeer_9211aa1fb219db5f = function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
2247
2259
|
let deferred0_0;
|
|
2248
2260
|
let deferred0_1;
|
|
2249
2261
|
try {
|
|
@@ -2256,7 +2268,7 @@ module.exports.__wbg_fetchblockfrompeer_41b27c4db5a88aff = function() { return h
|
|
|
2256
2268
|
}
|
|
2257
2269
|
}, arguments) };
|
|
2258
2270
|
|
|
2259
|
-
module.exports.
|
|
2271
|
+
module.exports.__wbg_writevalue_4fca84ab33c90cf3 = function(arg0, arg1, arg2) {
|
|
2260
2272
|
let deferred0_0;
|
|
2261
2273
|
let deferred0_1;
|
|
2262
2274
|
try {
|
|
@@ -2268,7 +2280,7 @@ module.exports.__wbg_writevalue_d74438aa544d2bb7 = function(arg0, arg1, arg2) {
|
|
|
2268
2280
|
}
|
|
2269
2281
|
};
|
|
2270
2282
|
|
|
2271
|
-
module.exports.
|
|
2283
|
+
module.exports.__wbg_readvalue_d087b44f36774ed7 = function() { return handleError(function (arg0, arg1) {
|
|
2272
2284
|
let deferred0_0;
|
|
2273
2285
|
let deferred0_1;
|
|
2274
2286
|
try {
|
|
@@ -2281,12 +2293,12 @@ module.exports.__wbg_readvalue_61f9a9de39915219 = function() { return handleErro
|
|
|
2281
2293
|
}
|
|
2282
2294
|
}, arguments) };
|
|
2283
2295
|
|
|
2284
|
-
module.exports.
|
|
2296
|
+
module.exports.__wbg_loadblockfilelist_8f5f845d0fa0cfdf = function() { return handleError(function () {
|
|
2285
2297
|
const ret = MsgHandler.load_block_file_list();
|
|
2286
2298
|
return addHeapObject(ret);
|
|
2287
2299
|
}, arguments) };
|
|
2288
2300
|
|
|
2289
|
-
module.exports.
|
|
2301
|
+
module.exports.__wbg_isexistingfile_209a2a6fd1e83bfc = function() { return handleError(function (arg0, arg1) {
|
|
2290
2302
|
let deferred0_0;
|
|
2291
2303
|
let deferred0_1;
|
|
2292
2304
|
try {
|
|
@@ -2299,7 +2311,7 @@ module.exports.__wbg_isexistingfile_f9fc5641114cf63c = function() { return handl
|
|
|
2299
2311
|
}
|
|
2300
2312
|
}, arguments) };
|
|
2301
2313
|
|
|
2302
|
-
module.exports.
|
|
2314
|
+
module.exports.__wbg_removevalue_152b9e3b5c25b65b = function() { return handleError(function (arg0, arg1) {
|
|
2303
2315
|
let deferred0_0;
|
|
2304
2316
|
let deferred0_1;
|
|
2305
2317
|
try {
|
|
@@ -2312,7 +2324,7 @@ module.exports.__wbg_removevalue_1090f58c927a2071 = function() { return handleEr
|
|
|
2312
2324
|
}
|
|
2313
2325
|
}, arguments) };
|
|
2314
2326
|
|
|
2315
|
-
module.exports.
|
|
2327
|
+
module.exports.__wbg_ensureblockdirectoryexists_61aa09babd711ebd = function() { return handleError(function (arg0, arg1) {
|
|
2316
2328
|
let deferred0_0;
|
|
2317
2329
|
let deferred0_1;
|
|
2318
2330
|
try {
|
|
@@ -2324,19 +2336,19 @@ module.exports.__wbg_ensureblockdirectoryexists_765b793dd19f9c1b = function() {
|
|
|
2324
2336
|
}
|
|
2325
2337
|
}, arguments) };
|
|
2326
2338
|
|
|
2327
|
-
module.exports.
|
|
2339
|
+
module.exports.__wbg_processapicall_5837c3c1eb77b6ab = function(arg0, arg1, arg2) {
|
|
2328
2340
|
MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
|
|
2329
2341
|
};
|
|
2330
2342
|
|
|
2331
|
-
module.exports.
|
|
2343
|
+
module.exports.__wbg_processapisuccess_d7b709a0dbbcdf97 = function(arg0, arg1, arg2) {
|
|
2332
2344
|
MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
|
|
2333
2345
|
};
|
|
2334
2346
|
|
|
2335
|
-
module.exports.
|
|
2347
|
+
module.exports.__wbg_processapierror_1d2ecb7b9c54f5fd = function(arg0, arg1, arg2) {
|
|
2336
2348
|
MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
|
|
2337
2349
|
};
|
|
2338
2350
|
|
|
2339
|
-
module.exports.
|
|
2351
|
+
module.exports.__wbg_sendinterfaceevent_6970a814a76481f5 = function(arg0, arg1, arg2) {
|
|
2340
2352
|
let deferred0_0;
|
|
2341
2353
|
let deferred0_1;
|
|
2342
2354
|
try {
|
|
@@ -2348,7 +2360,7 @@ module.exports.__wbg_sendinterfaceevent_d91c674d658a5ed7 = function(arg0, arg1,
|
|
|
2348
2360
|
}
|
|
2349
2361
|
};
|
|
2350
2362
|
|
|
2351
|
-
module.exports.
|
|
2363
|
+
module.exports.__wbg_sendblocksuccess_f846a1f1e943b704 = function(arg0, arg1, arg2) {
|
|
2352
2364
|
let deferred0_0;
|
|
2353
2365
|
let deferred0_1;
|
|
2354
2366
|
try {
|
|
@@ -2360,11 +2372,11 @@ module.exports.__wbg_sendblocksuccess_33fbbf5e82ec047c = function(arg0, arg1, ar
|
|
|
2360
2372
|
}
|
|
2361
2373
|
};
|
|
2362
2374
|
|
|
2363
|
-
module.exports.
|
|
2375
|
+
module.exports.__wbg_sendwalletupdate_d7adc771b9b0d982 = function() {
|
|
2364
2376
|
MsgHandler.send_wallet_update();
|
|
2365
2377
|
};
|
|
2366
2378
|
|
|
2367
|
-
module.exports.
|
|
2379
|
+
module.exports.__wbg_sendnewversionalert_ba100fad975d0e8d = function(arg0, arg1, arg2) {
|
|
2368
2380
|
let deferred0_0;
|
|
2369
2381
|
let deferred0_1;
|
|
2370
2382
|
try {
|
|
@@ -2376,15 +2388,15 @@ module.exports.__wbg_sendnewversionalert_fdeae65b17d57a78 = function(arg0, arg1,
|
|
|
2376
2388
|
}
|
|
2377
2389
|
};
|
|
2378
2390
|
|
|
2379
|
-
module.exports.
|
|
2391
|
+
module.exports.__wbg_savewallet_6379efcc479145ec = function() {
|
|
2380
2392
|
MsgHandler.save_wallet();
|
|
2381
2393
|
};
|
|
2382
2394
|
|
|
2383
|
-
module.exports.
|
|
2395
|
+
module.exports.__wbg_loadwallet_f998f6f5e3d90b1e = function() {
|
|
2384
2396
|
MsgHandler.load_wallet();
|
|
2385
2397
|
};
|
|
2386
2398
|
|
|
2387
|
-
module.exports.
|
|
2399
|
+
module.exports.__wbg_getmyservices_4705725093cf9d12 = function() {
|
|
2388
2400
|
const ret = MsgHandler.get_my_services();
|
|
2389
2401
|
_assertClass(ret, WasmPeerServiceList);
|
|
2390
2402
|
var ptr1 = ret.__destroy_into_raw();
|
|
@@ -2643,7 +2655,7 @@ module.exports.__wbg_new_81740750da40724f = function(arg0, arg1) {
|
|
|
2643
2655
|
const a = state0.a;
|
|
2644
2656
|
state0.a = 0;
|
|
2645
2657
|
try {
|
|
2646
|
-
return
|
|
2658
|
+
return __wbg_adapter_369(a, state0.b, arg0, arg1);
|
|
2647
2659
|
} finally {
|
|
2648
2660
|
state0.a = a;
|
|
2649
2661
|
}
|
|
@@ -2689,6 +2701,20 @@ module.exports.__wbg_length_c20a40f15020d68a = function(arg0) {
|
|
|
2689
2701
|
return ret;
|
|
2690
2702
|
};
|
|
2691
2703
|
|
|
2704
|
+
module.exports.__wbg_new_5b2a2842270c66e6 = function(arg0) {
|
|
2705
|
+
const ret = new BigUint64Array(getObject(arg0));
|
|
2706
|
+
return addHeapObject(ret);
|
|
2707
|
+
};
|
|
2708
|
+
|
|
2709
|
+
module.exports.__wbg_set_dc7aa8fdca321349 = function(arg0, arg1, arg2) {
|
|
2710
|
+
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
2711
|
+
};
|
|
2712
|
+
|
|
2713
|
+
module.exports.__wbg_length_a641162bc8055216 = function(arg0) {
|
|
2714
|
+
const ret = getObject(arg0).length;
|
|
2715
|
+
return ret;
|
|
2716
|
+
};
|
|
2717
|
+
|
|
2692
2718
|
module.exports.__wbg_instanceof_Uint8Array_2b3bbecd033d19f6 = function(arg0) {
|
|
2693
2719
|
let result;
|
|
2694
2720
|
try {
|
|
@@ -2737,7 +2763,7 @@ module.exports.__wbindgen_memory = function() {
|
|
|
2737
2763
|
return addHeapObject(ret);
|
|
2738
2764
|
};
|
|
2739
2765
|
|
|
2740
|
-
module.exports.
|
|
2766
|
+
module.exports.__wbindgen_closure_wrapper1176 = function(arg0, arg1, arg2) {
|
|
2741
2767
|
const ret = makeMutClosure(arg0, arg1, 427, __wbg_adapter_40);
|
|
2742
2768
|
return addHeapObject(ret);
|
|
2743
2769
|
};
|
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,59 @@ 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_saitowasm_free(a: number): void;
|
|
122
|
+
export function initialize(a: number, b: number, c: number): number;
|
|
123
|
+
export function create_transaction(a: number, b: number, c: number, d: number): number;
|
|
124
|
+
export function create_transaction_with_multiple_payments(a: number, b: number, c: number, d: number): number;
|
|
125
|
+
export function get_latest_block_hash(): number;
|
|
126
|
+
export function get_block(a: number): number;
|
|
127
|
+
export function process_new_peer(a: number, b: number): number;
|
|
128
|
+
export function process_peer_disconnection(a: number): number;
|
|
129
|
+
export function process_msg_buffer_from_peer(a: number, b: number): number;
|
|
130
|
+
export function process_fetched_block(a: number, b: number, c: number): number;
|
|
131
|
+
export function process_timer_event(a: number): number;
|
|
132
|
+
export function hash(a: number): number;
|
|
133
|
+
export function sign_buffer(a: number, b: number, c: number): void;
|
|
134
|
+
export function verify_signature(a: number, b: number, c: number): number;
|
|
135
|
+
export function get_peers(): number;
|
|
136
|
+
export function get_peer(a: number): number;
|
|
137
|
+
export function get_account_slips(a: number): number;
|
|
138
|
+
export function get_balance_snapshot(a: number): number;
|
|
139
|
+
export function update_from_balance_snapshot(a: number): number;
|
|
140
|
+
export function generate_private_key(): number;
|
|
141
|
+
export function generate_public_key(a: number, b: number): void;
|
|
142
|
+
export function propagate_transaction(a: number): number;
|
|
143
|
+
export function send_api_call(a: number, b: number, c: number): number;
|
|
144
|
+
export function send_api_success(a: number, b: number, c: number): number;
|
|
145
|
+
export function send_api_error(a: number, b: number, c: number): number;
|
|
146
|
+
export function get_wallet(): number;
|
|
147
|
+
export function get_blockchain(): number;
|
|
148
|
+
export function get_mempool_txs(): number;
|
|
149
|
+
export function set_wallet_version(a: number, b: number, c: number): number;
|
|
150
|
+
export function is_valid_public_key(a: number): number;
|
|
151
|
+
export function __wbg_wasmconsensusvalues_free(a: number): void;
|
|
152
|
+
export function wasmconsensusvalues_it_num(a: number): number;
|
|
153
|
+
export function wasmconsensusvalues_fee_transaction(a: number): number;
|
|
154
|
+
export function wasmconsensusvalues_it_index(a: number): number;
|
|
155
|
+
export function wasmconsensusvalues_ft_num(a: number): number;
|
|
156
|
+
export function wasmconsensusvalues_ft_index(a: number): number;
|
|
157
|
+
export function wasmconsensusvalues_gt_index(a: number): number;
|
|
158
|
+
export function wasmconsensusvalues_total_fees(a: number): number;
|
|
159
|
+
export function wasmconsensusvalues_expected_difficulty(a: number): number;
|
|
160
|
+
export function wasmconsensusvalues_total_rebroadcast_slips(a: number): number;
|
|
161
|
+
export function wasmconsensusvalues_total_rebroadcast_nolan(a: number): number;
|
|
162
|
+
export function wasmconsensusvalues_total_rebroadcast_fees_nolan(a: number): number;
|
|
163
|
+
export function wasmconsensusvalues_total_rebroadcast_staking_payouts_nolan(a: number): number;
|
|
164
|
+
export function wasmconsensusvalues_rebroadcast_hash(a: number): number;
|
|
165
|
+
export function wasmconsensusvalues_nolan_falling_off_chain(a: number): number;
|
|
166
|
+
export function wasmconsensusvalues_avg_income(a: number): number;
|
|
155
167
|
export function __wbg_wasmtransaction_free(a: number): void;
|
|
156
168
|
export function wasmtransaction_new(): number;
|
|
157
169
|
export function wasmtransaction_signature(a: number): number;
|
|
@@ -175,37 +187,26 @@ export function wasmtransaction_set_type(a: number, b: number): void;
|
|
|
175
187
|
export function wasmtransaction_total_fees(a: number): number;
|
|
176
188
|
export function wasmtransaction_serialize(a: number): number;
|
|
177
189
|
export function wasmtransaction_deserialize(a: number, b: number): void;
|
|
190
|
+
export function __wbg_wasmblockchain_free(a: number): void;
|
|
191
|
+
export function wasmblockchain_reset(a: number): number;
|
|
192
|
+
export function wasmblockchain_get_last_block_id(a: number): number;
|
|
193
|
+
export function wasmblockchain_get_last_timestamp(a: number): number;
|
|
194
|
+
export function wasmblockchain_get_longest_chain_hash_at(a: number, b: number): number;
|
|
195
|
+
export function wasmblockchain_get_last_block_hash(a: number): number;
|
|
196
|
+
export function wasmblockchain_get_last_burnfee(a: number): number;
|
|
197
|
+
export function wasmblockchain_get_genesis_block_id(a: number): number;
|
|
198
|
+
export function wasmblockchain_get_genesis_timestamp(a: number): number;
|
|
199
|
+
export function wasmblockchain_get_lowest_acceptable_timestamp(a: number): number;
|
|
200
|
+
export function wasmblockchain_get_lowest_acceptable_block_hash(a: number): number;
|
|
201
|
+
export function wasmblockchain_get_lowest_acceptable_block_id(a: number): number;
|
|
202
|
+
export function wasmblockchain_get_latest_block_id(a: number): number;
|
|
203
|
+
export function wasmblockchain_get_fork_id(a: number): number;
|
|
204
|
+
export function wasmblockchain_get_longest_chain_hash_at_id(a: number, b: number): number;
|
|
205
|
+
export function wasmblockchain_get_hashes_at_id(a: number, b: number): number;
|
|
178
206
|
export function __wbg_wasmhop_free(a: number): void;
|
|
179
207
|
export function wasmhop_from(a: number, b: number): void;
|
|
180
208
|
export function wasmhop_sig(a: number, b: number): void;
|
|
181
209
|
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
210
|
export function rustsecp256k1_v0_9_0_context_create(a: number): number;
|
|
210
211
|
export function rustsecp256k1_v0_9_0_context_destroy(a: number): void;
|
|
211
212
|
export function rustsecp256k1_v0_9_0_default_illegal_callback_fn(a: number, b: number): void;
|
|
@@ -213,8 +214,8 @@ export function rustsecp256k1_v0_9_0_default_error_callback_fn(a: number, b: num
|
|
|
213
214
|
export function __wbindgen_malloc(a: number, b: number): number;
|
|
214
215
|
export function __wbindgen_realloc(a: number, b: number, c: number, d: number): number;
|
|
215
216
|
export const __wbindgen_export_2: WebAssembly.Table;
|
|
216
|
-
export function
|
|
217
|
+
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
218
|
export function __wbindgen_add_to_stack_pointer(a: number): number;
|
|
218
219
|
export function __wbindgen_free(a: number, b: number, c: number): void;
|
|
219
220
|
export function __wbindgen_exn_store(a: number): void;
|
|
220
|
-
export function
|
|
221
|
+
export function wasm_bindgen__convert__closures__invoke2_mut__h042dde47a1d77254(a: number, b: number, c: number, d: number): void;
|