BribeMarket
Verified contract
Implementation
Active on
Ethereum with 0 txns
Storage
Map
Table
Raw
Constants and immutables
6
Slot
XX
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
Balances ($0.00)
No balances found for "BribeMarket"
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|
No transactions found for "BribeMarket"
ABI
ABI objects
Getter at block 21276533
BRIBE_VAULT() view returns (address)
0x0000000000000000000000000000000000000000
DEFAULT_ADMIN_ROLE() view returns (bytes32)
0x0000000000000000000000000000000000000000000000000000000000000000
MAX_PERIODS() view returns (uint256)
10
MAX_PERIOD_DURATION() view returns (uint256)
2592000
PROTOCOL() view returns (string)
TEAM_ROLE() view returns (bytes32)
0x5146a08baf902532d0ee2f909971144f12ca32651cd70cbee1117cddfb3b3b33
getBlacklistedVoters() view returns (address[])
[]
getWhitelistedTokens() view returns (address[])
[]
maxPeriods() view returns (uint256)
0
periodDuration() view returns (uint256)
0
Read-only
getBribe(bytes32 _proposal, uint256 _proposalDeadline, address _token) view returns (address bribeToken, uint256 bribeAmount)
getRoleAdmin(bytes32 role) view returns (bytes32)
hasRole(bytes32 role, address account) view returns (bool)
indexOfBlacklistedVoter(address) view returns (uint256)
indexOfWhitelistedToken(address) view returns (uint256)
isBlacklistedVoter(address _voter) view returns (bool)
isWhitelistedToken(address _token) view returns (bool)
proposalDeadlines(bytes32) view returns (uint256)
supportsInterface(bytes4 interfaceId) view returns (bool)
State-modifying
Events addBlacklistedVoters(address[] _voters)
addWhitelistedTokens(address[] _tokens)
depositBribe(bytes32 _proposal, address _token, uint256 _amount, uint256 _maxTokensPerVote, uint256 _periods)
depositBribeWithPermit(bytes32 _proposal, address _token, uint256 _amount, uint256 _maxTokensPerVote, uint256 _periods, uint256 _permitDeadline, bytes _signature)
grantRole(bytes32 role, address account)
grantTeamRole(address _teamMember)
initialize(address _bribeVault, address _admin, string _protocol, uint256 _maxPeriods, uint256 _periodDuration)
removeBlacklistedVoters(address[] _voters)
removeWhitelistedTokens(address[] _tokens)
renounceRole(bytes32 role, address account)
revokeRole(bytes32 role, address account)
revokeTeamRole(address _teamMember)
setMaxPeriods(uint256 _periods)
setPeriodDuration(uint256 _periodDuration)
setProposals(bytes[] _identifiers, uint256 _deadline)
setProposalsByAddress(address[] _addresses, uint256 _deadline)
setProposalsById(uint256 _proposalIndex, uint256 _choiceCount, uint256 _deadline)
AddBlacklistedVoters(address[] voters)
AddWhitelistedTokens(address[] tokens)
GrantTeamRole(address teamMember)
Initialize(address bribeVault, address admin, string protocol, uint256 maxPeriods, uint256 periodDuration)
RemoveBlacklistedVoters(address[] voters)
RemoveWhitelistedTokens(address[] tokens)
RevokeTeamRole(address teamMember)
RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)
RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)
RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)
SetMaxPeriods(uint256 maxPeriods)
SetPeriodDuration(uint256 periodDuration)
SetProposals(bytes32[] proposals, uint256 indexed deadline)
SetProposalsByAddress(bytes32[] proposals, uint256 indexed deadline)
SetProposalsById(uint256 indexed proposalIndex, bytes32[] proposals, uint256 indexed deadline)
This contract contains no constructor objects.
This contract contains no fallback and receive objects.
AlreadyInitialized()
DeadlinePassed()
InvalidAddress()
InvalidAmount()
InvalidChoiceCount()
InvalidDeadline()
InvalidIdentifier()
InvalidMaxPeriod()
InvalidPeriod()
InvalidPeriodDuration()
InvalidProtocol()
NoWhitelistBribeVault()
NotAuthorized()
NotTeamMember()
TokenNotWhitelisted()
TokenWhitelisted()
VoterBlacklisted()
VoterNotBlacklisted()