Comment on page
UpkeepController
A contract that manages upkeeps for the Chainlink automation system.
This contract implements the UpkeepControllerInterface and provides functionality to register, cancel, pause, and unpause upkeeps, as well as update their check data, gas limits, and off-chain configurations.
contract LinkTokenInterface i_link
contract KeeperRegistrarInterface i_registrar
contract AutomationRegistryWithMinANeededAmountInterface i_registry
constructor(contract LinkTokenInterface link, contract KeeperRegistrarInterface registrar, contract AutomationRegistryWithMinANeededAmountInterface registry) public
Constructs the UpkeepController contract.
Parameters
Name | Type | Description |
---|---|---|
link | contract LinkTokenInterface | The address of the LinkToken contract. |
registrar | contract KeeperRegistrarInterface | The address of the KeeperRegistrar contract. |
registry | contract AutomationRegistryWithMinANeededAmountInterface | The address of the AutomationRegistry contract. |
function registerAndPredictID(struct KeeperRegistrarInterface.RegistrationParams params) public
See {UpkeepControllerInterface}
function cancelUpkeep(uint256 upkeepId) external
See {UpkeepControllerInterface}
function pauseUpkeep(uint256 upkeepId) external
See {UpkeepControllerInterface}
function unpauseUpkeep(uint256 upkeepId) external
See {UpkeepControllerInterface}
function updateCheckData(uint256 upkeepId, bytes newCheckData) external
See {UpkeepControllerInterface}
function setUpkeepGasLimit(uint256 upkeepId, uint32 gasLimit) external
See {UpkeepControllerInterface}
function setUpkeepOffchainConfig(uint256 upkeepId, bytes config) external
See {UpkeepControllerInterface}
function addFunds(uint256 upkeepId, uint96 amount) external
See {UpkeepControllerInterface}
function getUpkeep(uint256 upkeepId) external view returns (struct UpkeepInfo upkeepInfo)
See {UpkeepControllerInterface}
function getActiveUpkeepIDs(uint256 offset, uint256 limit) public view returns (uint256[] upkeeps)
See {UpkeepControllerInterface}
function getUpkeeps(uint256 offset, uint256 limit) public view returns (struct UpkeepInfo[])
See {UpkeepControllerInterface}
function getMinBalanceForUpkeep(uint256 upkeepId) external view returns (uint96)
See {UpkeepControllerInterface}
function getMinBalancesForUpkeeps(uint256 offset, uint256 limit) public view returns (uint96[])
See {UpkeepControllerInterface}
function getDetailedUpkeeps(uint256 offset, uint256 limit) external view returns (struct UpkeepControllerInterface.DetailedUpkeep[])
See {UpkeepControllerInterface}
function getUpkeepsCount() external view returns (uint256)
See {UpkeepControllerInterface}
function getState() external view returns (struct State state, struct OnchainConfig config, address[] signers, address[] transmitters, uint8 f)
See {UpkeepControllerInterface}
function isNewUpkeepNeeded() external view returns (bool isNeeded, uint256 newOffset, uint256 newLimit)
See {UpkeepControllerInterface}
function checkUpkeep(uint256 upkeepId) public returns (bool upkeepNeeded, bytes performData, enum UpkeepFailureReason upkeepFailureReason, uint256 gasUsed, uint256 fastGasWei, uint256 linkNative)
See {UpkeepControllerInterface}
Last modified 5mo ago