BribeMarket

Verified contract

Implementation

Active on Ethereum with 0 txns
Deployed by via 0x6d9234e4 at 17621913
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0

No balances found for "BribeMarket"

No transactions found for "BribeMarket"


Functions
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 _proposaluint256 _proposalDeadlineaddress _tokenview returns (address bribeTokenuint256 bribeAmount)
getRoleAdmin(bytes32 roleview returns (bytes32)
hasRole(bytes32 roleaddress accountview returns (bool)
indexOfBlacklistedVoter(addressview returns (uint256)
indexOfWhitelistedToken(addressview returns (uint256)
isBlacklistedVoter(address _voterview returns (bool)
isWhitelistedToken(address _tokenview returns (bool)
proposalDeadlines(bytes32view returns (uint256)
supportsInterface(bytes4 interfaceIdview returns (bool)
State-modifying
addBlacklistedVoters(address[] _voters
addWhitelistedTokens(address[] _tokens
depositBribe(bytes32 _proposaladdress _tokenuint256 _amountuint256 _maxTokensPerVoteuint256 _periods
depositBribeWithPermit(bytes32 _proposaladdress _tokenuint256 _amountuint256 _maxTokensPerVoteuint256 _periodsuint256 _permitDeadlinebytes _signature
grantRole(bytes32 roleaddress account
grantTeamRole(address _teamMember
initialize(address _bribeVaultaddress _adminstring _protocoluint256 _maxPeriodsuint256 _periodDuration
removeBlacklistedVoters(address[] _voters
removeWhitelistedTokens(address[] _tokens
renounceRole(bytes32 roleaddress account
revokeRole(bytes32 roleaddress account
revokeTeamRole(address _teamMember
setMaxPeriods(uint256 _periods
setPeriodDuration(uint256 _periodDuration
setProposals(bytes[] _identifiersuint256 _deadline
setProposalsByAddress(address[] _addressesuint256 _deadline
setProposalsById(uint256 _proposalIndexuint256 _choiceCountuint256 _deadline
Events
AddBlacklistedVoters(address[] voters
AddWhitelistedTokens(address[] tokens
GrantTeamRole(address teamMember
Initialize(address bribeVaultaddress adminstring protocoluint256 maxPeriodsuint256 periodDuration
RemoveBlacklistedVoters(address[] voters
RemoveWhitelistedTokens(address[] tokens
RevokeTeamRole(address teamMember
RoleAdminChanged(bytes32 indexed rolebytes32 indexed previousAdminRolebytes32 indexed newAdminRole
RoleGranted(bytes32 indexed roleaddress indexed accountaddress indexed sender
RoleRevoked(bytes32 indexed roleaddress indexed accountaddress indexed sender
SetMaxPeriods(uint256 maxPeriods
SetPeriodDuration(uint256 periodDuration
SetProposals(bytes32[] proposalsuint256 indexed deadline
SetProposalsByAddress(bytes32[] proposalsuint256 indexed deadline
SetProposalsById(uint256 indexed proposalIndexbytes32[] proposalsuint256 indexed deadline
Constructor

This contract contains no constructor objects.

Fallback and receive

This contract contains no fallback and receive objects.

Errors
AlreadyInitialized(
DeadlinePassed(
InvalidAddress(
InvalidAmount(
InvalidChoiceCount(
InvalidDeadline(
InvalidIdentifier(
InvalidMaxPeriod(
InvalidPeriod(
InvalidPeriodDuration(
InvalidProtocol(
NoWhitelistBribeVault(
NotAuthorized(
NotTeamMember(
TokenNotWhitelisted(
TokenWhitelisted(
VoterBlacklisted(
VoterNotBlacklisted(