Skip to Content
API Reference@cfxdevkit/protocolAUTOMATION_MANAGER_ABI

@cfxdevkit/protocol


@cfxdevkit/protocol / AUTOMATION_MANAGER_ABI

Variable: AUTOMATION_MANAGER_ABI

const AUTOMATION_MANAGER_ABI: readonly [{ inputs: readonly [{ internalType: "address"; name: "_priceAdapter"; type: "address"; }, { internalType: "address"; name: "initialOwner"; type: "address"; }]; stateMutability: "nonpayable"; type: "constructor"; }, { inputs: readonly [{ internalType: "bytes32"; name: "jobId"; type: "bytes32"; }]; name: "DCACompleted"; type: "error"; }, { inputs: readonly [{ internalType: "uint256"; name: "nextExecution"; type: "uint256"; }]; name: "DCAIntervalNotReached"; type: "error"; }, { inputs: readonly []; name: "EnforcedPause"; type: "error"; }, { inputs: readonly []; name: "ExpectedPause"; type: "error"; }, { inputs: readonly [{ internalType: "string"; name: "reason"; type: "string"; }]; name: "InvalidParams"; type: "error"; }, { inputs: readonly [{ internalType: "bytes32"; name: "jobId"; type: "bytes32"; }]; name: "JobExpiredError"; type: "error"; }, { inputs: readonly [{ internalType: "bytes32"; name: "jobId"; type: "bytes32"; }]; name: "JobNotActive"; type: "error"; }, { inputs: readonly [{ internalType: "bytes32"; name: "jobId"; type: "bytes32"; }]; name: "JobNotFound"; type: "error"; }, { inputs: readonly [{ internalType: "address"; name: "owner"; type: "address"; }]; name: "OwnableInvalidOwner"; type: "error"; }, { inputs: readonly [{ internalType: "address"; name: "account"; type: "address"; }]; name: "OwnableUnauthorizedAccount"; type: "error"; }, { inputs: readonly [{ internalType: "bytes32"; name: "jobId"; type: "bytes32"; }]; name: "PriceConditionNotMet"; type: "error"; }, { inputs: readonly []; name: "ReentrancyGuardReentrantCall"; type: "error"; }, { inputs: readonly [{ internalType: "address"; name: "token"; type: "address"; }]; name: "SafeERC20FailedOperation"; type: "error"; }, { inputs: readonly [{ internalType: "uint256"; name: "requested"; type: "uint256"; }, { internalType: "uint256"; name: "maxAllowed"; type: "uint256"; }]; name: "SlippageTooHigh"; type: "error"; }, { inputs: readonly [{ internalType: "address"; name: "user"; type: "address"; }]; name: "TooManyJobs"; type: "error"; }, { inputs: readonly []; name: "Unauthorized"; type: "error"; }, { inputs: readonly []; name: "ZeroAddress"; type: "error"; }, { anonymous: false; inputs: readonly [{ indexed: true; internalType: "bytes32"; name: "jobId"; type: "bytes32"; }, { indexed: true; internalType: "address"; name: "canceller"; type: "address"; }]; name: "JobCancelled"; type: "event"; }, { anonymous: false; inputs: readonly [{ indexed: true; internalType: "bytes32"; name: "jobId"; type: "bytes32"; }, { indexed: true; internalType: "address"; name: "owner"; type: "address"; }, { indexed: false; internalType: "enum AutomationManager.JobType"; name: "jobType"; type: "uint8"; }]; name: "JobCreated"; type: "event"; }, { anonymous: false; inputs: readonly [{ indexed: true; internalType: "bytes32"; name: "jobId"; type: "bytes32"; }, { indexed: true; internalType: "address"; name: "keeper"; type: "address"; }, { indexed: false; internalType: "uint256"; name: "amountOut"; type: "uint256"; }]; name: "JobExecuted"; type: "event"; }, { anonymous: false; inputs: readonly [{ indexed: true; internalType: "bytes32"; name: "jobId"; type: "bytes32"; }]; name: "JobExpired"; type: "event"; }, { anonymous: false; inputs: readonly [{ indexed: true; internalType: "address"; name: "keeper"; type: "address"; }, { indexed: false; internalType: "bool"; name: "allowed"; type: "bool"; }]; name: "KeeperUpdated"; type: "event"; }, { anonymous: false; inputs: readonly [{ indexed: false; internalType: "uint256"; name: "newMax"; type: "uint256"; }]; name: "MaxJobsPerUserUpdated"; type: "event"; }, { anonymous: false; inputs: readonly [{ indexed: true; internalType: "address"; name: "previousOwner"; type: "address"; }, { indexed: true; internalType: "address"; name: "newOwner"; type: "address"; }]; name: "OwnershipTransferred"; type: "event"; }, { anonymous: false; inputs: readonly [{ indexed: false; internalType: "address"; name: "account"; type: "address"; }]; name: "Paused"; type: "event"; }, { anonymous: false; inputs: readonly [{ indexed: true; internalType: "address"; name: "newAdapter"; type: "address"; }]; name: "PriceAdapterUpdated"; type: "event"; }, { anonymous: false; inputs: readonly [{ indexed: false; internalType: "address"; name: "account"; type: "address"; }]; name: "Unpaused"; type: "event"; }, { inputs: readonly [{ internalType: "address"; name: ""; type: "address"; }]; name: "activeJobCount"; outputs: readonly [{ internalType: "uint256"; name: ""; type: "uint256"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly [{ internalType: "bytes32"; name: "jobId"; type: "bytes32"; }]; name: "cancelJob"; outputs: readonly []; stateMutability: "nonpayable"; type: "function"; }, { inputs: readonly [{ components: readonly [{ internalType: "address"; name: "tokenIn"; type: "address"; }, { internalType: "address"; name: "tokenOut"; type: "address"; }, { internalType: "uint256"; name: "amountPerSwap"; type: "uint256"; }, { internalType: "uint256"; name: "intervalSeconds"; type: "uint256"; }, { internalType: "uint256"; name: "totalSwaps"; type: "uint256"; }, { internalType: "uint256"; name: "swapsCompleted"; type: "uint256"; }, { internalType: "uint256"; name: "nextExecution"; type: "uint256"; }]; internalType: "struct AutomationManager.DCAParams"; name: "params"; type: "tuple"; }, { internalType: "uint256"; name: "slippageBps"; type: "uint256"; }, { internalType: "uint256"; name: "expiresAt"; type: "uint256"; }]; name: "createDCAJob"; outputs: readonly [{ internalType: "bytes32"; name: "jobId"; type: "bytes32"; }]; stateMutability: "nonpayable"; type: "function"; }, { inputs: readonly [{ components: readonly [{ internalType: "address"; name: "tokenIn"; type: "address"; }, { internalType: "address"; name: "tokenOut"; type: "address"; }, { internalType: "uint256"; name: "amountIn"; type: "uint256"; }, { internalType: "uint256"; name: "minAmountOut"; type: "uint256"; }, { internalType: "uint256"; name: "targetPrice"; type: "uint256"; }, { internalType: "bool"; name: "triggerAbove"; type: "bool"; }]; internalType: "struct AutomationManager.LimitOrderParams"; name: "params"; type: "tuple"; }, { internalType: "uint256"; name: "slippageBps"; type: "uint256"; }, { internalType: "uint256"; name: "expiresAt"; type: "uint256"; }]; name: "createLimitOrder"; outputs: readonly [{ internalType: "bytes32"; name: "jobId"; type: "bytes32"; }]; stateMutability: "nonpayable"; type: "function"; }, { inputs: readonly [{ internalType: "bytes32"; name: ""; type: "bytes32"; }]; name: "dcaJobs"; outputs: readonly [{ internalType: "address"; name: "tokenIn"; type: "address"; }, { internalType: "address"; name: "tokenOut"; type: "address"; }, { internalType: "uint256"; name: "amountPerSwap"; type: "uint256"; }, { internalType: "uint256"; name: "intervalSeconds"; type: "uint256"; }, { internalType: "uint256"; name: "totalSwaps"; type: "uint256"; }, { internalType: "uint256"; name: "swapsCompleted"; type: "uint256"; }, { internalType: "uint256"; name: "nextExecution"; type: "uint256"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly [{ internalType: "bytes32"; name: "jobId"; type: "bytes32"; }, { internalType: "address"; name: "router"; type: "address"; }, { internalType: "bytes"; name: "swapCalldata"; type: "bytes"; }]; name: "executeDCATick"; outputs: readonly []; stateMutability: "nonpayable"; type: "function"; }, { inputs: readonly [{ internalType: "bytes32"; name: "jobId"; type: "bytes32"; }, { internalType: "address"; name: "router"; type: "address"; }, { internalType: "bytes"; name: "swapCalldata"; type: "bytes"; }]; name: "executeLimitOrder"; outputs: readonly []; stateMutability: "nonpayable"; type: "function"; }, { inputs: readonly [{ internalType: "bytes32"; name: "jobId"; type: "bytes32"; }]; name: "expireJob"; outputs: readonly []; stateMutability: "nonpayable"; type: "function"; }, { inputs: readonly [{ internalType: "bytes32"; name: "jobId"; type: "bytes32"; }]; name: "getDCAJob"; outputs: readonly [{ components: readonly [{ internalType: "address"; name: "tokenIn"; type: "address"; }, { internalType: "address"; name: "tokenOut"; type: "address"; }, { internalType: "uint256"; name: "amountPerSwap"; type: "uint256"; }, { internalType: "uint256"; name: "intervalSeconds"; type: "uint256"; }, { internalType: "uint256"; name: "totalSwaps"; type: "uint256"; }, { internalType: "uint256"; name: "swapsCompleted"; type: "uint256"; }, { internalType: "uint256"; name: "nextExecution"; type: "uint256"; }]; internalType: "struct AutomationManager.DCAParams"; name: ""; type: "tuple"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly [{ internalType: "bytes32"; name: "jobId"; type: "bytes32"; }]; name: "getJob"; outputs: readonly [{ components: readonly [{ internalType: "bytes32"; name: "id"; type: "bytes32"; }, { internalType: "address"; name: "owner"; type: "address"; }, { internalType: "enum AutomationManager.JobType"; name: "jobType"; type: "uint8"; }, { internalType: "enum AutomationManager.JobStatus"; name: "status"; type: "uint8"; }, { internalType: "uint256"; name: "createdAt"; type: "uint256"; }, { internalType: "uint256"; name: "expiresAt"; type: "uint256"; }, { internalType: "uint256"; name: "maxSlippageBps"; type: "uint256"; }]; internalType: "struct AutomationManager.Job"; name: ""; type: "tuple"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly [{ internalType: "bytes32"; name: "jobId"; type: "bytes32"; }]; name: "getLimitOrder"; outputs: readonly [{ components: readonly [{ internalType: "address"; name: "tokenIn"; type: "address"; }, { internalType: "address"; name: "tokenOut"; type: "address"; }, { internalType: "uint256"; name: "amountIn"; type: "uint256"; }, { internalType: "uint256"; name: "minAmountOut"; type: "uint256"; }, { internalType: "uint256"; name: "targetPrice"; type: "uint256"; }, { internalType: "bool"; name: "triggerAbove"; type: "bool"; }]; internalType: "struct AutomationManager.LimitOrderParams"; name: ""; type: "tuple"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly [{ internalType: "address"; name: "user"; type: "address"; }]; name: "getUserJobs"; outputs: readonly [{ internalType: "bytes32[]"; name: ""; type: "bytes32[]"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly [{ internalType: "bytes32"; name: ""; type: "bytes32"; }]; name: "jobs"; outputs: readonly [{ internalType: "bytes32"; name: "id"; type: "bytes32"; }, { internalType: "address"; name: "owner"; type: "address"; }, { internalType: "enum AutomationManager.JobType"; name: "jobType"; type: "uint8"; }, { internalType: "enum AutomationManager.JobStatus"; name: "status"; type: "uint8"; }, { internalType: "uint256"; name: "createdAt"; type: "uint256"; }, { internalType: "uint256"; name: "expiresAt"; type: "uint256"; }, { internalType: "uint256"; name: "maxSlippageBps"; type: "uint256"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly []; name: "keeperFeeFlat"; outputs: readonly [{ internalType: "uint256"; name: ""; type: "uint256"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly [{ internalType: "address"; name: ""; type: "address"; }]; name: "keepers"; outputs: readonly [{ internalType: "bool"; name: ""; type: "bool"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly [{ internalType: "bytes32"; name: ""; type: "bytes32"; }]; name: "limitOrders"; outputs: readonly [{ internalType: "address"; name: "tokenIn"; type: "address"; }, { internalType: "address"; name: "tokenOut"; type: "address"; }, { internalType: "uint256"; name: "amountIn"; type: "uint256"; }, { internalType: "uint256"; name: "minAmountOut"; type: "uint256"; }, { internalType: "uint256"; name: "targetPrice"; type: "uint256"; }, { internalType: "bool"; name: "triggerAbove"; type: "bool"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly []; name: "maxJobsPerUser"; outputs: readonly [{ internalType: "uint256"; name: ""; type: "uint256"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly []; name: "maxSlippageBps"; outputs: readonly [{ internalType: "uint256"; name: ""; type: "uint256"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly []; name: "owner"; outputs: readonly [{ internalType: "address"; name: ""; type: "address"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly []; name: "pause"; outputs: readonly []; stateMutability: "nonpayable"; type: "function"; }, { inputs: readonly []; name: "paused"; outputs: readonly [{ internalType: "bool"; name: ""; type: "bool"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly []; name: "priceAdapter"; outputs: readonly [{ internalType: "contract IPriceAdapter"; name: ""; type: "address"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly []; name: "renounceOwnership"; outputs: readonly []; stateMutability: "nonpayable"; type: "function"; }, { inputs: readonly [{ internalType: "address"; name: "keeper"; type: "address"; }, { internalType: "bool"; name: "allowed"; type: "bool"; }]; name: "setKeeper"; outputs: readonly []; stateMutability: "nonpayable"; type: "function"; }, { inputs: readonly [{ internalType: "uint256"; name: "_max"; type: "uint256"; }]; name: "setMaxJobsPerUser"; outputs: readonly []; stateMutability: "nonpayable"; type: "function"; }, { inputs: readonly [{ internalType: "uint256"; name: "_maxBps"; type: "uint256"; }]; name: "setMaxSlippageBps"; outputs: readonly []; stateMutability: "nonpayable"; type: "function"; }, { inputs: readonly [{ internalType: "address"; name: "_priceAdapter"; type: "address"; }]; name: "setPriceAdapter"; outputs: readonly []; stateMutability: "nonpayable"; type: "function"; }, { inputs: readonly [{ internalType: "address"; name: "newOwner"; type: "address"; }]; name: "transferOwnership"; outputs: readonly []; stateMutability: "nonpayable"; type: "function"; }, { inputs: readonly []; name: "unpause"; outputs: readonly []; stateMutability: "nonpayable"; type: "function"; }, { inputs: readonly [{ internalType: "address"; name: ""; type: "address"; }, { internalType: "uint256"; name: ""; type: "uint256"; }]; name: "userJobs"; outputs: readonly [{ internalType: "bytes32"; name: ""; type: "bytes32"; }]; stateMutability: "view"; type: "function"; }]

Defined in: generated.ts:9