lumina-node-wasm 0.12.0 → 0.13.0

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.
@@ -265,12 +265,6 @@ function makeClosure(arg0, arg1, dtor, f) {
265
265
  CLOSURE_DTORS.register(real, state, state);
266
266
  return real;
267
267
  }
268
- /**
269
- * Set up a logging layer that direct logs to the browser's console.
270
- */
271
- export function setup_logging() {
272
- wasm.setup_logging();
273
- }
274
268
 
275
269
  function _assertClass(instance, klass) {
276
270
  if (!(instance instanceof klass)) {
@@ -287,6 +281,12 @@ function passArrayJsValueToWasm0(array, malloc) {
287
281
  WASM_VECTOR_LEN = array.length;
288
282
  return ptr;
289
283
  }
284
+ /**
285
+ * Set up a logging layer that direct logs to the browser's console.
286
+ */
287
+ export function setup_logging() {
288
+ wasm.setup_logging();
289
+ }
290
290
 
291
291
  function takeFromExternrefTable0(idx) {
292
292
  const value = wasm.__wbindgen_export_4.get(idx);
@@ -305,41 +305,46 @@ export function protoEncodeSignDoc(sign_doc) {
305
305
  return v1;
306
306
  }
307
307
 
308
- function __wbg_adapter_8(arg0, arg1, arg2) {
309
- wasm.closure1785_externref_shim(arg0, arg1, arg2);
308
+ function __wbg_adapter_6(arg0, arg1, arg2) {
309
+ wasm.closure313_externref_shim(arg0, arg1, arg2);
310
310
  }
311
311
 
312
- function __wbg_adapter_13(arg0, arg1) {
313
- wasm.wasm_bindgen__convert__closures_____invoke__h2abc87618de50089(arg0, arg1);
312
+ function __wbg_adapter_9(arg0, arg1, arg2) {
313
+ wasm.closure1892_externref_shim(arg0, arg1, arg2);
314
314
  }
315
315
 
316
- function __wbg_adapter_16(arg0, arg1, arg2) {
317
- wasm.closure2977_externref_shim(arg0, arg1, arg2);
316
+ function __wbg_adapter_14(arg0, arg1, arg2) {
317
+ wasm.closure2958_externref_shim(arg0, arg1, arg2);
318
318
  }
319
319
 
320
- function __wbg_adapter_19(arg0, arg1) {
321
- wasm.wasm_bindgen__convert__closures_____invoke__hc000bd3f01dbb89a(arg0, arg1);
320
+ function __wbg_adapter_23(arg0, arg1) {
321
+ wasm.wasm_bindgen__convert__closures_____invoke__hbc27f06da80e4608(arg0, arg1);
322
322
  }
323
323
 
324
324
  function __wbg_adapter_28(arg0, arg1, arg2) {
325
- wasm.closure670_externref_shim(arg0, arg1, arg2);
325
+ wasm.closure311_externref_shim(arg0, arg1, arg2);
326
326
  }
327
327
 
328
- function __wbg_adapter_33(arg0, arg1, arg2) {
329
- wasm.closure2875_externref_shim(arg0, arg1, arg2);
328
+ function __wbg_adapter_31(arg0, arg1, arg2) {
329
+ const ret = wasm.closure308_externref_shim(arg0, arg1, arg2);
330
+ return ret;
331
+ }
332
+
333
+ function __wbg_adapter_34(arg0, arg1, arg2) {
334
+ wasm.closure3066_externref_shim(arg0, arg1, arg2);
330
335
  }
331
336
 
332
- function __wbg_adapter_38(arg0, arg1, arg2) {
333
- const ret = wasm.closure675_externref_shim(arg0, arg1, arg2);
337
+ function __wbg_adapter_47(arg0, arg1) {
338
+ const ret = wasm.closure315_externref_shim(arg0, arg1);
334
339
  return ret;
335
340
  }
336
341
 
337
- function __wbg_adapter_47(arg0, arg1, arg2) {
338
- wasm.closure673_externref_shim(arg0, arg1, arg2);
342
+ function __wbg_adapter_52(arg0, arg1) {
343
+ wasm.wasm_bindgen__convert__closures_____invoke__h4a5ee0ea235e8a7d(arg0, arg1);
339
344
  }
340
345
 
341
- function __wbg_adapter_982(arg0, arg1, arg2, arg3) {
342
- wasm.closure3002_externref_shim(arg0, arg1, arg2, arg3);
346
+ function __wbg_adapter_940(arg0, arg1, arg2, arg3) {
347
+ wasm.closure3085_externref_shim(arg0, arg1, arg2, arg3);
343
348
  }
344
349
 
345
350
  /**
@@ -1198,6 +1203,47 @@ export class AppVersion {
1198
1203
  }
1199
1204
  }
1200
1205
 
1206
+ const AsyncIteratorImplFinalization = (typeof FinalizationRegistry === 'undefined')
1207
+ ? { register: () => {}, unregister: () => {} }
1208
+ : new FinalizationRegistry(ptr => wasm.__wbg_asynciteratorimpl_free(ptr >>> 0, 1));
1209
+
1210
+ export class AsyncIteratorImpl {
1211
+
1212
+ static __wrap(ptr) {
1213
+ ptr = ptr >>> 0;
1214
+ const obj = Object.create(AsyncIteratorImpl.prototype);
1215
+ obj.__wbg_ptr = ptr;
1216
+ AsyncIteratorImplFinalization.register(obj, obj.__wbg_ptr, obj);
1217
+ return obj;
1218
+ }
1219
+
1220
+ __destroy_into_raw() {
1221
+ const ptr = this.__wbg_ptr;
1222
+ this.__wbg_ptr = 0;
1223
+ AsyncIteratorImplFinalization.unregister(this);
1224
+ return ptr;
1225
+ }
1226
+
1227
+ free() {
1228
+ const ptr = this.__destroy_into_raw();
1229
+ wasm.__wbg_asynciteratorimpl_free(ptr, 0);
1230
+ }
1231
+ /**
1232
+ * @returns {any}
1233
+ */
1234
+ return_self() {
1235
+ const ret = wasm.asynciteratorimpl_return_self(this.__wbg_ptr);
1236
+ return ret;
1237
+ }
1238
+ /**
1239
+ * @returns {Promise<any>}
1240
+ */
1241
+ next() {
1242
+ const ret = wasm.asynciteratorimpl_next(this.__wbg_ptr);
1243
+ return ret;
1244
+ }
1245
+ }
1246
+
1201
1247
  const AttributeFinalization = (typeof FinalizationRegistry === 'undefined')
1202
1248
  ? { register: () => {}, unregister: () => {} }
1203
1249
  : new FinalizationRegistry(ptr => wasm.__wbg_attribute_free(ptr >>> 0, 1));
@@ -1617,6 +1663,80 @@ export class BlobParams {
1617
1663
  }
1618
1664
  }
1619
1665
 
1666
+ const BlobsAtHeightFinalization = (typeof FinalizationRegistry === 'undefined')
1667
+ ? { register: () => {}, unregister: () => {} }
1668
+ : new FinalizationRegistry(ptr => wasm.__wbg_blobsatheight_free(ptr >>> 0, 1));
1669
+ /**
1670
+ * List of blobs together with height they were published at
1671
+ */
1672
+ export class BlobsAtHeight {
1673
+
1674
+ static __wrap(ptr) {
1675
+ ptr = ptr >>> 0;
1676
+ const obj = Object.create(BlobsAtHeight.prototype);
1677
+ obj.__wbg_ptr = ptr;
1678
+ BlobsAtHeightFinalization.register(obj, obj.__wbg_ptr, obj);
1679
+ return obj;
1680
+ }
1681
+
1682
+ toJSON() {
1683
+ return {
1684
+ height: this.height,
1685
+ blobs: this.blobs,
1686
+ };
1687
+ }
1688
+
1689
+ toString() {
1690
+ return JSON.stringify(this);
1691
+ }
1692
+
1693
+ __destroy_into_raw() {
1694
+ const ptr = this.__wbg_ptr;
1695
+ this.__wbg_ptr = 0;
1696
+ BlobsAtHeightFinalization.unregister(this);
1697
+ return ptr;
1698
+ }
1699
+
1700
+ free() {
1701
+ const ptr = this.__destroy_into_raw();
1702
+ wasm.__wbg_blobsatheight_free(ptr, 0);
1703
+ }
1704
+ /**
1705
+ * Height the blobs were published at
1706
+ * @returns {bigint}
1707
+ */
1708
+ get height() {
1709
+ const ret = wasm.__wbg_get_blobparams_gov_max_square_size(this.__wbg_ptr);
1710
+ return BigInt.asUintN(64, ret);
1711
+ }
1712
+ /**
1713
+ * Height the blobs were published at
1714
+ * @param {bigint} arg0
1715
+ */
1716
+ set height(arg0) {
1717
+ wasm.__wbg_set_blobparams_gov_max_square_size(this.__wbg_ptr, arg0);
1718
+ }
1719
+ /**
1720
+ * Published blobs
1721
+ * @returns {Blob[]}
1722
+ */
1723
+ get blobs() {
1724
+ const ret = wasm.__wbg_get_blobsatheight_blobs(this.__wbg_ptr);
1725
+ var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
1726
+ wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
1727
+ return v1;
1728
+ }
1729
+ /**
1730
+ * Published blobs
1731
+ * @param {Blob[]} arg0
1732
+ */
1733
+ set blobs(arg0) {
1734
+ const ptr0 = passArrayJsValueToWasm0(arg0, wasm.__wbindgen_malloc);
1735
+ const len0 = WASM_VECTOR_LEN;
1736
+ wasm.__wbg_set_blobsatheight_blobs(this.__wbg_ptr, ptr0, len0);
1737
+ }
1738
+ }
1739
+
1620
1740
  const BlockFinalization = (typeof FinalizationRegistry === 'undefined')
1621
1741
  ? { register: () => {}, unregister: () => {} }
1622
1742
  : new FinalizationRegistry(ptr => wasm.__wbg_block_free(ptr >>> 0, 1));
@@ -2749,7 +2869,7 @@ const DataAvailabilityHeaderFinalization = (typeof FinalizationRegistry === 'und
2749
2869
  * # fn extended_header() -> ExtendedHeader {
2750
2870
  * # unimplemented!();
2751
2871
  * # }
2752
- * # fn shares_with_proof(_: Height, _: &Namespace) -> (Vec<Share>, NamespaceProof) {
2872
+ * # fn shares_with_proof(_: u64, _: &Namespace) -> (Vec<Share>, NamespaceProof) {
2753
2873
  * # unimplemented!();
2754
2874
  * # }
2755
2875
  * // fetch the block header and data for your namespace
@@ -3596,6 +3716,28 @@ export class GrpcClient {
3596
3716
  const ret = wasm.grpcclient_abciQuery(this.__wbg_ptr, ptr0, len0, ptr1, len1, height, prove);
3597
3717
  return ret;
3598
3718
  }
3719
+ /**
3720
+ * Confirm transaction broadcasted with [`broadcast_blobs`] or [`broadcast_message`].
3721
+ *
3722
+ * # Example
3723
+ * ```js
3724
+ * const ns = Namespace.newV0(new Uint8Array([97, 98, 99]));
3725
+ * const data = new Uint8Array([100, 97, 116, 97]);
3726
+ * const blob = new Blob(ns, data, AppVersion.latest());
3727
+ *
3728
+ * const broadcastedTx = await txClient.broadcastBlobs([blob]);
3729
+ * console.log("Tx hash:", broadcastedTx.hash);
3730
+ * const txInfo = await txClient.confirmTx(broadcastedTx);
3731
+ * console.log("Confirmed at height:", txInfo.height);
3732
+ * ```
3733
+ * @param {BroadcastedTx} broadcasted_tx
3734
+ * @param {TxConfig | null} [tx_config]
3735
+ * @returns {Promise<TxInfo>}
3736
+ */
3737
+ confirmTx(broadcasted_tx, tx_config) {
3738
+ const ret = wasm.grpcclient_confirmTx(this.__wbg_ptr, broadcasted_tx, isLikeNone(tx_config) ? 0 : addToExternrefTable0(tx_config));
3739
+ return ret;
3740
+ }
3599
3741
  /**
3600
3742
  * AppVersion of the client
3601
3743
  * @returns {Promise<AppVersion>}
@@ -3711,6 +3853,40 @@ export class GrpcClient {
3711
3853
  const ret = wasm.grpcclient_submitMessage(this.__wbg_ptr, message, isLikeNone(tx_config) ? 0 : addToExternrefTable0(tx_config));
3712
3854
  return ret;
3713
3855
  }
3856
+ /**
3857
+ * Broadcast blobs to the celestia network, and return without confirming.
3858
+ *
3859
+ * # Example
3860
+ * ```js
3861
+ * const ns = Namespace.newV0(new Uint8Array([97, 98, 99]));
3862
+ * const data = new Uint8Array([100, 97, 116, 97]);
3863
+ * const blob = new Blob(ns, data, AppVersion.latest());
3864
+ *
3865
+ * const broadcastedTx = await txClient.broadcastBlobs([blob]);
3866
+ * console.log("Tx hash:", broadcastedTx.hash);
3867
+ * const txInfo = await txClient.confirmTx(broadcastedTx);
3868
+ * ```
3869
+ *
3870
+ * # Note
3871
+ *
3872
+ * Provided blobs will be consumed by this method, meaning
3873
+ * they will no longer be accessible. If this behavior is not desired,
3874
+ * consider using `Blob.clone()`.
3875
+ *
3876
+ * ```js
3877
+ * const blobs = [blob1, blob2, blob3];
3878
+ * await txClient.broadcastBlobs(blobs.map(b => b.clone()));
3879
+ * ```
3880
+ * @param {Blob[]} blobs
3881
+ * @param {TxConfig | null} [tx_config]
3882
+ * @returns {Promise<BroadcastedTx>}
3883
+ */
3884
+ broadcastBlobs(blobs, tx_config) {
3885
+ const ptr0 = passArrayJsValueToWasm0(blobs, wasm.__wbindgen_malloc);
3886
+ const len0 = WASM_VECTOR_LEN;
3887
+ const ret = wasm.grpcclient_broadcastBlobs(this.__wbg_ptr, ptr0, len0, isLikeNone(tx_config) ? 0 : addToExternrefTable0(tx_config));
3888
+ return ret;
3889
+ }
3714
3890
  /**
3715
3891
  * Get auth params
3716
3892
  * @returns {Promise<AuthParams>}
@@ -3762,6 +3938,36 @@ export class GrpcClient {
3762
3938
  const ret = wasm.grpcclient_getTotalSupply(this.__wbg_ptr);
3763
3939
  return ret;
3764
3940
  }
3941
+ /**
3942
+ * Broadcast message to the celestia network, and return without confirming.
3943
+ *
3944
+ * # Example
3945
+ * ```js
3946
+ * import { Registry } from "@cosmjs/proto-signing";
3947
+ *
3948
+ * const registry = new Registry();
3949
+ * const sendMsg = {
3950
+ * typeUrl: "/cosmos.bank.v1beta1.MsgSend",
3951
+ * value: {
3952
+ * fromAddress: "celestia169s50psyj2f4la9a2235329xz7rk6c53zhw9mm",
3953
+ * toAddress: "celestia1t52q7uqgnjfzdh3wx5m5phvma3umrq8k6tq2p9",
3954
+ * amount: [{ denom: "utia", amount: "10000" }],
3955
+ * },
3956
+ * };
3957
+ * const sendMsgAny = registry.encodeAsAny(sendMsg);
3958
+ *
3959
+ * const broadcastedTx = await txClient.broadcastMessage(sendMsgAny);
3960
+ * console.log("Tx hash:", broadcastedTx.hash);
3961
+ * const txInfo = await txClient.confirmTx(broadcastedTx);
3962
+ * ```
3963
+ * @param {ProtoAny} message
3964
+ * @param {TxConfig | null} [tx_config]
3965
+ * @returns {Promise<BroadcastedTx>}
3966
+ */
3967
+ broadcastMessage(message, tx_config) {
3968
+ const ret = wasm.grpcclient_broadcastMessage(this.__wbg_ptr, message, isLikeNone(tx_config) ? 0 : addToExternrefTable0(tx_config));
3969
+ return ret;
3970
+ }
3765
3971
  /**
3766
3972
  * Estimate gas price for given transaction priority based
3767
3973
  * on the gas prices of the transactions in the last five blocks.
@@ -3867,6 +4073,20 @@ export class GrpcClient {
3867
4073
  const ret = wasm.grpcclient_txStatus(this.__wbg_ptr, ptr0, len0);
3868
4074
  return ret;
3869
4075
  }
4076
+ /**
4077
+ * Create a builder for [`GrpcClient`] with multiple URL endpoints for fallback support.
4078
+ *
4079
+ * When multiple endpoints are configured, the client will automatically
4080
+ * fall back to the next endpoint if a network-related error occurs.
4081
+ * @param {string[]} urls
4082
+ * @returns {GrpcClientBuilder}
4083
+ */
4084
+ static withUrls(urls) {
4085
+ const ptr0 = passArrayJsValueToWasm0(urls, wasm.__wbindgen_malloc);
4086
+ const len0 = WASM_VECTOR_LEN;
4087
+ const ret = wasm.grpcclient_withUrls(ptr0, len0);
4088
+ return GrpcClientBuilder.__wrap(ret);
4089
+ }
3870
4090
  }
3871
4091
 
3872
4092
  const GrpcClientBuilderFinalization = (typeof FinalizationRegistry === 'undefined')
@@ -3882,6 +4102,7 @@ const GrpcClientBuilderFinalization = (typeof FinalizationRegistry === 'undefine
3882
4102
  * ```js
3883
4103
  * const client = await GrpcClient
3884
4104
  * .withUrl("http://127.0.0.1:18080")
4105
+ * .withTimeout(5000) // Optional: 5 second timeout
3885
4106
  * .build()
3886
4107
  * ```
3887
4108
  *
@@ -3943,6 +4164,19 @@ export class GrpcClientBuilder {
3943
4164
  const ptr = this.__destroy_into_raw();
3944
4165
  wasm.__wbg_grpcclientbuilder_free(ptr, 0);
3945
4166
  }
4167
+ /**
4168
+ * Sets the request timeout in milliseconds, overriding default one from the transport.
4169
+ *
4170
+ * Note that this method **consumes** builder and returns updated instance of it.
4171
+ * Make sure to re-assign it if you keep builder in a variable.
4172
+ * @param {bigint} timeout_ms
4173
+ * @returns {GrpcClientBuilder}
4174
+ */
4175
+ withTimeout(timeout_ms) {
4176
+ const ptr = this.__destroy_into_raw();
4177
+ const ret = wasm.grpcclientbuilder_withTimeout(ptr, timeout_ms);
4178
+ return GrpcClientBuilder.__wrap(ret);
4179
+ }
3946
4180
  /**
3947
4181
  * Appends ascii metadata to all requests made by the client.
3948
4182
  *
@@ -4023,6 +4257,24 @@ export class GrpcClientBuilder {
4023
4257
  const ret = wasm.grpcclientbuilder_withUrl(ptr, ptr0, len0);
4024
4258
  return GrpcClientBuilder.__wrap(ret);
4025
4259
  }
4260
+ /**
4261
+ * Add multiple URL endpoints at once for fallback support.
4262
+ *
4263
+ * When multiple endpoints are configured, the client will automatically
4264
+ * fall back to the next endpoint if a network-related error occurs.
4265
+ *
4266
+ * Note that this method **consumes** builder and returns updated instance of it.
4267
+ * Make sure to re-assign it if you keep builder in a variable.
4268
+ * @param {string[]} urls
4269
+ * @returns {GrpcClientBuilder}
4270
+ */
4271
+ withUrls(urls) {
4272
+ const ptr = this.__destroy_into_raw();
4273
+ const ptr0 = passArrayJsValueToWasm0(urls, wasm.__wbindgen_malloc);
4274
+ const len0 = WASM_VECTOR_LEN;
4275
+ const ret = wasm.grpcclientbuilder_withUrls(ptr, ptr0, len0);
4276
+ return GrpcClientBuilder.__wrap(ret);
4277
+ }
4026
4278
  }
4027
4279
 
4028
4280
  const HeaderFinalization = (typeof FinalizationRegistry === 'undefined')
@@ -4497,6 +4749,69 @@ export class IntoUnderlyingSource {
4497
4749
  }
4498
4750
  }
4499
4751
 
4752
+ const IteratorResultObjectFinalization = (typeof FinalizationRegistry === 'undefined')
4753
+ ? { register: () => {}, unregister: () => {} }
4754
+ : new FinalizationRegistry(ptr => wasm.__wbg_iteratorresultobject_free(ptr >>> 0, 1));
4755
+
4756
+ export class IteratorResultObject {
4757
+
4758
+ static __wrap(ptr) {
4759
+ ptr = ptr >>> 0;
4760
+ const obj = Object.create(IteratorResultObject.prototype);
4761
+ obj.__wbg_ptr = ptr;
4762
+ IteratorResultObjectFinalization.register(obj, obj.__wbg_ptr, obj);
4763
+ return obj;
4764
+ }
4765
+
4766
+ __destroy_into_raw() {
4767
+ const ptr = this.__wbg_ptr;
4768
+ this.__wbg_ptr = 0;
4769
+ IteratorResultObjectFinalization.unregister(this);
4770
+ return ptr;
4771
+ }
4772
+
4773
+ free() {
4774
+ const ptr = this.__destroy_into_raw();
4775
+ wasm.__wbg_iteratorresultobject_free(ptr, 0);
4776
+ }
4777
+ /**
4778
+ * Has the value true if the iterator is past the end of the
4779
+ * iterated sequence. In this case value optionally specifies
4780
+ * the return value of the iterator.
4781
+ * @returns {boolean}
4782
+ */
4783
+ get done() {
4784
+ const ret = wasm.__wbg_get_iteratorresultobject_done(this.__wbg_ptr);
4785
+ return ret !== 0;
4786
+ }
4787
+ /**
4788
+ * Has the value true if the iterator is past the end of the
4789
+ * iterated sequence. In this case value optionally specifies
4790
+ * the return value of the iterator.
4791
+ * @param {boolean} arg0
4792
+ */
4793
+ set done(arg0) {
4794
+ wasm.__wbg_set_iteratorresultobject_done(this.__wbg_ptr, arg0);
4795
+ }
4796
+ /**
4797
+ * Any JavaScript value returned by the iterator.
4798
+ * Can be omitted when done is true.
4799
+ * @returns {any}
4800
+ */
4801
+ get value() {
4802
+ const ret = wasm.__wbg_get_iteratorresultobject_value(this.__wbg_ptr);
4803
+ return ret;
4804
+ }
4805
+ /**
4806
+ * Any JavaScript value returned by the iterator.
4807
+ * Can be omitted when done is true.
4808
+ * @param {any} arg0
4809
+ */
4810
+ set value(arg0) {
4811
+ wasm.__wbg_set_iteratorresultobject_value(this.__wbg_ptr, arg0);
4812
+ }
4813
+ }
4814
+
4500
4815
  const JsBitVectorFinalization = (typeof FinalizationRegistry === 'undefined')
4501
4816
  ? { register: () => {}, unregister: () => {} }
4502
4817
  : new FinalizationRegistry(ptr => wasm.__wbg_jsbitvector_free(ptr >>> 0, 1));
@@ -5431,6 +5746,20 @@ export class NodeClient {
5431
5746
  const ret = wasm.nodeclient_localPeerId(this.__wbg_ptr);
5432
5747
  return ret;
5433
5748
  }
5749
+ /**
5750
+ * Subscribe to the shares from the namespace, as new headers are received by the node
5751
+ *
5752
+ * Return an async iterator which will yield all the blobs from the namespace, as the new headers
5753
+ * are being received by the node, starting from the first header received after the call.
5754
+ * @param {Namespace} namespace
5755
+ * @returns {AsyncIterable<BlobsAtHeight | SubscriptionError>}
5756
+ */
5757
+ blobSubscribe(namespace) {
5758
+ _assertClass(namespace, Namespace);
5759
+ var ptr0 = namespace.__destroy_into_raw();
5760
+ const ret = wasm.nodeclient_blobSubscribe(this.__wbg_ptr, ptr0);
5761
+ return ret;
5762
+ }
5434
5763
  /**
5435
5764
  * Returns a [`BroadcastChannel`] for events generated by [`Node`].
5436
5765
  * @returns {Promise<BroadcastChannel>}
@@ -5467,6 +5796,17 @@ export class NodeClient {
5467
5796
  const ret = wasm.nodeclient_connectedPeers(this.__wbg_ptr);
5468
5797
  return ret;
5469
5798
  }
5799
+ /**
5800
+ * Subscribe to new headers received by the node from the network.
5801
+ *
5802
+ * Return an async iterator which will yield all the headers, as they are being received by the
5803
+ * node, starting from the first header received after the call.
5804
+ * @returns {AsyncIterable<ExtendedHeader | SubscriptionError>}
5805
+ */
5806
+ headerSubscribe() {
5807
+ const ret = wasm.nodeclient_headerSubscribe(this.__wbg_ptr);
5808
+ return ret;
5809
+ }
5470
5810
  /**
5471
5811
  * Get current [`PeerTracker`] info.
5472
5812
  * @returns {Promise<PeerTrackerInfoSnapshot>}
@@ -5499,6 +5839,20 @@ export class NodeClient {
5499
5839
  const ret = wasm.nodeclient_getHeaderByHash(this.__wbg_ptr, ptr0, len0);
5500
5840
  return ret;
5501
5841
  }
5842
+ /**
5843
+ * Subscribe to the blobs from the namespace, as new headers are received by the node
5844
+ *
5845
+ * Return an async iterator which will yield all the shares from the namespace, as the new headers
5846
+ * are being received by the node, starting from the first header received after the call.
5847
+ * @param {Namespace} namespace
5848
+ * @returns {AsyncIterable<SharesAtHeight | SubscriptionError>}
5849
+ */
5850
+ namespaceSubscribe(namespace) {
5851
+ _assertClass(namespace, Namespace);
5852
+ var ptr0 = namespace.__destroy_into_raw();
5853
+ const ret = wasm.nodeclient_namespaceSubscribe(this.__wbg_ptr, ptr0);
5854
+ return ret;
5855
+ }
5502
5856
  /**
5503
5857
  * Request the head header from the network.
5504
5858
  * @returns {Promise<ExtendedHeader>}
@@ -5897,7 +6251,7 @@ export class PartsHeader {
5897
6251
  set hash(arg0) {
5898
6252
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
5899
6253
  const len0 = WASM_VECTOR_LEN;
5900
- wasm.__wbg_set_jsbitvector_0(this.__wbg_ptr, ptr0, len0);
6254
+ wasm.__wbg_set_partsheader_hash(this.__wbg_ptr, ptr0, len0);
5901
6255
  }
5902
6256
  }
5903
6257
 
@@ -6216,6 +6570,139 @@ export class SamplingMetadata {
6216
6570
  }
6217
6571
  }
6218
6572
 
6573
+ const ShareFinalization = (typeof FinalizationRegistry === 'undefined')
6574
+ ? { register: () => {}, unregister: () => {} }
6575
+ : new FinalizationRegistry(ptr => wasm.__wbg_share_free(ptr >>> 0, 1));
6576
+ /**
6577
+ * A single fixed-size chunk of data which is used to form an [`ExtendedDataSquare`].
6578
+ *
6579
+ * All data in Celestia is split into [`Share`]s before being put into a
6580
+ * block's data square. See [`Blob::to_shares`].
6581
+ *
6582
+ * All shares have the fixed size of 512 bytes and the following structure:
6583
+ *
6584
+ * ```text
6585
+ * | Namespace | InfoByte | (optional) sequence length | data |
6586
+ * ```
6587
+ *
6588
+ * `sequence length` is the length of the original data in bytes and is present only in the first of the shares the data was split into.
6589
+ *
6590
+ * [`ExtendedDataSquare`]: crate::eds::ExtendedDataSquare
6591
+ * [`Blob::to_shares`]: crate::Blob::to_shares
6592
+ */
6593
+ export class Share {
6594
+
6595
+ static __wrap(ptr) {
6596
+ ptr = ptr >>> 0;
6597
+ const obj = Object.create(Share.prototype);
6598
+ obj.__wbg_ptr = ptr;
6599
+ ShareFinalization.register(obj, obj.__wbg_ptr, obj);
6600
+ return obj;
6601
+ }
6602
+
6603
+ static __unwrap(jsValue) {
6604
+ if (!(jsValue instanceof Share)) {
6605
+ return 0;
6606
+ }
6607
+ return jsValue.__destroy_into_raw();
6608
+ }
6609
+
6610
+ toJSON() {
6611
+ return {
6612
+ };
6613
+ }
6614
+
6615
+ toString() {
6616
+ return JSON.stringify(this);
6617
+ }
6618
+
6619
+ __destroy_into_raw() {
6620
+ const ptr = this.__wbg_ptr;
6621
+ this.__wbg_ptr = 0;
6622
+ ShareFinalization.unregister(this);
6623
+ return ptr;
6624
+ }
6625
+
6626
+ free() {
6627
+ const ptr = this.__destroy_into_raw();
6628
+ wasm.__wbg_share_free(ptr, 0);
6629
+ }
6630
+ }
6631
+
6632
+ const SharesAtHeightFinalization = (typeof FinalizationRegistry === 'undefined')
6633
+ ? { register: () => {}, unregister: () => {} }
6634
+ : new FinalizationRegistry(ptr => wasm.__wbg_sharesatheight_free(ptr >>> 0, 1));
6635
+ /**
6636
+ * A list of shares that were published at particular height.
6637
+ */
6638
+ export class SharesAtHeight {
6639
+
6640
+ static __wrap(ptr) {
6641
+ ptr = ptr >>> 0;
6642
+ const obj = Object.create(SharesAtHeight.prototype);
6643
+ obj.__wbg_ptr = ptr;
6644
+ SharesAtHeightFinalization.register(obj, obj.__wbg_ptr, obj);
6645
+ return obj;
6646
+ }
6647
+
6648
+ toJSON() {
6649
+ return {
6650
+ height: this.height,
6651
+ shares: this.shares,
6652
+ };
6653
+ }
6654
+
6655
+ toString() {
6656
+ return JSON.stringify(this);
6657
+ }
6658
+
6659
+ __destroy_into_raw() {
6660
+ const ptr = this.__wbg_ptr;
6661
+ this.__wbg_ptr = 0;
6662
+ SharesAtHeightFinalization.unregister(this);
6663
+ return ptr;
6664
+ }
6665
+
6666
+ free() {
6667
+ const ptr = this.__destroy_into_raw();
6668
+ wasm.__wbg_sharesatheight_free(ptr, 0);
6669
+ }
6670
+ /**
6671
+ * height the shares were published at
6672
+ * @returns {bigint}
6673
+ */
6674
+ get height() {
6675
+ const ret = wasm.__wbg_get_sharesatheight_height(this.__wbg_ptr);
6676
+ return BigInt.asUintN(64, ret);
6677
+ }
6678
+ /**
6679
+ * height the shares were published at
6680
+ * @param {bigint} arg0
6681
+ */
6682
+ set height(arg0) {
6683
+ wasm.__wbg_set_sharesatheight_height(this.__wbg_ptr, arg0);
6684
+ }
6685
+ /**
6686
+ * shares published
6687
+ * @returns {Share[]}
6688
+ */
6689
+ get shares() {
6690
+ const ret = wasm.__wbg_get_sharesatheight_shares(this.__wbg_ptr);
6691
+ var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
6692
+ wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
6693
+ return v1;
6694
+ }
6695
+ /**
6696
+ * shares published
6697
+ * @param {Share[]} arg0
6698
+ */
6699
+ set shares(arg0) {
6700
+ const ptr0 = passArrayJsValueToWasm0(arg0, wasm.__wbindgen_malloc);
6701
+ const len0 = WASM_VECTOR_LEN;
6702
+ wasm.__wbg_set_sharesatheight_shares(this.__wbg_ptr, ptr0, len0);
6703
+ }
6704
+ }
6705
+
6219
6706
  const SignatureFinalization = (typeof FinalizationRegistry === 'undefined')
6220
6707
  ? { register: () => {}, unregister: () => {} }
6221
6708
  : new FinalizationRegistry(ptr => wasm.__wbg_signature_free(ptr >>> 0, 1));
@@ -6483,6 +6970,75 @@ export class StringEvent {
6483
6970
  }
6484
6971
  }
6485
6972
 
6973
+ const SubscriptionErrorFinalization = (typeof FinalizationRegistry === 'undefined')
6974
+ ? { register: () => {}, unregister: () => {} }
6975
+ : new FinalizationRegistry(ptr => wasm.__wbg_subscriptionerror_free(ptr >>> 0, 1));
6976
+ /**
6977
+ * Error thrown while processing subscription
6978
+ */
6979
+ export class SubscriptionError {
6980
+
6981
+ static __wrap(ptr) {
6982
+ ptr = ptr >>> 0;
6983
+ const obj = Object.create(SubscriptionError.prototype);
6984
+ obj.__wbg_ptr = ptr;
6985
+ SubscriptionErrorFinalization.register(obj, obj.__wbg_ptr, obj);
6986
+ return obj;
6987
+ }
6988
+
6989
+ __destroy_into_raw() {
6990
+ const ptr = this.__wbg_ptr;
6991
+ this.__wbg_ptr = 0;
6992
+ SubscriptionErrorFinalization.unregister(this);
6993
+ return ptr;
6994
+ }
6995
+
6996
+ free() {
6997
+ const ptr = this.__destroy_into_raw();
6998
+ wasm.__wbg_subscriptionerror_free(ptr, 0);
6999
+ }
7000
+ /**
7001
+ * Height at which the error occurred, if applicable
7002
+ * @returns {bigint | undefined}
7003
+ */
7004
+ get height() {
7005
+ const ret = wasm.__wbg_get_subscriptionerror_height(this.__wbg_ptr);
7006
+ return ret[0] === 0 ? undefined : BigInt.asUintN(64, ret[1]);
7007
+ }
7008
+ /**
7009
+ * Height at which the error occurred, if applicable
7010
+ * @param {bigint | null} [arg0]
7011
+ */
7012
+ set height(arg0) {
7013
+ wasm.__wbg_set_subscriptionerror_height(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
7014
+ }
7015
+ /**
7016
+ * error message
7017
+ * @returns {string}
7018
+ */
7019
+ get error() {
7020
+ let deferred1_0;
7021
+ let deferred1_1;
7022
+ try {
7023
+ const ret = wasm.__wbg_get_subscriptionerror_error(this.__wbg_ptr);
7024
+ deferred1_0 = ret[0];
7025
+ deferred1_1 = ret[1];
7026
+ return getStringFromWasm0(ret[0], ret[1]);
7027
+ } finally {
7028
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
7029
+ }
7030
+ }
7031
+ /**
7032
+ * error message
7033
+ * @param {string} arg0
7034
+ */
7035
+ set error(arg0) {
7036
+ const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
7037
+ const len0 = WASM_VECTOR_LEN;
7038
+ wasm.__wbg_set_subscriptionerror_error(this.__wbg_ptr, ptr0, len0);
7039
+ }
7040
+ }
7041
+
6486
7042
  const SyncingInfoSnapshotFinalization = (typeof FinalizationRegistry === 'undefined')
6487
7043
  ? { register: () => {}, unregister: () => {} }
6488
7044
  : new FinalizationRegistry(ptr => wasm.__wbg_syncinginfosnapshot_free(ptr >>> 0, 1));
@@ -7422,6 +7978,11 @@ export class Vote {
7422
7978
  }
7423
7979
  }
7424
7980
 
7981
+ export function __wbg_BigInt_d53045318206d695(arg0) {
7982
+ const ret = BigInt(arg0);
7983
+ return ret;
7984
+ };
7985
+
7425
7986
  export function __wbg_Error_1f3748b298f99708(arg0, arg1) {
7426
7987
  const ret = Error(getStringFromWasm0(arg0, arg1));
7427
7988
  return ret;
@@ -7464,7 +8025,7 @@ export function __wbg_abort_496881624c2d80da() { return handleError(function (ar
7464
8025
  arg0.abort();
7465
8026
  }, arguments) };
7466
8027
 
7467
- export function __wbg_accountNumber_8a52b3ddaecb3ddf(arg0) {
8028
+ export function __wbg_accountNumber_e4a313c9dfc978c5(arg0) {
7468
8029
  const ret = arg0.accountNumber;
7469
8030
  return ret;
7470
8031
  };
@@ -7497,6 +8058,16 @@ export function __wbg_appversion_new(arg0) {
7497
8058
  return ret;
7498
8059
  };
7499
8060
 
8061
+ export function __wbg_asyncIterator_787398a275d49dae() {
8062
+ const ret = Symbol.asyncIterator;
8063
+ return ret;
8064
+ };
8065
+
8066
+ export function __wbg_asynciteratorimpl_new(arg0) {
8067
+ const ret = AsyncIteratorImpl.__wrap(arg0);
8068
+ return ret;
8069
+ };
8070
+
7500
8071
  export function __wbg_attribute_new(arg0) {
7501
8072
  const ret = Attribute.__wrap(arg0);
7502
8073
  return ret;
@@ -7507,7 +8078,7 @@ export function __wbg_attribute_unwrap(arg0) {
7507
8078
  return ret;
7508
8079
  };
7509
8080
 
7510
- export function __wbg_authInfoBytes_0a5d207619ad0422(arg0, arg1) {
8081
+ export function __wbg_authInfoBytes_5c381613b1053434(arg0, arg1) {
7511
8082
  const ret = arg1.authInfoBytes;
7512
8083
  const ptr1 = passArray8ToWasm0(ret, wasm.__wbindgen_malloc);
7513
8084
  const len1 = WASM_VECTOR_LEN;
@@ -7530,6 +8101,11 @@ export function __wbg_blobparams_new(arg0) {
7530
8101
  return ret;
7531
8102
  };
7532
8103
 
8104
+ export function __wbg_blobsatheight_new(arg0) {
8105
+ const ret = BlobsAtHeight.__wrap(arg0);
8106
+ return ret;
8107
+ };
8108
+
7533
8109
  export function __wbg_block_new(arg0) {
7534
8110
  const ret = Block.__wrap(arg0);
7535
8111
  return ret;
@@ -7545,7 +8121,7 @@ export function __wbg_blockrange_unwrap(arg0) {
7545
8121
  return ret;
7546
8122
  };
7547
8123
 
7548
- export function __wbg_bodyBytes_75efcd7cc8472ddf(arg0, arg1) {
8124
+ export function __wbg_bodyBytes_b4d1c4630cd77e30(arg0, arg1) {
7549
8125
  const ret = arg1.bodyBytes;
7550
8126
  const ptr1 = passArray8ToWasm0(ret, wasm.__wbindgen_malloc);
7551
8127
  const len1 = WASM_VECTOR_LEN;
@@ -7608,7 +8184,7 @@ export function __wbg_cause_94f62e1c92956ce2(arg0) {
7608
8184
  return ret;
7609
8185
  };
7610
8186
 
7611
- export function __wbg_chainId_2a4115c1298b59d8(arg0, arg1) {
8187
+ export function __wbg_chainId_27f066fe40ecb0f5(arg0, arg1) {
7612
8188
  const ret = arg1.chainId;
7613
8189
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
7614
8190
  const len1 = WASM_VECTOR_LEN;
@@ -7639,7 +8215,7 @@ export function __wbg_clearTimeout_96804de0ab838f26(arg0) {
7639
8215
  return ret;
7640
8216
  };
7641
8217
 
7642
- export function __wbg_clearTimeout_d270f24e5d43eaf7(arg0) {
8218
+ export function __wbg_clearTimeout_da6ef1364d77d96a(arg0) {
7643
8219
  clearTimeout(arg0);
7644
8220
  };
7645
8221
 
@@ -7656,7 +8232,7 @@ export function __wbg_close_62eb30084a8993bf() { return handleError(function (ar
7656
8232
  arg0.close(arg1, getStringFromWasm0(arg2, arg3));
7657
8233
  }, arguments) };
7658
8234
 
7659
- export function __wbg_close_7dcca1557b5bd08b(arg0) {
8235
+ export function __wbg_close_6f082e93cbded9b8(arg0) {
7660
8236
  arg0.close();
7661
8237
  };
7662
8238
 
@@ -7673,12 +8249,12 @@ export function __wbg_close_f602227805f17f95() { return handleError(function (ar
7673
8249
  arg0.close();
7674
8250
  }, arguments) };
7675
8251
 
7676
- export function __wbg_closed_2934f4ed093a9d95(arg0) {
8252
+ export function __wbg_closed_8b9d023c2484076c(arg0) {
7677
8253
  const ret = arg0.closed;
7678
8254
  return ret;
7679
8255
  };
7680
8256
 
7681
- export function __wbg_closed_8b9d023c2484076c(arg0) {
8257
+ export function __wbg_closed_964e107ead6defb4(arg0) {
7682
8258
  const ret = arg0.closed;
7683
8259
  return ret;
7684
8260
  };
@@ -7740,7 +8316,7 @@ export function __wbg_count_ee083e36b5119925() { return handleError(function (ar
7740
8316
  return ret;
7741
8317
  }, arguments) };
7742
8318
 
7743
- export function __wbg_createBidirectionalStream_2b56e05ee223119c(arg0) {
8319
+ export function __wbg_createBidirectionalStream_5eee908ceaaa9e36(arg0) {
7744
8320
  const ret = arg0.createBidirectionalStream();
7745
8321
  return ret;
7746
8322
  };
@@ -7843,13 +8419,13 @@ export function __wbg_extendedheader_unwrap(arg0) {
7843
8419
  return ret;
7844
8420
  };
7845
8421
 
7846
- export function __wbg_fetch_12e13d0511844bfd(arg0) {
7847
- const ret = fetch(arg0);
8422
+ export function __wbg_fetch_4fae101547df73b6(arg0, arg1, arg2) {
8423
+ const ret = arg0.fetch(arg1, arg2);
7848
8424
  return ret;
7849
8425
  };
7850
8426
 
7851
- export function __wbg_fetch_4fae101547df73b6(arg0, arg1, arg2) {
7852
- const ret = arg0.fetch(arg1, arg2);
8427
+ export function __wbg_fetch_ed9498ce5d2cc14d(arg0) {
8428
+ const ret = fetch(arg0);
7853
8429
  return ret;
7854
8430
  };
7855
8431
 
@@ -7863,13 +8439,13 @@ export function __wbg_from_237b1ad767238d8b(arg0) {
7863
8439
  return ret;
7864
8440
  };
7865
8441
 
7866
- export function __wbg_gasLimit_156da322edae975b(arg0, arg1) {
8442
+ export function __wbg_gasLimit_e6cc908a06e35f02(arg0, arg1) {
7867
8443
  const ret = arg1.gasLimit;
7868
8444
  getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
7869
8445
  getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
7870
8446
  };
7871
8447
 
7872
- export function __wbg_gasPrice_7ed979d29f5321b7(arg0, arg1) {
8448
+ export function __wbg_gasPrice_0591321ee8ff7383(arg0, arg1) {
7873
8449
  const ret = arg1.gasPrice;
7874
8450
  getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
7875
8451
  getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
@@ -7991,6 +8567,14 @@ export function __wbg_has_85abdd8aeb8edebf() { return handleError(function (arg0
7991
8567
  return ret;
7992
8568
  }, arguments) };
7993
8569
 
8570
+ export function __wbg_hash_8e74ca0df9d12a2f(arg0, arg1) {
8571
+ const ret = arg1.hash;
8572
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
8573
+ const len1 = WASM_VECTOR_LEN;
8574
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
8575
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
8576
+ };
8577
+
7994
8578
  export function __wbg_headers_177bc880a5823968(arg0) {
7995
8579
  const ret = arg0.headers;
7996
8580
  return ret;
@@ -8001,7 +8585,7 @@ export function __wbg_headers_391e2f64884c873b(arg0) {
8001
8585
  return ret;
8002
8586
  };
8003
8587
 
8004
- export function __wbg_incomingBidirectionalStreams_ed7915830e8f8998(arg0) {
8588
+ export function __wbg_incomingBidirectionalStreams_6ba630fafda86b63(arg0) {
8005
8589
  const ret = arg0.incomingBidirectionalStreams;
8006
8590
  return ret;
8007
8591
  };
@@ -8196,7 +8780,7 @@ export function __wbg_instanceof_Uint8Array_91f3c5adee7e6672(arg0) {
8196
8780
  return ret;
8197
8781
  };
8198
8782
 
8199
- export function __wbg_instanceof_WebTransportBidirectionalStream_65ff63c49f91f97a(arg0) {
8783
+ export function __wbg_instanceof_WebTransportBidirectionalStream_2a24a578d4c55677(arg0) {
8200
8784
  let result;
8201
8785
  try {
8202
8786
  result = arg0 instanceof WebTransportBidirectionalStream;
@@ -8238,6 +8822,11 @@ export function __wbg_iterator_96378c3c9a17347c() {
8238
8822
  return ret;
8239
8823
  };
8240
8824
 
8825
+ export function __wbg_iteratorresultobject_new(arg0) {
8826
+ const ret = IteratorResultObject.__wrap(arg0);
8827
+ return ret;
8828
+ };
8829
+
8241
8830
  export function __wbg_jsevent_new(arg0) {
8242
8831
  const ret = JsEvent.__wrap(arg0);
8243
8832
  return ret;
@@ -8293,7 +8882,7 @@ export function __wbg_length_904c0910ed998bf3(arg0) {
8293
8882
  return ret;
8294
8883
  };
8295
8884
 
8296
- export function __wbg_memo_aceadb714ed9785c(arg0, arg1) {
8885
+ export function __wbg_memo_fc769b7610d2662c(arg0, arg1) {
8297
8886
  const ret = arg1.memo;
8298
8887
  var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
8299
8888
  var len1 = WASM_VECTOR_LEN;
@@ -8361,6 +8950,16 @@ export function __wbg_new_56407f99198feff7() {
8361
8950
  return ret;
8362
8951
  };
8363
8952
 
8953
+ export function __wbg_new_6c91424bc2a93552() { return handleError(function (arg0, arg1) {
8954
+ const ret = new WebTransport(getStringFromWasm0(arg0, arg1));
8955
+ return ret;
8956
+ }, arguments) };
8957
+
8958
+ export function __wbg_new_700f5e18c06513d6() { return handleError(function () {
8959
+ const ret = new MessageChannel();
8960
+ return ret;
8961
+ }, arguments) };
8962
+
8364
8963
  export function __wbg_new_8a6f238a6ece86ea() {
8365
8964
  const ret = new Error();
8366
8965
  return ret;
@@ -8383,7 +8982,7 @@ export function __wbg_new_d5e3800b120e37e1(arg0, arg1) {
8383
8982
  const a = state0.a;
8384
8983
  state0.a = 0;
8385
8984
  try {
8386
- return __wbg_adapter_982(a, state0.b, arg0, arg1);
8985
+ return __wbg_adapter_940(a, state0.b, arg0, arg1);
8387
8986
  } finally {
8388
8987
  state0.a = a;
8389
8988
  }
@@ -8395,11 +8994,6 @@ export function __wbg_new_d5e3800b120e37e1(arg0, arg1) {
8395
8994
  }
8396
8995
  };
8397
8996
 
8398
- export function __wbg_new_d85e20a34917132b() { return handleError(function (arg0, arg1) {
8399
- const ret = new WebTransport(getStringFromWasm0(arg0, arg1));
8400
- return ret;
8401
- }, arguments) };
8402
-
8403
8997
  export function __wbg_new_e969dc3f68d25093() {
8404
8998
  const ret = new Array();
8405
8999
  return ret;
@@ -8435,7 +9029,7 @@ export function __wbg_newwithlength_ed0ee6c1edca86fc(arg0) {
8435
9029
  return ret;
8436
9030
  };
8437
9031
 
8438
- export function __wbg_newwithoptions_1ba541b69f220543() { return handleError(function (arg0, arg1, arg2) {
9032
+ export function __wbg_newwithoptions_54c812898eb97a22() { return handleError(function (arg0, arg1, arg2) {
8439
9033
  const ret = new WebTransport(getStringFromWasm0(arg0, arg1), arg2);
8440
9034
  return ret;
8441
9035
  }, arguments) };
@@ -8540,6 +9134,16 @@ export function __wbg_persist_1bb8fe4abf4a1238() { return handleError(function (
8540
9134
  return ret;
8541
9135
  }, arguments) };
8542
9136
 
9137
+ export function __wbg_port1_0618b5fb086e0c75(arg0) {
9138
+ const ret = arg0.port1;
9139
+ return ret;
9140
+ };
9141
+
9142
+ export function __wbg_port2_11f233fda4932fc1(arg0) {
9143
+ const ret = arg0.port2;
9144
+ return ret;
9145
+ };
9146
+
8543
9147
  export function __wbg_ports_9c55c10a9e47462c(arg0) {
8544
9148
  const ret = arg0.ports;
8545
9149
  return ret;
@@ -8549,15 +9153,15 @@ export function __wbg_postMessage_3b4fb1cda6756bf0() { return handleError(functi
8549
9153
  arg0.postMessage(arg1);
8550
9154
  }, arguments) };
8551
9155
 
8552
- export function __wbg_postMessage_b9234f931da7f86a() { return handleError(function (arg0, arg1, arg2) {
9156
+ export function __wbg_postMessage_3b56bfba80404bfb() { return handleError(function (arg0, arg1, arg2) {
8553
9157
  arg0.postMessage(arg1, arg2);
8554
9158
  }, arguments) };
8555
9159
 
8556
- export function __wbg_postMessage_ecb1e9ee54a5b2f1() { return handleError(function (arg0, arg1) {
9160
+ export function __wbg_postMessage_ceb4f5a96dc39ace() { return handleError(function (arg0, arg1) {
8557
9161
  arg0.postMessage(arg1);
8558
9162
  }, arguments) };
8559
9163
 
8560
- export function __wbg_priority_1990e2825970b82f(arg0) {
9164
+ export function __wbg_priority_b4a3ae75003a0632(arg0) {
8561
9165
  const ret = arg0.priority;
8562
9166
  return isLikeNone(ret) ? 0 : ret;
8563
9167
  };
@@ -8619,7 +9223,7 @@ export function __wbg_read_dc3d89b58ce2ae65(arg0) {
8619
9223
  return ret;
8620
9224
  };
8621
9225
 
8622
- export function __wbg_readable_e39b6396dce1aa98(arg0) {
9226
+ export function __wbg_readable_0e549655ea988517(arg0) {
8623
9227
  const ret = arg0.readable;
8624
9228
  return ret;
8625
9229
  };
@@ -8634,7 +9238,7 @@ export function __wbg_ready_a624cdffdc1b39dc(arg0) {
8634
9238
  return ret;
8635
9239
  };
8636
9240
 
8637
- export function __wbg_ready_a8d2b97e1fe33dcb(arg0) {
9241
+ export function __wbg_ready_cc3fb68899282d02(arg0) {
8638
9242
  const ret = arg0.ready;
8639
9243
  return ret;
8640
9244
  };
@@ -8643,7 +9247,7 @@ export function __wbg_releaseLock_fbec365467db2e6c(arg0) {
8643
9247
  arg0.releaseLock();
8644
9248
  };
8645
9249
 
8646
- export function __wbg_request_3be0f0335cc6a465(arg0, arg1, arg2, arg3, arg4) {
9250
+ export function __wbg_request_596555d7d2f95c6b(arg0, arg1, arg2, arg3, arg4) {
8647
9251
  const ret = arg0.request(getStringFromWasm0(arg1, arg2), arg3, arg4);
8648
9252
  return ret;
8649
9253
  };
@@ -8681,6 +9285,11 @@ export function __wbg_send_f0af552dcc5d8183() { return handleError(function (arg
8681
9285
  arg0.send(getArrayU8FromWasm0(arg1, arg2));
8682
9286
  }, arguments) };
8683
9287
 
9288
+ export function __wbg_sequence_73d147c1f7e4790c(arg0) {
9289
+ const ret = arg0.sequence;
9290
+ return ret;
9291
+ };
9292
+
8684
9293
  export function __wbg_setInterval_a708e6782af78d02() { return handleError(function (arg0, arg1, arg2, arg3) {
8685
9294
  const ret = arg0.setInterval(arg1, arg2, ...arg3);
8686
9295
  return ret;
@@ -8696,7 +9305,7 @@ export function __wbg_setInterval_ed3b5e3c3ebb8a6d() { return handleError(functi
8696
9305
  return ret;
8697
9306
  }, arguments) };
8698
9307
 
8699
- export function __wbg_setTimeout_c19d61d90c66d11f(arg0, arg1) {
9308
+ export function __wbg_setTimeout_8d0ca6852dbf5ded(arg0, arg1) {
8700
9309
  const ret = setTimeout(arg0, arg1 >>> 0);
8701
9310
  return ret;
8702
9311
  };
@@ -8845,6 +9454,21 @@ export function __wbg_setunique_bccba0d1ccd21f16(arg0, arg1) {
8845
9454
  arg0.unique = arg1 !== 0;
8846
9455
  };
8847
9456
 
9457
+ export function __wbg_share_new(arg0) {
9458
+ const ret = Share.__wrap(arg0);
9459
+ return ret;
9460
+ };
9461
+
9462
+ export function __wbg_share_unwrap(arg0) {
9463
+ const ret = Share.__unwrap(arg0);
9464
+ return ret;
9465
+ };
9466
+
9467
+ export function __wbg_sharesatheight_new(arg0) {
9468
+ const ret = SharesAtHeight.__wrap(arg0);
9469
+ return ret;
9470
+ };
9471
+
8848
9472
  export function __wbg_signature_new(arg0) {
8849
9473
  const ret = Signature.__wrap(arg0);
8850
9474
  return ret;
@@ -8923,6 +9547,11 @@ export function __wbg_subarray_a219824899e59712(arg0, arg1, arg2) {
8923
9547
  return ret;
8924
9548
  };
8925
9549
 
9550
+ export function __wbg_subscriptionerror_new(arg0) {
9551
+ const ret = SubscriptionError.__wrap(arg0);
9552
+ return ret;
9553
+ };
9554
+
8926
9555
  export function __wbg_syncinginfosnapshot_new(arg0) {
8927
9556
  const ret = SyncingInfoSnapshot.__wrap(arg0);
8928
9557
  return ret;
@@ -8953,6 +9582,14 @@ export function __wbg_toString_1588a16751ba3f70(arg0) {
8953
9582
  return ret;
8954
9583
  };
8955
9584
 
9585
+ export function __wbg_toString_22c84ec5b4e33ea4(arg0, arg1, arg2) {
9586
+ const ret = arg1.toString(arg2);
9587
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
9588
+ const len1 = WASM_VECTOR_LEN;
9589
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
9590
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
9591
+ };
9592
+
8956
9593
  export function __wbg_transaction_8267254fd462a1bb(arg0) {
8957
9594
  const ret = arg0.transaction;
8958
9595
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
@@ -8963,6 +9600,14 @@ export function __wbg_transaction_fca796495943f7a5() { return handleError(functi
8963
9600
  return ret;
8964
9601
  }, arguments) };
8965
9602
 
9603
+ export function __wbg_tx_a9e8b830cc737b89(arg0, arg1) {
9604
+ const ret = arg1.tx;
9605
+ const ptr1 = passArray8ToWasm0(ret, wasm.__wbindgen_malloc);
9606
+ const len1 = WASM_VECTOR_LEN;
9607
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
9608
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
9609
+ };
9610
+
8966
9611
  export function __wbg_txresponse_new(arg0) {
8967
9612
  const ret = TxResponse.__wrap(arg0);
8968
9613
  return ret;
@@ -8973,7 +9618,7 @@ export function __wbg_txstatusresponse_new(arg0) {
8973
9618
  return ret;
8974
9619
  };
8975
9620
 
8976
- export function __wbg_typeUrl_3684fcca6ad58882(arg0, arg1) {
9621
+ export function __wbg_typeUrl_4c4eb539151a91f5(arg0, arg1) {
8977
9622
  const ret = arg1.typeUrl;
8978
9623
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
8979
9624
  const len1 = WASM_VECTOR_LEN;
@@ -9007,7 +9652,12 @@ export function __wbg_value_09d0b4eaab48b91d(arg0) {
9007
9652
  return ret;
9008
9653
  };
9009
9654
 
9010
- export function __wbg_value_1c415f2db45fc801(arg0, arg1) {
9655
+ export function __wbg_value_3e45d77a58bc804d() { return handleError(function (arg0) {
9656
+ const ret = arg0.value;
9657
+ return ret;
9658
+ }, arguments) };
9659
+
9660
+ export function __wbg_value_91f0ed317ab02220(arg0, arg1) {
9011
9661
  const ret = arg1.value;
9012
9662
  const ptr1 = passArray8ToWasm0(ret, wasm.__wbindgen_malloc);
9013
9663
  const len1 = WASM_VECTOR_LEN;
@@ -9015,11 +9665,6 @@ export function __wbg_value_1c415f2db45fc801(arg0, arg1) {
9015
9665
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
9016
9666
  };
9017
9667
 
9018
- export function __wbg_value_3e45d77a58bc804d() { return handleError(function (arg0) {
9019
- const ret = arg0.value;
9020
- return ret;
9021
- }, arguments) };
9022
-
9023
9668
  export function __wbg_versions_c01dfd4722a88165(arg0) {
9024
9669
  const ret = arg0.versions;
9025
9670
  return ret;
@@ -9116,6 +9761,16 @@ export function __wbg_wbindgenjsvallooseeq_9dd7bb4b95ac195c(arg0, arg1) {
9116
9761
  return ret;
9117
9762
  };
9118
9763
 
9764
+ export function __wbg_wbindgenlt_ab7deb4a53ea1252(arg0, arg1) {
9765
+ const ret = arg0 < arg1;
9766
+ return ret;
9767
+ };
9768
+
9769
+ export function __wbg_wbindgenneg_32dfec7df2a39998(arg0) {
9770
+ const ret = -arg0;
9771
+ return ret;
9772
+ };
9773
+
9119
9774
  export function __wbg_wbindgennumberget_d855f947247a3fbc(arg0, arg1) {
9120
9775
  const obj = arg1;
9121
9776
  const ret = typeof(obj) === 'number' ? obj : undefined;
@@ -9141,7 +9796,7 @@ export function __wbg_wbindgentypeof_7219206940ac0898(arg0) {
9141
9796
  return ret;
9142
9797
  };
9143
9798
 
9144
- export function __wbg_writable_4f9d2cae62a7c0cb(arg0) {
9799
+ export function __wbg_writable_64e3474e78cea2a6(arg0) {
9145
9800
  const ret = arg0.writable;
9146
9801
  return ret;
9147
9802
  };
@@ -9151,9 +9806,9 @@ export function __wbg_write_39d7c51f917777a5(arg0, arg1) {
9151
9806
  return ret;
9152
9807
  };
9153
9808
 
9154
- export function __wbindgen_cast_0d71f2ff3d5df848(arg0, arg1) {
9155
- // Cast intrinsic for `Closure(Closure { dtor_idx: 2886, function: Function { arguments: [], shim_idx: 2887, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
9156
- const ret = makeMutClosure(arg0, arg1, 2886, __wbg_adapter_13);
9809
+ export function __wbindgen_cast_104c8ef10f0d551e(arg0, arg1) {
9810
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 1891, function: Function { arguments: [NamedExternref("Event")], shim_idx: 1892, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
9811
+ const ret = makeMutClosure(arg0, arg1, 1891, __wbg_adapter_9);
9157
9812
  return ret;
9158
9813
  };
9159
9814
 
@@ -9165,27 +9820,27 @@ export function __wbindgen_cast_13f728beb3308701(arg0, arg1) {
9165
9820
  return ret;
9166
9821
  };
9167
9822
 
9168
- export function __wbindgen_cast_1549fdb98e982686(arg0, arg1) {
9169
- // Cast intrinsic for `Closure(Closure { dtor_idx: 669, function: Function { arguments: [Externref], shim_idx: 675, ret: NamedExternref("Promise<any>"), inner_ret: Some(NamedExternref("Promise<any>")) }, mutable: true }) -> Externref`.
9170
- const ret = makeMutClosure(arg0, arg1, 669, __wbg_adapter_38);
9171
- return ret;
9172
- };
9173
-
9174
9823
  export function __wbindgen_cast_2241b6af4c4b2941(arg0, arg1) {
9175
9824
  // Cast intrinsic for `Ref(String) -> Externref`.
9176
9825
  const ret = getStringFromWasm0(arg0, arg1);
9177
9826
  return ret;
9178
9827
  };
9179
9828
 
9180
- export function __wbindgen_cast_2d3f4f6921336305(arg0, arg1) {
9181
- // Cast intrinsic for `Closure(Closure { dtor_idx: 1784, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 1785, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
9182
- const ret = makeMutClosure(arg0, arg1, 1784, __wbg_adapter_8);
9829
+ export function __wbindgen_cast_2def26224b93ce84(arg0, arg1) {
9830
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 307, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 311, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`.
9831
+ const ret = makeClosure(arg0, arg1, 307, __wbg_adapter_28);
9832
+ return ret;
9833
+ };
9834
+
9835
+ export function __wbindgen_cast_3ed92e68b5dc4732(arg0, arg1) {
9836
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 2957, function: Function { arguments: [Externref], shim_idx: 2958, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
9837
+ const ret = makeMutClosure(arg0, arg1, 2957, __wbg_adapter_14);
9183
9838
  return ret;
9184
9839
  };
9185
9840
 
9186
- export function __wbindgen_cast_439df55617f52063(arg0, arg1) {
9187
- // Cast intrinsic for `Closure(Closure { dtor_idx: 669, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 673, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`.
9188
- const ret = makeClosure(arg0, arg1, 669, __wbg_adapter_47);
9841
+ export function __wbindgen_cast_41034090fdd410c2(arg0, arg1) {
9842
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 307, function: Function { arguments: [NamedExternref("IDBVersionChangeEvent")], shim_idx: 313, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
9843
+ const ret = makeMutClosure(arg0, arg1, 307, __wbg_adapter_6);
9189
9844
  return ret;
9190
9845
  };
9191
9846
 
@@ -9195,15 +9850,21 @@ export function __wbindgen_cast_4625c577ab2ec9ee(arg0) {
9195
9850
  return ret;
9196
9851
  };
9197
9852
 
9198
- export function __wbindgen_cast_5ce2b55b30716d02(arg0, arg1) {
9199
- // Cast intrinsic for `Closure(Closure { dtor_idx: 2976, function: Function { arguments: [NamedExternref("Event")], shim_idx: 2977, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
9200
- const ret = makeMutClosure(arg0, arg1, 2976, __wbg_adapter_16);
9853
+ export function __wbindgen_cast_4cd69de52ef2f041(arg0, arg1) {
9854
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 1891, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 1892, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
9855
+ const ret = makeMutClosure(arg0, arg1, 1891, __wbg_adapter_9);
9201
9856
  return ret;
9202
9857
  };
9203
9858
 
9204
- export function __wbindgen_cast_6fcc2e550fb2fc08(arg0, arg1) {
9205
- // Cast intrinsic for `Closure(Closure { dtor_idx: 2874, function: Function { arguments: [Externref], shim_idx: 2875, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
9206
- const ret = makeMutClosure(arg0, arg1, 2874, __wbg_adapter_33);
9859
+ export function __wbindgen_cast_569c038971c23e28(arg0, arg1) {
9860
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 307, function: Function { arguments: [Externref], shim_idx: 308, ret: NamedExternref("Promise<any>"), inner_ret: Some(NamedExternref("Promise<any>")) }, mutable: true }) -> Externref`.
9861
+ const ret = makeMutClosure(arg0, arg1, 307, __wbg_adapter_31);
9862
+ return ret;
9863
+ };
9864
+
9865
+ export function __wbindgen_cast_6411431e1279b11e(arg0, arg1) {
9866
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 3065, function: Function { arguments: [NamedExternref("Event")], shim_idx: 3066, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
9867
+ const ret = makeMutClosure(arg0, arg1, 3065, __wbg_adapter_34);
9207
9868
  return ret;
9208
9869
  };
9209
9870
 
@@ -9215,9 +9876,15 @@ export function __wbindgen_cast_76a0f6231a633ad2(arg0, arg1) {
9215
9876
  return ret;
9216
9877
  };
9217
9878
 
9218
- export function __wbindgen_cast_84b488785ba1336b(arg0, arg1) {
9219
- // Cast intrinsic for `Closure(Closure { dtor_idx: 1784, function: Function { arguments: [NamedExternref("Event")], shim_idx: 1785, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
9220
- const ret = makeMutClosure(arg0, arg1, 1784, __wbg_adapter_8);
9879
+ export function __wbindgen_cast_82126c3d553ff7c6(arg0, arg1) {
9880
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 307, function: Function { arguments: [], shim_idx: 315, ret: NamedExternref("Promise<any>"), inner_ret: Some(NamedExternref("Promise<any>")) }, mutable: true }) -> Externref`.
9881
+ const ret = makeMutClosure(arg0, arg1, 307, __wbg_adapter_47);
9882
+ return ret;
9883
+ };
9884
+
9885
+ export function __wbindgen_cast_82adbf85e8d83012(arg0, arg1) {
9886
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 1891, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 1892, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
9887
+ const ret = makeMutClosure(arg0, arg1, 1891, __wbg_adapter_9);
9221
9888
  return ret;
9222
9889
  };
9223
9890
 
@@ -9235,15 +9902,9 @@ export function __wbindgen_cast_9ae0607507abb057(arg0) {
9235
9902
  return ret;
9236
9903
  };
9237
9904
 
9238
- export function __wbindgen_cast_b48b6bd0973f59e2(arg0, arg1) {
9239
- // Cast intrinsic for `Closure(Closure { dtor_idx: 1784, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 1785, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
9240
- const ret = makeMutClosure(arg0, arg1, 1784, __wbg_adapter_8);
9241
- return ret;
9242
- };
9243
-
9244
- export function __wbindgen_cast_b56f0f95b6de8085(arg0, arg1) {
9245
- // Cast intrinsic for `Closure(Closure { dtor_idx: 2337, function: Function { arguments: [], shim_idx: 2338, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
9246
- const ret = makeMutClosure(arg0, arg1, 2337, __wbg_adapter_19);
9905
+ export function __wbindgen_cast_c2988c7e5684370a(arg0, arg1) {
9906
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 2969, function: Function { arguments: [], shim_idx: 2970, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
9907
+ const ret = makeMutClosure(arg0, arg1, 2969, __wbg_adapter_23);
9247
9908
  return ret;
9248
9909
  };
9249
9910
 
@@ -9253,12 +9914,6 @@ export function __wbindgen_cast_cb9088102bce6b30(arg0, arg1) {
9253
9914
  return ret;
9254
9915
  };
9255
9916
 
9256
- export function __wbindgen_cast_cdc847d25519f930(arg0, arg1) {
9257
- // Cast intrinsic for `Closure(Closure { dtor_idx: 669, function: Function { arguments: [NamedExternref("IDBVersionChangeEvent")], shim_idx: 670, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
9258
- const ret = makeMutClosure(arg0, arg1, 669, __wbg_adapter_28);
9259
- return ret;
9260
- };
9261
-
9262
9917
  export function __wbindgen_cast_d6cd19b81560fd6e(arg0) {
9263
9918
  // Cast intrinsic for `F64 -> Externref`.
9264
9919
  const ret = arg0;
@@ -9273,6 +9928,12 @@ export function __wbindgen_cast_da0d185114cf54d4(arg0, arg1) {
9273
9928
  return ret;
9274
9929
  };
9275
9930
 
9931
+ export function __wbindgen_cast_f3fc3c7dffa96b4b(arg0, arg1) {
9932
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 2441, function: Function { arguments: [], shim_idx: 2442, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
9933
+ const ret = makeMutClosure(arg0, arg1, 2441, __wbg_adapter_52);
9934
+ return ret;
9935
+ };
9936
+
9276
9937
  export function __wbindgen_init_externref_table() {
9277
9938
  const table = wasm.__wbindgen_export_4;
9278
9939
  const offset = table.grow(4);