UNPKG

@chainlink/contracts

Version:

Chainlink smart contracts

607 lines (606 loc) 11.6 kB
[ { "inputs": [ { "internalType": "address", "name": "linkTokenAddress", "type": "address" }, { "internalType": "address", "name": "coordinatorAddress", "type": "address" }, { "internalType": "address", "name": "keeperRegistryAddress", "type": "address" }, { "internalType": "uint256", "name": "minWaitPeriodSeconds", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "constructor" }, { "inputs": [ { "internalType": "uint64", "name": "duplicate", "type": "uint64" } ], "name": "DuplicateSubcriptionId", "type": "error" }, { "inputs": [], "name": "InvalidWatchList", "type": "error" }, { "inputs": [], "name": "OnlyKeeperRegistry", "type": "error" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "amountAdded", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "newBalance", "type": "uint256" }, { "indexed": false, "internalType": "address", "name": "sender", "type": "address" } ], "name": "FundsAdded", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "amountWithdrawn", "type": "uint256" }, { "indexed": false, "internalType": "address", "name": "payee", "type": "address" } ], "name": "FundsWithdrawn", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "address", "name": "oldAddress", "type": "address" }, { "indexed": false, "internalType": "address", "name": "newAddress", "type": "address" } ], "name": "KeeperRegistryAddressUpdated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "address", "name": "oldAddress", "type": "address" }, { "indexed": false, "internalType": "address", "name": "newAddress", "type": "address" } ], "name": "LinkTokenAddressUpdated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "oldMinWaitPeriod", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "newMinWaitPeriod", "type": "uint256" } ], "name": "MinWaitPeriodUpdated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "lastId", "type": "uint256" } ], "name": "OutOfGas", "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": "uint64", "name": "subscriptionId", "type": "uint64" } ], "name": "TopUpFailed", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint64", "name": "subscriptionId", "type": "uint64" } ], "name": "TopUpSucceeded", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "address", "name": "account", "type": "address" } ], "name": "Unpaused", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "address", "name": "oldAddress", "type": "address" }, { "indexed": false, "internalType": "address", "name": "newAddress", "type": "address" } ], "name": "VRFCoordinatorV2AddressUpdated", "type": "event" }, { "inputs": [], "name": "COORDINATOR", "outputs": [ { "internalType": "contract VRFCoordinatorV2Interface", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "LINKTOKEN", "outputs": [ { "internalType": "contract LinkTokenInterface", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "acceptOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes", "name": "", "type": "bytes" } ], "name": "checkUpkeep", "outputs": [ { "internalType": "bool", "name": "upkeepNeeded", "type": "bool" }, { "internalType": "bytes", "name": "performData", "type": "bytes" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint64", "name": "subscriptionId", "type": "uint64" } ], "name": "getSubscriptionInfo", "outputs": [ { "internalType": "bool", "name": "isActive", "type": "bool" }, { "internalType": "uint96", "name": "minBalanceJuels", "type": "uint96" }, { "internalType": "uint96", "name": "topUpAmountJuels", "type": "uint96" }, { "internalType": "uint56", "name": "lastTopUpTimestamp", "type": "uint56" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getUnderfundedSubscriptions", "outputs": [ { "internalType": "uint64[]", "name": "", "type": "uint64[]" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getWatchList", "outputs": [ { "internalType": "uint64[]", "name": "", "type": "uint64[]" } ], "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": [], "name": "paused", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes", "name": "performData", "type": "bytes" } ], "name": "performUpkeep", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "s_keeperRegistryAddress", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "s_minWaitPeriodSeconds", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "name": "s_watchList", "outputs": [ { "internalType": "uint64", "name": "", "type": "uint64" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "keeperRegistryAddress", "type": "address" } ], "name": "setKeeperRegistryAddress", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "linkTokenAddress", "type": "address" } ], "name": "setLinkTokenAddress", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "period", "type": "uint256" } ], "name": "setMinWaitPeriodSeconds", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "coordinatorAddress", "type": "address" } ], "name": "setVRFCoordinatorV2Address", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint64[]", "name": "subscriptionIds", "type": "uint64[]" }, { "internalType": "uint96[]", "name": "minBalancesJuels", "type": "uint96[]" }, { "internalType": "uint96[]", "name": "topUpAmountsJuels", "type": "uint96[]" } ], "name": "setWatchList", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint64[]", "name": "needsFunding", "type": "uint64[]" } ], "name": "topUp", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "to", "type": "address" } ], "name": "transferOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "unpause", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "amount", "type": "uint256" }, { "internalType": "address payable", "name": "payee", "type": "address" } ], "name": "withdraw", "outputs": [], "stateMutability": "nonpayable", "type": "function" } ]