Documentation ¶
Index ¶
- Constants
- Variables
- type BMGovernor
- func (bm *BMGovernor) ChargeERC20(t *testing.T, backend Backend, eoas []*bind.TransactOpts) []*bind.TransactOpts
- func (bm *BMGovernor) NewProposalToTarget(t *testing.T, desc string, values ...interface{}) *Proposal
- func (bm *BMGovernor) NextProposalTime(t *testing.T, backend interface{ ... })
- func (bm *BMGovernor) ToProposalSnapshotTime(t *testing.T, backend interface{ ... }, proposalID *big.Int)
- func (bm *BMGovernor) UnpackProposalCreated(t *testing.T, receipt *types.Receipt) *abis.BmGovernorProposalCreated
- type Backend
- type Proposal
Constants ¶
Variables ¶
View Source
var ( WIN_CLAIM = utils.ToWei(0.5) LOSE_CLAIM = utils.ToWei(0.1) ABSTAIN_CLAIM = utils.ToWei(0.2) )
View Source
var ProposalState = proposalState{0, 1, 2, 3, 4, 5, 6, 7}
View Source
var VoteType = voteType{0, 1, 2}
Functions ¶
This section is empty.
Types ¶
type BMGovernor ¶
type BMGovernor struct {
// contains filtered or unexported fields
}
func DeployBMGovernor ¶
func DeployBMGovernor(owner *bind.TransactOpts, backend Backend) (*BMGovernor, error)
func DeployBMGovernorWithBackend ¶
func DeployBMGovernorWithBackend(t *testing.T) (*bms.Backend, *BMGovernor)
func (*BMGovernor) ChargeERC20 ¶
func (bm *BMGovernor) ChargeERC20(t *testing.T, backend Backend, eoas []*bind.TransactOpts) []*bind.TransactOpts
func (*BMGovernor) NewProposalToTarget ¶
func (bm *BMGovernor) NewProposalToTarget(t *testing.T, desc string, values ...interface{}) *Proposal
func (*BMGovernor) NextProposalTime ¶
func (*BMGovernor) ToProposalSnapshotTime ¶
func (*BMGovernor) UnpackProposalCreated ¶
func (bm *BMGovernor) UnpackProposalCreated(t *testing.T, receipt *types.Receipt) *abis.BmGovernorProposalCreated
type Backend ¶
type Backend interface { bind.DeployBackend bind.ContractBackend }
Click to show internal directories.
Click to hide internal directories.