saito-wasm 0.1.39 → 0.1.41

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "saito-wasm"
3
- version = "0.1.39"
3
+ version = "0.1.41"
4
4
  edition = "2021"
5
5
 
6
6
  # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "saito-wasm",
3
- "version": "0.1.39",
3
+ "version": "0.1.41",
4
4
  "description": "js wrappings around saito-core using wasm",
5
5
  "scripts": {
6
6
  "test": "./node_modules/.bin/jest",
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-c8fed40e8296d02c/js/msg_handler.js`);
4
+ const { MsgHandler } = require(String.raw`./snippets/saito-wasm-40c9f302152100d5/js/msg_handler.js`);
5
5
  const { TextDecoder, TextEncoder } = require(`util`);
6
6
 
7
7
  const heap = new Array(128).fill(undefined);
@@ -24,6 +24,15 @@ function takeObject(idx) {
24
24
  return ret;
25
25
  }
26
26
 
27
+ function addHeapObject(obj) {
28
+ if (heap_next === heap.length) heap.push(heap.length + 1);
29
+ const idx = heap_next;
30
+ heap_next = heap[idx];
31
+
32
+ heap[idx] = obj;
33
+ return idx;
34
+ }
35
+
27
36
  let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
28
37
 
29
38
  cachedTextDecoder.decode();
@@ -42,15 +51,6 @@ function getStringFromWasm0(ptr, len) {
42
51
  return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
43
52
  }
44
53
 
45
- function addHeapObject(obj) {
46
- if (heap_next === heap.length) heap.push(heap.length + 1);
47
- const idx = heap_next;
48
- heap_next = heap[idx];
49
-
50
- heap[idx] = obj;
51
- return idx;
52
- }
53
-
54
54
  let WASM_VECTOR_LEN = 0;
55
55
 
56
56
  let cachedTextEncoder = new TextEncoder('utf-8');
@@ -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._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h70fb60fdfe117129(arg0, arg1, addHeapObject(arg2));
228
+ wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hec565812d71bcf8d(arg0, arg1, addHeapObject(arg2));
229
229
  }
230
230
 
231
231
  function _assertClass(instance, klass) {
@@ -533,7 +533,7 @@ function handleError(f, args) {
533
533
  }
534
534
  }
535
535
  function __wbg_adapter_368(arg0, arg1, arg2, arg3) {
536
- wasm.wasm_bindgen__convert__closures__invoke2_mut__h71301b61d3510263(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
536
+ wasm.wasm_bindgen__convert__closures__invoke2_mut__h0cf221c9239c0b4c(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
537
537
  }
538
538
 
539
539
  const SaitoWasmFinalization = (typeof FinalizationRegistry === 'undefined')
@@ -2125,33 +2125,38 @@ module.exports.__wbindgen_object_drop_ref = function(arg0) {
2125
2125
  takeObject(arg0);
2126
2126
  };
2127
2127
 
2128
+ module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
2129
+ const ret = BigInt.asUintN(64, arg0);
2130
+ return addHeapObject(ret);
2131
+ };
2132
+
2128
2133
  module.exports.__wbindgen_string_new = function(arg0, arg1) {
2129
2134
  const ret = getStringFromWasm0(arg0, arg1);
2130
2135
  return addHeapObject(ret);
2131
2136
  };
2132
2137
 
2133
- module.exports.__wbg_wasmpeer_new = function(arg0) {
2134
- const ret = WasmPeer.__wrap(arg0);
2138
+ module.exports.__wbg_wasmslip_new = function(arg0) {
2139
+ const ret = WasmSlip.__wrap(arg0);
2135
2140
  return addHeapObject(ret);
2136
2141
  };
2137
2142
 
2138
- module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
2139
- const ret = BigInt.asUintN(64, arg0);
2143
+ module.exports.__wbg_wasmtransaction_new = function(arg0) {
2144
+ const ret = WasmTransaction.__wrap(arg0);
2140
2145
  return addHeapObject(ret);
2141
2146
  };
2142
2147
 
2143
- module.exports.__wbg_wasmblockchain_new = function(arg0) {
2144
- const ret = WasmBlockchain.__wrap(arg0);
2148
+ module.exports.__wbg_wasmwallet_new = function(arg0) {
2149
+ const ret = WasmWallet.__wrap(arg0);
2145
2150
  return addHeapObject(ret);
2146
2151
  };
2147
2152
 
2148
- module.exports.__wbg_wasmwalletslip_new = function(arg0) {
2149
- const ret = WasmWalletSlip.__wrap(arg0);
2153
+ module.exports.__wbg_wasmpeer_new = function(arg0) {
2154
+ const ret = WasmPeer.__wrap(arg0);
2150
2155
  return addHeapObject(ret);
2151
2156
  };
2152
2157
 
2153
- module.exports.__wbg_wasmblock_new = function(arg0) {
2154
- const ret = WasmBlock.__wrap(arg0);
2158
+ module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
2159
+ const ret = WasmBalanceSnapshot.__wrap(arg0);
2155
2160
  return addHeapObject(ret);
2156
2161
  };
2157
2162
 
@@ -2169,23 +2174,18 @@ module.exports.__wbindgen_string_get = function(arg0, arg1) {
2169
2174
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
2170
2175
  };
2171
2176
 
2172
- module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
2173
- const ret = WasmBalanceSnapshot.__wrap(arg0);
2174
- return addHeapObject(ret);
2175
- };
2176
-
2177
- module.exports.__wbg_wasmtransaction_new = function(arg0) {
2178
- const ret = WasmTransaction.__wrap(arg0);
2177
+ module.exports.__wbg_wasmblockchain_new = function(arg0) {
2178
+ const ret = WasmBlockchain.__wrap(arg0);
2179
2179
  return addHeapObject(ret);
2180
2180
  };
2181
2181
 
2182
- module.exports.__wbg_wasmslip_new = function(arg0) {
2183
- const ret = WasmSlip.__wrap(arg0);
2182
+ module.exports.__wbg_wasmblock_new = function(arg0) {
2183
+ const ret = WasmBlock.__wrap(arg0);
2184
2184
  return addHeapObject(ret);
2185
2185
  };
2186
2186
 
2187
- module.exports.__wbg_wasmwallet_new = function(arg0) {
2188
- const ret = WasmWallet.__wrap(arg0);
2187
+ module.exports.__wbg_wasmwalletslip_new = function(arg0) {
2188
+ const ret = WasmWalletSlip.__wrap(arg0);
2189
2189
  return addHeapObject(ret);
2190
2190
  };
2191
2191
 
@@ -2225,25 +2225,25 @@ module.exports.__wbindgen_in = function(arg0, arg1) {
2225
2225
  return ret;
2226
2226
  };
2227
2227
 
2228
- module.exports.__wbg_sendmessage_abb4d861c74d74b2 = function(arg0, arg1) {
2228
+ module.exports.__wbg_sendmessage_a0538d075fac7f97 = function(arg0, arg1) {
2229
2229
  MsgHandler.send_message(takeObject(arg0), getObject(arg1));
2230
2230
  };
2231
2231
 
2232
- module.exports.__wbg_sendmessagetoall_21cb143ee0cdc59c = function(arg0, arg1) {
2232
+ module.exports.__wbg_sendmessagetoall_6ebb63654acc64ba = function(arg0, arg1) {
2233
2233
  MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
2234
2234
  };
2235
2235
 
2236
- module.exports.__wbg_connecttopeer_7a5ea4193640f9c1 = function() { return handleError(function (arg0) {
2236
+ module.exports.__wbg_connecttopeer_189c065255cb49ac = function() { return handleError(function (arg0) {
2237
2237
  const ret = MsgHandler.connect_to_peer(takeObject(arg0));
2238
2238
  return addHeapObject(ret);
2239
2239
  }, arguments) };
2240
2240
 
2241
- module.exports.__wbg_disconnectfrompeer_42ffbf7853522502 = function() { return handleError(function (arg0) {
2241
+ module.exports.__wbg_disconnectfrompeer_542a1fe95005d95e = function() { return handleError(function (arg0) {
2242
2242
  const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
2243
2243
  return addHeapObject(ret);
2244
2244
  }, arguments) };
2245
2245
 
2246
- module.exports.__wbg_fetchblockfrompeer_4a1a614d3fcc4356 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
2246
+ module.exports.__wbg_fetchblockfrompeer_8269d2ad1c635af5 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
2247
2247
  let deferred0_0;
2248
2248
  let deferred0_1;
2249
2249
  try {
@@ -2256,7 +2256,7 @@ module.exports.__wbg_fetchblockfrompeer_4a1a614d3fcc4356 = function() { return h
2256
2256
  }
2257
2257
  }, arguments) };
2258
2258
 
2259
- module.exports.__wbg_writevalue_ad0a5c77c510b183 = function(arg0, arg1, arg2) {
2259
+ module.exports.__wbg_writevalue_991db9848cba0521 = function(arg0, arg1, arg2) {
2260
2260
  let deferred0_0;
2261
2261
  let deferred0_1;
2262
2262
  try {
@@ -2268,7 +2268,7 @@ module.exports.__wbg_writevalue_ad0a5c77c510b183 = function(arg0, arg1, arg2) {
2268
2268
  }
2269
2269
  };
2270
2270
 
2271
- module.exports.__wbg_ensureblockdirectoryexists_b175efb6fcf3fa5e = function() { return handleError(function (arg0, arg1) {
2271
+ module.exports.__wbg_ensureblockdirectoryexists_e52d4dab0961d5db = function() { return handleError(function (arg0, arg1) {
2272
2272
  let deferred0_0;
2273
2273
  let deferred0_1;
2274
2274
  try {
@@ -2280,7 +2280,7 @@ module.exports.__wbg_ensureblockdirectoryexists_b175efb6fcf3fa5e = function() {
2280
2280
  }
2281
2281
  }, arguments) };
2282
2282
 
2283
- module.exports.__wbg_readvalue_faf8da865d398e6e = function() { return handleError(function (arg0, arg1) {
2283
+ module.exports.__wbg_readvalue_1d63f1ef1493c3ef = function() { return handleError(function (arg0, arg1) {
2284
2284
  let deferred0_0;
2285
2285
  let deferred0_1;
2286
2286
  try {
@@ -2293,12 +2293,12 @@ module.exports.__wbg_readvalue_faf8da865d398e6e = function() { return handleErro
2293
2293
  }
2294
2294
  }, arguments) };
2295
2295
 
2296
- module.exports.__wbg_loadblockfilelist_47599afa6dd965b3 = function() { return handleError(function () {
2296
+ module.exports.__wbg_loadblockfilelist_91a7e8bab5946a15 = function() { return handleError(function () {
2297
2297
  const ret = MsgHandler.load_block_file_list();
2298
2298
  return addHeapObject(ret);
2299
2299
  }, arguments) };
2300
2300
 
2301
- module.exports.__wbg_isexistingfile_62586dfe7417575d = function() { return handleError(function (arg0, arg1) {
2301
+ module.exports.__wbg_isexistingfile_fc490ffb57774753 = function() { return handleError(function (arg0, arg1) {
2302
2302
  let deferred0_0;
2303
2303
  let deferred0_1;
2304
2304
  try {
@@ -2311,7 +2311,7 @@ module.exports.__wbg_isexistingfile_62586dfe7417575d = function() { return handl
2311
2311
  }
2312
2312
  }, arguments) };
2313
2313
 
2314
- module.exports.__wbg_removevalue_41ec31e751a169d6 = function() { return handleError(function (arg0, arg1) {
2314
+ module.exports.__wbg_removevalue_d73c801e25353475 = function() { return handleError(function (arg0, arg1) {
2315
2315
  let deferred0_0;
2316
2316
  let deferred0_1;
2317
2317
  try {
@@ -2324,19 +2324,19 @@ module.exports.__wbg_removevalue_41ec31e751a169d6 = function() { return handleEr
2324
2324
  }
2325
2325
  }, arguments) };
2326
2326
 
2327
- module.exports.__wbg_processapicall_faae543592a61911 = function(arg0, arg1, arg2) {
2327
+ module.exports.__wbg_processapicall_28f4fca3568c1b00 = function(arg0, arg1, arg2) {
2328
2328
  MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
2329
2329
  };
2330
2330
 
2331
- module.exports.__wbg_processapisuccess_0222195ca7789906 = function(arg0, arg1, arg2) {
2331
+ module.exports.__wbg_processapisuccess_fada0a70c463d3c1 = function(arg0, arg1, arg2) {
2332
2332
  MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
2333
2333
  };
2334
2334
 
2335
- module.exports.__wbg_processapierror_2f63483e371224e8 = function(arg0, arg1, arg2) {
2335
+ module.exports.__wbg_processapierror_a699cace1ab55f27 = function(arg0, arg1, arg2) {
2336
2336
  MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
2337
2337
  };
2338
2338
 
2339
- module.exports.__wbg_sendinterfaceevent_1a224baffe9a3bfe = function(arg0, arg1, arg2) {
2339
+ module.exports.__wbg_sendinterfaceevent_5eb8deb83b907e8b = function(arg0, arg1, arg2) {
2340
2340
  let deferred0_0;
2341
2341
  let deferred0_1;
2342
2342
  try {
@@ -2348,7 +2348,7 @@ module.exports.__wbg_sendinterfaceevent_1a224baffe9a3bfe = function(arg0, arg1,
2348
2348
  }
2349
2349
  };
2350
2350
 
2351
- module.exports.__wbg_sendblocksuccess_568fd18866c7570c = function(arg0, arg1, arg2) {
2351
+ module.exports.__wbg_sendblocksuccess_809a0c0b0e69441d = function(arg0, arg1, arg2) {
2352
2352
  let deferred0_0;
2353
2353
  let deferred0_1;
2354
2354
  try {
@@ -2360,11 +2360,11 @@ module.exports.__wbg_sendblocksuccess_568fd18866c7570c = function(arg0, arg1, ar
2360
2360
  }
2361
2361
  };
2362
2362
 
2363
- module.exports.__wbg_sendwalletupdate_c0ccfd9d44049397 = function() {
2363
+ module.exports.__wbg_sendwalletupdate_09d859adb0ea14a9 = function() {
2364
2364
  MsgHandler.send_wallet_update();
2365
2365
  };
2366
2366
 
2367
- module.exports.__wbg_sendnewversionalert_386c252915a5895a = function(arg0, arg1, arg2) {
2367
+ module.exports.__wbg_sendnewversionalert_1e35e1a7d102f40b = function(arg0, arg1, arg2) {
2368
2368
  let deferred0_0;
2369
2369
  let deferred0_1;
2370
2370
  try {
@@ -2376,15 +2376,15 @@ module.exports.__wbg_sendnewversionalert_386c252915a5895a = function(arg0, arg1,
2376
2376
  }
2377
2377
  };
2378
2378
 
2379
- module.exports.__wbg_savewallet_7b3847143afacfd7 = function() {
2379
+ module.exports.__wbg_savewallet_0a9f3489e1d6a2c4 = function() {
2380
2380
  MsgHandler.save_wallet();
2381
2381
  };
2382
2382
 
2383
- module.exports.__wbg_loadwallet_2e7d5fd6a91759c0 = function() {
2383
+ module.exports.__wbg_loadwallet_3e50826561a1f1b4 = function() {
2384
2384
  MsgHandler.load_wallet();
2385
2385
  };
2386
2386
 
2387
- module.exports.__wbg_getmyservices_9a40e8ebf1d7297a = function() {
2387
+ module.exports.__wbg_getmyservices_ee748c7b35d60b74 = function() {
2388
2388
  const ret = MsgHandler.get_my_services();
2389
2389
  _assertClass(ret, WasmPeerServiceList);
2390
2390
  var ptr1 = ret.__destroy_into_raw();
@@ -2737,8 +2737,8 @@ module.exports.__wbindgen_memory = function() {
2737
2737
  return addHeapObject(ret);
2738
2738
  };
2739
2739
 
2740
- module.exports.__wbindgen_closure_wrapper1163 = function(arg0, arg1, arg2) {
2741
- const ret = makeMutClosure(arg0, arg1, 425, __wbg_adapter_40);
2740
+ module.exports.__wbindgen_closure_wrapper1166 = function(arg0, arg1, arg2) {
2741
+ const ret = makeMutClosure(arg0, arg1, 428, __wbg_adapter_40);
2742
2742
  return addHeapObject(ret);
2743
2743
  };
2744
2744
 
Binary file
@@ -206,15 +206,15 @@ export function wasmconsensusvalues_total_rebroadcast_staking_payouts_nolan(a: n
206
206
  export function wasmconsensusvalues_rebroadcast_hash(a: number): number;
207
207
  export function wasmconsensusvalues_nolan_falling_off_chain(a: number): number;
208
208
  export function wasmconsensusvalues_avg_income(a: number): number;
209
- export function rustsecp256k1_v0_9_1_context_create(a: number): number;
210
- export function rustsecp256k1_v0_9_1_context_destroy(a: number): void;
211
- export function rustsecp256k1_v0_9_1_default_illegal_callback_fn(a: number, b: number): void;
212
- export function rustsecp256k1_v0_9_1_default_error_callback_fn(a: number, b: number): void;
209
+ export function rustsecp256k1_v0_9_0_context_create(a: number): number;
210
+ export function rustsecp256k1_v0_9_0_context_destroy(a: number): void;
211
+ export function rustsecp256k1_v0_9_0_default_illegal_callback_fn(a: number, b: number): void;
212
+ export function rustsecp256k1_v0_9_0_default_error_callback_fn(a: number, b: number): void;
213
213
  export function __wbindgen_malloc(a: number, b: number): number;
214
214
  export function __wbindgen_realloc(a: number, b: number, c: number, d: number): number;
215
215
  export const __wbindgen_export_2: WebAssembly.Table;
216
- export function _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h70fb60fdfe117129(a: number, b: number, c: number): void;
216
+ export function _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hec565812d71bcf8d(a: number, b: number, c: number): void;
217
217
  export function __wbindgen_add_to_stack_pointer(a: number): number;
218
218
  export function __wbindgen_free(a: number, b: number, c: number): void;
219
219
  export function __wbindgen_exn_store(a: number): void;
220
- export function wasm_bindgen__convert__closures__invoke2_mut__h71301b61d3510263(a: number, b: number, c: number, d: number): void;
220
+ export function wasm_bindgen__convert__closures__invoke2_mut__h0cf221c9239c0b4c(a: number, b: number, c: number, d: number): void;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "saito-wasm",
3
- "version": "0.1.39",
3
+ "version": "0.1.41",
4
4
  "files": [
5
5
  "index_bg.wasm",
6
6
  "index.js",
@@ -937,18 +937,18 @@ export interface InitOutput {
937
937
  readonly wasmconsensusvalues_rebroadcast_hash: (a: number) => number;
938
938
  readonly wasmconsensusvalues_nolan_falling_off_chain: (a: number) => number;
939
939
  readonly wasmconsensusvalues_avg_income: (a: number) => number;
940
- readonly rustsecp256k1_v0_9_1_context_create: (a: number) => number;
941
- readonly rustsecp256k1_v0_9_1_context_destroy: (a: number) => void;
942
- readonly rustsecp256k1_v0_9_1_default_illegal_callback_fn: (a: number, b: number) => void;
943
- readonly rustsecp256k1_v0_9_1_default_error_callback_fn: (a: number, b: number) => void;
940
+ readonly rustsecp256k1_v0_9_0_context_create: (a: number) => number;
941
+ readonly rustsecp256k1_v0_9_0_context_destroy: (a: number) => void;
942
+ readonly rustsecp256k1_v0_9_0_default_illegal_callback_fn: (a: number, b: number) => void;
943
+ readonly rustsecp256k1_v0_9_0_default_error_callback_fn: (a: number, b: number) => void;
944
944
  readonly __wbindgen_malloc: (a: number, b: number) => number;
945
945
  readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
946
946
  readonly __wbindgen_export_2: WebAssembly.Table;
947
- readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h70fb60fdfe117129: (a: number, b: number, c: number) => void;
947
+ readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hec565812d71bcf8d: (a: number, b: number, c: number) => void;
948
948
  readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
949
949
  readonly __wbindgen_free: (a: number, b: number, c: number) => void;
950
950
  readonly __wbindgen_exn_store: (a: number) => void;
951
- readonly wasm_bindgen__convert__closures__invoke2_mut__h71301b61d3510263: (a: number, b: number, c: number, d: number) => void;
951
+ readonly wasm_bindgen__convert__closures__invoke2_mut__h0cf221c9239c0b4c: (a: number, b: number, c: number, d: number) => void;
952
952
  }
953
953
 
954
954
  export type SyncInitInput = BufferSource | WebAssembly.Module;
package/pkg/web/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { MsgHandler } from './snippets/saito-wasm-c8fed40e8296d02c/js/msg_handler.js';
1
+ import { MsgHandler } from './snippets/saito-wasm-40c9f302152100d5/js/msg_handler.js';
2
2
 
3
3
  let wasm;
4
4
 
@@ -22,6 +22,15 @@ function takeObject(idx) {
22
22
  return ret;
23
23
  }
24
24
 
25
+ function addHeapObject(obj) {
26
+ if (heap_next === heap.length) heap.push(heap.length + 1);
27
+ const idx = heap_next;
28
+ heap_next = heap[idx];
29
+
30
+ heap[idx] = obj;
31
+ return idx;
32
+ }
33
+
25
34
  const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
26
35
 
27
36
  if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
@@ -40,15 +49,6 @@ function getStringFromWasm0(ptr, len) {
40
49
  return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
41
50
  }
42
51
 
43
- function addHeapObject(obj) {
44
- if (heap_next === heap.length) heap.push(heap.length + 1);
45
- const idx = heap_next;
46
- heap_next = heap[idx];
47
-
48
- heap[idx] = obj;
49
- return idx;
50
- }
51
-
52
52
  let WASM_VECTOR_LEN = 0;
53
53
 
54
54
  const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );
@@ -223,7 +223,7 @@ function makeMutClosure(arg0, arg1, dtor, f) {
223
223
  return real;
224
224
  }
225
225
  function __wbg_adapter_40(arg0, arg1, arg2) {
226
- wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h70fb60fdfe117129(arg0, arg1, addHeapObject(arg2));
226
+ wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hec565812d71bcf8d(arg0, arg1, addHeapObject(arg2));
227
227
  }
228
228
 
229
229
  function _assertClass(instance, klass) {
@@ -531,7 +531,7 @@ function handleError(f, args) {
531
531
  }
532
532
  }
533
533
  function __wbg_adapter_368(arg0, arg1, arg2, arg3) {
534
- wasm.wasm_bindgen__convert__closures__invoke2_mut__h71301b61d3510263(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
534
+ wasm.wasm_bindgen__convert__closures__invoke2_mut__h0cf221c9239c0b4c(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
535
535
  }
536
536
 
537
537
  const SaitoWasmFinalization = (typeof FinalizationRegistry === 'undefined')
@@ -2142,28 +2142,32 @@ function __wbg_get_imports() {
2142
2142
  imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
2143
2143
  takeObject(arg0);
2144
2144
  };
2145
+ imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
2146
+ const ret = BigInt.asUintN(64, arg0);
2147
+ return addHeapObject(ret);
2148
+ };
2145
2149
  imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
2146
2150
  const ret = getStringFromWasm0(arg0, arg1);
2147
2151
  return addHeapObject(ret);
2148
2152
  };
2149
- imports.wbg.__wbg_wasmpeer_new = function(arg0) {
2150
- const ret = WasmPeer.__wrap(arg0);
2153
+ imports.wbg.__wbg_wasmslip_new = function(arg0) {
2154
+ const ret = WasmSlip.__wrap(arg0);
2151
2155
  return addHeapObject(ret);
2152
2156
  };
2153
- imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
2154
- const ret = BigInt.asUintN(64, arg0);
2157
+ imports.wbg.__wbg_wasmtransaction_new = function(arg0) {
2158
+ const ret = WasmTransaction.__wrap(arg0);
2155
2159
  return addHeapObject(ret);
2156
2160
  };
2157
- imports.wbg.__wbg_wasmblockchain_new = function(arg0) {
2158
- const ret = WasmBlockchain.__wrap(arg0);
2161
+ imports.wbg.__wbg_wasmwallet_new = function(arg0) {
2162
+ const ret = WasmWallet.__wrap(arg0);
2159
2163
  return addHeapObject(ret);
2160
2164
  };
2161
- imports.wbg.__wbg_wasmwalletslip_new = function(arg0) {
2162
- const ret = WasmWalletSlip.__wrap(arg0);
2165
+ imports.wbg.__wbg_wasmpeer_new = function(arg0) {
2166
+ const ret = WasmPeer.__wrap(arg0);
2163
2167
  return addHeapObject(ret);
2164
2168
  };
2165
- imports.wbg.__wbg_wasmblock_new = function(arg0) {
2166
- const ret = WasmBlock.__wrap(arg0);
2169
+ imports.wbg.__wbg_wasmbalancesnapshot_new = function(arg0) {
2170
+ const ret = WasmBalanceSnapshot.__wrap(arg0);
2167
2171
  return addHeapObject(ret);
2168
2172
  };
2169
2173
  imports.wbg.__wbindgen_is_falsy = function(arg0) {
@@ -2178,20 +2182,16 @@ function __wbg_get_imports() {
2178
2182
  getInt32Memory0()[arg0 / 4 + 1] = len1;
2179
2183
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
2180
2184
  };
2181
- imports.wbg.__wbg_wasmbalancesnapshot_new = function(arg0) {
2182
- const ret = WasmBalanceSnapshot.__wrap(arg0);
2183
- return addHeapObject(ret);
2184
- };
2185
- imports.wbg.__wbg_wasmtransaction_new = function(arg0) {
2186
- const ret = WasmTransaction.__wrap(arg0);
2185
+ imports.wbg.__wbg_wasmblockchain_new = function(arg0) {
2186
+ const ret = WasmBlockchain.__wrap(arg0);
2187
2187
  return addHeapObject(ret);
2188
2188
  };
2189
- imports.wbg.__wbg_wasmslip_new = function(arg0) {
2190
- const ret = WasmSlip.__wrap(arg0);
2189
+ imports.wbg.__wbg_wasmblock_new = function(arg0) {
2190
+ const ret = WasmBlock.__wrap(arg0);
2191
2191
  return addHeapObject(ret);
2192
2192
  };
2193
- imports.wbg.__wbg_wasmwallet_new = function(arg0) {
2194
- const ret = WasmWallet.__wrap(arg0);
2193
+ imports.wbg.__wbg_wasmwalletslip_new = function(arg0) {
2194
+ const ret = WasmWalletSlip.__wrap(arg0);
2195
2195
  return addHeapObject(ret);
2196
2196
  };
2197
2197
  imports.wbg.__wbg_wasmpeerservice_new = function(arg0) {
@@ -2223,21 +2223,21 @@ function __wbg_get_imports() {
2223
2223
  const ret = getObject(arg0) in getObject(arg1);
2224
2224
  return ret;
2225
2225
  };
2226
- imports.wbg.__wbg_sendmessage_abb4d861c74d74b2 = function(arg0, arg1) {
2226
+ imports.wbg.__wbg_sendmessage_a0538d075fac7f97 = function(arg0, arg1) {
2227
2227
  MsgHandler.send_message(takeObject(arg0), getObject(arg1));
2228
2228
  };
2229
- imports.wbg.__wbg_sendmessagetoall_21cb143ee0cdc59c = function(arg0, arg1) {
2229
+ imports.wbg.__wbg_sendmessagetoall_6ebb63654acc64ba = function(arg0, arg1) {
2230
2230
  MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
2231
2231
  };
2232
- imports.wbg.__wbg_connecttopeer_7a5ea4193640f9c1 = function() { return handleError(function (arg0) {
2232
+ imports.wbg.__wbg_connecttopeer_189c065255cb49ac = function() { return handleError(function (arg0) {
2233
2233
  const ret = MsgHandler.connect_to_peer(takeObject(arg0));
2234
2234
  return addHeapObject(ret);
2235
2235
  }, arguments) };
2236
- imports.wbg.__wbg_disconnectfrompeer_42ffbf7853522502 = function() { return handleError(function (arg0) {
2236
+ imports.wbg.__wbg_disconnectfrompeer_542a1fe95005d95e = function() { return handleError(function (arg0) {
2237
2237
  const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
2238
2238
  return addHeapObject(ret);
2239
2239
  }, arguments) };
2240
- imports.wbg.__wbg_fetchblockfrompeer_4a1a614d3fcc4356 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
2240
+ imports.wbg.__wbg_fetchblockfrompeer_8269d2ad1c635af5 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
2241
2241
  let deferred0_0;
2242
2242
  let deferred0_1;
2243
2243
  try {
@@ -2249,7 +2249,7 @@ function __wbg_get_imports() {
2249
2249
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2250
2250
  }
2251
2251
  }, arguments) };
2252
- imports.wbg.__wbg_writevalue_ad0a5c77c510b183 = function(arg0, arg1, arg2) {
2252
+ imports.wbg.__wbg_writevalue_991db9848cba0521 = function(arg0, arg1, arg2) {
2253
2253
  let deferred0_0;
2254
2254
  let deferred0_1;
2255
2255
  try {
@@ -2260,7 +2260,7 @@ function __wbg_get_imports() {
2260
2260
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2261
2261
  }
2262
2262
  };
2263
- imports.wbg.__wbg_ensureblockdirectoryexists_b175efb6fcf3fa5e = function() { return handleError(function (arg0, arg1) {
2263
+ imports.wbg.__wbg_ensureblockdirectoryexists_e52d4dab0961d5db = function() { return handleError(function (arg0, arg1) {
2264
2264
  let deferred0_0;
2265
2265
  let deferred0_1;
2266
2266
  try {
@@ -2271,7 +2271,7 @@ function __wbg_get_imports() {
2271
2271
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2272
2272
  }
2273
2273
  }, arguments) };
2274
- imports.wbg.__wbg_readvalue_faf8da865d398e6e = function() { return handleError(function (arg0, arg1) {
2274
+ imports.wbg.__wbg_readvalue_1d63f1ef1493c3ef = function() { return handleError(function (arg0, arg1) {
2275
2275
  let deferred0_0;
2276
2276
  let deferred0_1;
2277
2277
  try {
@@ -2283,11 +2283,11 @@ function __wbg_get_imports() {
2283
2283
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2284
2284
  }
2285
2285
  }, arguments) };
2286
- imports.wbg.__wbg_loadblockfilelist_47599afa6dd965b3 = function() { return handleError(function () {
2286
+ imports.wbg.__wbg_loadblockfilelist_91a7e8bab5946a15 = function() { return handleError(function () {
2287
2287
  const ret = MsgHandler.load_block_file_list();
2288
2288
  return addHeapObject(ret);
2289
2289
  }, arguments) };
2290
- imports.wbg.__wbg_isexistingfile_62586dfe7417575d = function() { return handleError(function (arg0, arg1) {
2290
+ imports.wbg.__wbg_isexistingfile_fc490ffb57774753 = function() { return handleError(function (arg0, arg1) {
2291
2291
  let deferred0_0;
2292
2292
  let deferred0_1;
2293
2293
  try {
@@ -2299,7 +2299,7 @@ function __wbg_get_imports() {
2299
2299
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2300
2300
  }
2301
2301
  }, arguments) };
2302
- imports.wbg.__wbg_removevalue_41ec31e751a169d6 = function() { return handleError(function (arg0, arg1) {
2302
+ imports.wbg.__wbg_removevalue_d73c801e25353475 = function() { return handleError(function (arg0, arg1) {
2303
2303
  let deferred0_0;
2304
2304
  let deferred0_1;
2305
2305
  try {
@@ -2311,16 +2311,16 @@ function __wbg_get_imports() {
2311
2311
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2312
2312
  }
2313
2313
  }, arguments) };
2314
- imports.wbg.__wbg_processapicall_faae543592a61911 = function(arg0, arg1, arg2) {
2314
+ imports.wbg.__wbg_processapicall_28f4fca3568c1b00 = function(arg0, arg1, arg2) {
2315
2315
  MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
2316
2316
  };
2317
- imports.wbg.__wbg_processapisuccess_0222195ca7789906 = function(arg0, arg1, arg2) {
2317
+ imports.wbg.__wbg_processapisuccess_fada0a70c463d3c1 = function(arg0, arg1, arg2) {
2318
2318
  MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
2319
2319
  };
2320
- imports.wbg.__wbg_processapierror_2f63483e371224e8 = function(arg0, arg1, arg2) {
2320
+ imports.wbg.__wbg_processapierror_a699cace1ab55f27 = function(arg0, arg1, arg2) {
2321
2321
  MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
2322
2322
  };
2323
- imports.wbg.__wbg_sendinterfaceevent_1a224baffe9a3bfe = function(arg0, arg1, arg2) {
2323
+ imports.wbg.__wbg_sendinterfaceevent_5eb8deb83b907e8b = function(arg0, arg1, arg2) {
2324
2324
  let deferred0_0;
2325
2325
  let deferred0_1;
2326
2326
  try {
@@ -2331,7 +2331,7 @@ function __wbg_get_imports() {
2331
2331
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2332
2332
  }
2333
2333
  };
2334
- imports.wbg.__wbg_sendblocksuccess_568fd18866c7570c = function(arg0, arg1, arg2) {
2334
+ imports.wbg.__wbg_sendblocksuccess_809a0c0b0e69441d = function(arg0, arg1, arg2) {
2335
2335
  let deferred0_0;
2336
2336
  let deferred0_1;
2337
2337
  try {
@@ -2342,10 +2342,10 @@ function __wbg_get_imports() {
2342
2342
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2343
2343
  }
2344
2344
  };
2345
- imports.wbg.__wbg_sendwalletupdate_c0ccfd9d44049397 = function() {
2345
+ imports.wbg.__wbg_sendwalletupdate_09d859adb0ea14a9 = function() {
2346
2346
  MsgHandler.send_wallet_update();
2347
2347
  };
2348
- imports.wbg.__wbg_sendnewversionalert_386c252915a5895a = function(arg0, arg1, arg2) {
2348
+ imports.wbg.__wbg_sendnewversionalert_1e35e1a7d102f40b = function(arg0, arg1, arg2) {
2349
2349
  let deferred0_0;
2350
2350
  let deferred0_1;
2351
2351
  try {
@@ -2356,13 +2356,13 @@ function __wbg_get_imports() {
2356
2356
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2357
2357
  }
2358
2358
  };
2359
- imports.wbg.__wbg_savewallet_7b3847143afacfd7 = function() {
2359
+ imports.wbg.__wbg_savewallet_0a9f3489e1d6a2c4 = function() {
2360
2360
  MsgHandler.save_wallet();
2361
2361
  };
2362
- imports.wbg.__wbg_loadwallet_2e7d5fd6a91759c0 = function() {
2362
+ imports.wbg.__wbg_loadwallet_3e50826561a1f1b4 = function() {
2363
2363
  MsgHandler.load_wallet();
2364
2364
  };
2365
- imports.wbg.__wbg_getmyservices_9a40e8ebf1d7297a = function() {
2365
+ imports.wbg.__wbg_getmyservices_ee748c7b35d60b74 = function() {
2366
2366
  const ret = MsgHandler.get_my_services();
2367
2367
  _assertClass(ret, WasmPeerServiceList);
2368
2368
  var ptr1 = ret.__destroy_into_raw();
@@ -2650,8 +2650,8 @@ function __wbg_get_imports() {
2650
2650
  const ret = wasm.memory;
2651
2651
  return addHeapObject(ret);
2652
2652
  };
2653
- imports.wbg.__wbindgen_closure_wrapper1163 = function(arg0, arg1, arg2) {
2654
- const ret = makeMutClosure(arg0, arg1, 425, __wbg_adapter_40);
2653
+ imports.wbg.__wbindgen_closure_wrapper1166 = function(arg0, arg1, arg2) {
2654
+ const ret = makeMutClosure(arg0, arg1, 428, __wbg_adapter_40);
2655
2655
  return addHeapObject(ret);
2656
2656
  };
2657
2657
 
Binary file
@@ -206,15 +206,15 @@ export function wasmconsensusvalues_total_rebroadcast_staking_payouts_nolan(a: n
206
206
  export function wasmconsensusvalues_rebroadcast_hash(a: number): number;
207
207
  export function wasmconsensusvalues_nolan_falling_off_chain(a: number): number;
208
208
  export function wasmconsensusvalues_avg_income(a: number): number;
209
- export function rustsecp256k1_v0_9_1_context_create(a: number): number;
210
- export function rustsecp256k1_v0_9_1_context_destroy(a: number): void;
211
- export function rustsecp256k1_v0_9_1_default_illegal_callback_fn(a: number, b: number): void;
212
- export function rustsecp256k1_v0_9_1_default_error_callback_fn(a: number, b: number): void;
209
+ export function rustsecp256k1_v0_9_0_context_create(a: number): number;
210
+ export function rustsecp256k1_v0_9_0_context_destroy(a: number): void;
211
+ export function rustsecp256k1_v0_9_0_default_illegal_callback_fn(a: number, b: number): void;
212
+ export function rustsecp256k1_v0_9_0_default_error_callback_fn(a: number, b: number): void;
213
213
  export function __wbindgen_malloc(a: number, b: number): number;
214
214
  export function __wbindgen_realloc(a: number, b: number, c: number, d: number): number;
215
215
  export const __wbindgen_export_2: WebAssembly.Table;
216
- export function _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h70fb60fdfe117129(a: number, b: number, c: number): void;
216
+ export function _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hec565812d71bcf8d(a: number, b: number, c: number): void;
217
217
  export function __wbindgen_add_to_stack_pointer(a: number): number;
218
218
  export function __wbindgen_free(a: number, b: number, c: number): void;
219
219
  export function __wbindgen_exn_store(a: number): void;
220
- export function wasm_bindgen__convert__closures__invoke2_mut__h71301b61d3510263(a: number, b: number, c: number, d: number): void;
220
+ export function wasm_bindgen__convert__closures__invoke2_mut__h0cf221c9239c0b4c(a: number, b: number, c: number, d: number): void;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "saito-wasm",
3
- "version": "0.1.39",
3
+ "version": "0.1.41",
4
4
  "files": [
5
5
  "index_bg.wasm",
6
6
  "index.js",