VotingContract
Verified contract
Implementation
Active on
Base with 0 txns
Storage
Map
Table
Raw
Constants and immutables
1
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 "VotingContract"
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|
No transactions found for "VotingContract"
ABI
ABI objects
Getter at block 22869659 getCurrentEpoch() view returns (uint256)
core() view returns (address)
0x0000000000000000000000000000000000000000
epochDuration() view returns (uint256)
0
minter() view returns (address)
0x0000000000000000000000000000000000000000
paused() view returns (bool)
false
rewardDistributionContract() view returns (address)
0x0000000000000000000000000000000000000000
stixToken() view returns (address)
0x0000000000000000000000000000000000000000
Read-only
epochTotalVotes(uint256 epoch) view returns (uint256 votes)
epochWinningNFTInfo(uint256 epoch, uint256) view returns (uint256 tokenId, uint256 votes, uint256 rewardEarned)
getEpochState(uint256 epoch) view returns (uint8)
getEpochWinningNFTInfo(uint256 epoch) view returns (struct VotingContractWinningNFTInfo[] winningNFTsInfo)
getUserVote(uint256 epoch, address user, bytes32 commitment) view returns (uint256 voteAmount)
votes(uint256 epoch, address user, bytes32 commitment) view returns (uint256 amount)
State-modifying
Events commitVote(uint256 voteAmount, bytes32 commitment)
emergencyAction(struct CoreRefUpgradeableCall[] calls) payable returns (bytes[] returnData)
initialize(address _core, address _stixTokenAddress, address _rewardDistributionContractAddress, address _minterContractAddress, uint256 _epochDuration)
pause()
setCore(address newCore)
unpause()
updateWinningNFTInfo(uint256 epoch, struct VotingContractWinningNFTInfo[] nftInfo)
CoreUpdate(address indexed oldCore, address indexed newCore)
Initialized(uint8 version)
Paused(address account)
Unpaused(address account)
VoteCommitted(address indexed voter, uint256 indexed epoch, bytes32 commitment, uint256 votingAmount)
WinningNftsUpdated(uint256 indexed epoch)
constructor()
This contract contains no fallback and receive objects.
This contract contains no error objects.