@chainlink/contracts
Version:
Chainlink smart contracts
1,525 lines (1,524 loc) • 29 kB
JSON
[
{
"inputs": [],
"name": "IndexOutOfRange",
"type": "error"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "upkeepId",
"type": "uint256"
},
{
"indexed": true,
"internalType": "uint256",
"name": "blockNum",
"type": "uint256"
},
{
"indexed": true,
"internalType": "address",
"name": "addr",
"type": "address"
}
],
"name": "LogEmitted",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "upkeepId",
"type": "uint256"
},
{
"indexed": true,
"internalType": "uint256",
"name": "blockNum",
"type": "uint256"
},
{
"indexed": true,
"internalType": "address",
"name": "addr",
"type": "address"
}
],
"name": "LogEmittedAgain",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "from",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "to",
"type": "address"
}
],
"name": "OwnershipTransferRequested",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "from",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "to",
"type": "address"
}
],
"name": "OwnershipTransferred",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "upkeepId",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint96",
"name": "amount",
"type": "uint96"
},
{
"indexed": false,
"internalType": "uint256",
"name": "blockNum",
"type": "uint256"
}
],
"name": "UpkeepTopUp",
"type": "event"
},
{
"inputs": [],
"name": "BUCKET_SIZE",
"outputs": [
{
"internalType": "uint16",
"name": "",
"type": "uint16"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "acceptOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "upkeepId",
"type": "uint256"
},
{
"internalType": "uint96",
"name": "amount",
"type": "uint96"
}
],
"name": "addFunds",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "addLinkAmount",
"outputs": [
{
"internalType": "uint96",
"name": "",
"type": "uint96"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256[]",
"name": "upkeepIds",
"type": "uint256[]"
}
],
"name": "batchCancelUpkeeps",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256[]",
"name": "upkeepIds",
"type": "uint256[]"
},
{
"internalType": "uint8",
"name": "selector",
"type": "uint8"
},
{
"internalType": "bytes32",
"name": "topic0",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "topic1",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "topic2",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "topic3",
"type": "bytes32"
}
],
"name": "batchPreparingUpkeeps",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256[]",
"name": "upkeepIds",
"type": "uint256[]"
},
{
"internalType": "uint8",
"name": "log",
"type": "uint8"
},
{
"internalType": "uint8",
"name": "selector",
"type": "uint8"
}
],
"name": "batchPreparingUpkeepsSimple",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint8",
"name": "number",
"type": "uint8"
},
{
"internalType": "uint32",
"name": "gasLimit",
"type": "uint32"
},
{
"internalType": "uint8",
"name": "triggerType",
"type": "uint8"
},
{
"internalType": "bytes",
"name": "triggerConfig",
"type": "bytes"
},
{
"internalType": "uint96",
"name": "amount",
"type": "uint96"
},
{
"internalType": "uint256",
"name": "checkGasToBurn",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "performGasToBurn",
"type": "uint256"
}
],
"name": "batchRegisterUpkeeps",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint8",
"name": "log",
"type": "uint8"
}
],
"name": "batchSendLogs",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256[]",
"name": "upkeepIds",
"type": "uint256[]"
},
{
"internalType": "uint32",
"name": "interval",
"type": "uint32"
}
],
"name": "batchSetIntervals",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256[]",
"name": "upkeepIds",
"type": "uint256[]"
}
],
"name": "batchUpdatePipelineData",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256[]",
"name": "upkeepIds",
"type": "uint256[]"
}
],
"name": "batchWithdrawLinks",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
},
{
"internalType": "uint16",
"name": "",
"type": "uint16"
},
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "bucketedDelays",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "buckets",
"outputs": [
{
"internalType": "uint16",
"name": "",
"type": "uint16"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "upkeepId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "startGas",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "blockNum",
"type": "uint256"
}
],
"name": "burnPerformGas",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "checkGasToBurns",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "counters",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "delays",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"name": "dummyMap",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "upkeepId",
"type": "uint256"
}
],
"name": "eligible",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "emittedAgainSig",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "emittedSig",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "feedParamKey",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "feedsHex",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "firstPerformBlocks",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "gasLimits",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "startIndex",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "maxCount",
"type": "uint256"
}
],
"name": "getActiveUpkeepIDsDeployedByThisContract",
"outputs": [
{
"internalType": "uint256[]",
"name": "",
"type": "uint256[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "startIndex",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "maxCount",
"type": "uint256"
}
],
"name": "getAllActiveUpkeepIDsOnRegistry",
"outputs": [
{
"internalType": "uint256[]",
"name": "",
"type": "uint256[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "id",
"type": "uint256"
}
],
"name": "getBalance",
"outputs": [
{
"internalType": "uint96",
"name": "balance",
"type": "uint96"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "upkeepId",
"type": "uint256"
},
{
"internalType": "uint16",
"name": "bucket",
"type": "uint16"
}
],
"name": "getBucketedDelays",
"outputs": [
{
"internalType": "uint256[]",
"name": "",
"type": "uint256[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "upkeepId",
"type": "uint256"
}
],
"name": "getBucketedDelaysLength",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "upkeepId",
"type": "uint256"
}
],
"name": "getDelays",
"outputs": [
{
"internalType": "uint256[]",
"name": "",
"type": "uint256[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "upkeepId",
"type": "uint256"
}
],
"name": "getDelaysLength",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "upkeepID",
"type": "uint256"
}
],
"name": "getForwarder",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "addr",
"type": "address"
},
{
"internalType": "uint8",
"name": "selector",
"type": "uint8"
},
{
"internalType": "bytes32",
"name": "topic0",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "topic1",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "topic2",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "topic3",
"type": "bytes32"
}
],
"name": "getLogTriggerConfig",
"outputs": [
{
"internalType": "bytes",
"name": "logTrigger",
"type": "bytes"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "upkeepId",
"type": "uint256"
}
],
"name": "getMinBalanceForUpkeep",
"outputs": [
{
"internalType": "uint96",
"name": "",
"type": "uint96"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "upkeepId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "p",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "n",
"type": "uint256"
}
],
"name": "getPxDelayLastNPerforms",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "upkeepId",
"type": "uint256"
},
{
"internalType": "uint16",
"name": "bucket",
"type": "uint16"
}
],
"name": "getSumDelayInBucket",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "upkeepId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "n",
"type": "uint256"
}
],
"name": "getSumDelayLastNPerforms",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "upkeepId",
"type": "uint256"
}
],
"name": "getTriggerType",
"outputs": [
{
"internalType": "uint8",
"name": "",
"type": "uint8"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "upkeepId",
"type": "uint256"
}
],
"name": "getUpkeepInfo",
"outputs": [
{
"components": [
{
"internalType": "address",
"name": "target",
"type": "address"
},
{
"internalType": "uint32",
"name": "performGas",
"type": "uint32"
},
{
"internalType": "bytes",
"name": "checkData",
"type": "bytes"
},
{
"internalType": "uint96",
"name": "balance",
"type": "uint96"
},
{
"internalType": "address",
"name": "admin",
"type": "address"
},
{
"internalType": "uint64",
"name": "maxValidBlocknumber",
"type": "uint64"
},
{
"internalType": "uint32",
"name": "lastPerformedBlockNumber",
"type": "uint32"
},
{
"internalType": "uint96",
"name": "amountSpent",
"type": "uint96"
},
{
"internalType": "bool",
"name": "paused",
"type": "bool"
},
{
"internalType": "bytes",
"name": "offchainConfig",
"type": "bytes"
}
],
"internalType": "struct IAutomationV21PlusCommon.UpkeepInfoLegacy",
"name": "",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "upkeepId",
"type": "uint256"
}
],
"name": "getUpkeepPrivilegeConfig",
"outputs": [
{
"internalType": "bytes",
"name": "",
"type": "bytes"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "upkeepId",
"type": "uint256"
}
],
"name": "getUpkeepTriggerConfig",
"outputs": [
{
"internalType": "bytes",
"name": "",
"type": "bytes"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "intervals",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "lastTopUpBlocks",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "linkToken",
"outputs": [
{
"internalType": "contract LinkTokenInterface",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "minBalanceThresholdMultiplier",
"outputs": [
{
"internalType": "uint8",
"name": "",
"type": "uint8"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "owner",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "performDataSizes",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "performGasToBurns",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "previousPerformBlocks",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "registrar",
"outputs": [
{
"internalType": "contract AutomationRegistrar2_1",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "registry",
"outputs": [
{
"internalType": "contract IKeeperRegistryMaster",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "upkeepId",
"type": "uint256"
},
{
"internalType": "uint8",
"name": "log",
"type": "uint8"
}
],
"name": "sendLog",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "contract AutomationRegistrar2_1",
"name": "newRegistrar",
"type": "address"
}
],
"name": "setConfig",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "string[]",
"name": "_feeds",
"type": "string[]"
}
],
"name": "setFeeds",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "upkeepId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "_interval",
"type": "uint256"
}
],
"name": "setInterval",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "_feedParamKey",
"type": "string"
},
{
"internalType": "string",
"name": "_timeParamKey",
"type": "string"
}
],
"name": "setParamKeys",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "upkeepId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "value",
"type": "uint256"
}
],
"name": "setPerformDataSize",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "upkeepId",
"type": "uint256"
},
{
"internalType": "uint32",
"name": "gasLimit",
"type": "uint32"
}
],
"name": "setUpkeepGasLimit",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "upkeepId",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "cfg",
"type": "bytes"
}
],
"name": "setUpkeepPrivilegeConfig",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "timeParamKey",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "upkeepId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "blockNum",
"type": "uint256"
}
],
"name": "topUpFund",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "to",
"type": "address"
}
],
"name": "transferOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "upkeepId",
"type": "uint256"
},
{
"internalType": "address",
"name": "addr",
"type": "address"
},
{
"internalType": "uint8",
"name": "selector",
"type": "uint8"
},
{
"internalType": "bytes32",
"name": "topic0",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "topic1",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "topic2",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "topic3",
"type": "bytes32"
}
],
"name": "updateLogTriggerConfig1",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "upkeepId",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "cfg",
"type": "bytes"
}
],
"name": "updateLogTriggerConfig2",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "upkeepId",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "pipelineData",
"type": "bytes"
}
],
"name": "updateUpkeepPipelineData",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "upkeepTopUpCheckInterval",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "useArbitrumBlockNum",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "withdrawLinks",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "upkeepId",
"type": "uint256"
}
],
"name": "withdrawLinks",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"stateMutability": "payable",
"type": "receive"
}
]