MysteryBox
Verified contract
Implementation
Active on
Ethereum with 2 txns
Storage
Map
Table
Raw
Constants and immutables
0
Slot
XX
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
-
variable spans 49 additional slots
-
variable spans 48 additional slots
Balances ($0.00)
No balances found for "MysteryBox"
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|---|---|---|---|---|---|---|
| 13688029 | 3 years ago | | | 0 | 0.0015266772 | |
| 13688001 | 3 years ago | | | 0 | 0.0059440967 |
ABI
ABI objects
Getter at block 21225312
owner() view returns (address)
0x0000000000000000000000000000000000000000
Read-only
admin(address) view returns (bool)
getBoxInfo(uint256 box_id) view returns (address creator, address nft_address, string name, uint32 personal_limit, address qualification, address holder_token_addr, uint256 holder_min_token_amount)
getBoxStatus(uint256 box_id) view returns (struct MysteryBoxPaymentInfo[] payment, bool started, bool expired, bool canceled, uint256 remaining, uint256 total)
getNftListForSale(uint256 box_id, uint256 cursor, uint256 amount) view returns (uint256[] nft_id_list)
getPurchasedNft(uint256 box_id, address customer) view returns (uint256[] nft_id_list)
whitelist(address) view returns (bool)
State-modifying
Events addAdmin(address[] addrs)
addNftIntoBox(uint256 box_id, uint256[] nft_id_list)
addWhitelist(address[] addrs)
cancelBox(uint256 box_id)
claimPayment(uint256[] box_ids)
createBox(address nft_address, string name, struct MysteryBoxPaymentOption[] payment, uint32 personal_limit, uint32 start_time, uint32 end_time, bool sell_all, uint256[] nft_id_list, address qualification, address holder_token_addr, uint256 holder_min_token_amount)
initialize()
openBox(uint256 box_id, uint8 amount, uint8 payment_token_index, bytes proof) payable
removeWhitelist(address[] addrs)
renounceOwnership()
transferOwnership(address newOwner)
CancelSuccess(uint256 indexed box_id, address indexed creator)
ClaimPayment(address indexed creator, uint256 indexed box_id, address token_address, uint256 amount, uint256 timestamp)
CreationSuccess(address indexed creator, address indexed nft_address, uint256 box_id, string name, uint32 start_time, uint32 end_time, bool sell_all)
OpenSuccess(uint256 indexed box_id, address indexed customer, address indexed nft_address, uint256 amount)
OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
This contract contains no constructor objects.
This contract contains no fallback and receive objects.
This contract contains no error objects.