UNPKG

@chainlink/contracts

Version:

Chainlink smart contracts

467 lines (466 loc) 9.02 kB
[ { "inputs": [ { "components": [ { "internalType": "bool", "name": "enabled", "type": "bool" }, { "internalType": "address", "name": "signerPublicKey", "type": "address" } ], "internalType": "struct TermsOfServiceAllowListConfig", "name": "config", "type": "tuple" }, { "internalType": "address[]", "name": "initialAllowedSenders", "type": "address[]" }, { "internalType": "address[]", "name": "initialBlockedSenders", "type": "address[]" } ], "stateMutability": "nonpayable", "type": "constructor" }, { "inputs": [], "name": "InvalidCalldata", "type": "error" }, { "inputs": [], "name": "InvalidSignature", "type": "error" }, { "inputs": [], "name": "InvalidUsage", "type": "error" }, { "inputs": [], "name": "RecipientIsBlocked", "type": "error" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "address", "name": "user", "type": "address" } ], "name": "AddedAccess", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "address", "name": "user", "type": "address" } ], "name": "BlockedAccess", "type": "event" }, { "anonymous": false, "inputs": [ { "components": [ { "internalType": "bool", "name": "enabled", "type": "bool" }, { "internalType": "address", "name": "signerPublicKey", "type": "address" } ], "indexed": false, "internalType": "struct TermsOfServiceAllowListConfig", "name": "config", "type": "tuple" } ], "name": "ConfigUpdated", "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": "user", "type": "address" } ], "name": "UnblockedAccess", "type": "event" }, { "inputs": [], "name": "acceptOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "acceptor", "type": "address" }, { "internalType": "address", "name": "recipient", "type": "address" }, { "internalType": "bytes32", "name": "r", "type": "bytes32" }, { "internalType": "bytes32", "name": "s", "type": "bytes32" }, { "internalType": "uint8", "name": "v", "type": "uint8" } ], "name": "acceptTermsOfService", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "sender", "type": "address" } ], "name": "blockSender", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "getAllAllowedSenders", "outputs": [ { "internalType": "address[]", "name": "", "type": "address[]" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getAllowedSendersCount", "outputs": [ { "internalType": "uint64", "name": "", "type": "uint64" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint64", "name": "allowedSenderIdxStart", "type": "uint64" }, { "internalType": "uint64", "name": "allowedSenderIdxEnd", "type": "uint64" } ], "name": "getAllowedSendersInRange", "outputs": [ { "internalType": "address[]", "name": "allowedSenders", "type": "address[]" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getBlockedSendersCount", "outputs": [ { "internalType": "uint64", "name": "", "type": "uint64" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint64", "name": "blockedSenderIdxStart", "type": "uint64" }, { "internalType": "uint64", "name": "blockedSenderIdxEnd", "type": "uint64" } ], "name": "getBlockedSendersInRange", "outputs": [ { "internalType": "address[]", "name": "blockedSenders", "type": "address[]" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getConfig", "outputs": [ { "components": [ { "internalType": "bool", "name": "enabled", "type": "bool" }, { "internalType": "address", "name": "signerPublicKey", "type": "address" } ], "internalType": "struct TermsOfServiceAllowListConfig", "name": "", "type": "tuple" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "acceptor", "type": "address" }, { "internalType": "address", "name": "recipient", "type": "address" } ], "name": "getMessage", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "stateMutability": "pure", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "user", "type": "address" }, { "internalType": "bytes", "name": "", "type": "bytes" } ], "name": "hasAccess", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "sender", "type": "address" } ], "name": "isBlockedSender", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "owner", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "to", "type": "address" } ], "name": "transferOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "typeAndVersion", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "sender", "type": "address" } ], "name": "unblockSender", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "components": [ { "internalType": "bool", "name": "enabled", "type": "bool" }, { "internalType": "address", "name": "signerPublicKey", "type": "address" } ], "internalType": "struct TermsOfServiceAllowListConfig", "name": "config", "type": "tuple" } ], "name": "updateConfig", "outputs": [], "stateMutability": "nonpayable", "type": "function" } ]