GachaDraw

Verified contract

Active on Ethereum with 2,715 txns
Deployed by via 0x260e454c at 16016005
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0

No balances found for "GachaDraw"

0xe8ddb35ee7f303df71519499f03357f7f14e117ad67287985ebb8ddfa6259e59
0xb07fe8b78efbe07f1085e492e2fa8000cd28f681443de37c34c02a4440a1fb5f
0xe300ab8aef9a8898ede3523dcf0d328a20f462d06484a607841e8fff2f0219a8
0x1bff434d29b7fffe7b8478f47ec2fa1caff10c521d780fc5c38a5dddace896ff
0x43f8e52a0bf87dbb2b96c43a706173e938dfed6aec3dd72809e0fde5fa84cda9
0xbfd3c72ab020f9f96709ee1e53b19d990f1e3a0373b3617f21ea1f3f4ff82015
0x80d86a93f0583af15cb62b63f83126a9ec7f066e7a758cf2d0394d937b888677
0x68b28dbeff8dbde9ae4fe5f088d57f60b7f59ad218abd53402b6351dd750ea1c
0xa7143c3535bb66dc2fba52dc0297eb6b51b52c58230d7bcf0c6b2934b050a63a
0x28ae1f399b07d36bd67dfcc712f1b069c4c03ad9fd236f6abe53633bd63d8cb6

Functions
Getter at block 21160286
FREE_ACTIVITY_TYPE(view returns (uint256)
1
PREMIUM_ACTIVITY_TYPE(view returns (uint256)
2
RewardContract(view returns (address)
0x02b67fd1bc80bda265ba804d98ec0786e5ff321b
TicketContract(view returns (address)
0xf19bbc0dd171256c0c0eacf27adceab0f86b36d8
maxRewardTokenId(view returns (uint256)
18
owner(view returns (address)
0x0f2e131e8dc813b0de0e5848751279aacad41ace
totalActivities(view returns (uint256)
4
totalCompleteDraws(view returns (uint256)
2567
totalRewardWon(view returns (uint256)
13502
Read-only
activities(uint256view returns (uint256 activityIduint256 startTimestampuint256 endTimestampuint256 activityTypebool isActiveuint256 remainingRewardSupply)
getMaximumRewardSupply(uint256 _activityIdview returns (uint256[])
getRewardTokenIds(uint256 _activityIdview returns (uint256[])
getTotalRewardSupply(uint256 _activityIdview returns (uint256[])
State-modifying
createActivity(uint256 _startTimestampuint256 _endTimestampuint256 _activityTypeuint256[] _rewardTokenIdsuint256[] _maxRewardSupply
drawTicket(uint256 _activityIduint256 _ticketAmount
renounceOwnership(
setActivityStatus(uint256 _activityIdbool _flag
setActivityTimestamp(uint256 _activityIduint256 _startTimestampuint256 _endTimestamp
setMaxRewardTokenId(uint256 _maxRewardTokenId
setRewardContract(address _rewardContractAddress
setTicketContract(address _ticketContractAddress
transferOwnership(address newOwner
updateMaximumRewardSupply(uint256 _activityIduint256[] _maxRewardSupply
Events
ActivityCreated(uint256 _activityIduint256 _startTimestampuint256 _endTimestampuint256[] _rewardTokenSupply
DrawCompleted(uint256 _activityIdaddress _walletAddressuint256 _ticketTypeuint256 _ticketAmountuint256 _drawIndex
OwnershipTransferred(address indexed previousOwneraddress indexed newOwner
Constructor
constructor(address _ticketContractAddressaddress _rewardContractAddress
Fallback and receive

This contract contains no fallback and receive objects.

Errors
ActivityTimestampError(
InactiveActivity(
InsufficientReward(
InsufficientTicket(
InvalidActivity(
InvalidActivityType(
InvalidAddress(
InvalidInput(string message
InvalidInputLength(
InvalidTimestamp(