@metamask-previews/assets-controllers 111.1.3-preview-4f4c98e → 111.1.3-preview-eb263b0ee
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/CHANGELOG.md +0 -5
- package/dist/AccountTrackerController-method-action-types.cjs +7 -0
- package/dist/AccountTrackerController-method-action-types.cjs.map +1 -0
- package/dist/{AccountTrackerController-method-action-types.d.ts → AccountTrackerController-method-action-types.d.cts} +2 -2
- package/dist/AccountTrackerController-method-action-types.d.cts.map +1 -0
- package/dist/AccountTrackerController-method-action-types.d.mts +55 -0
- package/dist/AccountTrackerController-method-action-types.d.mts.map +1 -0
- package/dist/{AccountTrackerController-method-action-types.js → AccountTrackerController-method-action-types.mjs} +1 -1
- package/dist/AccountTrackerController-method-action-types.mjs.map +1 -0
- package/dist/AccountTrackerController.cjs +645 -0
- package/dist/AccountTrackerController.cjs.map +1 -0
- package/dist/{AccountTrackerController.d.ts → AccountTrackerController.d.cts} +19 -19
- package/dist/AccountTrackerController.d.cts.map +1 -0
- package/dist/AccountTrackerController.d.mts +199 -0
- package/dist/AccountTrackerController.d.mts.map +1 -0
- package/dist/{AccountTrackerController.js → AccountTrackerController.mjs} +25 -17
- package/dist/AccountTrackerController.mjs.map +1 -0
- package/dist/AssetsContractController-method-action-types.cjs +7 -0
- package/dist/AssetsContractController-method-action-types.cjs.map +1 -0
- package/dist/{AssetsContractController-method-action-types.d.ts → AssetsContractController-method-action-types.d.cts} +2 -2
- package/dist/AssetsContractController-method-action-types.d.cts.map +1 -0
- package/dist/AssetsContractController-method-action-types.d.mts +210 -0
- package/dist/AssetsContractController-method-action-types.d.mts.map +1 -0
- package/dist/{AssetsContractController-method-action-types.js → AssetsContractController-method-action-types.mjs} +1 -1
- package/dist/AssetsContractController-method-action-types.mjs.map +1 -0
- package/dist/AssetsContractController.cjs +473 -0
- package/dist/AssetsContractController.cjs.map +1 -0
- package/dist/{AssetsContractController.d.ts → AssetsContractController.d.cts} +30 -30
- package/dist/AssetsContractController.d.cts.map +1 -0
- package/dist/AssetsContractController.d.mts +258 -0
- package/dist/AssetsContractController.d.mts.map +1 -0
- package/dist/{AssetsContractController.js → AssetsContractController.mjs} +17 -10
- package/dist/AssetsContractController.mjs.map +1 -0
- package/dist/CurrencyRateController-method-action-types.cjs +7 -0
- package/dist/CurrencyRateController-method-action-types.cjs.map +1 -0
- package/dist/{CurrencyRateController-method-action-types.d.ts → CurrencyRateController-method-action-types.d.cts} +2 -2
- package/dist/CurrencyRateController-method-action-types.d.cts.map +1 -0
- package/dist/CurrencyRateController-method-action-types.d.mts +28 -0
- package/dist/CurrencyRateController-method-action-types.d.mts.map +1 -0
- package/dist/{CurrencyRateController-method-action-types.js → CurrencyRateController-method-action-types.mjs} +1 -1
- package/dist/CurrencyRateController-method-action-types.mjs.map +1 -0
- package/dist/CurrencyRateController.cjs +341 -0
- package/dist/CurrencyRateController.cjs.map +1 -0
- package/dist/{CurrencyRateController.d.ts → CurrencyRateController.d.cts} +14 -14
- package/dist/CurrencyRateController.d.cts.map +1 -0
- package/dist/CurrencyRateController.d.mts +110 -0
- package/dist/CurrencyRateController.d.mts.map +1 -0
- package/dist/{CurrencyRateController.js → CurrencyRateController.mjs} +5 -5
- package/dist/CurrencyRateController.mjs.map +1 -0
- package/dist/DeFiPositionsController/DeFiPositionsController.cjs +147 -0
- package/dist/DeFiPositionsController/DeFiPositionsController.cjs.map +1 -0
- package/dist/DeFiPositionsController/{DeFiPositionsController.d.ts → DeFiPositionsController.d.cts} +16 -16
- package/dist/DeFiPositionsController/DeFiPositionsController.d.cts.map +1 -0
- package/dist/DeFiPositionsController/DeFiPositionsController.d.mts +94 -0
- package/dist/DeFiPositionsController/DeFiPositionsController.d.mts.map +1 -0
- package/dist/DeFiPositionsController/{DeFiPositionsController.js → DeFiPositionsController.mjs} +6 -6
- package/dist/DeFiPositionsController/DeFiPositionsController.mjs.map +1 -0
- package/dist/DeFiPositionsController/DeFiPositionsControllerV2-method-action-types.cjs +7 -0
- package/dist/DeFiPositionsController/DeFiPositionsControllerV2-method-action-types.cjs.map +1 -0
- package/dist/DeFiPositionsController/{DeFiPositionsControllerV2-method-action-types.d.ts → DeFiPositionsControllerV2-method-action-types.d.cts} +2 -2
- package/dist/DeFiPositionsController/DeFiPositionsControllerV2-method-action-types.d.cts.map +1 -0
- package/dist/DeFiPositionsController/DeFiPositionsControllerV2-method-action-types.d.mts +40 -0
- package/dist/DeFiPositionsController/DeFiPositionsControllerV2-method-action-types.d.mts.map +1 -0
- package/dist/DeFiPositionsController/{DeFiPositionsControllerV2-method-action-types.js → DeFiPositionsControllerV2-method-action-types.mjs} +1 -1
- package/dist/DeFiPositionsController/DeFiPositionsControllerV2-method-action-types.mjs.map +1 -0
- package/dist/DeFiPositionsController/DeFiPositionsControllerV2.cjs +226 -0
- package/dist/DeFiPositionsController/DeFiPositionsControllerV2.cjs.map +1 -0
- package/dist/DeFiPositionsController/{DeFiPositionsControllerV2.d.ts → DeFiPositionsControllerV2.d.cts} +9 -9
- package/dist/DeFiPositionsController/DeFiPositionsControllerV2.d.cts.map +1 -0
- package/dist/DeFiPositionsController/DeFiPositionsControllerV2.d.mts +119 -0
- package/dist/DeFiPositionsController/DeFiPositionsControllerV2.d.mts.map +1 -0
- package/dist/DeFiPositionsController/{DeFiPositionsControllerV2.js → DeFiPositionsControllerV2.mjs} +5 -5
- package/dist/DeFiPositionsController/DeFiPositionsControllerV2.mjs.map +1 -0
- package/dist/DeFiPositionsController/build-defi-balances-query.cjs +73 -0
- package/dist/DeFiPositionsController/build-defi-balances-query.cjs.map +1 -0
- package/dist/DeFiPositionsController/{build-defi-balances-query.d.ts → build-defi-balances-query.d.cts} +3 -3
- package/dist/DeFiPositionsController/build-defi-balances-query.d.cts.map +1 -0
- package/dist/DeFiPositionsController/build-defi-balances-query.d.mts +34 -0
- package/dist/DeFiPositionsController/build-defi-balances-query.d.mts.map +1 -0
- package/dist/DeFiPositionsController/{build-defi-balances-query.js → build-defi-balances-query.mjs} +3 -3
- package/dist/DeFiPositionsController/build-defi-balances-query.mjs.map +1 -0
- package/dist/DeFiPositionsController/calculate-defi-metrics.cjs +41 -0
- package/dist/DeFiPositionsController/calculate-defi-metrics.cjs.map +1 -0
- package/dist/DeFiPositionsController/{calculate-defi-metrics.d.ts → calculate-defi-metrics.d.cts} +2 -2
- package/dist/DeFiPositionsController/calculate-defi-metrics.d.cts.map +1 -0
- package/dist/DeFiPositionsController/calculate-defi-metrics.d.mts +10 -0
- package/dist/DeFiPositionsController/calculate-defi-metrics.d.mts.map +1 -0
- package/dist/DeFiPositionsController/{calculate-defi-metrics.js → calculate-defi-metrics.mjs} +1 -1
- package/dist/DeFiPositionsController/calculate-defi-metrics.mjs.map +1 -0
- package/dist/DeFiPositionsController/defi-controller-v2-feature-flag.cjs +62 -0
- package/dist/DeFiPositionsController/defi-controller-v2-feature-flag.cjs.map +1 -0
- package/dist/DeFiPositionsController/{defi-controller-v2-feature-flag.d.ts → defi-controller-v2-feature-flag.d.cts} +2 -2
- package/dist/DeFiPositionsController/defi-controller-v2-feature-flag.d.cts.map +1 -0
- package/dist/DeFiPositionsController/defi-controller-v2-feature-flag.d.mts +27 -0
- package/dist/DeFiPositionsController/defi-controller-v2-feature-flag.d.mts.map +1 -0
- package/dist/DeFiPositionsController/{defi-controller-v2-feature-flag.js → defi-controller-v2-feature-flag.mjs} +1 -1
- package/dist/DeFiPositionsController/defi-controller-v2-feature-flag.mjs.map +1 -0
- package/dist/DeFiPositionsController/fetch-positions.cjs +24 -0
- package/dist/DeFiPositionsController/fetch-positions.cjs.map +1 -0
- package/dist/DeFiPositionsController/{fetch-positions.d.ts → fetch-positions.d.cts} +1 -1
- package/dist/DeFiPositionsController/fetch-positions.d.cts.map +1 -0
- package/dist/DeFiPositionsController/fetch-positions.d.mts +59 -0
- package/dist/DeFiPositionsController/fetch-positions.d.mts.map +1 -0
- package/dist/DeFiPositionsController/{fetch-positions.js → fetch-positions.mjs} +2 -2
- package/dist/DeFiPositionsController/fetch-positions.mjs.map +1 -0
- package/dist/DeFiPositionsController/group-defi-positions-v6.cjs +239 -0
- package/dist/DeFiPositionsController/group-defi-positions-v6.cjs.map +1 -0
- package/dist/DeFiPositionsController/{group-defi-positions-v6.d.ts → group-defi-positions-v6.d.cts} +3 -3
- package/dist/DeFiPositionsController/group-defi-positions-v6.d.cts.map +1 -0
- package/dist/DeFiPositionsController/group-defi-positions-v6.d.mts +118 -0
- package/dist/DeFiPositionsController/group-defi-positions-v6.d.mts.map +1 -0
- package/dist/DeFiPositionsController/{group-defi-positions-v6.js → group-defi-positions-v6.mjs} +3 -3
- package/dist/DeFiPositionsController/group-defi-positions-v6.mjs.map +1 -0
- package/dist/DeFiPositionsController/group-defi-positions.cjs +96 -0
- package/dist/DeFiPositionsController/group-defi-positions.cjs.map +1 -0
- package/dist/DeFiPositionsController/{group-defi-positions.d.ts → group-defi-positions.d.cts} +3 -3
- package/dist/DeFiPositionsController/group-defi-positions.d.cts.map +1 -0
- package/dist/DeFiPositionsController/group-defi-positions.d.mts +36 -0
- package/dist/DeFiPositionsController/group-defi-positions.d.mts.map +1 -0
- package/dist/DeFiPositionsController/{group-defi-positions.js → group-defi-positions.mjs} +2 -2
- package/dist/DeFiPositionsController/group-defi-positions.mjs.map +1 -0
- package/dist/DeFiPositionsController/merge-positions-for-accounts.cjs +71 -0
- package/dist/DeFiPositionsController/merge-positions-for-accounts.cjs.map +1 -0
- package/dist/DeFiPositionsController/{merge-positions-for-accounts.d.ts → merge-positions-for-accounts.d.cts} +2 -2
- package/dist/DeFiPositionsController/merge-positions-for-accounts.d.cts.map +1 -0
- package/dist/DeFiPositionsController/merge-positions-for-accounts.d.mts +16 -0
- package/dist/DeFiPositionsController/merge-positions-for-accounts.d.mts.map +1 -0
- package/dist/DeFiPositionsController/{merge-positions-for-accounts.js → merge-positions-for-accounts.mjs} +1 -1
- package/dist/DeFiPositionsController/merge-positions-for-accounts.mjs.map +1 -0
- package/dist/MultichainAssetsController/MultichainAssetsController-method-action-types.cjs +7 -0
- package/dist/MultichainAssetsController/MultichainAssetsController-method-action-types.cjs.map +1 -0
- package/dist/MultichainAssetsController/{MultichainAssetsController-method-action-types.d.ts → MultichainAssetsController-method-action-types.d.cts} +2 -2
- package/dist/MultichainAssetsController/MultichainAssetsController-method-action-types.d.cts.map +1 -0
- package/dist/MultichainAssetsController/MultichainAssetsController-method-action-types.d.mts +43 -0
- package/dist/MultichainAssetsController/MultichainAssetsController-method-action-types.d.mts.map +1 -0
- package/dist/MultichainAssetsController/{MultichainAssetsController-method-action-types.js → MultichainAssetsController-method-action-types.mjs} +1 -1
- package/dist/MultichainAssetsController/MultichainAssetsController-method-action-types.mjs.map +1 -0
- package/dist/MultichainAssetsController/MultichainAssetsController.cjs +647 -0
- package/dist/MultichainAssetsController/MultichainAssetsController.cjs.map +1 -0
- package/dist/MultichainAssetsController/{MultichainAssetsController.d.ts → MultichainAssetsController.d.cts} +18 -18
- package/dist/MultichainAssetsController/MultichainAssetsController.d.cts.map +1 -0
- package/dist/MultichainAssetsController/MultichainAssetsController.d.mts +119 -0
- package/dist/MultichainAssetsController/MultichainAssetsController.d.mts.map +1 -0
- package/dist/MultichainAssetsController/{MultichainAssetsController.js → MultichainAssetsController.mjs} +9 -9
- package/dist/MultichainAssetsController/MultichainAssetsController.mjs.map +1 -0
- package/dist/MultichainAssetsController/index.cjs +7 -0
- package/dist/MultichainAssetsController/index.cjs.map +1 -0
- package/dist/MultichainAssetsController/{index.d.ts → index.d.cts} +4 -4
- package/dist/MultichainAssetsController/index.d.cts.map +1 -0
- package/dist/MultichainAssetsController/index.d.mts +4 -0
- package/dist/MultichainAssetsController/index.d.mts.map +1 -0
- package/dist/MultichainAssetsController/index.mjs +2 -0
- package/dist/MultichainAssetsController/index.mjs.map +1 -0
- package/dist/MultichainAssetsController/utils.cjs +26 -0
- package/dist/MultichainAssetsController/utils.cjs.map +1 -0
- package/dist/MultichainAssetsController/{utils.d.ts → utils.d.cts} +2 -2
- package/dist/MultichainAssetsController/utils.d.cts.map +1 -0
- package/dist/MultichainAssetsController/utils.d.mts +13 -0
- package/dist/MultichainAssetsController/utils.d.mts.map +1 -0
- package/dist/MultichainAssetsController/{utils.js → utils.mjs} +2 -2
- package/dist/MultichainAssetsController/utils.mjs.map +1 -0
- package/dist/MultichainAssetsRatesController/MultichainAssetsRatesController-method-action-types.cjs +7 -0
- package/dist/MultichainAssetsRatesController/MultichainAssetsRatesController-method-action-types.cjs.map +1 -0
- package/dist/MultichainAssetsRatesController/{MultichainAssetsRatesController-method-action-types.d.ts → MultichainAssetsRatesController-method-action-types.d.cts} +2 -2
- package/dist/MultichainAssetsRatesController/MultichainAssetsRatesController-method-action-types.d.cts.map +1 -0
- package/dist/MultichainAssetsRatesController/MultichainAssetsRatesController-method-action-types.d.mts +30 -0
- package/dist/MultichainAssetsRatesController/MultichainAssetsRatesController-method-action-types.d.mts.map +1 -0
- package/dist/MultichainAssetsRatesController/{MultichainAssetsRatesController-method-action-types.js → MultichainAssetsRatesController-method-action-types.mjs} +1 -1
- package/dist/MultichainAssetsRatesController/MultichainAssetsRatesController-method-action-types.mjs.map +1 -0
- package/dist/MultichainAssetsRatesController/MultichainAssetsRatesController.cjs +490 -0
- package/dist/MultichainAssetsRatesController/MultichainAssetsRatesController.cjs.map +1 -0
- package/dist/MultichainAssetsRatesController/{MultichainAssetsRatesController.d.ts → MultichainAssetsRatesController.d.cts} +20 -20
- package/dist/MultichainAssetsRatesController/MultichainAssetsRatesController.d.cts.map +1 -0
- package/dist/MultichainAssetsRatesController/MultichainAssetsRatesController.d.mts +148 -0
- package/dist/MultichainAssetsRatesController/MultichainAssetsRatesController.d.mts.map +1 -0
- package/dist/MultichainAssetsRatesController/{MultichainAssetsRatesController.js → MultichainAssetsRatesController.mjs} +6 -6
- package/dist/MultichainAssetsRatesController/MultichainAssetsRatesController.mjs.map +1 -0
- package/dist/MultichainAssetsRatesController/constant.cjs +83 -0
- package/dist/MultichainAssetsRatesController/constant.cjs.map +1 -0
- package/dist/MultichainAssetsRatesController/{constant.d.ts → constant.d.cts} +2 -2
- package/dist/MultichainAssetsRatesController/constant.d.cts.map +1 -0
- package/dist/MultichainAssetsRatesController/constant.d.mts +9 -0
- package/dist/MultichainAssetsRatesController/constant.d.mts.map +1 -0
- package/dist/MultichainAssetsRatesController/{constant.js → constant.mjs} +1 -1
- package/dist/MultichainAssetsRatesController/constant.mjs.map +1 -0
- package/dist/MultichainAssetsRatesController/index.cjs +9 -0
- package/dist/MultichainAssetsRatesController/{index.js.map → index.cjs.map} +1 -1
- package/dist/MultichainAssetsRatesController/{index.d.ts → index.d.cts} +5 -5
- package/dist/MultichainAssetsRatesController/index.d.cts.map +1 -0
- package/dist/MultichainAssetsRatesController/index.d.mts +5 -0
- package/dist/MultichainAssetsRatesController/index.d.mts.map +1 -0
- package/dist/MultichainAssetsRatesController/index.mjs +3 -0
- package/dist/MultichainAssetsRatesController/index.mjs.map +1 -0
- package/dist/MultichainBalancesController/MultichainBalancesController.cjs +276 -0
- package/dist/MultichainBalancesController/MultichainBalancesController.cjs.map +1 -0
- package/dist/MultichainBalancesController/{MultichainBalancesController.d.ts → MultichainBalancesController.d.cts} +8 -8
- package/dist/MultichainBalancesController/MultichainBalancesController.d.cts.map +1 -0
- package/dist/MultichainBalancesController/MultichainBalancesController.d.mts +92 -0
- package/dist/MultichainBalancesController/MultichainBalancesController.d.mts.map +1 -0
- package/dist/MultichainBalancesController/{MultichainBalancesController.js → MultichainBalancesController.mjs} +5 -5
- package/dist/MultichainBalancesController/MultichainBalancesController.mjs.map +1 -0
- package/dist/MultichainBalancesController/index.cjs +6 -0
- package/dist/MultichainBalancesController/index.cjs.map +1 -0
- package/dist/MultichainBalancesController/index.d.cts +3 -0
- package/dist/MultichainBalancesController/index.d.cts.map +1 -0
- package/dist/MultichainBalancesController/index.d.mts +3 -0
- package/dist/MultichainBalancesController/index.d.mts.map +1 -0
- package/dist/MultichainBalancesController/index.mjs +2 -0
- package/dist/MultichainBalancesController/index.mjs.map +1 -0
- package/dist/NftController.cjs +1322 -0
- package/dist/NftController.cjs.map +1 -0
- package/dist/{NftController.d.ts → NftController.d.cts} +13 -13
- package/dist/NftController.d.cts.map +1 -0
- package/dist/NftController.d.mts +428 -0
- package/dist/NftController.d.mts.map +1 -0
- package/dist/{NftController.js → NftController.mjs} +21 -14
- package/dist/NftController.mjs.map +1 -0
- package/dist/NftDetectionController.cjs +192 -0
- package/dist/NftDetectionController.cjs.map +1 -0
- package/dist/{NftDetectionController.d.ts → NftDetectionController.d.cts} +11 -11
- package/dist/NftDetectionController.d.cts.map +1 -0
- package/dist/NftDetectionController.d.mts +378 -0
- package/dist/NftDetectionController.d.mts.map +1 -0
- package/dist/{NftDetectionController.js → NftDetectionController.mjs} +5 -5
- package/dist/NftDetectionController.mjs.map +1 -0
- package/dist/RatesController/RatesController.cjs +217 -0
- package/dist/RatesController/RatesController.cjs.map +1 -0
- package/dist/RatesController/{RatesController.d.ts → RatesController.d.cts} +3 -3
- package/dist/RatesController/RatesController.d.cts.map +1 -0
- package/dist/RatesController/RatesController.d.mts +54 -0
- package/dist/RatesController/RatesController.d.mts.map +1 -0
- package/dist/RatesController/{RatesController.js → RatesController.mjs} +4 -4
- package/dist/RatesController/RatesController.mjs.map +1 -0
- package/dist/RatesController/index.cjs +7 -0
- package/dist/RatesController/index.cjs.map +1 -0
- package/dist/RatesController/{index.d.ts → index.d.cts} +3 -3
- package/dist/RatesController/index.d.cts.map +1 -0
- package/dist/RatesController/index.d.mts +3 -0
- package/dist/RatesController/index.d.mts.map +1 -0
- package/dist/RatesController/index.mjs +2 -0
- package/dist/RatesController/index.mjs.map +1 -0
- package/dist/RatesController/types.cjs +3 -0
- package/dist/RatesController/types.cjs.map +1 -0
- package/dist/RatesController/{types.d.ts → types.d.cts} +5 -5
- package/dist/RatesController/types.d.cts.map +1 -0
- package/dist/RatesController/types.d.mts +100 -0
- package/dist/RatesController/types.d.mts.map +1 -0
- package/dist/RatesController/types.mjs +2 -0
- package/dist/RatesController/types.mjs.map +1 -0
- package/dist/Standards/ERC20Standard.cjs +127 -0
- package/dist/Standards/ERC20Standard.cjs.map +1 -0
- package/dist/Standards/{ERC20Standard.d.ts → ERC20Standard.d.cts} +3 -3
- package/dist/Standards/ERC20Standard.d.cts.map +1 -0
- package/dist/Standards/ERC20Standard.d.mts +49 -0
- package/dist/Standards/ERC20Standard.d.mts.map +1 -0
- package/dist/Standards/{ERC20Standard.js → ERC20Standard.mjs} +8 -8
- package/dist/Standards/ERC20Standard.mjs.map +1 -0
- package/dist/Standards/NftStandards/ERC1155/ERC1155Standard.cjs +189 -0
- package/dist/Standards/NftStandards/ERC1155/ERC1155Standard.cjs.map +1 -0
- package/dist/Standards/NftStandards/ERC1155/{ERC1155Standard.d.ts → ERC1155Standard.d.cts} +3 -3
- package/dist/Standards/NftStandards/ERC1155/ERC1155Standard.d.cts.map +1 -0
- package/dist/Standards/NftStandards/ERC1155/ERC1155Standard.d.mts +95 -0
- package/dist/Standards/NftStandards/ERC1155/ERC1155Standard.d.mts.map +1 -0
- package/dist/Standards/NftStandards/ERC1155/{ERC1155Standard.js → ERC1155Standard.mjs} +5 -5
- package/dist/Standards/NftStandards/ERC1155/ERC1155Standard.mjs.map +1 -0
- package/dist/Standards/NftStandards/ERC721/ERC721Standard.cjs +167 -0
- package/dist/Standards/NftStandards/ERC721/ERC721Standard.cjs.map +1 -0
- package/dist/Standards/NftStandards/ERC721/{ERC721Standard.d.ts → ERC721Standard.d.cts} +2 -2
- package/dist/Standards/NftStandards/ERC721/ERC721Standard.d.cts.map +1 -0
- package/dist/Standards/NftStandards/ERC721/ERC721Standard.d.mts +89 -0
- package/dist/Standards/NftStandards/ERC721/ERC721Standard.d.mts.map +1 -0
- package/dist/Standards/NftStandards/ERC721/{ERC721Standard.js → ERC721Standard.mjs} +5 -5
- package/dist/Standards/NftStandards/ERC721/ERC721Standard.mjs.map +1 -0
- package/dist/TokenBalancesController-method-action-types.cjs +7 -0
- package/dist/TokenBalancesController-method-action-types.cjs.map +1 -0
- package/dist/{TokenBalancesController-method-action-types.d.ts → TokenBalancesController-method-action-types.d.cts} +2 -2
- package/dist/TokenBalancesController-method-action-types.d.cts.map +1 -0
- package/dist/TokenBalancesController-method-action-types.d.mts +26 -0
- package/dist/TokenBalancesController-method-action-types.d.mts.map +1 -0
- package/dist/{TokenBalancesController-method-action-types.js → TokenBalancesController-method-action-types.mjs} +1 -1
- package/dist/TokenBalancesController-method-action-types.mjs.map +1 -0
- package/dist/TokenBalancesController.cjs +923 -0
- package/dist/TokenBalancesController.cjs.map +1 -0
- package/dist/{TokenBalancesController.d.ts → TokenBalancesController.d.cts} +31 -28
- package/dist/TokenBalancesController.d.cts.map +1 -0
- package/dist/TokenBalancesController.d.mts +160 -0
- package/dist/TokenBalancesController.d.mts.map +1 -0
- package/dist/{TokenBalancesController.js → TokenBalancesController.mjs} +13 -12
- package/dist/TokenBalancesController.mjs.map +1 -0
- package/dist/TokenDetectionController-method-action-types.cjs +7 -0
- package/dist/TokenDetectionController-method-action-types.cjs.map +1 -0
- package/dist/{TokenDetectionController-method-action-types.d.ts → TokenDetectionController-method-action-types.d.cts} +2 -2
- package/dist/TokenDetectionController-method-action-types.d.cts.map +1 -0
- package/dist/TokenDetectionController-method-action-types.d.mts +89 -0
- package/dist/TokenDetectionController-method-action-types.d.mts.map +1 -0
- package/dist/{TokenDetectionController-method-action-types.js → TokenDetectionController-method-action-types.mjs} +1 -1
- package/dist/TokenDetectionController-method-action-types.mjs.map +1 -0
- package/dist/TokenDetectionController.cjs +681 -0
- package/dist/TokenDetectionController.cjs.map +1 -0
- package/dist/{TokenDetectionController.d.ts → TokenDetectionController.d.cts} +24 -24
- package/dist/TokenDetectionController.d.cts.map +1 -0
- package/dist/TokenDetectionController.d.mts +177 -0
- package/dist/TokenDetectionController.d.mts.map +1 -0
- package/dist/{TokenDetectionController.js → TokenDetectionController.mjs} +13 -6
- package/dist/TokenDetectionController.mjs.map +1 -0
- package/dist/TokenListController.cjs +537 -0
- package/dist/TokenListController.cjs.map +1 -0
- package/dist/{TokenListController.d.ts → TokenListController.d.cts} +15 -15
- package/dist/TokenListController.d.cts.map +1 -0
- package/dist/TokenListController.d.mts +138 -0
- package/dist/TokenListController.d.mts.map +1 -0
- package/dist/{TokenListController.js → TokenListController.mjs} +5 -5
- package/dist/TokenListController.mjs.map +1 -0
- package/dist/TokenListService.cjs +107 -0
- package/dist/TokenListService.cjs.map +1 -0
- package/dist/{TokenListService.d.ts → TokenListService.d.cts} +3 -3
- package/dist/TokenListService.d.cts.map +1 -0
- package/dist/TokenListService.d.mts +40 -0
- package/dist/TokenListService.d.mts.map +1 -0
- package/dist/{TokenListService.js → TokenListService.mjs} +4 -4
- package/dist/TokenListService.mjs.map +1 -0
- package/dist/TokenRatesController.cjs +327 -0
- package/dist/TokenRatesController.cjs.map +1 -0
- package/dist/{TokenRatesController.d.ts → TokenRatesController.d.cts} +17 -17
- package/dist/TokenRatesController.d.cts.map +1 -0
- package/dist/TokenRatesController.d.mts +191 -0
- package/dist/TokenRatesController.d.mts.map +1 -0
- package/dist/{TokenRatesController.js → TokenRatesController.mjs} +7 -6
- package/dist/TokenRatesController.mjs.map +1 -0
- package/dist/TokenSearchDiscoveryDataController/TokenSearchDiscoveryDataController.cjs +129 -0
- package/dist/TokenSearchDiscoveryDataController/TokenSearchDiscoveryDataController.cjs.map +1 -0
- package/dist/TokenSearchDiscoveryDataController/{TokenSearchDiscoveryDataController.d.ts → TokenSearchDiscoveryDataController.d.cts} +8 -8
- package/dist/TokenSearchDiscoveryDataController/TokenSearchDiscoveryDataController.d.cts.map +1 -0
- package/dist/TokenSearchDiscoveryDataController/TokenSearchDiscoveryDataController.d.mts +68 -0
- package/dist/TokenSearchDiscoveryDataController/TokenSearchDiscoveryDataController.d.mts.map +1 -0
- package/dist/TokenSearchDiscoveryDataController/{TokenSearchDiscoveryDataController.js → TokenSearchDiscoveryDataController.mjs} +4 -4
- package/dist/TokenSearchDiscoveryDataController/TokenSearchDiscoveryDataController.mjs.map +1 -0
- package/dist/TokenSearchDiscoveryDataController/index.cjs +18 -0
- package/dist/TokenSearchDiscoveryDataController/index.cjs.map +1 -0
- package/dist/TokenSearchDiscoveryDataController/index.d.cts +3 -0
- package/dist/TokenSearchDiscoveryDataController/index.d.cts.map +1 -0
- package/dist/TokenSearchDiscoveryDataController/index.d.mts +3 -0
- package/dist/TokenSearchDiscoveryDataController/index.d.mts.map +1 -0
- package/dist/TokenSearchDiscoveryDataController/index.mjs +2 -0
- package/dist/TokenSearchDiscoveryDataController/index.mjs.map +1 -0
- package/dist/TokenSearchDiscoveryDataController/types.cjs +3 -0
- package/dist/TokenSearchDiscoveryDataController/types.cjs.map +1 -0
- package/dist/TokenSearchDiscoveryDataController/{types.d.ts → types.d.cts} +4 -4
- package/dist/TokenSearchDiscoveryDataController/types.d.cts.map +1 -0
- package/dist/TokenSearchDiscoveryDataController/types.d.mts +19 -0
- package/dist/TokenSearchDiscoveryDataController/types.d.mts.map +1 -0
- package/dist/TokenSearchDiscoveryDataController/types.mjs +2 -0
- package/dist/TokenSearchDiscoveryDataController/types.mjs.map +1 -0
- package/dist/TokensController-method-action-types.cjs +7 -0
- package/dist/TokensController-method-action-types.cjs.map +1 -0
- package/dist/{TokensController-method-action-types.d.ts → TokensController-method-action-types.d.cts} +2 -2
- package/dist/TokensController-method-action-types.d.cts.map +1 -0
- package/dist/TokensController-method-action-types.d.mts +104 -0
- package/dist/TokensController-method-action-types.d.mts.map +1 -0
- package/dist/{TokensController-method-action-types.js → TokensController-method-action-types.mjs} +1 -1
- package/dist/TokensController-method-action-types.mjs.map +1 -0
- package/dist/TokensController.cjs +790 -0
- package/dist/TokensController.cjs.map +1 -0
- package/dist/{TokensController.d.ts → TokensController.d.cts} +13 -13
- package/dist/TokensController.d.cts.map +1 -0
- package/dist/TokensController.d.mts +180 -0
- package/dist/TokensController.d.mts.map +1 -0
- package/dist/{TokensController.js → TokensController.mjs} +24 -16
- package/dist/TokensController.mjs.map +1 -0
- package/dist/assetsUtil.cjs +374 -0
- package/dist/assetsUtil.cjs.map +1 -0
- package/dist/{assetsUtil.d.ts → assetsUtil.d.cts} +7 -7
- package/dist/assetsUtil.d.cts.map +1 -0
- package/dist/assetsUtil.d.mts +215 -0
- package/dist/assetsUtil.d.mts.map +1 -0
- package/dist/{assetsUtil.js → assetsUtil.mjs} +13 -6
- package/dist/assetsUtil.mjs.map +1 -0
- package/dist/balances.cjs +505 -0
- package/dist/balances.cjs.map +1 -0
- package/dist/{balances.d.ts → balances.d.cts} +11 -11
- package/dist/balances.d.cts.map +1 -0
- package/dist/balances.d.mts +103 -0
- package/dist/balances.d.mts.map +1 -0
- package/dist/{balances.js → balances.mjs} +6 -6
- package/dist/balances.mjs.map +1 -0
- package/dist/constants.cjs +88 -0
- package/dist/constants.cjs.map +1 -0
- package/dist/{constants.d.ts → constants.d.cts} +1 -1
- package/dist/constants.d.cts.map +1 -0
- package/dist/constants.d.mts +30 -0
- package/dist/constants.d.mts.map +1 -0
- package/dist/{constants.js → constants.mjs} +2 -2
- package/dist/constants.mjs.map +1 -0
- package/dist/crypto-compare-service/crypto-compare.cjs +119 -0
- package/dist/crypto-compare-service/crypto-compare.cjs.map +1 -0
- package/dist/crypto-compare-service/{crypto-compare.d.ts → crypto-compare.d.cts} +1 -1
- package/dist/crypto-compare-service/crypto-compare.d.cts.map +1 -0
- package/dist/crypto-compare-service/crypto-compare.d.mts +22 -0
- package/dist/crypto-compare-service/crypto-compare.d.mts.map +1 -0
- package/dist/crypto-compare-service/{crypto-compare.js → crypto-compare.mjs} +3 -3
- package/dist/crypto-compare-service/crypto-compare.mjs.map +1 -0
- package/dist/crypto-compare-service/index.cjs +7 -0
- package/dist/crypto-compare-service/index.cjs.map +1 -0
- package/dist/crypto-compare-service/index.d.cts +2 -0
- package/dist/crypto-compare-service/index.d.cts.map +1 -0
- package/dist/crypto-compare-service/index.d.mts +2 -0
- package/dist/crypto-compare-service/index.d.mts.map +1 -0
- package/dist/crypto-compare-service/index.mjs +2 -0
- package/dist/crypto-compare-service/index.mjs.map +1 -0
- package/dist/index.cjs +95 -0
- package/dist/index.cjs.map +1 -0
- package/dist/{index.d.ts → index.d.cts} +60 -60
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.mts +60 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +29 -0
- package/dist/index.mjs.map +1 -0
- package/dist/multi-chain-accounts-service/api-balance-fetcher.cjs +349 -0
- package/dist/multi-chain-accounts-service/api-balance-fetcher.cjs.map +1 -0
- package/dist/multi-chain-accounts-service/{api-balance-fetcher.d.ts → api-balance-fetcher.d.cts} +5 -5
- package/dist/multi-chain-accounts-service/api-balance-fetcher.d.cts.map +1 -0
- package/dist/multi-chain-accounts-service/api-balance-fetcher.d.mts +51 -0
- package/dist/multi-chain-accounts-service/api-balance-fetcher.d.mts.map +1 -0
- package/dist/multi-chain-accounts-service/{api-balance-fetcher.js → api-balance-fetcher.mjs} +16 -9
- package/dist/multi-chain-accounts-service/api-balance-fetcher.mjs.map +1 -0
- package/dist/multi-chain-accounts-service/index.cjs +7 -0
- package/dist/multi-chain-accounts-service/index.cjs.map +1 -0
- package/dist/multi-chain-accounts-service/{index.d.ts → index.d.cts} +3 -3
- package/dist/multi-chain-accounts-service/index.d.cts.map +1 -0
- package/dist/multi-chain-accounts-service/index.d.mts +3 -0
- package/dist/multi-chain-accounts-service/index.d.mts.map +1 -0
- package/dist/multi-chain-accounts-service/index.mjs +2 -0
- package/dist/multi-chain-accounts-service/index.mjs.map +1 -0
- package/dist/multi-chain-accounts-service/mocks/mock-get-balances.cjs +100 -0
- package/dist/multi-chain-accounts-service/mocks/mock-get-balances.cjs.map +1 -0
- package/dist/multi-chain-accounts-service/mocks/{mock-get-balances.d.ts → mock-get-balances.d.cts} +2 -2
- package/dist/multi-chain-accounts-service/mocks/mock-get-balances.d.cts.map +1 -0
- package/dist/multi-chain-accounts-service/mocks/mock-get-balances.d.mts +4 -0
- package/dist/multi-chain-accounts-service/mocks/mock-get-balances.d.mts.map +1 -0
- package/dist/multi-chain-accounts-service/mocks/{mock-get-balances.js → mock-get-balances.mjs} +1 -1
- package/dist/multi-chain-accounts-service/mocks/mock-get-balances.mjs.map +1 -0
- package/dist/multi-chain-accounts-service/mocks/mock-get-supported-networks.cjs +10 -0
- package/dist/multi-chain-accounts-service/mocks/mock-get-supported-networks.cjs.map +1 -0
- package/dist/multi-chain-accounts-service/mocks/mock-get-supported-networks.d.cts +3 -0
- package/dist/multi-chain-accounts-service/mocks/mock-get-supported-networks.d.cts.map +1 -0
- package/dist/multi-chain-accounts-service/mocks/mock-get-supported-networks.d.mts +3 -0
- package/dist/multi-chain-accounts-service/mocks/mock-get-supported-networks.d.mts.map +1 -0
- package/dist/multi-chain-accounts-service/mocks/{mock-get-supported-networks.js → mock-get-supported-networks.mjs} +1 -1
- package/dist/multi-chain-accounts-service/mocks/mock-get-supported-networks.mjs.map +1 -0
- package/dist/multi-chain-accounts-service/multi-chain-accounts.cjs +87 -0
- package/dist/multi-chain-accounts-service/multi-chain-accounts.cjs.map +1 -0
- package/dist/multi-chain-accounts-service/{multi-chain-accounts.d.ts → multi-chain-accounts.d.cts} +3 -3
- package/dist/multi-chain-accounts-service/multi-chain-accounts.d.cts.map +1 -0
- package/dist/multi-chain-accounts-service/multi-chain-accounts.d.mts +37 -0
- package/dist/multi-chain-accounts-service/multi-chain-accounts.d.mts.map +1 -0
- package/dist/multi-chain-accounts-service/{multi-chain-accounts.js → multi-chain-accounts.mjs} +2 -2
- package/dist/multi-chain-accounts-service/multi-chain-accounts.mjs.map +1 -0
- package/dist/multi-chain-accounts-service/types.cjs +3 -0
- package/dist/multi-chain-accounts-service/types.cjs.map +1 -0
- package/dist/multi-chain-accounts-service/{types.d.ts → types.d.cts} +1 -1
- package/dist/multi-chain-accounts-service/types.d.cts.map +1 -0
- package/dist/multi-chain-accounts-service/types.d.mts +46 -0
- package/dist/multi-chain-accounts-service/types.d.mts.map +1 -0
- package/dist/multi-chain-accounts-service/types.mjs +2 -0
- package/dist/multi-chain-accounts-service/types.mjs.map +1 -0
- package/dist/multicall.cjs +1102 -0
- package/dist/multicall.cjs.map +1 -0
- package/dist/{multicall.d.ts → multicall.d.cts} +5 -5
- package/dist/multicall.d.cts.map +1 -0
- package/dist/multicall.d.mts +98 -0
- package/dist/multicall.d.mts.map +1 -0
- package/dist/{multicall.js → multicall.mjs} +12 -5
- package/dist/multicall.mjs.map +1 -0
- package/dist/rpc-service/rpc-balance-fetcher.cjs +248 -0
- package/dist/rpc-service/rpc-balance-fetcher.cjs.map +1 -0
- package/dist/rpc-service/{rpc-balance-fetcher.d.ts → rpc-balance-fetcher.d.cts} +8 -8
- package/dist/rpc-service/rpc-balance-fetcher.d.cts.map +1 -0
- package/dist/rpc-service/rpc-balance-fetcher.d.mts +41 -0
- package/dist/rpc-service/rpc-balance-fetcher.d.mts.map +1 -0
- package/dist/rpc-service/{rpc-balance-fetcher.js → rpc-balance-fetcher.mjs} +13 -6
- package/dist/rpc-service/rpc-balance-fetcher.mjs.map +1 -0
- package/dist/selectors/stringify-balance.cjs +72 -0
- package/dist/selectors/stringify-balance.cjs.map +1 -0
- package/dist/selectors/{stringify-balance.d.ts → stringify-balance.d.cts} +2 -2
- package/dist/selectors/stringify-balance.d.cts.map +1 -0
- package/dist/selectors/stringify-balance.d.mts +23 -0
- package/dist/selectors/stringify-balance.d.mts.map +1 -0
- package/dist/selectors/{stringify-balance.js → stringify-balance.mjs} +2 -2
- package/dist/selectors/stringify-balance.mjs.map +1 -0
- package/dist/selectors/token-selectors.cjs +366 -0
- package/dist/selectors/token-selectors.cjs.map +1 -0
- package/dist/selectors/token-selectors.d.cts +1511 -0
- package/dist/selectors/token-selectors.d.cts.map +1 -0
- package/dist/selectors/token-selectors.d.mts +1511 -0
- package/dist/selectors/token-selectors.d.mts.map +1 -0
- package/dist/selectors/{token-selectors.js → token-selectors.mjs} +8 -12
- package/dist/selectors/token-selectors.mjs.map +1 -0
- package/dist/token-prices-service/abstract-token-prices-service.cjs +3 -0
- package/dist/token-prices-service/abstract-token-prices-service.cjs.map +1 -0
- package/dist/token-prices-service/{abstract-token-prices-service.d.ts → abstract-token-prices-service.d.cts} +4 -4
- package/dist/token-prices-service/abstract-token-prices-service.d.cts.map +1 -0
- package/dist/token-prices-service/abstract-token-prices-service.d.mts +95 -0
- package/dist/token-prices-service/abstract-token-prices-service.d.mts.map +1 -0
- package/dist/token-prices-service/abstract-token-prices-service.mjs +2 -0
- package/dist/token-prices-service/abstract-token-prices-service.mjs.map +1 -0
- package/dist/token-prices-service/codefi-v2.cjs +773 -0
- package/dist/token-prices-service/codefi-v2.cjs.map +1 -0
- package/dist/token-prices-service/{codefi-v2.d.ts → codefi-v2.d.cts} +82 -82
- package/dist/token-prices-service/codefi-v2.d.cts.map +1 -0
- package/dist/token-prices-service/codefi-v2.d.mts +332 -0
- package/dist/token-prices-service/codefi-v2.d.mts.map +1 -0
- package/dist/token-prices-service/{codefi-v2.js → codefi-v2.mjs} +3 -3
- package/dist/token-prices-service/codefi-v2.mjs.map +1 -0
- package/dist/token-prices-service/index.cjs +13 -0
- package/dist/token-prices-service/index.cjs.map +1 -0
- package/dist/token-prices-service/{index.d.ts → index.d.cts} +3 -3
- package/dist/token-prices-service/index.d.cts.map +1 -0
- package/dist/token-prices-service/index.d.mts +3 -0
- package/dist/token-prices-service/index.d.mts.map +1 -0
- package/dist/token-prices-service/{index.js → index.mjs} +2 -2
- package/dist/token-prices-service/index.mjs.map +1 -0
- package/dist/token-service.cjs +467 -0
- package/dist/token-service.cjs.map +1 -0
- package/dist/{token-service.d.ts → token-service.d.cts} +2 -2
- package/dist/token-service.d.cts.map +1 -0
- package/dist/token-service.d.mts +313 -0
- package/dist/token-service.d.mts.map +1 -0
- package/dist/{token-service.js → token-service.mjs} +3 -3
- package/dist/token-service.mjs.map +1 -0
- package/dist/utils/create-batch-handler.cjs +54 -0
- package/dist/utils/create-batch-handler.cjs.map +1 -0
- package/dist/utils/{create-batch-handler.d.ts → create-batch-handler.d.cts} +1 -1
- package/dist/utils/create-batch-handler.d.cts.map +1 -0
- package/dist/utils/create-batch-handler.d.mts +16 -0
- package/dist/utils/create-batch-handler.d.mts.map +1 -0
- package/dist/utils/{create-batch-handler.js → create-batch-handler.mjs} +3 -2
- package/dist/utils/create-batch-handler.mjs.map +1 -0
- package/dist/utils/formatters.cjs +275 -0
- package/dist/utils/formatters.cjs.map +1 -0
- package/dist/utils/{formatters.d.ts → formatters.d.cts} +1 -1
- package/dist/utils/formatters.d.cts.map +1 -0
- package/dist/utils/formatters.d.mts +63 -0
- package/dist/utils/formatters.d.mts.map +1 -0
- package/dist/utils/{formatters.js → formatters.mjs} +1 -1
- package/dist/utils/formatters.mjs.map +1 -0
- package/dist/utils/timeout-with-retry.cjs +34 -0
- package/dist/utils/timeout-with-retry.cjs.map +1 -0
- package/dist/utils/{timeout-with-retry.d.ts → timeout-with-retry.d.cts} +1 -1
- package/dist/utils/timeout-with-retry.d.cts.map +1 -0
- package/dist/utils/timeout-with-retry.d.mts +9 -0
- package/dist/utils/timeout-with-retry.d.mts.map +1 -0
- package/dist/utils/{timeout-with-retry.js → timeout-with-retry.mjs} +2 -2
- package/dist/utils/timeout-with-retry.mjs.map +1 -0
- package/package.json +20 -16
- package/dist/AccountTrackerController-method-action-types.d.ts.map +0 -1
- package/dist/AccountTrackerController-method-action-types.js.map +0 -1
- package/dist/AccountTrackerController.d.ts.map +0 -1
- package/dist/AccountTrackerController.js.map +0 -1
- package/dist/AssetsContractController-method-action-types.d.ts.map +0 -1
- package/dist/AssetsContractController-method-action-types.js.map +0 -1
- package/dist/AssetsContractController.d.ts.map +0 -1
- package/dist/AssetsContractController.js.map +0 -1
- package/dist/CurrencyRateController-method-action-types.d.ts.map +0 -1
- package/dist/CurrencyRateController-method-action-types.js.map +0 -1
- package/dist/CurrencyRateController.d.ts.map +0 -1
- package/dist/CurrencyRateController.js.map +0 -1
- package/dist/DeFiPositionsController/DeFiPositionsController.d.ts.map +0 -1
- package/dist/DeFiPositionsController/DeFiPositionsController.js.map +0 -1
- package/dist/DeFiPositionsController/DeFiPositionsControllerV2-method-action-types.d.ts.map +0 -1
- package/dist/DeFiPositionsController/DeFiPositionsControllerV2-method-action-types.js.map +0 -1
- package/dist/DeFiPositionsController/DeFiPositionsControllerV2.d.ts.map +0 -1
- package/dist/DeFiPositionsController/DeFiPositionsControllerV2.js.map +0 -1
- package/dist/DeFiPositionsController/build-defi-balances-query.d.ts.map +0 -1
- package/dist/DeFiPositionsController/build-defi-balances-query.js.map +0 -1
- package/dist/DeFiPositionsController/calculate-defi-metrics.d.ts.map +0 -1
- package/dist/DeFiPositionsController/calculate-defi-metrics.js.map +0 -1
- package/dist/DeFiPositionsController/defi-controller-v2-feature-flag.d.ts.map +0 -1
- package/dist/DeFiPositionsController/defi-controller-v2-feature-flag.js.map +0 -1
- package/dist/DeFiPositionsController/fetch-positions.d.ts.map +0 -1
- package/dist/DeFiPositionsController/fetch-positions.js.map +0 -1
- package/dist/DeFiPositionsController/group-defi-positions-v6.d.ts.map +0 -1
- package/dist/DeFiPositionsController/group-defi-positions-v6.js.map +0 -1
- package/dist/DeFiPositionsController/group-defi-positions.d.ts.map +0 -1
- package/dist/DeFiPositionsController/group-defi-positions.js.map +0 -1
- package/dist/DeFiPositionsController/merge-positions-for-accounts.d.ts.map +0 -1
- package/dist/DeFiPositionsController/merge-positions-for-accounts.js.map +0 -1
- package/dist/MultichainAssetsController/MultichainAssetsController-method-action-types.d.ts.map +0 -1
- package/dist/MultichainAssetsController/MultichainAssetsController-method-action-types.js.map +0 -1
- package/dist/MultichainAssetsController/MultichainAssetsController.d.ts.map +0 -1
- package/dist/MultichainAssetsController/MultichainAssetsController.js.map +0 -1
- package/dist/MultichainAssetsController/index.d.ts.map +0 -1
- package/dist/MultichainAssetsController/index.js +0 -2
- package/dist/MultichainAssetsController/index.js.map +0 -1
- package/dist/MultichainAssetsController/utils.d.ts.map +0 -1
- package/dist/MultichainAssetsController/utils.js.map +0 -1
- package/dist/MultichainAssetsRatesController/MultichainAssetsRatesController-method-action-types.d.ts.map +0 -1
- package/dist/MultichainAssetsRatesController/MultichainAssetsRatesController-method-action-types.js.map +0 -1
- package/dist/MultichainAssetsRatesController/MultichainAssetsRatesController.d.ts.map +0 -1
- package/dist/MultichainAssetsRatesController/MultichainAssetsRatesController.js.map +0 -1
- package/dist/MultichainAssetsRatesController/constant.d.ts.map +0 -1
- package/dist/MultichainAssetsRatesController/constant.js.map +0 -1
- package/dist/MultichainAssetsRatesController/index.d.ts.map +0 -1
- package/dist/MultichainAssetsRatesController/index.js +0 -3
- package/dist/MultichainBalancesController/MultichainBalancesController.d.ts.map +0 -1
- package/dist/MultichainBalancesController/MultichainBalancesController.js.map +0 -1
- package/dist/MultichainBalancesController/index.d.ts +0 -3
- package/dist/MultichainBalancesController/index.d.ts.map +0 -1
- package/dist/MultichainBalancesController/index.js +0 -2
- package/dist/MultichainBalancesController/index.js.map +0 -1
- package/dist/NftController.d.ts.map +0 -1
- package/dist/NftController.js.map +0 -1
- package/dist/NftDetectionController.d.ts.map +0 -1
- package/dist/NftDetectionController.js.map +0 -1
- package/dist/RatesController/RatesController.d.ts.map +0 -1
- package/dist/RatesController/RatesController.js.map +0 -1
- package/dist/RatesController/index.d.ts.map +0 -1
- package/dist/RatesController/index.js +0 -2
- package/dist/RatesController/index.js.map +0 -1
- package/dist/RatesController/types.d.ts.map +0 -1
- package/dist/RatesController/types.js +0 -2
- package/dist/RatesController/types.js.map +0 -1
- package/dist/Standards/ERC20Standard.d.ts.map +0 -1
- package/dist/Standards/ERC20Standard.js.map +0 -1
- package/dist/Standards/NftStandards/ERC1155/ERC1155Standard.d.ts.map +0 -1
- package/dist/Standards/NftStandards/ERC1155/ERC1155Standard.js.map +0 -1
- package/dist/Standards/NftStandards/ERC721/ERC721Standard.d.ts.map +0 -1
- package/dist/Standards/NftStandards/ERC721/ERC721Standard.js.map +0 -1
- package/dist/TokenBalancesController-method-action-types.d.ts.map +0 -1
- package/dist/TokenBalancesController-method-action-types.js.map +0 -1
- package/dist/TokenBalancesController.d.ts.map +0 -1
- package/dist/TokenBalancesController.js.map +0 -1
- package/dist/TokenDetectionController-method-action-types.d.ts.map +0 -1
- package/dist/TokenDetectionController-method-action-types.js.map +0 -1
- package/dist/TokenDetectionController.d.ts.map +0 -1
- package/dist/TokenDetectionController.js.map +0 -1
- package/dist/TokenListController.d.ts.map +0 -1
- package/dist/TokenListController.js.map +0 -1
- package/dist/TokenListService.d.ts.map +0 -1
- package/dist/TokenListService.js.map +0 -1
- package/dist/TokenRatesController.d.ts.map +0 -1
- package/dist/TokenRatesController.js.map +0 -1
- package/dist/TokenSearchDiscoveryDataController/TokenSearchDiscoveryDataController.d.ts.map +0 -1
- package/dist/TokenSearchDiscoveryDataController/TokenSearchDiscoveryDataController.js.map +0 -1
- package/dist/TokenSearchDiscoveryDataController/index.d.ts +0 -3
- package/dist/TokenSearchDiscoveryDataController/index.d.ts.map +0 -1
- package/dist/TokenSearchDiscoveryDataController/index.js +0 -2
- package/dist/TokenSearchDiscoveryDataController/index.js.map +0 -1
- package/dist/TokenSearchDiscoveryDataController/types.d.ts.map +0 -1
- package/dist/TokenSearchDiscoveryDataController/types.js +0 -2
- package/dist/TokenSearchDiscoveryDataController/types.js.map +0 -1
- package/dist/TokensController-method-action-types.d.ts.map +0 -1
- package/dist/TokensController-method-action-types.js.map +0 -1
- package/dist/TokensController.d.ts.map +0 -1
- package/dist/TokensController.js.map +0 -1
- package/dist/assetsUtil.d.ts.map +0 -1
- package/dist/assetsUtil.js.map +0 -1
- package/dist/balances.d.ts.map +0 -1
- package/dist/balances.js.map +0 -1
- package/dist/constants.d.ts.map +0 -1
- package/dist/constants.js.map +0 -1
- package/dist/crypto-compare-service/crypto-compare.d.ts.map +0 -1
- package/dist/crypto-compare-service/crypto-compare.js.map +0 -1
- package/dist/crypto-compare-service/index.d.ts +0 -2
- package/dist/crypto-compare-service/index.d.ts.map +0 -1
- package/dist/crypto-compare-service/index.js +0 -2
- package/dist/crypto-compare-service/index.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -29
- package/dist/index.js.map +0 -1
- package/dist/multi-chain-accounts-service/api-balance-fetcher.d.ts.map +0 -1
- package/dist/multi-chain-accounts-service/api-balance-fetcher.js.map +0 -1
- package/dist/multi-chain-accounts-service/index.d.ts.map +0 -1
- package/dist/multi-chain-accounts-service/index.js +0 -2
- package/dist/multi-chain-accounts-service/index.js.map +0 -1
- package/dist/multi-chain-accounts-service/mocks/mock-get-balances.d.ts.map +0 -1
- package/dist/multi-chain-accounts-service/mocks/mock-get-balances.js.map +0 -1
- package/dist/multi-chain-accounts-service/mocks/mock-get-supported-networks.d.ts +0 -3
- package/dist/multi-chain-accounts-service/mocks/mock-get-supported-networks.d.ts.map +0 -1
- package/dist/multi-chain-accounts-service/mocks/mock-get-supported-networks.js.map +0 -1
- package/dist/multi-chain-accounts-service/multi-chain-accounts.d.ts.map +0 -1
- package/dist/multi-chain-accounts-service/multi-chain-accounts.js.map +0 -1
- package/dist/multi-chain-accounts-service/types.d.ts.map +0 -1
- package/dist/multi-chain-accounts-service/types.js +0 -2
- package/dist/multi-chain-accounts-service/types.js.map +0 -1
- package/dist/multicall.d.ts.map +0 -1
- package/dist/multicall.js.map +0 -1
- package/dist/rpc-service/rpc-balance-fetcher.d.ts.map +0 -1
- package/dist/rpc-service/rpc-balance-fetcher.js.map +0 -1
- package/dist/selectors/stringify-balance.d.ts.map +0 -1
- package/dist/selectors/stringify-balance.js.map +0 -1
- package/dist/selectors/token-selectors.d.ts +0 -109
- package/dist/selectors/token-selectors.d.ts.map +0 -1
- package/dist/selectors/token-selectors.js.map +0 -1
- package/dist/token-prices-service/abstract-token-prices-service.d.ts.map +0 -1
- package/dist/token-prices-service/abstract-token-prices-service.js +0 -2
- package/dist/token-prices-service/abstract-token-prices-service.js.map +0 -1
- package/dist/token-prices-service/codefi-v2.d.ts.map +0 -1
- package/dist/token-prices-service/codefi-v2.js.map +0 -1
- package/dist/token-prices-service/index.d.ts.map +0 -1
- package/dist/token-prices-service/index.js.map +0 -1
- package/dist/token-service.d.ts.map +0 -1
- package/dist/token-service.js.map +0 -1
- package/dist/utils/create-batch-handler.d.ts.map +0 -1
- package/dist/utils/create-batch-handler.js.map +0 -1
- package/dist/utils/formatters.d.ts.map +0 -1
- package/dist/utils/formatters.js.map +0 -1
- package/dist/utils/timeout-with-retry.d.ts.map +0 -1
- package/dist/utils/timeout-with-retry.js.map +0 -1
|
@@ -0,0 +1,1511 @@
|
|
|
1
|
+
import type { AccountGroupId } from "@metamask/account-api";
|
|
2
|
+
import type { AccountTreeControllerState } from "@metamask/account-tree-controller";
|
|
3
|
+
import type { AccountsControllerState } from "@metamask/accounts-controller";
|
|
4
|
+
import type { InternalAccount } from "@metamask/keyring-internal-api";
|
|
5
|
+
import type { NetworkState } from "@metamask/network-controller";
|
|
6
|
+
import type { Hex } from "@metamask/utils";
|
|
7
|
+
import { weakMapMemoize } from "reselect";
|
|
8
|
+
import { TokenRwaData } from "src/token-service";
|
|
9
|
+
import type { CurrencyRateState } from "../CurrencyRateController.mjs";
|
|
10
|
+
import type { MultichainAssetsControllerState } from "../MultichainAssetsController/index.mjs";
|
|
11
|
+
import type { MultichainAssetsRatesControllerState } from "../MultichainAssetsRatesController/index.mjs";
|
|
12
|
+
import type { MultichainBalancesControllerState } from "../MultichainBalancesController/index.mjs";
|
|
13
|
+
import type { TokenBalancesControllerState } from "../TokenBalancesController.mjs";
|
|
14
|
+
import type { Token, TokenRatesControllerState } from "../TokenRatesController.mjs";
|
|
15
|
+
import type { TokensControllerState } from "../TokensController.mjs";
|
|
16
|
+
export declare const TRON_RESOURCE: {
|
|
17
|
+
readonly ENERGY: "energy";
|
|
18
|
+
readonly BANDWIDTH: "bandwidth";
|
|
19
|
+
readonly MAX_ENERGY: "max-energy";
|
|
20
|
+
readonly MAX_BANDWIDTH: "max-bandwidth";
|
|
21
|
+
readonly STRX_ENERGY: "strx-energy";
|
|
22
|
+
readonly STRX_BANDWIDTH: "strx-bandwidth";
|
|
23
|
+
readonly TRX_READY_FOR_WITHDRAWAL: "trx-ready-for-withdrawal";
|
|
24
|
+
readonly TRX_STAKING_REWARDS: "trx-staking-rewards";
|
|
25
|
+
readonly TRX_IN_LOCK_PERIOD: "trx-in-lock-period";
|
|
26
|
+
};
|
|
27
|
+
export type TronResourceSymbol = (typeof TRON_RESOURCE)[keyof typeof TRON_RESOURCE];
|
|
28
|
+
export declare const TRON_RESOURCE_SYMBOLS: readonly TronResourceSymbol[];
|
|
29
|
+
export declare const TRON_RESOURCE_SYMBOLS_SET: ReadonlySet<TronResourceSymbol>;
|
|
30
|
+
export type AssetsByAccountGroup = {
|
|
31
|
+
[accountGroupId: AccountGroupId]: AccountGroupAssets;
|
|
32
|
+
};
|
|
33
|
+
export type AccountGroupAssets = {
|
|
34
|
+
[network: string]: Asset[];
|
|
35
|
+
};
|
|
36
|
+
type EvmAccountType = Extract<InternalAccount['type'], `eip155:${string}`>;
|
|
37
|
+
type MultichainAccountType = Exclude<InternalAccount['type'], `eip155:${string}`>;
|
|
38
|
+
export type Asset = ({
|
|
39
|
+
accountType: EvmAccountType;
|
|
40
|
+
assetId: Hex;
|
|
41
|
+
address: Hex;
|
|
42
|
+
chainId: Hex;
|
|
43
|
+
} | {
|
|
44
|
+
accountType: MultichainAccountType;
|
|
45
|
+
assetId: `${string}:${string}/${string}:${string}`;
|
|
46
|
+
chainId: `${string}:${string}`;
|
|
47
|
+
}) & {
|
|
48
|
+
accountId: string;
|
|
49
|
+
image: string;
|
|
50
|
+
name: string;
|
|
51
|
+
symbol: string;
|
|
52
|
+
decimals: number;
|
|
53
|
+
isNative: boolean;
|
|
54
|
+
rawBalance: Hex;
|
|
55
|
+
balance: string;
|
|
56
|
+
fiat: {
|
|
57
|
+
balance: number;
|
|
58
|
+
currency: string;
|
|
59
|
+
conversionRate: number;
|
|
60
|
+
} | undefined;
|
|
61
|
+
rwaData?: TokenRwaData;
|
|
62
|
+
};
|
|
63
|
+
export type AssetListState = {
|
|
64
|
+
accountTree: AccountTreeControllerState['accountTree'];
|
|
65
|
+
selectedAccountGroup: AccountTreeControllerState['selectedAccountGroup'];
|
|
66
|
+
internalAccounts: AccountsControllerState['internalAccounts'];
|
|
67
|
+
allTokens: TokensControllerState['allTokens'];
|
|
68
|
+
allIgnoredTokens: TokensControllerState['allIgnoredTokens'];
|
|
69
|
+
tokenBalances: TokenBalancesControllerState['tokenBalances'];
|
|
70
|
+
marketData: TokenRatesControllerState['marketData'];
|
|
71
|
+
currencyRates: CurrencyRateState['currencyRates'];
|
|
72
|
+
accountsAssets: MultichainAssetsControllerState['accountsAssets'];
|
|
73
|
+
allIgnoredAssets: MultichainAssetsControllerState['allIgnoredAssets'];
|
|
74
|
+
assetsMetadata: MultichainAssetsControllerState['assetsMetadata'];
|
|
75
|
+
balances: MultichainBalancesControllerState['balances'];
|
|
76
|
+
conversionRates: MultichainAssetsRatesControllerState['conversionRates'];
|
|
77
|
+
currentCurrency: CurrencyRateState['currentCurrency'];
|
|
78
|
+
networkConfigurationsByChainId: NetworkState['networkConfigurationsByChainId'];
|
|
79
|
+
accountsByChainId: Record<Hex, Record<Hex, {
|
|
80
|
+
balance: Hex | null;
|
|
81
|
+
}>>;
|
|
82
|
+
};
|
|
83
|
+
export declare const selectAllAssets: ((state: AssetListState) => AssetsByAccountGroup) & {
|
|
84
|
+
clearCache: () => void;
|
|
85
|
+
resultsCount: () => number;
|
|
86
|
+
resetResultsCount: () => void;
|
|
87
|
+
} & {
|
|
88
|
+
resultFunc: (resultFuncArgs_0: AssetsByAccountGroup, resultFuncArgs_1: AssetsByAccountGroup, resultFuncArgs_2: AssetsByAccountGroup) => AssetsByAccountGroup;
|
|
89
|
+
memoizedResultFunc: ((resultFuncArgs_0: AssetsByAccountGroup, resultFuncArgs_1: AssetsByAccountGroup, resultFuncArgs_2: AssetsByAccountGroup) => AssetsByAccountGroup) & {
|
|
90
|
+
clearCache: () => void;
|
|
91
|
+
resultsCount: () => number;
|
|
92
|
+
resetResultsCount: () => void;
|
|
93
|
+
};
|
|
94
|
+
lastResult: () => AssetsByAccountGroup;
|
|
95
|
+
dependencies: [((state: AssetListState) => AssetsByAccountGroup) & {
|
|
96
|
+
clearCache: () => void;
|
|
97
|
+
resultsCount: () => number;
|
|
98
|
+
resetResultsCount: () => void;
|
|
99
|
+
} & {
|
|
100
|
+
resultFunc: (resultFuncArgs_0: Record<string, {
|
|
101
|
+
accountGroupId: AccountGroupId;
|
|
102
|
+
type: InternalAccount['type'];
|
|
103
|
+
accountId: string;
|
|
104
|
+
}>, resultFuncArgs_1: {
|
|
105
|
+
[chainId: `0x${string}`]: {
|
|
106
|
+
[key: string]: Token[];
|
|
107
|
+
};
|
|
108
|
+
}, resultFuncArgs_2: {
|
|
109
|
+
[chainId: `0x${string}`]: {
|
|
110
|
+
[key: string]: string[];
|
|
111
|
+
};
|
|
112
|
+
}, resultFuncArgs_3: import("../TokenBalancesController.mjs").TokenBalances, resultFuncArgs_4: Record<`0x${string}`, Record<`0x${string}`, import("../TokenRatesController.mjs").MarketDataDetails>>, resultFuncArgs_5: Record<string, {
|
|
113
|
+
conversionDate: number | null;
|
|
114
|
+
conversionRate: number | null;
|
|
115
|
+
usdConversionRate: number | null;
|
|
116
|
+
}>, resultFuncArgs_6: string) => AssetsByAccountGroup;
|
|
117
|
+
memoizedResultFunc: ((resultFuncArgs_0: Record<string, {
|
|
118
|
+
accountGroupId: AccountGroupId;
|
|
119
|
+
type: InternalAccount['type'];
|
|
120
|
+
accountId: string;
|
|
121
|
+
}>, resultFuncArgs_1: {
|
|
122
|
+
[chainId: `0x${string}`]: {
|
|
123
|
+
[key: string]: Token[];
|
|
124
|
+
};
|
|
125
|
+
}, resultFuncArgs_2: {
|
|
126
|
+
[chainId: `0x${string}`]: {
|
|
127
|
+
[key: string]: string[];
|
|
128
|
+
};
|
|
129
|
+
}, resultFuncArgs_3: import("../TokenBalancesController.mjs").TokenBalances, resultFuncArgs_4: Record<`0x${string}`, Record<`0x${string}`, import("../TokenRatesController.mjs").MarketDataDetails>>, resultFuncArgs_5: Record<string, {
|
|
130
|
+
conversionDate: number | null;
|
|
131
|
+
conversionRate: number | null;
|
|
132
|
+
usdConversionRate: number | null;
|
|
133
|
+
}>, resultFuncArgs_6: string) => AssetsByAccountGroup) & {
|
|
134
|
+
clearCache: () => void;
|
|
135
|
+
resultsCount: () => number;
|
|
136
|
+
resetResultsCount: () => void;
|
|
137
|
+
};
|
|
138
|
+
lastResult: () => AssetsByAccountGroup;
|
|
139
|
+
dependencies: [((state: AssetListState) => Record<string, {
|
|
140
|
+
accountGroupId: AccountGroupId;
|
|
141
|
+
type: InternalAccount['type'];
|
|
142
|
+
accountId: string;
|
|
143
|
+
}>) & {
|
|
144
|
+
clearCache: () => void;
|
|
145
|
+
resultsCount: () => number;
|
|
146
|
+
resetResultsCount: () => void;
|
|
147
|
+
} & {
|
|
148
|
+
resultFunc: (resultFuncArgs_0: {
|
|
149
|
+
wallets: {
|
|
150
|
+
[walletId: `entropy:${string}`]: import("../../../account-tree-controller/src/wallet.mjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletKeyringObject;
|
|
151
|
+
[walletId: `keyring:${string}`]: import("../../../account-tree-controller/src/wallet.mjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletKeyringObject;
|
|
152
|
+
[walletId: `snap:${string}`]: import("../../../account-tree-controller/src/wallet.mjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletKeyringObject;
|
|
153
|
+
};
|
|
154
|
+
}, resultFuncArgs_1: {
|
|
155
|
+
accounts: Record<string, {
|
|
156
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
|
|
157
|
+
id: string;
|
|
158
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
|
159
|
+
entropy?: {
|
|
160
|
+
type: "mnemonic";
|
|
161
|
+
id: string;
|
|
162
|
+
derivationPath: string;
|
|
163
|
+
groupIndex: number;
|
|
164
|
+
} | {
|
|
165
|
+
type: "private-key";
|
|
166
|
+
} | {
|
|
167
|
+
type: "custom";
|
|
168
|
+
} | undefined;
|
|
169
|
+
exportable?: boolean | undefined;
|
|
170
|
+
};
|
|
171
|
+
metadata: {
|
|
172
|
+
name: string;
|
|
173
|
+
importTime: number;
|
|
174
|
+
keyring: {
|
|
175
|
+
type: string;
|
|
176
|
+
};
|
|
177
|
+
snap?: {
|
|
178
|
+
id: string;
|
|
179
|
+
} | undefined;
|
|
180
|
+
nameLastUpdatedAt?: number | undefined;
|
|
181
|
+
lastSelected?: number | undefined;
|
|
182
|
+
};
|
|
183
|
+
address: string;
|
|
184
|
+
scopes: `${string}:${string}`[];
|
|
185
|
+
methods: string[];
|
|
186
|
+
}>;
|
|
187
|
+
selectedAccount: string;
|
|
188
|
+
}) => Record<string, {
|
|
189
|
+
accountGroupId: AccountGroupId;
|
|
190
|
+
type: InternalAccount['type'];
|
|
191
|
+
accountId: string;
|
|
192
|
+
}>;
|
|
193
|
+
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
194
|
+
wallets: {
|
|
195
|
+
[walletId: `entropy:${string}`]: import("../../../account-tree-controller/src/wallet.mjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletKeyringObject;
|
|
196
|
+
[walletId: `keyring:${string}`]: import("../../../account-tree-controller/src/wallet.mjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletKeyringObject;
|
|
197
|
+
[walletId: `snap:${string}`]: import("../../../account-tree-controller/src/wallet.mjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletKeyringObject;
|
|
198
|
+
};
|
|
199
|
+
}, resultFuncArgs_1: {
|
|
200
|
+
accounts: Record<string, {
|
|
201
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
|
|
202
|
+
id: string;
|
|
203
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
|
204
|
+
entropy?: {
|
|
205
|
+
type: "mnemonic";
|
|
206
|
+
id: string;
|
|
207
|
+
derivationPath: string;
|
|
208
|
+
groupIndex: number;
|
|
209
|
+
} | {
|
|
210
|
+
type: "private-key";
|
|
211
|
+
} | {
|
|
212
|
+
type: "custom";
|
|
213
|
+
} | undefined;
|
|
214
|
+
exportable?: boolean | undefined;
|
|
215
|
+
};
|
|
216
|
+
metadata: {
|
|
217
|
+
name: string;
|
|
218
|
+
importTime: number;
|
|
219
|
+
keyring: {
|
|
220
|
+
type: string;
|
|
221
|
+
};
|
|
222
|
+
snap?: {
|
|
223
|
+
id: string;
|
|
224
|
+
} | undefined;
|
|
225
|
+
nameLastUpdatedAt?: number | undefined;
|
|
226
|
+
lastSelected?: number | undefined;
|
|
227
|
+
};
|
|
228
|
+
address: string;
|
|
229
|
+
scopes: `${string}:${string}`[];
|
|
230
|
+
methods: string[];
|
|
231
|
+
}>;
|
|
232
|
+
selectedAccount: string;
|
|
233
|
+
}) => Record<string, {
|
|
234
|
+
accountGroupId: AccountGroupId;
|
|
235
|
+
type: InternalAccount['type'];
|
|
236
|
+
accountId: string;
|
|
237
|
+
}>) & {
|
|
238
|
+
clearCache: () => void;
|
|
239
|
+
resultsCount: () => number;
|
|
240
|
+
resetResultsCount: () => void;
|
|
241
|
+
};
|
|
242
|
+
lastResult: () => Record<string, {
|
|
243
|
+
accountGroupId: AccountGroupId;
|
|
244
|
+
type: InternalAccount['type'];
|
|
245
|
+
accountId: string;
|
|
246
|
+
}>;
|
|
247
|
+
dependencies: [(state: AssetListState) => {
|
|
248
|
+
wallets: {
|
|
249
|
+
[walletId: `entropy:${string}`]: import("../../../account-tree-controller/src/wallet.mjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletKeyringObject;
|
|
250
|
+
[walletId: `keyring:${string}`]: import("../../../account-tree-controller/src/wallet.mjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletKeyringObject;
|
|
251
|
+
[walletId: `snap:${string}`]: import("../../../account-tree-controller/src/wallet.mjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletKeyringObject;
|
|
252
|
+
};
|
|
253
|
+
}, (state: AssetListState) => {
|
|
254
|
+
accounts: Record<string, {
|
|
255
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
|
|
256
|
+
id: string;
|
|
257
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
|
258
|
+
entropy?: {
|
|
259
|
+
type: "mnemonic";
|
|
260
|
+
id: string;
|
|
261
|
+
derivationPath: string;
|
|
262
|
+
groupIndex: number;
|
|
263
|
+
} | {
|
|
264
|
+
type: "private-key";
|
|
265
|
+
} | {
|
|
266
|
+
type: "custom";
|
|
267
|
+
} | undefined;
|
|
268
|
+
exportable?: boolean | undefined;
|
|
269
|
+
};
|
|
270
|
+
metadata: {
|
|
271
|
+
name: string;
|
|
272
|
+
importTime: number;
|
|
273
|
+
keyring: {
|
|
274
|
+
type: string;
|
|
275
|
+
};
|
|
276
|
+
snap?: {
|
|
277
|
+
id: string;
|
|
278
|
+
} | undefined;
|
|
279
|
+
nameLastUpdatedAt?: number | undefined;
|
|
280
|
+
lastSelected?: number | undefined;
|
|
281
|
+
};
|
|
282
|
+
address: string;
|
|
283
|
+
scopes: `${string}:${string}`[];
|
|
284
|
+
methods: string[];
|
|
285
|
+
}>;
|
|
286
|
+
selectedAccount: string;
|
|
287
|
+
}];
|
|
288
|
+
recomputations: () => number;
|
|
289
|
+
resetRecomputations: () => void;
|
|
290
|
+
dependencyRecomputations: () => number;
|
|
291
|
+
resetDependencyRecomputations: () => void;
|
|
292
|
+
} & {
|
|
293
|
+
memoize: typeof weakMapMemoize;
|
|
294
|
+
argsMemoize: typeof weakMapMemoize;
|
|
295
|
+
}, (state: AssetListState) => {
|
|
296
|
+
[chainId: `0x${string}`]: {
|
|
297
|
+
[key: string]: Token[];
|
|
298
|
+
};
|
|
299
|
+
}, (state: AssetListState) => {
|
|
300
|
+
[chainId: `0x${string}`]: {
|
|
301
|
+
[key: string]: string[];
|
|
302
|
+
};
|
|
303
|
+
}, (state: AssetListState) => import("../TokenBalancesController.mjs").TokenBalances, (state: AssetListState) => Record<`0x${string}`, Record<`0x${string}`, import("../TokenRatesController.mjs").MarketDataDetails>>, (state: AssetListState) => Record<string, {
|
|
304
|
+
conversionDate: number | null;
|
|
305
|
+
conversionRate: number | null;
|
|
306
|
+
usdConversionRate: number | null;
|
|
307
|
+
}>, (state: AssetListState) => string];
|
|
308
|
+
recomputations: () => number;
|
|
309
|
+
resetRecomputations: () => void;
|
|
310
|
+
dependencyRecomputations: () => number;
|
|
311
|
+
resetDependencyRecomputations: () => void;
|
|
312
|
+
} & {
|
|
313
|
+
memoize: typeof weakMapMemoize;
|
|
314
|
+
argsMemoize: typeof weakMapMemoize;
|
|
315
|
+
}, ((state: AssetListState) => AssetsByAccountGroup) & {
|
|
316
|
+
clearCache: () => void;
|
|
317
|
+
resultsCount: () => number;
|
|
318
|
+
resetResultsCount: () => void;
|
|
319
|
+
} & {
|
|
320
|
+
resultFunc: (resultFuncArgs_0: Record<string, {
|
|
321
|
+
accountGroupId: AccountGroupId;
|
|
322
|
+
type: InternalAccount['type'];
|
|
323
|
+
accountId: string;
|
|
324
|
+
}>, resultFuncArgs_1: {
|
|
325
|
+
[account: string]: `${string}:${string}/${string}:${string}`[];
|
|
326
|
+
}, resultFuncArgs_2: {
|
|
327
|
+
[account: string]: `${string}:${string}/${string}:${string}`[];
|
|
328
|
+
}, resultFuncArgs_3: {
|
|
329
|
+
[asset: `${string}:${string}/${string}:${string}`]: {
|
|
330
|
+
fungible: true;
|
|
331
|
+
iconUrl: string;
|
|
332
|
+
units: {
|
|
333
|
+
decimals: number;
|
|
334
|
+
symbol?: string | undefined;
|
|
335
|
+
name?: string | undefined;
|
|
336
|
+
}[];
|
|
337
|
+
symbol?: string | undefined;
|
|
338
|
+
name?: string | undefined;
|
|
339
|
+
};
|
|
340
|
+
}, resultFuncArgs_4: {
|
|
341
|
+
[account: string]: {
|
|
342
|
+
[asset: string]: {
|
|
343
|
+
amount: string;
|
|
344
|
+
unit: string;
|
|
345
|
+
};
|
|
346
|
+
};
|
|
347
|
+
}, resultFuncArgs_5: Record<`${string}:${string}/${string}:${string}`, import("@metamask/snaps-sdk").AssetConversion & {
|
|
348
|
+
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
349
|
+
}>, resultFuncArgs_6: string) => AssetsByAccountGroup;
|
|
350
|
+
memoizedResultFunc: ((resultFuncArgs_0: Record<string, {
|
|
351
|
+
accountGroupId: AccountGroupId;
|
|
352
|
+
type: InternalAccount['type'];
|
|
353
|
+
accountId: string;
|
|
354
|
+
}>, resultFuncArgs_1: {
|
|
355
|
+
[account: string]: `${string}:${string}/${string}:${string}`[];
|
|
356
|
+
}, resultFuncArgs_2: {
|
|
357
|
+
[account: string]: `${string}:${string}/${string}:${string}`[];
|
|
358
|
+
}, resultFuncArgs_3: {
|
|
359
|
+
[asset: `${string}:${string}/${string}:${string}`]: {
|
|
360
|
+
fungible: true;
|
|
361
|
+
iconUrl: string;
|
|
362
|
+
units: {
|
|
363
|
+
decimals: number;
|
|
364
|
+
symbol?: string | undefined;
|
|
365
|
+
name?: string | undefined;
|
|
366
|
+
}[];
|
|
367
|
+
symbol?: string | undefined;
|
|
368
|
+
name?: string | undefined;
|
|
369
|
+
};
|
|
370
|
+
}, resultFuncArgs_4: {
|
|
371
|
+
[account: string]: {
|
|
372
|
+
[asset: string]: {
|
|
373
|
+
amount: string;
|
|
374
|
+
unit: string;
|
|
375
|
+
};
|
|
376
|
+
};
|
|
377
|
+
}, resultFuncArgs_5: Record<`${string}:${string}/${string}:${string}`, import("@metamask/snaps-sdk").AssetConversion & {
|
|
378
|
+
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
379
|
+
}>, resultFuncArgs_6: string) => AssetsByAccountGroup) & {
|
|
380
|
+
clearCache: () => void;
|
|
381
|
+
resultsCount: () => number;
|
|
382
|
+
resetResultsCount: () => void;
|
|
383
|
+
};
|
|
384
|
+
lastResult: () => AssetsByAccountGroup;
|
|
385
|
+
dependencies: [((state: AssetListState) => Record<string, {
|
|
386
|
+
accountGroupId: AccountGroupId;
|
|
387
|
+
type: InternalAccount['type'];
|
|
388
|
+
accountId: string;
|
|
389
|
+
}>) & {
|
|
390
|
+
clearCache: () => void;
|
|
391
|
+
resultsCount: () => number;
|
|
392
|
+
resetResultsCount: () => void;
|
|
393
|
+
} & {
|
|
394
|
+
resultFunc: (resultFuncArgs_0: {
|
|
395
|
+
wallets: {
|
|
396
|
+
[walletId: `entropy:${string}`]: import("../../../account-tree-controller/src/wallet.mjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletKeyringObject;
|
|
397
|
+
[walletId: `keyring:${string}`]: import("../../../account-tree-controller/src/wallet.mjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletKeyringObject;
|
|
398
|
+
[walletId: `snap:${string}`]: import("../../../account-tree-controller/src/wallet.mjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletKeyringObject;
|
|
399
|
+
};
|
|
400
|
+
}, resultFuncArgs_1: {
|
|
401
|
+
accounts: Record<string, {
|
|
402
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
|
|
403
|
+
id: string;
|
|
404
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
|
405
|
+
entropy?: {
|
|
406
|
+
type: "mnemonic";
|
|
407
|
+
id: string;
|
|
408
|
+
derivationPath: string;
|
|
409
|
+
groupIndex: number;
|
|
410
|
+
} | {
|
|
411
|
+
type: "private-key";
|
|
412
|
+
} | {
|
|
413
|
+
type: "custom";
|
|
414
|
+
} | undefined;
|
|
415
|
+
exportable?: boolean | undefined;
|
|
416
|
+
};
|
|
417
|
+
metadata: {
|
|
418
|
+
name: string;
|
|
419
|
+
importTime: number;
|
|
420
|
+
keyring: {
|
|
421
|
+
type: string;
|
|
422
|
+
};
|
|
423
|
+
snap?: {
|
|
424
|
+
id: string;
|
|
425
|
+
} | undefined;
|
|
426
|
+
nameLastUpdatedAt?: number | undefined;
|
|
427
|
+
lastSelected?: number | undefined;
|
|
428
|
+
};
|
|
429
|
+
address: string;
|
|
430
|
+
scopes: `${string}:${string}`[];
|
|
431
|
+
methods: string[];
|
|
432
|
+
}>;
|
|
433
|
+
selectedAccount: string;
|
|
434
|
+
}) => Record<string, {
|
|
435
|
+
accountGroupId: AccountGroupId;
|
|
436
|
+
type: InternalAccount['type'];
|
|
437
|
+
accountId: string;
|
|
438
|
+
}>;
|
|
439
|
+
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
440
|
+
wallets: {
|
|
441
|
+
[walletId: `entropy:${string}`]: import("../../../account-tree-controller/src/wallet.mjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletKeyringObject;
|
|
442
|
+
[walletId: `keyring:${string}`]: import("../../../account-tree-controller/src/wallet.mjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletKeyringObject;
|
|
443
|
+
[walletId: `snap:${string}`]: import("../../../account-tree-controller/src/wallet.mjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletKeyringObject;
|
|
444
|
+
};
|
|
445
|
+
}, resultFuncArgs_1: {
|
|
446
|
+
accounts: Record<string, {
|
|
447
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
|
|
448
|
+
id: string;
|
|
449
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
|
450
|
+
entropy?: {
|
|
451
|
+
type: "mnemonic";
|
|
452
|
+
id: string;
|
|
453
|
+
derivationPath: string;
|
|
454
|
+
groupIndex: number;
|
|
455
|
+
} | {
|
|
456
|
+
type: "private-key";
|
|
457
|
+
} | {
|
|
458
|
+
type: "custom";
|
|
459
|
+
} | undefined;
|
|
460
|
+
exportable?: boolean | undefined;
|
|
461
|
+
};
|
|
462
|
+
metadata: {
|
|
463
|
+
name: string;
|
|
464
|
+
importTime: number;
|
|
465
|
+
keyring: {
|
|
466
|
+
type: string;
|
|
467
|
+
};
|
|
468
|
+
snap?: {
|
|
469
|
+
id: string;
|
|
470
|
+
} | undefined;
|
|
471
|
+
nameLastUpdatedAt?: number | undefined;
|
|
472
|
+
lastSelected?: number | undefined;
|
|
473
|
+
};
|
|
474
|
+
address: string;
|
|
475
|
+
scopes: `${string}:${string}`[];
|
|
476
|
+
methods: string[];
|
|
477
|
+
}>;
|
|
478
|
+
selectedAccount: string;
|
|
479
|
+
}) => Record<string, {
|
|
480
|
+
accountGroupId: AccountGroupId;
|
|
481
|
+
type: InternalAccount['type'];
|
|
482
|
+
accountId: string;
|
|
483
|
+
}>) & {
|
|
484
|
+
clearCache: () => void;
|
|
485
|
+
resultsCount: () => number;
|
|
486
|
+
resetResultsCount: () => void;
|
|
487
|
+
};
|
|
488
|
+
lastResult: () => Record<string, {
|
|
489
|
+
accountGroupId: AccountGroupId;
|
|
490
|
+
type: InternalAccount['type'];
|
|
491
|
+
accountId: string;
|
|
492
|
+
}>;
|
|
493
|
+
dependencies: [(state: AssetListState) => {
|
|
494
|
+
wallets: {
|
|
495
|
+
[walletId: `entropy:${string}`]: import("../../../account-tree-controller/src/wallet.mjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletKeyringObject;
|
|
496
|
+
[walletId: `keyring:${string}`]: import("../../../account-tree-controller/src/wallet.mjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletKeyringObject;
|
|
497
|
+
[walletId: `snap:${string}`]: import("../../../account-tree-controller/src/wallet.mjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletKeyringObject;
|
|
498
|
+
};
|
|
499
|
+
}, (state: AssetListState) => {
|
|
500
|
+
accounts: Record<string, {
|
|
501
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
|
|
502
|
+
id: string;
|
|
503
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
|
504
|
+
entropy?: {
|
|
505
|
+
type: "mnemonic";
|
|
506
|
+
id: string;
|
|
507
|
+
derivationPath: string;
|
|
508
|
+
groupIndex: number;
|
|
509
|
+
} | {
|
|
510
|
+
type: "private-key";
|
|
511
|
+
} | {
|
|
512
|
+
type: "custom";
|
|
513
|
+
} | undefined;
|
|
514
|
+
exportable?: boolean | undefined;
|
|
515
|
+
};
|
|
516
|
+
metadata: {
|
|
517
|
+
name: string;
|
|
518
|
+
importTime: number;
|
|
519
|
+
keyring: {
|
|
520
|
+
type: string;
|
|
521
|
+
};
|
|
522
|
+
snap?: {
|
|
523
|
+
id: string;
|
|
524
|
+
} | undefined;
|
|
525
|
+
nameLastUpdatedAt?: number | undefined;
|
|
526
|
+
lastSelected?: number | undefined;
|
|
527
|
+
};
|
|
528
|
+
address: string;
|
|
529
|
+
scopes: `${string}:${string}`[];
|
|
530
|
+
methods: string[];
|
|
531
|
+
}>;
|
|
532
|
+
selectedAccount: string;
|
|
533
|
+
}];
|
|
534
|
+
recomputations: () => number;
|
|
535
|
+
resetRecomputations: () => void;
|
|
536
|
+
dependencyRecomputations: () => number;
|
|
537
|
+
resetDependencyRecomputations: () => void;
|
|
538
|
+
} & {
|
|
539
|
+
memoize: typeof weakMapMemoize;
|
|
540
|
+
argsMemoize: typeof weakMapMemoize;
|
|
541
|
+
}, (state: AssetListState) => {
|
|
542
|
+
[account: string]: `${string}:${string}/${string}:${string}`[];
|
|
543
|
+
}, (state: AssetListState) => {
|
|
544
|
+
[account: string]: `${string}:${string}/${string}:${string}`[];
|
|
545
|
+
}, (state: AssetListState) => {
|
|
546
|
+
[asset: `${string}:${string}/${string}:${string}`]: {
|
|
547
|
+
fungible: true;
|
|
548
|
+
iconUrl: string;
|
|
549
|
+
units: {
|
|
550
|
+
decimals: number;
|
|
551
|
+
symbol?: string | undefined;
|
|
552
|
+
name?: string | undefined;
|
|
553
|
+
}[];
|
|
554
|
+
symbol?: string | undefined;
|
|
555
|
+
name?: string | undefined;
|
|
556
|
+
};
|
|
557
|
+
}, (state: AssetListState) => {
|
|
558
|
+
[account: string]: {
|
|
559
|
+
[asset: string]: {
|
|
560
|
+
amount: string;
|
|
561
|
+
unit: string;
|
|
562
|
+
};
|
|
563
|
+
};
|
|
564
|
+
}, (state: AssetListState) => Record<`${string}:${string}/${string}:${string}`, import("@metamask/snaps-sdk").AssetConversion & {
|
|
565
|
+
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
566
|
+
}>, (state: AssetListState) => string];
|
|
567
|
+
recomputations: () => number;
|
|
568
|
+
resetRecomputations: () => void;
|
|
569
|
+
dependencyRecomputations: () => number;
|
|
570
|
+
resetDependencyRecomputations: () => void;
|
|
571
|
+
} & {
|
|
572
|
+
memoize: typeof weakMapMemoize;
|
|
573
|
+
argsMemoize: typeof weakMapMemoize;
|
|
574
|
+
}, ((state: AssetListState) => AssetsByAccountGroup) & {
|
|
575
|
+
clearCache: () => void;
|
|
576
|
+
resultsCount: () => number;
|
|
577
|
+
resetResultsCount: () => void;
|
|
578
|
+
} & {
|
|
579
|
+
resultFunc: (resultFuncArgs_0: Record<string, {
|
|
580
|
+
accountGroupId: AccountGroupId;
|
|
581
|
+
type: InternalAccount['type'];
|
|
582
|
+
accountId: string;
|
|
583
|
+
}>, resultFuncArgs_1: Record<`0x${string}`, Record<`0x${string}`, {
|
|
584
|
+
balance: Hex | null;
|
|
585
|
+
}>>, resultFuncArgs_2: Record<`0x${string}`, Record<`0x${string}`, import("../TokenRatesController.mjs").MarketDataDetails>>, resultFuncArgs_3: Record<string, {
|
|
586
|
+
conversionDate: number | null;
|
|
587
|
+
conversionRate: number | null;
|
|
588
|
+
usdConversionRate: number | null;
|
|
589
|
+
}>, resultFuncArgs_4: string, resultFuncArgs_5: Record<`0x${string}`, import("@metamask/network-controller").NetworkConfiguration>) => AssetsByAccountGroup;
|
|
590
|
+
memoizedResultFunc: ((resultFuncArgs_0: Record<string, {
|
|
591
|
+
accountGroupId: AccountGroupId;
|
|
592
|
+
type: InternalAccount['type'];
|
|
593
|
+
accountId: string;
|
|
594
|
+
}>, resultFuncArgs_1: Record<`0x${string}`, Record<`0x${string}`, {
|
|
595
|
+
balance: Hex | null;
|
|
596
|
+
}>>, resultFuncArgs_2: Record<`0x${string}`, Record<`0x${string}`, import("../TokenRatesController.mjs").MarketDataDetails>>, resultFuncArgs_3: Record<string, {
|
|
597
|
+
conversionDate: number | null;
|
|
598
|
+
conversionRate: number | null;
|
|
599
|
+
usdConversionRate: number | null;
|
|
600
|
+
}>, resultFuncArgs_4: string, resultFuncArgs_5: Record<`0x${string}`, import("@metamask/network-controller").NetworkConfiguration>) => AssetsByAccountGroup) & {
|
|
601
|
+
clearCache: () => void;
|
|
602
|
+
resultsCount: () => number;
|
|
603
|
+
resetResultsCount: () => void;
|
|
604
|
+
};
|
|
605
|
+
lastResult: () => AssetsByAccountGroup;
|
|
606
|
+
dependencies: [((state: AssetListState) => Record<string, {
|
|
607
|
+
accountGroupId: AccountGroupId;
|
|
608
|
+
type: InternalAccount['type'];
|
|
609
|
+
accountId: string;
|
|
610
|
+
}>) & {
|
|
611
|
+
clearCache: () => void;
|
|
612
|
+
resultsCount: () => number;
|
|
613
|
+
resetResultsCount: () => void;
|
|
614
|
+
} & {
|
|
615
|
+
resultFunc: (resultFuncArgs_0: {
|
|
616
|
+
wallets: {
|
|
617
|
+
[walletId: `entropy:${string}`]: import("../../../account-tree-controller/src/wallet.mjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletKeyringObject;
|
|
618
|
+
[walletId: `keyring:${string}`]: import("../../../account-tree-controller/src/wallet.mjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletKeyringObject;
|
|
619
|
+
[walletId: `snap:${string}`]: import("../../../account-tree-controller/src/wallet.mjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletKeyringObject;
|
|
620
|
+
};
|
|
621
|
+
}, resultFuncArgs_1: {
|
|
622
|
+
accounts: Record<string, {
|
|
623
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
|
|
624
|
+
id: string;
|
|
625
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
|
626
|
+
entropy?: {
|
|
627
|
+
type: "mnemonic";
|
|
628
|
+
id: string;
|
|
629
|
+
derivationPath: string;
|
|
630
|
+
groupIndex: number;
|
|
631
|
+
} | {
|
|
632
|
+
type: "private-key";
|
|
633
|
+
} | {
|
|
634
|
+
type: "custom";
|
|
635
|
+
} | undefined;
|
|
636
|
+
exportable?: boolean | undefined;
|
|
637
|
+
};
|
|
638
|
+
metadata: {
|
|
639
|
+
name: string;
|
|
640
|
+
importTime: number;
|
|
641
|
+
keyring: {
|
|
642
|
+
type: string;
|
|
643
|
+
};
|
|
644
|
+
snap?: {
|
|
645
|
+
id: string;
|
|
646
|
+
} | undefined;
|
|
647
|
+
nameLastUpdatedAt?: number | undefined;
|
|
648
|
+
lastSelected?: number | undefined;
|
|
649
|
+
};
|
|
650
|
+
address: string;
|
|
651
|
+
scopes: `${string}:${string}`[];
|
|
652
|
+
methods: string[];
|
|
653
|
+
}>;
|
|
654
|
+
selectedAccount: string;
|
|
655
|
+
}) => Record<string, {
|
|
656
|
+
accountGroupId: AccountGroupId;
|
|
657
|
+
type: InternalAccount['type'];
|
|
658
|
+
accountId: string;
|
|
659
|
+
}>;
|
|
660
|
+
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
661
|
+
wallets: {
|
|
662
|
+
[walletId: `entropy:${string}`]: import("../../../account-tree-controller/src/wallet.mjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletKeyringObject;
|
|
663
|
+
[walletId: `keyring:${string}`]: import("../../../account-tree-controller/src/wallet.mjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletKeyringObject;
|
|
664
|
+
[walletId: `snap:${string}`]: import("../../../account-tree-controller/src/wallet.mjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletKeyringObject;
|
|
665
|
+
};
|
|
666
|
+
}, resultFuncArgs_1: {
|
|
667
|
+
accounts: Record<string, {
|
|
668
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
|
|
669
|
+
id: string;
|
|
670
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
|
671
|
+
entropy?: {
|
|
672
|
+
type: "mnemonic";
|
|
673
|
+
id: string;
|
|
674
|
+
derivationPath: string;
|
|
675
|
+
groupIndex: number;
|
|
676
|
+
} | {
|
|
677
|
+
type: "private-key";
|
|
678
|
+
} | {
|
|
679
|
+
type: "custom";
|
|
680
|
+
} | undefined;
|
|
681
|
+
exportable?: boolean | undefined;
|
|
682
|
+
};
|
|
683
|
+
metadata: {
|
|
684
|
+
name: string;
|
|
685
|
+
importTime: number;
|
|
686
|
+
keyring: {
|
|
687
|
+
type: string;
|
|
688
|
+
};
|
|
689
|
+
snap?: {
|
|
690
|
+
id: string;
|
|
691
|
+
} | undefined;
|
|
692
|
+
nameLastUpdatedAt?: number | undefined;
|
|
693
|
+
lastSelected?: number | undefined;
|
|
694
|
+
};
|
|
695
|
+
address: string;
|
|
696
|
+
scopes: `${string}:${string}`[];
|
|
697
|
+
methods: string[];
|
|
698
|
+
}>;
|
|
699
|
+
selectedAccount: string;
|
|
700
|
+
}) => Record<string, {
|
|
701
|
+
accountGroupId: AccountGroupId;
|
|
702
|
+
type: InternalAccount['type'];
|
|
703
|
+
accountId: string;
|
|
704
|
+
}>) & {
|
|
705
|
+
clearCache: () => void;
|
|
706
|
+
resultsCount: () => number;
|
|
707
|
+
resetResultsCount: () => void;
|
|
708
|
+
};
|
|
709
|
+
lastResult: () => Record<string, {
|
|
710
|
+
accountGroupId: AccountGroupId;
|
|
711
|
+
type: InternalAccount['type'];
|
|
712
|
+
accountId: string;
|
|
713
|
+
}>;
|
|
714
|
+
dependencies: [(state: AssetListState) => {
|
|
715
|
+
wallets: {
|
|
716
|
+
[walletId: `entropy:${string}`]: import("../../../account-tree-controller/src/wallet.mjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletKeyringObject;
|
|
717
|
+
[walletId: `keyring:${string}`]: import("../../../account-tree-controller/src/wallet.mjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletKeyringObject;
|
|
718
|
+
[walletId: `snap:${string}`]: import("../../../account-tree-controller/src/wallet.mjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletKeyringObject;
|
|
719
|
+
};
|
|
720
|
+
}, (state: AssetListState) => {
|
|
721
|
+
accounts: Record<string, {
|
|
722
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
|
|
723
|
+
id: string;
|
|
724
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
|
725
|
+
entropy?: {
|
|
726
|
+
type: "mnemonic";
|
|
727
|
+
id: string;
|
|
728
|
+
derivationPath: string;
|
|
729
|
+
groupIndex: number;
|
|
730
|
+
} | {
|
|
731
|
+
type: "private-key";
|
|
732
|
+
} | {
|
|
733
|
+
type: "custom";
|
|
734
|
+
} | undefined;
|
|
735
|
+
exportable?: boolean | undefined;
|
|
736
|
+
};
|
|
737
|
+
metadata: {
|
|
738
|
+
name: string;
|
|
739
|
+
importTime: number;
|
|
740
|
+
keyring: {
|
|
741
|
+
type: string;
|
|
742
|
+
};
|
|
743
|
+
snap?: {
|
|
744
|
+
id: string;
|
|
745
|
+
} | undefined;
|
|
746
|
+
nameLastUpdatedAt?: number | undefined;
|
|
747
|
+
lastSelected?: number | undefined;
|
|
748
|
+
};
|
|
749
|
+
address: string;
|
|
750
|
+
scopes: `${string}:${string}`[];
|
|
751
|
+
methods: string[];
|
|
752
|
+
}>;
|
|
753
|
+
selectedAccount: string;
|
|
754
|
+
}];
|
|
755
|
+
recomputations: () => number;
|
|
756
|
+
resetRecomputations: () => void;
|
|
757
|
+
dependencyRecomputations: () => number;
|
|
758
|
+
resetDependencyRecomputations: () => void;
|
|
759
|
+
} & {
|
|
760
|
+
memoize: typeof weakMapMemoize;
|
|
761
|
+
argsMemoize: typeof weakMapMemoize;
|
|
762
|
+
}, (state: AssetListState) => Record<`0x${string}`, Record<`0x${string}`, {
|
|
763
|
+
balance: Hex | null;
|
|
764
|
+
}>>, (state: AssetListState) => Record<`0x${string}`, Record<`0x${string}`, import("../TokenRatesController.mjs").MarketDataDetails>>, (state: AssetListState) => Record<string, {
|
|
765
|
+
conversionDate: number | null;
|
|
766
|
+
conversionRate: number | null;
|
|
767
|
+
usdConversionRate: number | null;
|
|
768
|
+
}>, (state: AssetListState) => string, (state: AssetListState) => Record<`0x${string}`, import("@metamask/network-controller").NetworkConfiguration>];
|
|
769
|
+
recomputations: () => number;
|
|
770
|
+
resetRecomputations: () => void;
|
|
771
|
+
dependencyRecomputations: () => number;
|
|
772
|
+
resetDependencyRecomputations: () => void;
|
|
773
|
+
} & {
|
|
774
|
+
memoize: typeof weakMapMemoize;
|
|
775
|
+
argsMemoize: typeof weakMapMemoize;
|
|
776
|
+
}];
|
|
777
|
+
recomputations: () => number;
|
|
778
|
+
resetRecomputations: () => void;
|
|
779
|
+
dependencyRecomputations: () => number;
|
|
780
|
+
resetDependencyRecomputations: () => void;
|
|
781
|
+
} & {
|
|
782
|
+
memoize: typeof weakMapMemoize;
|
|
783
|
+
argsMemoize: typeof weakMapMemoize;
|
|
784
|
+
};
|
|
785
|
+
export type SelectAccountGroupAssetOpts = {
|
|
786
|
+
filterTronStakedTokens: boolean;
|
|
787
|
+
};
|
|
788
|
+
export declare const selectAssetsBySelectedAccountGroup: ((state: AssetListState, opts?: SelectAccountGroupAssetOpts | undefined) => AccountGroupAssets) & {
|
|
789
|
+
clearCache: () => void;
|
|
790
|
+
resultsCount: () => number;
|
|
791
|
+
resetResultsCount: () => void;
|
|
792
|
+
} & {
|
|
793
|
+
resultFunc: (resultFuncArgs_0: AssetsByAccountGroup, resultFuncArgs_1: "" | `entropy:${string}/${string}` | `keyring:${string}/${string}` | `snap:${string}/${string}`, resultFuncArgs_2: SelectAccountGroupAssetOpts) => AccountGroupAssets;
|
|
794
|
+
memoizedResultFunc: ((resultFuncArgs_0: AssetsByAccountGroup, resultFuncArgs_1: "" | `entropy:${string}/${string}` | `keyring:${string}/${string}` | `snap:${string}/${string}`, resultFuncArgs_2: SelectAccountGroupAssetOpts) => AccountGroupAssets) & {
|
|
795
|
+
clearCache: () => void;
|
|
796
|
+
resultsCount: () => number;
|
|
797
|
+
resetResultsCount: () => void;
|
|
798
|
+
};
|
|
799
|
+
lastResult: () => AccountGroupAssets;
|
|
800
|
+
dependencies: [((state: AssetListState) => AssetsByAccountGroup) & {
|
|
801
|
+
clearCache: () => void;
|
|
802
|
+
resultsCount: () => number;
|
|
803
|
+
resetResultsCount: () => void;
|
|
804
|
+
} & {
|
|
805
|
+
resultFunc: (resultFuncArgs_0: AssetsByAccountGroup, resultFuncArgs_1: AssetsByAccountGroup, resultFuncArgs_2: AssetsByAccountGroup) => AssetsByAccountGroup;
|
|
806
|
+
memoizedResultFunc: ((resultFuncArgs_0: AssetsByAccountGroup, resultFuncArgs_1: AssetsByAccountGroup, resultFuncArgs_2: AssetsByAccountGroup) => AssetsByAccountGroup) & {
|
|
807
|
+
clearCache: () => void;
|
|
808
|
+
resultsCount: () => number;
|
|
809
|
+
resetResultsCount: () => void;
|
|
810
|
+
};
|
|
811
|
+
lastResult: () => AssetsByAccountGroup;
|
|
812
|
+
dependencies: [((state: AssetListState) => AssetsByAccountGroup) & {
|
|
813
|
+
clearCache: () => void;
|
|
814
|
+
resultsCount: () => number;
|
|
815
|
+
resetResultsCount: () => void;
|
|
816
|
+
} & {
|
|
817
|
+
resultFunc: (resultFuncArgs_0: Record<string, {
|
|
818
|
+
accountGroupId: AccountGroupId;
|
|
819
|
+
type: InternalAccount['type'];
|
|
820
|
+
accountId: string;
|
|
821
|
+
}>, resultFuncArgs_1: {
|
|
822
|
+
[chainId: `0x${string}`]: {
|
|
823
|
+
[key: string]: Token[];
|
|
824
|
+
};
|
|
825
|
+
}, resultFuncArgs_2: {
|
|
826
|
+
[chainId: `0x${string}`]: {
|
|
827
|
+
[key: string]: string[];
|
|
828
|
+
};
|
|
829
|
+
}, resultFuncArgs_3: import("../TokenBalancesController.mjs").TokenBalances, resultFuncArgs_4: Record<`0x${string}`, Record<`0x${string}`, import("../TokenRatesController.mjs").MarketDataDetails>>, resultFuncArgs_5: Record<string, {
|
|
830
|
+
conversionDate: number | null;
|
|
831
|
+
conversionRate: number | null;
|
|
832
|
+
usdConversionRate: number | null;
|
|
833
|
+
}>, resultFuncArgs_6: string) => AssetsByAccountGroup;
|
|
834
|
+
memoizedResultFunc: ((resultFuncArgs_0: Record<string, {
|
|
835
|
+
accountGroupId: AccountGroupId;
|
|
836
|
+
type: InternalAccount['type'];
|
|
837
|
+
accountId: string;
|
|
838
|
+
}>, resultFuncArgs_1: {
|
|
839
|
+
[chainId: `0x${string}`]: {
|
|
840
|
+
[key: string]: Token[];
|
|
841
|
+
};
|
|
842
|
+
}, resultFuncArgs_2: {
|
|
843
|
+
[chainId: `0x${string}`]: {
|
|
844
|
+
[key: string]: string[];
|
|
845
|
+
};
|
|
846
|
+
}, resultFuncArgs_3: import("../TokenBalancesController.mjs").TokenBalances, resultFuncArgs_4: Record<`0x${string}`, Record<`0x${string}`, import("../TokenRatesController.mjs").MarketDataDetails>>, resultFuncArgs_5: Record<string, {
|
|
847
|
+
conversionDate: number | null;
|
|
848
|
+
conversionRate: number | null;
|
|
849
|
+
usdConversionRate: number | null;
|
|
850
|
+
}>, resultFuncArgs_6: string) => AssetsByAccountGroup) & {
|
|
851
|
+
clearCache: () => void;
|
|
852
|
+
resultsCount: () => number;
|
|
853
|
+
resetResultsCount: () => void;
|
|
854
|
+
};
|
|
855
|
+
lastResult: () => AssetsByAccountGroup;
|
|
856
|
+
dependencies: [((state: AssetListState) => Record<string, {
|
|
857
|
+
accountGroupId: AccountGroupId;
|
|
858
|
+
type: InternalAccount['type'];
|
|
859
|
+
accountId: string;
|
|
860
|
+
}>) & {
|
|
861
|
+
clearCache: () => void;
|
|
862
|
+
resultsCount: () => number;
|
|
863
|
+
resetResultsCount: () => void;
|
|
864
|
+
} & {
|
|
865
|
+
resultFunc: (resultFuncArgs_0: {
|
|
866
|
+
wallets: {
|
|
867
|
+
[walletId: `entropy:${string}`]: import("../../../account-tree-controller/src/wallet.mjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletKeyringObject;
|
|
868
|
+
[walletId: `keyring:${string}`]: import("../../../account-tree-controller/src/wallet.mjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletKeyringObject;
|
|
869
|
+
[walletId: `snap:${string}`]: import("../../../account-tree-controller/src/wallet.mjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletKeyringObject;
|
|
870
|
+
};
|
|
871
|
+
}, resultFuncArgs_1: {
|
|
872
|
+
accounts: Record<string, {
|
|
873
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
|
|
874
|
+
id: string;
|
|
875
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
|
876
|
+
entropy?: {
|
|
877
|
+
type: "mnemonic";
|
|
878
|
+
id: string;
|
|
879
|
+
derivationPath: string;
|
|
880
|
+
groupIndex: number;
|
|
881
|
+
} | {
|
|
882
|
+
type: "private-key";
|
|
883
|
+
} | {
|
|
884
|
+
type: "custom";
|
|
885
|
+
} | undefined;
|
|
886
|
+
exportable?: boolean | undefined;
|
|
887
|
+
};
|
|
888
|
+
metadata: {
|
|
889
|
+
name: string;
|
|
890
|
+
importTime: number;
|
|
891
|
+
keyring: {
|
|
892
|
+
type: string;
|
|
893
|
+
};
|
|
894
|
+
snap?: {
|
|
895
|
+
id: string;
|
|
896
|
+
} | undefined;
|
|
897
|
+
nameLastUpdatedAt?: number | undefined;
|
|
898
|
+
lastSelected?: number | undefined;
|
|
899
|
+
};
|
|
900
|
+
address: string;
|
|
901
|
+
scopes: `${string}:${string}`[];
|
|
902
|
+
methods: string[];
|
|
903
|
+
}>;
|
|
904
|
+
selectedAccount: string;
|
|
905
|
+
}) => Record<string, {
|
|
906
|
+
accountGroupId: AccountGroupId;
|
|
907
|
+
type: InternalAccount['type'];
|
|
908
|
+
accountId: string;
|
|
909
|
+
}>;
|
|
910
|
+
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
911
|
+
wallets: {
|
|
912
|
+
[walletId: `entropy:${string}`]: import("../../../account-tree-controller/src/wallet.mjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletKeyringObject;
|
|
913
|
+
[walletId: `keyring:${string}`]: import("../../../account-tree-controller/src/wallet.mjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletKeyringObject;
|
|
914
|
+
[walletId: `snap:${string}`]: import("../../../account-tree-controller/src/wallet.mjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletKeyringObject;
|
|
915
|
+
};
|
|
916
|
+
}, resultFuncArgs_1: {
|
|
917
|
+
accounts: Record<string, {
|
|
918
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
|
|
919
|
+
id: string;
|
|
920
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
|
921
|
+
entropy?: {
|
|
922
|
+
type: "mnemonic";
|
|
923
|
+
id: string;
|
|
924
|
+
derivationPath: string;
|
|
925
|
+
groupIndex: number;
|
|
926
|
+
} | {
|
|
927
|
+
type: "private-key";
|
|
928
|
+
} | {
|
|
929
|
+
type: "custom";
|
|
930
|
+
} | undefined;
|
|
931
|
+
exportable?: boolean | undefined;
|
|
932
|
+
};
|
|
933
|
+
metadata: {
|
|
934
|
+
name: string;
|
|
935
|
+
importTime: number;
|
|
936
|
+
keyring: {
|
|
937
|
+
type: string;
|
|
938
|
+
};
|
|
939
|
+
snap?: {
|
|
940
|
+
id: string;
|
|
941
|
+
} | undefined;
|
|
942
|
+
nameLastUpdatedAt?: number | undefined;
|
|
943
|
+
lastSelected?: number | undefined;
|
|
944
|
+
};
|
|
945
|
+
address: string;
|
|
946
|
+
scopes: `${string}:${string}`[];
|
|
947
|
+
methods: string[];
|
|
948
|
+
}>;
|
|
949
|
+
selectedAccount: string;
|
|
950
|
+
}) => Record<string, {
|
|
951
|
+
accountGroupId: AccountGroupId;
|
|
952
|
+
type: InternalAccount['type'];
|
|
953
|
+
accountId: string;
|
|
954
|
+
}>) & {
|
|
955
|
+
clearCache: () => void;
|
|
956
|
+
resultsCount: () => number;
|
|
957
|
+
resetResultsCount: () => void;
|
|
958
|
+
};
|
|
959
|
+
lastResult: () => Record<string, {
|
|
960
|
+
accountGroupId: AccountGroupId;
|
|
961
|
+
type: InternalAccount['type'];
|
|
962
|
+
accountId: string;
|
|
963
|
+
}>;
|
|
964
|
+
dependencies: [(state: AssetListState) => {
|
|
965
|
+
wallets: {
|
|
966
|
+
[walletId: `entropy:${string}`]: import("../../../account-tree-controller/src/wallet.mjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletKeyringObject;
|
|
967
|
+
[walletId: `keyring:${string}`]: import("../../../account-tree-controller/src/wallet.mjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletKeyringObject;
|
|
968
|
+
[walletId: `snap:${string}`]: import("../../../account-tree-controller/src/wallet.mjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletKeyringObject;
|
|
969
|
+
};
|
|
970
|
+
}, (state: AssetListState) => {
|
|
971
|
+
accounts: Record<string, {
|
|
972
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
|
|
973
|
+
id: string;
|
|
974
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
|
975
|
+
entropy?: {
|
|
976
|
+
type: "mnemonic";
|
|
977
|
+
id: string;
|
|
978
|
+
derivationPath: string;
|
|
979
|
+
groupIndex: number;
|
|
980
|
+
} | {
|
|
981
|
+
type: "private-key";
|
|
982
|
+
} | {
|
|
983
|
+
type: "custom";
|
|
984
|
+
} | undefined;
|
|
985
|
+
exportable?: boolean | undefined;
|
|
986
|
+
};
|
|
987
|
+
metadata: {
|
|
988
|
+
name: string;
|
|
989
|
+
importTime: number;
|
|
990
|
+
keyring: {
|
|
991
|
+
type: string;
|
|
992
|
+
};
|
|
993
|
+
snap?: {
|
|
994
|
+
id: string;
|
|
995
|
+
} | undefined;
|
|
996
|
+
nameLastUpdatedAt?: number | undefined;
|
|
997
|
+
lastSelected?: number | undefined;
|
|
998
|
+
};
|
|
999
|
+
address: string;
|
|
1000
|
+
scopes: `${string}:${string}`[];
|
|
1001
|
+
methods: string[];
|
|
1002
|
+
}>;
|
|
1003
|
+
selectedAccount: string;
|
|
1004
|
+
}];
|
|
1005
|
+
recomputations: () => number;
|
|
1006
|
+
resetRecomputations: () => void;
|
|
1007
|
+
dependencyRecomputations: () => number;
|
|
1008
|
+
resetDependencyRecomputations: () => void;
|
|
1009
|
+
} & {
|
|
1010
|
+
memoize: typeof weakMapMemoize;
|
|
1011
|
+
argsMemoize: typeof weakMapMemoize;
|
|
1012
|
+
}, (state: AssetListState) => {
|
|
1013
|
+
[chainId: `0x${string}`]: {
|
|
1014
|
+
[key: string]: Token[];
|
|
1015
|
+
};
|
|
1016
|
+
}, (state: AssetListState) => {
|
|
1017
|
+
[chainId: `0x${string}`]: {
|
|
1018
|
+
[key: string]: string[];
|
|
1019
|
+
};
|
|
1020
|
+
}, (state: AssetListState) => import("../TokenBalancesController.mjs").TokenBalances, (state: AssetListState) => Record<`0x${string}`, Record<`0x${string}`, import("../TokenRatesController.mjs").MarketDataDetails>>, (state: AssetListState) => Record<string, {
|
|
1021
|
+
conversionDate: number | null;
|
|
1022
|
+
conversionRate: number | null;
|
|
1023
|
+
usdConversionRate: number | null;
|
|
1024
|
+
}>, (state: AssetListState) => string];
|
|
1025
|
+
recomputations: () => number;
|
|
1026
|
+
resetRecomputations: () => void;
|
|
1027
|
+
dependencyRecomputations: () => number;
|
|
1028
|
+
resetDependencyRecomputations: () => void;
|
|
1029
|
+
} & {
|
|
1030
|
+
memoize: typeof weakMapMemoize;
|
|
1031
|
+
argsMemoize: typeof weakMapMemoize;
|
|
1032
|
+
}, ((state: AssetListState) => AssetsByAccountGroup) & {
|
|
1033
|
+
clearCache: () => void;
|
|
1034
|
+
resultsCount: () => number;
|
|
1035
|
+
resetResultsCount: () => void;
|
|
1036
|
+
} & {
|
|
1037
|
+
resultFunc: (resultFuncArgs_0: Record<string, {
|
|
1038
|
+
accountGroupId: AccountGroupId;
|
|
1039
|
+
type: InternalAccount['type'];
|
|
1040
|
+
accountId: string;
|
|
1041
|
+
}>, resultFuncArgs_1: {
|
|
1042
|
+
[account: string]: `${string}:${string}/${string}:${string}`[];
|
|
1043
|
+
}, resultFuncArgs_2: {
|
|
1044
|
+
[account: string]: `${string}:${string}/${string}:${string}`[];
|
|
1045
|
+
}, resultFuncArgs_3: {
|
|
1046
|
+
[asset: `${string}:${string}/${string}:${string}`]: {
|
|
1047
|
+
fungible: true;
|
|
1048
|
+
iconUrl: string;
|
|
1049
|
+
units: {
|
|
1050
|
+
decimals: number;
|
|
1051
|
+
symbol?: string | undefined;
|
|
1052
|
+
name?: string | undefined;
|
|
1053
|
+
}[];
|
|
1054
|
+
symbol?: string | undefined;
|
|
1055
|
+
name?: string | undefined;
|
|
1056
|
+
};
|
|
1057
|
+
}, resultFuncArgs_4: {
|
|
1058
|
+
[account: string]: {
|
|
1059
|
+
[asset: string]: {
|
|
1060
|
+
amount: string;
|
|
1061
|
+
unit: string;
|
|
1062
|
+
};
|
|
1063
|
+
};
|
|
1064
|
+
}, resultFuncArgs_5: Record<`${string}:${string}/${string}:${string}`, import("@metamask/snaps-sdk").AssetConversion & {
|
|
1065
|
+
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
1066
|
+
}>, resultFuncArgs_6: string) => AssetsByAccountGroup;
|
|
1067
|
+
memoizedResultFunc: ((resultFuncArgs_0: Record<string, {
|
|
1068
|
+
accountGroupId: AccountGroupId;
|
|
1069
|
+
type: InternalAccount['type'];
|
|
1070
|
+
accountId: string;
|
|
1071
|
+
}>, resultFuncArgs_1: {
|
|
1072
|
+
[account: string]: `${string}:${string}/${string}:${string}`[];
|
|
1073
|
+
}, resultFuncArgs_2: {
|
|
1074
|
+
[account: string]: `${string}:${string}/${string}:${string}`[];
|
|
1075
|
+
}, resultFuncArgs_3: {
|
|
1076
|
+
[asset: `${string}:${string}/${string}:${string}`]: {
|
|
1077
|
+
fungible: true;
|
|
1078
|
+
iconUrl: string;
|
|
1079
|
+
units: {
|
|
1080
|
+
decimals: number;
|
|
1081
|
+
symbol?: string | undefined;
|
|
1082
|
+
name?: string | undefined;
|
|
1083
|
+
}[];
|
|
1084
|
+
symbol?: string | undefined;
|
|
1085
|
+
name?: string | undefined;
|
|
1086
|
+
};
|
|
1087
|
+
}, resultFuncArgs_4: {
|
|
1088
|
+
[account: string]: {
|
|
1089
|
+
[asset: string]: {
|
|
1090
|
+
amount: string;
|
|
1091
|
+
unit: string;
|
|
1092
|
+
};
|
|
1093
|
+
};
|
|
1094
|
+
}, resultFuncArgs_5: Record<`${string}:${string}/${string}:${string}`, import("@metamask/snaps-sdk").AssetConversion & {
|
|
1095
|
+
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
1096
|
+
}>, resultFuncArgs_6: string) => AssetsByAccountGroup) & {
|
|
1097
|
+
clearCache: () => void;
|
|
1098
|
+
resultsCount: () => number;
|
|
1099
|
+
resetResultsCount: () => void;
|
|
1100
|
+
};
|
|
1101
|
+
lastResult: () => AssetsByAccountGroup;
|
|
1102
|
+
dependencies: [((state: AssetListState) => Record<string, {
|
|
1103
|
+
accountGroupId: AccountGroupId;
|
|
1104
|
+
type: InternalAccount['type'];
|
|
1105
|
+
accountId: string;
|
|
1106
|
+
}>) & {
|
|
1107
|
+
clearCache: () => void;
|
|
1108
|
+
resultsCount: () => number;
|
|
1109
|
+
resetResultsCount: () => void;
|
|
1110
|
+
} & {
|
|
1111
|
+
resultFunc: (resultFuncArgs_0: {
|
|
1112
|
+
wallets: {
|
|
1113
|
+
[walletId: `entropy:${string}`]: import("../../../account-tree-controller/src/wallet.mjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletKeyringObject;
|
|
1114
|
+
[walletId: `keyring:${string}`]: import("../../../account-tree-controller/src/wallet.mjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletKeyringObject;
|
|
1115
|
+
[walletId: `snap:${string}`]: import("../../../account-tree-controller/src/wallet.mjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletKeyringObject;
|
|
1116
|
+
};
|
|
1117
|
+
}, resultFuncArgs_1: {
|
|
1118
|
+
accounts: Record<string, {
|
|
1119
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
|
|
1120
|
+
id: string;
|
|
1121
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
|
1122
|
+
entropy?: {
|
|
1123
|
+
type: "mnemonic";
|
|
1124
|
+
id: string;
|
|
1125
|
+
derivationPath: string;
|
|
1126
|
+
groupIndex: number;
|
|
1127
|
+
} | {
|
|
1128
|
+
type: "private-key";
|
|
1129
|
+
} | {
|
|
1130
|
+
type: "custom";
|
|
1131
|
+
} | undefined;
|
|
1132
|
+
exportable?: boolean | undefined;
|
|
1133
|
+
};
|
|
1134
|
+
metadata: {
|
|
1135
|
+
name: string;
|
|
1136
|
+
importTime: number;
|
|
1137
|
+
keyring: {
|
|
1138
|
+
type: string;
|
|
1139
|
+
};
|
|
1140
|
+
snap?: {
|
|
1141
|
+
id: string;
|
|
1142
|
+
} | undefined;
|
|
1143
|
+
nameLastUpdatedAt?: number | undefined;
|
|
1144
|
+
lastSelected?: number | undefined;
|
|
1145
|
+
};
|
|
1146
|
+
address: string;
|
|
1147
|
+
scopes: `${string}:${string}`[];
|
|
1148
|
+
methods: string[];
|
|
1149
|
+
}>;
|
|
1150
|
+
selectedAccount: string;
|
|
1151
|
+
}) => Record<string, {
|
|
1152
|
+
accountGroupId: AccountGroupId;
|
|
1153
|
+
type: InternalAccount['type'];
|
|
1154
|
+
accountId: string;
|
|
1155
|
+
}>;
|
|
1156
|
+
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
1157
|
+
wallets: {
|
|
1158
|
+
[walletId: `entropy:${string}`]: import("../../../account-tree-controller/src/wallet.mjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletKeyringObject;
|
|
1159
|
+
[walletId: `keyring:${string}`]: import("../../../account-tree-controller/src/wallet.mjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletKeyringObject;
|
|
1160
|
+
[walletId: `snap:${string}`]: import("../../../account-tree-controller/src/wallet.mjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletKeyringObject;
|
|
1161
|
+
};
|
|
1162
|
+
}, resultFuncArgs_1: {
|
|
1163
|
+
accounts: Record<string, {
|
|
1164
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
|
|
1165
|
+
id: string;
|
|
1166
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
|
1167
|
+
entropy?: {
|
|
1168
|
+
type: "mnemonic";
|
|
1169
|
+
id: string;
|
|
1170
|
+
derivationPath: string;
|
|
1171
|
+
groupIndex: number;
|
|
1172
|
+
} | {
|
|
1173
|
+
type: "private-key";
|
|
1174
|
+
} | {
|
|
1175
|
+
type: "custom";
|
|
1176
|
+
} | undefined;
|
|
1177
|
+
exportable?: boolean | undefined;
|
|
1178
|
+
};
|
|
1179
|
+
metadata: {
|
|
1180
|
+
name: string;
|
|
1181
|
+
importTime: number;
|
|
1182
|
+
keyring: {
|
|
1183
|
+
type: string;
|
|
1184
|
+
};
|
|
1185
|
+
snap?: {
|
|
1186
|
+
id: string;
|
|
1187
|
+
} | undefined;
|
|
1188
|
+
nameLastUpdatedAt?: number | undefined;
|
|
1189
|
+
lastSelected?: number | undefined;
|
|
1190
|
+
};
|
|
1191
|
+
address: string;
|
|
1192
|
+
scopes: `${string}:${string}`[];
|
|
1193
|
+
methods: string[];
|
|
1194
|
+
}>;
|
|
1195
|
+
selectedAccount: string;
|
|
1196
|
+
}) => Record<string, {
|
|
1197
|
+
accountGroupId: AccountGroupId;
|
|
1198
|
+
type: InternalAccount['type'];
|
|
1199
|
+
accountId: string;
|
|
1200
|
+
}>) & {
|
|
1201
|
+
clearCache: () => void;
|
|
1202
|
+
resultsCount: () => number;
|
|
1203
|
+
resetResultsCount: () => void;
|
|
1204
|
+
};
|
|
1205
|
+
lastResult: () => Record<string, {
|
|
1206
|
+
accountGroupId: AccountGroupId;
|
|
1207
|
+
type: InternalAccount['type'];
|
|
1208
|
+
accountId: string;
|
|
1209
|
+
}>;
|
|
1210
|
+
dependencies: [(state: AssetListState) => {
|
|
1211
|
+
wallets: {
|
|
1212
|
+
[walletId: `entropy:${string}`]: import("../../../account-tree-controller/src/wallet.mjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletKeyringObject;
|
|
1213
|
+
[walletId: `keyring:${string}`]: import("../../../account-tree-controller/src/wallet.mjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletKeyringObject;
|
|
1214
|
+
[walletId: `snap:${string}`]: import("../../../account-tree-controller/src/wallet.mjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletKeyringObject;
|
|
1215
|
+
};
|
|
1216
|
+
}, (state: AssetListState) => {
|
|
1217
|
+
accounts: Record<string, {
|
|
1218
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
|
|
1219
|
+
id: string;
|
|
1220
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
|
1221
|
+
entropy?: {
|
|
1222
|
+
type: "mnemonic";
|
|
1223
|
+
id: string;
|
|
1224
|
+
derivationPath: string;
|
|
1225
|
+
groupIndex: number;
|
|
1226
|
+
} | {
|
|
1227
|
+
type: "private-key";
|
|
1228
|
+
} | {
|
|
1229
|
+
type: "custom";
|
|
1230
|
+
} | undefined;
|
|
1231
|
+
exportable?: boolean | undefined;
|
|
1232
|
+
};
|
|
1233
|
+
metadata: {
|
|
1234
|
+
name: string;
|
|
1235
|
+
importTime: number;
|
|
1236
|
+
keyring: {
|
|
1237
|
+
type: string;
|
|
1238
|
+
};
|
|
1239
|
+
snap?: {
|
|
1240
|
+
id: string;
|
|
1241
|
+
} | undefined;
|
|
1242
|
+
nameLastUpdatedAt?: number | undefined;
|
|
1243
|
+
lastSelected?: number | undefined;
|
|
1244
|
+
};
|
|
1245
|
+
address: string;
|
|
1246
|
+
scopes: `${string}:${string}`[];
|
|
1247
|
+
methods: string[];
|
|
1248
|
+
}>;
|
|
1249
|
+
selectedAccount: string;
|
|
1250
|
+
}];
|
|
1251
|
+
recomputations: () => number;
|
|
1252
|
+
resetRecomputations: () => void;
|
|
1253
|
+
dependencyRecomputations: () => number;
|
|
1254
|
+
resetDependencyRecomputations: () => void;
|
|
1255
|
+
} & {
|
|
1256
|
+
memoize: typeof weakMapMemoize;
|
|
1257
|
+
argsMemoize: typeof weakMapMemoize;
|
|
1258
|
+
}, (state: AssetListState) => {
|
|
1259
|
+
[account: string]: `${string}:${string}/${string}:${string}`[];
|
|
1260
|
+
}, (state: AssetListState) => {
|
|
1261
|
+
[account: string]: `${string}:${string}/${string}:${string}`[];
|
|
1262
|
+
}, (state: AssetListState) => {
|
|
1263
|
+
[asset: `${string}:${string}/${string}:${string}`]: {
|
|
1264
|
+
fungible: true;
|
|
1265
|
+
iconUrl: string;
|
|
1266
|
+
units: {
|
|
1267
|
+
decimals: number;
|
|
1268
|
+
symbol?: string | undefined;
|
|
1269
|
+
name?: string | undefined;
|
|
1270
|
+
}[];
|
|
1271
|
+
symbol?: string | undefined;
|
|
1272
|
+
name?: string | undefined;
|
|
1273
|
+
};
|
|
1274
|
+
}, (state: AssetListState) => {
|
|
1275
|
+
[account: string]: {
|
|
1276
|
+
[asset: string]: {
|
|
1277
|
+
amount: string;
|
|
1278
|
+
unit: string;
|
|
1279
|
+
};
|
|
1280
|
+
};
|
|
1281
|
+
}, (state: AssetListState) => Record<`${string}:${string}/${string}:${string}`, import("@metamask/snaps-sdk").AssetConversion & {
|
|
1282
|
+
marketData?: import("@metamask/snaps-sdk").FungibleAssetMarketData | undefined;
|
|
1283
|
+
}>, (state: AssetListState) => string];
|
|
1284
|
+
recomputations: () => number;
|
|
1285
|
+
resetRecomputations: () => void;
|
|
1286
|
+
dependencyRecomputations: () => number;
|
|
1287
|
+
resetDependencyRecomputations: () => void;
|
|
1288
|
+
} & {
|
|
1289
|
+
memoize: typeof weakMapMemoize;
|
|
1290
|
+
argsMemoize: typeof weakMapMemoize;
|
|
1291
|
+
}, ((state: AssetListState) => AssetsByAccountGroup) & {
|
|
1292
|
+
clearCache: () => void;
|
|
1293
|
+
resultsCount: () => number;
|
|
1294
|
+
resetResultsCount: () => void;
|
|
1295
|
+
} & {
|
|
1296
|
+
resultFunc: (resultFuncArgs_0: Record<string, {
|
|
1297
|
+
accountGroupId: AccountGroupId;
|
|
1298
|
+
type: InternalAccount['type'];
|
|
1299
|
+
accountId: string;
|
|
1300
|
+
}>, resultFuncArgs_1: Record<`0x${string}`, Record<`0x${string}`, {
|
|
1301
|
+
balance: Hex | null;
|
|
1302
|
+
}>>, resultFuncArgs_2: Record<`0x${string}`, Record<`0x${string}`, import("../TokenRatesController.mjs").MarketDataDetails>>, resultFuncArgs_3: Record<string, {
|
|
1303
|
+
conversionDate: number | null;
|
|
1304
|
+
conversionRate: number | null;
|
|
1305
|
+
usdConversionRate: number | null;
|
|
1306
|
+
}>, resultFuncArgs_4: string, resultFuncArgs_5: Record<`0x${string}`, import("@metamask/network-controller").NetworkConfiguration>) => AssetsByAccountGroup;
|
|
1307
|
+
memoizedResultFunc: ((resultFuncArgs_0: Record<string, {
|
|
1308
|
+
accountGroupId: AccountGroupId;
|
|
1309
|
+
type: InternalAccount['type'];
|
|
1310
|
+
accountId: string;
|
|
1311
|
+
}>, resultFuncArgs_1: Record<`0x${string}`, Record<`0x${string}`, {
|
|
1312
|
+
balance: Hex | null;
|
|
1313
|
+
}>>, resultFuncArgs_2: Record<`0x${string}`, Record<`0x${string}`, import("../TokenRatesController.mjs").MarketDataDetails>>, resultFuncArgs_3: Record<string, {
|
|
1314
|
+
conversionDate: number | null;
|
|
1315
|
+
conversionRate: number | null;
|
|
1316
|
+
usdConversionRate: number | null;
|
|
1317
|
+
}>, resultFuncArgs_4: string, resultFuncArgs_5: Record<`0x${string}`, import("@metamask/network-controller").NetworkConfiguration>) => AssetsByAccountGroup) & {
|
|
1318
|
+
clearCache: () => void;
|
|
1319
|
+
resultsCount: () => number;
|
|
1320
|
+
resetResultsCount: () => void;
|
|
1321
|
+
};
|
|
1322
|
+
lastResult: () => AssetsByAccountGroup;
|
|
1323
|
+
dependencies: [((state: AssetListState) => Record<string, {
|
|
1324
|
+
accountGroupId: AccountGroupId;
|
|
1325
|
+
type: InternalAccount['type'];
|
|
1326
|
+
accountId: string;
|
|
1327
|
+
}>) & {
|
|
1328
|
+
clearCache: () => void;
|
|
1329
|
+
resultsCount: () => number;
|
|
1330
|
+
resetResultsCount: () => void;
|
|
1331
|
+
} & {
|
|
1332
|
+
resultFunc: (resultFuncArgs_0: {
|
|
1333
|
+
wallets: {
|
|
1334
|
+
[walletId: `entropy:${string}`]: import("../../../account-tree-controller/src/wallet.mjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletKeyringObject;
|
|
1335
|
+
[walletId: `keyring:${string}`]: import("../../../account-tree-controller/src/wallet.mjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletKeyringObject;
|
|
1336
|
+
[walletId: `snap:${string}`]: import("../../../account-tree-controller/src/wallet.mjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletKeyringObject;
|
|
1337
|
+
};
|
|
1338
|
+
}, resultFuncArgs_1: {
|
|
1339
|
+
accounts: Record<string, {
|
|
1340
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
|
|
1341
|
+
id: string;
|
|
1342
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
|
1343
|
+
entropy?: {
|
|
1344
|
+
type: "mnemonic";
|
|
1345
|
+
id: string;
|
|
1346
|
+
derivationPath: string;
|
|
1347
|
+
groupIndex: number;
|
|
1348
|
+
} | {
|
|
1349
|
+
type: "private-key";
|
|
1350
|
+
} | {
|
|
1351
|
+
type: "custom";
|
|
1352
|
+
} | undefined;
|
|
1353
|
+
exportable?: boolean | undefined;
|
|
1354
|
+
};
|
|
1355
|
+
metadata: {
|
|
1356
|
+
name: string;
|
|
1357
|
+
importTime: number;
|
|
1358
|
+
keyring: {
|
|
1359
|
+
type: string;
|
|
1360
|
+
};
|
|
1361
|
+
snap?: {
|
|
1362
|
+
id: string;
|
|
1363
|
+
} | undefined;
|
|
1364
|
+
nameLastUpdatedAt?: number | undefined;
|
|
1365
|
+
lastSelected?: number | undefined;
|
|
1366
|
+
};
|
|
1367
|
+
address: string;
|
|
1368
|
+
scopes: `${string}:${string}`[];
|
|
1369
|
+
methods: string[];
|
|
1370
|
+
}>;
|
|
1371
|
+
selectedAccount: string;
|
|
1372
|
+
}) => Record<string, {
|
|
1373
|
+
accountGroupId: AccountGroupId;
|
|
1374
|
+
type: InternalAccount['type'];
|
|
1375
|
+
accountId: string;
|
|
1376
|
+
}>;
|
|
1377
|
+
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
1378
|
+
wallets: {
|
|
1379
|
+
[walletId: `entropy:${string}`]: import("../../../account-tree-controller/src/wallet.mjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletKeyringObject;
|
|
1380
|
+
[walletId: `keyring:${string}`]: import("../../../account-tree-controller/src/wallet.mjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletKeyringObject;
|
|
1381
|
+
[walletId: `snap:${string}`]: import("../../../account-tree-controller/src/wallet.mjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletKeyringObject;
|
|
1382
|
+
};
|
|
1383
|
+
}, resultFuncArgs_1: {
|
|
1384
|
+
accounts: Record<string, {
|
|
1385
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
|
|
1386
|
+
id: string;
|
|
1387
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
|
1388
|
+
entropy?: {
|
|
1389
|
+
type: "mnemonic";
|
|
1390
|
+
id: string;
|
|
1391
|
+
derivationPath: string;
|
|
1392
|
+
groupIndex: number;
|
|
1393
|
+
} | {
|
|
1394
|
+
type: "private-key";
|
|
1395
|
+
} | {
|
|
1396
|
+
type: "custom";
|
|
1397
|
+
} | undefined;
|
|
1398
|
+
exportable?: boolean | undefined;
|
|
1399
|
+
};
|
|
1400
|
+
metadata: {
|
|
1401
|
+
name: string;
|
|
1402
|
+
importTime: number;
|
|
1403
|
+
keyring: {
|
|
1404
|
+
type: string;
|
|
1405
|
+
};
|
|
1406
|
+
snap?: {
|
|
1407
|
+
id: string;
|
|
1408
|
+
} | undefined;
|
|
1409
|
+
nameLastUpdatedAt?: number | undefined;
|
|
1410
|
+
lastSelected?: number | undefined;
|
|
1411
|
+
};
|
|
1412
|
+
address: string;
|
|
1413
|
+
scopes: `${string}:${string}`[];
|
|
1414
|
+
methods: string[];
|
|
1415
|
+
}>;
|
|
1416
|
+
selectedAccount: string;
|
|
1417
|
+
}) => Record<string, {
|
|
1418
|
+
accountGroupId: AccountGroupId;
|
|
1419
|
+
type: InternalAccount['type'];
|
|
1420
|
+
accountId: string;
|
|
1421
|
+
}>) & {
|
|
1422
|
+
clearCache: () => void;
|
|
1423
|
+
resultsCount: () => number;
|
|
1424
|
+
resetResultsCount: () => void;
|
|
1425
|
+
};
|
|
1426
|
+
lastResult: () => Record<string, {
|
|
1427
|
+
accountGroupId: AccountGroupId;
|
|
1428
|
+
type: InternalAccount['type'];
|
|
1429
|
+
accountId: string;
|
|
1430
|
+
}>;
|
|
1431
|
+
dependencies: [(state: AssetListState) => {
|
|
1432
|
+
wallets: {
|
|
1433
|
+
[walletId: `entropy:${string}`]: import("../../../account-tree-controller/src/wallet.mjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletKeyringObject;
|
|
1434
|
+
[walletId: `keyring:${string}`]: import("../../../account-tree-controller/src/wallet.mjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletKeyringObject;
|
|
1435
|
+
[walletId: `snap:${string}`]: import("../../../account-tree-controller/src/wallet.mjs").AccountWalletEntropyObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletSnapObject | import("../../../account-tree-controller/src/wallet.mjs").AccountWalletKeyringObject;
|
|
1436
|
+
};
|
|
1437
|
+
}, (state: AssetListState) => {
|
|
1438
|
+
accounts: Record<string, {
|
|
1439
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
|
|
1440
|
+
id: string;
|
|
1441
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
|
1442
|
+
entropy?: {
|
|
1443
|
+
type: "mnemonic";
|
|
1444
|
+
id: string;
|
|
1445
|
+
derivationPath: string;
|
|
1446
|
+
groupIndex: number;
|
|
1447
|
+
} | {
|
|
1448
|
+
type: "private-key";
|
|
1449
|
+
} | {
|
|
1450
|
+
type: "custom";
|
|
1451
|
+
} | undefined;
|
|
1452
|
+
exportable?: boolean | undefined;
|
|
1453
|
+
};
|
|
1454
|
+
metadata: {
|
|
1455
|
+
name: string;
|
|
1456
|
+
importTime: number;
|
|
1457
|
+
keyring: {
|
|
1458
|
+
type: string;
|
|
1459
|
+
};
|
|
1460
|
+
snap?: {
|
|
1461
|
+
id: string;
|
|
1462
|
+
} | undefined;
|
|
1463
|
+
nameLastUpdatedAt?: number | undefined;
|
|
1464
|
+
lastSelected?: number | undefined;
|
|
1465
|
+
};
|
|
1466
|
+
address: string;
|
|
1467
|
+
scopes: `${string}:${string}`[];
|
|
1468
|
+
methods: string[];
|
|
1469
|
+
}>;
|
|
1470
|
+
selectedAccount: string;
|
|
1471
|
+
}];
|
|
1472
|
+
recomputations: () => number;
|
|
1473
|
+
resetRecomputations: () => void;
|
|
1474
|
+
dependencyRecomputations: () => number;
|
|
1475
|
+
resetDependencyRecomputations: () => void;
|
|
1476
|
+
} & {
|
|
1477
|
+
memoize: typeof weakMapMemoize;
|
|
1478
|
+
argsMemoize: typeof weakMapMemoize;
|
|
1479
|
+
}, (state: AssetListState) => Record<`0x${string}`, Record<`0x${string}`, {
|
|
1480
|
+
balance: Hex | null;
|
|
1481
|
+
}>>, (state: AssetListState) => Record<`0x${string}`, Record<`0x${string}`, import("../TokenRatesController.mjs").MarketDataDetails>>, (state: AssetListState) => Record<string, {
|
|
1482
|
+
conversionDate: number | null;
|
|
1483
|
+
conversionRate: number | null;
|
|
1484
|
+
usdConversionRate: number | null;
|
|
1485
|
+
}>, (state: AssetListState) => string, (state: AssetListState) => Record<`0x${string}`, import("@metamask/network-controller").NetworkConfiguration>];
|
|
1486
|
+
recomputations: () => number;
|
|
1487
|
+
resetRecomputations: () => void;
|
|
1488
|
+
dependencyRecomputations: () => number;
|
|
1489
|
+
resetDependencyRecomputations: () => void;
|
|
1490
|
+
} & {
|
|
1491
|
+
memoize: typeof weakMapMemoize;
|
|
1492
|
+
argsMemoize: typeof weakMapMemoize;
|
|
1493
|
+
}];
|
|
1494
|
+
recomputations: () => number;
|
|
1495
|
+
resetRecomputations: () => void;
|
|
1496
|
+
dependencyRecomputations: () => number;
|
|
1497
|
+
resetDependencyRecomputations: () => void;
|
|
1498
|
+
} & {
|
|
1499
|
+
memoize: typeof weakMapMemoize;
|
|
1500
|
+
argsMemoize: typeof weakMapMemoize;
|
|
1501
|
+
}, (state: AssetListState) => "" | `entropy:${string}/${string}` | `keyring:${string}/${string}` | `snap:${string}/${string}`, (_state: AssetListState, opts?: SelectAccountGroupAssetOpts) => SelectAccountGroupAssetOpts];
|
|
1502
|
+
recomputations: () => number;
|
|
1503
|
+
resetRecomputations: () => void;
|
|
1504
|
+
dependencyRecomputations: () => number;
|
|
1505
|
+
resetDependencyRecomputations: () => void;
|
|
1506
|
+
} & {
|
|
1507
|
+
memoize: typeof weakMapMemoize;
|
|
1508
|
+
argsMemoize: typeof weakMapMemoize;
|
|
1509
|
+
};
|
|
1510
|
+
export {};
|
|
1511
|
+
//# sourceMappingURL=token-selectors.d.mts.map
|