@talismn/balances-react 0.9.11 → 1.0.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.
@@ -1,12 +1,10 @@
1
- import { AnyBalanceModule, Hydrate } from "@talismn/balances";
2
1
  import { ReactNode } from "react";
3
- export { evmErc20TokenId, evmNativeTokenId, subNativeTokenId, subEquilibriumTokenId, subAssetTokenId, subPsp22TokenId, subTokensTokenId, } from "@talismn/balances";
2
+ export { evmErc20TokenId, evmNativeTokenId, subAssetTokenId, subNativeTokenId, subPsp22TokenId, subTokensTokenId, } from "@talismn/chaindata-provider";
4
3
  export * from "./hooks/useBalances";
5
4
  export * from "./hooks/useChainConnectors";
6
5
  export * from "./hooks/useChaindata";
7
6
  export * from "./hooks/useTokenRates";
8
7
  export * from "./atoms/allAddresses";
9
- export * from "./atoms/balanceModules";
10
8
  export * from "./atoms/balances";
11
9
  export * from "./atoms/chainConnectors";
12
10
  export * from "./atoms/chaindata";
@@ -15,14 +13,6 @@ export * from "./atoms/config";
15
13
  export * from "./atoms/cryptoWaitReady";
16
14
  export * from "./atoms/tokenRates";
17
15
  export type BalancesConfig = {
18
- /**
19
- * Optionally provide your own array of BalanceModules, when you don't want to use the defaults.
20
- */
21
- balanceModules?: Array<(hydrate: Hydrate) => AnyBalanceModule>;
22
- /**
23
- * This key will be used in place of any public onfinality RPCs
24
- */
25
- onfinalityApiKey?: string;
26
16
  coinsApiUrl?: string;
27
17
  /** Enables balances fetching for tokens on testnet chains. */
28
18
  withTestnets?: boolean;
@@ -75,4 +65,4 @@ export type BalancesConfig = {
75
65
  enabledTokens?: string[];
76
66
  children?: ReactNode;
77
67
  };
78
- export declare const BalancesProvider: ({ balanceModules, onfinalityApiKey, coinsApiUrl, withTestnets, enabledChains, enabledTokens, children, }: BalancesConfig) => import("react/jsx-runtime").JSX.Element;
68
+ export declare const BalancesProvider: ({ coinsApiUrl, withTestnets, enabledChains, enabledTokens, children, }: BalancesConfig) => import("react/jsx-runtime").JSX.Element;