@chainlink/contracts
Version:
Chainlink smart contracts
947 lines (946 loc) • 17.9 kB
JSON
[
{
"inputs": [
{
"internalType": "address",
"name": "admin",
"type": "address"
},
{
"internalType": "contract IERC20",
"name": "linkToken",
"type": "address"
},
{
"internalType": "uint256",
"name": "minWaitPeriodSeconds",
"type": "uint256"
},
{
"internalType": "uint16",
"name": "maxPerform",
"type": "uint16"
},
{
"internalType": "uint16",
"name": "maxCheck",
"type": "uint16"
},
{
"internalType": "uint8",
"name": "upkeepInterval",
"type": "uint8"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [
{
"internalType": "address",
"name": "duplicate",
"type": "address"
}
],
"name": "DuplicateAddress",
"type": "error"
},
{
"inputs": [
{
"internalType": "address",
"name": "target",
"type": "address"
}
],
"name": "InvalidAddress",
"type": "error"
},
{
"inputs": [],
"name": "InvalidChainSelector",
"type": "error"
},
{
"inputs": [
{
"internalType": "address",
"name": "lt",
"type": "address"
}
],
"name": "InvalidLinkTokenAddress",
"type": "error"
},
{
"inputs": [
{
"internalType": "uint16",
"name": "maxCheck",
"type": "uint16"
}
],
"name": "InvalidMaxCheck",
"type": "error"
},
{
"inputs": [
{
"internalType": "uint96",
"name": "minBalance",
"type": "uint96"
}
],
"name": "InvalidMinBalance",
"type": "error"
},
{
"inputs": [
{
"internalType": "uint96",
"name": "topUpAmount",
"type": "uint96"
}
],
"name": "InvalidTopUpAmount",
"type": "error"
},
{
"inputs": [
{
"internalType": "uint8",
"name": "upkeepInterval",
"type": "uint8"
}
],
"name": "InvalidUpkeepInterval",
"type": "error"
},
{
"inputs": [],
"name": "InvalidWatchList",
"type": "error"
},
{
"inputs": [
{
"internalType": "uint16",
"name": "maxPerform",
"type": "uint16"
}
],
"name": "InvalixMaxPerform",
"type": "error"
},
{
"inputs": [],
"name": "ReentrantCall",
"type": "error"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "addr",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "oldBalance",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "newBalance",
"type": "uint256"
}
],
"name": "BalanceUpdated",
"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": "uint256",
"name": "oldMaxCheck",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "newMaxCheck",
"type": "uint256"
}
],
"name": "MaxCheckSet",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "oldMaxPerform",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "newMaxPerform",
"type": "uint256"
}
],
"name": "MaxPerformSet",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "s_minWaitPeriodSeconds",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "minWaitPeriodSeconds",
"type": "uint256"
}
],
"name": "MinWaitPeriodSet",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "Paused",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
},
{
"indexed": true,
"internalType": "bytes32",
"name": "previousAdminRole",
"type": "bytes32"
},
{
"indexed": true,
"internalType": "bytes32",
"name": "newAdminRole",
"type": "bytes32"
}
],
"name": "RoleAdminChanged",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
},
{
"indexed": true,
"internalType": "address",
"name": "account",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "sender",
"type": "address"
}
],
"name": "RoleGranted",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
},
{
"indexed": true,
"internalType": "address",
"name": "account",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "sender",
"type": "address"
}
],
"name": "RoleRevoked",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "topUpAddress",
"type": "address"
}
],
"name": "TopUpBlocked",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "recipient",
"type": "address"
}
],
"name": "TopUpFailed",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "topUpAddress",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "TopUpSucceeded",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "addr",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "oldTopUpAmount",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "newTopUpAmount",
"type": "uint256"
}
],
"name": "TopUpUpdated",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "Unpaused",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "oldUpkeepInterval",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "newUpkeepInterval",
"type": "uint256"
}
],
"name": "UpkeepIntervalSet",
"type": "event"
},
{
"anonymous": false,
"inputs": [],
"name": "WatchlistUpdated",
"type": "event"
},
{
"inputs": [],
"name": "DEFAULT_ADMIN_ROLE",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "targetAddress",
"type": "address"
},
{
"internalType": "uint64",
"name": "dstChainSelector",
"type": "uint64"
}
],
"name": "addToWatchListOrDecommission",
"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": "address",
"name": "targetAddress",
"type": "address"
}
],
"name": "getAccountInfo",
"outputs": [
{
"internalType": "bool",
"name": "isActive",
"type": "bool"
},
{
"internalType": "uint96",
"name": "minBalance",
"type": "uint96"
},
{
"internalType": "uint96",
"name": "topUpAmount",
"type": "uint96"
},
{
"internalType": "uint56",
"name": "lastTopUpTimestamp",
"type": "uint56"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getMaxCheck",
"outputs": [
{
"internalType": "uint16",
"name": "",
"type": "uint16"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getMaxPerform",
"outputs": [
{
"internalType": "uint16",
"name": "",
"type": "uint16"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getMinWaitPeriodSeconds",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint64",
"name": "dstChainSelector",
"type": "uint64"
}
],
"name": "getOnRampAddressAtChainSelector",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
}
],
"name": "getRoleAdmin",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getUpkeepInterval",
"outputs": [
{
"internalType": "uint8",
"name": "",
"type": "uint8"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getWatchList",
"outputs": [
{
"internalType": "address[]",
"name": "",
"type": "address[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
},
{
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "grantRole",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
},
{
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "hasRole",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"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": [
{
"internalType": "address",
"name": "targetAddress",
"type": "address"
}
],
"name": "removeFromWatchList",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
},
{
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "renounceRole",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
},
{
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "revokeRole",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "sampleUnderfundedAddresses",
"outputs": [
{
"internalType": "address[]",
"name": "",
"type": "address[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint16",
"name": "maxCheck",
"type": "uint16"
}
],
"name": "setMaxCheck",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint16",
"name": "maxPerform",
"type": "uint16"
}
],
"name": "setMaxPerform",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "target",
"type": "address"
},
{
"internalType": "uint96",
"name": "minBalance",
"type": "uint96"
}
],
"name": "setMinBalance",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "minWaitPeriodSeconds",
"type": "uint256"
}
],
"name": "setMinWaitPeriodSeconds",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "target",
"type": "address"
},
{
"internalType": "uint96",
"name": "topUpAmount",
"type": "uint96"
}
],
"name": "setTopUpAmount",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint8",
"name": "upkeepInterval",
"type": "uint8"
}
],
"name": "setUpkeepInterval",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address[]",
"name": "addresses",
"type": "address[]"
},
{
"internalType": "uint96[]",
"name": "minBalances",
"type": "uint96[]"
},
{
"internalType": "uint96[]",
"name": "topUpAmounts",
"type": "uint96[]"
},
{
"internalType": "uint64[]",
"name": "dstChainSelectors",
"type": "uint64[]"
}
],
"name": "setWatchList",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes4",
"name": "interfaceId",
"type": "bytes4"
}
],
"name": "supportsInterface",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address[]",
"name": "targetAddresses",
"type": "address[]"
}
],
"name": "topUp",
"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"
}
]