DrawTheChart

Verified contract

Active on Base with 1,765 txns
Deployed by via 0x57967b69 at 6512807
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
Native
Value $665.64
0xa345611ae42c769d85e5724ef56cbdc86c80a7a7472b03d09f7c27da586bbc0e
0xa430229283f296becbc287ae655e2a41102786100e980dab56d0a8e0881e19ba
0x949832413c637b052f67ea0e0e9f35df57d77e2edca53670ab166037c3c2e16a
0x84c219106000301ba4a37e7c8ea0c4e95ac741213690ba88afcca83d7f8ebf3b
0x27cbaca7177c28ccb1efb036ca1354ad866410c85cca53d71f69c4bf7c1ef7eb
0x075e482035505286905d58e931cd72307c9a6ad9610f70355c582413c1820e21
0xcb39db5c907443fb51bc5027e7fb68de4e1dcf292dcb30f56eb27ffcfab39c44
0x9f26ec90112db4c7c5ca463a324a71cadc96d9990f464ec3bad3c6b36eb76fc9
0xf53aa4e2dc3890f8bceeda2e6ad4aca4983e2623463edaa1afedfe8c2210a700
0x14a58447e3ec9016b0a4153b3392129556e89cdb9a3e36ab04083f439b85c454

Functions
Getter at block 22762308
getGamesLength(view returns (uint256)
80
owner(view returns (address)
0xf23889d12794f77bd23c7b21213df9b8be69f101
Read-only
checkGameStatus(uint64 gameIndexview returns (uint8 enableduint256 participantsuint128 totalDepositsuint256 startBlockuint256 endBlock)
entries(uint256view returns (uint256)
games(uint256view returns (uint128 startBlockuint128 endBlockuint128 protocolBalanceuint128 creatorBalanceuint128 totalDepositsuint128 entryFeeuint8 feeuint8 gameEndedaddress pooladdress creatorbool protocolFeeSplitbytes32 claimMerkleRoot)
getCreator(uint64 indexview returns (address creator)
getCreatorBalance(uint64 indexview returns (uint256 balance)
getEntriesForGame(uint64 gameIndexview returns (struct DtcGameManagerEntry[])
getEntryFeeForGame(uint64 gameIndexview returns (uint128)
getGame(uint64 indexview returns (uint128uint256uint8uint128)
getGameExtended(uint64 indexview returns (uint128uint128uint128uint128uint128uint128uint8uint8addressaddressboolbytes32)
getIpfsCid(uint64 gameIndexuint256 entryIndexview returns (bytes32 ipfsCid)
getNumberOfPlayers(uint64 gameIndexview returns (uint256 players)
getProtocolFeeForGame(uint64 gameIndexview returns (uint8)
getTotalDepositsForGame(uint64 gameIndexview returns (uint128)
isGameEndable(uint64 gameIndexview returns (bool)
isGameEnded(uint64 gameIndexview returns (bool ended)
unpackEntry(bytes _packedpure returns (address entrantbytes32 predictedPricesHashuint128 depositAmountbytes32 ipfsCid)
verifyProof(bytes32[] proofbytes32 merkleRootbytes32 leafpure returns (bool)
State-modifying
batchCreateGame(struct DtcGameManagerBatchCreateGameArgs[] gamesreturns (bool successuint64 gamesCreated)
claimCreatorFees(uint64 gameIndexreturns (bool successuint128 amount)
claimProtocolFees(uint64 gameIndexaddress targetreturns (bool successuint128 amountClaimed)
claimProtocolFeesMultiple(uint64[] indiciesaddress targetreturns (bool successuint128 amountClaimed)
claimWinnings(uint64 gameIndexbytes32[] proofuint128 amountbytes32 leafreturns (bool successuint128 claimedAmount)
createGame(uint128 startBlockuint128 endBlockuint128 entryFeeaddress pooluint8 feebool splitreturns (uint64 game)
endGame(uint64 gameIndexreturns (bool success)
enterGame(uint64 gameIndexbytes32 predictedPricesHashbytes32 ipfsCidpayable returns (uint64 gamebytes packedEntryuint256 entriesIndex)
renounceOwnership(
setMerkleRootForGame(bytes32 merkleRootuint64 gameIndex
sponsorGame(uint64 gameIndexpayable returns (bool success)
transferOwnership(address newOwner
Events
CreatorFeeClaimed(uint64 indexed gameIndexaddress indexed creatoruint128 indexed amountWithdrawn
CreatorFeeTaken(address indexed creatoruint128 indexed fee
EntryFeeChanged(uint128 indexed previousFeeuint128 indexed newFeeuint128 game
GameCreated(uint64 gameIndexuint8 feeuint128 entryFeeuint256 createdBlockuint256 startBlockuint256 endBlockaddress creatoraddress pool
GameEntered(address indexed msgSenderuint128 indexed packedEntryIndex
GamePayoutClaimInitialized(bytes32 indexed gameRootuint256 indexed gameIndex
OwnershipTransferred(address indexed previousOwneraddress indexed newOwner
Prediction(address indexed msgSenderbytes32 predictedPricesHash
ProtocolFeeTaken(uint128 indexed fee
Sponsorship(address indexed sponsoruint128 indexed amountDepositeduint128 indexed totalDeposits
WinnerPayout(address indexed winneruint128 indexed amountWon
Constructor
constructor(address initialOwner
Fallback and receive

This contract contains no fallback and receive objects.

Errors
ClaimFailed(
ClaimTransferFailed(
ContractBalanceTooLow(uint128 amountRequesteduint128 amountAvailable
CreatorCannotEnterGame(address creatoraddress calleraddress txOrigin
EntryFeeNotMet(uint256 amountSentuint256 amountRequired
GameAlreadyEnded(
GameAlreadyEntered(uint256 gameIndex
GameAlreadyStarted(uint256 blockuint256 currentBlock
GameNotEnded(
GameNotFinished(uint256 currentBlockuint256 gameEndBlock
GameNotStarted(
InvalidCaller(address msgSenderaddress txOriginaddress owner
InvalidCreator(
InvalidEndBlock(
InvalidFeeAmount(
InvalidGameIndex(uint64 indexuint256 length
InvalidIndicesLength(
InvalidSender(
InvalidStartBlock(
LeafContextMismatch(address senderuint128 amountbytes32 leaf
MerkleRootPreviouslySet(
NoAttachedEth(
NoDepositFound(
NonProtocolClaim(
OwnableInvalidOwner(address owner
OwnableUnauthorizedAccount(address account
ProofVerificationFailed(
ProtocolFeeClaimFailed(bool successuint128 amountClaimeduint256 targetBalance
ReentrancyGuardReentrantCall(
UnableToClaimCreatorFees(
ZeroAddressTransfer(string reason