UNPKG

@chainlink/contracts

Version:

Chainlink smart contracts

1,442 lines (1,441 loc) 29.2 kB
[ { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "admin", "type": "address" }, { "indexed": false, "internalType": "bytes", "name": "privilegeConfig", "type": "bytes" } ], "name": "AdminPrivilegeConfigSet", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint256", "name": "id", "type": "uint256" }, { "indexed": false, "internalType": "bytes", "name": "trigger", "type": "bytes" } ], "name": "CancelledUpkeepReport", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint32", "name": "previousConfigBlockNumber", "type": "uint32" }, { "indexed": false, "internalType": "bytes32", "name": "configDigest", "type": "bytes32" }, { "indexed": false, "internalType": "uint64", "name": "configCount", "type": "uint64" }, { "indexed": false, "internalType": "address[]", "name": "signers", "type": "address[]" }, { "indexed": false, "internalType": "address[]", "name": "transmitters", "type": "address[]" }, { "indexed": false, "internalType": "uint8", "name": "f", "type": "uint8" }, { "indexed": false, "internalType": "bytes", "name": "onchainConfig", "type": "bytes" }, { "indexed": false, "internalType": "uint64", "name": "offchainConfigVersion", "type": "uint64" }, { "indexed": false, "internalType": "bytes", "name": "offchainConfig", "type": "bytes" } ], "name": "ConfigSet", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "bytes32", "name": "dedupKey", "type": "bytes32" } ], "name": "DedupKeyAdded", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint256", "name": "id", "type": "uint256" }, { "indexed": true, "internalType": "address", "name": "from", "type": "address" }, { "indexed": false, "internalType": "uint96", "name": "amount", "type": "uint96" } ], "name": "FundsAdded", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint256", "name": "id", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" }, { "indexed": false, "internalType": "address", "name": "to", "type": "address" } ], "name": "FundsWithdrawn", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint256", "name": "id", "type": "uint256" }, { "indexed": false, "internalType": "bytes", "name": "trigger", "type": "bytes" } ], "name": "InsufficientFundsUpkeepReport", "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": "address", "name": "account", "type": "address" } ], "name": "Paused", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "address[]", "name": "transmitters", "type": "address[]" }, { "indexed": false, "internalType": "address[]", "name": "payees", "type": "address[]" } ], "name": "PayeesUpdated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "transmitter", "type": "address" }, { "indexed": true, "internalType": "address", "name": "from", "type": "address" }, { "indexed": true, "internalType": "address", "name": "to", "type": "address" } ], "name": "PayeeshipTransferRequested", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "transmitter", "type": "address" }, { "indexed": true, "internalType": "address", "name": "from", "type": "address" }, { "indexed": true, "internalType": "address", "name": "to", "type": "address" } ], "name": "PayeeshipTransferred", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "transmitter", "type": "address" }, { "indexed": true, "internalType": "uint256", "name": "amount", "type": "uint256" }, { "indexed": true, "internalType": "address", "name": "to", "type": "address" }, { "indexed": false, "internalType": "address", "name": "payee", "type": "address" } ], "name": "PaymentWithdrawn", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint256", "name": "id", "type": "uint256" }, { "indexed": false, "internalType": "bytes", "name": "trigger", "type": "bytes" } ], "name": "ReorgedUpkeepReport", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint256", "name": "id", "type": "uint256" }, { "indexed": false, "internalType": "bytes", "name": "trigger", "type": "bytes" } ], "name": "StaleUpkeepReport", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "bytes32", "name": "configDigest", "type": "bytes32" }, { "indexed": false, "internalType": "uint32", "name": "epoch", "type": "uint32" } ], "name": "Transmitted", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "address", "name": "account", "type": "address" } ], "name": "Unpaused", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint256", "name": "id", "type": "uint256" }, { "indexed": true, "internalType": "address", "name": "from", "type": "address" }, { "indexed": true, "internalType": "address", "name": "to", "type": "address" } ], "name": "UpkeepAdminTransferRequested", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint256", "name": "id", "type": "uint256" }, { "indexed": true, "internalType": "address", "name": "from", "type": "address" }, { "indexed": true, "internalType": "address", "name": "to", "type": "address" } ], "name": "UpkeepAdminTransferred", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint256", "name": "id", "type": "uint256" }, { "indexed": true, "internalType": "uint64", "name": "atBlockHeight", "type": "uint64" } ], "name": "UpkeepCanceled", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint256", "name": "id", "type": "uint256" }, { "indexed": false, "internalType": "bytes", "name": "newCheckData", "type": "bytes" } ], "name": "UpkeepCheckDataSet", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint256", "name": "id", "type": "uint256" }, { "indexed": false, "internalType": "uint96", "name": "gasLimit", "type": "uint96" } ], "name": "UpkeepGasLimitSet", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint256", "name": "id", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "remainingBalance", "type": "uint256" }, { "indexed": false, "internalType": "address", "name": "destination", "type": "address" } ], "name": "UpkeepMigrated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint256", "name": "id", "type": "uint256" }, { "indexed": false, "internalType": "bytes", "name": "offchainConfig", "type": "bytes" } ], "name": "UpkeepOffchainConfigSet", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint256", "name": "id", "type": "uint256" } ], "name": "UpkeepPaused", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint256", "name": "id", "type": "uint256" }, { "indexed": true, "internalType": "bool", "name": "success", "type": "bool" }, { "indexed": false, "internalType": "uint96", "name": "totalPayment", "type": "uint96" }, { "indexed": false, "internalType": "uint256", "name": "gasUsed", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "gasOverhead", "type": "uint256" }, { "indexed": false, "internalType": "bytes", "name": "trigger", "type": "bytes" } ], "name": "UpkeepPerformed", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint256", "name": "id", "type": "uint256" }, { "indexed": false, "internalType": "bytes", "name": "privilegeConfig", "type": "bytes" } ], "name": "UpkeepPrivilegeConfigSet", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint256", "name": "id", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "startingBalance", "type": "uint256" }, { "indexed": false, "internalType": "address", "name": "importedFrom", "type": "address" } ], "name": "UpkeepReceived", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint256", "name": "id", "type": "uint256" }, { "indexed": false, "internalType": "uint32", "name": "performGas", "type": "uint32" }, { "indexed": false, "internalType": "address", "name": "admin", "type": "address" } ], "name": "UpkeepRegistered", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint256", "name": "id", "type": "uint256" }, { "indexed": false, "internalType": "bytes", "name": "triggerConfig", "type": "bytes" } ], "name": "UpkeepTriggerConfigSet", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint256", "name": "id", "type": "uint256" } ], "name": "UpkeepUnpaused", "type": "event" }, { "inputs": [ { "internalType": "uint256", "name": "id", "type": "uint256" }, { "internalType": "uint96", "name": "amount", "type": "uint96" } ], "name": "addFunds", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "id", "type": "uint256" } ], "name": "cancelUpkeep", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "id", "type": "uint256" }, { "internalType": "bytes[]", "name": "values", "type": "bytes[]" }, { "internalType": "bytes", "name": "extraData", "type": "bytes" } ], "name": "checkCallback", "outputs": [ { "internalType": "bool", "name": "upkeepNeeded", "type": "bool" }, { "internalType": "bytes", "name": "performData", "type": "bytes" }, { "internalType": "uint8", "name": "upkeepFailureReason", "type": "uint8" }, { "internalType": "uint256", "name": "gasUsed", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "id", "type": "uint256" }, { "internalType": "bytes", "name": "triggerData", "type": "bytes" } ], "name": "checkUpkeep", "outputs": [ { "internalType": "bool", "name": "upkeepNeeded", "type": "bool" }, { "internalType": "bytes", "name": "performData", "type": "bytes" }, { "internalType": "uint8", "name": "upkeepFailureReason", "type": "uint8" }, { "internalType": "uint256", "name": "gasUsed", "type": "uint256" }, { "internalType": "uint256", "name": "gasLimit", "type": "uint256" }, { "internalType": "uint256", "name": "fastGasWei", "type": "uint256" }, { "internalType": "uint256", "name": "linkNative", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "id", "type": "uint256" } ], "name": "checkUpkeep", "outputs": [ { "internalType": "bool", "name": "upkeepNeeded", "type": "bool" }, { "internalType": "bytes", "name": "performData", "type": "bytes" }, { "internalType": "uint8", "name": "upkeepFailureReason", "type": "uint8" }, { "internalType": "uint256", "name": "gasUsed", "type": "uint256" }, { "internalType": "uint256", "name": "gasLimit", "type": "uint256" }, { "internalType": "uint256", "name": "fastGasWei", "type": "uint256" }, { "internalType": "uint256", "name": "linkNative", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "id", "type": "uint256" }, { "internalType": "bytes", "name": "payload", "type": "bytes" } ], "name": "executeCallback", "outputs": [ { "internalType": "bool", "name": "upkeepNeeded", "type": "bool" }, { "internalType": "bytes", "name": "performData", "type": "bytes" }, { "internalType": "uint8", "name": "upkeepFailureReason", "type": "uint8" }, { "internalType": "uint256", "name": "gasUsed", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "startIndex", "type": "uint256" }, { "internalType": "uint256", "name": "maxCount", "type": "uint256" } ], "name": "getActiveUpkeepIDs", "outputs": [ { "internalType": "uint256[]", "name": "", "type": "uint256[]" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "id", "type": "uint256" } ], "name": "getMinBalance", "outputs": [ { "internalType": "uint96", "name": "", "type": "uint96" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getState", "outputs": [ { "components": [ { "internalType": "uint32", "name": "nonce", "type": "uint32" }, { "internalType": "uint96", "name": "ownerLinkBalance", "type": "uint96" }, { "internalType": "uint256", "name": "expectedLinkBalance", "type": "uint256" }, { "internalType": "uint96", "name": "totalPremium", "type": "uint96" }, { "internalType": "uint256", "name": "numUpkeeps", "type": "uint256" }, { "internalType": "uint32", "name": "configCount", "type": "uint32" }, { "internalType": "uint32", "name": "latestConfigBlockNumber", "type": "uint32" }, { "internalType": "bytes32", "name": "latestConfigDigest", "type": "bytes32" }, { "internalType": "uint32", "name": "latestEpoch", "type": "uint32" }, { "internalType": "bool", "name": "paused", "type": "bool" } ], "internalType": "struct IAutomationV21PlusCommon.StateLegacy", "name": "state", "type": "tuple" }, { "components": [ { "internalType": "uint32", "name": "paymentPremiumPPB", "type": "uint32" }, { "internalType": "uint32", "name": "flatFeeMicroLink", "type": "uint32" }, { "internalType": "uint32", "name": "checkGasLimit", "type": "uint32" }, { "internalType": "uint24", "name": "stalenessSeconds", "type": "uint24" }, { "internalType": "uint16", "name": "gasCeilingMultiplier", "type": "uint16" }, { "internalType": "uint96", "name": "minUpkeepSpend", "type": "uint96" }, { "internalType": "uint32", "name": "maxPerformGas", "type": "uint32" }, { "internalType": "uint32", "name": "maxCheckDataSize", "type": "uint32" }, { "internalType": "uint32", "name": "maxPerformDataSize", "type": "uint32" }, { "internalType": "uint32", "name": "maxRevertDataSize", "type": "uint32" }, { "internalType": "uint256", "name": "fallbackGasPrice", "type": "uint256" }, { "internalType": "uint256", "name": "fallbackLinkPrice", "type": "uint256" }, { "internalType": "address", "name": "transcoder", "type": "address" }, { "internalType": "address[]", "name": "registrars", "type": "address[]" }, { "internalType": "address", "name": "upkeepPrivilegeManager", "type": "address" } ], "internalType": "struct IAutomationV21PlusCommon.OnchainConfigLegacy", "name": "config", "type": "tuple" }, { "internalType": "address[]", "name": "signers", "type": "address[]" }, { "internalType": "address[]", "name": "transmitters", "type": "address[]" }, { "internalType": "uint8", "name": "f", "type": "uint8" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "upkeepId", "type": "uint256" } ], "name": "getTriggerType", "outputs": [ { "internalType": "uint8", "name": "", "type": "uint8" } ], "stateMutability": "pure", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "id", "type": "uint256" } ], "name": "getUpkeep", "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": "upkeepInfo", "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": "bytes32", "name": "dedupKey", "type": "bytes32" } ], "name": "hasDedupKey", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "owner", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "pause", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "id", "type": "uint256" } ], "name": "pauseUpkeep", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "id", "type": "uint256" }, { "internalType": "bytes", "name": "newCheckData", "type": "bytes" } ], "name": "setUpkeepCheckData", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "id", "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": "newPrivilegeConfig", "type": "bytes" } ], "name": "setUpkeepPrivilegeConfig", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "id", "type": "uint256" }, { "internalType": "bytes", "name": "triggerConfig", "type": "bytes" } ], "name": "setUpkeepTriggerConfig", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "id", "type": "uint256" }, { "internalType": "bytes", "name": "performData", "type": "bytes" } ], "name": "simulatePerformUpkeep", "outputs": [ { "internalType": "bool", "name": "success", "type": "bool" }, { "internalType": "uint256", "name": "gasUsed", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "typeAndVersion", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "id", "type": "uint256" } ], "name": "unpauseUpkeep", "outputs": [], "stateMutability": "nonpayable", "type": "function" } ]