WHStake
Verified contract
Implementation
Active on
Ethereum with 0 txns
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)
No balances found for "WHStake"
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|
No transactions found for "WHStake"
ABI
ABI objects
Getter at block 21205084
getRank() view returns (uint256[])
[]
getUsers() view returns (address[])
[]
getUsersLength() view returns (uint256)
0
name() view returns (string)
owner() view returns (address)
0x0000000000000000000000000000000000000000
whNFT() view returns (address)
0x0000000000000000000000000000000000000000
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 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)
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)
This contract contains no constructor objects.
This contract contains no fallback and receive objects.
OperatorNotAllowed(address operator)