require(`../_virtual/_rolldown/runtime.cjs`);const e=require(`../types/ethereum-network.types.cjs`),t=require(`../functions/utils/serialize.utils.cjs`),n=require(`./chains.constants.cjs`),r=require(`../externalABIs/ERC20.json.cjs`),i=require(`../externalABIs/IQuoterV2.json.cjs`),a=require(`../externalABIs/IUniswapV3Factory.json.cjs`),o=require(`../externalABIs/index.cjs`),s=require(`../externalABIs/IUniswapV3Pool.json.cjs`),c=require(`../externalABIs/UniswapV2PoolAbi.json.cjs`);let l=require(`ethers`);var u={abi:a.default.abi},d={abi:s.default.abi},f={abi:c.default.abi},p={abi:i.default.abi},m={[e.ContractType.HinkalContract]:e=>({abi:e.hinkalABI,address:e.hinkalAddress}),[e.ContractType.HinkalHelperContract]:e=>({abi:e.hinkalHelperABI,address:e.hinkalHelperAddress}),[e.ContractType.MerkleTreeContract]:()=>({abi:[`function getRootHash() public view returns (uint256)`]}),[e.ContractType.UniswapV3FactoryContract]:()=>({abi:u.abi}),[e.ContractType.UniswapV3PoolContract]:()=>({abi:d.abi}),[e.ContractType.UniswapV2PoolContract]:()=>({abi:f.abi}),[e.ContractType.UniswapV3QuoterContract]:()=>({abi:p.abi}),[e.ContractType.ERC20Contract]:()=>({abi:r.default.abi}),[e.ContractType.ERC721Contract]:()=>({abi:o.ERC721ABI}),[e.ContractType.ERC1155Contract]:()=>({abi:o.ERC1155ABI}),[e.ContractType.WATokenContract]:e=>({abi:e.waTokenABI}),[e.ContractType.ContractWithNonces]:()=>({abi:[`function nonces(address owner) external view returns (uint)`]}),[e.ContractType.PermitterContract]:e=>({abi:e.permitterABI,address:e.permitterAddress}),[e.ContractType.OneInchExternalActionContract]:e=>({address:e.oneInchExternalActionInstanceAddress}),[e.ContractType.HinkalWrapper]:e=>({abi:e.hinkalWrapperABI,address:e.hinkalWrapperAddress}),[e.ContractType.HinkalWrapper2]:e=>({abi:e.HinkalWrapper2ABI??e.hinkalWrapperABI,address:e.hinkalWrapper2Address??e.hinkalWrapperAddress}),[e.ContractType.DepositOnChainUtxos]:e=>({abi:e.depositOnChainUtxosExternalActionABI,address:e.depositOnChainUtxosExternalActionAddress})},h=e=>{let{contractData:r}=n.networkRegistry[n.getNonLocalhostChainId(e)],i=t.safeJsonStringify(r.hinkalABI),a=new l.ethers.Interface(i);return{hinkalInterface:a,transactMethodId:a.getFunction(`transact`)?.selector,transactWithExternalActionMethodId:a.getFunction(`transactWithExternalAction`)?.selector,NewCommitment:`NewCommitment`,NewCommitmentTopic:`0xc2e3bd2d00c3cf4d09298e5a0cfd317cf7a6e5bf15d467cfa805a91e1a4a221d`}};exports.contractMetadataMapping=m,exports.getHinkalParameters=h,exports.uniswapV2PoolData=f,exports.uniswapV3FactoryData=u,exports.uniswapV3PoolData=d,exports.uniswapV3QuoterData=p;