MysteryBox

Verified contract

Implementation

Active on Ethereum with 2 txns
Deployed by via 0xa162a5c2 at 13687865
Slot
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

No balances found for "MysteryBox"

0xc86356b66d6abe3d9274510d6ee5c077de5e04f36433b3e5fb44a4b318aca4a7
0x8d974dc8f80bab759ad528019d536e49de87457324e4a81bb8a855c9f845fa48

Functions
Getter at block 21225312
owner(view returns (address)
0x0000000000000000000000000000000000000000
Read-only
admin(addressview returns (bool)
getBoxInfo(uint256 box_idview returns (address creatoraddress nft_addressstring nameuint32 personal_limitaddress qualificationaddress holder_token_addruint256 holder_min_token_amount)
getBoxStatus(uint256 box_idview returns (struct MysteryBoxPaymentInfo[] paymentbool startedbool expiredbool canceleduint256 remaininguint256 total)
getNftListForSale(uint256 box_iduint256 cursoruint256 amountview returns (uint256[] nft_id_list)
getPurchasedNft(uint256 box_idaddress customerview returns (uint256[] nft_id_list)
whitelist(addressview returns (bool)
State-modifying
addAdmin(address[] addrs
addNftIntoBox(uint256 box_iduint256[] nft_id_list
addWhitelist(address[] addrs
cancelBox(uint256 box_id
claimPayment(uint256[] box_ids
createBox(address nft_addressstring namestruct MysteryBoxPaymentOption[] paymentuint32 personal_limituint32 start_timeuint32 end_timebool sell_alluint256[] nft_id_listaddress qualificationaddress holder_token_addruint256 holder_min_token_amount
initialize(
openBox(uint256 box_iduint8 amountuint8 payment_token_indexbytes proofpayable 
removeWhitelist(address[] addrs
renounceOwnership(
transferOwnership(address newOwner
Events
CancelSuccess(uint256 indexed box_idaddress indexed creator
ClaimPayment(address indexed creatoruint256 indexed box_idaddress token_addressuint256 amountuint256 timestamp
CreationSuccess(address indexed creatoraddress indexed nft_addressuint256 box_idstring nameuint32 start_timeuint32 end_timebool sell_all
OpenSuccess(uint256 indexed box_idaddress indexed customeraddress indexed nft_addressuint256 amount
OwnershipTransferred(address indexed previousOwneraddress indexed newOwner
Constructor

This contract contains no constructor objects.

Fallback and receive

This contract contains no fallback and receive objects.

Errors

This contract contains no error objects.