{"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"]}