UNPKG

@chainlink/contracts

Version:

Chainlink smart contracts

1,487 lines (1,486 loc) 30 kB
[ { "inputs": [ { "internalType": "address", "name": "link", "type": "address" }, { "internalType": "address", "name": "linkEthFeed", "type": "address" }, { "internalType": "address", "name": "fastGasFeed", "type": "address" }, { "components": [ { "internalType": "uint32", "name": "paymentPremiumPPB", "type": "uint32" }, { "internalType": "uint32", "name": "flatFeeMicroLink", "type": "uint32" }, { "internalType": "uint24", "name": "blockCountPerTurn", "type": "uint24" }, { "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": "uint256", "name": "fallbackGasPrice", "type": "uint256" }, { "internalType": "uint256", "name": "fallbackLinkPrice", "type": "uint256" }, { "internalType": "address", "name": "transcoder", "type": "address" }, { "internalType": "address", "name": "registrar", "type": "address" } ], "internalType": "struct Config", "name": "config", "type": "tuple" } ], "stateMutability": "nonpayable", "type": "constructor" }, { "inputs": [], "name": "ArrayHasNoEntries", "type": "error" }, { "inputs": [], "name": "CannotCancel", "type": "error" }, { "inputs": [], "name": "DuplicateEntry", "type": "error" }, { "inputs": [], "name": "GasLimitCanOnlyIncrease", "type": "error" }, { "inputs": [], "name": "GasLimitOutsideRange", "type": "error" }, { "inputs": [], "name": "IndexOutOfRange", "type": "error" }, { "inputs": [], "name": "InsufficientFunds", "type": "error" }, { "inputs": [], "name": "InvalidDataLength", "type": "error" }, { "inputs": [], "name": "InvalidPayee", "type": "error" }, { "inputs": [], "name": "InvalidRecipient", "type": "error" }, { "inputs": [], "name": "KeepersMustTakeTurns", "type": "error" }, { "inputs": [], "name": "MigrationNotPermitted", "type": "error" }, { "inputs": [], "name": "NotAContract", "type": "error" }, { "inputs": [], "name": "OnlyActiveKeepers", "type": "error" }, { "inputs": [], "name": "OnlyCallableByAdmin", "type": "error" }, { "inputs": [], "name": "OnlyCallableByLINKToken", "type": "error" }, { "inputs": [], "name": "OnlyCallableByOwnerOrAdmin", "type": "error" }, { "inputs": [], "name": "OnlyCallableByOwnerOrRegistrar", "type": "error" }, { "inputs": [], "name": "OnlyCallableByPayee", "type": "error" }, { "inputs": [], "name": "OnlyCallableByProposedPayee", "type": "error" }, { "inputs": [], "name": "OnlySimulatedBackend", "type": "error" }, { "inputs": [], "name": "ParameterLengthError", "type": "error" }, { "inputs": [], "name": "PaymentGreaterThanAllLINK", "type": "error" }, { "inputs": [ { "internalType": "bytes", "name": "reason", "type": "bytes" } ], "name": "TargetCheckReverted", "type": "error" }, { "inputs": [], "name": "TranscoderNotSet", "type": "error" }, { "inputs": [], "name": "UpkeepNotActive", "type": "error" }, { "inputs": [], "name": "UpkeepNotCanceled", "type": "error" }, { "inputs": [], "name": "UpkeepNotNeeded", "type": "error" }, { "inputs": [], "name": "ValueNotChanged", "type": "error" }, { "anonymous": false, "inputs": [ { "components": [ { "internalType": "uint32", "name": "paymentPremiumPPB", "type": "uint32" }, { "internalType": "uint32", "name": "flatFeeMicroLink", "type": "uint32" }, { "internalType": "uint24", "name": "blockCountPerTurn", "type": "uint24" }, { "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": "uint256", "name": "fallbackGasPrice", "type": "uint256" }, { "internalType": "uint256", "name": "fallbackLinkPrice", "type": "uint256" }, { "internalType": "address", "name": "transcoder", "type": "address" }, { "internalType": "address", "name": "registrar", "type": "address" } ], "indexed": false, "internalType": "struct Config", "name": "config", "type": "tuple" } ], "name": "ConfigSet", "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": false, "internalType": "address[]", "name": "keepers", "type": "address[]" }, { "indexed": false, "internalType": "address[]", "name": "payees", "type": "address[]" } ], "name": "KeepersUpdated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint96", "name": "amount", "type": "uint96" } ], "name": "OwnerFundsWithdrawn", "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": true, "internalType": "address", "name": "keeper", "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": "keeper", "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": "keeper", "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": 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": "uint64", "name": "atBlockHeight", "type": "uint64" } ], "name": "UpkeepCanceled", "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": true, "internalType": "bool", "name": "success", "type": "bool" }, { "indexed": true, "internalType": "address", "name": "from", "type": "address" }, { "indexed": false, "internalType": "uint96", "name": "payment", "type": "uint96" }, { "indexed": false, "internalType": "bytes", "name": "performData", "type": "bytes" } ], "name": "UpkeepPerformed", "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": "executeGas", "type": "uint32" }, { "indexed": false, "internalType": "address", "name": "admin", "type": "address" } ], "name": "UpkeepRegistered", "type": "event" }, { "inputs": [], "name": "FAST_GAS_FEED", "outputs": [ { "internalType": "contract AggregatorV3Interface", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "LINK", "outputs": [ { "internalType": "contract LinkTokenInterface", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "LINK_ETH_FEED", "outputs": [ { "internalType": "contract AggregatorV3Interface", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "acceptOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "keeper", "type": "address" } ], "name": "acceptPayeeship", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "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": "address", "name": "from", "type": "address" } ], "name": "checkUpkeep", "outputs": [ { "internalType": "bytes", "name": "performData", "type": "bytes" }, { "internalType": "uint256", "name": "maxLinkPayment", "type": "uint256" }, { "internalType": "uint256", "name": "gasLimit", "type": "uint256" }, { "internalType": "uint256", "name": "adjustedGasWei", "type": "uint256" }, { "internalType": "uint256", "name": "linkEth", "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": "address", "name": "query", "type": "address" } ], "name": "getKeeperInfo", "outputs": [ { "internalType": "address", "name": "payee", "type": "address" }, { "internalType": "bool", "name": "active", "type": "bool" }, { "internalType": "uint96", "name": "balance", "type": "uint96" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "gasLimit", "type": "uint256" } ], "name": "getMaxPaymentForGas", "outputs": [ { "internalType": "uint96", "name": "maxPayment", "type": "uint96" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "id", "type": "uint256" } ], "name": "getMinBalanceForUpkeep", "outputs": [ { "internalType": "uint96", "name": "minBalance", "type": "uint96" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "peer", "type": "address" } ], "name": "getPeerRegistryMigrationPermission", "outputs": [ { "internalType": "enum KeeperRegistry1_2.MigrationPermission", "name": "", "type": "uint8" } ], "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": "uint256", "name": "numUpkeeps", "type": "uint256" } ], "internalType": "struct State", "name": "state", "type": "tuple" }, { "components": [ { "internalType": "uint32", "name": "paymentPremiumPPB", "type": "uint32" }, { "internalType": "uint32", "name": "flatFeeMicroLink", "type": "uint32" }, { "internalType": "uint24", "name": "blockCountPerTurn", "type": "uint24" }, { "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": "uint256", "name": "fallbackGasPrice", "type": "uint256" }, { "internalType": "uint256", "name": "fallbackLinkPrice", "type": "uint256" }, { "internalType": "address", "name": "transcoder", "type": "address" }, { "internalType": "address", "name": "registrar", "type": "address" } ], "internalType": "struct Config", "name": "config", "type": "tuple" }, { "internalType": "address[]", "name": "keepers", "type": "address[]" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "id", "type": "uint256" } ], "name": "getUpkeep", "outputs": [ { "internalType": "address", "name": "target", "type": "address" }, { "internalType": "uint32", "name": "executeGas", "type": "uint32" }, { "internalType": "bytes", "name": "checkData", "type": "bytes" }, { "internalType": "uint96", "name": "balance", "type": "uint96" }, { "internalType": "address", "name": "lastKeeper", "type": "address" }, { "internalType": "address", "name": "admin", "type": "address" }, { "internalType": "uint64", "name": "maxValidBlocknumber", "type": "uint64" }, { "internalType": "uint96", "name": "amountSpent", "type": "uint96" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256[]", "name": "ids", "type": "uint256[]" }, { "internalType": "address", "name": "destination", "type": "address" } ], "name": "migrateUpkeeps", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "sender", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" }, { "internalType": "bytes", "name": "data", "type": "bytes" } ], "name": "onTokenTransfer", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "owner", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "pause", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "paused", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "id", "type": "uint256" }, { "internalType": "bytes", "name": "performData", "type": "bytes" } ], "name": "performUpkeep", "outputs": [ { "internalType": "bool", "name": "success", "type": "bool" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes", "name": "encodedUpkeeps", "type": "bytes" } ], "name": "receiveUpkeeps", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "recoverFunds", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "target", "type": "address" }, { "internalType": "uint32", "name": "gasLimit", "type": "uint32" }, { "internalType": "address", "name": "admin", "type": "address" }, { "internalType": "bytes", "name": "checkData", "type": "bytes" } ], "name": "registerUpkeep", "outputs": [ { "internalType": "uint256", "name": "id", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "components": [ { "internalType": "uint32", "name": "paymentPremiumPPB", "type": "uint32" }, { "internalType": "uint32", "name": "flatFeeMicroLink", "type": "uint32" }, { "internalType": "uint24", "name": "blockCountPerTurn", "type": "uint24" }, { "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": "uint256", "name": "fallbackGasPrice", "type": "uint256" }, { "internalType": "uint256", "name": "fallbackLinkPrice", "type": "uint256" }, { "internalType": "address", "name": "transcoder", "type": "address" }, { "internalType": "address", "name": "registrar", "type": "address" } ], "internalType": "struct Config", "name": "config", "type": "tuple" } ], "name": "setConfig", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address[]", "name": "keepers", "type": "address[]" }, { "internalType": "address[]", "name": "payees", "type": "address[]" } ], "name": "setKeepers", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "peer", "type": "address" }, { "internalType": "enum KeeperRegistry1_2.MigrationPermission", "name": "permission", "type": "uint8" } ], "name": "setPeerRegistryMigrationPermission", "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": "address", "name": "to", "type": "address" } ], "name": "transferOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "keeper", "type": "address" }, { "internalType": "address", "name": "proposed", "type": "address" } ], "name": "transferPayeeship", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "typeAndVersion", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "unpause", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "upkeepTranscoderVersion", "outputs": [ { "internalType": "enum UpkeepFormat", "name": "", "type": "uint8" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "id", "type": "uint256" }, { "internalType": "address", "name": "to", "type": "address" } ], "name": "withdrawFunds", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "withdrawOwnerFunds", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "from", "type": "address" }, { "internalType": "address", "name": "to", "type": "address" } ], "name": "withdrawPayment", "outputs": [], "stateMutability": "nonpayable", "type": "function" } ]