function bank () external view returns (contract IBank )
Name
Type
Description
_0
contract IBank
undefined
function bets (uint256 ) external view returns (bool resolved , address user , address token , uint256 id , uint256 amount , uint256 blockNumber , uint256 payout , uint256 vrfCost )
Name
Type
Description
_0
uint256
undefined
Name
Type
Description
resolved
bool
undefined
user
address
undefined
token
address
undefined
id
uint256
undefined
amount
uint256
undefined
blockNumber
uint256
undefined
payout
uint256
undefined
vrfCost
uint256
undefined
function gain (address token , uint256 played , uint256 matchCount ) external view returns (uint256 _factor )
Name
Type
Description
token
address
undefined
played
uint256
undefined
matchCount
uint256
undefined
Name
Type
Description
_factor
uint256
undefined
function gains (address token ) external view returns (uint256 biggestNumber , uint256 maxNumbersPlayed , uint256 [] _gains )
Name
Type
Description
token
address
undefined
Name
Type
Description
biggestNumber
uint256
undefined
maxNumbersPlayed
uint256
undefined
_gains
uint256[]
undefined
function getChainlinkConfig () external view returns (uint16 requestConfirmations , bytes32 keyHash , contract IVRFCoordinatorV2 chainlinkCoordinator , uint256 gasAfterCalculation )
Name
Type
Description
requestConfirmations
uint16
undefined
keyHash
bytes32
undefined
chainlinkCoordinator
contract IVRFCoordinatorV2
undefined
gasAfterCalculation
uint256
undefined
function getChainlinkVRFCost (address token ) external view returns (uint256 )
Name
Type
Description
token
address
undefined
Name
Type
Description
_0
uint256
undefined
function getLastUserBets (address user , uint256 dataLength ) external view returns (struct Keno .FullKenoBet[])
Name
Type
Description
user
address
undefined
dataLength
uint256
undefined
Name
Type
Description
_0
Keno.FullKenoBet[]
undefined
getNumbersOutOfRandomWord
function getNumbersOutOfRandomWord (address token , uint256 randomWord ) external view returns (uint40 )
Name
Type
Description
token
address
undefined
randomWord
uint256
undefined
Name
Type
Description
_0
uint40
undefined
function hasPendingBets (address token ) external view returns (bool )
Name
Type
Description
token
address
undefined
Name
Type
Description
_0
bool
undefined
function kenoBets (uint256 ) external view returns (uint40 numbers , uint40 rolled )
Name
Type
Description
_0
uint256
undefined
Name
Type
Description
numbers
uint40
undefined
rolled
uint40
undefined
function multicall (bytes [] data ) external nonpayable returns (bytes [] results )
Name
Type
Description
data
bytes[]
undefined
Name
Type
Description
results
bytes[]
undefined
function owner () external view returns (address )
Name
Type
Description
_0
address
undefined
function pause () external nonpayable
function paused () external view returns (bool )
Name
Type
Description
_0
bool
undefined
function rawFulfillRandomWords (uint256 requestId , uint256 [] randomWords ) external nonpayable
Name
Type
Description
requestId
uint256
undefined
randomWords
uint256[]
undefined
function refundBet (uint256 id ) external nonpayable
Name
Type
Description
id
uint256
undefined
function renounceOwnership () external nonpayable
function setChainlinkConfig (uint16 requestConfirmations , bytes32 keyHash , uint256 gasAfterCalculation ) external nonpayable
Name
Type
Description
requestConfirmations
uint16
undefined
keyHash
bytes32
undefined
gasAfterCalculation
uint256
undefined
function setHouseEdge (address token , uint16 houseEdge ) external nonpayable
Name
Type
Description
token
address
undefined
houseEdge
uint16
undefined
function setVRFCallbackGasLimit (address token , uint32 callbackGasLimit ) external nonpayable
Name
Type
Description
token
address
undefined
callbackGasLimit
uint32
undefined
function tokenConfigurations (address ) external view returns (uint128 biggestNumber , uint128 maxNumbersPlayed )
Name
Type
Description
_0
address
undefined
Name
Type
Description
biggestNumber
uint128
undefined
maxNumbersPlayed
uint128
undefined
function tokens (address ) external view returns (uint16 houseEdge , uint64 pendingCount , uint32 VRFCallbackGasLimit , uint256 VRFFees )
Name
Type
Description
_0
address
undefined
Name
Type
Description
houseEdge
uint16
undefined
pendingCount
uint64
undefined
VRFCallbackGasLimit
uint32
undefined
VRFFees
uint256
undefined
function transferOwnership (address newOwner ) external nonpayable
Name
Type
Description
newOwner
address
undefined
function updateTokenConfig (address token , uint128 newBiggestNumber , uint128 newMaxNumbers ) external nonpayable
Name
Type
Description
token
address
undefined
newBiggestNumber
uint128
undefined
newMaxNumbers
uint128
undefined
function userOverchargedVRFCost (address ) external view returns (uint256 )
Name
Type
Description
_0
address
undefined
Name
Type
Description
_0
uint256
undefined
function wager (uint40 numbers , address token , uint256 tokenAmount ) external payable
Name
Type
Description
numbers
uint40
undefined
token
address
undefined
tokenAmount
uint256
undefined
withdrawOverchargedVRFCost
function withdrawOverchargedVRFCost (address user ) external nonpayable
Name
Type
Description
user
address
undefined
function withdrawTokensVRFFees (address token ) external nonpayable
Name
Type
Description
token
address
undefined
AccountOverchargedVRFCost
event AccountOverchargedVRFCost (address indexed user , uint256 overchargedVRFCost )
Name
Type
Description
user indexed
address
undefined
overchargedVRFCost
uint256
undefined
event BetRefunded (uint256 id , address user , uint256 amount , uint256 chainlinkVRFCost )
Name
Type
Description
id
uint256
undefined
user
address
undefined
amount
uint256
undefined
chainlinkVRFCost
uint256
undefined
DistributeOverchargedVRFCost
event DistributeOverchargedVRFCost (address indexed user , uint256 overchargedVRFCost )
Name
Type
Description
user indexed
address
undefined
overchargedVRFCost
uint256
undefined
event DistributeTokenVRFFees (address indexed token , uint256 amount )
Name
Type
Description
token indexed
address
undefined
amount
uint256
undefined
event OwnershipTransferred (address indexed previousOwner , address indexed newOwner )
Name
Type
Description
previousOwner indexed
address
undefined
newOwner indexed
address
undefined
event Paused (address account )
Name
Type
Description
account
address
undefined
event PlaceBet (uint256 id , address indexed user , address indexed token , uint256 amount , uint256 vrfCost , uint40 numbers )
Name
Type
Description
id
uint256
undefined
user indexed
address
undefined
token indexed
address
undefined
amount
uint256
undefined
vrfCost
uint256
undefined
numbers
uint40
undefined
event Roll (uint256 id , address indexed user , address indexed token , uint256 amount , uint40 numbers , uint40 rolled , uint256 payout )
Name
Type
Description
id
uint256
undefined
user indexed
address
undefined
token indexed
address
undefined
amount
uint256
undefined
numbers
uint40
undefined
rolled
uint40
undefined
payout
uint256
undefined
event SetChainlinkConfig (uint16 requestConfirmations , bytes32 keyHash , uint256 gasAfterCalculation )
Name
Type
Description
requestConfirmations
uint16
undefined
keyHash
bytes32
undefined
gasAfterCalculation
uint256
undefined
event SetHouseEdge (address indexed token , uint16 houseEdge )
Name
Type
Description
token indexed
address
undefined
houseEdge
uint16
undefined
event SetVRFCallbackGasLimit (address indexed token , uint32 callbackGasLimit )
Name
Type
Description
token indexed
address
undefined
callbackGasLimit
uint32
undefined
event TokenConfigUpdated (address token , uint128 newBiggestNumber , uint128 newMaxNumbers )
Name
Type
Description
token
address
undefined
newBiggestNumber
uint128
undefined
newMaxNumbers
uint128
undefined
event Unpaused (address account )
Name
Type
Description
account
address
undefined
error ExcessiveHouseEdge ()
error InvalidLinkWeiPrice (int256 linkWei )
Name
Type
Description
linkWei
int256
undefined
error NoOverchargedVRFCost ()
error NumbersNotInRange ()
OnlyCoordinatorCanFulfill
error OnlyCoordinatorCanFulfill (address have , address want )
Name
Type
Description
have
address
undefined
want
address
undefined
error TokenHasPendingBets ()
error TooManyNumbersPlayed ()
error UnderMinBetAmount (uint256 minBetAmount )
Name
Type
Description
minBetAmount
uint256
undefined
error WrongGasValueToCoverFee ()