@chainlink/contracts
Version:
Chainlink smart contracts
371 lines (370 loc) • 7.35 kB
JSON
[
{
"inputs": [
{
"internalType": "address",
"name": "_vrfCoordinator",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [
{
"internalType": "address",
"name": "have",
"type": "address"
},
{
"internalType": "address",
"name": "want",
"type": "address"
}
],
"name": "OnlyCoordinatorCanFulfill",
"type": "error"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint64",
"name": "subId",
"type": "uint64"
},
{
"indexed": false,
"internalType": "address",
"name": "consumer",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "SubscriptionCreatedFundedAndConsumerAdded",
"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": [
{
"internalType": "uint256",
"name": "_requestId",
"type": "uint256"
}
],
"name": "getRequestStatus",
"outputs": [
{
"internalType": "bool",
"name": "fulfilled",
"type": "bool"
},
{
"internalType": "uint256[]",
"name": "randomWords",
"type": "uint256[]"
},
{
"internalType": "uint256",
"name": "requestTimestamp",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "fulfilmentTimestamp",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "requestBlockNumber",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "fulfilmentBlockNumber",
"type": "uint256"
}
],
"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": "uint64",
"name": "_subId",
"type": "uint64"
},
{
"internalType": "uint16",
"name": "_requestConfirmations",
"type": "uint16"
},
{
"internalType": "bytes32",
"name": "_keyHash",
"type": "bytes32"
},
{
"internalType": "uint32",
"name": "_callbackGasLimit",
"type": "uint32"
},
{
"internalType": "uint32",
"name": "_numWords",
"type": "uint32"
},
{
"internalType": "uint16",
"name": "_requestCount",
"type": "uint16"
}
],
"name": "requestRandomWords",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint16",
"name": "_requestConfirmations",
"type": "uint16"
},
{
"internalType": "bytes32",
"name": "_keyHash",
"type": "bytes32"
},
{
"internalType": "uint32",
"name": "_callbackGasLimit",
"type": "uint32"
},
{
"internalType": "uint32",
"name": "_numWords",
"type": "uint32"
},
{
"internalType": "uint16",
"name": "_requestCount",
"type": "uint16"
},
{
"internalType": "uint256",
"name": "_subTopUpAmount",
"type": "uint256"
},
{
"internalType": "address",
"name": "_link",
"type": "address"
}
],
"name": "requestRandomWordsWithForceFulfill",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "reset",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "s_averageFulfillmentInMillions",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "s_fastestFulfillment",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "s_lastRequestId",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "s_requestCount",
"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": "uint256",
"name": "requestTimestamp",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "fulfilmentTimestamp",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "requestBlockNumber",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "fulfilmentBlockNumber",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "s_responseCount",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "s_slowestFulfillment",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint64",
"name": "_subId",
"type": "uint64"
},
{
"internalType": "uint256",
"name": "_amount",
"type": "uint256"
},
{
"internalType": "address",
"name": "_link",
"type": "address"
}
],
"name": "topUpSubscription",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
]