@talismn/balances 3.1.2 → 3.1.4

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.ts CHANGED
@@ -9,10 +9,7 @@ import z from "zod/v4";
9
9
  import { Mint, TransferFee } from "@solana-program/token-2022";
10
10
  import { Enum, GetEnum, ResultPayload, SS58String, SizedHex } from "@polkadot-api/substrate-bindings";
11
11
  import "@polkadot-api/utils";
12
- //#region src/types/addresses.d.ts
13
12
  export type Address = string;
14
- //#endregion
15
- //#region src/types/balancetypes.d.ts
16
13
  export type BalanceStatus = "live" | "cache" | "stale";
17
14
  type IBalanceBase = {
18
15
  /** The module that this balance was retrieved by */
@@ -81,8 +78,6 @@ export type ExtraAmount<TLabel extends string> = BaseAmountWithLabel<TLabel> & {
81
78
  /** If set to true, this extra amount will be included in the calculation of the total amount of this balance. */
82
79
  includeInTotal?: boolean;
83
80
  };
84
- //#endregion
85
- //#region src/classes/Balances.d.ts
86
81
  /**
87
82
  * A collection of balances.
88
83
  */
@@ -171,8 +166,6 @@ export declare class Balances {
171
166
  */
172
167
  get sum(): SumBalancesFormatter;
173
168
  }
174
- //#endregion
175
- //#region src/classes/formatters.d.ts
176
169
  export declare class BalanceValueGetter {
177
170
  #private;
178
171
  constructor(storage: BalanceJson);
@@ -274,13 +267,9 @@ export declare class Change24hCurrencyFormatter {
274
267
  ratio: number;
275
268
  } | null;
276
269
  }
277
- //#endregion
278
- //#region src/classes/FormattedAmount.d.ts
279
270
  type FormattedAmount<GenericAmount extends AmountWithLabel<TLabel>, TLabel extends string> = Omit<GenericAmount, "amount"> & {
280
271
  amount: BalanceFormatter;
281
272
  };
282
- //#endregion
283
- //#region src/classes/Balance.d.ts
284
273
  export declare class Balance {
285
274
  #private;
286
275
  constructor(storage: BalanceJson | IBalance, hydrate?: HydrateDb);
@@ -426,26 +415,18 @@ export declare class Balance {
426
415
  coingeckoId?: string | undefined;
427
416
  noDiscovery?: boolean | undefined;
428
417
  mirrorOf?: string | undefined;
429
- type: "substrate-hydration";
430
- platform: "polkadot";
431
- onChainId: number;
432
- assetType: "Erc20" | "External" | "Token";
433
- isSufficient: boolean;
434
- existentialDeposit: string;
435
- } | {
436
- id: string;
437
- networkId: string;
438
- isDefault?: boolean | undefined;
439
- decimals: number;
440
- symbol: string;
441
- name?: string | undefined;
442
- logo?: string | undefined;
443
- coingeckoId?: string | undefined;
444
- noDiscovery?: boolean | undefined;
445
- mirrorOf?: string | undefined;
446
- type: "evm-erc20";
418
+ type: "evm-uniswapv2";
447
419
  platform: "ethereum";
448
420
  contractAddress: `0x${string}`;
421
+ isCustom?: boolean | undefined;
422
+ symbol0: string;
423
+ symbol1: string;
424
+ decimals0: number;
425
+ decimals1: number;
426
+ tokenAddress0: `0x${string}`;
427
+ tokenAddress1: `0x${string}`;
428
+ coingeckoId0?: string | undefined;
429
+ coingeckoId1?: string | undefined;
449
430
  } | {
450
431
  id: string;
451
432
  networkId: string;
@@ -470,18 +451,9 @@ export declare class Balance {
470
451
  coingeckoId?: string | undefined;
471
452
  noDiscovery?: boolean | undefined;
472
453
  mirrorOf?: string | undefined;
473
- type: "evm-uniswapv2";
454
+ type: "evm-erc20";
474
455
  platform: "ethereum";
475
456
  contractAddress: `0x${string}`;
476
- isCustom?: boolean | undefined;
477
- symbol0: string;
478
- symbol1: string;
479
- decimals0: number;
480
- decimals1: number;
481
- tokenAddress0: `0x${string}`;
482
- tokenAddress1: `0x${string}`;
483
- coingeckoId0?: string | undefined;
484
- coingeckoId1?: string | undefined;
485
457
  } | {
486
458
  id: string;
487
459
  networkId: string;
@@ -576,6 +548,23 @@ export declare class Balance {
576
548
  platform: "polkadot";
577
549
  onChainId: string | number;
578
550
  existentialDeposit: string;
551
+ } | {
552
+ id: string;
553
+ networkId: string;
554
+ isDefault?: boolean | undefined;
555
+ decimals: number;
556
+ symbol: string;
557
+ name?: string | undefined;
558
+ logo?: string | undefined;
559
+ coingeckoId?: string | undefined;
560
+ noDiscovery?: boolean | undefined;
561
+ mirrorOf?: string | undefined;
562
+ type: "substrate-hydration";
563
+ platform: "polkadot";
564
+ onChainId: number;
565
+ assetType: "Erc20" | "External" | "Token";
566
+ isSufficient: boolean;
567
+ existentialDeposit: string;
579
568
  } | {
580
569
  id: string;
581
570
  networkId: string;
@@ -670,8 +659,6 @@ export declare class Balance {
670
659
  get feePayable(): BalanceFormatter;
671
660
  }
672
661
  /** raw values of a given type, straight from the IBalance JSON (no Balance/formatter allocation) */
673
- //#endregion
674
- //#region src/types/balances.d.ts
675
662
  export type NarrowBalanceType<S extends IBalance, P> = S extends {
676
663
  source: P;
677
664
  } ? S : never;
@@ -683,15 +670,11 @@ export type HydrateDb = Partial<{
683
670
  tokenRates: TokenRatesList;
684
671
  }>;
685
672
  export type BalanceSearchQuery = Partial<NonFunctionProperties<Balance>> | ((balance: Balance) => boolean);
686
- //#endregion
687
- //#region src/types/chainConnectors.d.ts
688
673
  export type ChainConnectors = {
689
674
  substrate?: IChainConnectorDot;
690
675
  evm?: IChainConnectorEth;
691
676
  solana?: IChainConnectorSol;
692
677
  };
693
- //#endregion
694
- //#region src/types/IBalanceModule.d.ts
695
678
  export type TokenPlatform<T extends TokenType> = TokenOfType<T>["platform"];
696
679
  export type PlatformConnector<P extends TokenPlatform<TokenType>> = P extends "ethereum" ? IChainConnectorEth : P extends "polkadot" ? IChainConnectorDot : P extends "solana" ? IChainConnectorSol : never;
697
680
  type DotTransferCallData = {
@@ -790,8 +773,6 @@ export interface IBalanceModule<Type extends TokenType, TokenConfig = unknown, M
790
773
  connector: PlatformConnector<TokenPlatform<Type>>;
791
774
  } : never) => CallDataOf<TokenPlatform<Type>> | Promise<CallDataOf<TokenPlatform<Type>>>;
792
775
  }
793
- //#endregion
794
- //#region src/types/fingerprint.d.ts
795
776
  /** WeakMap-cached JSON serialization of a balance */
796
777
  export declare const getBalanceFingerprint: (balance: IBalance) => string;
797
778
  /**
@@ -815,15 +796,11 @@ export declare const isEqualModuleResults: (a: FetchBalanceResults, b: FetchBala
815
796
  * those by === replaces a deep walk over large metadata strings and `extra` objects.
816
797
  */
817
798
  export declare const isEqualMiniMetadatas: (a: MiniMetadata[] | null, b: MiniMetadata[] | null) => boolean;
818
- //#endregion
819
- //#region src/types/minimetadatas.d.ts
820
799
  /** For fast db access, you can calculate the primary key for a miniMetadata using this method */
821
800
  export declare const deriveMiniMetadataId: ({ source, chainId, specVersion }: Pick<AnyMiniMetadata, "source" | "chainId" | "specVersion">) => string;
822
801
  export type MiniMetadata<Extra = unknown> = Omit<AnyMiniMetadata, "extra"> & {
823
802
  extra: Extra;
824
803
  };
825
- //#endregion
826
- //#region src/types/subscriptions.d.ts
827
804
  /**
828
805
  * A callback with either an error or a result.
829
806
  */
@@ -835,8 +812,6 @@ export interface SubscriptionCallback<Result> {
835
812
  * A function which cancels a subscription when called.
836
813
  */
837
814
  export type UnsubscribeFn = () => void;
838
- //#endregion
839
- //#region src/BalancesProvider.d.ts
840
815
  type BalancesStatus = "initialising" | "live";
841
816
  export type BalancesResult = {
842
817
  status: BalancesStatus;
@@ -869,8 +844,6 @@ export declare class BalancesProvider {
869
844
  private cleanupAddressesByTokenId$;
870
845
  }
871
846
  export declare const getSweepStaleVariant: (balance: IBalance) => IBalance;
872
- //#endregion
873
- //#region src/classes/helpers.d.ts
874
847
  export declare function excludeFromTransferableAmount(locks: Amount | FormattedAmount<LockedAmount<string>, string> | Array<FormattedAmount<LockedAmount<string>, string>>): bigint;
875
848
  export declare function excludeFromFeePayableLocks(locks: Amount | LockedAmount<string> | Array<LockedAmount<string>>): Array<LockedAmount<string>>;
876
849
  export declare function includeInTotalExtraAmount(extra?: FormattedAmount<ExtraAmount<string>, string> | Array<FormattedAmount<ExtraAmount<string>, string>>): bigint;
@@ -880,8 +853,6 @@ export declare const getBalanceId: (balance: Pick<IBalance, "address" | "tokenId
880
853
  * An individual balance.
881
854
  */
882
855
  export declare const filterMirrorTokens: (balance: Balance, _i: number, balances: Balance[]) => boolean;
883
- //#endregion
884
- //#region src/classes/rawBalance.d.ts
885
856
  /** raw "locked" values, straight from the IBalance JSON (see getRawTotalPlanck) */
886
857
  export declare const getRawLocks: (balance: IBalance) => AmountWithLabel<string>[];
887
858
  /**
@@ -891,8 +862,6 @@ export declare const getRawLocks: (balance: IBalance) => AmountWithLabel<string>
891
862
  * (guarded by a parity test in balance-raw-helpers.test.ts).
892
863
  */
893
864
  export declare const getRawTotalPlanck: (balance: IBalance) => bigint;
894
- //#endregion
895
- //#region src/modules/abis/erc20BalancesAggregator.d.ts
896
865
  export declare const erc20BalancesAggregatorAbi: readonly [{
897
866
  readonly name: "balances";
898
867
  readonly type: 'function';
@@ -912,8 +881,6 @@ export declare const erc20BalancesAggregatorAbi: readonly [{
912
881
  readonly type: "uint256[]";
913
882
  }];
914
883
  }];
915
- //#endregion
916
- //#region src/modules/abis/multicall.d.ts
917
884
  export declare const abiMulticall: readonly [{
918
885
  readonly name: "aggregate";
919
886
  readonly type: 'function';
@@ -1190,8 +1157,6 @@ export declare const abiMulticall: readonly [{
1190
1157
  readonly name: "returnData";
1191
1158
  }];
1192
1159
  }];
1193
- //#endregion
1194
- //#region src/modules/abis/uniswapV2Pair.d.ts
1195
1160
  export declare const uniswapV2PairAbi: readonly [{
1196
1161
  readonly anonymous: false;
1197
1162
  readonly inputs: readonly [{
@@ -1752,8 +1717,6 @@ export declare const uniswapV2PairAbi: readonly [{
1752
1717
  readonly stateMutability: "nonpayable";
1753
1718
  readonly type: "function";
1754
1719
  }];
1755
- //#endregion
1756
- //#region src/modules/evm-erc20/types.d.ts
1757
1720
  export declare const EvmErc20TokenConfigSchema: z.ZodObject<{
1758
1721
  networkId: z.ZodOptional<z.ZodString>;
1759
1722
  isDefault: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
@@ -1767,14 +1730,8 @@ export declare const EvmErc20TokenConfigSchema: z.ZodObject<{
1767
1730
  contractAddress: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1768
1731
  }, z.core.$strict>;
1769
1732
  export type EvmErc20TokenConfig = z.infer<typeof EvmErc20TokenConfigSchema>;
1770
- //#endregion
1771
- //#region src/modules/evm-erc20/config.d.ts
1772
1733
  declare const MODULE_TYPE$12: "evm-erc20";
1773
- //#endregion
1774
- //#region src/modules/evm-erc20/module.d.ts
1775
1734
  export declare const EvmErc20BalanceModule: IBalanceModule<typeof MODULE_TYPE$12, EvmErc20TokenConfig>;
1776
- //#endregion
1777
- //#region src/modules/evm-native/types.d.ts
1778
1735
  export declare const EvmNativeTokenConfigSchema: z.ZodObject<{
1779
1736
  networkId: z.ZodOptional<z.ZodString>;
1780
1737
  isDefault: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
@@ -1787,14 +1744,8 @@ export declare const EvmNativeTokenConfigSchema: z.ZodObject<{
1787
1744
  mirrorOf: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1788
1745
  }, z.core.$strict>;
1789
1746
  export type EvmNativeTokenConfig = z.infer<typeof EvmNativeTokenConfigSchema>;
1790
- //#endregion
1791
- //#region src/modules/evm-native/config.d.ts
1792
1747
  declare const MODULE_TYPE$11: "evm-native";
1793
- //#endregion
1794
- //#region src/modules/evm-native/module.d.ts
1795
1748
  export declare const EvmNativeBalanceModule: IBalanceModule<typeof MODULE_TYPE$11, EvmNativeTokenConfig>;
1796
- //#endregion
1797
- //#region src/modules/evm-uniswapv2/types.d.ts
1798
1749
  export declare const EvmUniswapV2TokenConfigSchema: z.ZodObject<{
1799
1750
  networkId: z.ZodOptional<z.ZodString>;
1800
1751
  isDefault: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
@@ -1808,14 +1759,8 @@ export declare const EvmUniswapV2TokenConfigSchema: z.ZodObject<{
1808
1759
  contractAddress: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1809
1760
  }, z.core.$strict>;
1810
1761
  export type EvmUniswapV2TokenConfig = z.infer<typeof EvmUniswapV2TokenConfigSchema>;
1811
- //#endregion
1812
- //#region src/modules/evm-uniswapv2/config.d.ts
1813
1762
  declare const MODULE_TYPE$10: "evm-uniswapv2";
1814
- //#endregion
1815
- //#region src/modules/evm-uniswapv2/module.d.ts
1816
1763
  export declare const EvmUniswapV2BalanceModule: IBalanceModule<typeof MODULE_TYPE$10, EvmUniswapV2TokenConfig>;
1817
- //#endregion
1818
- //#region src/modules/sol-native/types.d.ts
1819
1764
  export declare const SolNativeTokenConfigSchema: z.ZodObject<{
1820
1765
  networkId: z.ZodOptional<z.ZodString>;
1821
1766
  isDefault: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
@@ -1828,14 +1773,8 @@ export declare const SolNativeTokenConfigSchema: z.ZodObject<{
1828
1773
  mirrorOf: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1829
1774
  }, z.core.$strict>;
1830
1775
  export type SolNativeTokenConfig = z.infer<typeof SolNativeTokenConfigSchema>;
1831
- //#endregion
1832
- //#region src/modules/sol-native/config.d.ts
1833
1776
  declare const MODULE_TYPE$9: "sol-native";
1834
- //#endregion
1835
- //#region src/modules/sol-native/module.d.ts
1836
1777
  export declare const SolNativeBalanceModule: IBalanceModule<typeof MODULE_TYPE$9, SolNativeTokenConfig>;
1837
- //#endregion
1838
- //#region src/modules/sol-spl/types.d.ts
1839
1778
  export declare const SolSplTokenConfigSchema: z.ZodObject<{
1840
1779
  networkId: z.ZodOptional<z.ZodString>;
1841
1780
  isDefault: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
@@ -1849,14 +1788,8 @@ export declare const SolSplTokenConfigSchema: z.ZodObject<{
1849
1788
  mintAddress: z.ZodString;
1850
1789
  }, z.core.$strict>;
1851
1790
  export type SolSplTokenConfig = z.infer<typeof SolSplTokenConfigSchema>;
1852
- //#endregion
1853
- //#region src/modules/sol-spl/config.d.ts
1854
1791
  declare const MODULE_TYPE$8: "sol-spl";
1855
- //#endregion
1856
- //#region src/modules/sol-spl/module.d.ts
1857
1792
  export declare const SolSplBalanceModule: IBalanceModule<typeof MODULE_TYPE$8, SolSplTokenConfig>;
1858
- //#endregion
1859
- //#region src/modules/sol-token2022/types.d.ts
1860
1793
  export declare const SolToken2022TokenConfigSchema: z.ZodObject<{
1861
1794
  networkId: z.ZodOptional<z.ZodString>;
1862
1795
  isDefault: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
@@ -1870,11 +1803,7 @@ export declare const SolToken2022TokenConfigSchema: z.ZodObject<{
1870
1803
  mintAddress: z.ZodString;
1871
1804
  }, z.core.$strict>;
1872
1805
  export type SolToken2022TokenConfig = z.infer<typeof SolToken2022TokenConfigSchema>;
1873
- //#endregion
1874
- //#region src/modules/sol-token2022/config.d.ts
1875
1806
  declare const MODULE_TYPE$7: "sol-token2022";
1876
- //#endregion
1877
- //#region src/modules/sol-token2022/getTransferCallData.d.ts
1878
1807
  /** Selects the transfer-fee schedule (older vs newer) that applies to a given epoch. */
1879
1808
  export declare const getEpochTransferFee: (transferFeeConfig: {
1880
1809
  olderTransferFee: TransferFee;
@@ -1890,8 +1819,6 @@ export declare const calculateToken2022TransferFee: (transferFeeConfig: {
1890
1819
  olderTransferFee: TransferFee;
1891
1820
  newerTransferFee: TransferFee;
1892
1821
  }, epoch: bigint, amount: bigint) => bigint;
1893
- //#endregion
1894
- //#region ../../node_modules/.pnpm/@solana+nominal-types@8.3.0_typescript@7.0.2/node_modules/@solana/nominal-types/dist/types/index.d.ts
1895
1822
  type StringEncoding = 'base58' | 'base64';
1896
1823
  /**
1897
1824
  * Use this to produce a new type that satisfies the original type, but not the other way around.
@@ -1961,8 +1888,6 @@ type EncodedString<T extends string, TEncoding extends StringEncoding> = Nominal
1961
1888
  * ```
1962
1889
  */
1963
1890
  type NominalType<TKey extends string, TMarker extends string> = { readonly [K in `__${TKey}:@solana/kit`]: TMarker; };
1964
- //#endregion
1965
- //#region ../../node_modules/.pnpm/@solana+addresses@8.3.0_fastestsmallesttextencoderdecoder@1.0.22_typescript@7.0.2/node_modules/@solana/addresses/dist/types/address.d.ts
1966
1891
  /**
1967
1892
  * Represents a string that validates as a Solana address. Functions that require well-formed
1968
1893
  * addresses should specify their inputs in terms of this type.
@@ -1971,10 +1896,8 @@ type NominalType<TKey extends string, TMarker extends string> = { readonly [K in
1971
1896
  * {@link address}, {@link assertIsAddress}, or {@link isAddress} functions in this package.
1972
1897
  */
1973
1898
  type Address$1<TAddress extends string = string> = Brand<EncodedString<TAddress, 'base58'>, 'Address'>;
1974
- //#endregion
1975
- //#region src/modules/sol-token2022/mintExtensions.d.ts
1976
1899
  type Extension = NonNullable<ReturnType<typeof getMintExtensions>>[number];
1977
- export declare const getMintExtensions: (mint: Mint) => import("@solana-program/token-2022").Extension[];
1900
+ export declare const getMintExtensions: (mint: Mint) => import("@solana-program/token-2022").Extensions;
1978
1901
  export declare const getExtension: <TKind extends Extension["__kind"]>(mint: Mint, kind: TKind) => Extract<Extension, {
1979
1902
  __kind: TKind;
1980
1903
  }> | null;
@@ -2001,11 +1924,7 @@ export declare const getTokenMetadata: (mint: Mint) => {
2001
1924
  uri: string;
2002
1925
  additionalMetadata: Map<string, string>;
2003
1926
  } | null;
2004
- //#endregion
2005
- //#region src/modules/sol-token2022/module.d.ts
2006
1927
  export declare const SolToken2022BalanceModule: IBalanceModule<typeof MODULE_TYPE$7, SolToken2022TokenConfig>;
2007
- //#endregion
2008
- //#region src/modules/substrate-assets/types.d.ts
2009
1928
  export declare const SubAssetsTokenConfigSchema: z.ZodObject<{
2010
1929
  networkId: z.ZodOptional<z.ZodString>;
2011
1930
  isDefault: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
@@ -2019,15 +1938,9 @@ export declare const SubAssetsTokenConfigSchema: z.ZodObject<{
2019
1938
  assetId: z.ZodPipe<z.ZodUnion<readonly [z.ZodUInt32, z.ZodString]>, z.ZodTransform<string, string | number>>;
2020
1939
  }, z.core.$strict>;
2021
1940
  export type SubAssetsTokenConfig = z.infer<typeof SubAssetsTokenConfigSchema>;
2022
- //#endregion
2023
- //#region src/modules/substrate-assets/config.d.ts
2024
1941
  declare const MODULE_TYPE$6: "substrate-assets";
2025
1942
  type TokenConfig$1 = z.infer<typeof SubAssetsTokenConfigSchema>;
2026
- //#endregion
2027
- //#region src/modules/substrate-assets/module.d.ts
2028
1943
  export declare const SubAssetsBalanceModule: IBalanceModule<typeof MODULE_TYPE$6, TokenConfig$1>;
2029
- //#endregion
2030
- //#region src/modules/substrate-dtao/alphaPrice.d.ts
2031
1944
  export declare const TAO_DECIMALS = 9n;
2032
1945
  export declare const ALPHA_PRICE_SCALE: bigint;
2033
1946
  export declare const alphaToTao: (alpha: bigint, scaledAlphaPrice: bigint) => bigint;
@@ -2040,8 +1953,6 @@ export declare const taoToAlpha: (tao: bigint, scaledAlphaPrice: bigint) => bigi
2040
1953
  * Guarantees alphaToTao(taoToAlphaCeil(tao, price), price) >= tao.
2041
1954
  */
2042
1955
  export declare const taoToAlphaCeil: (tao: bigint, scaledAlphaPrice: bigint) => bigint;
2043
- //#endregion
2044
- //#region src/modules/substrate-dtao/basketClaims.d.ts
2045
1956
  type BalanceLockLike$2 = {
2046
1957
  label: string;
2047
1958
  amount: {
@@ -2075,8 +1986,6 @@ type ClaimBalanceLike = {
2075
1986
  * after a full unstake, so a claim can have no stake left on its validator.
2076
1987
  */
2077
1988
  export declare const findDTaoClaimablePlancks: (balances: ClaimBalanceLike[], { networkId, address, hotkey }: DTaoClaimTarget) => bigint | null;
2078
- //#endregion
2079
- //#region ../../node_modules/.pnpm/polkadot-api@3.2.2_bufferutil@4.0.8_esbuild@0.28.1_rxjs@7.8.2_supports-color@10.2.2_utf-8-validate@6.0.4/node_modules/polkadot-api/dist/types-DGFm0iG3.d.ts
2080
1989
  type PlainDescriptor<T> = {
2081
1990
  _type?: T;
2082
1991
  };
@@ -2100,8 +2009,6 @@ type TxCallData = {
2100
2009
  value: any;
2101
2010
  };
2102
2011
  };
2103
- //#endregion
2104
- //#region ../../.papi/descriptors/dist/common-types.d.ts
2105
2012
  type AnonymousEnum$1<T extends {}> = T & {
2106
2013
  __anonymous: true;
2107
2014
  };
@@ -13202,8 +13109,6 @@ type Ibkf4n1ithlqos = {
13202
13109
  "aead_ct": Uint8Array;
13203
13110
  "nonce": SizedHex<24>;
13204
13111
  };
13205
- //#endregion
13206
- //#region ../../.papi/descriptors/dist/bittensor.d.ts
13207
13112
  type AnonymousEnum<T extends {}> = T & {
13208
13113
  __anonymous: true;
13209
13114
  };
@@ -13444,14 +13349,17 @@ type IStorage = {
13444
13349
  };
13445
13350
  TransactionPayment: {
13446
13351
  /**
13352
+
13447
13353
  */
13448
13354
  NextFeeMultiplier: StorageDescriptor<[], bigint, false, never>;
13449
13355
  /**
13356
+
13450
13357
  */
13451
13358
  StorageVersion: StorageDescriptor<[], TransactionPaymentReleases, false, never>;
13452
13359
  };
13453
13360
  SubtensorModule: {
13454
13361
  /**
13362
+
13455
13363
  */
13456
13364
  MinActivityCutoff: StorageDescriptor<[], number, false, never>;
13457
13365
  /**
@@ -13850,6 +13758,7 @@ type IStorage = {
13850
13758
  */
13851
13759
  SubnetEmaTaoFlow: StorageDescriptor<[Key: number], Anonymize<I2j729bmgsdiuo>, true, never>;
13852
13760
  /**
13761
+
13853
13762
  */
13854
13763
  NetTaoFlowEnabled: StorageDescriptor<[], boolean, false, never>;
13855
13764
  /**
@@ -14678,12 +14587,15 @@ type IStorage = {
14678
14587
  */
14679
14588
  BasketRedeemedTao: StorageDescriptor<[Key: SS58String], bigint, false, never>;
14680
14589
  /**
14590
+
14681
14591
  */
14682
14592
  StakingColdkeysByIndex: StorageDescriptor<[Key: bigint], SS58String, true, never>;
14683
14593
  /**
14594
+
14684
14595
  */
14685
14596
  StakingColdkeys: StorageDescriptor<[Key: SS58String], bigint, true, never>;
14686
14597
  /**
14598
+
14687
14599
  */
14688
14600
  NumStakingColdkeys: StorageDescriptor<[], bigint, false, never>;
14689
14601
  /**
@@ -14841,6 +14753,7 @@ type IStorage = {
14841
14753
  */
14842
14754
  RequestStatusFor: StorageDescriptor<[Key: SizedHex<32>], PreimageRequestStatus, true, never>;
14843
14755
  /**
14756
+
14844
14757
  */
14845
14758
  PreimageFor: StorageDescriptor<[Key: Anonymize<I4pact7n2e9a0i>], Uint8Array, true, never>;
14846
14759
  };
@@ -14908,12 +14821,15 @@ type IStorage = {
14908
14821
  */
14909
14822
  CommitmentOf: StorageDescriptor<Anonymize<I7svnfko10tq2e>, Anonymize<Ifjbhmqlrm96rb>, true, never>;
14910
14823
  /**
14824
+
14911
14825
  */
14912
14826
  LastCommitment: StorageDescriptor<Anonymize<I7svnfko10tq2e>, number, true, never>;
14913
14827
  /**
14828
+
14914
14829
  */
14915
14830
  LastBondsReset: StorageDescriptor<Anonymize<I7svnfko10tq2e>, number, true, never>;
14916
14831
  /**
14832
+
14917
14833
  */
14918
14834
  RevealedCommitments: StorageDescriptor<Anonymize<I7svnfko10tq2e>, Anonymize<Ib9pv5dg6upo6t>, true, never>;
14919
14835
  /**
@@ -14922,6 +14838,7 @@ type IStorage = {
14922
14838
  */
14923
14839
  UsedSpaceOf: StorageDescriptor<Anonymize<I7svnfko10tq2e>, Anonymize<I27ub49plcvb4c>, true, never>;
14924
14840
  /**
14841
+
14925
14842
  */
14926
14843
  MaxSpace: StorageDescriptor<[], number, false, never>;
14927
14844
  };
@@ -14970,23 +14887,29 @@ type IStorage = {
14970
14887
  */
14971
14888
  CurrentTransactionStatuses: StorageDescriptor<[], Anonymize<Ie7atdsih6q14b>, true, never>;
14972
14889
  /**
14890
+
14973
14891
  */
14974
14892
  BlockHash: StorageDescriptor<[Key: Anonymize<I4totqt881mlti>], SizedHex<32>, false, never>;
14975
14893
  };
14976
14894
  EVM: {
14977
14895
  /**
14896
+
14978
14897
  */
14979
14898
  AccountCodes: StorageDescriptor<[Key: SizedHex<20>], Uint8Array, false, never>;
14980
14899
  /**
14900
+
14981
14901
  */
14982
14902
  AccountCodesMetadata: StorageDescriptor<[Key: SizedHex<20>], Anonymize<I7jidl7qnnq87c>, true, never>;
14983
14903
  /**
14904
+
14984
14905
  */
14985
14906
  AccountStorages: StorageDescriptor<Anonymize<I82cps8ng2jtug>, SizedHex<32>, false, never>;
14986
14907
  /**
14908
+
14987
14909
  */
14988
14910
  WhitelistedCreators: StorageDescriptor<[], Anonymize<I4gqmlq9k6jlk3>, false, never>;
14989
14911
  /**
14912
+
14990
14913
  */
14991
14914
  DisableWhitelistCheck: StorageDescriptor<[], boolean, false, never>;
14992
14915
  };
@@ -14998,9 +14921,11 @@ type IStorage = {
14998
14921
  };
14999
14922
  BaseFee: {
15000
14923
  /**
14924
+
15001
14925
  */
15002
14926
  BaseFeePerGas: StorageDescriptor<[], Anonymize<I4totqt881mlti>, false, never>;
15003
14927
  /**
14928
+
15004
14929
  */
15005
14930
  Elasticity: StorageDescriptor<[], number, false, never>;
15006
14931
  };
@@ -15018,6 +14943,7 @@ type IStorage = {
15018
14943
  */
15019
14944
  Pulses: StorageDescriptor<[Key: bigint], Anonymize<Ialchst9lgd11u>, true, never>;
15020
14945
  /**
14946
+
15021
14947
  */
15022
14948
  LastStoredRound: StorageDescriptor<[], bigint, false, never>;
15023
14949
  /**
@@ -18463,17 +18389,21 @@ type ICalls = {
18463
18389
  */
18464
18390
  create2: TxDescriptor<Anonymize<Idpm1bc2cr6dgj>>;
18465
18391
  /**
18392
+
18466
18393
  */
18467
18394
  set_whitelist: TxDescriptor<Anonymize<I837c61fc07ine>>;
18468
18395
  /**
18396
+
18469
18397
  */
18470
18398
  disable_whitelist: TxDescriptor<Anonymize<I6m0oguilvhn8>>;
18471
18399
  };
18472
18400
  BaseFee: {
18473
18401
  /**
18402
+
18474
18403
  */
18475
18404
  set_base_fee_per_gas: TxDescriptor<Anonymize<I7vi74gbubc8u5>>;
18476
18405
  /**
18406
+
18477
18407
  */
18478
18408
  set_elasticity: TxDescriptor<Anonymize<I3u0knmtb1ueq7>>;
18479
18409
  };
@@ -20086,12 +20016,15 @@ type IEvent = {
20086
20016
  };
20087
20017
  BaseFee: {
20088
20018
  /**
20019
+
20089
20020
  */
20090
20021
  NewBaseFeePerGas: PlainDescriptor<Anonymize<I7vi74gbubc8u5>>;
20091
20022
  /**
20023
+
20092
20024
  */
20093
20025
  BaseFeeOverflow: PlainDescriptor<undefined>;
20094
20026
  /**
20027
+
20095
20028
  */
20096
20029
  NewElasticity: PlainDescriptor<Anonymize<I3u0knmtb1ueq7>>;
20097
20030
  };
@@ -22624,6 +22557,7 @@ type IConstants = {
22624
22557
  */
22625
22558
  RefundContributorsLimit: PlainDescriptor<number>;
22626
22559
  /**
22560
+
22627
22561
  */
22628
22562
  MaxContributors: PlainDescriptor<number>;
22629
22563
  };
@@ -22998,22 +22932,28 @@ type IRuntimeCalls = {
22998
22932
  account_nonce: RuntimeDescriptor<[account: SS58String], number>;
22999
22933
  };
23000
22934
  /**
22935
+
23001
22936
  */
23002
22937
  TransactionPaymentApi: {
23003
22938
  /**
22939
+
23004
22940
  */
23005
22941
  query_info: RuntimeDescriptor<[uxt: Uint8Array, len: number], Anonymize<I6spmpef2c7svf>>;
23006
22942
  /**
22943
+
23007
22944
  */
23008
22945
  query_fee_details: RuntimeDescriptor<[uxt: Uint8Array, len: number], Anonymize<Iei2mvq0mjvt81>>;
23009
22946
  /**
22947
+
23010
22948
  */
23011
22949
  query_weight_to_fee: RuntimeDescriptor<[weight: Anonymize<I4q39t5hn830vp>], bigint>;
23012
22950
  /**
22951
+
23013
22952
  */
23014
22953
  query_length_to_fee: RuntimeDescriptor<[length: number], bigint>;
23015
22954
  };
23016
22955
  /**
22956
+
23017
22957
  */
23018
22958
  TransactionPaymentCallApi: {
23019
22959
  /**
@@ -23062,9 +23002,11 @@ type IRuntimeCalls = {
23062
23002
  */
23063
23003
  storage_at: RuntimeDescriptor<[address: SizedHex<20>, index: Anonymize<I4totqt881mlti>], SizedHex<32>>;
23064
23004
  /**
23005
+
23065
23006
  */
23066
23007
  call: RuntimeDescriptor<[from: SizedHex<20>, to: SizedHex<20>, data: Uint8Array, value: Anonymize<I4totqt881mlti>, gas_limit: Anonymize<I4totqt881mlti>, max_fee_per_gas: Anonymize<Ic4rgfgksgmm3e>, max_priority_fee_per_gas: Anonymize<Ic4rgfgksgmm3e>, nonce: Anonymize<Ic4rgfgksgmm3e>, estimate: boolean, access_list: Anonymize<I3dj14b7k3rkm5>, authorization_list: Anonymize<Ic5egmm215ml6k>], Anonymize<I4lbgficb22f1i>>;
23067
23008
  /**
23009
+
23068
23010
  */
23069
23011
  create: RuntimeDescriptor<[from: SizedHex<20>, data: Uint8Array, value: Anonymize<I4totqt881mlti>, gas_limit: Anonymize<I4totqt881mlti>, max_fee_per_gas: Anonymize<Ic4rgfgksgmm3e>, max_priority_fee_per_gas: Anonymize<Ic4rgfgksgmm3e>, nonce: Anonymize<Ic4rgfgksgmm3e>, estimate: boolean, access_list: Anonymize<I3dj14b7k3rkm5>, authorization_list: Anonymize<Ic5egmm215ml6k>], Anonymize<I19vcmto68hf1n>>;
23070
23012
  /**
@@ -23080,6 +23022,7 @@ type IRuntimeCalls = {
23080
23022
  */
23081
23023
  current_transaction_statuses: RuntimeDescriptor<[], Anonymize<Ie6kgk6f04rsvk>>;
23082
23024
  /**
23025
+
23083
23026
  */
23084
23027
  current_all: RuntimeDescriptor<[], Anonymize<Ifgqf2rskq94om>>;
23085
23028
  /**
@@ -23109,9 +23052,11 @@ type IRuntimeCalls = {
23109
23052
  initialize_pending_block: RuntimeDescriptor<[header: Anonymize<Ic952bubvq4k7d>], undefined>;
23110
23053
  };
23111
23054
  /**
23055
+
23112
23056
  */
23113
23057
  ConvertTransactionRuntimeApi: {
23114
23058
  /**
23059
+
23115
23060
  */
23116
23061
  convert_transaction: RuntimeDescriptor<[transaction: Anonymize<Ibjuap2vk03rp6>], Uint8Array>;
23117
23062
  };
@@ -23147,137 +23092,180 @@ type IRuntimeCalls = {
23147
23092
  get_storage: RuntimeDescriptor<[address: SS58String, key: Uint8Array], Anonymize<I9u22scd4ksrjm>>;
23148
23093
  };
23149
23094
  /**
23095
+
23150
23096
  */
23151
23097
  DelegateInfoRuntimeApi: {
23152
23098
  /**
23099
+
23153
23100
  */
23154
23101
  get_delegates: RuntimeDescriptor<[], Anonymize<Ibil6rvg3saeb3>>;
23155
23102
  /**
23103
+
23156
23104
  */
23157
23105
  get_delegate: RuntimeDescriptor<[delegate_account: SS58String], Anonymize<I97cs1i8k87lnm>>;
23158
23106
  /**
23107
+
23159
23108
  */
23160
23109
  get_delegated: RuntimeDescriptor<[delegatee_account: SS58String], Anonymize<I874e758ge6pa9>>;
23161
23110
  };
23162
23111
  /**
23112
+
23163
23113
  */
23164
23114
  NeuronInfoRuntimeApi: {
23165
23115
  /**
23116
+
23166
23117
  */
23167
23118
  get_neurons: RuntimeDescriptor<[netuid: number], Anonymize<I86tq0h1o8f1g5>>;
23168
23119
  /**
23120
+
23169
23121
  */
23170
23122
  get_neuron: RuntimeDescriptor<[netuid: number, uid: number], Anonymize<I78cq8c9mego2f>>;
23171
23123
  /**
23124
+
23172
23125
  */
23173
23126
  get_neurons_lite: RuntimeDescriptor<[netuid: number], Anonymize<I64hm01ml98m4p>>;
23174
23127
  /**
23128
+
23175
23129
  */
23176
23130
  get_neuron_lite: RuntimeDescriptor<[netuid: number, uid: number], Anonymize<I3gjbugrk45her>>;
23177
23131
  };
23178
23132
  /**
23133
+
23179
23134
  */
23180
23135
  SubnetInfoRuntimeApi: {
23181
23136
  /**
23137
+
23182
23138
  */
23183
23139
  get_subnet_info: RuntimeDescriptor<[netuid: number], Anonymize<I9nvi04b7jiso4>>;
23184
23140
  /**
23141
+
23185
23142
  */
23186
23143
  get_subnets_info: RuntimeDescriptor<[], Anonymize<I6s1052v0hl6mr>>;
23187
23144
  /**
23145
+
23188
23146
  */
23189
23147
  get_subnet_info_v2: RuntimeDescriptor<[netuid: number], Anonymize<I31p8sd8onusg0>>;
23190
23148
  /**
23149
+
23191
23150
  */
23192
23151
  get_subnets_info_v2: RuntimeDescriptor<[], Anonymize<I2vgg418k9gfnm>>;
23193
23152
  /**
23153
+
23194
23154
  */
23195
23155
  get_subnet_hyperparams: RuntimeDescriptor<[netuid: number], Anonymize<I9pgcbplrmpuuq>>;
23196
23156
  /**
23157
+
23197
23158
  */
23198
23159
  get_subnet_hyperparams_v2: RuntimeDescriptor<[netuid: number], Anonymize<I3a953535j287d>>;
23199
23160
  /**
23161
+
23200
23162
  */
23201
23163
  get_all_dynamic_info: RuntimeDescriptor<[], Anonymize<I8ivaf995pho4u>>;
23202
23164
  /**
23165
+
23203
23166
  */
23204
23167
  get_all_metagraphs: RuntimeDescriptor<[], Anonymize<Ifkqbjhdci27f2>>;
23205
23168
  /**
23169
+
23206
23170
  */
23207
23171
  get_metagraph: RuntimeDescriptor<[netuid: number], Anonymize<I90rlvv7qdipvb>>;
23208
23172
  /**
23173
+
23209
23174
  */
23210
23175
  get_all_mechagraphs: RuntimeDescriptor<[], Anonymize<Ifkqbjhdci27f2>>;
23211
23176
  /**
23177
+
23212
23178
  */
23213
23179
  get_mechagraph: RuntimeDescriptor<[netuid: number, mecid: number], Anonymize<I90rlvv7qdipvb>>;
23214
23180
  /**
23181
+
23215
23182
  */
23216
23183
  get_dynamic_info: RuntimeDescriptor<[netuid: number], Anonymize<Ibjoh8vk2j7bqd>>;
23217
23184
  /**
23185
+
23218
23186
  */
23219
23187
  get_subnet_state: RuntimeDescriptor<[netuid: number], Anonymize<I2u4s5o1c0r3fu>>;
23220
23188
  /**
23189
+
23221
23190
  */
23222
23191
  get_selective_metagraph: RuntimeDescriptor<[netuid: number, metagraph_indexes: Anonymize<Icgljjb6j82uhn>], Anonymize<I5g35qds0o68ue>>;
23223
23192
  /**
23193
+
23224
23194
  */
23225
23195
  get_coldkey_auto_stake_hotkey: RuntimeDescriptor<[coldkey: SS58String, netuid: number], Anonymize<Ihfphjolmsqq1>>;
23226
23196
  /**
23197
+
23227
23198
  */
23228
23199
  get_selective_mechagraph: RuntimeDescriptor<[netuid: number, subid: number, metagraph_indexes: Anonymize<Icgljjb6j82uhn>], Anonymize<I5g35qds0o68ue>>;
23229
23200
  /**
23201
+
23230
23202
  */
23231
23203
  get_subnet_to_prune: RuntimeDescriptor<[], Anonymize<I4arjljr6dpflb>>;
23232
23204
  /**
23205
+
23233
23206
  */
23234
23207
  get_subnet_account_id: RuntimeDescriptor<[netuid: number], Anonymize<Ihfphjolmsqq1>>;
23235
23208
  /**
23209
+
23236
23210
  */
23237
23211
  get_next_epoch_start_block: RuntimeDescriptor<[netuid: number], Anonymize<I35p85j063s0il>>;
23238
23212
  /**
23213
+
23239
23214
  */
23240
23215
  get_block_emission: RuntimeDescriptor<[], bigint>;
23241
23216
  /**
23217
+
23242
23218
  */
23243
23219
  get_subnet_hyperparams_v3: RuntimeDescriptor<[netuid: number], Anonymize<I6qv5hf1qjn942>>;
23244
23220
  };
23245
23221
  /**
23222
+
23246
23223
  */
23247
23224
  StakeInfoRuntimeApi: {
23248
23225
  /**
23226
+
23249
23227
  */
23250
23228
  get_stake_info_for_coldkey: RuntimeDescriptor<[coldkey_account: SS58String], Anonymize<Ic9fkrj2ggjleq>>;
23251
23229
  /**
23230
+
23252
23231
  */
23253
23232
  get_stake_info_for_coldkeys: RuntimeDescriptor<[coldkey_accounts: Anonymize<Ia2lhg7l2hilo3>], Anonymize<Ifi9cmevnosufh>>;
23254
23233
  /**
23234
+
23255
23235
  */
23256
23236
  get_stake_info_for_hotkey_coldkey_netuid: RuntimeDescriptor<[hotkey_account: SS58String, coldkey_account: SS58String, netuid: number], Anonymize<I1i5jfmqcsjper>>;
23257
23237
  /**
23238
+
23258
23239
  */
23259
23240
  get_stake_availability_for_coldkeys: RuntimeDescriptor<[coldkey_accounts: Anonymize<Ia2lhg7l2hilo3>, netuids: Anonymize<I35lk2003i8c8g>], Anonymize<I8bn6o1k1jal8f>>;
23260
23241
  /**
23242
+
23261
23243
  */
23262
23244
  get_stake_fee: RuntimeDescriptor<[origin: Anonymize<I3pbrjdm4vnbsa>, origin_coldkey_account: SS58String, destination: Anonymize<I3pbrjdm4vnbsa>, destination_coldkey_account: SS58String, amount: bigint], bigint>;
23263
23245
  /**
23246
+
23264
23247
  */
23265
23248
  get_coldkey_lock: RuntimeDescriptor<[coldkey: SS58String, netuid: number], Anonymize<Iaa9klnetuoncg>>;
23266
23249
  /**
23250
+
23267
23251
  */
23268
23252
  get_hotkey_conviction: RuntimeDescriptor<[hotkey: SS58String, netuid: number], bigint>;
23269
23253
  /**
23254
+
23270
23255
  */
23271
23256
  get_most_convicted_hotkey_on_subnet: RuntimeDescriptor<[netuid: number], Anonymize<Ihfphjolmsqq1>>;
23272
23257
  };
23273
23258
  /**
23259
+
23274
23260
  */
23275
23261
  SubnetRegistrationRuntimeApi: {
23276
23262
  /**
23263
+
23277
23264
  */
23278
23265
  get_network_registration_cost: RuntimeDescriptor<[], bigint>;
23279
23266
  };
23280
23267
  /**
23268
+
23281
23269
  */
23282
23270
  BetaBasketRuntimeApi: {
23283
23271
  /**
@@ -23375,12 +23363,15 @@ type IRuntimeCalls = {
23375
23363
  get_root_basket_claim_previews: RuntimeDescriptor<[coldkey: SS58String], Anonymize<Ia1dgslg70jbtg>>;
23376
23364
  };
23377
23365
  /**
23366
+
23378
23367
  */
23379
23368
  ProxyFilterRuntimeApi: {
23380
23369
  /**
23370
+
23381
23371
  */
23382
23372
  get_proxy_types: RuntimeDescriptor<[], Anonymize<I5fc46fadm1en5>>;
23383
23373
  /**
23374
+
23384
23375
  */
23385
23376
  get_proxy_filters: RuntimeDescriptor<[proxy_types: Anonymize<Iabpgqcjikia83>], Anonymize<Iech6p00oti7ua>>;
23386
23377
  };
@@ -23432,22 +23423,28 @@ type IRuntimeCalls = {
23432
23423
  submit_report_equivocation_unsigned_extrinsic: RuntimeDescriptor<[equivocation_proof: Anonymize<I68ii5ik8avr9o>, key_owner_proof: Uint8Array], boolean>;
23433
23424
  };
23434
23425
  /**
23426
+
23435
23427
  */
23436
23428
  SwapRuntimeApi: {
23437
23429
  /**
23430
+
23438
23431
  */
23439
23432
  current_alpha_price: RuntimeDescriptor<[netuid: number], bigint>;
23440
23433
  /**
23434
+
23441
23435
  */
23442
23436
  current_alpha_price_all: RuntimeDescriptor<[], Anonymize<I8slfm2rri67ri>>;
23443
23437
  /**
23438
+
23444
23439
  */
23445
23440
  sim_swap_tao_for_alpha: RuntimeDescriptor<[netuid: number, tao: bigint], Anonymize<I34n2itmpoq7on>>;
23446
23441
  /**
23442
+
23447
23443
  */
23448
23444
  sim_swap_alpha_for_tao: RuntimeDescriptor<[netuid: number, alpha: bigint], Anonymize<I34n2itmpoq7on>>;
23449
23445
  };
23450
23446
  /**
23447
+
23451
23448
  */
23452
23449
  ShieldApi: {
23453
23450
  /**
@@ -23510,8 +23507,6 @@ type Bittensor = {
23510
23507
  genesis: string | undefined;
23511
23508
  };
23512
23509
  declare const _allDescriptors: Bittensor;
23513
- //#endregion
23514
- //#region src/modules/substrate-dtao/types.d.ts
23515
23510
  export declare const SubDTaoTokenConfigSchema: z.ZodObject<{
23516
23511
  networkId: z.ZodOptional<z.ZodString>;
23517
23512
  isDefault: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
@@ -23570,8 +23565,6 @@ export type GetStakeInfosResult = (typeof _allDescriptors)["descriptors"]["apis"
23570
23565
  * despite decoding as a plain bigint.
23571
23566
  */
23572
23567
  export type GetColdkeyLockResult = (typeof _allDescriptors)["descriptors"]["apis"]["StakeInfoRuntimeApi"]["get_coldkey_lock"][1] | null;
23573
- //#endregion
23574
- //#region src/modules/substrate-dtao/convictionLocks.d.ts
23575
23568
  export declare const getConvictionLockLabel: (lockType: SubDTaoConvictionLockType) => string;
23576
23569
  type DTaoConvictionLockInfo = {
23577
23570
  amount: bigint;
@@ -23592,15 +23585,9 @@ type BalanceLockLike$1 = {
23592
23585
  * transferring it is allowed but moves the lock and its conviction to the recipient.
23593
23586
  */
23594
23587
  export declare const findDTaoConvictionLock: (locks: BalanceLockLike$1[] | null | undefined) => DTaoConvictionLockInfo | null;
23595
- //#endregion
23596
- //#region src/modules/substrate-dtao/config.d.ts
23597
23588
  declare const MODULE_TYPE$5: "substrate-dtao";
23598
23589
  type TokenConfig = z.infer<typeof SubDTaoTokenConfigSchema>;
23599
- //#endregion
23600
- //#region src/modules/substrate-dtao/module.d.ts
23601
23590
  export declare const SubDTaoBalanceModule: IBalanceModule<typeof MODULE_TYPE$5, TokenConfig>;
23602
- //#endregion
23603
- //#region src/modules/substrate-dtao/rootStakeHold.d.ts
23604
23591
  /**
23605
23592
  * Extracts the root-stake hold from a balance's raw values (BalanceJson), if any.
23606
23593
  * While present, the pair's root stake cannot leave root — unstake/move/swap/transfer
@@ -23612,8 +23599,6 @@ export declare const findDTaoRootStakeHold: (balance: {
23612
23599
  meta?: unknown;
23613
23600
  }>;
23614
23601
  } | null | undefined) => SubDTaoRootStakeHoldMeta | null;
23615
- //#endregion
23616
- //#region src/modules/substrate-foreignassets/types.d.ts
23617
23602
  export declare const SubForeignAssetsTokenConfigSchema: z.ZodObject<{
23618
23603
  networkId: z.ZodOptional<z.ZodString>;
23619
23604
  isDefault: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
@@ -23627,14 +23612,8 @@ export declare const SubForeignAssetsTokenConfigSchema: z.ZodObject<{
23627
23612
  onChainId: z.ZodString;
23628
23613
  }, z.core.$strict>;
23629
23614
  export type SubForeignAssetsTokenConfig = z.infer<typeof SubForeignAssetsTokenConfigSchema>;
23630
- //#endregion
23631
- //#region src/modules/substrate-foreignassets/config.d.ts
23632
23615
  declare const MODULE_TYPE$4: "substrate-foreignassets";
23633
- //#endregion
23634
- //#region src/modules/substrate-foreignassets/module.d.ts
23635
23616
  export declare const SubForeignAssetsBalanceModule: IBalanceModule<typeof MODULE_TYPE$4, SubForeignAssetsTokenConfig>;
23636
- //#endregion
23637
- //#region src/modules/substrate-hydration/types.d.ts
23638
23617
  export declare const SubHydrationTokenConfigSchema: z.ZodObject<{
23639
23618
  networkId: z.ZodOptional<z.ZodString>;
23640
23619
  isDefault: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
@@ -23648,14 +23627,8 @@ export declare const SubHydrationTokenConfigSchema: z.ZodObject<{
23648
23627
  onChainId: z.ZodUInt32;
23649
23628
  }, z.core.$strict>;
23650
23629
  export type SubHydrationTokenConfig = z.infer<typeof SubHydrationTokenConfigSchema>;
23651
- //#endregion
23652
- //#region src/modules/substrate-hydration/config.d.ts
23653
23630
  declare const MODULE_TYPE$3: "substrate-hydration";
23654
- //#endregion
23655
- //#region src/modules/substrate-hydration/module.d.ts
23656
23631
  export declare const SubHydrationBalanceModule: IBalanceModule<typeof MODULE_TYPE$3, SubHydrationTokenConfig>;
23657
- //#endregion
23658
- //#region src/modules/substrate-native/evmMirror.d.ts
23659
23632
  export declare const EVM_MIRROR_LOCK_LABEL = "evm-mirror";
23660
23633
  export type EvmMirrorWithdrawableMeta = {
23661
23634
  type: "evm-mirror-withdrawable";
@@ -23674,8 +23647,6 @@ export type EvmMirrorWithdrawable = EvmMirrorWithdrawableMeta & {
23674
23647
  amount: bigint;
23675
23648
  };
23676
23649
  export declare const findEvmMirrorWithdrawable: (locks: BalanceLockLike[] | null | undefined) => EvmMirrorWithdrawable | null;
23677
- //#endregion
23678
- //#region src/modules/substrate-native/types.d.ts
23679
23650
  export declare const SubNativeTokenConfigSchema: z.ZodObject<{
23680
23651
  networkId: z.ZodOptional<z.ZodString>;
23681
23652
  isDefault: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
@@ -23699,14 +23670,8 @@ export declare const SubNativeMiniMetadataExtraSchema: z.ZodObject<{
23699
23670
  nominationPoolsPalletId: z.ZodOptional<z.ZodString>;
23700
23671
  }, z.core.$strict>;
23701
23672
  export type SubNativeMiniMetadataExtra = z.infer<typeof SubNativeMiniMetadataExtraSchema>;
23702
- //#endregion
23703
- //#region src/modules/substrate-native/config.d.ts
23704
23673
  declare const MODULE_TYPE$2: "substrate-native";
23705
- //#endregion
23706
- //#region src/modules/substrate-native/module.d.ts
23707
23674
  export declare const SubNativeBalanceModule: IBalanceModule<typeof MODULE_TYPE$2, SubNativeTokenConfig, SubNativeModuleConfig, SubNativeMiniMetadataExtra>;
23708
- //#endregion
23709
- //#region src/modules/substrate-native/util/lockTypes.d.ts
23710
23675
  export type BalanceLockType = "reserved" | "democracy" | "crowdloan" | "staking" | "nompools-staking" | "nompools-unbonding" | "subtensor-staking" | "vesting" | "dapp-staking" | "evm-mirror" | `other-${string}` | "other";
23711
23676
  /**
23712
23677
  * For converting the value of `lock?.id?.toUtf8?.()` which is retrieved from
@@ -23721,8 +23686,6 @@ export declare const filterBaseLocks: (locks: Array<Omit<LockedAmount<string>, "
23721
23686
  export declare const getLockTitle: (lock: Pick<LockedAmount<string>, "label" | "meta">, { balance }?: {
23722
23687
  balance?: Balance;
23723
23688
  }) => string;
23724
- //#endregion
23725
- //#region src/modules/substrate-psp22/types.d.ts
23726
23689
  export declare const SubPsp22TokenConfigSchema: z.ZodObject<{
23727
23690
  networkId: z.ZodOptional<z.ZodString>;
23728
23691
  isDefault: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
@@ -23736,14 +23699,8 @@ export declare const SubPsp22TokenConfigSchema: z.ZodObject<{
23736
23699
  contractAddress: z.ZodString;
23737
23700
  }, z.core.$strict>;
23738
23701
  export type SubPsp22TokenConfig = z.infer<typeof SubPsp22TokenConfigSchema>;
23739
- //#endregion
23740
- //#region src/modules/substrate-psp22/config.d.ts
23741
23702
  declare const MODULE_TYPE$1: "substrate-psp22";
23742
- //#endregion
23743
- //#region src/modules/substrate-psp22/module.d.ts
23744
23703
  export declare const SubPsp22BalanceModule: IBalanceModule<typeof MODULE_TYPE$1, SubPsp22TokenConfig>;
23745
- //#endregion
23746
- //#region src/modules/substrate-tokens/types.d.ts
23747
23704
  export declare const SubTokensTokenConfigSchema: z.ZodObject<{
23748
23705
  networkId: z.ZodOptional<z.ZodString>;
23749
23706
  isDefault: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
@@ -23766,14 +23723,8 @@ export declare const SubTokensMiniMetadataExtraSchema: z.ZodObject<{
23766
23723
  palletId: z.ZodString;
23767
23724
  }, z.core.$strict>;
23768
23725
  export type SubTokensMiniMetadataExtra = z.infer<typeof SubTokensMiniMetadataExtraSchema>;
23769
- //#endregion
23770
- //#region src/modules/substrate-tokens/config.d.ts
23771
23726
  declare const MODULE_TYPE: "substrate-tokens";
23772
- //#endregion
23773
- //#region src/modules/substrate-tokens/module.d.ts
23774
23727
  export declare const SubTokensBalanceModule: IBalanceModule<typeof MODULE_TYPE, SubTokensTokenConfig, SubTokensModuleConfig, SubTokensMiniMetadataExtra>;
23775
- //#endregion
23776
- //#region src/modules/index.d.ts
23777
23728
  export declare const BALANCE_MODULES: (IBalanceModule<"evm-erc20", {
23778
23729
  networkId?: string | undefined;
23779
23730
  isDefault?: boolean | undefined;
@@ -23929,6 +23880,5 @@ export declare const BALANCE_MODULES: (IBalanceModule<"evm-erc20", {
23929
23880
  }>)[];
23930
23881
  /** @deprecated unused */
23931
23882
  export type AnyBalanceModule = (typeof BALANCE_MODULES)[number];
23932
- //#endregion
23933
23883
  export { type DTaoClaimTarget, type DTaoConvictionLockInfo, MINIMETADATA_VERSION };
23934
23884
  //# sourceMappingURL=index.d.ts.map