@talismn/balances 1.4.0 → 1.5.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.
- package/dist/index.d.mts +62 -12
- package/dist/index.d.ts +62 -12
- package/dist/index.js +462 -231
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +387 -168
- package/dist/index.mjs.map +1 -1
- package/package.json +17 -16
package/dist/index.d.mts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { TokenId, NetworkId, NetworkList, TokenList, TokenType, TokenOfType,
|
|
1
|
+
import { TokenId, NetworkId, NetworkList, TokenList, TokenType, TokenOfType, DotNetworkId, SolNetworkId, Token, EthNetworkId, AnyMiniMetadata, ChaindataProvider, SubDTaoToken } from '@talismn/chaindata-provider';
|
|
2
2
|
export { MINIMETADATA_VERSION } from '@talismn/chaindata-provider';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
4
|
import { IChainConnectorDot, IChainConnectorEth, IChainConnectorSol } from '@talismn/chain-connectors';
|
|
5
5
|
import { TransactionInstruction } from '@solana/web3.js';
|
|
6
6
|
import * as _talismn_token_rates from '@talismn/token-rates';
|
|
7
|
-
import { TokenRates, TokenRateCurrency
|
|
7
|
+
import { TokenRatesList, TokenRates, TokenRateCurrency } from '@talismn/token-rates';
|
|
8
8
|
import { NonFunctionProperties } from '@talismn/util';
|
|
9
|
-
import z from 'zod/v4';
|
|
10
9
|
import { bittensor } from '@polkadot-api/descriptors';
|
|
10
|
+
import z from 'zod/v4';
|
|
11
11
|
|
|
12
12
|
type Address = string;
|
|
13
13
|
|
|
@@ -1818,16 +1818,14 @@ declare const ALPHA_PRICE_SCALE: bigint;
|
|
|
1818
1818
|
declare const getScaledAlphaPrice: (alphaIn: bigint, taoIn: bigint) => bigint;
|
|
1819
1819
|
declare const alphaToTao: (alpha: bigint, scaledAlphaPrice: bigint) => bigint;
|
|
1820
1820
|
declare const taoToAlpha: (tao: bigint, scaledAlphaPrice: bigint) => bigint;
|
|
1821
|
-
|
|
1822
1821
|
/**
|
|
1823
|
-
*
|
|
1824
|
-
*
|
|
1825
|
-
*
|
|
1826
|
-
*
|
|
1827
|
-
*
|
|
1828
|
-
* @returns
|
|
1822
|
+
* Like taoToAlpha but rounds up. Use for "must keep / must send at least this much alpha"
|
|
1823
|
+
* thresholds: the chain floors the alpha→TAO conversion when checking its TAO-denominated
|
|
1824
|
+
* minimums, so a floored alpha threshold can sit one planck below the real bound — an amount
|
|
1825
|
+
* meeting it exactly would still fail the on-chain check (or get the position force-swept).
|
|
1826
|
+
* Guarantees alphaToTao(taoToAlphaCeil(tao, price), price) >= tao.
|
|
1829
1827
|
*/
|
|
1830
|
-
declare const
|
|
1828
|
+
declare const taoToAlphaCeil: (tao: bigint, scaledAlphaPrice: bigint) => bigint;
|
|
1831
1829
|
|
|
1832
1830
|
declare const SubDTaoTokenConfigSchema: z.ZodObject<{
|
|
1833
1831
|
symbol: z.ZodOptional<z.ZodString>;
|
|
@@ -1844,6 +1842,13 @@ declare const SubDTaoTokenConfigSchema: z.ZodObject<{
|
|
|
1844
1842
|
type SubDTaoTokenConfig = z.infer<typeof SubDTaoTokenConfigSchema>;
|
|
1845
1843
|
type SubDTaoBalanceMeta = {
|
|
1846
1844
|
scaledAlphaPrice: string;
|
|
1845
|
+
convictionLock?: SubDTaoConvictionLockMeta;
|
|
1846
|
+
};
|
|
1847
|
+
type SubDTaoConvictionLockType = "decaying" | "perpetual";
|
|
1848
|
+
type SubDTaoConvictionLockMeta = {
|
|
1849
|
+
type: "conviction-lock";
|
|
1850
|
+
hotkey: string;
|
|
1851
|
+
lockType: SubDTaoConvictionLockType;
|
|
1847
1852
|
};
|
|
1848
1853
|
type SubDTaoBalance = {
|
|
1849
1854
|
address: string;
|
|
@@ -1851,12 +1856,57 @@ type SubDTaoBalance = {
|
|
|
1851
1856
|
baseTokenId: string;
|
|
1852
1857
|
stake: bigint;
|
|
1853
1858
|
pendingRootClaim?: bigint;
|
|
1859
|
+
convictionLock?: SubDTaoConvictionLock;
|
|
1854
1860
|
hotkey: string;
|
|
1855
1861
|
netuid: number;
|
|
1856
1862
|
scaledAlphaPrice: bigint;
|
|
1857
1863
|
};
|
|
1864
|
+
type SubDTaoConvictionLock = {
|
|
1865
|
+
amount: bigint;
|
|
1866
|
+
hotkey: string;
|
|
1867
|
+
lockType: SubDTaoConvictionLockType;
|
|
1868
|
+
convictionRaw: string;
|
|
1869
|
+
};
|
|
1858
1870
|
type GetDynamicInfosResult = (typeof bittensor)["descriptors"]["apis"]["SubnetInfoRuntimeApi"]["get_all_dynamic_info"][1];
|
|
1859
1871
|
type GetStakeInfosResult = (typeof bittensor)["descriptors"]["apis"]["StakeInfoRuntimeApi"]["get_stake_info_for_coldkeys"][1];
|
|
1872
|
+
/**
|
|
1873
|
+
* `undefined` when the coldkey has no lock on the subnet; `null` is our own fetch-failure marker.
|
|
1874
|
+
* `conviction` is the raw U64F64 fixed-point value (shift right by 64 bits for the integer part),
|
|
1875
|
+
* despite decoding as a plain bigint.
|
|
1876
|
+
*/
|
|
1877
|
+
type GetColdkeyLockResult = (typeof bittensor)["descriptors"]["apis"]["StakeInfoRuntimeApi"]["get_coldkey_lock"][1] | null;
|
|
1878
|
+
|
|
1879
|
+
declare const getConvictionLockLabel: (lockType: SubDTaoConvictionLockType) => string;
|
|
1880
|
+
type DTaoConvictionLockInfo = {
|
|
1881
|
+
amount: bigint;
|
|
1882
|
+
/** the hotkey the lock is keyed on: required to top-up (the chain rejects a different hotkey) */
|
|
1883
|
+
hotkey: string;
|
|
1884
|
+
lockType: SubDTaoConvictionLockType;
|
|
1885
|
+
label: string;
|
|
1886
|
+
};
|
|
1887
|
+
type BalanceLockLike = {
|
|
1888
|
+
amount: {
|
|
1889
|
+
planck: bigint;
|
|
1890
|
+
};
|
|
1891
|
+
meta?: unknown;
|
|
1892
|
+
};
|
|
1893
|
+
/**
|
|
1894
|
+
* Extracts the dtao conviction lock from a Balance locks array (Balance#locks), if any.
|
|
1895
|
+
* The locked amount cannot be unstaked until the lock decays (or ever, if perpetual);
|
|
1896
|
+
* transferring it is allowed but moves the lock and its conviction to the recipient.
|
|
1897
|
+
*/
|
|
1898
|
+
declare const findDTaoConvictionLock: (locks: BalanceLockLike[] | null | undefined) => DTaoConvictionLockInfo | null;
|
|
1899
|
+
|
|
1900
|
+
/**
|
|
1901
|
+
* To be used for tokens that don't have a coingecko id
|
|
1902
|
+
*
|
|
1903
|
+
* @param token
|
|
1904
|
+
* @param tokenRates
|
|
1905
|
+
* @param scaledAlphaPrice
|
|
1906
|
+
* @param alphaPriceChange24h 24h change of the pool price (alpha vs TAO) in percent, when known
|
|
1907
|
+
* @returns
|
|
1908
|
+
*/
|
|
1909
|
+
declare const getDTaoTokenRates: (token: SubDTaoToken, tokenRates: TokenRatesList, scaledAlphaPrice: string | bigint, alphaPriceChange24h?: number | null) => _talismn_token_rates.TokenRates | null;
|
|
1860
1910
|
|
|
1861
1911
|
declare const MODULE_TYPE$5: "substrate-dtao";
|
|
1862
1912
|
type TokenConfig = z.infer<typeof SubDTaoTokenConfigSchema>;
|
|
@@ -2142,4 +2192,4 @@ declare const BALANCE_MODULES: (IBalanceModule<"substrate-dtao", {
|
|
|
2142
2192
|
}>)[];
|
|
2143
2193
|
type AnyBalanceModule = (typeof BALANCE_MODULES)[number];
|
|
2144
2194
|
|
|
2145
|
-
export { ALPHA_PRICE_SCALE, type Address, type Amount, type AmountWithLabel, type AnyBalanceModule, BALANCE_MODULES, Balance, BalanceFormatter, type BalanceJson, type BalanceJsonList, type BalanceLockType, type BalanceSearchQuery, type BalanceSource, type BalanceStatus, type BalanceStatusTypes, type BalanceTransferType, BalanceValueGetter, Balances, BalancesProvider, type BalancesResult, type BalancesStorage, type ChainConnectors, Change24hCurrencyFormatter, EvmErc20BalanceModule, type EvmErc20TokenConfig, EvmErc20TokenConfigSchema, EvmNativeBalanceModule, type EvmNativeTokenConfig, EvmNativeTokenConfigSchema, EvmUniswapV2BalanceModule, type EvmUniswapV2TokenConfig, EvmUniswapV2TokenConfigSchema, type ExtraAmount, type FetchBalanceErrors, type FetchBalanceResults, FiatSumBalancesFormatter, type GetDynamicInfosResult, type GetStakeInfosResult, type HydrateDb, type IBalance, type IBalanceModule, type LockedAmount, type MiniMetadata, type NarrowBalanceType, PlanckSumBalancesFormatter, type PlatformConnector, SolNativeBalanceModule, type SolNativeTokenConfig, SolNativeTokenConfigSchema, SolSplBalanceModule, type SolSplTokenConfig, SolSplTokenConfigSchema, SolToken2022BalanceModule, type SolToken2022TokenConfig, SolToken2022TokenConfigSchema, SubAssetsBalanceModule, type SubAssetsTokenConfig, SubAssetsTokenConfigSchema, type SubDTaoBalance, type SubDTaoBalanceMeta, SubDTaoBalanceModule, type SubDTaoTokenConfig, SubDTaoTokenConfigSchema, SubForeignAssetsBalanceModule, type SubForeignAssetsTokenConfig, SubForeignAssetsTokenConfigSchema, SubHydrationBalanceModule, type SubHydrationTokenConfig, SubHydrationTokenConfigSchema, SubNativeBalanceModule, type SubNativeMiniMetadataExtra, SubNativeMiniMetadataExtraSchema, type SubNativeModuleConfig, SubNativeModuleConfigSchema, type SubNativeTokenConfig, SubNativeTokenConfigSchema, SubPsp22BalanceModule, type SubPsp22TokenConfig, SubPsp22TokenConfigSchema, SubTokensBalanceModule, type SubTokensMiniMetadataExtra, SubTokensMiniMetadataExtraSchema, type SubTokensModuleConfig, SubTokensModuleConfigSchema, type SubTokensTokenConfig, SubTokensTokenConfigSchema, type SubscriptionCallback, SumBalancesFormatter, TAO_DECIMALS, type TokenPlatform, type TokensWithAddresses, type UnsubscribeFn, abiMulticall, alphaToTao, deriveMiniMetadataId, erc20BalancesAggregatorAbi, excludeFromFeePayableLocks, excludeFromTransferableAmount, filterBaseLocks, filterMirrorTokens, getBalanceId, getDTaoTokenRates, getLockTitle, getLockedType, getScaledAlphaPrice, getValueId, includeInTotalExtraAmount, taoToAlpha, uniswapV2PairAbi };
|
|
2195
|
+
export { ALPHA_PRICE_SCALE, type Address, type Amount, type AmountWithLabel, type AnyBalanceModule, BALANCE_MODULES, Balance, BalanceFormatter, type BalanceJson, type BalanceJsonList, type BalanceLockType, type BalanceSearchQuery, type BalanceSource, type BalanceStatus, type BalanceStatusTypes, type BalanceTransferType, BalanceValueGetter, Balances, BalancesProvider, type BalancesResult, type BalancesStorage, type ChainConnectors, Change24hCurrencyFormatter, type DTaoConvictionLockInfo, EvmErc20BalanceModule, type EvmErc20TokenConfig, EvmErc20TokenConfigSchema, EvmNativeBalanceModule, type EvmNativeTokenConfig, EvmNativeTokenConfigSchema, EvmUniswapV2BalanceModule, type EvmUniswapV2TokenConfig, EvmUniswapV2TokenConfigSchema, type ExtraAmount, type FetchBalanceErrors, type FetchBalanceResults, FiatSumBalancesFormatter, type GetColdkeyLockResult, type GetDynamicInfosResult, type GetStakeInfosResult, type HydrateDb, type IBalance, type IBalanceModule, type LockedAmount, type MiniMetadata, type NarrowBalanceType, PlanckSumBalancesFormatter, type PlatformConnector, SolNativeBalanceModule, type SolNativeTokenConfig, SolNativeTokenConfigSchema, SolSplBalanceModule, type SolSplTokenConfig, SolSplTokenConfigSchema, SolToken2022BalanceModule, type SolToken2022TokenConfig, SolToken2022TokenConfigSchema, SubAssetsBalanceModule, type SubAssetsTokenConfig, SubAssetsTokenConfigSchema, type SubDTaoBalance, type SubDTaoBalanceMeta, SubDTaoBalanceModule, type SubDTaoConvictionLock, type SubDTaoConvictionLockMeta, type SubDTaoConvictionLockType, type SubDTaoTokenConfig, SubDTaoTokenConfigSchema, SubForeignAssetsBalanceModule, type SubForeignAssetsTokenConfig, SubForeignAssetsTokenConfigSchema, SubHydrationBalanceModule, type SubHydrationTokenConfig, SubHydrationTokenConfigSchema, SubNativeBalanceModule, type SubNativeMiniMetadataExtra, SubNativeMiniMetadataExtraSchema, type SubNativeModuleConfig, SubNativeModuleConfigSchema, type SubNativeTokenConfig, SubNativeTokenConfigSchema, SubPsp22BalanceModule, type SubPsp22TokenConfig, SubPsp22TokenConfigSchema, SubTokensBalanceModule, type SubTokensMiniMetadataExtra, SubTokensMiniMetadataExtraSchema, type SubTokensModuleConfig, SubTokensModuleConfigSchema, type SubTokensTokenConfig, SubTokensTokenConfigSchema, type SubscriptionCallback, SumBalancesFormatter, TAO_DECIMALS, type TokenPlatform, type TokensWithAddresses, type UnsubscribeFn, abiMulticall, alphaToTao, deriveMiniMetadataId, erc20BalancesAggregatorAbi, excludeFromFeePayableLocks, excludeFromTransferableAmount, filterBaseLocks, filterMirrorTokens, findDTaoConvictionLock, getBalanceId, getConvictionLockLabel, getDTaoTokenRates, getLockTitle, getLockedType, getScaledAlphaPrice, getValueId, includeInTotalExtraAmount, taoToAlpha, taoToAlphaCeil, uniswapV2PairAbi };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { TokenId, NetworkId, NetworkList, TokenList, TokenType, TokenOfType,
|
|
1
|
+
import { TokenId, NetworkId, NetworkList, TokenList, TokenType, TokenOfType, DotNetworkId, SolNetworkId, Token, EthNetworkId, AnyMiniMetadata, ChaindataProvider, SubDTaoToken } from '@talismn/chaindata-provider';
|
|
2
2
|
export { MINIMETADATA_VERSION } from '@talismn/chaindata-provider';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
4
|
import { IChainConnectorDot, IChainConnectorEth, IChainConnectorSol } from '@talismn/chain-connectors';
|
|
5
5
|
import { TransactionInstruction } from '@solana/web3.js';
|
|
6
6
|
import * as _talismn_token_rates from '@talismn/token-rates';
|
|
7
|
-
import { TokenRates, TokenRateCurrency
|
|
7
|
+
import { TokenRatesList, TokenRates, TokenRateCurrency } from '@talismn/token-rates';
|
|
8
8
|
import { NonFunctionProperties } from '@talismn/util';
|
|
9
|
-
import z from 'zod/v4';
|
|
10
9
|
import { bittensor } from '@polkadot-api/descriptors';
|
|
10
|
+
import z from 'zod/v4';
|
|
11
11
|
|
|
12
12
|
type Address = string;
|
|
13
13
|
|
|
@@ -1818,16 +1818,14 @@ declare const ALPHA_PRICE_SCALE: bigint;
|
|
|
1818
1818
|
declare const getScaledAlphaPrice: (alphaIn: bigint, taoIn: bigint) => bigint;
|
|
1819
1819
|
declare const alphaToTao: (alpha: bigint, scaledAlphaPrice: bigint) => bigint;
|
|
1820
1820
|
declare const taoToAlpha: (tao: bigint, scaledAlphaPrice: bigint) => bigint;
|
|
1821
|
-
|
|
1822
1821
|
/**
|
|
1823
|
-
*
|
|
1824
|
-
*
|
|
1825
|
-
*
|
|
1826
|
-
*
|
|
1827
|
-
*
|
|
1828
|
-
* @returns
|
|
1822
|
+
* Like taoToAlpha but rounds up. Use for "must keep / must send at least this much alpha"
|
|
1823
|
+
* thresholds: the chain floors the alpha→TAO conversion when checking its TAO-denominated
|
|
1824
|
+
* minimums, so a floored alpha threshold can sit one planck below the real bound — an amount
|
|
1825
|
+
* meeting it exactly would still fail the on-chain check (or get the position force-swept).
|
|
1826
|
+
* Guarantees alphaToTao(taoToAlphaCeil(tao, price), price) >= tao.
|
|
1829
1827
|
*/
|
|
1830
|
-
declare const
|
|
1828
|
+
declare const taoToAlphaCeil: (tao: bigint, scaledAlphaPrice: bigint) => bigint;
|
|
1831
1829
|
|
|
1832
1830
|
declare const SubDTaoTokenConfigSchema: z.ZodObject<{
|
|
1833
1831
|
symbol: z.ZodOptional<z.ZodString>;
|
|
@@ -1844,6 +1842,13 @@ declare const SubDTaoTokenConfigSchema: z.ZodObject<{
|
|
|
1844
1842
|
type SubDTaoTokenConfig = z.infer<typeof SubDTaoTokenConfigSchema>;
|
|
1845
1843
|
type SubDTaoBalanceMeta = {
|
|
1846
1844
|
scaledAlphaPrice: string;
|
|
1845
|
+
convictionLock?: SubDTaoConvictionLockMeta;
|
|
1846
|
+
};
|
|
1847
|
+
type SubDTaoConvictionLockType = "decaying" | "perpetual";
|
|
1848
|
+
type SubDTaoConvictionLockMeta = {
|
|
1849
|
+
type: "conviction-lock";
|
|
1850
|
+
hotkey: string;
|
|
1851
|
+
lockType: SubDTaoConvictionLockType;
|
|
1847
1852
|
};
|
|
1848
1853
|
type SubDTaoBalance = {
|
|
1849
1854
|
address: string;
|
|
@@ -1851,12 +1856,57 @@ type SubDTaoBalance = {
|
|
|
1851
1856
|
baseTokenId: string;
|
|
1852
1857
|
stake: bigint;
|
|
1853
1858
|
pendingRootClaim?: bigint;
|
|
1859
|
+
convictionLock?: SubDTaoConvictionLock;
|
|
1854
1860
|
hotkey: string;
|
|
1855
1861
|
netuid: number;
|
|
1856
1862
|
scaledAlphaPrice: bigint;
|
|
1857
1863
|
};
|
|
1864
|
+
type SubDTaoConvictionLock = {
|
|
1865
|
+
amount: bigint;
|
|
1866
|
+
hotkey: string;
|
|
1867
|
+
lockType: SubDTaoConvictionLockType;
|
|
1868
|
+
convictionRaw: string;
|
|
1869
|
+
};
|
|
1858
1870
|
type GetDynamicInfosResult = (typeof bittensor)["descriptors"]["apis"]["SubnetInfoRuntimeApi"]["get_all_dynamic_info"][1];
|
|
1859
1871
|
type GetStakeInfosResult = (typeof bittensor)["descriptors"]["apis"]["StakeInfoRuntimeApi"]["get_stake_info_for_coldkeys"][1];
|
|
1872
|
+
/**
|
|
1873
|
+
* `undefined` when the coldkey has no lock on the subnet; `null` is our own fetch-failure marker.
|
|
1874
|
+
* `conviction` is the raw U64F64 fixed-point value (shift right by 64 bits for the integer part),
|
|
1875
|
+
* despite decoding as a plain bigint.
|
|
1876
|
+
*/
|
|
1877
|
+
type GetColdkeyLockResult = (typeof bittensor)["descriptors"]["apis"]["StakeInfoRuntimeApi"]["get_coldkey_lock"][1] | null;
|
|
1878
|
+
|
|
1879
|
+
declare const getConvictionLockLabel: (lockType: SubDTaoConvictionLockType) => string;
|
|
1880
|
+
type DTaoConvictionLockInfo = {
|
|
1881
|
+
amount: bigint;
|
|
1882
|
+
/** the hotkey the lock is keyed on: required to top-up (the chain rejects a different hotkey) */
|
|
1883
|
+
hotkey: string;
|
|
1884
|
+
lockType: SubDTaoConvictionLockType;
|
|
1885
|
+
label: string;
|
|
1886
|
+
};
|
|
1887
|
+
type BalanceLockLike = {
|
|
1888
|
+
amount: {
|
|
1889
|
+
planck: bigint;
|
|
1890
|
+
};
|
|
1891
|
+
meta?: unknown;
|
|
1892
|
+
};
|
|
1893
|
+
/**
|
|
1894
|
+
* Extracts the dtao conviction lock from a Balance locks array (Balance#locks), if any.
|
|
1895
|
+
* The locked amount cannot be unstaked until the lock decays (or ever, if perpetual);
|
|
1896
|
+
* transferring it is allowed but moves the lock and its conviction to the recipient.
|
|
1897
|
+
*/
|
|
1898
|
+
declare const findDTaoConvictionLock: (locks: BalanceLockLike[] | null | undefined) => DTaoConvictionLockInfo | null;
|
|
1899
|
+
|
|
1900
|
+
/**
|
|
1901
|
+
* To be used for tokens that don't have a coingecko id
|
|
1902
|
+
*
|
|
1903
|
+
* @param token
|
|
1904
|
+
* @param tokenRates
|
|
1905
|
+
* @param scaledAlphaPrice
|
|
1906
|
+
* @param alphaPriceChange24h 24h change of the pool price (alpha vs TAO) in percent, when known
|
|
1907
|
+
* @returns
|
|
1908
|
+
*/
|
|
1909
|
+
declare const getDTaoTokenRates: (token: SubDTaoToken, tokenRates: TokenRatesList, scaledAlphaPrice: string | bigint, alphaPriceChange24h?: number | null) => _talismn_token_rates.TokenRates | null;
|
|
1860
1910
|
|
|
1861
1911
|
declare const MODULE_TYPE$5: "substrate-dtao";
|
|
1862
1912
|
type TokenConfig = z.infer<typeof SubDTaoTokenConfigSchema>;
|
|
@@ -2142,4 +2192,4 @@ declare const BALANCE_MODULES: (IBalanceModule<"substrate-dtao", {
|
|
|
2142
2192
|
}>)[];
|
|
2143
2193
|
type AnyBalanceModule = (typeof BALANCE_MODULES)[number];
|
|
2144
2194
|
|
|
2145
|
-
export { ALPHA_PRICE_SCALE, type Address, type Amount, type AmountWithLabel, type AnyBalanceModule, BALANCE_MODULES, Balance, BalanceFormatter, type BalanceJson, type BalanceJsonList, type BalanceLockType, type BalanceSearchQuery, type BalanceSource, type BalanceStatus, type BalanceStatusTypes, type BalanceTransferType, BalanceValueGetter, Balances, BalancesProvider, type BalancesResult, type BalancesStorage, type ChainConnectors, Change24hCurrencyFormatter, EvmErc20BalanceModule, type EvmErc20TokenConfig, EvmErc20TokenConfigSchema, EvmNativeBalanceModule, type EvmNativeTokenConfig, EvmNativeTokenConfigSchema, EvmUniswapV2BalanceModule, type EvmUniswapV2TokenConfig, EvmUniswapV2TokenConfigSchema, type ExtraAmount, type FetchBalanceErrors, type FetchBalanceResults, FiatSumBalancesFormatter, type GetDynamicInfosResult, type GetStakeInfosResult, type HydrateDb, type IBalance, type IBalanceModule, type LockedAmount, type MiniMetadata, type NarrowBalanceType, PlanckSumBalancesFormatter, type PlatformConnector, SolNativeBalanceModule, type SolNativeTokenConfig, SolNativeTokenConfigSchema, SolSplBalanceModule, type SolSplTokenConfig, SolSplTokenConfigSchema, SolToken2022BalanceModule, type SolToken2022TokenConfig, SolToken2022TokenConfigSchema, SubAssetsBalanceModule, type SubAssetsTokenConfig, SubAssetsTokenConfigSchema, type SubDTaoBalance, type SubDTaoBalanceMeta, SubDTaoBalanceModule, type SubDTaoTokenConfig, SubDTaoTokenConfigSchema, SubForeignAssetsBalanceModule, type SubForeignAssetsTokenConfig, SubForeignAssetsTokenConfigSchema, SubHydrationBalanceModule, type SubHydrationTokenConfig, SubHydrationTokenConfigSchema, SubNativeBalanceModule, type SubNativeMiniMetadataExtra, SubNativeMiniMetadataExtraSchema, type SubNativeModuleConfig, SubNativeModuleConfigSchema, type SubNativeTokenConfig, SubNativeTokenConfigSchema, SubPsp22BalanceModule, type SubPsp22TokenConfig, SubPsp22TokenConfigSchema, SubTokensBalanceModule, type SubTokensMiniMetadataExtra, SubTokensMiniMetadataExtraSchema, type SubTokensModuleConfig, SubTokensModuleConfigSchema, type SubTokensTokenConfig, SubTokensTokenConfigSchema, type SubscriptionCallback, SumBalancesFormatter, TAO_DECIMALS, type TokenPlatform, type TokensWithAddresses, type UnsubscribeFn, abiMulticall, alphaToTao, deriveMiniMetadataId, erc20BalancesAggregatorAbi, excludeFromFeePayableLocks, excludeFromTransferableAmount, filterBaseLocks, filterMirrorTokens, getBalanceId, getDTaoTokenRates, getLockTitle, getLockedType, getScaledAlphaPrice, getValueId, includeInTotalExtraAmount, taoToAlpha, uniswapV2PairAbi };
|
|
2195
|
+
export { ALPHA_PRICE_SCALE, type Address, type Amount, type AmountWithLabel, type AnyBalanceModule, BALANCE_MODULES, Balance, BalanceFormatter, type BalanceJson, type BalanceJsonList, type BalanceLockType, type BalanceSearchQuery, type BalanceSource, type BalanceStatus, type BalanceStatusTypes, type BalanceTransferType, BalanceValueGetter, Balances, BalancesProvider, type BalancesResult, type BalancesStorage, type ChainConnectors, Change24hCurrencyFormatter, type DTaoConvictionLockInfo, EvmErc20BalanceModule, type EvmErc20TokenConfig, EvmErc20TokenConfigSchema, EvmNativeBalanceModule, type EvmNativeTokenConfig, EvmNativeTokenConfigSchema, EvmUniswapV2BalanceModule, type EvmUniswapV2TokenConfig, EvmUniswapV2TokenConfigSchema, type ExtraAmount, type FetchBalanceErrors, type FetchBalanceResults, FiatSumBalancesFormatter, type GetColdkeyLockResult, type GetDynamicInfosResult, type GetStakeInfosResult, type HydrateDb, type IBalance, type IBalanceModule, type LockedAmount, type MiniMetadata, type NarrowBalanceType, PlanckSumBalancesFormatter, type PlatformConnector, SolNativeBalanceModule, type SolNativeTokenConfig, SolNativeTokenConfigSchema, SolSplBalanceModule, type SolSplTokenConfig, SolSplTokenConfigSchema, SolToken2022BalanceModule, type SolToken2022TokenConfig, SolToken2022TokenConfigSchema, SubAssetsBalanceModule, type SubAssetsTokenConfig, SubAssetsTokenConfigSchema, type SubDTaoBalance, type SubDTaoBalanceMeta, SubDTaoBalanceModule, type SubDTaoConvictionLock, type SubDTaoConvictionLockMeta, type SubDTaoConvictionLockType, type SubDTaoTokenConfig, SubDTaoTokenConfigSchema, SubForeignAssetsBalanceModule, type SubForeignAssetsTokenConfig, SubForeignAssetsTokenConfigSchema, SubHydrationBalanceModule, type SubHydrationTokenConfig, SubHydrationTokenConfigSchema, SubNativeBalanceModule, type SubNativeMiniMetadataExtra, SubNativeMiniMetadataExtraSchema, type SubNativeModuleConfig, SubNativeModuleConfigSchema, type SubNativeTokenConfig, SubNativeTokenConfigSchema, SubPsp22BalanceModule, type SubPsp22TokenConfig, SubPsp22TokenConfigSchema, SubTokensBalanceModule, type SubTokensMiniMetadataExtra, SubTokensMiniMetadataExtraSchema, type SubTokensModuleConfig, SubTokensModuleConfigSchema, type SubTokensTokenConfig, SubTokensTokenConfigSchema, type SubscriptionCallback, SumBalancesFormatter, TAO_DECIMALS, type TokenPlatform, type TokensWithAddresses, type UnsubscribeFn, abiMulticall, alphaToTao, deriveMiniMetadataId, erc20BalancesAggregatorAbi, excludeFromFeePayableLocks, excludeFromTransferableAmount, filterBaseLocks, filterMirrorTokens, findDTaoConvictionLock, getBalanceId, getConvictionLockLabel, getDTaoTokenRates, getLockTitle, getLockedType, getScaledAlphaPrice, getValueId, includeInTotalExtraAmount, taoToAlpha, taoToAlphaCeil, uniswapV2PairAbi };
|