saito-wasm 0.1.32 → 0.1.34

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.32"
3
+ version = "0.1.34"
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.32",
3
+ "version": "0.1.34",
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-50a8f5a62dfc522b/js/msg_handler.js`);
4
+ const { MsgHandler } = require(String.raw`./snippets/saito-wasm-2c21009cb9d6cc8e/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');
@@ -2063,8 +2063,8 @@ module.exports.__wbindgen_object_drop_ref = function(arg0) {
2063
2063
  takeObject(arg0);
2064
2064
  };
2065
2065
 
2066
- module.exports.__wbg_wasmpeer_new = function(arg0) {
2067
- const ret = WasmPeer.__wrap(arg0);
2066
+ module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
2067
+ const ret = BigInt.asUintN(64, arg0);
2068
2068
  return addHeapObject(ret);
2069
2069
  };
2070
2070
 
@@ -2073,18 +2073,9 @@ module.exports.__wbindgen_string_new = function(arg0, arg1) {
2073
2073
  return addHeapObject(ret);
2074
2074
  };
2075
2075
 
2076
- module.exports.__wbindgen_is_falsy = function(arg0) {
2077
- const ret = !getObject(arg0);
2078
- return ret;
2079
- };
2080
-
2081
- module.exports.__wbindgen_string_get = function(arg0, arg1) {
2082
- const obj = getObject(arg1);
2083
- const ret = typeof(obj) === 'string' ? obj : undefined;
2084
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2085
- var len1 = WASM_VECTOR_LEN;
2086
- getInt32Memory0()[arg0 / 4 + 1] = len1;
2087
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
2076
+ module.exports.__wbg_wasmblock_new = function(arg0) {
2077
+ const ret = WasmBlock.__wrap(arg0);
2078
+ return addHeapObject(ret);
2088
2079
  };
2089
2080
 
2090
2081
  module.exports.__wbg_wasmtransaction_new = function(arg0) {
@@ -2092,38 +2083,47 @@ module.exports.__wbg_wasmtransaction_new = function(arg0) {
2092
2083
  return addHeapObject(ret);
2093
2084
  };
2094
2085
 
2095
- module.exports.__wbg_wasmwalletslip_new = function(arg0) {
2096
- const ret = WasmWalletSlip.__wrap(arg0);
2086
+ module.exports.__wbg_wasmblockchain_new = function(arg0) {
2087
+ const ret = WasmBlockchain.__wrap(arg0);
2097
2088
  return addHeapObject(ret);
2098
2089
  };
2099
2090
 
2100
- module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
2101
- const ret = BigInt.asUintN(64, arg0);
2091
+ module.exports.__wbg_wasmpeer_new = function(arg0) {
2092
+ const ret = WasmPeer.__wrap(arg0);
2102
2093
  return addHeapObject(ret);
2103
2094
  };
2104
2095
 
2105
- module.exports.__wbg_wasmblock_new = function(arg0) {
2106
- const ret = WasmBlock.__wrap(arg0);
2096
+ module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
2097
+ const ret = WasmBalanceSnapshot.__wrap(arg0);
2107
2098
  return addHeapObject(ret);
2108
2099
  };
2109
2100
 
2110
- module.exports.__wbg_wasmblockchain_new = function(arg0) {
2111
- const ret = WasmBlockchain.__wrap(arg0);
2101
+ module.exports.__wbg_wasmslip_new = function(arg0) {
2102
+ const ret = WasmSlip.__wrap(arg0);
2112
2103
  return addHeapObject(ret);
2113
2104
  };
2114
2105
 
2115
- module.exports.__wbg_wasmwallet_new = function(arg0) {
2116
- const ret = WasmWallet.__wrap(arg0);
2117
- return addHeapObject(ret);
2106
+ module.exports.__wbindgen_is_falsy = function(arg0) {
2107
+ const ret = !getObject(arg0);
2108
+ return ret;
2118
2109
  };
2119
2110
 
2120
- module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
2121
- const ret = WasmBalanceSnapshot.__wrap(arg0);
2111
+ module.exports.__wbindgen_string_get = function(arg0, arg1) {
2112
+ const obj = getObject(arg1);
2113
+ const ret = typeof(obj) === 'string' ? obj : undefined;
2114
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2115
+ var len1 = WASM_VECTOR_LEN;
2116
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
2117
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
2118
+ };
2119
+
2120
+ module.exports.__wbg_wasmwalletslip_new = function(arg0) {
2121
+ const ret = WasmWalletSlip.__wrap(arg0);
2122
2122
  return addHeapObject(ret);
2123
2123
  };
2124
2124
 
2125
- module.exports.__wbg_wasmslip_new = function(arg0) {
2126
- const ret = WasmSlip.__wrap(arg0);
2125
+ module.exports.__wbg_wasmwallet_new = function(arg0) {
2126
+ const ret = WasmWallet.__wrap(arg0);
2127
2127
  return addHeapObject(ret);
2128
2128
  };
2129
2129
 
@@ -2163,25 +2163,25 @@ module.exports.__wbindgen_in = function(arg0, arg1) {
2163
2163
  return ret;
2164
2164
  };
2165
2165
 
2166
- module.exports.__wbg_sendmessage_6eed66fc56c8d208 = function(arg0, arg1) {
2166
+ module.exports.__wbg_sendmessage_b6cd15352c0033d3 = function(arg0, arg1) {
2167
2167
  MsgHandler.send_message(takeObject(arg0), getObject(arg1));
2168
2168
  };
2169
2169
 
2170
- module.exports.__wbg_sendmessagetoall_9fc2a2ba84c75ad5 = function(arg0, arg1) {
2170
+ module.exports.__wbg_sendmessagetoall_9308a5233bd0ad97 = function(arg0, arg1) {
2171
2171
  MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
2172
2172
  };
2173
2173
 
2174
- module.exports.__wbg_connecttopeer_700ac621b384ae02 = function() { return handleError(function (arg0) {
2174
+ module.exports.__wbg_connecttopeer_e4a11f36ca8ef04d = function() { return handleError(function (arg0) {
2175
2175
  const ret = MsgHandler.connect_to_peer(takeObject(arg0));
2176
2176
  return addHeapObject(ret);
2177
2177
  }, arguments) };
2178
2178
 
2179
- module.exports.__wbg_disconnectfrompeer_027379d1d1da7bb2 = function() { return handleError(function (arg0) {
2179
+ module.exports.__wbg_disconnectfrompeer_a1e921d1caafe4b1 = function() { return handleError(function (arg0) {
2180
2180
  const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
2181
2181
  return addHeapObject(ret);
2182
2182
  }, arguments) };
2183
2183
 
2184
- module.exports.__wbg_fetchblockfrompeer_5e09dbb8d3423229 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
2184
+ module.exports.__wbg_fetchblockfrompeer_bdb17c5008066ea8 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
2185
2185
  let deferred0_0;
2186
2186
  let deferred0_1;
2187
2187
  try {
@@ -2194,7 +2194,7 @@ module.exports.__wbg_fetchblockfrompeer_5e09dbb8d3423229 = function() { return h
2194
2194
  }
2195
2195
  }, arguments) };
2196
2196
 
2197
- module.exports.__wbg_writevalue_7f5f8d1a8b210e43 = function(arg0, arg1, arg2) {
2197
+ module.exports.__wbg_writevalue_ab654a69549c7331 = function(arg0, arg1, arg2) {
2198
2198
  let deferred0_0;
2199
2199
  let deferred0_1;
2200
2200
  try {
@@ -2206,7 +2206,7 @@ module.exports.__wbg_writevalue_7f5f8d1a8b210e43 = function(arg0, arg1, arg2) {
2206
2206
  }
2207
2207
  };
2208
2208
 
2209
- module.exports.__wbg_ensureblockdirectoryexists_c42b0e503357d15e = function() { return handleError(function (arg0, arg1) {
2209
+ module.exports.__wbg_ensureblockdirectoryexists_d84f0311f80fede8 = function() { return handleError(function (arg0, arg1) {
2210
2210
  let deferred0_0;
2211
2211
  let deferred0_1;
2212
2212
  try {
@@ -2218,7 +2218,7 @@ module.exports.__wbg_ensureblockdirectoryexists_c42b0e503357d15e = function() {
2218
2218
  }
2219
2219
  }, arguments) };
2220
2220
 
2221
- module.exports.__wbg_readvalue_ff2b459a05a315ae = function() { return handleError(function (arg0, arg1) {
2221
+ module.exports.__wbg_readvalue_ddaf37e2705b4e0b = function() { return handleError(function (arg0, arg1) {
2222
2222
  let deferred0_0;
2223
2223
  let deferred0_1;
2224
2224
  try {
@@ -2231,12 +2231,12 @@ module.exports.__wbg_readvalue_ff2b459a05a315ae = function() { return handleErro
2231
2231
  }
2232
2232
  }, arguments) };
2233
2233
 
2234
- module.exports.__wbg_loadblockfilelist_8f9ec69529371ee2 = function() { return handleError(function () {
2234
+ module.exports.__wbg_loadblockfilelist_90ba19888ab8b80a = function() { return handleError(function () {
2235
2235
  const ret = MsgHandler.load_block_file_list();
2236
2236
  return addHeapObject(ret);
2237
2237
  }, arguments) };
2238
2238
 
2239
- module.exports.__wbg_isexistingfile_681fda248bec72fe = function() { return handleError(function (arg0, arg1) {
2239
+ module.exports.__wbg_isexistingfile_9d7bdd5902c0ec1b = function() { return handleError(function (arg0, arg1) {
2240
2240
  let deferred0_0;
2241
2241
  let deferred0_1;
2242
2242
  try {
@@ -2249,7 +2249,7 @@ module.exports.__wbg_isexistingfile_681fda248bec72fe = function() { return handl
2249
2249
  }
2250
2250
  }, arguments) };
2251
2251
 
2252
- module.exports.__wbg_removevalue_6f5b774457203462 = function() { return handleError(function (arg0, arg1) {
2252
+ module.exports.__wbg_removevalue_92b6bdc20ac7302c = function() { return handleError(function (arg0, arg1) {
2253
2253
  let deferred0_0;
2254
2254
  let deferred0_1;
2255
2255
  try {
@@ -2262,19 +2262,19 @@ module.exports.__wbg_removevalue_6f5b774457203462 = function() { return handleEr
2262
2262
  }
2263
2263
  }, arguments) };
2264
2264
 
2265
- module.exports.__wbg_processapicall_3a54b747f69f307a = function(arg0, arg1, arg2) {
2265
+ module.exports.__wbg_processapicall_49a7a88c3c222f91 = function(arg0, arg1, arg2) {
2266
2266
  MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
2267
2267
  };
2268
2268
 
2269
- module.exports.__wbg_processapisuccess_110d9de5d819a5d0 = function(arg0, arg1, arg2) {
2269
+ module.exports.__wbg_processapisuccess_30e3d63b3e35b07c = function(arg0, arg1, arg2) {
2270
2270
  MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
2271
2271
  };
2272
2272
 
2273
- module.exports.__wbg_processapierror_077e052ba363ff00 = function(arg0, arg1, arg2) {
2273
+ module.exports.__wbg_processapierror_5a41c561a7f122df = function(arg0, arg1, arg2) {
2274
2274
  MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
2275
2275
  };
2276
2276
 
2277
- module.exports.__wbg_sendinterfaceevent_ff12dc9f894dd423 = function(arg0, arg1, arg2) {
2277
+ module.exports.__wbg_sendinterfaceevent_dcbb913cdc53d886 = function(arg0, arg1, arg2) {
2278
2278
  let deferred0_0;
2279
2279
  let deferred0_1;
2280
2280
  try {
@@ -2286,7 +2286,7 @@ module.exports.__wbg_sendinterfaceevent_ff12dc9f894dd423 = function(arg0, arg1,
2286
2286
  }
2287
2287
  };
2288
2288
 
2289
- module.exports.__wbg_sendblocksuccess_c4df09f7392ab67e = function(arg0, arg1, arg2) {
2289
+ module.exports.__wbg_sendblocksuccess_aa98a757628cd322 = function(arg0, arg1, arg2) {
2290
2290
  let deferred0_0;
2291
2291
  let deferred0_1;
2292
2292
  try {
@@ -2298,11 +2298,11 @@ module.exports.__wbg_sendblocksuccess_c4df09f7392ab67e = function(arg0, arg1, ar
2298
2298
  }
2299
2299
  };
2300
2300
 
2301
- module.exports.__wbg_sendwalletupdate_c1fd581c63f5e042 = function() {
2301
+ module.exports.__wbg_sendwalletupdate_422096362b7d277b = function() {
2302
2302
  MsgHandler.send_wallet_update();
2303
2303
  };
2304
2304
 
2305
- module.exports.__wbg_sendnewversionalert_4472a16aaa4f9818 = function(arg0, arg1, arg2) {
2305
+ module.exports.__wbg_sendnewversionalert_d54ed578f08c038c = function(arg0, arg1, arg2) {
2306
2306
  let deferred0_0;
2307
2307
  let deferred0_1;
2308
2308
  try {
@@ -2314,15 +2314,15 @@ module.exports.__wbg_sendnewversionalert_4472a16aaa4f9818 = function(arg0, arg1,
2314
2314
  }
2315
2315
  };
2316
2316
 
2317
- module.exports.__wbg_savewallet_6200d4f613e92997 = function() {
2317
+ module.exports.__wbg_savewallet_78ec3f34dc8ff175 = function() {
2318
2318
  MsgHandler.save_wallet();
2319
2319
  };
2320
2320
 
2321
- module.exports.__wbg_loadwallet_7fa7401dcf88043f = function() {
2321
+ module.exports.__wbg_loadwallet_b9163f50c5b172dd = function() {
2322
2322
  MsgHandler.load_wallet();
2323
2323
  };
2324
2324
 
2325
- module.exports.__wbg_getmyservices_a5a364be0d00997b = function() {
2325
+ module.exports.__wbg_getmyservices_d47f47cbd23e2f64 = function() {
2326
2326
  const ret = MsgHandler.get_my_services();
2327
2327
  _assertClass(ret, WasmPeerServiceList);
2328
2328
  var ptr1 = ret.__destroy_into_raw();
Binary file
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "saito-wasm",
3
- "version": "0.1.32",
3
+ "version": "0.1.34",
4
4
  "files": [
5
5
  "index_bg.wasm",
6
6
  "index.js",
@@ -9,7 +9,7 @@
9
9
  "main": "index.js",
10
10
  "types": "index.d.ts",
11
11
  "dependencies": {
12
- "node-fetch": "^3.3.0",
13
- "cross-env": "^7.0.3"
12
+ "cross-env": "^7.0.3",
13
+ "node-fetch": "^3.3.0"
14
14
  }
15
15
  }
package/pkg/web/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { MsgHandler } from './snippets/saito-wasm-50a8f5a62dfc522b/js/msg_handler.js';
1
+ import { MsgHandler } from './snippets/saito-wasm-2c21009cb9d6cc8e/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') } } );
@@ -2111,14 +2111,38 @@ function __wbg_get_imports() {
2111
2111
  imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
2112
2112
  takeObject(arg0);
2113
2113
  };
2114
- imports.wbg.__wbg_wasmpeer_new = function(arg0) {
2115
- const ret = WasmPeer.__wrap(arg0);
2114
+ imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
2115
+ const ret = BigInt.asUintN(64, arg0);
2116
2116
  return addHeapObject(ret);
2117
2117
  };
2118
2118
  imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
2119
2119
  const ret = getStringFromWasm0(arg0, arg1);
2120
2120
  return addHeapObject(ret);
2121
2121
  };
2122
+ imports.wbg.__wbg_wasmblock_new = function(arg0) {
2123
+ const ret = WasmBlock.__wrap(arg0);
2124
+ return addHeapObject(ret);
2125
+ };
2126
+ imports.wbg.__wbg_wasmtransaction_new = function(arg0) {
2127
+ const ret = WasmTransaction.__wrap(arg0);
2128
+ return addHeapObject(ret);
2129
+ };
2130
+ imports.wbg.__wbg_wasmblockchain_new = function(arg0) {
2131
+ const ret = WasmBlockchain.__wrap(arg0);
2132
+ return addHeapObject(ret);
2133
+ };
2134
+ imports.wbg.__wbg_wasmpeer_new = function(arg0) {
2135
+ const ret = WasmPeer.__wrap(arg0);
2136
+ return addHeapObject(ret);
2137
+ };
2138
+ imports.wbg.__wbg_wasmbalancesnapshot_new = function(arg0) {
2139
+ const ret = WasmBalanceSnapshot.__wrap(arg0);
2140
+ return addHeapObject(ret);
2141
+ };
2142
+ imports.wbg.__wbg_wasmslip_new = function(arg0) {
2143
+ const ret = WasmSlip.__wrap(arg0);
2144
+ return addHeapObject(ret);
2145
+ };
2122
2146
  imports.wbg.__wbindgen_is_falsy = function(arg0) {
2123
2147
  const ret = !getObject(arg0);
2124
2148
  return ret;
@@ -2131,38 +2155,14 @@ function __wbg_get_imports() {
2131
2155
  getInt32Memory0()[arg0 / 4 + 1] = len1;
2132
2156
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
2133
2157
  };
2134
- imports.wbg.__wbg_wasmtransaction_new = function(arg0) {
2135
- const ret = WasmTransaction.__wrap(arg0);
2136
- return addHeapObject(ret);
2137
- };
2138
2158
  imports.wbg.__wbg_wasmwalletslip_new = function(arg0) {
2139
2159
  const ret = WasmWalletSlip.__wrap(arg0);
2140
2160
  return addHeapObject(ret);
2141
2161
  };
2142
- imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
2143
- const ret = BigInt.asUintN(64, arg0);
2144
- return addHeapObject(ret);
2145
- };
2146
- imports.wbg.__wbg_wasmblock_new = function(arg0) {
2147
- const ret = WasmBlock.__wrap(arg0);
2148
- return addHeapObject(ret);
2149
- };
2150
- imports.wbg.__wbg_wasmblockchain_new = function(arg0) {
2151
- const ret = WasmBlockchain.__wrap(arg0);
2152
- return addHeapObject(ret);
2153
- };
2154
2162
  imports.wbg.__wbg_wasmwallet_new = function(arg0) {
2155
2163
  const ret = WasmWallet.__wrap(arg0);
2156
2164
  return addHeapObject(ret);
2157
2165
  };
2158
- imports.wbg.__wbg_wasmbalancesnapshot_new = function(arg0) {
2159
- const ret = WasmBalanceSnapshot.__wrap(arg0);
2160
- return addHeapObject(ret);
2161
- };
2162
- imports.wbg.__wbg_wasmslip_new = function(arg0) {
2163
- const ret = WasmSlip.__wrap(arg0);
2164
- return addHeapObject(ret);
2165
- };
2166
2166
  imports.wbg.__wbg_wasmpeerservice_new = function(arg0) {
2167
2167
  const ret = WasmPeerService.__wrap(arg0);
2168
2168
  return addHeapObject(ret);
@@ -2192,21 +2192,21 @@ function __wbg_get_imports() {
2192
2192
  const ret = getObject(arg0) in getObject(arg1);
2193
2193
  return ret;
2194
2194
  };
2195
- imports.wbg.__wbg_sendmessage_6eed66fc56c8d208 = function(arg0, arg1) {
2195
+ imports.wbg.__wbg_sendmessage_b6cd15352c0033d3 = function(arg0, arg1) {
2196
2196
  MsgHandler.send_message(takeObject(arg0), getObject(arg1));
2197
2197
  };
2198
- imports.wbg.__wbg_sendmessagetoall_9fc2a2ba84c75ad5 = function(arg0, arg1) {
2198
+ imports.wbg.__wbg_sendmessagetoall_9308a5233bd0ad97 = function(arg0, arg1) {
2199
2199
  MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
2200
2200
  };
2201
- imports.wbg.__wbg_connecttopeer_700ac621b384ae02 = function() { return handleError(function (arg0) {
2201
+ imports.wbg.__wbg_connecttopeer_e4a11f36ca8ef04d = function() { return handleError(function (arg0) {
2202
2202
  const ret = MsgHandler.connect_to_peer(takeObject(arg0));
2203
2203
  return addHeapObject(ret);
2204
2204
  }, arguments) };
2205
- imports.wbg.__wbg_disconnectfrompeer_027379d1d1da7bb2 = function() { return handleError(function (arg0) {
2205
+ imports.wbg.__wbg_disconnectfrompeer_a1e921d1caafe4b1 = function() { return handleError(function (arg0) {
2206
2206
  const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
2207
2207
  return addHeapObject(ret);
2208
2208
  }, arguments) };
2209
- imports.wbg.__wbg_fetchblockfrompeer_5e09dbb8d3423229 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
2209
+ imports.wbg.__wbg_fetchblockfrompeer_bdb17c5008066ea8 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
2210
2210
  let deferred0_0;
2211
2211
  let deferred0_1;
2212
2212
  try {
@@ -2218,7 +2218,7 @@ function __wbg_get_imports() {
2218
2218
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2219
2219
  }
2220
2220
  }, arguments) };
2221
- imports.wbg.__wbg_writevalue_7f5f8d1a8b210e43 = function(arg0, arg1, arg2) {
2221
+ imports.wbg.__wbg_writevalue_ab654a69549c7331 = function(arg0, arg1, arg2) {
2222
2222
  let deferred0_0;
2223
2223
  let deferred0_1;
2224
2224
  try {
@@ -2229,7 +2229,7 @@ function __wbg_get_imports() {
2229
2229
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2230
2230
  }
2231
2231
  };
2232
- imports.wbg.__wbg_ensureblockdirectoryexists_c42b0e503357d15e = function() { return handleError(function (arg0, arg1) {
2232
+ imports.wbg.__wbg_ensureblockdirectoryexists_d84f0311f80fede8 = function() { return handleError(function (arg0, arg1) {
2233
2233
  let deferred0_0;
2234
2234
  let deferred0_1;
2235
2235
  try {
@@ -2240,7 +2240,7 @@ function __wbg_get_imports() {
2240
2240
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2241
2241
  }
2242
2242
  }, arguments) };
2243
- imports.wbg.__wbg_readvalue_ff2b459a05a315ae = function() { return handleError(function (arg0, arg1) {
2243
+ imports.wbg.__wbg_readvalue_ddaf37e2705b4e0b = function() { return handleError(function (arg0, arg1) {
2244
2244
  let deferred0_0;
2245
2245
  let deferred0_1;
2246
2246
  try {
@@ -2252,11 +2252,11 @@ function __wbg_get_imports() {
2252
2252
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2253
2253
  }
2254
2254
  }, arguments) };
2255
- imports.wbg.__wbg_loadblockfilelist_8f9ec69529371ee2 = function() { return handleError(function () {
2255
+ imports.wbg.__wbg_loadblockfilelist_90ba19888ab8b80a = function() { return handleError(function () {
2256
2256
  const ret = MsgHandler.load_block_file_list();
2257
2257
  return addHeapObject(ret);
2258
2258
  }, arguments) };
2259
- imports.wbg.__wbg_isexistingfile_681fda248bec72fe = function() { return handleError(function (arg0, arg1) {
2259
+ imports.wbg.__wbg_isexistingfile_9d7bdd5902c0ec1b = function() { return handleError(function (arg0, arg1) {
2260
2260
  let deferred0_0;
2261
2261
  let deferred0_1;
2262
2262
  try {
@@ -2268,7 +2268,7 @@ function __wbg_get_imports() {
2268
2268
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2269
2269
  }
2270
2270
  }, arguments) };
2271
- imports.wbg.__wbg_removevalue_6f5b774457203462 = function() { return handleError(function (arg0, arg1) {
2271
+ imports.wbg.__wbg_removevalue_92b6bdc20ac7302c = function() { return handleError(function (arg0, arg1) {
2272
2272
  let deferred0_0;
2273
2273
  let deferred0_1;
2274
2274
  try {
@@ -2280,16 +2280,16 @@ function __wbg_get_imports() {
2280
2280
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2281
2281
  }
2282
2282
  }, arguments) };
2283
- imports.wbg.__wbg_processapicall_3a54b747f69f307a = function(arg0, arg1, arg2) {
2283
+ imports.wbg.__wbg_processapicall_49a7a88c3c222f91 = function(arg0, arg1, arg2) {
2284
2284
  MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
2285
2285
  };
2286
- imports.wbg.__wbg_processapisuccess_110d9de5d819a5d0 = function(arg0, arg1, arg2) {
2286
+ imports.wbg.__wbg_processapisuccess_30e3d63b3e35b07c = function(arg0, arg1, arg2) {
2287
2287
  MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
2288
2288
  };
2289
- imports.wbg.__wbg_processapierror_077e052ba363ff00 = function(arg0, arg1, arg2) {
2289
+ imports.wbg.__wbg_processapierror_5a41c561a7f122df = function(arg0, arg1, arg2) {
2290
2290
  MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
2291
2291
  };
2292
- imports.wbg.__wbg_sendinterfaceevent_ff12dc9f894dd423 = function(arg0, arg1, arg2) {
2292
+ imports.wbg.__wbg_sendinterfaceevent_dcbb913cdc53d886 = function(arg0, arg1, arg2) {
2293
2293
  let deferred0_0;
2294
2294
  let deferred0_1;
2295
2295
  try {
@@ -2300,7 +2300,7 @@ function __wbg_get_imports() {
2300
2300
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2301
2301
  }
2302
2302
  };
2303
- imports.wbg.__wbg_sendblocksuccess_c4df09f7392ab67e = function(arg0, arg1, arg2) {
2303
+ imports.wbg.__wbg_sendblocksuccess_aa98a757628cd322 = function(arg0, arg1, arg2) {
2304
2304
  let deferred0_0;
2305
2305
  let deferred0_1;
2306
2306
  try {
@@ -2311,10 +2311,10 @@ function __wbg_get_imports() {
2311
2311
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2312
2312
  }
2313
2313
  };
2314
- imports.wbg.__wbg_sendwalletupdate_c1fd581c63f5e042 = function() {
2314
+ imports.wbg.__wbg_sendwalletupdate_422096362b7d277b = function() {
2315
2315
  MsgHandler.send_wallet_update();
2316
2316
  };
2317
- imports.wbg.__wbg_sendnewversionalert_4472a16aaa4f9818 = function(arg0, arg1, arg2) {
2317
+ imports.wbg.__wbg_sendnewversionalert_d54ed578f08c038c = function(arg0, arg1, arg2) {
2318
2318
  let deferred0_0;
2319
2319
  let deferred0_1;
2320
2320
  try {
@@ -2325,13 +2325,13 @@ function __wbg_get_imports() {
2325
2325
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2326
2326
  }
2327
2327
  };
2328
- imports.wbg.__wbg_savewallet_6200d4f613e92997 = function() {
2328
+ imports.wbg.__wbg_savewallet_78ec3f34dc8ff175 = function() {
2329
2329
  MsgHandler.save_wallet();
2330
2330
  };
2331
- imports.wbg.__wbg_loadwallet_7fa7401dcf88043f = function() {
2331
+ imports.wbg.__wbg_loadwallet_b9163f50c5b172dd = function() {
2332
2332
  MsgHandler.load_wallet();
2333
2333
  };
2334
- imports.wbg.__wbg_getmyservices_a5a364be0d00997b = function() {
2334
+ imports.wbg.__wbg_getmyservices_d47f47cbd23e2f64 = function() {
2335
2335
  const ret = MsgHandler.get_my_services();
2336
2336
  _assertClass(ret, WasmPeerServiceList);
2337
2337
  var ptr1 = ret.__destroy_into_raw();
Binary file
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "saito-wasm",
3
- "version": "0.1.32",
3
+ "version": "0.1.34",
4
4
  "files": [
5
5
  "index_bg.wasm",
6
6
  "index.js",
@@ -12,7 +12,7 @@
12
12
  "./snippets/*"
13
13
  ],
14
14
  "dependencies": {
15
- "cross-env": "^7.0.3",
16
- "node-fetch": "^3.3.0"
15
+ "node-fetch": "^3.3.0",
16
+ "cross-env": "^7.0.3"
17
17
  }
18
18
  }