@chainlink/contracts
Version:
Chainlink smart contracts
525 lines (524 loc) • 10.4 kB
JSON
[
{
"inputs": [
{
"internalType": "contract LinkTokenInterface",
"name": "linkToken",
"type": "address"
},
{
"components": [
{
"internalType": "uint8",
"name": "maxBatchSize",
"type": "uint8"
},
{
"internalType": "uint24",
"name": "minPercentage",
"type": "uint24"
},
{
"internalType": "uint24",
"name": "targetPercentage",
"type": "uint24"
},
{
"internalType": "uint96",
"name": "maxTopUpAmount",
"type": "uint96"
}
],
"internalType": "struct UpkeepBalanceMonitor.Config",
"name": "config",
"type": "tuple"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [],
"name": "InvalidConfig",
"type": "error"
},
{
"inputs": [],
"name": "InvalidTopUpData",
"type": "error"
},
{
"inputs": [],
"name": "OnlyForwarderOrOwner",
"type": "error"
},
{
"anonymous": false,
"inputs": [
{
"components": [
{
"internalType": "uint8",
"name": "maxBatchSize",
"type": "uint8"
},
{
"internalType": "uint24",
"name": "minPercentage",
"type": "uint24"
},
{
"internalType": "uint24",
"name": "targetPercentage",
"type": "uint24"
},
{
"internalType": "uint96",
"name": "maxTopUpAmount",
"type": "uint96"
}
],
"indexed": false,
"internalType": "struct UpkeepBalanceMonitor.Config",
"name": "config",
"type": "tuple"
}
],
"name": "ConfigSet",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "forwarderAddress",
"type": "address"
}
],
"name": "ForwarderSet",
"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": 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": "uint256",
"name": "upkeepId",
"type": "uint256"
}
],
"name": "TopUpFailed",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "upkeepId",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint96",
"name": "amount",
"type": "uint96"
}
],
"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": "registryAddress",
"type": "address"
}
],
"name": "WatchListSet",
"type": "event"
},
{
"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": [],
"name": "getConfig",
"outputs": [
{
"components": [
{
"internalType": "uint8",
"name": "maxBatchSize",
"type": "uint8"
},
{
"internalType": "uint24",
"name": "minPercentage",
"type": "uint24"
},
{
"internalType": "uint24",
"name": "targetPercentage",
"type": "uint24"
},
{
"internalType": "uint96",
"name": "maxTopUpAmount",
"type": "uint96"
}
],
"internalType": "struct UpkeepBalanceMonitor.Config",
"name": "",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getForwarder",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getUnderfundedUpkeeps",
"outputs": [
{
"internalType": "uint256[]",
"name": "",
"type": "uint256[]"
},
{
"internalType": "address[]",
"name": "",
"type": "address[]"
},
{
"internalType": "uint96[]",
"name": "",
"type": "uint96[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getWatchList",
"outputs": [
{
"internalType": "address[]",
"name": "",
"type": "address[]"
},
{
"internalType": "uint256[][]",
"name": "",
"type": "uint256[][]"
}
],
"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": [
{
"components": [
{
"internalType": "uint8",
"name": "maxBatchSize",
"type": "uint8"
},
{
"internalType": "uint24",
"name": "minPercentage",
"type": "uint24"
},
{
"internalType": "uint24",
"name": "targetPercentage",
"type": "uint24"
},
{
"internalType": "uint96",
"name": "maxTopUpAmount",
"type": "uint96"
}
],
"internalType": "struct UpkeepBalanceMonitor.Config",
"name": "config",
"type": "tuple"
}
],
"name": "setConfig",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "forwarderAddress",
"type": "address"
}
],
"name": "setForwarder",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "registryAddress",
"type": "address"
},
{
"internalType": "uint256[]",
"name": "watchlist",
"type": "uint256[]"
}
],
"name": "setWatchList",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256[]",
"name": "upkeepIDs",
"type": "uint256[]"
},
{
"internalType": "address[]",
"name": "registryAddresses",
"type": "address[]"
},
{
"internalType": "uint96[]",
"name": "topUpAmounts",
"type": "uint96[]"
}
],
"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",
"name": "payee",
"type": "address"
}
],
"name": "withdraw",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
]