VotingContract

Verified contract

Implementation

Active on Base with 0 txns
Deployed by via 0x599f3442 at 22659388
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 "VotingContract"

No transactions found for "VotingContract"


Functions
Getter at block 22869659
core(view returns (address)
0x0000000000000000000000000000000000000000
epochDuration(view returns (uint256)
0
 
getCurrentEpoch(view returns (uint256)
minter(view returns (address)
0x0000000000000000000000000000000000000000
paused(view returns (bool)
false
rewardDistributionContract(view returns (address)
0x0000000000000000000000000000000000000000
stixToken(view returns (address)
0x0000000000000000000000000000000000000000
Read-only
epochTotalVotes(uint256 epochview returns (uint256 votes)
epochWinningNFTInfo(uint256 epochuint256view returns (uint256 tokenIduint256 votesuint256 rewardEarned)
getEpochState(uint256 epochview returns (uint8)
getEpochWinningNFTInfo(uint256 epochview returns (struct VotingContractWinningNFTInfo[] winningNFTsInfo)
getUserVote(uint256 epochaddress userbytes32 commitmentview returns (uint256 voteAmount)
votes(uint256 epochaddress userbytes32 commitmentview returns (uint256 amount)
State-modifying
commitVote(uint256 voteAmountbytes32 commitment
emergencyAction(struct CoreRefUpgradeableCall[] callspayable returns (bytes[] returnData)
initialize(address _coreaddress _stixTokenAddressaddress _rewardDistributionContractAddressaddress _minterContractAddressuint256 _epochDuration
pause(
setCore(address newCore
unpause(
updateWinningNFTInfo(uint256 epochstruct VotingContractWinningNFTInfo[] nftInfo
Events
CoreUpdate(address indexed oldCoreaddress indexed newCore
Initialized(uint8 version
Paused(address account
Unpaused(address account
VoteCommitted(address indexed voteruint256 indexed epochbytes32 commitmentuint256 votingAmount
WinningNftsUpdated(uint256 indexed epoch
Constructor
constructor(
Fallback and receive

This contract contains no fallback and receive objects.

Errors

This contract contains no error objects.