Wanghai-Badges

Verified contract

Proxy

Active on Ethereum with 326 txns
Deployed by via 0xf6d1712d at 16977362
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 49 additional slots
-
variable spans 46 additional slots
-
variable spans 48 additional slots
 (#610)
ERC-721
--
 (#605)
ERC-721
--
 (#601)
ERC-721
--
 (#600)
ERC-721
--
 (#598)
ERC-721
--
 (#596)
ERC-721
--
 (#595)
ERC-721
--
 (#594)
ERC-721
--
 (#593)
ERC-721
--
 (#592)
ERC-721
--
0x99136e11fc746cde538eae03fd1c55c5b8c65140c7fc3db2228db2674e1aad67
0x5fda411c758efb407425b396f717e0a904af4849851de2ef4aef28102c2c2db2
0x18c0622be2f79321b739befc8ec5d00d32f2a76e191211bae73809d4a2b9b46c
From
0x9ec89e9fd2e534d6c68ab3c6e0410609f8021cd7bdedeb3a04698edecdb13128
From
0x4a9a32f8109f38dd5a7f33a4f5f6d77eaf93906d5406b78dcbdd297fd4816ca0
0x12d2bfa825bbda7b0d5d5cfba3dbd10f7c7376112a5a8db4e9aab2b9cfbe0fff
0x0008900339ab769f5282ebb2620bc5a27c4df79590e3ec259690772265219263
0x344bc8f772cbdee0de830c47dfdc2b134207925192915605b04f8be7fa5e470b
0x0fd1ac0091c088b862629d569fa885393b6ac1ba0507d3d49060639520c0e577
0xc0a91c7e4f6d4f7198ea072a4b901d9792ec649bc7a870f6957d469312b1e94d
From

Functions
Getter at block 21205084
 
getImplementation(view returns (address)
 
getRank(view returns (uint256[])
 
getUsers(view returns (address[])
getUsersLength(view returns (uint256)
81
name(view returns (string)
Wanghai-Badges
owner(view returns (address)
0x9999777774316e99d79d46e2c6b7e6cec99c27ae
whNFT(view returns (address)
0xe86c0d5f3c9cad0da9500b1e914d6b7b875a2b9c
Read-only
balanceOf(address accountuint256 idview returns (uint256)
balanceOfBatch(address[] accountsuint256[] idsview returns (uint256[])
bonus(addressview returns (uint256)
getUserBonus(address userview returns (uint256)
getUserTokens(address userview returns (uint256[])
isApprovedForAll(address accountaddress operatorview returns (bool)
levelConfig(uint256view returns (uint256 rewardPerSeconduint256 stakePeriod)
onERC721Received(address operatoraddress fromuint256 tokenIdbytes datapure returns (bytes4)
supportsInterface(bytes4 interfaceIdview returns (bool)
tokenStakeInfo(uint256view returns (address useruint256 startTimestampuint256 endTimestampuint256 leveluint256 rewardPerSecond)
tokenURI(uint256 tokenIdview returns (string)
totalIdSupply(uint256view returns (uint256)
uri(uint256view returns (string)
userTokens(addressuint256view returns (uint256)
State-modifying
admin(returns (address admin_)
changeAdmin(address newAdmin
implementation(returns (address implementation_)
upgradeTo(address newImplementation
upgradeToAndCall(address newImplementationbytes datapayable 
claimReward(uint256 reward
initialize(address whNFT_string uri_string name_
renounceOwnership(
safeBatchTransferFrom(address fromaddress touint256[] idsuint256[] amountsbytes data
safeTransferFrom(address fromaddress touint256 iduint256 amountbytes data
setApprovalForAll(address operatorbool approved
setPoolConfig(uint256[] levelsstruct WHStakePoolConfig[] conf_
setState(uint256 state_
setUri(string uri_
stake(uint256 tokenIduint256 level_
transferOwnership(address newOwner
unStake(uint256 tokenId
Events
AdminChanged(address previousAdminaddress newAdmin
BeaconUpgraded(address indexed beacon
Upgraded(address indexed implementation
ApprovalForAll(address indexed accountaddress indexed operatorbool approved
Initialized(uint8 version
OwnershipTransferred(address indexed previousOwneraddress indexed newOwner
Stake(address indexed useruint256 indexed tokenIduint256 level
TransferBatch(address indexed operatoraddress indexed fromaddress indexed touint256[] idsuint256[] values
TransferSingle(address indexed operatoraddress indexed fromaddress indexed touint256 iduint256 value
URI(string valueuint256 indexed id
UnStake(address indexed useruint256 indexed tokenIduint256 point
Constructor
constructor(address _logicaddress admin_bytes _data
Fallback and receive
fallback(
receive(
Errors
OperatorNotAllowed(address operator