UNPKG

@chainlink/contracts

Version:

Chainlink smart contracts

393 lines (392 loc) 7.48 kB
[ { "inputs": [ { "internalType": "address", "name": "vrfCoordinator", "type": "address" }, { "internalType": "address", "name": "link", "type": "address" } ], "stateMutability": "nonpayable", "type": "constructor" }, { "inputs": [ { "internalType": "address", "name": "have", "type": "address" }, { "internalType": "address", "name": "want", "type": "address" } ], "name": "OnlyCoordinatorCanFulfill", "type": "error" }, { "inputs": [ { "internalType": "address", "name": "have", "type": "address" }, { "internalType": "address", "name": "owner", "type": "address" }, { "internalType": "address", "name": "coordinator", "type": "address" } ], "name": "OnlyOwnerOrCoordinator", "type": "error" }, { "inputs": [], "name": "ZeroAddress", "type": "error" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "address", "name": "vrfCoordinator", "type": "address" } ], "name": "CoordinatorSet", "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" }, { "inputs": [], "name": "acceptOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint96", "name": "amount", "type": "uint96" } ], "name": "createSubscriptionAndFund", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "createSubscriptionAndFundNative", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "requestId", "type": "uint256" }, { "internalType": "uint256", "name": "idx", "type": "uint256" } ], "name": "getRandomness", "outputs": [ { "internalType": "uint256", "name": "randomWord", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "owner", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "requestId", "type": "uint256" }, { "internalType": "uint256[]", "name": "randomWords", "type": "uint256[]" } ], "name": "rawFulfillRandomWords", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint32", "name": "callbackGasLimit", "type": "uint32" }, { "internalType": "uint16", "name": "requestConfirmations", "type": "uint16" }, { "internalType": "uint32", "name": "numWords", "type": "uint32" }, { "internalType": "bytes32", "name": "keyHash", "type": "bytes32" }, { "internalType": "bool", "name": "nativePayment", "type": "bool" } ], "name": "requestRandomWords", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "s_linkToken", "outputs": [ { "internalType": "contract LinkTokenInterface", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "s_recentRequestId", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "name": "s_requests", "outputs": [ { "internalType": "bool", "name": "fulfilled", "type": "bool" }, { "internalType": "address", "name": "requester", "type": "address" }, { "internalType": "uint256", "name": "requestId", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "s_subId", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "s_vrfCoordinator", "outputs": [ { "internalType": "contract IVRFCoordinatorV2Plus", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "s_vrfCoordinatorApiV1", "outputs": [ { "internalType": "contract IVRFCoordinatorV2Plus", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_vrfCoordinator", "type": "address" } ], "name": "setCoordinator", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "subId", "type": "uint256" } ], "name": "setSubId", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint96", "name": "amount", "type": "uint96" } ], "name": "topUpSubscription", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "topUpSubscriptionNative", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "to", "type": "address" } ], "name": "transferOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address[]", "name": "consumers", "type": "address[]" } ], "name": "updateSubscription", "outputs": [], "stateMutability": "nonpayable", "type": "function" } ]