1 tx
2 calls
constructor
constructor(address _initialOwner, uint256 _minVotingWindow, uint256 _maxVotingWindow, uint256 _votingWindow, uint256 _subQuorumBips, uint256 _supportThreshold)
functions
checkVoteRequirements
viewfunction checkVoteRequirements(address _governor, uint256 _proposalId) view
CLOCK_MODE
viewfunction CLOCK_MODE() view returns (string)
clock
viewfunction clock() view returns (uint48)
FOR
viewfunction FOR() view returns (uint8)
MAX_SUB_QUORUM_BIPS
viewfunction MAX_SUB_QUORUM_BIPS() view returns (uint256)
MAX_SUPPORT_THRESHOLD
viewfunction MAX_SUPPORT_THRESHOLD() view returns (uint256)
MAX_VOTING_WINDOW
viewfunction MAX_VOTING_WINDOW() view returns (uint256)
MIN_SUB_QUORUM_BIPS
viewfunction MIN_SUB_QUORUM_BIPS() view returns (uint256)
MIN_SUPPORT_THRESHOLD
viewfunction MIN_SUPPORT_THRESHOLD() view returns (uint256)
MIN_VOTING_WINDOW
viewfunction MIN_VOTING_WINDOW() view returns (uint256)
owner
viewfunction owner() view returns (address)
subQuorumBips
viewfunction subQuorumBips() view returns (uint256)
supportThreshold
viewfunction supportThreshold() view returns (uint256)
votingWindow
viewfunction votingWindow() view returns (uint256)
castVote
nonpayablefunction castVote(address _governor, uint256 _proposalId)
renounceOwnership
nonpayablefunction renounceOwnership()
setSubQuorumBips
nonpayablefunction setSubQuorumBips(uint256 _subQuorumBips)
setSupportThreshold
nonpayablefunction setSupportThreshold(uint256 _supportThreshold)
setVotingWindow
nonpayablefunction setVotingWindow(uint256 _votingWindow)
transferOwnership
nonpayablefunction transferOwnership(address newOwner)
events
OwnershipTransferred
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
SubQuorumBipsSet
event SubQuorumBipsSet(uint256 oldSubQuorumBips, uint256 newSubQuorumBips)
SupportThresholdSet
event SupportThresholdSet(uint256 oldSupportThreshold, uint256 newSupportThreshold)
VotingWindowSet
event VotingWindowSet(uint256 oldVotingWindow, uint256 newVotingWindow)
errors
ERC6372InconsistentClock
error ERC6372InconsistentClock()
OverwhelmingSupportAutoDelegate__BelowSupportThreshold
error OverwhelmingSupportAutoDelegate__BelowSupportThreshold()
OverwhelmingSupportAutoDelegate__InsufficientForVotes
error OverwhelmingSupportAutoDelegate__InsufficientForVotes()
OverwhelmingSupportAutoDelegate__InvalidSubQuorumBips
error OverwhelmingSupportAutoDelegate__InvalidSubQuorumBips()
OverwhelmingSupportAutoDelegate__InvalidSupportThreshold
error OverwhelmingSupportAutoDelegate__InvalidSupportThreshold()
OverwhelmingSupportAutoDelegate__InvalidVotingWindow
error OverwhelmingSupportAutoDelegate__InvalidVotingWindow()
OverwhelmingSupportAutoDelegate__OutsideVotingWindow
error OverwhelmingSupportAutoDelegate__OutsideVotingWindow()
OwnableInvalidOwner
error OwnableInvalidOwner(address owner)
OwnableUnauthorizedAccount
error OwnableUnauthorizedAccount(address account)
SafeCastOverflowedUintDowncast
error SafeCastOverflowedUintDowncast(uint8 bits, uint256 value)
creation bytecode
0x60c03461022057601f610e8d38819003918201601f19168301916001600160401b038311848410176102245780849260c0946040528339810103126102205780516001600160a01b03811691908290036102205760208101519160408201519060608301519160a0608085015194015194821561020d575f80546001600160a01b031981168517825560405194916001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09080a3806080528160a0528310908115610203575b506101f45760407f28a79f5fe7bf8df46a31c4ca8306f770fa8cf4215a50b192e293d4ba407643fc916001548152836020820152a16001556103e8811080156101e9575b6101da577f2cbb627fff851ec1c657f2801ffe1cfb3d6337abd0e6c861da836a264fc177b960406002548151908152836020820152a1600255611388811080156101cf575b6101c0577ffb8a8a501d29c07a0b8dd35778a83f6d57dae0c9f6797e2de9c85b51e76b583460406003548151908152836020820152a1600355604051610c54908161023982396080518181816104fa01526107cd015260a05181818161042401526105880152f35b634eff68db60e01b5f5260045ffd5b5061251c8111610158565b634224bce160e01b5f5260045ffd5b506127108111610113565b6315b0186f60e11b5f5260045ffd5b905082115f6100cf565b631e4fbdf760e01b5f525f60045260245ffd5b5f80fd5b634e487b7160e01b5f52604160045260245ffdfe6080806040526004361015610012575f80fd5b5f3560e01c9081630299afbd146107b8575080630f738ee01461079b5780633424d7b11461077f5780634bf5d7e914610664578063715018a6146105e857806372a6300a146105cb5780637c36e8e8146105ae5780637c7c55f2146104dc5780638c2639cb146104c05780638d0c7a99146104a45780638da5cb5b1461047257806391ddadf414610447578063aff944381461040d578063ce46c37a146103f2578063e9043408146103cd578063e96ffd69146103b1578063eb097b611461031b578063f2fde38b1461024d578063fefd778e146101b75763ff91bb45146100f8575f80fd5b346101b35760406003193601126101b35773ffffffffffffffffffffffffffffffffffffffff60206101286107f0565b60446024356101378184610813565b5f60405195869485937f56781388000000000000000000000000000000000000000000000000000000008552600485015260016024850152165af180156101a85761017e57005b61019f9060203d6020116101a1575b6101978183610b27565b810190610c0f565b005b503d61018d565b6040513d5f823e3d90fd5b5f80fd5b346101b35760206003193601126101b3576004356101d3610b68565b61138881108015610242575b61021a577ffb8a8a501d29c07a0b8dd35778a83f6d57dae0c9f6797e2de9c85b51e76b583460406003548151908152836020820152a1600355005b7f4eff68db000000000000000000000000000000000000000000000000000000005f5260045ffd5b5061251c81116101df565b346101b35760206003193601126101b35773ffffffffffffffffffffffffffffffffffffffff61027b6107f0565b610283610b68565b1680156102ef5773ffffffffffffffffffffffffffffffffffffffff5f54827fffffffffffffffffffffffff00000000000000000000000000000000000000008216175f55167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a3005b7f1e4fbdf7000000000000000000000000000000000000000000000000000000005f525f60045260245ffd5b346101b35760206003193601126101b357600435610337610b68565b6103e8811080156103a6575b61037e577f2cbb627fff851ec1c657f2801ffe1cfb3d6337abd0e6c861da836a264fc177b960406002548151908152836020820152a1600255005b7f4224bce1000000000000000000000000000000000000000000000000000000005f5260045ffd5b506127108111610343565b346101b3575f6003193601126101b35760206040516103e88152f35b346101b35760406003193601126101b35761019f6103e96107f0565b60243590610813565b346101b3575f6003193601126101b357602060405160018152f35b346101b3575f6003193601126101b35760206040517f00000000000000000000000000000000000000000000000000000000000000008152f35b346101b3575f6003193601126101b357602061046243610bc7565b65ffffffffffff60405191168152f35b346101b3575f6003193601126101b357602073ffffffffffffffffffffffffffffffffffffffff5f5416604051908152f35b346101b3575f6003193601126101b35760206040516113888152f35b346101b3575f6003193601126101b357602060405161251c8152f35b346101b35760206003193601126101b3576004356104f8610b68565b7f000000000000000000000000000000000000000000000000000000000000000081108015610585575b61055d577f28a79f5fe7bf8df46a31c4ca8306f770fa8cf4215a50b192e293d4ba407643fc60406001548151908152836020820152a1600155005b7f2b6030de000000000000000000000000000000000000000000000000000000005f5260045ffd5b507f00000000000000000000000000000000000000000000000000000000000000008111610522565b346101b3575f6003193601126101b3576020600354604051908152f35b346101b3575f6003193601126101b3576020600154604051908152f35b346101b3575f6003193601126101b357610600610b68565b5f73ffffffffffffffffffffffffffffffffffffffff81547fffffffffffffffffffffffff000000000000000000000000000000000000000081168355167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a3005b346101b3575f6003193601126101b35761067d43610bc7565b65ffffffffffff8061068e43610bc7565b16911603610757576040516040810181811067ffffffffffffffff82111761072a57604052601d8152604060208201917f6d6f64653d626c6f636b6e756d6265722666726f6d3d64656661756c7400000083527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8351948593602085525180918160208701528686015e5f85828601015201168101030190f35b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f6ff07140000000000000000000000000000000000000000000000000000000005f5260045ffd5b346101b3575f6003193601126101b35760206040516127108152f35b346101b3575f6003193601126101b3576020600254604051908152f35b346101b3575f6003193601126101b3576020907f00000000000000000000000000000000000000000000000000000000000000008152f35b6004359073ffffffffffffffffffffffffffffffffffffffff821682036101b357565b73ffffffffffffffffffffffffffffffffffffffff1690604051917fc01f9e37000000000000000000000000000000000000000000000000000000008352816004840152602083602481845afa9283156101a8575f93610af3575b50604051927f2d63f693000000000000000000000000000000000000000000000000000000008452826004850152602084602481855afa9384156101a8575f94610abf575b50604051927f544ffc9c0000000000000000000000000000000000000000000000000000000084526004840152606083602481855afa9384156101a8575f935f95610a83575b506020906024604051809581937ff8ce560a00000000000000000000000000000000000000000000000000000000835260048301525afa9182156101a8575f92610a4f575b5061094843610bc7565b60015482039182116109d25765ffffffffffff1610610a27576109716127109160025490610bb4565b0482106109ff5761271082029180830461271014811517156109d2576003549181018091116109d2576109a391610bb4565b116109aa57565b7f62f99489000000000000000000000000000000000000000000000000000000005f5260045ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b7f3eff62bf000000000000000000000000000000000000000000000000000000005f5260045ffd5b7f8aa71891000000000000000000000000000000000000000000000000000000005f5260045ffd5b9091506020813d602011610a7b575b81610a6b60209383610b27565b810103126101b35751905f61093e565b3d9150610a5e565b935093506060833d606011610ab7575b81610aa060609383610b27565b810103126101b357602080845194015194906108f9565b3d9150610a93565b9093506020813d602011610aeb575b81610adb60209383610b27565b810103126101b35751925f6108b3565b3d9150610ace565b9092506020813d602011610b1f575b81610b0f60209383610b27565b810103126101b35751915f61086e565b3d9150610b02565b90601f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0910116810190811067ffffffffffffffff82111761072a57604052565b73ffffffffffffffffffffffffffffffffffffffff5f54163303610b8857565b7f118cdaa7000000000000000000000000000000000000000000000000000000005f523360045260245ffd5b818102929181159184041417156109d257565b65ffffffffffff8111610bdf5765ffffffffffff1690565b7f6dfcc650000000000000000000000000000000000000000000000000000000005f52603060045260245260445ffd5b908160209103126101b357519056fea2646970667358221220b09054d226383537e2864856af75150e4506558faf44c87f9f463fbc5cac2e2864736f6c634300081c003300000000000000000000000042d201cc4d9c1e31c032397f54cace2f48c1fa72000000000000000000000000000000000000000000000000000000000000012c0000000000000000000000000000000000000000000000000000000000011940000000000000000000000000000000000000000000000000000000000000384000000000000000000000000000000000000000000000000000000000000019c80000000000000000000000000000000000000000000000000000000000002328