lumina-node-wasm 0.8.2 → 0.8.3

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.
@@ -53,16 +53,6 @@ export enum SamplingStatus {
53
53
  */
54
54
  type ReadableStreamType = "bytes";
55
55
 
56
- /**
57
- * Coin
58
- */
59
- export interface Coin {
60
- denom: string,
61
- amount: bigint
62
- }
63
-
64
-
65
-
66
56
  /**
67
57
  * Public key
68
58
  */
@@ -94,6 +84,16 @@ type ReadableStreamType = "bytes";
94
84
 
95
85
 
96
86
 
87
+ /**
88
+ * Coin
89
+ */
90
+ export interface Coin {
91
+ denom: string,
92
+ amount: bigint
93
+ }
94
+
95
+
96
+
97
97
  /**
98
98
  * A payload to be signed
99
99
  */
@@ -128,20 +128,23 @@ const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
128
128
  wasm.__wbindgen_export_6.get(state.dtor)(state.a, state.b)
129
129
  });
130
130
 
131
- function makeClosure(arg0, arg1, dtor, f) {
131
+ function makeMutClosure(arg0, arg1, dtor, f) {
132
132
  const state = { a: arg0, b: arg1, cnt: 1, dtor };
133
133
  const real = (...args) => {
134
134
  // First up with a closure we increment the internal reference
135
135
  // count. This ensures that the Rust closure environment won't
136
136
  // be deallocated while we're invoking it.
137
137
  state.cnt++;
138
+ const a = state.a;
139
+ state.a = 0;
138
140
  try {
139
- return f(state.a, state.b, ...args);
141
+ return f(a, state.b, ...args);
140
142
  } finally {
141
143
  if (--state.cnt === 0) {
142
- wasm.__wbindgen_export_6.get(state.dtor)(state.a, state.b);
143
- state.a = 0;
144
+ wasm.__wbindgen_export_6.get(state.dtor)(a, state.b);
144
145
  CLOSURE_DTORS.unregister(state);
146
+ } else {
147
+ state.a = a;
145
148
  }
146
149
  }
147
150
  };
@@ -150,23 +153,20 @@ function makeClosure(arg0, arg1, dtor, f) {
150
153
  return real;
151
154
  }
152
155
 
153
- function makeMutClosure(arg0, arg1, dtor, f) {
156
+ function makeClosure(arg0, arg1, dtor, f) {
154
157
  const state = { a: arg0, b: arg1, cnt: 1, dtor };
155
158
  const real = (...args) => {
156
159
  // First up with a closure we increment the internal reference
157
160
  // count. This ensures that the Rust closure environment won't
158
161
  // be deallocated while we're invoking it.
159
162
  state.cnt++;
160
- const a = state.a;
161
- state.a = 0;
162
163
  try {
163
- return f(a, state.b, ...args);
164
+ return f(state.a, state.b, ...args);
164
165
  } finally {
165
166
  if (--state.cnt === 0) {
166
- wasm.__wbindgen_export_6.get(state.dtor)(a, state.b);
167
+ wasm.__wbindgen_export_6.get(state.dtor)(state.a, state.b);
168
+ state.a = 0;
167
169
  CLOSURE_DTORS.unregister(state);
168
- } else {
169
- state.a = a;
170
170
  }
171
171
  }
172
172
  };
@@ -239,12 +239,6 @@ function debugString(val) {
239
239
  // TODO we could test for more things here, like `Set`s and `Map`s.
240
240
  return className;
241
241
  }
242
- /**
243
- * Set up a logging layer that direct logs to the browser's console.
244
- */
245
- export function setup_logging() {
246
- wasm.setup_logging();
247
- }
248
242
 
249
243
  function getArrayJsValueFromWasm0(ptr, len) {
250
244
  ptr = ptr >>> 0;
@@ -272,6 +266,12 @@ function _assertClass(instance, klass) {
272
266
  throw new Error(`expected instance of ${klass.name}`);
273
267
  }
274
268
  }
269
+ /**
270
+ * Set up a logging layer that direct logs to the browser's console.
271
+ */
272
+ export function setup_logging() {
273
+ wasm.setup_logging();
274
+ }
275
275
 
276
276
  function takeFromExternrefTable0(idx) {
277
277
  const value = wasm.__wbindgen_export_4.get(idx);
@@ -291,35 +291,35 @@ export function protoEncodeSignDoc(sign_doc) {
291
291
  }
292
292
 
293
293
  function __wbg_adapter_64(arg0, arg1, arg2) {
294
- wasm.closure910_externref_shim(arg0, arg1, arg2);
294
+ wasm.closure1100_externref_shim(arg0, arg1, arg2);
295
295
  }
296
296
 
297
297
  function __wbg_adapter_67(arg0, arg1, arg2) {
298
- wasm.closure914_externref_shim(arg0, arg1, arg2);
298
+ wasm.closure1104_externref_shim(arg0, arg1, arg2);
299
299
  }
300
300
 
301
301
  function __wbg_adapter_70(arg0, arg1) {
302
- wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h4743a7cc2d205e02(arg0, arg1);
302
+ wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h1005ef3461251510(arg0, arg1);
303
303
  }
304
304
 
305
305
  function __wbg_adapter_73(arg0, arg1, arg2) {
306
- wasm.closure1631_externref_shim(arg0, arg1, arg2);
306
+ wasm.closure1625_externref_shim(arg0, arg1, arg2);
307
307
  }
308
308
 
309
309
  function __wbg_adapter_80(arg0, arg1, arg2) {
310
- wasm.closure2137_externref_shim(arg0, arg1, arg2);
310
+ wasm.closure2142_externref_shim(arg0, arg1, arg2);
311
311
  }
312
312
 
313
313
  function __wbg_adapter_83(arg0, arg1) {
314
- wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h8135cbb9e0286213(arg0, arg1);
314
+ wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hf9c2165e287ed3c0(arg0, arg1);
315
315
  }
316
316
 
317
317
  function __wbg_adapter_86(arg0, arg1, arg2) {
318
- wasm.closure2824_externref_shim(arg0, arg1, arg2);
318
+ wasm.closure2811_externref_shim(arg0, arg1, arg2);
319
319
  }
320
320
 
321
321
  function __wbg_adapter_682(arg0, arg1, arg2, arg3) {
322
- wasm.closure2842_externref_shim(arg0, arg1, arg2, arg3);
322
+ wasm.closure2829_externref_shim(arg0, arg1, arg2, arg3);
323
323
  }
324
324
 
325
325
  /**
@@ -2796,7 +2796,7 @@ export function __wbg_abort_99fc644e2c79c9fb() { return handleError(function (ar
2796
2796
  arg0.abort();
2797
2797
  }, arguments) };
2798
2798
 
2799
- export function __wbg_accountNumber_121c2e37366d2972(arg0) {
2799
+ export function __wbg_accountNumber_096c5d3a666cbb89(arg0) {
2800
2800
  const ret = arg0.accountNumber;
2801
2801
  return ret;
2802
2802
  };
@@ -2824,7 +2824,7 @@ export function __wbg_apply_eb9e9b97497f91e4() { return handleError(function (ar
2824
2824
  return ret;
2825
2825
  }, arguments) };
2826
2826
 
2827
- export function __wbg_authInfoBytes_8b86c2efe5465846(arg0, arg1) {
2827
+ export function __wbg_authInfoBytes_0309b41aaa8a3a82(arg0, arg1) {
2828
2828
  const ret = arg1.authInfoBytes;
2829
2829
  const ptr1 = passArray8ToWasm0(ret, wasm.__wbindgen_malloc);
2830
2830
  const len1 = WASM_VECTOR_LEN;
@@ -2852,7 +2852,7 @@ export function __wbg_blockrange_unwrap(arg0) {
2852
2852
  return ret;
2853
2853
  };
2854
2854
 
2855
- export function __wbg_bodyBytes_7dd0c3b48bbba77f(arg0, arg1) {
2855
+ export function __wbg_bodyBytes_92e6567c4e4380d4(arg0, arg1) {
2856
2856
  const ret = arg1.bodyBytes;
2857
2857
  const ptr1 = passArray8ToWasm0(ret, wasm.__wbindgen_malloc);
2858
2858
  const len1 = WASM_VECTOR_LEN;
@@ -2920,7 +2920,7 @@ export function __wbg_cause_9940c4e8dfcd5129(arg0) {
2920
2920
  return ret;
2921
2921
  };
2922
2922
 
2923
- export function __wbg_chainId_84d9e6fe45faca43(arg0, arg1) {
2923
+ export function __wbg_chainId_c40e69e5212f7d5f(arg0, arg1) {
2924
2924
  const ret = arg1.chainId;
2925
2925
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2926
2926
  const len1 = WASM_VECTOR_LEN;
@@ -2941,7 +2941,7 @@ export function __wbg_clearInterval_eba67734fd13a7f1(arg0, arg1) {
2941
2941
  arg0.clearInterval(arg1);
2942
2942
  };
2943
2943
 
2944
- export function __wbg_clearTimeout_1313f6f67a9e499e(arg0) {
2944
+ export function __wbg_clearTimeout_16be8da09780afeb(arg0) {
2945
2945
  clearTimeout(arg0);
2946
2946
  };
2947
2947
 
@@ -3135,7 +3135,7 @@ export function __wbg_fetch_3079ee47bab2b144(arg0, arg1) {
3135
3135
  return ret;
3136
3136
  };
3137
3137
 
3138
- export function __wbg_fetch_76c96a54db5c99a7(arg0) {
3138
+ export function __wbg_fetch_36ba5d8db86d49da(arg0) {
3139
3139
  const ret = fetch(arg0);
3140
3140
  return ret;
3141
3141
  };
@@ -3145,13 +3145,13 @@ export function __wbg_from_2a5d3e218e67aa85(arg0) {
3145
3145
  return ret;
3146
3146
  };
3147
3147
 
3148
- export function __wbg_gasLimit_c2be35081d7a92e6(arg0, arg1) {
3148
+ export function __wbg_gasLimit_88cf5ed7e6f1ecbc(arg0, arg1) {
3149
3149
  const ret = arg1.gasLimit;
3150
3150
  getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
3151
3151
  getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
3152
3152
  };
3153
3153
 
3154
- export function __wbg_gasPrice_e8f7f10704595c50(arg0, arg1) {
3154
+ export function __wbg_gasPrice_5803eeea67854c26(arg0, arg1) {
3155
3155
  const ret = arg1.gasPrice;
3156
3156
  getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
3157
3157
  getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
@@ -3765,15 +3765,15 @@ export function __wbg_ports_b00492ca2866b691(arg0) {
3765
3765
  return ret;
3766
3766
  };
3767
3767
 
3768
- export function __wbg_postMessage_0ddd829db04d7ca0() { return handleError(function (arg0, arg1, arg2) {
3769
- arg0.postMessage(arg1, arg2);
3768
+ export function __wbg_postMessage_bb72e89e7ba80355() { return handleError(function (arg0, arg1) {
3769
+ arg0.postMessage(arg1);
3770
3770
  }, arguments) };
3771
3771
 
3772
- export function __wbg_postMessage_a80a624a33a099b7() { return handleError(function (arg0, arg1) {
3773
- arg0.postMessage(arg1);
3772
+ export function __wbg_postMessage_de550523182859a6() { return handleError(function (arg0, arg1, arg2) {
3773
+ arg0.postMessage(arg1, arg2);
3774
3774
  }, arguments) };
3775
3775
 
3776
- export function __wbg_postMessage_bb72e89e7ba80355() { return handleError(function (arg0, arg1) {
3776
+ export function __wbg_postMessage_de68b19c916ffd0c() { return handleError(function (arg0, arg1) {
3777
3777
  arg0.postMessage(arg1);
3778
3778
  }, arguments) };
3779
3779
 
@@ -3892,7 +3892,7 @@ export function __wbg_setInterval_ed3b5e3c3ebb8a6d() { return handleError(functi
3892
3892
  return ret;
3893
3893
  }, arguments) };
3894
3894
 
3895
- export function __wbg_setTimeout_d8a2f689cdf318cb(arg0, arg1) {
3895
+ export function __wbg_setTimeout_bffa80043dd7c9ad(arg0, arg1) {
3896
3896
  const ret = setTimeout(arg0, arg1 >>> 0);
3897
3897
  return ret;
3898
3898
  };
@@ -4139,7 +4139,7 @@ export function __wbg_txclient_new(arg0) {
4139
4139
  return ret;
4140
4140
  };
4141
4141
 
4142
- export function __wbg_typeUrl_ae57c1589a39dff7(arg0, arg1) {
4142
+ export function __wbg_typeUrl_0dbe72e2685a0c8c(arg0, arg1) {
4143
4143
  const ret = arg1.typeUrl;
4144
4144
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
4145
4145
  const len1 = WASM_VECTOR_LEN;
@@ -4168,14 +4168,6 @@ export function __wbg_userAgent_d036e8722fea0cde() { return handleError(function
4168
4168
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
4169
4169
  }, arguments) };
4170
4170
 
4171
- export function __wbg_value_2dd2bace22d8214f(arg0, arg1) {
4172
- const ret = arg1.value;
4173
- const ptr1 = passArray8ToWasm0(ret, wasm.__wbindgen_malloc);
4174
- const len1 = WASM_VECTOR_LEN;
4175
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
4176
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
4177
- };
4178
-
4179
4171
  export function __wbg_value_68c4e9a54bb7fd5e() { return handleError(function (arg0) {
4180
4172
  const ret = arg0.value;
4181
4173
  return ret;
@@ -4186,6 +4178,14 @@ export function __wbg_value_cd1ffa7b1ab794f1(arg0) {
4186
4178
  return ret;
4187
4179
  };
4188
4180
 
4181
+ export function __wbg_value_fa953a5d0dd5c17e(arg0, arg1) {
4182
+ const ret = arg1.value;
4183
+ const ptr1 = passArray8ToWasm0(ret, wasm.__wbindgen_malloc);
4184
+ const len1 = WASM_VECTOR_LEN;
4185
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
4186
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
4187
+ };
4188
+
4189
4189
  export function __wbg_versions_c71aa1626a93e0a1(arg0) {
4190
4190
  const ret = arg0.versions;
4191
4191
  return ret;
@@ -4257,48 +4257,48 @@ export function __wbindgen_cb_drop(arg0) {
4257
4257
  return ret;
4258
4258
  };
4259
4259
 
4260
- export function __wbindgen_closure_wrapper2428(arg0, arg1, arg2) {
4261
- const ret = makeClosure(arg0, arg1, 911, __wbg_adapter_64);
4260
+ export function __wbindgen_closure_wrapper3282(arg0, arg1, arg2) {
4261
+ const ret = makeMutClosure(arg0, arg1, 1101, __wbg_adapter_64);
4262
4262
  return ret;
4263
4263
  };
4264
4264
 
4265
- export function __wbindgen_closure_wrapper2430(arg0, arg1, arg2) {
4266
- const ret = makeMutClosure(arg0, arg1, 911, __wbg_adapter_67);
4265
+ export function __wbindgen_closure_wrapper3284(arg0, arg1, arg2) {
4266
+ const ret = makeClosure(arg0, arg1, 1101, __wbg_adapter_67);
4267
4267
  return ret;
4268
4268
  };
4269
4269
 
4270
- export function __wbindgen_closure_wrapper4366(arg0, arg1, arg2) {
4271
- const ret = makeMutClosure(arg0, arg1, 1480, __wbg_adapter_70);
4270
+ export function __wbindgen_closure_wrapper4446(arg0, arg1, arg2) {
4271
+ const ret = makeMutClosure(arg0, arg1, 1486, __wbg_adapter_70);
4272
4272
  return ret;
4273
4273
  };
4274
4274
 
4275
- export function __wbindgen_closure_wrapper4690(arg0, arg1, arg2) {
4276
- const ret = makeMutClosure(arg0, arg1, 1632, __wbg_adapter_73);
4275
+ export function __wbindgen_closure_wrapper4751(arg0, arg1, arg2) {
4276
+ const ret = makeMutClosure(arg0, arg1, 1626, __wbg_adapter_73);
4277
4277
  return ret;
4278
4278
  };
4279
4279
 
4280
- export function __wbindgen_closure_wrapper4691(arg0, arg1, arg2) {
4281
- const ret = makeMutClosure(arg0, arg1, 1632, __wbg_adapter_73);
4280
+ export function __wbindgen_closure_wrapper4752(arg0, arg1, arg2) {
4281
+ const ret = makeMutClosure(arg0, arg1, 1626, __wbg_adapter_73);
4282
4282
  return ret;
4283
4283
  };
4284
4284
 
4285
- export function __wbindgen_closure_wrapper4692(arg0, arg1, arg2) {
4286
- const ret = makeMutClosure(arg0, arg1, 1632, __wbg_adapter_73);
4285
+ export function __wbindgen_closure_wrapper4753(arg0, arg1, arg2) {
4286
+ const ret = makeMutClosure(arg0, arg1, 1626, __wbg_adapter_73);
4287
4287
  return ret;
4288
4288
  };
4289
4289
 
4290
- export function __wbindgen_closure_wrapper6145(arg0, arg1, arg2) {
4291
- const ret = makeMutClosure(arg0, arg1, 2138, __wbg_adapter_80);
4290
+ export function __wbindgen_closure_wrapper6226(arg0, arg1, arg2) {
4291
+ const ret = makeMutClosure(arg0, arg1, 2143, __wbg_adapter_80);
4292
4292
  return ret;
4293
4293
  };
4294
4294
 
4295
- export function __wbindgen_closure_wrapper6253(arg0, arg1, arg2) {
4296
- const ret = makeMutClosure(arg0, arg1, 2195, __wbg_adapter_83);
4295
+ export function __wbindgen_closure_wrapper6335(arg0, arg1, arg2) {
4296
+ const ret = makeMutClosure(arg0, arg1, 2200, __wbg_adapter_83);
4297
4297
  return ret;
4298
4298
  };
4299
4299
 
4300
- export function __wbindgen_closure_wrapper8032(arg0, arg1, arg2) {
4301
- const ret = makeMutClosure(arg0, arg1, 2825, __wbg_adapter_86);
4300
+ export function __wbindgen_closure_wrapper8108(arg0, arg1, arg2) {
4301
+ const ret = makeMutClosure(arg0, arg1, 2812, __wbg_adapter_86);
4302
4302
  return ret;
4303
4303
  };
4304
4304
 
Binary file
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "Eiger <hello@eiger.co>"
6
6
  ],
7
7
  "description": "Browser compatibility layer for the Lumina node",
8
- "version": "0.8.2",
8
+ "version": "0.8.3",
9
9
  "license": "Apache-2.0",
10
10
  "repository": {
11
11
  "type": "git",