Skip to Content

@cfxdevkit/defi-react


@cfxdevkit/defi-react / AUTOMATION_MANAGER_ABI

Variable: AUTOMATION_MANAGER_ABI

const AUTOMATION_MANAGER_ABI: readonly [{ inputs: readonly [{ name: "jobId"; type: "bytes32"; }]; name: "DCACompleted"; type: "error"; }, { inputs: readonly [{ name: "nextExecution"; type: "uint256"; }]; name: "DCAIntervalNotReached"; type: "error"; }, { inputs: readonly []; name: "EnforcedPause"; type: "error"; }, { inputs: readonly []; name: "ExpectedPause"; type: "error"; }, { inputs: readonly [{ name: "reason"; type: "string"; }]; name: "InvalidParams"; type: "error"; }, { inputs: readonly [{ name: "jobId"; type: "bytes32"; }]; name: "JobExpiredError"; type: "error"; }, { inputs: readonly [{ name: "jobId"; type: "bytes32"; }]; name: "JobNotActive"; type: "error"; }, { inputs: readonly [{ name: "jobId"; type: "bytes32"; }]; name: "JobNotFound"; type: "error"; }, { inputs: readonly [{ name: "owner"; type: "address"; }]; name: "OwnableInvalidOwner"; type: "error"; }, { inputs: readonly [{ name: "account"; type: "address"; }]; name: "OwnableUnauthorizedAccount"; type: "error"; }, { inputs: readonly [{ name: "jobId"; type: "bytes32"; }]; name: "PriceConditionNotMet"; type: "error"; }, { inputs: readonly []; name: "ReentrancyGuardReentrantCall"; type: "error"; }, { inputs: readonly [{ name: "token"; type: "address"; }]; name: "SafeERC20FailedOperation"; type: "error"; }, { inputs: readonly [{ name: "requested"; type: "uint256"; }, { name: "maxAllowed"; type: "uint256"; }]; name: "SlippageTooHigh"; type: "error"; }, { inputs: readonly [{ 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; name: "jobId"; type: "bytes32"; }, { indexed: true; name: "owner"; type: "address"; }, { indexed: false; name: "jobType"; type: "uint8"; }]; name: "JobCreated"; type: "event"; }, { inputs: readonly [{ components: readonly [{ name: "tokenIn"; type: "address"; }, { name: "tokenOut"; type: "address"; }, { name: "amountIn"; type: "uint256"; }, { name: "minAmountOut"; type: "uint256"; }, { name: "targetPrice"; type: "uint256"; }, { name: "triggerAbove"; type: "bool"; }]; name: "params"; type: "tuple"; }, { name: "slippageBps"; type: "uint256"; }, { name: "expiresAt"; type: "uint256"; }]; name: "createLimitOrder"; outputs: readonly [{ name: "jobId"; type: "bytes32"; }]; stateMutability: "nonpayable"; type: "function"; }, { inputs: readonly [{ components: readonly [{ name: "tokenIn"; type: "address"; }, { name: "tokenOut"; type: "address"; }, { name: "amountPerSwap"; type: "uint256"; }, { name: "intervalSeconds"; type: "uint256"; }, { name: "totalSwaps"; type: "uint256"; }, { name: "swapsCompleted"; type: "uint256"; }, { name: "nextExecution"; type: "uint256"; }]; name: "params"; type: "tuple"; }, { name: "slippageBps"; type: "uint256"; }, { name: "expiresAt"; type: "uint256"; }]; name: "createDCAJob"; outputs: readonly [{ name: "jobId"; type: "bytes32"; }]; stateMutability: "nonpayable"; type: "function"; }, { inputs: readonly [{ name: "jobId"; type: "bytes32"; }]; name: "cancelJob"; outputs: readonly []; stateMutability: "nonpayable"; type: "function"; }, { anonymous: false; inputs: readonly [{ indexed: true; name: "jobId"; type: "bytes32"; }, { indexed: true; name: "canceller"; type: "address"; }]; name: "JobCancelled"; type: "event"; }]

Defined in: contracts.ts:94