// 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 IAMMModule$Type { "_format": "hh-sol-artifact-1", "contractName": "IAMMModule", "sourceName": "contracts/interfaces/IAMMModule.sol", "abi": [ { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "MarketAcc", "name": "user", "type": "bytes26" }, { "indexed": true, "internalType": "AMMId", "name": "ammId", "type": "uint24" }, { "indexed": false, "internalType": "int256", "name": "exactSizeIn", "type": "int256" }, { "indexed": false, "internalType": "uint256", "name": "netLpOut", "type": "uint256" }, { "indexed": false, "internalType": "int256", "name": "netCashIn", "type": "int256" }, { "indexed": false, "internalType": "uint256", "name": "netOtcFee", "type": "uint256" } ], "name": "AddLiquidityDualToAmm", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "MarketAcc", "name": "user", "type": "bytes26" }, { "indexed": true, "internalType": "AMMId", "name": "ammId", "type": "uint24" }, { "indexed": false, "internalType": "uint256", "name": "netLpOut", "type": "uint256" }, { "indexed": false, "internalType": "int256", "name": "netCashIn", "type": "int256" }, { "indexed": false, "internalType": "uint256", "name": "totalTakerOtcFee", "type": "uint256" }, { "indexed": false, "internalType": "int256", "name": "swapSizeInterm", "type": "int256" } ], "name": "AddLiquiditySingleCashToAmm", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "Account", "name": "account", "type": "bytes21" }, { "indexed": true, "internalType": "address", "name": "agent", "type": "address" }, { "indexed": true, "internalType": "uint64", "name": "expiry", "type": "uint64" } ], "name": "AgentApproved", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "Account", "name": "account", "type": "bytes21" }, { "indexed": true, "internalType": "address", "name": "agent", "type": "address" } ], "name": "AgentRevoked", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "MarketAcc", "name": "user", "type": "bytes26" }, { "indexed": true, "internalType": "MarketId", "name": "marketId", "type": "uint24" }, { "indexed": false, "internalType": "enum TimeInForce", "name": "tif", "type": "uint8" }, { "indexed": false, "internalType": "Trade", "name": "matched", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "takerFee", "type": "uint256" } ], "name": "BulkOrdersExecuted", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "MarketAcc", "name": "user", "type": "bytes26" }, { "indexed": false, "internalType": "bytes32", "name": "orderHash", "type": "bytes32" }, { "indexed": false, "internalType": "MarketId", "name": "marketId", "type": "uint24" }, { "indexed": false, "internalType": "AMMId", "name": "ammId", "type": "uint24" }, { "indexed": false, "internalType": "enum TimeInForce", "name": "tif", "type": "uint8" }, { "indexed": false, "internalType": "Trade", "name": "matched", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "takerOtcFee", "type": "uint256" } ], "name": "ConditionalOrderExecuted", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "root", "type": "address" }, { "indexed": false, "internalType": "uint32", "name": "boxId", "type": "uint32" }, { "indexed": false, "internalType": "address", "name": "tokenSpent", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amountSpent", "type": "uint256" }, { "indexed": false, "internalType": "uint8", "name": "accountId", "type": "uint8" }, { "indexed": false, "internalType": "TokenId", "name": "tokenId", "type": "uint16" }, { "indexed": false, "internalType": "MarketId", "name": "marketId", "type": "uint24" }, { "indexed": false, "internalType": "uint256", "name": "depositAmount", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "payTreasuryAmount", "type": "uint256" } ], "name": "DepositFromBox", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "Account", "name": "account", "type": "bytes21" }, { "indexed": true, "internalType": "address", "name": "newAccManager", "type": "address" } ], "name": "NewAccManagerSet", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "MarketAcc", "name": "maker", "type": "bytes26" }, { "indexed": true, "internalType": "MarketAcc", "name": "taker", "type": "bytes26" }, { "indexed": true, "internalType": "MarketId", "name": "marketId", "type": "uint24" }, { "indexed": false, "internalType": "Trade", "name": "trade", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "otcFee", "type": "uint256" } ], "name": "OTCTradeExecuted", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "MarketAcc", "name": "user", "type": "bytes26" }, { "indexed": true, "internalType": "AMMId", "name": "ammId", "type": "uint24" }, { "indexed": false, "internalType": "uint256", "name": "lpToRemove", "type": "uint256" }, { "indexed": false, "internalType": "int256", "name": "netCashOut", "type": "int256" }, { "indexed": false, "internalType": "int256", "name": "netSizeOut", "type": "int256" }, { "indexed": false, "internalType": "uint256", "name": "netOtcFee", "type": "uint256" } ], "name": "RemoveLiquidityDualFromAmm", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "MarketAcc", "name": "user", "type": "bytes26" }, { "indexed": true, "internalType": "AMMId", "name": "ammId", "type": "uint24" }, { "indexed": false, "internalType": "uint256", "name": "lpToRemove", "type": "uint256" }, { "indexed": false, "internalType": "int256", "name": "netCashOut", "type": "int256" }, { "indexed": false, "internalType": "uint256", "name": "netTakerOtcFee", "type": "uint256" }, { "indexed": false, "internalType": "int256", "name": "netSizeInterm", "type": "int256" } ], "name": "RemoveLiquiditySingleCashFromAmm", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "MarketAcc", "name": "user", "type": "bytes26" }, { "indexed": true, "internalType": "MarketId", "name": "marketId", "type": "uint24" }, { "indexed": true, "internalType": "AMMId", "name": "ammId", "type": "uint24" }, { "indexed": false, "internalType": "enum TimeInForce", "name": "tif", "type": "uint8" }, { "indexed": false, "internalType": "Trade", "name": "matched", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "takerOtcFee", "type": "uint256" } ], "name": "SingleOrderExecuted", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "MarketAcc", "name": "user", "type": "bytes26" }, { "indexed": true, "internalType": "MarketId", "name": "marketId", "type": "uint24" }, { "indexed": true, "internalType": "AMMId", "name": "ammId", "type": "uint24" }, { "indexed": false, "internalType": "Trade", "name": "matched", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "otcFee", "type": "uint256" } ], "name": "SwapWithAmm", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "root", "type": "address" }, { "indexed": false, "internalType": "uint32", "name": "boxId", "type": "uint32" }, { "indexed": false, "internalType": "address", "name": "token", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "WithdrawFromBox", "type": "event" }, { "inputs": [ { "components": [ { "internalType": "bool", "name": "cross", "type": "bool" }, { "internalType": "AMMId", "name": "ammId", "type": "uint24" }, { "internalType": "int256", "name": "maxCashIn", "type": "int256" }, { "internalType": "int256", "name": "exactSizeIn", "type": "int256" }, { "internalType": "uint256", "name": "minLpOut", "type": "uint256" } ], "internalType": "struct IRouterEventsAndTypes.AddLiquidityDualToAmmReq", "name": "req", "type": "tuple" } ], "name": "addLiquidityDualToAmm", "outputs": [ { "internalType": "uint256", "name": "netLpOut", "type": "uint256" }, { "internalType": "int256", "name": "netCashIn", "type": "int256" }, { "internalType": "uint256", "name": "netOtcFee", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "components": [ { "internalType": "bool", "name": "cross", "type": "bool" }, { "internalType": "AMMId", "name": "ammId", "type": "uint24" }, { "internalType": "bool", "name": "enterMarket", "type": "bool" }, { "internalType": "int256", "name": "netCashIn", "type": "int256" }, { "internalType": "uint256", "name": "minLpOut", "type": "uint256" }, { "internalType": "enum Side", "name": "desiredSwapSide", "type": "uint8" }, { "internalType": "int128", "name": "desiredSwapRate", "type": "int128" } ], "internalType": "struct IRouterEventsAndTypes.AddLiquiditySingleCashToAmmReq", "name": "req", "type": "tuple" } ], "name": "addLiquiditySingleCashToAmm", "outputs": [ { "internalType": "uint256", "name": "netLpOut", "type": "uint256" }, { "internalType": "int256", "name": "netCashUsed", "type": "int256" }, { "internalType": "uint256", "name": "totalTakerOtcFee", "type": "uint256" }, { "internalType": "Trade", "name": "swapTradeInterm", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "components": [ { "internalType": "bool", "name": "cross", "type": "bool" }, { "internalType": "AMMId", "name": "ammId", "type": "uint24" }, { "internalType": "uint256", "name": "lpToRemove", "type": "uint256" }, { "internalType": "int256", "name": "minCashOut", "type": "int256" }, { "internalType": "int256", "name": "minSizeOut", "type": "int256" }, { "internalType": "int256", "name": "maxSizeOut", "type": "int256" } ], "internalType": "struct IRouterEventsAndTypes.RemoveLiquidityDualFromAmmReq", "name": "req", "type": "tuple" } ], "name": "removeLiquidityDualFromAmm", "outputs": [ { "internalType": "int256", "name": "netCashOut", "type": "int256" }, { "internalType": "int256", "name": "netSizeOut", "type": "int256" }, { "internalType": "uint256", "name": "netOtcFee", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "components": [ { "internalType": "bool", "name": "cross", "type": "bool" }, { "internalType": "AMMId", "name": "ammId", "type": "uint24" }, { "internalType": "uint256", "name": "lpToRemove", "type": "uint256" }, { "internalType": "int256", "name": "minCashOut", "type": "int256" }, { "internalType": "enum Side", "name": "desiredSwapSide", "type": "uint8" }, { "internalType": "int128", "name": "desiredSwapRate", "type": "int128" } ], "internalType": "struct IRouterEventsAndTypes.RemoveLiquiditySingleCashFromAmmReq", "name": "req", "type": "tuple" } ], "name": "removeLiquiditySingleCashFromAmm", "outputs": [ { "internalType": "int256", "name": "netCashOut", "type": "int256" }, { "internalType": "uint256", "name": "netTakerOtcFee", "type": "uint256" }, { "internalType": "Trade", "name": "swapTradeInterm", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "components": [ { "internalType": "bool", "name": "cross", "type": "bool" }, { "internalType": "AMMId", "name": "ammId", "type": "uint24" }, { "internalType": "int256", "name": "signedSize", "type": "int256" }, { "internalType": "int128", "name": "desiredSwapRate", "type": "int128" } ], "internalType": "struct IRouterEventsAndTypes.SwapWithAmmReq", "name": "req", "type": "tuple" } ], "name": "swapWithAmm", "outputs": [ { "internalType": "Trade", "name": "matched", "type": "uint256" }, { "internalType": "uint256", "name": "otcFee", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "function" } ], "bytecode": "0x", "deployedBytecode": "0x", "linkReferences": {}, "deployedLinkReferences": {} } declare module "@nomicfoundation/hardhat-viem/types" { export function deployContract( contractName: "IAMMModule", constructorArgs?: [], config?: DeployContractConfig ): Promise>; export function deployContract( contractName: "contracts/interfaces/IAMMModule.sol:IAMMModule", constructorArgs?: [], config?: DeployContractConfig ): Promise>; export function sendDeploymentTransaction( contractName: "IAMMModule", constructorArgs?: [], config?: SendDeploymentTransactionConfig ): Promise<{ contract: GetContractReturnType; deploymentTransaction: GetTransactionReturnType; }>; export function sendDeploymentTransaction( contractName: "contracts/interfaces/IAMMModule.sol:IAMMModule", constructorArgs?: [], config?: SendDeploymentTransactionConfig ): Promise<{ contract: GetContractReturnType; deploymentTransaction: GetTransactionReturnType; }>; export function getContractAt( contractName: "IAMMModule", address: Address, config?: GetContractAtConfig ): Promise>; export function getContractAt( contractName: "contracts/interfaces/IAMMModule.sol:IAMMModule", address: Address, config?: GetContractAtConfig ): Promise>; }