@chainlink/contracts
Version:
Chainlink smart contracts
388 lines (387 loc) • 7.53 kB
JSON
[
{
"inputs": [
{
"internalType": "address",
"name": "_link",
"type": "address"
},
{
"internalType": "address",
"name": "_vrfV2Wrapper",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"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": "uint256",
"name": "requestId",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256[]",
"name": "randomWords",
"type": "uint256[]"
},
{
"indexed": false,
"internalType": "uint256",
"name": "payment",
"type": "uint256"
}
],
"name": "WrappedRequestFulfilled",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "requestId",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "paid",
"type": "uint256"
}
],
"name": "WrapperRequestMade",
"type": "event"
},
{
"inputs": [],
"name": "acceptOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_requestId",
"type": "uint256"
}
],
"name": "getRequestStatus",
"outputs": [
{
"internalType": "uint256",
"name": "paid",
"type": "uint256"
},
{
"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": [],
"name": "i_vrfV2Wrapper",
"outputs": [
{
"internalType": "contract VRFV2WrapperInterface",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint32",
"name": "_callbackGasLimit",
"type": "uint32"
},
{
"internalType": "uint16",
"name": "_requestConfirmations",
"type": "uint16"
},
{
"internalType": "uint32",
"name": "_numWords",
"type": "uint32"
},
{
"internalType": "uint16",
"name": "_requestCount",
"type": "uint16"
}
],
"name": "makeRequests",
"outputs": [],
"stateMutability": "nonpayable",
"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": [],
"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": "uint256",
"name": "paid",
"type": "uint256"
},
{
"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": "address",
"name": "to",
"type": "address"
}
],
"name": "transferOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "withdrawLink",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"stateMutability": "payable",
"type": "receive"
}
]