Wanghai-Badges
Verified contract
Proxy
Active on
Ethereum with 326 txns
Unified storage
Map
Table
Raw
Constants and immutables
4
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 49 additional slots
-
variable spans 46 additional slots
-
variable spans 48 additional slots
Balances ($0.00)
Asset | Symbol | Type | Quantity | Price | Value |
---|---|---|---|---|---|
WHV | ERC-721 | 1 | -- | -- | |
WHV | ERC-721 | 1 | -- | -- | |
WHV | ERC-721 | 1 | -- | -- | |
WHV | ERC-721 | 1 | -- | -- | |
WHV | ERC-721 | 1 | -- | -- | |
WHV | ERC-721 | 1 | -- | -- | |
WHV | ERC-721 | 1 | -- | -- | |
WHV | ERC-721 | 1 | -- | -- | |
WHV | ERC-721 | 1 | -- | -- | |
WHV | ERC-721 | 1 | -- | -- |
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|---|---|---|---|---|---|---|
| 19970309 | 6 months ago | | | 0 | 0.0021375325 | |
| 19685960 | 7 months ago | | | 0 | 0.00084071787 | |
| 19607729 | 7 months ago | | | 0 | 0.0017690137 | |
| 19510001 | 8 months ago | | | 0 | 0.0022699995 | |
| 19458602 | 8 months ago | | | 0 | 0.0035990527 | |
| 19434463 | 8 months ago | | | 0 | 0.0078649056 | |
| 19389395 | 8 months ago | | | 0 | 0.0075309103 | |
| 19333986 | 9 months ago | | | 0 | 0.010478174 | |
| 19326598 | 9 months ago | | | 0 | 0.011444437 | |
| 19324918 | 9 months ago | | | 0 | 0.0054912972 |
ABI
ABI objects
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 account, uint256 id) view returns (uint256)
balanceOfBatch(address[] accounts, uint256[] ids) view returns (uint256[])
bonus(address) view returns (uint256)
getUserBonus(address user) view returns (uint256)
getUserTokens(address user) view returns (uint256[])
isApprovedForAll(address account, address operator) view returns (bool)
levelConfig(uint256) view returns (uint256 rewardPerSecond, uint256 stakePeriod)
onERC721Received(address operator, address from, uint256 tokenId, bytes data) pure returns (bytes4)
supportsInterface(bytes4 interfaceId) view returns (bool)
tokenStakeInfo(uint256) view returns (address user, uint256 startTimestamp, uint256 endTimestamp, uint256 level, uint256 rewardPerSecond)
tokenURI(uint256 tokenId) view returns (string)
totalIdSupply(uint256) view returns (uint256)
uri(uint256) view returns (string)
userTokens(address, uint256) view returns (uint256)
State-modifying
Events admin() returns (address admin_)
changeAdmin(address newAdmin)
implementation() returns (address implementation_)
upgradeTo(address newImplementation)
upgradeToAndCall(address newImplementation, bytes data) payable
claimReward(uint256 reward)
initialize(address whNFT_, string uri_, string name_)
renounceOwnership()
safeBatchTransferFrom(address from, address to, uint256[] ids, uint256[] amounts, bytes data)
safeTransferFrom(address from, address to, uint256 id, uint256 amount, bytes data)
setApprovalForAll(address operator, bool approved)
setPoolConfig(uint256[] levels, struct WHStakePoolConfig[] conf_)
setState(uint256 state_)
setUri(string uri_)
stake(uint256 tokenId, uint256 level_)
transferOwnership(address newOwner)
unStake(uint256 tokenId)
AdminChanged(address previousAdmin, address newAdmin)
BeaconUpgraded(address indexed beacon)
Upgraded(address indexed implementation)
ApprovalForAll(address indexed account, address indexed operator, bool approved)
Initialized(uint8 version)
OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
Stake(address indexed user, uint256 indexed tokenId, uint256 level)
TransferBatch(address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values)
TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value)
URI(string value, uint256 indexed id)
UnStake(address indexed user, uint256 indexed tokenId, uint256 point)
constructor(address _logic, address admin_, bytes _data)
fallback()
receive()
OperatorNotAllowed(address operator)