PokeTheBear

Verified contract

Active on Ethereum with 4,076 txns
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
Native
Value $3,902.23
ERC-20
Value $2,116.21
0xfce7e5f912527cb572de69823cd890bc231fa37c932fd5a979e0dd7b888943a4
0x9e71775ce15ad0674502ff500d0ed2520c08d7f65ac57c023d187f9a47eeb268
0x0643dc339be25028c22fd0385dc9eb1d530aae6e2ac0b849b2822cbd17ff4ec3
0xb3cd7824e4774a359b5471ed82dcfb211d07145951622f14117940f974135f7c
0xeba874045bf27f1cc55c9a9c4a8b699520eb16fa64ee9a7df3815e381a9687cf
0x30e1d976def5b058e341a4d455f1781f7fc0dcde34227d766caa8f27213c6ee8
0x5abd21ada89f97d215892d9fada9b0e4715ea6cddd3d754da2fc0661a8dac8bb
0xc44cfc85a9b9e36acc4f29a004c6039c7ee8602748c7f47805848134b26a7427
0x7b1c3cf3707c2a413907c2587ec29f91d007d528f5f79d7f5b02526fc7d3ff06
0xb09b070ee552d13cf07053e1e4b93ceb1d0ee08eb347a55a9d316f3ac2f06e62

Functions
Getter at block 20817735
DEFAULT_ADMIN_ROLE(view returns (bytes32)
0x0000000000000000000000000000000000000000000000000000000000000000
nextCaveId(view returns (uint256)
10
paused(view returns (bool)
false
protocolFeeRecipient(view returns (address)
0xc8c57e4c73c71f72ca0a7e043e5d2d144f98ef13
Read-only
cancellable(uint256 caveIduint256 roundIdview returns (bool)
caves(uint256 caveIdview returns (uint256 enterAmountaddress enterCurrencyuint40 roundsCountuint40 lastCommittedRoundIduint40 roundDurationuint8 playersPerRounduint16 protocolFeeBpbool isActive)
getRoleAdmin(bytes32 roleview returns (bytes32)
getRound(uint256 caveIduint256 roundIdview returns (uint8 statusuint40 cutoffTimeuint40 drawnAtbytes32 commitmentbytes32 saltuint8[32] playerIndicesstruct IPokeTheBearPlayer[] players)
hasRole(bytes32 roleaddress accountview returns (bool)
isPlayerInRound(uint256 caveIduint256 roundIdaddress playerview returns (bool)
randomnessRequests(uint256 requestIdview returns (bool existsuint40 caveIduint40 roundIduint256 randomWord)
supportsInterface(bytes4 interfaceIdview returns (bool)
State-modifying
addCave(uint256 enterAmountaddress enterCurrencyuint8 playersPerRounduint40 roundDurationuint16 protocolFeeBpreturns (uint256 caveId)
cancel(uint256 caveId
cancel(uint256 caveIduint256 numberOfRounds
claimPrizes(struct IPokeTheBearWithdrawalCalldata[] claimPrizeCalldataArray
commit(struct IPokeTheBearCommitmentCalldata[] commitments
enter(uint256 caveIduint256 startingRoundIduint256 numberOfRoundspayable 
grantRole(bytes32 roleaddress account
rawFulfillRandomWords(uint256 requestIduint256[] randomWords
refund(struct IPokeTheBearWithdrawalCalldata[] refundCalldataArray
removeCave(uint256 caveId
renounceRole(bytes32 roleaddress callerConfirmation
reveal(uint256 requestIduint256 playerIndicesbytes32 salt
revokeRole(bytes32 roleaddress account
rollover(struct IPokeTheBearRolloverCalldata[] rolloverCalldataArraypayable 
togglePaused(
updateProtocolFeeRecipient(address _protocolFeeRecipient
Events
CaveAdded(uint256 caveIduint256 enterAmountaddress enterCurrencyuint40 roundDurationuint8 playersPerRounduint16 protocolFeeBp
CaveRemoved(uint256 caveId
CommitmentsSubmitted(struct IPokeTheBearCommitmentCalldata[] commitments
DepositsRefunded(struct IPokeTheBearWithdrawal[] depositsaddress player
DepositsRolledOver(struct IPokeTheBearRollover[] rolloversaddress player
Paused(address account
PrizesClaimed(struct IPokeTheBearWithdrawal[] prizesaddress player
ProtocolFeeRecipientUpdated(address protocolFeeRecipient
RandomnessRequested(uint256 caveIduint256 roundIduint256 requestId
RoleAdminChanged(bytes32 indexed rolebytes32 indexed previousAdminRolebytes32 indexed newAdminRole
RoleGranted(bytes32 indexed roleaddress indexed accountaddress indexed sender
RoleRevoked(bytes32 indexed roleaddress indexed accountaddress indexed sender
RoundStatusUpdated(uint256 caveIduint256 roundIduint8 status
RoundsCancelled(uint256 caveIduint256 startingRoundIduint256 numberOfRounds
RoundsEntered(uint256 caveIduint256 startingRoundIduint256 numberOfRoundsaddress player
Unpaused(address account
Constructor
constructor(address _owneraddress _operatoraddress _protocolFeeRecipientaddress wrappedNativeTokenaddress _transferManagerbytes32 keyHashaddress vrfCoordinatoruint64 subscriptionId
Fallback and receive

This contract contains no fallback and receive objects.

Errors
AccessControlBadConfirmation(
AccessControlUnauthorizedAccount(address accountbytes32 neededRole
CommitmentNotAvailable(
ERC20TransferFail(
ExceedsMaximumNumberOfPlayersPerRound(
HashedPlayerIndicesDoesNotMatchCommitment(
InactiveCave(
IndivisibleEnterAmount(
IneligibleToWithdraw(uint256 caveIduint256 roundId
InsufficientNumberOfPlayers(
InvalidCommitment(uint256 caveIduint256 roundId
InvalidEnterAmount(
InvalidEnterCurrency(
InvalidPlayerDetails(
InvalidPlayerIndex(uint256 caveIduint256 roundId
InvalidRoundDuration(
InvalidRoundParameters(
InvalidRoundStatus(
InvalidValue(
IsPaused(
NotAContract(
NotCancellable(
NotOperator(
NotOwner(
NotPaused(
OnlyCoordinatorCanFulfill(address haveaddress want
PlayerAlreadyParticipated(uint256 caveIduint256 roundIdaddress player
ProtocolFeeBasisPointsTooHigh(
RandomnessRequestAlreadyExists(
ReentrancyFail(
RepeatingPlayerIndex(
RoundCannotBeEntered(uint256 caveIduint256 roundId
RoundsIncomplete(