@dappworks/kit 0.5.31 → 0.5.33

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/dist/aiem.d.mts CHANGED
@@ -22,6 +22,7 @@ declare class Cache {
22
22
  type GetOptions = {
23
23
  multicall?: boolean;
24
24
  rpcUrls?: Chain["rpcUrls"];
25
+ pollingInterval?: number;
25
26
  };
26
27
  declare class AIem<Contracts extends Record<string, Abi>, Chains extends Record<string, Chain>, Addrs extends {
27
28
  [K in keyof Contracts]?: {
package/dist/aiem.mjs CHANGED
@@ -1,4 +1,4 @@
1
- export { AIem, Cache, Fields } from './chunk-SQ7DRKMK.mjs';
1
+ export { AIem, Cache, Fields } from './chunk-WWCB4WOQ.mjs';
2
2
  import './chunk-2BZKMJZX.mjs';
3
3
  import './chunk-7WJMHFRA.mjs';
4
4
  import './chunk-2PD23V7H.mjs';
@@ -1,4 +1,4 @@
1
- import { AIem } from './chunk-SQ7DRKMK.mjs';
1
+ import { AIem } from './chunk-WWCB4WOQ.mjs';
2
2
  import { DialogStore } from './chunk-FWK5VZHE.mjs';
3
3
  import { ToastPlugin } from './chunk-7EL2RQI7.mjs';
4
4
  import { RootStore, rootStore } from './chunk-SA53R6TL.mjs';
@@ -23239,7 +23239,6 @@ var WalletStore = class _WalletStore {
23239
23239
  });
23240
23240
  this.event.emit("walletAccount:ready");
23241
23241
  }
23242
- this.useWalletClientWithCompatibleMode();
23243
23242
  }, [address, isConnected, chain]);
23244
23243
  useEffect(() => {
23245
23244
  setTimeout(() => {
@@ -23276,11 +23275,15 @@ var WalletStore = class _WalletStore {
23276
23275
  get publicClient() {
23277
23276
  if (this.chain && this.supportedChains.some((i) => i.id === this.chain.id)) {
23278
23277
  if (this.chain.id == 4689) {
23279
- return AIem.PubClient("4689", { rpcUrls: { default: { http: [RootStore.Get(WalletRpcStore).curRpc.value] } }, multicall: true });
23278
+ return AIem.PubClient("4689", {
23279
+ rpcUrls: { default: { http: [RootStore.Get(WalletRpcStore).curRpc.value] } },
23280
+ multicall: true,
23281
+ pollingInterval: 2500
23282
+ });
23280
23283
  }
23281
- return AIem.PubClient(this.chain.id.toString());
23284
+ return AIem.PubClient(this.chain.id.toString(), { pollingInterval: 2500 });
23282
23285
  } else {
23283
- return AIem.PubClient("4689");
23286
+ return AIem.PubClient("4689", { pollingInterval: 2500 });
23284
23287
  }
23285
23288
  }
23286
23289
  set(args) {
@@ -23684,4 +23687,4 @@ js-sha3/src/sha3.js:
23684
23687
 
23685
23688
  export { AppProvider, AutoMan, BigNumberInputState, BigNumberState, ConnectLedger, DisconnectLedger, ObjectPool, PromiseHook, StorageListState, StorageState, WalletConfigStore, WalletHistoryStore, WalletRpcStore, WalletStore };
23686
23689
  //# sourceMappingURL=out.js.map
23687
- //# sourceMappingURL=chunk-J7XN2IRR.mjs.map
23690
+ //# sourceMappingURL=chunk-4KRVA5CB.mjs.map