@metamask/assets-controllers 101.0.0 → 102.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/CHANGELOG.md +46 -1
  2. package/dist/AccountTrackerController-method-action-types.cjs +1 -1
  3. package/dist/AccountTrackerController-method-action-types.cjs.map +1 -1
  4. package/dist/AccountTrackerController-method-action-types.d.cts +1 -1
  5. package/dist/AccountTrackerController-method-action-types.d.mts +1 -1
  6. package/dist/AccountTrackerController-method-action-types.mjs +1 -1
  7. package/dist/AccountTrackerController-method-action-types.mjs.map +1 -1
  8. package/dist/AssetsContractController-method-action-types.cjs +1 -1
  9. package/dist/AssetsContractController-method-action-types.cjs.map +1 -1
  10. package/dist/AssetsContractController-method-action-types.d.cts +1 -1
  11. package/dist/AssetsContractController-method-action-types.d.mts +1 -1
  12. package/dist/AssetsContractController-method-action-types.mjs +1 -1
  13. package/dist/AssetsContractController-method-action-types.mjs.map +1 -1
  14. package/dist/MultichainAssetsController/MultichainAssetsController-method-action-types.cjs +1 -1
  15. package/dist/MultichainAssetsController/MultichainAssetsController-method-action-types.cjs.map +1 -1
  16. package/dist/MultichainAssetsController/MultichainAssetsController-method-action-types.d.cts +1 -1
  17. package/dist/MultichainAssetsController/MultichainAssetsController-method-action-types.d.mts +1 -1
  18. package/dist/MultichainAssetsController/MultichainAssetsController-method-action-types.mjs +1 -1
  19. package/dist/MultichainAssetsController/MultichainAssetsController-method-action-types.mjs.map +1 -1
  20. package/dist/MultichainAssetsRatesController/MultichainAssetsRatesController-method-action-types.cjs +1 -1
  21. package/dist/MultichainAssetsRatesController/MultichainAssetsRatesController-method-action-types.cjs.map +1 -1
  22. package/dist/MultichainAssetsRatesController/MultichainAssetsRatesController-method-action-types.d.cts +1 -1
  23. package/dist/MultichainAssetsRatesController/MultichainAssetsRatesController-method-action-types.d.mts +1 -1
  24. package/dist/MultichainAssetsRatesController/MultichainAssetsRatesController-method-action-types.mjs +1 -1
  25. package/dist/MultichainAssetsRatesController/MultichainAssetsRatesController-method-action-types.mjs.map +1 -1
  26. package/dist/TokenBalancesController-method-action-types.cjs +1 -1
  27. package/dist/TokenBalancesController-method-action-types.cjs.map +1 -1
  28. package/dist/TokenBalancesController-method-action-types.d.cts +1 -1
  29. package/dist/TokenBalancesController-method-action-types.d.mts +1 -1
  30. package/dist/TokenBalancesController-method-action-types.mjs +1 -1
  31. package/dist/TokenBalancesController-method-action-types.mjs.map +1 -1
  32. package/dist/TokenBalancesController.cjs +24 -12
  33. package/dist/TokenBalancesController.cjs.map +1 -1
  34. package/dist/TokenBalancesController.d.cts.map +1 -1
  35. package/dist/TokenBalancesController.d.mts.map +1 -1
  36. package/dist/TokenBalancesController.mjs +24 -12
  37. package/dist/TokenBalancesController.mjs.map +1 -1
  38. package/dist/TokenDetectionController-method-action-types.cjs +1 -1
  39. package/dist/TokenDetectionController-method-action-types.cjs.map +1 -1
  40. package/dist/TokenDetectionController-method-action-types.d.cts +1 -1
  41. package/dist/TokenDetectionController-method-action-types.d.mts +1 -1
  42. package/dist/TokenDetectionController-method-action-types.mjs +1 -1
  43. package/dist/TokenDetectionController-method-action-types.mjs.map +1 -1
  44. package/dist/TokensController-method-action-types.cjs +1 -1
  45. package/dist/TokensController-method-action-types.cjs.map +1 -1
  46. package/dist/TokensController-method-action-types.d.cts +1 -1
  47. package/dist/TokensController-method-action-types.d.mts +1 -1
  48. package/dist/TokensController-method-action-types.mjs +1 -1
  49. package/dist/TokensController-method-action-types.mjs.map +1 -1
  50. package/dist/multicall.cjs +2 -0
  51. package/dist/multicall.cjs.map +1 -1
  52. package/dist/multicall.d.cts.map +1 -1
  53. package/dist/multicall.d.mts.map +1 -1
  54. package/dist/multicall.mjs +2 -0
  55. package/dist/multicall.mjs.map +1 -1
  56. package/dist/selectors/token-selectors.cjs +2 -3
  57. package/dist/selectors/token-selectors.cjs.map +1 -1
  58. package/dist/selectors/token-selectors.d.cts +4 -42
  59. package/dist/selectors/token-selectors.d.cts.map +1 -1
  60. package/dist/selectors/token-selectors.d.mts +4 -42
  61. package/dist/selectors/token-selectors.d.mts.map +1 -1
  62. package/dist/selectors/token-selectors.mjs +2 -3
  63. package/dist/selectors/token-selectors.mjs.map +1 -1
  64. package/dist/token-prices-service/codefi-v2.cjs +9 -5
  65. package/dist/token-prices-service/codefi-v2.cjs.map +1 -1
  66. package/dist/token-prices-service/codefi-v2.d.cts +4 -2
  67. package/dist/token-prices-service/codefi-v2.d.cts.map +1 -1
  68. package/dist/token-prices-service/codefi-v2.d.mts +4 -2
  69. package/dist/token-prices-service/codefi-v2.d.mts.map +1 -1
  70. package/dist/token-prices-service/codefi-v2.mjs +9 -5
  71. package/dist/token-prices-service/codefi-v2.mjs.map +1 -1
  72. package/package.json +19 -19
package/CHANGELOG.md CHANGED
@@ -7,6 +7,49 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [102.0.0]
11
+
12
+ ### Added
13
+
14
+ - Add Tempo Mainnet (`4217`/`0x1079`) and Tempo Moderato Testnet (`42431`/`0xa5bf`) support ([#8258](https://github.com/MetaMask/core/pull/8258))
15
+ - Add `0x1079` and `0xa5bf` to `SPOT_PRICES_SUPPORT_INFO` in `codefi-v2.ts`
16
+ - Add `0x1079` and `0xa5bf` to `chainIdToNativeTokenAddress` in `codefi-v2.ts`
17
+ - Add `0xa5bf` (only Tempo Testnet) to `MULTICALL_CONTRACT_BY_CHAINID` in `multicall.ts`
18
+
19
+ ### Changed
20
+
21
+ - **BREAKING:** `AssetListState` type now requires a top-level `selectedAccountGroup` property, matching the updated `AccountTreeControllerState` shape where `selectedAccountGroup` was moved out of `accountTree` ([#8245](https://github.com/MetaMask/core/pull/8245))
22
+ - Bump `@metamask/keyring-api` from `^21.5.0` to `^21.6.0` ([#8259](https://github.com/MetaMask/core/pull/8259))
23
+ - Bump `@metamask/account-tree-controller` from `^5.0.1` to `^6.0.0` ([#8317](https://github.com/MetaMask/core/pull/8317))
24
+ - Bump `@metamask/accounts-controller` from `^37.0.0` to `^37.1.0` ([#8317](https://github.com/MetaMask/core/pull/8317))
25
+ - Bump `@metamask/approval-controller` from `^9.0.0` to `^9.0.1` ([#8317](https://github.com/MetaMask/core/pull/8317))
26
+ - Bump `@metamask/base-controller` from `^9.0.0` to `^9.0.1` ([#8317](https://github.com/MetaMask/core/pull/8317))
27
+ - Bump `@metamask/core-backend` from `^6.2.0` to `^6.2.1` ([#8317](https://github.com/MetaMask/core/pull/8317))
28
+ - Bump `@metamask/keyring-controller` from `^25.1.0` to `^25.1.1` ([#8317](https://github.com/MetaMask/core/pull/8317))
29
+ - Bump `@metamask/messenger` from `^0.3.0` to `^1.0.0` ([#8317](https://github.com/MetaMask/core/pull/8317))
30
+ - Bump `@metamask/multichain-account-service` from `^7.1.0` to `^8.0.0` ([#8317](https://github.com/MetaMask/core/pull/8317))
31
+ - Bump `@metamask/network-controller` from `^30.0.0` to `^30.0.1` ([#8317](https://github.com/MetaMask/core/pull/8317))
32
+ - Bump `@metamask/network-enablement-controller` from `^5.0.0` to `^5.0.1` ([#8317](https://github.com/MetaMask/core/pull/8317))
33
+ - Bump `@metamask/permission-controller` from `^12.2.1` to `^12.3.0` ([#8317](https://github.com/MetaMask/core/pull/8317))
34
+ - Bump `@metamask/phishing-controller` from `^17.0.0` to `^17.1.0` ([#8317](https://github.com/MetaMask/core/pull/8317))
35
+ - Bump `@metamask/polling-controller` from `^16.0.3` to `^16.0.4` ([#8317](https://github.com/MetaMask/core/pull/8317))
36
+ - Bump `@metamask/preferences-controller` from `^23.0.0` to `^23.1.0` ([#8317](https://github.com/MetaMask/core/pull/8317))
37
+ - Bump `@metamask/profile-sync-controller` from `^28.0.0` to `^28.0.1` ([#8317](https://github.com/MetaMask/core/pull/8317))
38
+ - Bump `@metamask/storage-service` from `^1.0.0` to `^1.0.1` ([#8317](https://github.com/MetaMask/core/pull/8317))
39
+ - `fetchTokenPrices` to use `SPOT_PRICES_SUPPORT_INFO` as override - use if defined - instead of fallback for native token price ([#8258](https://github.com/MetaMask/core/pull/8258))
40
+ - Bump `@metamask/transaction-controller` from `^63.0.0` to `^63.3.1` ([#8272](https://github.com/MetaMask/core/pull/8272), [#8301](https://github.com/MetaMask/core/pull/8301), [#8313](https://github.com/MetaMask/core/pull/8313), [#8317](https://github.com/MetaMask/core/pull/8317))
41
+ - Changed INK native asset to `slip44:60` (ETH) in `codefi-v2.ts` ([#8303](https://github.com/MetaMask/core/pull/8303))
42
+
43
+ ## [101.0.1]
44
+
45
+ ### Changed
46
+
47
+ - Bump `@metamask/core-backend` from `^6.1.1` to `^6.2.0` ([#8232](https://github.com/MetaMask/core/pull/8232))
48
+
49
+ ### Fixed
50
+
51
+ - `TokenBalancesController` no longer crashes when `AccountActivityService:statusChanged` emits non-EVM chain IDs (e.g. `solana:mainnet`); such chains are now silently skipped ([#8228](https://github.com/MetaMask/core/pull/8228))
52
+
10
53
  ## [101.0.0]
11
54
 
12
55
  ### Added
@@ -2833,7 +2876,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2833
2876
 
2834
2877
  - Use Ethers for AssetsContractController ([#845](https://github.com/MetaMask/core/pull/845))
2835
2878
 
2836
- [Unreleased]: https://github.com/MetaMask/core/compare/@metamask/assets-controllers@101.0.0...HEAD
2879
+ [Unreleased]: https://github.com/MetaMask/core/compare/@metamask/assets-controllers@102.0.0...HEAD
2880
+ [102.0.0]: https://github.com/MetaMask/core/compare/@metamask/assets-controllers@101.0.1...@metamask/assets-controllers@102.0.0
2881
+ [101.0.1]: https://github.com/MetaMask/core/compare/@metamask/assets-controllers@101.0.0...@metamask/assets-controllers@101.0.1
2837
2882
  [101.0.0]: https://github.com/MetaMask/core/compare/@metamask/assets-controllers@100.2.1...@metamask/assets-controllers@101.0.0
2838
2883
  [100.2.1]: https://github.com/MetaMask/core/compare/@metamask/assets-controllers@100.2.0...@metamask/assets-controllers@100.2.1
2839
2884
  [100.2.0]: https://github.com/MetaMask/core/compare/@metamask/assets-controllers@100.1.0...@metamask/assets-controllers@100.2.0
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /**
3
- * This file is auto generated by `scripts/generate-method-action-types.ts`.
3
+ * This file is auto generated.
4
4
  * Do not edit manually.
5
5
  */
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +1 @@
1
- {"version":3,"file":"AccountTrackerController-method-action-types.cjs","sourceRoot":"","sources":["../src/AccountTrackerController-method-action-types.ts"],"names":[],"mappings":";AAAA;;;GAGG","sourcesContent":["/**\n * This file is auto generated by `scripts/generate-method-action-types.ts`.\n * Do not edit manually.\n */\n\nimport type { AccountTrackerController } from './AccountTrackerController';\n\n/**\n * Updates the balances of multiple native tokens in a single batch operation.\n * This is more efficient than calling updateNativeToken multiple times as it\n * triggers only one state update.\n *\n * @param balances - Array of balance updates, each containing address, chainId, and balance.\n */\nexport type AccountTrackerControllerUpdateNativeBalancesAction = {\n type: `AccountTrackerController:updateNativeBalances`;\n handler: AccountTrackerController['updateNativeBalances'];\n};\n\n/**\n * Updates the staked balances of multiple accounts in a single batch operation.\n * This is more efficient than updating staked balances individually as it\n * triggers only one state update.\n *\n * @param stakedBalances - Array of staked balance updates, each containing address, chainId, and stakedBalance.\n */\nexport type AccountTrackerControllerUpdateStakedBalancesAction = {\n type: `AccountTrackerController:updateStakedBalances`;\n handler: AccountTrackerController['updateStakedBalances'];\n};\n\n/**\n * Union of all AccountTrackerController action types.\n */\nexport type AccountTrackerControllerMethodActions =\n | AccountTrackerControllerUpdateNativeBalancesAction\n | AccountTrackerControllerUpdateStakedBalancesAction;\n"]}
1
+ {"version":3,"file":"AccountTrackerController-method-action-types.cjs","sourceRoot":"","sources":["../src/AccountTrackerController-method-action-types.ts"],"names":[],"mappings":";AAAA;;;GAGG","sourcesContent":["/**\n * This file is auto generated.\n * Do not edit manually.\n */\n\nimport type { AccountTrackerController } from './AccountTrackerController';\n\n/**\n * Updates the balances of multiple native tokens in a single batch operation.\n * This is more efficient than calling updateNativeToken multiple times as it\n * triggers only one state update.\n *\n * @param balances - Array of balance updates, each containing address, chainId, and balance.\n */\nexport type AccountTrackerControllerUpdateNativeBalancesAction = {\n type: `AccountTrackerController:updateNativeBalances`;\n handler: AccountTrackerController['updateNativeBalances'];\n};\n\n/**\n * Updates the staked balances of multiple accounts in a single batch operation.\n * This is more efficient than updating staked balances individually as it\n * triggers only one state update.\n *\n * @param stakedBalances - Array of staked balance updates, each containing address, chainId, and stakedBalance.\n */\nexport type AccountTrackerControllerUpdateStakedBalancesAction = {\n type: `AccountTrackerController:updateStakedBalances`;\n handler: AccountTrackerController['updateStakedBalances'];\n};\n\n/**\n * Union of all AccountTrackerController action types.\n */\nexport type AccountTrackerControllerMethodActions =\n | AccountTrackerControllerUpdateNativeBalancesAction\n | AccountTrackerControllerUpdateStakedBalancesAction;\n"]}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file is auto generated by `scripts/generate-method-action-types.ts`.
2
+ * This file is auto generated.
3
3
  * Do not edit manually.
4
4
  */
5
5
  import type { AccountTrackerController } from "./AccountTrackerController.cjs";
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file is auto generated by `scripts/generate-method-action-types.ts`.
2
+ * This file is auto generated.
3
3
  * Do not edit manually.
4
4
  */
5
5
  import type { AccountTrackerController } from "./AccountTrackerController.mjs";
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file is auto generated by `scripts/generate-method-action-types.ts`.
2
+ * This file is auto generated.
3
3
  * Do not edit manually.
4
4
  */
5
5
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"AccountTrackerController-method-action-types.mjs","sourceRoot":"","sources":["../src/AccountTrackerController-method-action-types.ts"],"names":[],"mappings":"AAAA;;;GAGG","sourcesContent":["/**\n * This file is auto generated by `scripts/generate-method-action-types.ts`.\n * Do not edit manually.\n */\n\nimport type { AccountTrackerController } from './AccountTrackerController';\n\n/**\n * Updates the balances of multiple native tokens in a single batch operation.\n * This is more efficient than calling updateNativeToken multiple times as it\n * triggers only one state update.\n *\n * @param balances - Array of balance updates, each containing address, chainId, and balance.\n */\nexport type AccountTrackerControllerUpdateNativeBalancesAction = {\n type: `AccountTrackerController:updateNativeBalances`;\n handler: AccountTrackerController['updateNativeBalances'];\n};\n\n/**\n * Updates the staked balances of multiple accounts in a single batch operation.\n * This is more efficient than updating staked balances individually as it\n * triggers only one state update.\n *\n * @param stakedBalances - Array of staked balance updates, each containing address, chainId, and stakedBalance.\n */\nexport type AccountTrackerControllerUpdateStakedBalancesAction = {\n type: `AccountTrackerController:updateStakedBalances`;\n handler: AccountTrackerController['updateStakedBalances'];\n};\n\n/**\n * Union of all AccountTrackerController action types.\n */\nexport type AccountTrackerControllerMethodActions =\n | AccountTrackerControllerUpdateNativeBalancesAction\n | AccountTrackerControllerUpdateStakedBalancesAction;\n"]}
1
+ {"version":3,"file":"AccountTrackerController-method-action-types.mjs","sourceRoot":"","sources":["../src/AccountTrackerController-method-action-types.ts"],"names":[],"mappings":"AAAA;;;GAGG","sourcesContent":["/**\n * This file is auto generated.\n * Do not edit manually.\n */\n\nimport type { AccountTrackerController } from './AccountTrackerController';\n\n/**\n * Updates the balances of multiple native tokens in a single batch operation.\n * This is more efficient than calling updateNativeToken multiple times as it\n * triggers only one state update.\n *\n * @param balances - Array of balance updates, each containing address, chainId, and balance.\n */\nexport type AccountTrackerControllerUpdateNativeBalancesAction = {\n type: `AccountTrackerController:updateNativeBalances`;\n handler: AccountTrackerController['updateNativeBalances'];\n};\n\n/**\n * Updates the staked balances of multiple accounts in a single batch operation.\n * This is more efficient than updating staked balances individually as it\n * triggers only one state update.\n *\n * @param stakedBalances - Array of staked balance updates, each containing address, chainId, and stakedBalance.\n */\nexport type AccountTrackerControllerUpdateStakedBalancesAction = {\n type: `AccountTrackerController:updateStakedBalances`;\n handler: AccountTrackerController['updateStakedBalances'];\n};\n\n/**\n * Union of all AccountTrackerController action types.\n */\nexport type AccountTrackerControllerMethodActions =\n | AccountTrackerControllerUpdateNativeBalancesAction\n | AccountTrackerControllerUpdateStakedBalancesAction;\n"]}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /**
3
- * This file is auto generated by `scripts/generate-method-action-types.ts`.
3
+ * This file is auto generated.
4
4
  * Do not edit manually.
5
5
  */
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +1 @@
1
- {"version":3,"file":"AssetsContractController-method-action-types.cjs","sourceRoot":"","sources":["../src/AssetsContractController-method-action-types.ts"],"names":[],"mappings":";AAAA;;;GAGG","sourcesContent":["/**\n * This file is auto generated by `scripts/generate-method-action-types.ts`.\n * Do not edit manually.\n */\n\nimport type { AssetsContractController } from './AssetsContractController';\n\n/**\n * Get a ERC20Standard instance using the relevant provider instance.\n *\n * @param networkClientId - Network Client ID used to get the provider.\n * @returns ERC20Standard instance.\n */\nexport type AssetsContractControllerGetERC20StandardAction = {\n type: `AssetsContractController:getERC20Standard`;\n handler: AssetsContractController['getERC20Standard'];\n};\n\n/**\n * Get a ERC721Standard instance using the relevant provider instance.\n *\n * @param networkClientId - Network Client ID used to get the provider.\n * @returns ERC721Standard instance.\n */\nexport type AssetsContractControllerGetERC721StandardAction = {\n type: `AssetsContractController:getERC721Standard`;\n handler: AssetsContractController['getERC721Standard'];\n};\n\n/**\n * Get a ERC1155Standard instance using the relevant provider instance.\n *\n * @param networkClientId - Network Client ID used to get the provider.\n * @returns ERC1155Standard instance.\n */\nexport type AssetsContractControllerGetERC1155StandardAction = {\n type: `AssetsContractController:getERC1155Standard`;\n handler: AssetsContractController['getERC1155Standard'];\n};\n\n/**\n * Get balance or count for current account on specific asset contract.\n *\n * @param address - Asset ERC20 contract address.\n * @param selectedAddress - Current account public address.\n * @param networkClientId - Network Client ID to fetch the provider with.\n * @returns Promise resolving to BN object containing balance for current account on specific asset contract.\n */\nexport type AssetsContractControllerGetERC20BalanceOfAction = {\n type: `AssetsContractController:getERC20BalanceOf`;\n handler: AssetsContractController['getERC20BalanceOf'];\n};\n\n/**\n * Query for the decimals for a given ERC20 asset.\n *\n * @param address - ERC20 asset contract address.\n * @param networkClientId - Network Client ID to fetch the provider with.\n * @returns Promise resolving to the 'decimals'.\n */\nexport type AssetsContractControllerGetERC20TokenDecimalsAction = {\n type: `AssetsContractController:getERC20TokenDecimals`;\n handler: AssetsContractController['getERC20TokenDecimals'];\n};\n\n/**\n * Query for the name for a given ERC20 asset.\n *\n * @param address - ERC20 asset contract address.\n * @param networkClientId - Network Client ID to fetch the provider with.\n * @returns Promise resolving to the 'decimals'.\n */\nexport type AssetsContractControllerGetERC20TokenNameAction = {\n type: `AssetsContractController:getERC20TokenName`;\n handler: AssetsContractController['getERC20TokenName'];\n};\n\n/**\n * Enumerate assets assigned to an owner.\n *\n * @param address - ERC721 asset contract address.\n * @param selectedAddress - Current account public address.\n * @param index - An NFT counter less than `balanceOf(selectedAddress)`.\n * @param networkClientId - Network Client ID to fetch the provider with.\n * @returns Promise resolving to token identifier for the 'index'th asset assigned to 'selectedAddress'.\n */\nexport type AssetsContractControllerGetERC721NftTokenIdAction = {\n type: `AssetsContractController:getERC721NftTokenId`;\n handler: AssetsContractController['getERC721NftTokenId'];\n};\n\n/**\n * Enumerate assets assigned to an owner.\n *\n * @param tokenAddress - ERC721 asset contract address.\n * @param userAddress - Current account public address.\n * @param tokenId - ERC721 asset identifier.\n * @param networkClientId - Network Client ID to fetch the provider with.\n * @returns Promise resolving to an object containing the token standard and a set of details which depend on which standard the token supports.\n */\nexport type AssetsContractControllerGetTokenStandardAndDetailsAction = {\n type: `AssetsContractController:getTokenStandardAndDetails`;\n handler: AssetsContractController['getTokenStandardAndDetails'];\n};\n\n/**\n * Query for tokenURI for a given ERC721 asset.\n *\n * @param address - ERC721 asset contract address.\n * @param tokenId - ERC721 asset identifier.\n * @param networkClientId - Network Client ID to fetch the provider with.\n * @returns Promise resolving to the 'tokenURI'.\n */\nexport type AssetsContractControllerGetERC721TokenURIAction = {\n type: `AssetsContractController:getERC721TokenURI`;\n handler: AssetsContractController['getERC721TokenURI'];\n};\n\n/**\n * Query for name for a given asset.\n *\n * @param address - ERC721 or ERC20 asset contract address.\n * @param networkClientId - Network Client ID to fetch the provider with.\n * @returns Promise resolving to the 'name'.\n */\nexport type AssetsContractControllerGetERC721AssetNameAction = {\n type: `AssetsContractController:getERC721AssetName`;\n handler: AssetsContractController['getERC721AssetName'];\n};\n\n/**\n * Query for symbol for a given asset.\n *\n * @param address - ERC721 or ERC20 asset contract address.\n * @param networkClientId - Network Client ID to fetch the provider with.\n * @returns Promise resolving to the 'symbol'.\n */\nexport type AssetsContractControllerGetERC721AssetSymbolAction = {\n type: `AssetsContractController:getERC721AssetSymbol`;\n handler: AssetsContractController['getERC721AssetSymbol'];\n};\n\n/**\n * Query for owner for a given ERC721 asset.\n *\n * @param address - ERC721 asset contract address.\n * @param tokenId - ERC721 asset identifier.\n * @param networkClientId - Network Client ID to fetch the provider with.\n * @returns Promise resolving to the owner address.\n */\nexport type AssetsContractControllerGetERC721OwnerOfAction = {\n type: `AssetsContractController:getERC721OwnerOf`;\n handler: AssetsContractController['getERC721OwnerOf'];\n};\n\n/**\n * Query for tokenURI for a given asset.\n *\n * @param address - ERC1155 asset contract address.\n * @param tokenId - ERC1155 asset identifier.\n * @param networkClientId - Network Client ID to fetch the provider with.\n * @returns Promise resolving to the 'tokenURI'.\n */\nexport type AssetsContractControllerGetERC1155TokenURIAction = {\n type: `AssetsContractController:getERC1155TokenURI`;\n handler: AssetsContractController['getERC1155TokenURI'];\n};\n\n/**\n * Query for balance of a given ERC 1155 token.\n *\n * @param userAddress - Wallet public address.\n * @param nftAddress - ERC1155 asset contract address.\n * @param nftId - ERC1155 asset identifier.\n * @param networkClientId - Network Client ID to fetch the provider with.\n * @returns Promise resolving to the 'balanceOf'.\n */\nexport type AssetsContractControllerGetERC1155BalanceOfAction = {\n type: `AssetsContractController:getERC1155BalanceOf`;\n handler: AssetsContractController['getERC1155BalanceOf'];\n};\n\n/**\n * Transfer single ERC1155 token.\n *\n * @param nftAddress - ERC1155 token address.\n * @param senderAddress - ERC1155 token sender.\n * @param recipientAddress - ERC1155 token recipient.\n * @param nftId - ERC1155 token id.\n * @param qty - Quantity of tokens to be sent.\n * @param networkClientId - Network Client ID to fetch the provider with.\n * @returns Promise resolving to the 'transferSingle' ERC1155 token.\n */\nexport type AssetsContractControllerTransferSingleERC1155Action = {\n type: `AssetsContractController:transferSingleERC1155`;\n handler: AssetsContractController['transferSingleERC1155'];\n};\n\n/**\n * Get the token balance for a list of token addresses in a single call. Only non-zero balances\n * are returned.\n *\n * @param selectedAddress - The address to check token balances for.\n * @param tokensToDetect - The token addresses to detect balances for.\n * @param networkClientId - Network Client ID to fetch the provider with.\n * @returns The list of non-zero token balances.\n */\nexport type AssetsContractControllerGetBalancesInSingleCallAction = {\n type: `AssetsContractController:getBalancesInSingleCall`;\n handler: AssetsContractController['getBalancesInSingleCall'];\n};\n\n/**\n * Get the staked ethereum balance for multiple addresses in a single call.\n *\n * @param addresses - The addresses to check staked ethereum balance for.\n * @param networkClientId - Network Client ID to fetch the provider with.\n * @returns The hex staked ethereum balance for address.\n */\nexport type AssetsContractControllerGetStakedBalanceForChainAction = {\n type: `AssetsContractController:getStakedBalanceForChain`;\n handler: AssetsContractController['getStakedBalanceForChain'];\n};\n\n/**\n * Union of all AssetsContractController action types.\n */\nexport type AssetsContractControllerMethodActions =\n | AssetsContractControllerGetERC20StandardAction\n | AssetsContractControllerGetERC721StandardAction\n | AssetsContractControllerGetERC1155StandardAction\n | AssetsContractControllerGetERC20BalanceOfAction\n | AssetsContractControllerGetERC20TokenDecimalsAction\n | AssetsContractControllerGetERC20TokenNameAction\n | AssetsContractControllerGetERC721NftTokenIdAction\n | AssetsContractControllerGetTokenStandardAndDetailsAction\n | AssetsContractControllerGetERC721TokenURIAction\n | AssetsContractControllerGetERC721AssetNameAction\n | AssetsContractControllerGetERC721AssetSymbolAction\n | AssetsContractControllerGetERC721OwnerOfAction\n | AssetsContractControllerGetERC1155TokenURIAction\n | AssetsContractControllerGetERC1155BalanceOfAction\n | AssetsContractControllerTransferSingleERC1155Action\n | AssetsContractControllerGetBalancesInSingleCallAction\n | AssetsContractControllerGetStakedBalanceForChainAction;\n"]}
1
+ {"version":3,"file":"AssetsContractController-method-action-types.cjs","sourceRoot":"","sources":["../src/AssetsContractController-method-action-types.ts"],"names":[],"mappings":";AAAA;;;GAGG","sourcesContent":["/**\n * This file is auto generated.\n * Do not edit manually.\n */\n\nimport type { AssetsContractController } from './AssetsContractController';\n\n/**\n * Get a ERC20Standard instance using the relevant provider instance.\n *\n * @param networkClientId - Network Client ID used to get the provider.\n * @returns ERC20Standard instance.\n */\nexport type AssetsContractControllerGetERC20StandardAction = {\n type: `AssetsContractController:getERC20Standard`;\n handler: AssetsContractController['getERC20Standard'];\n};\n\n/**\n * Get a ERC721Standard instance using the relevant provider instance.\n *\n * @param networkClientId - Network Client ID used to get the provider.\n * @returns ERC721Standard instance.\n */\nexport type AssetsContractControllerGetERC721StandardAction = {\n type: `AssetsContractController:getERC721Standard`;\n handler: AssetsContractController['getERC721Standard'];\n};\n\n/**\n * Get a ERC1155Standard instance using the relevant provider instance.\n *\n * @param networkClientId - Network Client ID used to get the provider.\n * @returns ERC1155Standard instance.\n */\nexport type AssetsContractControllerGetERC1155StandardAction = {\n type: `AssetsContractController:getERC1155Standard`;\n handler: AssetsContractController['getERC1155Standard'];\n};\n\n/**\n * Get balance or count for current account on specific asset contract.\n *\n * @param address - Asset ERC20 contract address.\n * @param selectedAddress - Current account public address.\n * @param networkClientId - Network Client ID to fetch the provider with.\n * @returns Promise resolving to BN object containing balance for current account on specific asset contract.\n */\nexport type AssetsContractControllerGetERC20BalanceOfAction = {\n type: `AssetsContractController:getERC20BalanceOf`;\n handler: AssetsContractController['getERC20BalanceOf'];\n};\n\n/**\n * Query for the decimals for a given ERC20 asset.\n *\n * @param address - ERC20 asset contract address.\n * @param networkClientId - Network Client ID to fetch the provider with.\n * @returns Promise resolving to the 'decimals'.\n */\nexport type AssetsContractControllerGetERC20TokenDecimalsAction = {\n type: `AssetsContractController:getERC20TokenDecimals`;\n handler: AssetsContractController['getERC20TokenDecimals'];\n};\n\n/**\n * Query for the name for a given ERC20 asset.\n *\n * @param address - ERC20 asset contract address.\n * @param networkClientId - Network Client ID to fetch the provider with.\n * @returns Promise resolving to the 'decimals'.\n */\nexport type AssetsContractControllerGetERC20TokenNameAction = {\n type: `AssetsContractController:getERC20TokenName`;\n handler: AssetsContractController['getERC20TokenName'];\n};\n\n/**\n * Enumerate assets assigned to an owner.\n *\n * @param address - ERC721 asset contract address.\n * @param selectedAddress - Current account public address.\n * @param index - An NFT counter less than `balanceOf(selectedAddress)`.\n * @param networkClientId - Network Client ID to fetch the provider with.\n * @returns Promise resolving to token identifier for the 'index'th asset assigned to 'selectedAddress'.\n */\nexport type AssetsContractControllerGetERC721NftTokenIdAction = {\n type: `AssetsContractController:getERC721NftTokenId`;\n handler: AssetsContractController['getERC721NftTokenId'];\n};\n\n/**\n * Enumerate assets assigned to an owner.\n *\n * @param tokenAddress - ERC721 asset contract address.\n * @param userAddress - Current account public address.\n * @param tokenId - ERC721 asset identifier.\n * @param networkClientId - Network Client ID to fetch the provider with.\n * @returns Promise resolving to an object containing the token standard and a set of details which depend on which standard the token supports.\n */\nexport type AssetsContractControllerGetTokenStandardAndDetailsAction = {\n type: `AssetsContractController:getTokenStandardAndDetails`;\n handler: AssetsContractController['getTokenStandardAndDetails'];\n};\n\n/**\n * Query for tokenURI for a given ERC721 asset.\n *\n * @param address - ERC721 asset contract address.\n * @param tokenId - ERC721 asset identifier.\n * @param networkClientId - Network Client ID to fetch the provider with.\n * @returns Promise resolving to the 'tokenURI'.\n */\nexport type AssetsContractControllerGetERC721TokenURIAction = {\n type: `AssetsContractController:getERC721TokenURI`;\n handler: AssetsContractController['getERC721TokenURI'];\n};\n\n/**\n * Query for name for a given asset.\n *\n * @param address - ERC721 or ERC20 asset contract address.\n * @param networkClientId - Network Client ID to fetch the provider with.\n * @returns Promise resolving to the 'name'.\n */\nexport type AssetsContractControllerGetERC721AssetNameAction = {\n type: `AssetsContractController:getERC721AssetName`;\n handler: AssetsContractController['getERC721AssetName'];\n};\n\n/**\n * Query for symbol for a given asset.\n *\n * @param address - ERC721 or ERC20 asset contract address.\n * @param networkClientId - Network Client ID to fetch the provider with.\n * @returns Promise resolving to the 'symbol'.\n */\nexport type AssetsContractControllerGetERC721AssetSymbolAction = {\n type: `AssetsContractController:getERC721AssetSymbol`;\n handler: AssetsContractController['getERC721AssetSymbol'];\n};\n\n/**\n * Query for owner for a given ERC721 asset.\n *\n * @param address - ERC721 asset contract address.\n * @param tokenId - ERC721 asset identifier.\n * @param networkClientId - Network Client ID to fetch the provider with.\n * @returns Promise resolving to the owner address.\n */\nexport type AssetsContractControllerGetERC721OwnerOfAction = {\n type: `AssetsContractController:getERC721OwnerOf`;\n handler: AssetsContractController['getERC721OwnerOf'];\n};\n\n/**\n * Query for tokenURI for a given asset.\n *\n * @param address - ERC1155 asset contract address.\n * @param tokenId - ERC1155 asset identifier.\n * @param networkClientId - Network Client ID to fetch the provider with.\n * @returns Promise resolving to the 'tokenURI'.\n */\nexport type AssetsContractControllerGetERC1155TokenURIAction = {\n type: `AssetsContractController:getERC1155TokenURI`;\n handler: AssetsContractController['getERC1155TokenURI'];\n};\n\n/**\n * Query for balance of a given ERC 1155 token.\n *\n * @param userAddress - Wallet public address.\n * @param nftAddress - ERC1155 asset contract address.\n * @param nftId - ERC1155 asset identifier.\n * @param networkClientId - Network Client ID to fetch the provider with.\n * @returns Promise resolving to the 'balanceOf'.\n */\nexport type AssetsContractControllerGetERC1155BalanceOfAction = {\n type: `AssetsContractController:getERC1155BalanceOf`;\n handler: AssetsContractController['getERC1155BalanceOf'];\n};\n\n/**\n * Transfer single ERC1155 token.\n *\n * @param nftAddress - ERC1155 token address.\n * @param senderAddress - ERC1155 token sender.\n * @param recipientAddress - ERC1155 token recipient.\n * @param nftId - ERC1155 token id.\n * @param qty - Quantity of tokens to be sent.\n * @param networkClientId - Network Client ID to fetch the provider with.\n * @returns Promise resolving to the 'transferSingle' ERC1155 token.\n */\nexport type AssetsContractControllerTransferSingleERC1155Action = {\n type: `AssetsContractController:transferSingleERC1155`;\n handler: AssetsContractController['transferSingleERC1155'];\n};\n\n/**\n * Get the token balance for a list of token addresses in a single call. Only non-zero balances\n * are returned.\n *\n * @param selectedAddress - The address to check token balances for.\n * @param tokensToDetect - The token addresses to detect balances for.\n * @param networkClientId - Network Client ID to fetch the provider with.\n * @returns The list of non-zero token balances.\n */\nexport type AssetsContractControllerGetBalancesInSingleCallAction = {\n type: `AssetsContractController:getBalancesInSingleCall`;\n handler: AssetsContractController['getBalancesInSingleCall'];\n};\n\n/**\n * Get the staked ethereum balance for multiple addresses in a single call.\n *\n * @param addresses - The addresses to check staked ethereum balance for.\n * @param networkClientId - Network Client ID to fetch the provider with.\n * @returns The hex staked ethereum balance for address.\n */\nexport type AssetsContractControllerGetStakedBalanceForChainAction = {\n type: `AssetsContractController:getStakedBalanceForChain`;\n handler: AssetsContractController['getStakedBalanceForChain'];\n};\n\n/**\n * Union of all AssetsContractController action types.\n */\nexport type AssetsContractControllerMethodActions =\n | AssetsContractControllerGetERC20StandardAction\n | AssetsContractControllerGetERC721StandardAction\n | AssetsContractControllerGetERC1155StandardAction\n | AssetsContractControllerGetERC20BalanceOfAction\n | AssetsContractControllerGetERC20TokenDecimalsAction\n | AssetsContractControllerGetERC20TokenNameAction\n | AssetsContractControllerGetERC721NftTokenIdAction\n | AssetsContractControllerGetTokenStandardAndDetailsAction\n | AssetsContractControllerGetERC721TokenURIAction\n | AssetsContractControllerGetERC721AssetNameAction\n | AssetsContractControllerGetERC721AssetSymbolAction\n | AssetsContractControllerGetERC721OwnerOfAction\n | AssetsContractControllerGetERC1155TokenURIAction\n | AssetsContractControllerGetERC1155BalanceOfAction\n | AssetsContractControllerTransferSingleERC1155Action\n | AssetsContractControllerGetBalancesInSingleCallAction\n | AssetsContractControllerGetStakedBalanceForChainAction;\n"]}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file is auto generated by `scripts/generate-method-action-types.ts`.
2
+ * This file is auto generated.
3
3
  * Do not edit manually.
4
4
  */
5
5
  import type { AssetsContractController } from "./AssetsContractController.cjs";
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file is auto generated by `scripts/generate-method-action-types.ts`.
2
+ * This file is auto generated.
3
3
  * Do not edit manually.
4
4
  */
5
5
  import type { AssetsContractController } from "./AssetsContractController.mjs";
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file is auto generated by `scripts/generate-method-action-types.ts`.
2
+ * This file is auto generated.
3
3
  * Do not edit manually.
4
4
  */
5
5
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"AssetsContractController-method-action-types.mjs","sourceRoot":"","sources":["../src/AssetsContractController-method-action-types.ts"],"names":[],"mappings":"AAAA;;;GAGG","sourcesContent":["/**\n * This file is auto generated by `scripts/generate-method-action-types.ts`.\n * Do not edit manually.\n */\n\nimport type { AssetsContractController } from './AssetsContractController';\n\n/**\n * Get a ERC20Standard instance using the relevant provider instance.\n *\n * @param networkClientId - Network Client ID used to get the provider.\n * @returns ERC20Standard instance.\n */\nexport type AssetsContractControllerGetERC20StandardAction = {\n type: `AssetsContractController:getERC20Standard`;\n handler: AssetsContractController['getERC20Standard'];\n};\n\n/**\n * Get a ERC721Standard instance using the relevant provider instance.\n *\n * @param networkClientId - Network Client ID used to get the provider.\n * @returns ERC721Standard instance.\n */\nexport type AssetsContractControllerGetERC721StandardAction = {\n type: `AssetsContractController:getERC721Standard`;\n handler: AssetsContractController['getERC721Standard'];\n};\n\n/**\n * Get a ERC1155Standard instance using the relevant provider instance.\n *\n * @param networkClientId - Network Client ID used to get the provider.\n * @returns ERC1155Standard instance.\n */\nexport type AssetsContractControllerGetERC1155StandardAction = {\n type: `AssetsContractController:getERC1155Standard`;\n handler: AssetsContractController['getERC1155Standard'];\n};\n\n/**\n * Get balance or count for current account on specific asset contract.\n *\n * @param address - Asset ERC20 contract address.\n * @param selectedAddress - Current account public address.\n * @param networkClientId - Network Client ID to fetch the provider with.\n * @returns Promise resolving to BN object containing balance for current account on specific asset contract.\n */\nexport type AssetsContractControllerGetERC20BalanceOfAction = {\n type: `AssetsContractController:getERC20BalanceOf`;\n handler: AssetsContractController['getERC20BalanceOf'];\n};\n\n/**\n * Query for the decimals for a given ERC20 asset.\n *\n * @param address - ERC20 asset contract address.\n * @param networkClientId - Network Client ID to fetch the provider with.\n * @returns Promise resolving to the 'decimals'.\n */\nexport type AssetsContractControllerGetERC20TokenDecimalsAction = {\n type: `AssetsContractController:getERC20TokenDecimals`;\n handler: AssetsContractController['getERC20TokenDecimals'];\n};\n\n/**\n * Query for the name for a given ERC20 asset.\n *\n * @param address - ERC20 asset contract address.\n * @param networkClientId - Network Client ID to fetch the provider with.\n * @returns Promise resolving to the 'decimals'.\n */\nexport type AssetsContractControllerGetERC20TokenNameAction = {\n type: `AssetsContractController:getERC20TokenName`;\n handler: AssetsContractController['getERC20TokenName'];\n};\n\n/**\n * Enumerate assets assigned to an owner.\n *\n * @param address - ERC721 asset contract address.\n * @param selectedAddress - Current account public address.\n * @param index - An NFT counter less than `balanceOf(selectedAddress)`.\n * @param networkClientId - Network Client ID to fetch the provider with.\n * @returns Promise resolving to token identifier for the 'index'th asset assigned to 'selectedAddress'.\n */\nexport type AssetsContractControllerGetERC721NftTokenIdAction = {\n type: `AssetsContractController:getERC721NftTokenId`;\n handler: AssetsContractController['getERC721NftTokenId'];\n};\n\n/**\n * Enumerate assets assigned to an owner.\n *\n * @param tokenAddress - ERC721 asset contract address.\n * @param userAddress - Current account public address.\n * @param tokenId - ERC721 asset identifier.\n * @param networkClientId - Network Client ID to fetch the provider with.\n * @returns Promise resolving to an object containing the token standard and a set of details which depend on which standard the token supports.\n */\nexport type AssetsContractControllerGetTokenStandardAndDetailsAction = {\n type: `AssetsContractController:getTokenStandardAndDetails`;\n handler: AssetsContractController['getTokenStandardAndDetails'];\n};\n\n/**\n * Query for tokenURI for a given ERC721 asset.\n *\n * @param address - ERC721 asset contract address.\n * @param tokenId - ERC721 asset identifier.\n * @param networkClientId - Network Client ID to fetch the provider with.\n * @returns Promise resolving to the 'tokenURI'.\n */\nexport type AssetsContractControllerGetERC721TokenURIAction = {\n type: `AssetsContractController:getERC721TokenURI`;\n handler: AssetsContractController['getERC721TokenURI'];\n};\n\n/**\n * Query for name for a given asset.\n *\n * @param address - ERC721 or ERC20 asset contract address.\n * @param networkClientId - Network Client ID to fetch the provider with.\n * @returns Promise resolving to the 'name'.\n */\nexport type AssetsContractControllerGetERC721AssetNameAction = {\n type: `AssetsContractController:getERC721AssetName`;\n handler: AssetsContractController['getERC721AssetName'];\n};\n\n/**\n * Query for symbol for a given asset.\n *\n * @param address - ERC721 or ERC20 asset contract address.\n * @param networkClientId - Network Client ID to fetch the provider with.\n * @returns Promise resolving to the 'symbol'.\n */\nexport type AssetsContractControllerGetERC721AssetSymbolAction = {\n type: `AssetsContractController:getERC721AssetSymbol`;\n handler: AssetsContractController['getERC721AssetSymbol'];\n};\n\n/**\n * Query for owner for a given ERC721 asset.\n *\n * @param address - ERC721 asset contract address.\n * @param tokenId - ERC721 asset identifier.\n * @param networkClientId - Network Client ID to fetch the provider with.\n * @returns Promise resolving to the owner address.\n */\nexport type AssetsContractControllerGetERC721OwnerOfAction = {\n type: `AssetsContractController:getERC721OwnerOf`;\n handler: AssetsContractController['getERC721OwnerOf'];\n};\n\n/**\n * Query for tokenURI for a given asset.\n *\n * @param address - ERC1155 asset contract address.\n * @param tokenId - ERC1155 asset identifier.\n * @param networkClientId - Network Client ID to fetch the provider with.\n * @returns Promise resolving to the 'tokenURI'.\n */\nexport type AssetsContractControllerGetERC1155TokenURIAction = {\n type: `AssetsContractController:getERC1155TokenURI`;\n handler: AssetsContractController['getERC1155TokenURI'];\n};\n\n/**\n * Query for balance of a given ERC 1155 token.\n *\n * @param userAddress - Wallet public address.\n * @param nftAddress - ERC1155 asset contract address.\n * @param nftId - ERC1155 asset identifier.\n * @param networkClientId - Network Client ID to fetch the provider with.\n * @returns Promise resolving to the 'balanceOf'.\n */\nexport type AssetsContractControllerGetERC1155BalanceOfAction = {\n type: `AssetsContractController:getERC1155BalanceOf`;\n handler: AssetsContractController['getERC1155BalanceOf'];\n};\n\n/**\n * Transfer single ERC1155 token.\n *\n * @param nftAddress - ERC1155 token address.\n * @param senderAddress - ERC1155 token sender.\n * @param recipientAddress - ERC1155 token recipient.\n * @param nftId - ERC1155 token id.\n * @param qty - Quantity of tokens to be sent.\n * @param networkClientId - Network Client ID to fetch the provider with.\n * @returns Promise resolving to the 'transferSingle' ERC1155 token.\n */\nexport type AssetsContractControllerTransferSingleERC1155Action = {\n type: `AssetsContractController:transferSingleERC1155`;\n handler: AssetsContractController['transferSingleERC1155'];\n};\n\n/**\n * Get the token balance for a list of token addresses in a single call. Only non-zero balances\n * are returned.\n *\n * @param selectedAddress - The address to check token balances for.\n * @param tokensToDetect - The token addresses to detect balances for.\n * @param networkClientId - Network Client ID to fetch the provider with.\n * @returns The list of non-zero token balances.\n */\nexport type AssetsContractControllerGetBalancesInSingleCallAction = {\n type: `AssetsContractController:getBalancesInSingleCall`;\n handler: AssetsContractController['getBalancesInSingleCall'];\n};\n\n/**\n * Get the staked ethereum balance for multiple addresses in a single call.\n *\n * @param addresses - The addresses to check staked ethereum balance for.\n * @param networkClientId - Network Client ID to fetch the provider with.\n * @returns The hex staked ethereum balance for address.\n */\nexport type AssetsContractControllerGetStakedBalanceForChainAction = {\n type: `AssetsContractController:getStakedBalanceForChain`;\n handler: AssetsContractController['getStakedBalanceForChain'];\n};\n\n/**\n * Union of all AssetsContractController action types.\n */\nexport type AssetsContractControllerMethodActions =\n | AssetsContractControllerGetERC20StandardAction\n | AssetsContractControllerGetERC721StandardAction\n | AssetsContractControllerGetERC1155StandardAction\n | AssetsContractControllerGetERC20BalanceOfAction\n | AssetsContractControllerGetERC20TokenDecimalsAction\n | AssetsContractControllerGetERC20TokenNameAction\n | AssetsContractControllerGetERC721NftTokenIdAction\n | AssetsContractControllerGetTokenStandardAndDetailsAction\n | AssetsContractControllerGetERC721TokenURIAction\n | AssetsContractControllerGetERC721AssetNameAction\n | AssetsContractControllerGetERC721AssetSymbolAction\n | AssetsContractControllerGetERC721OwnerOfAction\n | AssetsContractControllerGetERC1155TokenURIAction\n | AssetsContractControllerGetERC1155BalanceOfAction\n | AssetsContractControllerTransferSingleERC1155Action\n | AssetsContractControllerGetBalancesInSingleCallAction\n | AssetsContractControllerGetStakedBalanceForChainAction;\n"]}
1
+ {"version":3,"file":"AssetsContractController-method-action-types.mjs","sourceRoot":"","sources":["../src/AssetsContractController-method-action-types.ts"],"names":[],"mappings":"AAAA;;;GAGG","sourcesContent":["/**\n * This file is auto generated.\n * Do not edit manually.\n */\n\nimport type { AssetsContractController } from './AssetsContractController';\n\n/**\n * Get a ERC20Standard instance using the relevant provider instance.\n *\n * @param networkClientId - Network Client ID used to get the provider.\n * @returns ERC20Standard instance.\n */\nexport type AssetsContractControllerGetERC20StandardAction = {\n type: `AssetsContractController:getERC20Standard`;\n handler: AssetsContractController['getERC20Standard'];\n};\n\n/**\n * Get a ERC721Standard instance using the relevant provider instance.\n *\n * @param networkClientId - Network Client ID used to get the provider.\n * @returns ERC721Standard instance.\n */\nexport type AssetsContractControllerGetERC721StandardAction = {\n type: `AssetsContractController:getERC721Standard`;\n handler: AssetsContractController['getERC721Standard'];\n};\n\n/**\n * Get a ERC1155Standard instance using the relevant provider instance.\n *\n * @param networkClientId - Network Client ID used to get the provider.\n * @returns ERC1155Standard instance.\n */\nexport type AssetsContractControllerGetERC1155StandardAction = {\n type: `AssetsContractController:getERC1155Standard`;\n handler: AssetsContractController['getERC1155Standard'];\n};\n\n/**\n * Get balance or count for current account on specific asset contract.\n *\n * @param address - Asset ERC20 contract address.\n * @param selectedAddress - Current account public address.\n * @param networkClientId - Network Client ID to fetch the provider with.\n * @returns Promise resolving to BN object containing balance for current account on specific asset contract.\n */\nexport type AssetsContractControllerGetERC20BalanceOfAction = {\n type: `AssetsContractController:getERC20BalanceOf`;\n handler: AssetsContractController['getERC20BalanceOf'];\n};\n\n/**\n * Query for the decimals for a given ERC20 asset.\n *\n * @param address - ERC20 asset contract address.\n * @param networkClientId - Network Client ID to fetch the provider with.\n * @returns Promise resolving to the 'decimals'.\n */\nexport type AssetsContractControllerGetERC20TokenDecimalsAction = {\n type: `AssetsContractController:getERC20TokenDecimals`;\n handler: AssetsContractController['getERC20TokenDecimals'];\n};\n\n/**\n * Query for the name for a given ERC20 asset.\n *\n * @param address - ERC20 asset contract address.\n * @param networkClientId - Network Client ID to fetch the provider with.\n * @returns Promise resolving to the 'decimals'.\n */\nexport type AssetsContractControllerGetERC20TokenNameAction = {\n type: `AssetsContractController:getERC20TokenName`;\n handler: AssetsContractController['getERC20TokenName'];\n};\n\n/**\n * Enumerate assets assigned to an owner.\n *\n * @param address - ERC721 asset contract address.\n * @param selectedAddress - Current account public address.\n * @param index - An NFT counter less than `balanceOf(selectedAddress)`.\n * @param networkClientId - Network Client ID to fetch the provider with.\n * @returns Promise resolving to token identifier for the 'index'th asset assigned to 'selectedAddress'.\n */\nexport type AssetsContractControllerGetERC721NftTokenIdAction = {\n type: `AssetsContractController:getERC721NftTokenId`;\n handler: AssetsContractController['getERC721NftTokenId'];\n};\n\n/**\n * Enumerate assets assigned to an owner.\n *\n * @param tokenAddress - ERC721 asset contract address.\n * @param userAddress - Current account public address.\n * @param tokenId - ERC721 asset identifier.\n * @param networkClientId - Network Client ID to fetch the provider with.\n * @returns Promise resolving to an object containing the token standard and a set of details which depend on which standard the token supports.\n */\nexport type AssetsContractControllerGetTokenStandardAndDetailsAction = {\n type: `AssetsContractController:getTokenStandardAndDetails`;\n handler: AssetsContractController['getTokenStandardAndDetails'];\n};\n\n/**\n * Query for tokenURI for a given ERC721 asset.\n *\n * @param address - ERC721 asset contract address.\n * @param tokenId - ERC721 asset identifier.\n * @param networkClientId - Network Client ID to fetch the provider with.\n * @returns Promise resolving to the 'tokenURI'.\n */\nexport type AssetsContractControllerGetERC721TokenURIAction = {\n type: `AssetsContractController:getERC721TokenURI`;\n handler: AssetsContractController['getERC721TokenURI'];\n};\n\n/**\n * Query for name for a given asset.\n *\n * @param address - ERC721 or ERC20 asset contract address.\n * @param networkClientId - Network Client ID to fetch the provider with.\n * @returns Promise resolving to the 'name'.\n */\nexport type AssetsContractControllerGetERC721AssetNameAction = {\n type: `AssetsContractController:getERC721AssetName`;\n handler: AssetsContractController['getERC721AssetName'];\n};\n\n/**\n * Query for symbol for a given asset.\n *\n * @param address - ERC721 or ERC20 asset contract address.\n * @param networkClientId - Network Client ID to fetch the provider with.\n * @returns Promise resolving to the 'symbol'.\n */\nexport type AssetsContractControllerGetERC721AssetSymbolAction = {\n type: `AssetsContractController:getERC721AssetSymbol`;\n handler: AssetsContractController['getERC721AssetSymbol'];\n};\n\n/**\n * Query for owner for a given ERC721 asset.\n *\n * @param address - ERC721 asset contract address.\n * @param tokenId - ERC721 asset identifier.\n * @param networkClientId - Network Client ID to fetch the provider with.\n * @returns Promise resolving to the owner address.\n */\nexport type AssetsContractControllerGetERC721OwnerOfAction = {\n type: `AssetsContractController:getERC721OwnerOf`;\n handler: AssetsContractController['getERC721OwnerOf'];\n};\n\n/**\n * Query for tokenURI for a given asset.\n *\n * @param address - ERC1155 asset contract address.\n * @param tokenId - ERC1155 asset identifier.\n * @param networkClientId - Network Client ID to fetch the provider with.\n * @returns Promise resolving to the 'tokenURI'.\n */\nexport type AssetsContractControllerGetERC1155TokenURIAction = {\n type: `AssetsContractController:getERC1155TokenURI`;\n handler: AssetsContractController['getERC1155TokenURI'];\n};\n\n/**\n * Query for balance of a given ERC 1155 token.\n *\n * @param userAddress - Wallet public address.\n * @param nftAddress - ERC1155 asset contract address.\n * @param nftId - ERC1155 asset identifier.\n * @param networkClientId - Network Client ID to fetch the provider with.\n * @returns Promise resolving to the 'balanceOf'.\n */\nexport type AssetsContractControllerGetERC1155BalanceOfAction = {\n type: `AssetsContractController:getERC1155BalanceOf`;\n handler: AssetsContractController['getERC1155BalanceOf'];\n};\n\n/**\n * Transfer single ERC1155 token.\n *\n * @param nftAddress - ERC1155 token address.\n * @param senderAddress - ERC1155 token sender.\n * @param recipientAddress - ERC1155 token recipient.\n * @param nftId - ERC1155 token id.\n * @param qty - Quantity of tokens to be sent.\n * @param networkClientId - Network Client ID to fetch the provider with.\n * @returns Promise resolving to the 'transferSingle' ERC1155 token.\n */\nexport type AssetsContractControllerTransferSingleERC1155Action = {\n type: `AssetsContractController:transferSingleERC1155`;\n handler: AssetsContractController['transferSingleERC1155'];\n};\n\n/**\n * Get the token balance for a list of token addresses in a single call. Only non-zero balances\n * are returned.\n *\n * @param selectedAddress - The address to check token balances for.\n * @param tokensToDetect - The token addresses to detect balances for.\n * @param networkClientId - Network Client ID to fetch the provider with.\n * @returns The list of non-zero token balances.\n */\nexport type AssetsContractControllerGetBalancesInSingleCallAction = {\n type: `AssetsContractController:getBalancesInSingleCall`;\n handler: AssetsContractController['getBalancesInSingleCall'];\n};\n\n/**\n * Get the staked ethereum balance for multiple addresses in a single call.\n *\n * @param addresses - The addresses to check staked ethereum balance for.\n * @param networkClientId - Network Client ID to fetch the provider with.\n * @returns The hex staked ethereum balance for address.\n */\nexport type AssetsContractControllerGetStakedBalanceForChainAction = {\n type: `AssetsContractController:getStakedBalanceForChain`;\n handler: AssetsContractController['getStakedBalanceForChain'];\n};\n\n/**\n * Union of all AssetsContractController action types.\n */\nexport type AssetsContractControllerMethodActions =\n | AssetsContractControllerGetERC20StandardAction\n | AssetsContractControllerGetERC721StandardAction\n | AssetsContractControllerGetERC1155StandardAction\n | AssetsContractControllerGetERC20BalanceOfAction\n | AssetsContractControllerGetERC20TokenDecimalsAction\n | AssetsContractControllerGetERC20TokenNameAction\n | AssetsContractControllerGetERC721NftTokenIdAction\n | AssetsContractControllerGetTokenStandardAndDetailsAction\n | AssetsContractControllerGetERC721TokenURIAction\n | AssetsContractControllerGetERC721AssetNameAction\n | AssetsContractControllerGetERC721AssetSymbolAction\n | AssetsContractControllerGetERC721OwnerOfAction\n | AssetsContractControllerGetERC1155TokenURIAction\n | AssetsContractControllerGetERC1155BalanceOfAction\n | AssetsContractControllerTransferSingleERC1155Action\n | AssetsContractControllerGetBalancesInSingleCallAction\n | AssetsContractControllerGetStakedBalanceForChainAction;\n"]}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /**
3
- * This file is auto generated by `scripts/generate-method-action-types.ts`.
3
+ * This file is auto generated.
4
4
  * Do not edit manually.
5
5
  */
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +1 @@
1
- {"version":3,"file":"MultichainAssetsController-method-action-types.cjs","sourceRoot":"","sources":["../../src/MultichainAssetsController/MultichainAssetsController-method-action-types.ts"],"names":[],"mappings":";AAAA;;;GAGG","sourcesContent":["/**\n * This file is auto generated by `scripts/generate-method-action-types.ts`.\n * Do not edit manually.\n */\n\nimport type { MultichainAssetsController } from './MultichainAssetsController';\n\n/**\n * Returns the metadata for the given asset\n *\n * @param asset - The asset to get metadata for\n * @returns The metadata for the asset or undefined if not found.\n */\nexport type MultichainAssetsControllerGetAssetMetadataAction = {\n type: `MultichainAssetsController:getAssetMetadata`;\n handler: MultichainAssetsController['getAssetMetadata'];\n};\n\n/**\n * Ignores a batch of assets for a specific account.\n *\n * @param assetsToIgnore - Array of asset IDs to ignore.\n * @param accountId - The account ID to ignore assets for.\n */\nexport type MultichainAssetsControllerIgnoreAssetsAction = {\n type: `MultichainAssetsController:ignoreAssets`;\n handler: MultichainAssetsController['ignoreAssets'];\n};\n\n/**\n * Adds multiple assets to the stored asset list for a specific account.\n * All assets must belong to the same chain.\n *\n * @param assetIds - Array of CAIP asset IDs to add (must be from same chain).\n * @param accountId - The account ID to add the assets to.\n * @returns The updated asset list for the account.\n * @throws Error if assets are from different chains.\n */\nexport type MultichainAssetsControllerAddAssetsAction = {\n type: `MultichainAssetsController:addAssets`;\n handler: MultichainAssetsController['addAssets'];\n};\n\n/**\n * Union of all MultichainAssetsController action types.\n */\nexport type MultichainAssetsControllerMethodActions =\n | MultichainAssetsControllerGetAssetMetadataAction\n | MultichainAssetsControllerIgnoreAssetsAction\n | MultichainAssetsControllerAddAssetsAction;\n"]}
1
+ {"version":3,"file":"MultichainAssetsController-method-action-types.cjs","sourceRoot":"","sources":["../../src/MultichainAssetsController/MultichainAssetsController-method-action-types.ts"],"names":[],"mappings":";AAAA;;;GAGG","sourcesContent":["/**\n * This file is auto generated.\n * Do not edit manually.\n */\n\nimport type { MultichainAssetsController } from './MultichainAssetsController';\n\n/**\n * Returns the metadata for the given asset\n *\n * @param asset - The asset to get metadata for\n * @returns The metadata for the asset or undefined if not found.\n */\nexport type MultichainAssetsControllerGetAssetMetadataAction = {\n type: `MultichainAssetsController:getAssetMetadata`;\n handler: MultichainAssetsController['getAssetMetadata'];\n};\n\n/**\n * Ignores a batch of assets for a specific account.\n *\n * @param assetsToIgnore - Array of asset IDs to ignore.\n * @param accountId - The account ID to ignore assets for.\n */\nexport type MultichainAssetsControllerIgnoreAssetsAction = {\n type: `MultichainAssetsController:ignoreAssets`;\n handler: MultichainAssetsController['ignoreAssets'];\n};\n\n/**\n * Adds multiple assets to the stored asset list for a specific account.\n * All assets must belong to the same chain.\n *\n * @param assetIds - Array of CAIP asset IDs to add (must be from same chain).\n * @param accountId - The account ID to add the assets to.\n * @returns The updated asset list for the account.\n * @throws Error if assets are from different chains.\n */\nexport type MultichainAssetsControllerAddAssetsAction = {\n type: `MultichainAssetsController:addAssets`;\n handler: MultichainAssetsController['addAssets'];\n};\n\n/**\n * Union of all MultichainAssetsController action types.\n */\nexport type MultichainAssetsControllerMethodActions =\n | MultichainAssetsControllerGetAssetMetadataAction\n | MultichainAssetsControllerIgnoreAssetsAction\n | MultichainAssetsControllerAddAssetsAction;\n"]}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file is auto generated by `scripts/generate-method-action-types.ts`.
2
+ * This file is auto generated.
3
3
  * Do not edit manually.
4
4
  */
5
5
  import type { MultichainAssetsController } from "./MultichainAssetsController.cjs";
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file is auto generated by `scripts/generate-method-action-types.ts`.
2
+ * This file is auto generated.
3
3
  * Do not edit manually.
4
4
  */
5
5
  import type { MultichainAssetsController } from "./MultichainAssetsController.mjs";
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file is auto generated by `scripts/generate-method-action-types.ts`.
2
+ * This file is auto generated.
3
3
  * Do not edit manually.
4
4
  */
5
5
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"MultichainAssetsController-method-action-types.mjs","sourceRoot":"","sources":["../../src/MultichainAssetsController/MultichainAssetsController-method-action-types.ts"],"names":[],"mappings":"AAAA;;;GAGG","sourcesContent":["/**\n * This file is auto generated by `scripts/generate-method-action-types.ts`.\n * Do not edit manually.\n */\n\nimport type { MultichainAssetsController } from './MultichainAssetsController';\n\n/**\n * Returns the metadata for the given asset\n *\n * @param asset - The asset to get metadata for\n * @returns The metadata for the asset or undefined if not found.\n */\nexport type MultichainAssetsControllerGetAssetMetadataAction = {\n type: `MultichainAssetsController:getAssetMetadata`;\n handler: MultichainAssetsController['getAssetMetadata'];\n};\n\n/**\n * Ignores a batch of assets for a specific account.\n *\n * @param assetsToIgnore - Array of asset IDs to ignore.\n * @param accountId - The account ID to ignore assets for.\n */\nexport type MultichainAssetsControllerIgnoreAssetsAction = {\n type: `MultichainAssetsController:ignoreAssets`;\n handler: MultichainAssetsController['ignoreAssets'];\n};\n\n/**\n * Adds multiple assets to the stored asset list for a specific account.\n * All assets must belong to the same chain.\n *\n * @param assetIds - Array of CAIP asset IDs to add (must be from same chain).\n * @param accountId - The account ID to add the assets to.\n * @returns The updated asset list for the account.\n * @throws Error if assets are from different chains.\n */\nexport type MultichainAssetsControllerAddAssetsAction = {\n type: `MultichainAssetsController:addAssets`;\n handler: MultichainAssetsController['addAssets'];\n};\n\n/**\n * Union of all MultichainAssetsController action types.\n */\nexport type MultichainAssetsControllerMethodActions =\n | MultichainAssetsControllerGetAssetMetadataAction\n | MultichainAssetsControllerIgnoreAssetsAction\n | MultichainAssetsControllerAddAssetsAction;\n"]}
1
+ {"version":3,"file":"MultichainAssetsController-method-action-types.mjs","sourceRoot":"","sources":["../../src/MultichainAssetsController/MultichainAssetsController-method-action-types.ts"],"names":[],"mappings":"AAAA;;;GAGG","sourcesContent":["/**\n * This file is auto generated.\n * Do not edit manually.\n */\n\nimport type { MultichainAssetsController } from './MultichainAssetsController';\n\n/**\n * Returns the metadata for the given asset\n *\n * @param asset - The asset to get metadata for\n * @returns The metadata for the asset or undefined if not found.\n */\nexport type MultichainAssetsControllerGetAssetMetadataAction = {\n type: `MultichainAssetsController:getAssetMetadata`;\n handler: MultichainAssetsController['getAssetMetadata'];\n};\n\n/**\n * Ignores a batch of assets for a specific account.\n *\n * @param assetsToIgnore - Array of asset IDs to ignore.\n * @param accountId - The account ID to ignore assets for.\n */\nexport type MultichainAssetsControllerIgnoreAssetsAction = {\n type: `MultichainAssetsController:ignoreAssets`;\n handler: MultichainAssetsController['ignoreAssets'];\n};\n\n/**\n * Adds multiple assets to the stored asset list for a specific account.\n * All assets must belong to the same chain.\n *\n * @param assetIds - Array of CAIP asset IDs to add (must be from same chain).\n * @param accountId - The account ID to add the assets to.\n * @returns The updated asset list for the account.\n * @throws Error if assets are from different chains.\n */\nexport type MultichainAssetsControllerAddAssetsAction = {\n type: `MultichainAssetsController:addAssets`;\n handler: MultichainAssetsController['addAssets'];\n};\n\n/**\n * Union of all MultichainAssetsController action types.\n */\nexport type MultichainAssetsControllerMethodActions =\n | MultichainAssetsControllerGetAssetMetadataAction\n | MultichainAssetsControllerIgnoreAssetsAction\n | MultichainAssetsControllerAddAssetsAction;\n"]}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /**
3
- * This file is auto generated by `scripts/generate-method-action-types.ts`.
3
+ * This file is auto generated.
4
4
  * Do not edit manually.
5
5
  */
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +1 @@
1
- {"version":3,"file":"MultichainAssetsRatesController-method-action-types.cjs","sourceRoot":"","sources":["../../src/MultichainAssetsRatesController/MultichainAssetsRatesController-method-action-types.ts"],"names":[],"mappings":";AAAA;;;GAGG","sourcesContent":["/**\n * This file is auto generated by `scripts/generate-method-action-types.ts`.\n * Do not edit manually.\n */\n\nimport type { MultichainAssetsRatesController } from './MultichainAssetsRatesController';\n\n/**\n * Updates token conversion rates for each non-EVM account.\n *\n * @returns A promise that resolves when the rates are updated.\n */\nexport type MultichainAssetsRatesControllerUpdateAssetsRatesAction = {\n type: `MultichainAssetsRatesController:updateAssetsRates`;\n handler: MultichainAssetsRatesController['updateAssetsRates'];\n};\n\n/**\n * Fetches historical prices for the current account\n *\n * @param asset - The asset to fetch historical prices for.\n * @param account - optional account to fetch historical prices for\n * @returns The historical prices.\n */\nexport type MultichainAssetsRatesControllerFetchHistoricalPricesForAssetAction =\n {\n type: `MultichainAssetsRatesController:fetchHistoricalPricesForAsset`;\n handler: MultichainAssetsRatesController['fetchHistoricalPricesForAsset'];\n };\n\n/**\n * Union of all MultichainAssetsRatesController action types.\n */\nexport type MultichainAssetsRatesControllerMethodActions =\n | MultichainAssetsRatesControllerUpdateAssetsRatesAction\n | MultichainAssetsRatesControllerFetchHistoricalPricesForAssetAction;\n"]}
1
+ {"version":3,"file":"MultichainAssetsRatesController-method-action-types.cjs","sourceRoot":"","sources":["../../src/MultichainAssetsRatesController/MultichainAssetsRatesController-method-action-types.ts"],"names":[],"mappings":";AAAA;;;GAGG","sourcesContent":["/**\n * This file is auto generated.\n * Do not edit manually.\n */\n\nimport type { MultichainAssetsRatesController } from './MultichainAssetsRatesController';\n\n/**\n * Updates token conversion rates for each non-EVM account.\n *\n * @returns A promise that resolves when the rates are updated.\n */\nexport type MultichainAssetsRatesControllerUpdateAssetsRatesAction = {\n type: `MultichainAssetsRatesController:updateAssetsRates`;\n handler: MultichainAssetsRatesController['updateAssetsRates'];\n};\n\n/**\n * Fetches historical prices for the current account\n *\n * @param asset - The asset to fetch historical prices for.\n * @param account - optional account to fetch historical prices for\n * @returns The historical prices.\n */\nexport type MultichainAssetsRatesControllerFetchHistoricalPricesForAssetAction =\n {\n type: `MultichainAssetsRatesController:fetchHistoricalPricesForAsset`;\n handler: MultichainAssetsRatesController['fetchHistoricalPricesForAsset'];\n };\n\n/**\n * Union of all MultichainAssetsRatesController action types.\n */\nexport type MultichainAssetsRatesControllerMethodActions =\n | MultichainAssetsRatesControllerUpdateAssetsRatesAction\n | MultichainAssetsRatesControllerFetchHistoricalPricesForAssetAction;\n"]}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file is auto generated by `scripts/generate-method-action-types.ts`.
2
+ * This file is auto generated.
3
3
  * Do not edit manually.
4
4
  */
5
5
  import type { MultichainAssetsRatesController } from "./MultichainAssetsRatesController.cjs";
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file is auto generated by `scripts/generate-method-action-types.ts`.
2
+ * This file is auto generated.
3
3
  * Do not edit manually.
4
4
  */
5
5
  import type { MultichainAssetsRatesController } from "./MultichainAssetsRatesController.mjs";
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file is auto generated by `scripts/generate-method-action-types.ts`.
2
+ * This file is auto generated.
3
3
  * Do not edit manually.
4
4
  */
5
5
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"MultichainAssetsRatesController-method-action-types.mjs","sourceRoot":"","sources":["../../src/MultichainAssetsRatesController/MultichainAssetsRatesController-method-action-types.ts"],"names":[],"mappings":"AAAA;;;GAGG","sourcesContent":["/**\n * This file is auto generated by `scripts/generate-method-action-types.ts`.\n * Do not edit manually.\n */\n\nimport type { MultichainAssetsRatesController } from './MultichainAssetsRatesController';\n\n/**\n * Updates token conversion rates for each non-EVM account.\n *\n * @returns A promise that resolves when the rates are updated.\n */\nexport type MultichainAssetsRatesControllerUpdateAssetsRatesAction = {\n type: `MultichainAssetsRatesController:updateAssetsRates`;\n handler: MultichainAssetsRatesController['updateAssetsRates'];\n};\n\n/**\n * Fetches historical prices for the current account\n *\n * @param asset - The asset to fetch historical prices for.\n * @param account - optional account to fetch historical prices for\n * @returns The historical prices.\n */\nexport type MultichainAssetsRatesControllerFetchHistoricalPricesForAssetAction =\n {\n type: `MultichainAssetsRatesController:fetchHistoricalPricesForAsset`;\n handler: MultichainAssetsRatesController['fetchHistoricalPricesForAsset'];\n };\n\n/**\n * Union of all MultichainAssetsRatesController action types.\n */\nexport type MultichainAssetsRatesControllerMethodActions =\n | MultichainAssetsRatesControllerUpdateAssetsRatesAction\n | MultichainAssetsRatesControllerFetchHistoricalPricesForAssetAction;\n"]}
1
+ {"version":3,"file":"MultichainAssetsRatesController-method-action-types.mjs","sourceRoot":"","sources":["../../src/MultichainAssetsRatesController/MultichainAssetsRatesController-method-action-types.ts"],"names":[],"mappings":"AAAA;;;GAGG","sourcesContent":["/**\n * This file is auto generated.\n * Do not edit manually.\n */\n\nimport type { MultichainAssetsRatesController } from './MultichainAssetsRatesController';\n\n/**\n * Updates token conversion rates for each non-EVM account.\n *\n * @returns A promise that resolves when the rates are updated.\n */\nexport type MultichainAssetsRatesControllerUpdateAssetsRatesAction = {\n type: `MultichainAssetsRatesController:updateAssetsRates`;\n handler: MultichainAssetsRatesController['updateAssetsRates'];\n};\n\n/**\n * Fetches historical prices for the current account\n *\n * @param asset - The asset to fetch historical prices for.\n * @param account - optional account to fetch historical prices for\n * @returns The historical prices.\n */\nexport type MultichainAssetsRatesControllerFetchHistoricalPricesForAssetAction =\n {\n type: `MultichainAssetsRatesController:fetchHistoricalPricesForAsset`;\n handler: MultichainAssetsRatesController['fetchHistoricalPricesForAsset'];\n };\n\n/**\n * Union of all MultichainAssetsRatesController action types.\n */\nexport type MultichainAssetsRatesControllerMethodActions =\n | MultichainAssetsRatesControllerUpdateAssetsRatesAction\n | MultichainAssetsRatesControllerFetchHistoricalPricesForAssetAction;\n"]}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /**
3
- * This file is auto generated by `scripts/generate-method-action-types.ts`.
3
+ * This file is auto generated.
4
4
  * Do not edit manually.
5
5
  */
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +1 @@
1
- {"version":3,"file":"TokenBalancesController-method-action-types.cjs","sourceRoot":"","sources":["../src/TokenBalancesController-method-action-types.ts"],"names":[],"mappings":";AAAA;;;GAGG","sourcesContent":["/**\n * This file is auto generated by `scripts/generate-method-action-types.ts`.\n * Do not edit manually.\n */\n\nimport type { TokenBalancesController } from './TokenBalancesController';\n\nexport type TokenBalancesControllerGetChainPollingConfigAction = {\n type: `TokenBalancesController:getChainPollingConfig`;\n handler: TokenBalancesController['getChainPollingConfig'];\n};\n\nexport type TokenBalancesControllerUpdateChainPollingConfigsAction = {\n type: `TokenBalancesController:updateChainPollingConfigs`;\n handler: TokenBalancesController['updateChainPollingConfigs'];\n};\n\n/**\n * Union of all TokenBalancesController action types.\n */\nexport type TokenBalancesControllerMethodActions =\n | TokenBalancesControllerGetChainPollingConfigAction\n | TokenBalancesControllerUpdateChainPollingConfigsAction;\n"]}
1
+ {"version":3,"file":"TokenBalancesController-method-action-types.cjs","sourceRoot":"","sources":["../src/TokenBalancesController-method-action-types.ts"],"names":[],"mappings":";AAAA;;;GAGG","sourcesContent":["/**\n * This file is auto generated.\n * Do not edit manually.\n */\n\nimport type { TokenBalancesController } from './TokenBalancesController';\n\nexport type TokenBalancesControllerGetChainPollingConfigAction = {\n type: `TokenBalancesController:getChainPollingConfig`;\n handler: TokenBalancesController['getChainPollingConfig'];\n};\n\nexport type TokenBalancesControllerUpdateChainPollingConfigsAction = {\n type: `TokenBalancesController:updateChainPollingConfigs`;\n handler: TokenBalancesController['updateChainPollingConfigs'];\n};\n\n/**\n * Union of all TokenBalancesController action types.\n */\nexport type TokenBalancesControllerMethodActions =\n | TokenBalancesControllerGetChainPollingConfigAction\n | TokenBalancesControllerUpdateChainPollingConfigsAction;\n"]}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file is auto generated by `scripts/generate-method-action-types.ts`.
2
+ * This file is auto generated.
3
3
  * Do not edit manually.
4
4
  */
5
5
  import type { TokenBalancesController } from "./TokenBalancesController.cjs";
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file is auto generated by `scripts/generate-method-action-types.ts`.
2
+ * This file is auto generated.
3
3
  * Do not edit manually.
4
4
  */
5
5
  import type { TokenBalancesController } from "./TokenBalancesController.mjs";
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file is auto generated by `scripts/generate-method-action-types.ts`.
2
+ * This file is auto generated.
3
3
  * Do not edit manually.
4
4
  */
5
5
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"TokenBalancesController-method-action-types.mjs","sourceRoot":"","sources":["../src/TokenBalancesController-method-action-types.ts"],"names":[],"mappings":"AAAA;;;GAGG","sourcesContent":["/**\n * This file is auto generated by `scripts/generate-method-action-types.ts`.\n * Do not edit manually.\n */\n\nimport type { TokenBalancesController } from './TokenBalancesController';\n\nexport type TokenBalancesControllerGetChainPollingConfigAction = {\n type: `TokenBalancesController:getChainPollingConfig`;\n handler: TokenBalancesController['getChainPollingConfig'];\n};\n\nexport type TokenBalancesControllerUpdateChainPollingConfigsAction = {\n type: `TokenBalancesController:updateChainPollingConfigs`;\n handler: TokenBalancesController['updateChainPollingConfigs'];\n};\n\n/**\n * Union of all TokenBalancesController action types.\n */\nexport type TokenBalancesControllerMethodActions =\n | TokenBalancesControllerGetChainPollingConfigAction\n | TokenBalancesControllerUpdateChainPollingConfigsAction;\n"]}
1
+ {"version":3,"file":"TokenBalancesController-method-action-types.mjs","sourceRoot":"","sources":["../src/TokenBalancesController-method-action-types.ts"],"names":[],"mappings":"AAAA;;;GAGG","sourcesContent":["/**\n * This file is auto generated.\n * Do not edit manually.\n */\n\nimport type { TokenBalancesController } from './TokenBalancesController';\n\nexport type TokenBalancesControllerGetChainPollingConfigAction = {\n type: `TokenBalancesController:getChainPollingConfig`;\n handler: TokenBalancesController['getChainPollingConfig'];\n};\n\nexport type TokenBalancesControllerUpdateChainPollingConfigsAction = {\n type: `TokenBalancesController:updateChainPollingConfigs`;\n handler: TokenBalancesController['updateChainPollingConfigs'];\n};\n\n/**\n * Union of all TokenBalancesController action types.\n */\nexport type TokenBalancesControllerMethodActions =\n | TokenBalancesControllerGetChainPollingConfigAction\n | TokenBalancesControllerUpdateChainPollingConfigsAction;\n"]}
@@ -804,18 +804,30 @@ async function _TokenBalancesController_importUntrackedTokens(balances) {
804
804
  if (!changes.length) {
805
805
  return;
806
806
  }
807
- const chainConfigs = {};
808
- for (const [chainId, status] of changes) {
809
- const hexChainId = (0, exports.caipChainIdToHex)(chainId);
810
- chainConfigs[hexChainId] =
811
- status === 'down'
812
- ? { interval: __classPrivateFieldGet(this, _TokenBalancesController_defaultInterval, "f") }
813
- : { interval: __classPrivateFieldGet(this, _TokenBalancesController_websocketActivePollingInterval, "f") };
814
- }
815
- const jitterDelay = Math.random() * __classPrivateFieldGet(this, _TokenBalancesController_defaultInterval, "f");
816
- setTimeout(() => {
817
- this.updateChainPollingConfigs(chainConfigs, { immediateUpdate: true });
818
- }, jitterDelay);
807
+ try {
808
+ const chainConfigs = {};
809
+ for (const [chainId, status] of changes) {
810
+ if ((0, utils_1.isCaipChainId)(chainId) &&
811
+ (0, utils_1.parseCaipChainId)(chainId).namespace !== 'eip155') {
812
+ continue;
813
+ }
814
+ const hexChainId = (0, exports.caipChainIdToHex)(chainId);
815
+ chainConfigs[hexChainId] =
816
+ status === 'down'
817
+ ? { interval: __classPrivateFieldGet(this, _TokenBalancesController_defaultInterval, "f") }
818
+ : { interval: __classPrivateFieldGet(this, _TokenBalancesController_websocketActivePollingInterval, "f") };
819
+ }
820
+ if (Object.keys(chainConfigs).length === 0) {
821
+ return;
822
+ }
823
+ const jitterDelay = Math.random() * __classPrivateFieldGet(this, _TokenBalancesController_defaultInterval, "f");
824
+ setTimeout(() => {
825
+ this.updateChainPollingConfigs(chainConfigs, { immediateUpdate: true });
826
+ }, jitterDelay);
827
+ }
828
+ catch (error) {
829
+ console.warn('Error processing accumulated status changes:', error);
830
+ }
819
831
  };
820
832
  exports.default = TokenBalancesController;
821
833
  //# sourceMappingURL=TokenBalancesController.cjs.map