UNPKG

@chainlink/contracts

Version:

Chainlink smart contracts

1,673 lines (1,672 loc) 32.5 kB
[ { "inputs": [ { "internalType": "contract AutomationRegistryLogicC2_3", "name": "logicC", "type": "address" } ], "stateMutability": "nonpayable", "type": "constructor" }, { "inputs": [], "name": "ArrayHasNoEntries", "type": "error" }, { "inputs": [], "name": "CannotCancel", "type": "error" }, { "inputs": [], "name": "CheckDataExceedsLimit", "type": "error" }, { "inputs": [], "name": "ConfigDigestMismatch", "type": "error" }, { "inputs": [], "name": "DuplicateEntry", "type": "error" }, { "inputs": [], "name": "DuplicateSigners", "type": "error" }, { "inputs": [], "name": "GasLimitCanOnlyIncrease", "type": "error" }, { "inputs": [], "name": "GasLimitOutsideRange", "type": "error" }, { "inputs": [], "name": "IncorrectNumberOfFaultyOracles", "type": "error" }, { "inputs": [], "name": "IncorrectNumberOfSignatures", "type": "error" }, { "inputs": [], "name": "IncorrectNumberOfSigners", "type": "error" }, { "inputs": [], "name": "IndexOutOfRange", "type": "error" }, { "inputs": [ { "internalType": "uint256", "name": "available", "type": "uint256" }, { "internalType": "uint256", "name": "requested", "type": "uint256" } ], "name": "InsufficientBalance", "type": "error" }, { "inputs": [], "name": "InsufficientLinkLiquidity", "type": "error" }, { "inputs": [], "name": "InvalidDataLength", "type": "error" }, { "inputs": [], "name": "InvalidFeed", "type": "error" }, { "inputs": [], "name": "InvalidPayee", "type": "error" }, { "inputs": [], "name": "InvalidRecipient", "type": "error" }, { "inputs": [], "name": "InvalidReport", "type": "error" }, { "inputs": [], "name": "InvalidSigner", "type": "error" }, { "inputs": [], "name": "InvalidToken", "type": "error" }, { "inputs": [], "name": "InvalidTransmitter", "type": "error" }, { "inputs": [], "name": "InvalidTrigger", "type": "error" }, { "inputs": [], "name": "InvalidTriggerType", "type": "error" }, { "inputs": [], "name": "MigrationNotPermitted", "type": "error" }, { "inputs": [], "name": "MustSettleOffchain", "type": "error" }, { "inputs": [], "name": "MustSettleOnchain", "type": "error" }, { "inputs": [], "name": "NotAContract", "type": "error" }, { "inputs": [], "name": "OnlyActiveSigners", "type": "error" }, { "inputs": [], "name": "OnlyActiveTransmitters", "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": "OnlyCallableByProposedAdmin", "type": "error" }, { "inputs": [], "name": "OnlyCallableByProposedPayee", "type": "error" }, { "inputs": [], "name": "OnlyCallableByUpkeepPrivilegeManager", "type": "error" }, { "inputs": [], "name": "OnlyFinanceAdmin", "type": "error" }, { "inputs": [], "name": "OnlyPausedUpkeep", "type": "error" }, { "inputs": [], "name": "OnlySimulatedBackend", "type": "error" }, { "inputs": [], "name": "OnlyUnpausedUpkeep", "type": "error" }, { "inputs": [], "name": "ParameterLengthError", "type": "error" }, { "inputs": [], "name": "ReentrantCall", "type": "error" }, { "inputs": [], "name": "RegistryPaused", "type": "error" }, { "inputs": [], "name": "RepeatedSigner", "type": "error" }, { "inputs": [], "name": "RepeatedTransmitter", "type": "error" }, { "inputs": [ { "internalType": "bytes", "name": "reason", "type": "bytes" } ], "name": "TargetCheckReverted", "type": "error" }, { "inputs": [], "name": "TooManyOracles", "type": "error" }, { "inputs": [], "name": "TranscoderNotSet", "type": "error" }, { "inputs": [], "name": "TransferFailed", "type": "error" }, { "inputs": [], "name": "UpkeepAlreadyExists", "type": "error" }, { "inputs": [], "name": "UpkeepCancelled", "type": "error" }, { "inputs": [], "name": "UpkeepNotCanceled", "type": "error" }, { "inputs": [], "name": "UpkeepNotNeeded", "type": "error" }, { "inputs": [], "name": "ValueNotChanged", "type": "error" }, { "inputs": [], "name": "ZeroAddressNotAllowed", "type": "error" }, { "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" }, { "components": [ { "internalType": "uint32", "name": "gasFeePPB", "type": "uint32" }, { "internalType": "uint24", "name": "flatFeeMilliCents", "type": "uint24" } ], "indexed": false, "internalType": "struct AutomationRegistryBase2_3.BillingOverrides", "name": "overrides", "type": "tuple" } ], "name": "BillingConfigOverridden", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint256", "name": "id", "type": "uint256" } ], "name": "BillingConfigOverrideRemoved", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "contract IERC20Metadata", "name": "token", "type": "address" }, { "components": [ { "internalType": "uint32", "name": "gasFeePPB", "type": "uint32" }, { "internalType": "uint24", "name": "flatFeeMilliCents", "type": "uint24" }, { "internalType": "contract AggregatorV3Interface", "name": "priceFeed", "type": "address" }, { "internalType": "uint8", "name": "decimals", "type": "uint8" }, { "internalType": "uint256", "name": "fallbackPrice", "type": "uint256" }, { "internalType": "uint96", "name": "minSpend", "type": "uint96" } ], "indexed": false, "internalType": "struct AutomationRegistryBase2_3.BillingConfig", "name": "config", "type": "tuple" } ], "name": "BillingConfigSet", "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": "address", "name": "newModule", "type": "address" } ], "name": "ChainSpecificModuleUpdated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "bytes32", "name": "dedupKey", "type": "bytes32" } ], "name": "DedupKeyAdded", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "assetAddress", "type": "address" }, { "indexed": true, "internalType": "address", "name": "recipient", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "FeesWithdrawn", "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": false, "internalType": "address[]", "name": "payees", "type": "address[]" }, { "indexed": false, "internalType": "uint256[]", "name": "payments", "type": "uint256[]" } ], "name": "NOPsSettledOffchain", "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": "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" }, { "components": [ { "internalType": "uint96", "name": "gasChargeInBillingToken", "type": "uint96" }, { "internalType": "uint96", "name": "premiumInBillingToken", "type": "uint96" }, { "internalType": "uint96", "name": "gasReimbursementInJuels", "type": "uint96" }, { "internalType": "uint96", "name": "premiumInJuels", "type": "uint96" }, { "internalType": "contract IERC20Metadata", "name": "billingToken", "type": "address" }, { "internalType": "uint96", "name": "linkUSD", "type": "uint96" }, { "internalType": "uint96", "name": "nativeUSD", "type": "uint96" }, { "internalType": "uint96", "name": "billingUSD", "type": "uint96" } ], "indexed": false, "internalType": "struct AutomationRegistryBase2_3.PaymentReceipt", "name": "receipt", "type": "tuple" } ], "name": "UpkeepCharged", "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" }, { "stateMutability": "payable", "type": "fallback" }, { "inputs": [], "name": "acceptOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "id", "type": "uint256" } ], "name": "acceptUpkeepAdmin", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "id", "type": "uint256" }, { "internalType": "uint96", "name": "amount", "type": "uint96" } ], "name": "addFunds", "outputs": [], "stateMutability": "payable", "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": "enum AutomationRegistryBase2_3.UpkeepFailureReason", "name": "upkeepFailureReason", "type": "uint8" }, { "internalType": "uint256", "name": "gasUsed", "type": "uint256" } ], "stateMutability": "nonpayable", "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": "enum AutomationRegistryBase2_3.UpkeepFailureReason", "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": "linkUSD", "type": "uint256" } ], "stateMutability": "nonpayable", "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": "enum AutomationRegistryBase2_3.UpkeepFailureReason", "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": "linkUSD", "type": "uint256" } ], "stateMutability": "nonpayable", "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": "enum AutomationRegistryBase2_3.UpkeepFailureReason", "name": "upkeepFailureReason", "type": "uint8" }, { "internalType": "uint256", "name": "gasUsed", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "fallbackTo", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "owner", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "id", "type": "uint256" } ], "name": "pauseUpkeep", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "id", "type": "uint256" } ], "name": "removeBillingOverrides", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "id", "type": "uint256" }, { "components": [ { "internalType": "uint32", "name": "gasFeePPB", "type": "uint32" }, { "internalType": "uint24", "name": "flatFeeMilliCents", "type": "uint24" } ], "internalType": "struct AutomationRegistryBase2_3.BillingOverrides", "name": "billingOverrides", "type": "tuple" } ], "name": "setBillingOverrides", "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": "id", "type": "uint256" }, { "internalType": "bytes", "name": "config", "type": "bytes" } ], "name": "setUpkeepOffchainConfig", "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": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "to", "type": "address" } ], "name": "transferOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "id", "type": "uint256" }, { "internalType": "address", "name": "proposed", "type": "address" } ], "name": "transferUpkeepAdmin", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "id", "type": "uint256" } ], "name": "unpauseUpkeep", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "contract IERC20Metadata", "name": "asset", "type": "address" }, { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "withdrawERC20Fees", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "id", "type": "uint256" }, { "internalType": "address", "name": "to", "type": "address" } ], "name": "withdrawFunds", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "withdrawLink", "outputs": [], "stateMutability": "nonpayable", "type": "function" } ]