@babylonlabs-io/wallet-connector 0.6.1 → 0.6.2

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/index.es.js CHANGED
@@ -95647,21 +95647,22 @@ const BBN_TESTNET_RPC_URL = "https://rpc-dapp.testnet.babylonlabs.io/", BBN_TEST
95647
95647
  features: ["cosmwasm"]
95648
95648
  }, ONE_HOUR = 60 * 60 * 1e3;
95649
95649
  Network.SIGNET, bbnTestnet.currencies[0].coinDenom, bbnTestnet.chainName, bbnTestnet.currencies[0].coinDenom, bbnTestnet.chainId;
95650
- const storage = createAccountStorage(ONE_HOUR);
95651
95650
  function WalletProvider({
95652
- persistent: e = !1,
95653
- theme: t,
95654
- lifecycleHooks: r,
95655
- children: n,
95656
- config: o,
95657
- context: s = window,
95658
- onError: a
95651
+ ttl: e = ONE_HOUR,
95652
+ persistent: t = !1,
95653
+ theme: r,
95654
+ lifecycleHooks: n,
95655
+ children: o,
95656
+ config: s,
95657
+ context: a = window,
95658
+ onError: u
95659
95659
  }) {
95660
- return /* @__PURE__ */ jsx(TomoConnectionProvider, { theme: t, config: o, children: /* @__PURE__ */ jsx(LifeCycleHooksProvider, { value: r, children: /* @__PURE__ */ jsxs(ChainProvider, { persistent: e, storage, context: s, config: o, onError: a, children: [
95661
- n,
95662
- /* @__PURE__ */ jsx(TomoBTCConnector, { persistent: e, storage }),
95663
- /* @__PURE__ */ jsx(TomoBBNConnector, { persistent: e, storage }),
95664
- /* @__PURE__ */ jsx(WalletDialog, { persistent: e, storage, config: o, onError: a })
95660
+ const p = useMemo(() => createAccountStorage(e), [e]);
95661
+ return /* @__PURE__ */ jsx(TomoConnectionProvider, { theme: r, config: s, children: /* @__PURE__ */ jsx(LifeCycleHooksProvider, { value: n, children: /* @__PURE__ */ jsxs(ChainProvider, { persistent: t, storage: p, context: a, config: s, onError: u, children: [
95662
+ o,
95663
+ /* @__PURE__ */ jsx(TomoBTCConnector, { persistent: t, storage: p }),
95664
+ /* @__PURE__ */ jsx(TomoBBNConnector, { persistent: t, storage: p }),
95665
+ /* @__PURE__ */ jsx(WalletDialog, { persistent: t, storage: p, config: s, onError: u })
95665
95666
  ] }) }) });
95666
95667
  }
95667
95668
  export {