// This file was autogenerated by hardhat-viem, do not edit it. // prettier-ignore // tslint:disable // eslint-disable import type { Address } from "viem"; import type { GetContractReturnType } from "@nomicfoundation/hardhat-viem/types"; import "@nomicfoundation/hardhat-viem/types"; export interface IMiscModule$Type { "_format": "hh-sol-artifact-1", "contractName": "IMiscModule", "sourceName": "contracts/interfaces/IMiscModule.sol", "abi": [ { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "AMMId", "name": "ammId", "type": "uint24" }, { "indexed": false, "internalType": "MarketAcc", "name": "amm", "type": "bytes26" } ], "name": "AMMIdToAccUpdated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "address", "name": "relayer", "type": "address" }, { "indexed": false, "internalType": "bool", "name": "allowed", "type": "bool" } ], "name": "AllowedRelayerUpdated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "TokenId", "name": "tokenId", "type": "uint16" } ], "name": "ApprovedMarketHubInf", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "newMaxIteration", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "newEps", "type": "uint256" } ], "name": "MaxIterationAndEpsUpdated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint16", "name": "newNumTicksToTryAtOnce", "type": "uint16" } ], "name": "NumTicksToTryAtOnceUpdated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "index", "type": "uint256" }, { "indexed": false, "internalType": "bytes4", "name": "errorSelector", "type": "bytes4" } ], "name": "TryAggregateCallFailed", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "index", "type": "uint256" } ], "name": "TryAggregateCallSucceeded", "type": "event" }, { "inputs": [ { "internalType": "AMMId", "name": "ammId", "type": "uint24" } ], "name": "ammIdToAcc", "outputs": [ { "internalType": "MarketAcc", "name": "", "type": "bytes26" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "TokenId", "name": "tokenId", "type": "uint16" } ], "name": "approveMarketHubInf", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "components": [ { "internalType": "Account", "name": "account", "type": "bytes21" }, { "internalType": "address", "name": "target", "type": "address" }, { "internalType": "bytes", "name": "data", "type": "bytes" } ], "internalType": "struct IMiscModule.SimulateData[]", "name": "calls", "type": "tuple[]" } ], "name": "batchRevert", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "components": [ { "internalType": "Account", "name": "account", "type": "bytes21" }, { "internalType": "address", "name": "target", "type": "address" }, { "internalType": "bytes", "name": "data", "type": "bytes" } ], "internalType": "struct IMiscModule.SimulateData[]", "name": "calls", "type": "tuple[]" } ], "name": "batchSimulate", "outputs": [ { "internalType": "bytes[]", "name": "results", "type": "bytes[]" }, { "internalType": "uint256[]", "name": "gasUsed", "type": "uint256[]" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "string", "name": "eip712Name", "type": "string" }, { "internalType": "string", "name": "eip712Version", "type": "string" }, { "internalType": "uint16", "name": "numTicksToTryAtOnce", "type": "uint16" } ], "name": "initialize", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "relayer", "type": "address" } ], "name": "isAllowedRelayer", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "maxIterationAndEps", "outputs": [ { "internalType": "uint256", "name": "maxIteration", "type": "uint256" }, { "internalType": "uint256", "name": "eps", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "numTicksToTryAtOnce", "outputs": [ { "internalType": "uint16", "name": "", "type": "uint16" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "amm", "type": "address" }, { "internalType": "bool", "name": "forceOverride", "type": "bool" } ], "name": "setAMMIdToAcc", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "relayer", "type": "address" }, { "internalType": "bool", "name": "allowed", "type": "bool" } ], "name": "setAllowedRelayer", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "newMaxIteration", "type": "uint256" }, { "internalType": "uint256", "name": "newEps", "type": "uint256" } ], "name": "setMaxIterationAndEps", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint16", "name": "newNumTicksToTryAtOnce", "type": "uint16" } ], "name": "setNumTicksToTryAtOnce", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bool", "name": "requireSuccess", "type": "bool" }, { "internalType": "bytes[]", "name": "calls", "type": "bytes[]" } ], "name": "tryAggregate", "outputs": [ { "components": [ { "internalType": "bool", "name": "success", "type": "bool" }, { "internalType": "bytes", "name": "returnData", "type": "bytes" } ], "internalType": "struct IMiscModule.Result[]", "name": "returnData", "type": "tuple[]" }, { "internalType": "uint256[]", "name": "gasUsed", "type": "uint256[]" } ], "stateMutability": "nonpayable", "type": "function" } ], "bytecode": "0x", "deployedBytecode": "0x", "linkReferences": {}, "deployedLinkReferences": {} } declare module "@nomicfoundation/hardhat-viem/types" { export function deployContract( contractName: "IMiscModule", constructorArgs?: [], config?: DeployContractConfig ): Promise>; export function deployContract( contractName: "contracts/interfaces/IMiscModule.sol:IMiscModule", constructorArgs?: [], config?: DeployContractConfig ): Promise>; export function sendDeploymentTransaction( contractName: "IMiscModule", constructorArgs?: [], config?: SendDeploymentTransactionConfig ): Promise<{ contract: GetContractReturnType; deploymentTransaction: GetTransactionReturnType; }>; export function sendDeploymentTransaction( contractName: "contracts/interfaces/IMiscModule.sol:IMiscModule", constructorArgs?: [], config?: SendDeploymentTransactionConfig ): Promise<{ contract: GetContractReturnType; deploymentTransaction: GetTransactionReturnType; }>; export function getContractAt( contractName: "IMiscModule", address: Address, config?: GetContractAtConfig ): Promise>; export function getContractAt( contractName: "contracts/interfaces/IMiscModule.sol:IMiscModule", address: Address, config?: GetContractAtConfig ): Promise>; }