Documentation ¶
Index ¶
- Constants
- type Contract
- type ContractCaller
- func (_Contract *ContractCaller) Bytes32ToString(opts *bind.CallOpts, _bytes32 [32]byte) (string, error)
- func (_Contract *ContractCaller) CalculateVotingTally(opts *bind.CallOpts, proposalID *big.Int) (struct{ ... }, error)
- func (_Contract *ContractCaller) GetTask(opts *bind.CallOpts, i *big.Int) (struct{ ... }, error)
- func (_Contract *ContractCaller) GetVote(opts *bind.CallOpts, from common.Address, delegatedTo common.Address, ...) (struct{ ... }, error)
- func (_Contract *ContractCaller) LastProposalID(opts *bind.CallOpts) (*big.Int, error)
- func (_Contract *ContractCaller) MaxExecutionPeriod(opts *bind.CallOpts) (*big.Int, error)
- func (_Contract *ContractCaller) MaxOptions(opts *bind.CallOpts) (*big.Int, error)
- func (_Contract *ContractCaller) MinVotesAbsolute(opts *bind.CallOpts, totalWeight *big.Int, minVotesRatio *big.Int) (*big.Int, error)
- func (_Contract *ContractCaller) OverriddenWeight(opts *bind.CallOpts, arg0 common.Address, arg1 *big.Int) (*big.Int, error)
- func (_Contract *ContractCaller) ProposalBurntFee(opts *bind.CallOpts) (*big.Int, error)
- func (_Contract *ContractCaller) ProposalFee(opts *bind.CallOpts) (*big.Int, error)
- func (_Contract *ContractCaller) ProposalOptionState(opts *bind.CallOpts, proposalID *big.Int, optionID *big.Int) (struct{ ... }, error)
- func (_Contract *ContractCaller) ProposalParams(opts *bind.CallOpts, proposalID *big.Int) (struct{ ... }, error)
- func (_Contract *ContractCaller) ProposalState(opts *bind.CallOpts, proposalID *big.Int) (struct{ ... }, error)
- func (_Contract *ContractCaller) TaskErasingReward(opts *bind.CallOpts) (*big.Int, error)
- func (_Contract *ContractCaller) TaskHandlingReward(opts *bind.CallOpts) (*big.Int, error)
- func (_Contract *ContractCaller) TasksCount(opts *bind.CallOpts) (*big.Int, error)
- func (_Contract *ContractCaller) Version(opts *bind.CallOpts) ([4]byte, error)
- type ContractCallerRaw
- type ContractCallerSession
- func (_Contract *ContractCallerSession) Bytes32ToString(_bytes32 [32]byte) (string, error)
- func (_Contract *ContractCallerSession) CalculateVotingTally(proposalID *big.Int) (struct{ ... }, error)
- func (_Contract *ContractCallerSession) GetTask(i *big.Int) (struct{ ... }, error)
- func (_Contract *ContractCallerSession) GetVote(from common.Address, delegatedTo common.Address, proposalID *big.Int) (struct{ ... }, error)
- func (_Contract *ContractCallerSession) LastProposalID() (*big.Int, error)
- func (_Contract *ContractCallerSession) MaxExecutionPeriod() (*big.Int, error)
- func (_Contract *ContractCallerSession) MaxOptions() (*big.Int, error)
- func (_Contract *ContractCallerSession) MinVotesAbsolute(totalWeight *big.Int, minVotesRatio *big.Int) (*big.Int, error)
- func (_Contract *ContractCallerSession) OverriddenWeight(arg0 common.Address, arg1 *big.Int) (*big.Int, error)
- func (_Contract *ContractCallerSession) ProposalBurntFee() (*big.Int, error)
- func (_Contract *ContractCallerSession) ProposalFee() (*big.Int, error)
- func (_Contract *ContractCallerSession) ProposalOptionState(proposalID *big.Int, optionID *big.Int) (struct{ ... }, error)
- func (_Contract *ContractCallerSession) ProposalParams(proposalID *big.Int) (struct{ ... }, error)
- func (_Contract *ContractCallerSession) ProposalState(proposalID *big.Int) (struct{ ... }, error)
- func (_Contract *ContractCallerSession) TaskErasingReward() (*big.Int, error)
- func (_Contract *ContractCallerSession) TaskHandlingReward() (*big.Int, error)
- func (_Contract *ContractCallerSession) TasksCount() (*big.Int, error)
- func (_Contract *ContractCallerSession) Version() ([4]byte, error)
- type ContractFilterer
- func (_Contract *ContractFilterer) FilterProposalCanceled(opts *bind.FilterOpts) (*ContractProposalCanceledIterator, error)
- func (_Contract *ContractFilterer) FilterProposalCreated(opts *bind.FilterOpts) (*ContractProposalCreatedIterator, error)
- func (_Contract *ContractFilterer) FilterProposalExecutionExpired(opts *bind.FilterOpts) (*ContractProposalExecutionExpiredIterator, error)
- func (_Contract *ContractFilterer) FilterProposalRejected(opts *bind.FilterOpts) (*ContractProposalRejectedIterator, error)
- func (_Contract *ContractFilterer) FilterProposalResolved(opts *bind.FilterOpts) (*ContractProposalResolvedIterator, error)
- func (_Contract *ContractFilterer) FilterTasksErased(opts *bind.FilterOpts) (*ContractTasksErasedIterator, error)
- func (_Contract *ContractFilterer) FilterTasksHandled(opts *bind.FilterOpts) (*ContractTasksHandledIterator, error)
- func (_Contract *ContractFilterer) FilterVoteCanceled(opts *bind.FilterOpts) (*ContractVoteCanceledIterator, error)
- func (_Contract *ContractFilterer) FilterVoteWeightOverridden(opts *bind.FilterOpts) (*ContractVoteWeightOverriddenIterator, error)
- func (_Contract *ContractFilterer) FilterVoteWeightUnOverridden(opts *bind.FilterOpts) (*ContractVoteWeightUnOverriddenIterator, error)
- func (_Contract *ContractFilterer) FilterVoted(opts *bind.FilterOpts) (*ContractVotedIterator, error)
- func (_Contract *ContractFilterer) ParseProposalCanceled(log types.Log) (*ContractProposalCanceled, error)
- func (_Contract *ContractFilterer) ParseProposalCreated(log types.Log) (*ContractProposalCreated, error)
- func (_Contract *ContractFilterer) ParseProposalExecutionExpired(log types.Log) (*ContractProposalExecutionExpired, error)
- func (_Contract *ContractFilterer) ParseProposalRejected(log types.Log) (*ContractProposalRejected, error)
- func (_Contract *ContractFilterer) ParseProposalResolved(log types.Log) (*ContractProposalResolved, error)
- func (_Contract *ContractFilterer) ParseTasksErased(log types.Log) (*ContractTasksErased, error)
- func (_Contract *ContractFilterer) ParseTasksHandled(log types.Log) (*ContractTasksHandled, error)
- func (_Contract *ContractFilterer) ParseVoteCanceled(log types.Log) (*ContractVoteCanceled, error)
- func (_Contract *ContractFilterer) ParseVoteWeightOverridden(log types.Log) (*ContractVoteWeightOverridden, error)
- func (_Contract *ContractFilterer) ParseVoteWeightUnOverridden(log types.Log) (*ContractVoteWeightUnOverridden, error)
- func (_Contract *ContractFilterer) ParseVoted(log types.Log) (*ContractVoted, error)
- func (_Contract *ContractFilterer) WatchProposalCanceled(opts *bind.WatchOpts, sink chan<- *ContractProposalCanceled) (event.Subscription, error)
- func (_Contract *ContractFilterer) WatchProposalCreated(opts *bind.WatchOpts, sink chan<- *ContractProposalCreated) (event.Subscription, error)
- func (_Contract *ContractFilterer) WatchProposalExecutionExpired(opts *bind.WatchOpts, sink chan<- *ContractProposalExecutionExpired) (event.Subscription, error)
- func (_Contract *ContractFilterer) WatchProposalRejected(opts *bind.WatchOpts, sink chan<- *ContractProposalRejected) (event.Subscription, error)
- func (_Contract *ContractFilterer) WatchProposalResolved(opts *bind.WatchOpts, sink chan<- *ContractProposalResolved) (event.Subscription, error)
- func (_Contract *ContractFilterer) WatchTasksErased(opts *bind.WatchOpts, sink chan<- *ContractTasksErased) (event.Subscription, error)
- func (_Contract *ContractFilterer) WatchTasksHandled(opts *bind.WatchOpts, sink chan<- *ContractTasksHandled) (event.Subscription, error)
- func (_Contract *ContractFilterer) WatchVoteCanceled(opts *bind.WatchOpts, sink chan<- *ContractVoteCanceled) (event.Subscription, error)
- func (_Contract *ContractFilterer) WatchVoteWeightOverridden(opts *bind.WatchOpts, sink chan<- *ContractVoteWeightOverridden) (event.Subscription, error)
- func (_Contract *ContractFilterer) WatchVoteWeightUnOverridden(opts *bind.WatchOpts, sink chan<- *ContractVoteWeightUnOverridden) (event.Subscription, error)
- func (_Contract *ContractFilterer) WatchVoted(opts *bind.WatchOpts, sink chan<- *ContractVoted) (event.Subscription, error)
- type ContractProposalCanceled
- type ContractProposalCanceledIterator
- type ContractProposalCreated
- type ContractProposalCreatedIterator
- type ContractProposalExecutionExpired
- type ContractProposalExecutionExpiredIterator
- type ContractProposalRejected
- type ContractProposalRejectedIterator
- type ContractProposalResolved
- type ContractProposalResolvedIterator
- type ContractRaw
- func (_Contract *ContractRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_Contract *ContractRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Contract *ContractRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type ContractSession
- func (_Contract *ContractSession) Bytes32ToString(_bytes32 [32]byte) (string, error)
- func (_Contract *ContractSession) CalculateVotingTally(proposalID *big.Int) (struct{ ... }, error)
- func (_Contract *ContractSession) CancelProposal(proposalID *big.Int) (*types.Transaction, error)
- func (_Contract *ContractSession) CancelVote(delegatedTo common.Address, proposalID *big.Int) (*types.Transaction, error)
- func (_Contract *ContractSession) CreateProposal(proposalContract common.Address) (*types.Transaction, error)
- func (_Contract *ContractSession) GetTask(i *big.Int) (struct{ ... }, error)
- func (_Contract *ContractSession) GetVote(from common.Address, delegatedTo common.Address, proposalID *big.Int) (struct{ ... }, error)
- func (_Contract *ContractSession) HandleTasks(startIdx *big.Int, quantity *big.Int) (*types.Transaction, error)
- func (_Contract *ContractSession) Initialize(_governableContract common.Address, _proposalVerifier common.Address) (*types.Transaction, error)
- func (_Contract *ContractSession) LastProposalID() (*big.Int, error)
- func (_Contract *ContractSession) MaxExecutionPeriod() (*big.Int, error)
- func (_Contract *ContractSession) MaxOptions() (*big.Int, error)
- func (_Contract *ContractSession) MinVotesAbsolute(totalWeight *big.Int, minVotesRatio *big.Int) (*big.Int, error)
- func (_Contract *ContractSession) OverriddenWeight(arg0 common.Address, arg1 *big.Int) (*big.Int, error)
- func (_Contract *ContractSession) ProposalBurntFee() (*big.Int, error)
- func (_Contract *ContractSession) ProposalFee() (*big.Int, error)
- func (_Contract *ContractSession) ProposalOptionState(proposalID *big.Int, optionID *big.Int) (struct{ ... }, error)
- func (_Contract *ContractSession) ProposalParams(proposalID *big.Int) (struct{ ... }, error)
- func (_Contract *ContractSession) ProposalState(proposalID *big.Int) (struct{ ... }, error)
- func (_Contract *ContractSession) RecountVote(voterAddr common.Address, delegatedTo common.Address, proposalID *big.Int) (*types.Transaction, error)
- func (_Contract *ContractSession) TaskErasingReward() (*big.Int, error)
- func (_Contract *ContractSession) TaskHandlingReward() (*big.Int, error)
- func (_Contract *ContractSession) TasksCleanup(quantity *big.Int) (*types.Transaction, error)
- func (_Contract *ContractSession) TasksCount() (*big.Int, error)
- func (_Contract *ContractSession) Version() ([4]byte, error)
- func (_Contract *ContractSession) Vote(delegatedTo common.Address, proposalID *big.Int, choices []*big.Int) (*types.Transaction, error)
- type ContractTasksErased
- type ContractTasksErasedIterator
- type ContractTasksHandled
- type ContractTasksHandledIterator
- type ContractTransactor
- func (_Contract *ContractTransactor) CancelProposal(opts *bind.TransactOpts, proposalID *big.Int) (*types.Transaction, error)
- func (_Contract *ContractTransactor) CancelVote(opts *bind.TransactOpts, delegatedTo common.Address, proposalID *big.Int) (*types.Transaction, error)
- func (_Contract *ContractTransactor) CreateProposal(opts *bind.TransactOpts, proposalContract common.Address) (*types.Transaction, error)
- func (_Contract *ContractTransactor) HandleTasks(opts *bind.TransactOpts, startIdx *big.Int, quantity *big.Int) (*types.Transaction, error)
- func (_Contract *ContractTransactor) Initialize(opts *bind.TransactOpts, _governableContract common.Address, ...) (*types.Transaction, error)
- func (_Contract *ContractTransactor) RecountVote(opts *bind.TransactOpts, voterAddr common.Address, delegatedTo common.Address, ...) (*types.Transaction, error)
- func (_Contract *ContractTransactor) TasksCleanup(opts *bind.TransactOpts, quantity *big.Int) (*types.Transaction, error)
- func (_Contract *ContractTransactor) Vote(opts *bind.TransactOpts, delegatedTo common.Address, proposalID *big.Int, ...) (*types.Transaction, error)
- type ContractTransactorRaw
- type ContractTransactorSession
- func (_Contract *ContractTransactorSession) CancelProposal(proposalID *big.Int) (*types.Transaction, error)
- func (_Contract *ContractTransactorSession) CancelVote(delegatedTo common.Address, proposalID *big.Int) (*types.Transaction, error)
- func (_Contract *ContractTransactorSession) CreateProposal(proposalContract common.Address) (*types.Transaction, error)
- func (_Contract *ContractTransactorSession) HandleTasks(startIdx *big.Int, quantity *big.Int) (*types.Transaction, error)
- func (_Contract *ContractTransactorSession) Initialize(_governableContract common.Address, _proposalVerifier common.Address) (*types.Transaction, error)
- func (_Contract *ContractTransactorSession) RecountVote(voterAddr common.Address, delegatedTo common.Address, proposalID *big.Int) (*types.Transaction, error)
- func (_Contract *ContractTransactorSession) TasksCleanup(quantity *big.Int) (*types.Transaction, error)
- func (_Contract *ContractTransactorSession) Vote(delegatedTo common.Address, proposalID *big.Int, choices []*big.Int) (*types.Transaction, error)
- type ContractVoteCanceled
- type ContractVoteCanceledIterator
- type ContractVoteWeightOverridden
- type ContractVoteWeightOverriddenIterator
- type ContractVoteWeightUnOverridden
- type ContractVoteWeightUnOverriddenIterator
- type ContractVoted
- type ContractVotedIterator
Constants ¶
const ContractABI = "" /* 11443-byte string literal not displayed */
ContractABI is the input ABI used to generate the binding from.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Contract ¶
type Contract struct { ContractCaller // Read-only binding to the contract ContractTransactor // Write-only binding to the contract ContractFilterer // Log filterer for contract events }
Contract is an auto generated Go binding around an Ethereum contract.
func NewContract ¶
NewContract creates a new instance of Contract, bound to a specific deployed contract.
type ContractCaller ¶
type ContractCaller struct {
// contains filtered or unexported fields
}
ContractCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewContractCaller ¶
func NewContractCaller(address common.Address, caller bind.ContractCaller) (*ContractCaller, error)
NewContractCaller creates a new read-only instance of Contract, bound to a specific deployed contract.
func (*ContractCaller) Bytes32ToString ¶
func (_Contract *ContractCaller) Bytes32ToString(opts *bind.CallOpts, _bytes32 [32]byte) (string, error)
Bytes32ToString is a free data retrieval call binding the contract method 0x9201de55.
Solidity: function bytes32ToString(bytes32 _bytes32) pure returns(string)
func (*ContractCaller) CalculateVotingTally ¶
func (_Contract *ContractCaller) CalculateVotingTally(opts *bind.CallOpts, proposalID *big.Int) (struct { ProposalResolved bool WinnerID *big.Int Votes *big.Int }, error)
CalculateVotingTally is a free data retrieval call binding the contract method 0x14262d79.
Solidity: function calculateVotingTally(uint256 proposalID) view returns(bool proposalResolved, uint256 winnerID, uint256 votes)
func (*ContractCaller) GetTask ¶
func (_Contract *ContractCaller) GetTask(opts *bind.CallOpts, i *big.Int) (struct { Active bool Assignment *big.Int ProposalID *big.Int }, error)
GetTask is a free data retrieval call binding the contract method 0x1d65e77e.
Solidity: function getTask(uint256 i) view returns(bool active, uint256 assignment, uint256 proposalID)
func (*ContractCaller) GetVote ¶
func (_Contract *ContractCaller) GetVote(opts *bind.CallOpts, from common.Address, delegatedTo common.Address, proposalID *big.Int) (struct { Weight *big.Int Choices []*big.Int }, error)
GetVote is a free data retrieval call binding the contract method 0xb9e6842b.
Solidity: function getVote(address from, address delegatedTo, uint256 proposalID) view returns(uint256 weight, uint256[] choices)
func (*ContractCaller) LastProposalID ¶
LastProposalID is a free data retrieval call binding the contract method 0xa1d373d7.
Solidity: function lastProposalID() view returns(uint256)
func (*ContractCaller) MaxExecutionPeriod ¶
MaxExecutionPeriod is a free data retrieval call binding the contract method 0xc25c2f26.
Solidity: function maxExecutionPeriod() pure returns(uint256)
func (*ContractCaller) MaxOptions ¶
MaxOptions is a free data retrieval call binding the contract method 0x5df17077.
Solidity: function maxOptions() pure returns(uint256)
func (*ContractCaller) MinVotesAbsolute ¶
func (_Contract *ContractCaller) MinVotesAbsolute(opts *bind.CallOpts, totalWeight *big.Int, minVotesRatio *big.Int) (*big.Int, error)
MinVotesAbsolute is a free data retrieval call binding the contract method 0x1191e270.
Solidity: function minVotesAbsolute(uint256 totalWeight, uint256 minVotesRatio) pure returns(uint256)
func (*ContractCaller) OverriddenWeight ¶
func (_Contract *ContractCaller) OverriddenWeight(opts *bind.CallOpts, arg0 common.Address, arg1 *big.Int) (*big.Int, error)
OverriddenWeight is a free data retrieval call binding the contract method 0x2177d6fc.
Solidity: function overriddenWeight(address , uint256 ) view returns(uint256)
func (*ContractCaller) ProposalBurntFee ¶
ProposalBurntFee is a free data retrieval call binding the contract method 0x8a444bd7.
Solidity: function proposalBurntFee() pure returns(uint256)
func (*ContractCaller) ProposalFee ¶
ProposalFee is a free data retrieval call binding the contract method 0xc27cabb5.
Solidity: function proposalFee() pure returns(uint256)
func (*ContractCaller) ProposalOptionState ¶
func (_Contract *ContractCaller) ProposalOptionState(opts *bind.CallOpts, proposalID *big.Int, optionID *big.Int) (struct { Votes *big.Int AgreementRatio *big.Int Agreement *big.Int }, error)
ProposalOptionState is a free data retrieval call binding the contract method 0x5f89801e.
Solidity: function proposalOptionState(uint256 proposalID, uint256 optionID) view returns(uint256 votes, uint256 agreementRatio, uint256 agreement)
func (*ContractCaller) ProposalParams ¶
func (_Contract *ContractCaller) ProposalParams(opts *bind.CallOpts, proposalID *big.Int) (struct { PType *big.Int Executable uint8 MinVotes *big.Int MinAgreement *big.Int OpinionScales []*big.Int Options [][32]byte ProposalContract common.Address VotingStartTime *big.Int VotingMinEndTime *big.Int VotingMaxEndTime *big.Int }, error)
ProposalParams is a free data retrieval call binding the contract method 0xcfa1afa3.
Solidity: function proposalParams(uint256 proposalID) view returns(uint256 pType, uint8 executable, uint256 minVotes, uint256 minAgreement, uint256[] opinionScales, bytes32[] options, address proposalContract, uint256 votingStartTime, uint256 votingMinEndTime, uint256 votingMaxEndTime)
func (*ContractCaller) ProposalState ¶
func (_Contract *ContractCaller) ProposalState(opts *bind.CallOpts, proposalID *big.Int) (struct { WinnerOptionID *big.Int Votes *big.Int Status *big.Int }, error)
ProposalState is a free data retrieval call binding the contract method 0xd26331d4.
Solidity: function proposalState(uint256 proposalID) view returns(uint256 winnerOptionID, uint256 votes, uint256 status)
func (*ContractCaller) TaskErasingReward ¶
TaskErasingReward is a free data retrieval call binding the contract method 0xaea2ddbd.
Solidity: function taskErasingReward() pure returns(uint256)
func (*ContractCaller) TaskHandlingReward ¶
TaskHandlingReward is a free data retrieval call binding the contract method 0xe3a4d709.
Solidity: function taskHandlingReward() pure returns(uint256)
func (*ContractCaller) TasksCount ¶
TasksCount is a free data retrieval call binding the contract method 0xbb6a0f07.
Solidity: function tasksCount() view returns(uint256)
type ContractCallerRaw ¶
type ContractCallerRaw struct {
Contract *ContractCaller // Generic read-only contract binding to access the raw methods on
}
ContractCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*ContractCallerRaw) Call ¶
func (_Contract *ContractCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error
Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.
type ContractCallerSession ¶
type ContractCallerSession struct { Contract *ContractCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
ContractCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*ContractCallerSession) Bytes32ToString ¶
func (_Contract *ContractCallerSession) Bytes32ToString(_bytes32 [32]byte) (string, error)
Bytes32ToString is a free data retrieval call binding the contract method 0x9201de55.
Solidity: function bytes32ToString(bytes32 _bytes32) pure returns(string)
func (*ContractCallerSession) CalculateVotingTally ¶
func (_Contract *ContractCallerSession) CalculateVotingTally(proposalID *big.Int) (struct { ProposalResolved bool WinnerID *big.Int Votes *big.Int }, error)
CalculateVotingTally is a free data retrieval call binding the contract method 0x14262d79.
Solidity: function calculateVotingTally(uint256 proposalID) view returns(bool proposalResolved, uint256 winnerID, uint256 votes)
func (*ContractCallerSession) GetTask ¶
func (_Contract *ContractCallerSession) GetTask(i *big.Int) (struct { Active bool Assignment *big.Int ProposalID *big.Int }, error)
GetTask is a free data retrieval call binding the contract method 0x1d65e77e.
Solidity: function getTask(uint256 i) view returns(bool active, uint256 assignment, uint256 proposalID)
func (*ContractCallerSession) GetVote ¶
func (_Contract *ContractCallerSession) GetVote(from common.Address, delegatedTo common.Address, proposalID *big.Int) (struct { Weight *big.Int Choices []*big.Int }, error)
GetVote is a free data retrieval call binding the contract method 0xb9e6842b.
Solidity: function getVote(address from, address delegatedTo, uint256 proposalID) view returns(uint256 weight, uint256[] choices)
func (*ContractCallerSession) LastProposalID ¶
func (_Contract *ContractCallerSession) LastProposalID() (*big.Int, error)
LastProposalID is a free data retrieval call binding the contract method 0xa1d373d7.
Solidity: function lastProposalID() view returns(uint256)
func (*ContractCallerSession) MaxExecutionPeriod ¶
func (_Contract *ContractCallerSession) MaxExecutionPeriod() (*big.Int, error)
MaxExecutionPeriod is a free data retrieval call binding the contract method 0xc25c2f26.
Solidity: function maxExecutionPeriod() pure returns(uint256)
func (*ContractCallerSession) MaxOptions ¶
func (_Contract *ContractCallerSession) MaxOptions() (*big.Int, error)
MaxOptions is a free data retrieval call binding the contract method 0x5df17077.
Solidity: function maxOptions() pure returns(uint256)
func (*ContractCallerSession) MinVotesAbsolute ¶
func (_Contract *ContractCallerSession) MinVotesAbsolute(totalWeight *big.Int, minVotesRatio *big.Int) (*big.Int, error)
MinVotesAbsolute is a free data retrieval call binding the contract method 0x1191e270.
Solidity: function minVotesAbsolute(uint256 totalWeight, uint256 minVotesRatio) pure returns(uint256)
func (*ContractCallerSession) OverriddenWeight ¶
func (_Contract *ContractCallerSession) OverriddenWeight(arg0 common.Address, arg1 *big.Int) (*big.Int, error)
OverriddenWeight is a free data retrieval call binding the contract method 0x2177d6fc.
Solidity: function overriddenWeight(address , uint256 ) view returns(uint256)
func (*ContractCallerSession) ProposalBurntFee ¶
func (_Contract *ContractCallerSession) ProposalBurntFee() (*big.Int, error)
ProposalBurntFee is a free data retrieval call binding the contract method 0x8a444bd7.
Solidity: function proposalBurntFee() pure returns(uint256)
func (*ContractCallerSession) ProposalFee ¶
func (_Contract *ContractCallerSession) ProposalFee() (*big.Int, error)
ProposalFee is a free data retrieval call binding the contract method 0xc27cabb5.
Solidity: function proposalFee() pure returns(uint256)
func (*ContractCallerSession) ProposalOptionState ¶
func (_Contract *ContractCallerSession) ProposalOptionState(proposalID *big.Int, optionID *big.Int) (struct { Votes *big.Int AgreementRatio *big.Int Agreement *big.Int }, error)
ProposalOptionState is a free data retrieval call binding the contract method 0x5f89801e.
Solidity: function proposalOptionState(uint256 proposalID, uint256 optionID) view returns(uint256 votes, uint256 agreementRatio, uint256 agreement)
func (*ContractCallerSession) ProposalParams ¶
func (_Contract *ContractCallerSession) ProposalParams(proposalID *big.Int) (struct { PType *big.Int Executable uint8 MinVotes *big.Int MinAgreement *big.Int OpinionScales []*big.Int Options [][32]byte ProposalContract common.Address VotingStartTime *big.Int VotingMinEndTime *big.Int VotingMaxEndTime *big.Int }, error)
ProposalParams is a free data retrieval call binding the contract method 0xcfa1afa3.
Solidity: function proposalParams(uint256 proposalID) view returns(uint256 pType, uint8 executable, uint256 minVotes, uint256 minAgreement, uint256[] opinionScales, bytes32[] options, address proposalContract, uint256 votingStartTime, uint256 votingMinEndTime, uint256 votingMaxEndTime)
func (*ContractCallerSession) ProposalState ¶
func (_Contract *ContractCallerSession) ProposalState(proposalID *big.Int) (struct { WinnerOptionID *big.Int Votes *big.Int Status *big.Int }, error)
ProposalState is a free data retrieval call binding the contract method 0xd26331d4.
Solidity: function proposalState(uint256 proposalID) view returns(uint256 winnerOptionID, uint256 votes, uint256 status)
func (*ContractCallerSession) TaskErasingReward ¶
func (_Contract *ContractCallerSession) TaskErasingReward() (*big.Int, error)
TaskErasingReward is a free data retrieval call binding the contract method 0xaea2ddbd.
Solidity: function taskErasingReward() pure returns(uint256)
func (*ContractCallerSession) TaskHandlingReward ¶
func (_Contract *ContractCallerSession) TaskHandlingReward() (*big.Int, error)
TaskHandlingReward is a free data retrieval call binding the contract method 0xe3a4d709.
Solidity: function taskHandlingReward() pure returns(uint256)
func (*ContractCallerSession) TasksCount ¶
func (_Contract *ContractCallerSession) TasksCount() (*big.Int, error)
TasksCount is a free data retrieval call binding the contract method 0xbb6a0f07.
Solidity: function tasksCount() view returns(uint256)
func (*ContractCallerSession) Version ¶
func (_Contract *ContractCallerSession) Version() ([4]byte, error)
Version is a free data retrieval call binding the contract method 0x54fd4d50.
Solidity: function version() pure returns(bytes4)
type ContractFilterer ¶
type ContractFilterer struct {
// contains filtered or unexported fields
}
ContractFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewContractFilterer ¶
func NewContractFilterer(address common.Address, filterer bind.ContractFilterer) (*ContractFilterer, error)
NewContractFilterer creates a new log filterer instance of Contract, bound to a specific deployed contract.
func (*ContractFilterer) FilterProposalCanceled ¶
func (_Contract *ContractFilterer) FilterProposalCanceled(opts *bind.FilterOpts) (*ContractProposalCanceledIterator, error)
FilterProposalCanceled is a free log retrieval operation binding the contract event 0x789cf55be980739dad1d0699b93b58e806b51c9d96619bfa8fe0a28abaa7b30c.
Solidity: event ProposalCanceled(uint256 proposalID)
func (*ContractFilterer) FilterProposalCreated ¶
func (_Contract *ContractFilterer) FilterProposalCreated(opts *bind.FilterOpts) (*ContractProposalCreatedIterator, error)
FilterProposalCreated is a free log retrieval operation binding the contract event 0xc2c021f5d73c63c481d336fbbafec58f694fc45095f00b02d2deb8cca59afe07.
Solidity: event ProposalCreated(uint256 proposalID)
func (*ContractFilterer) FilterProposalExecutionExpired ¶
func (_Contract *ContractFilterer) FilterProposalExecutionExpired(opts *bind.FilterOpts) (*ContractProposalExecutionExpiredIterator, error)
FilterProposalExecutionExpired is a free log retrieval operation binding the contract event 0xe8365dd25802fb5113a4ebd6fbe5fee885b5ea470b6b1467f3f4df69e490ed87.
Solidity: event ProposalExecutionExpired(uint256 proposalID)
func (*ContractFilterer) FilterProposalRejected ¶
func (_Contract *ContractFilterer) FilterProposalRejected(opts *bind.FilterOpts) (*ContractProposalRejectedIterator, error)
FilterProposalRejected is a free log retrieval operation binding the contract event 0xd92fba445edb3153b571e6df782d7a66fd0ce668519273670820ee3a86da0ef4.
Solidity: event ProposalRejected(uint256 proposalID)
func (*ContractFilterer) FilterProposalResolved ¶
func (_Contract *ContractFilterer) FilterProposalResolved(opts *bind.FilterOpts) (*ContractProposalResolvedIterator, error)
FilterProposalResolved is a free log retrieval operation binding the contract event 0x663674d96fd5c2a954bf75ad2e6795f9c9701eb687a7a8f3297c7a299467c941.
Solidity: event ProposalResolved(uint256 proposalID)
func (*ContractFilterer) FilterTasksErased ¶
func (_Contract *ContractFilterer) FilterTasksErased(opts *bind.FilterOpts) (*ContractTasksErasedIterator, error)
FilterTasksErased is a free log retrieval operation binding the contract event 0xdd64b087b4726a6d5006bfae34869d1044e415cd6fc53054b69619ee337b730d.
Solidity: event TasksErased(uint256 quantity)
func (*ContractFilterer) FilterTasksHandled ¶
func (_Contract *ContractFilterer) FilterTasksHandled(opts *bind.FilterOpts) (*ContractTasksHandledIterator, error)
FilterTasksHandled is a free log retrieval operation binding the contract event 0x010b51ac92c2d2e8fe9c84de31065ca878ff8274a1e5e6d31799520b7d16bb58.
Solidity: event TasksHandled(uint256 startIdx, uint256 endIdx, uint256 handled)
func (*ContractFilterer) FilterVoteCanceled ¶
func (_Contract *ContractFilterer) FilterVoteCanceled(opts *bind.FilterOpts) (*ContractVoteCanceledIterator, error)
FilterVoteCanceled is a free log retrieval operation binding the contract event 0x666685d133047310e2a2e8c4f6794b6dccb4e9ad9c6903ac753fb10d8918b649.
Solidity: event VoteCanceled(address voter, address delegatedTo, uint256 proposalID)
func (*ContractFilterer) FilterVoteWeightOverridden ¶
func (_Contract *ContractFilterer) FilterVoteWeightOverridden(opts *bind.FilterOpts) (*ContractVoteWeightOverriddenIterator, error)
FilterVoteWeightOverridden is a free log retrieval operation binding the contract event 0x68fe85c5f71a2900fddf574935a27d4f1cb28af34d4fa2742b202684b45d3d14.
Solidity: event VoteWeightOverridden(address voter, uint256 diff)
func (*ContractFilterer) FilterVoteWeightUnOverridden ¶
func (_Contract *ContractFilterer) FilterVoteWeightUnOverridden(opts *bind.FilterOpts) (*ContractVoteWeightUnOverriddenIterator, error)
FilterVoteWeightUnOverridden is a free log retrieval operation binding the contract event 0x11d7313426c62d856bd4ea20cdef8b93af4b40d2ea5b8f6f962fc705dbdcdbef.
Solidity: event VoteWeightUnOverridden(address voter, uint256 diff)
func (*ContractFilterer) FilterVoted ¶
func (_Contract *ContractFilterer) FilterVoted(opts *bind.FilterOpts) (*ContractVotedIterator, error)
FilterVoted is a free log retrieval operation binding the contract event 0x6e5f0f6e0ce2bdcdb0a82952fc6eb90c4c22f0b6228e4619b5dc2118e1166a12.
Solidity: event Voted(address voter, address delegatedTo, uint256 proposalID, uint256[] choices, uint256 weight)
func (*ContractFilterer) ParseProposalCanceled ¶
func (_Contract *ContractFilterer) ParseProposalCanceled(log types.Log) (*ContractProposalCanceled, error)
ParseProposalCanceled is a log parse operation binding the contract event 0x789cf55be980739dad1d0699b93b58e806b51c9d96619bfa8fe0a28abaa7b30c.
Solidity: event ProposalCanceled(uint256 proposalID)
func (*ContractFilterer) ParseProposalCreated ¶
func (_Contract *ContractFilterer) ParseProposalCreated(log types.Log) (*ContractProposalCreated, error)
ParseProposalCreated is a log parse operation binding the contract event 0xc2c021f5d73c63c481d336fbbafec58f694fc45095f00b02d2deb8cca59afe07.
Solidity: event ProposalCreated(uint256 proposalID)
func (*ContractFilterer) ParseProposalExecutionExpired ¶
func (_Contract *ContractFilterer) ParseProposalExecutionExpired(log types.Log) (*ContractProposalExecutionExpired, error)
ParseProposalExecutionExpired is a log parse operation binding the contract event 0xe8365dd25802fb5113a4ebd6fbe5fee885b5ea470b6b1467f3f4df69e490ed87.
Solidity: event ProposalExecutionExpired(uint256 proposalID)
func (*ContractFilterer) ParseProposalRejected ¶
func (_Contract *ContractFilterer) ParseProposalRejected(log types.Log) (*ContractProposalRejected, error)
ParseProposalRejected is a log parse operation binding the contract event 0xd92fba445edb3153b571e6df782d7a66fd0ce668519273670820ee3a86da0ef4.
Solidity: event ProposalRejected(uint256 proposalID)
func (*ContractFilterer) ParseProposalResolved ¶
func (_Contract *ContractFilterer) ParseProposalResolved(log types.Log) (*ContractProposalResolved, error)
ParseProposalResolved is a log parse operation binding the contract event 0x663674d96fd5c2a954bf75ad2e6795f9c9701eb687a7a8f3297c7a299467c941.
Solidity: event ProposalResolved(uint256 proposalID)
func (*ContractFilterer) ParseTasksErased ¶
func (_Contract *ContractFilterer) ParseTasksErased(log types.Log) (*ContractTasksErased, error)
ParseTasksErased is a log parse operation binding the contract event 0xdd64b087b4726a6d5006bfae34869d1044e415cd6fc53054b69619ee337b730d.
Solidity: event TasksErased(uint256 quantity)
func (*ContractFilterer) ParseTasksHandled ¶
func (_Contract *ContractFilterer) ParseTasksHandled(log types.Log) (*ContractTasksHandled, error)
ParseTasksHandled is a log parse operation binding the contract event 0x010b51ac92c2d2e8fe9c84de31065ca878ff8274a1e5e6d31799520b7d16bb58.
Solidity: event TasksHandled(uint256 startIdx, uint256 endIdx, uint256 handled)
func (*ContractFilterer) ParseVoteCanceled ¶
func (_Contract *ContractFilterer) ParseVoteCanceled(log types.Log) (*ContractVoteCanceled, error)
ParseVoteCanceled is a log parse operation binding the contract event 0x666685d133047310e2a2e8c4f6794b6dccb4e9ad9c6903ac753fb10d8918b649.
Solidity: event VoteCanceled(address voter, address delegatedTo, uint256 proposalID)
func (*ContractFilterer) ParseVoteWeightOverridden ¶
func (_Contract *ContractFilterer) ParseVoteWeightOverridden(log types.Log) (*ContractVoteWeightOverridden, error)
ParseVoteWeightOverridden is a log parse operation binding the contract event 0x68fe85c5f71a2900fddf574935a27d4f1cb28af34d4fa2742b202684b45d3d14.
Solidity: event VoteWeightOverridden(address voter, uint256 diff)
func (*ContractFilterer) ParseVoteWeightUnOverridden ¶
func (_Contract *ContractFilterer) ParseVoteWeightUnOverridden(log types.Log) (*ContractVoteWeightUnOverridden, error)
ParseVoteWeightUnOverridden is a log parse operation binding the contract event 0x11d7313426c62d856bd4ea20cdef8b93af4b40d2ea5b8f6f962fc705dbdcdbef.
Solidity: event VoteWeightUnOverridden(address voter, uint256 diff)
func (*ContractFilterer) ParseVoted ¶
func (_Contract *ContractFilterer) ParseVoted(log types.Log) (*ContractVoted, error)
ParseVoted is a log parse operation binding the contract event 0x6e5f0f6e0ce2bdcdb0a82952fc6eb90c4c22f0b6228e4619b5dc2118e1166a12.
Solidity: event Voted(address voter, address delegatedTo, uint256 proposalID, uint256[] choices, uint256 weight)
func (*ContractFilterer) WatchProposalCanceled ¶
func (_Contract *ContractFilterer) WatchProposalCanceled(opts *bind.WatchOpts, sink chan<- *ContractProposalCanceled) (event.Subscription, error)
WatchProposalCanceled is a free log subscription operation binding the contract event 0x789cf55be980739dad1d0699b93b58e806b51c9d96619bfa8fe0a28abaa7b30c.
Solidity: event ProposalCanceled(uint256 proposalID)
func (*ContractFilterer) WatchProposalCreated ¶
func (_Contract *ContractFilterer) WatchProposalCreated(opts *bind.WatchOpts, sink chan<- *ContractProposalCreated) (event.Subscription, error)
WatchProposalCreated is a free log subscription operation binding the contract event 0xc2c021f5d73c63c481d336fbbafec58f694fc45095f00b02d2deb8cca59afe07.
Solidity: event ProposalCreated(uint256 proposalID)
func (*ContractFilterer) WatchProposalExecutionExpired ¶
func (_Contract *ContractFilterer) WatchProposalExecutionExpired(opts *bind.WatchOpts, sink chan<- *ContractProposalExecutionExpired) (event.Subscription, error)
WatchProposalExecutionExpired is a free log subscription operation binding the contract event 0xe8365dd25802fb5113a4ebd6fbe5fee885b5ea470b6b1467f3f4df69e490ed87.
Solidity: event ProposalExecutionExpired(uint256 proposalID)
func (*ContractFilterer) WatchProposalRejected ¶
func (_Contract *ContractFilterer) WatchProposalRejected(opts *bind.WatchOpts, sink chan<- *ContractProposalRejected) (event.Subscription, error)
WatchProposalRejected is a free log subscription operation binding the contract event 0xd92fba445edb3153b571e6df782d7a66fd0ce668519273670820ee3a86da0ef4.
Solidity: event ProposalRejected(uint256 proposalID)
func (*ContractFilterer) WatchProposalResolved ¶
func (_Contract *ContractFilterer) WatchProposalResolved(opts *bind.WatchOpts, sink chan<- *ContractProposalResolved) (event.Subscription, error)
WatchProposalResolved is a free log subscription operation binding the contract event 0x663674d96fd5c2a954bf75ad2e6795f9c9701eb687a7a8f3297c7a299467c941.
Solidity: event ProposalResolved(uint256 proposalID)
func (*ContractFilterer) WatchTasksErased ¶
func (_Contract *ContractFilterer) WatchTasksErased(opts *bind.WatchOpts, sink chan<- *ContractTasksErased) (event.Subscription, error)
WatchTasksErased is a free log subscription operation binding the contract event 0xdd64b087b4726a6d5006bfae34869d1044e415cd6fc53054b69619ee337b730d.
Solidity: event TasksErased(uint256 quantity)
func (*ContractFilterer) WatchTasksHandled ¶
func (_Contract *ContractFilterer) WatchTasksHandled(opts *bind.WatchOpts, sink chan<- *ContractTasksHandled) (event.Subscription, error)
WatchTasksHandled is a free log subscription operation binding the contract event 0x010b51ac92c2d2e8fe9c84de31065ca878ff8274a1e5e6d31799520b7d16bb58.
Solidity: event TasksHandled(uint256 startIdx, uint256 endIdx, uint256 handled)
func (*ContractFilterer) WatchVoteCanceled ¶
func (_Contract *ContractFilterer) WatchVoteCanceled(opts *bind.WatchOpts, sink chan<- *ContractVoteCanceled) (event.Subscription, error)
WatchVoteCanceled is a free log subscription operation binding the contract event 0x666685d133047310e2a2e8c4f6794b6dccb4e9ad9c6903ac753fb10d8918b649.
Solidity: event VoteCanceled(address voter, address delegatedTo, uint256 proposalID)
func (*ContractFilterer) WatchVoteWeightOverridden ¶
func (_Contract *ContractFilterer) WatchVoteWeightOverridden(opts *bind.WatchOpts, sink chan<- *ContractVoteWeightOverridden) (event.Subscription, error)
WatchVoteWeightOverridden is a free log subscription operation binding the contract event 0x68fe85c5f71a2900fddf574935a27d4f1cb28af34d4fa2742b202684b45d3d14.
Solidity: event VoteWeightOverridden(address voter, uint256 diff)
func (*ContractFilterer) WatchVoteWeightUnOverridden ¶
func (_Contract *ContractFilterer) WatchVoteWeightUnOverridden(opts *bind.WatchOpts, sink chan<- *ContractVoteWeightUnOverridden) (event.Subscription, error)
WatchVoteWeightUnOverridden is a free log subscription operation binding the contract event 0x11d7313426c62d856bd4ea20cdef8b93af4b40d2ea5b8f6f962fc705dbdcdbef.
Solidity: event VoteWeightUnOverridden(address voter, uint256 diff)
func (*ContractFilterer) WatchVoted ¶
func (_Contract *ContractFilterer) WatchVoted(opts *bind.WatchOpts, sink chan<- *ContractVoted) (event.Subscription, error)
WatchVoted is a free log subscription operation binding the contract event 0x6e5f0f6e0ce2bdcdb0a82952fc6eb90c4c22f0b6228e4619b5dc2118e1166a12.
Solidity: event Voted(address voter, address delegatedTo, uint256 proposalID, uint256[] choices, uint256 weight)
type ContractProposalCanceled ¶
type ContractProposalCanceled struct { ProposalID *big.Int Raw types.Log // Blockchain specific contextual infos }
ContractProposalCanceled represents a ProposalCanceled event raised by the Contract contract.
type ContractProposalCanceledIterator ¶
type ContractProposalCanceledIterator struct { Event *ContractProposalCanceled // Event containing the contract specifics and raw log // contains filtered or unexported fields }
ContractProposalCanceledIterator is returned from FilterProposalCanceled and is used to iterate over the raw logs and unpacked data for ProposalCanceled events raised by the Contract contract.
func (*ContractProposalCanceledIterator) Close ¶
func (it *ContractProposalCanceledIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*ContractProposalCanceledIterator) Error ¶
func (it *ContractProposalCanceledIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*ContractProposalCanceledIterator) Next ¶
func (it *ContractProposalCanceledIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type ContractProposalCreated ¶
type ContractProposalCreated struct { ProposalID *big.Int Raw types.Log // Blockchain specific contextual infos }
ContractProposalCreated represents a ProposalCreated event raised by the Contract contract.
type ContractProposalCreatedIterator ¶
type ContractProposalCreatedIterator struct { Event *ContractProposalCreated // Event containing the contract specifics and raw log // contains filtered or unexported fields }
ContractProposalCreatedIterator is returned from FilterProposalCreated and is used to iterate over the raw logs and unpacked data for ProposalCreated events raised by the Contract contract.
func (*ContractProposalCreatedIterator) Close ¶
func (it *ContractProposalCreatedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*ContractProposalCreatedIterator) Error ¶
func (it *ContractProposalCreatedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*ContractProposalCreatedIterator) Next ¶
func (it *ContractProposalCreatedIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type ContractProposalExecutionExpired ¶
type ContractProposalExecutionExpired struct { ProposalID *big.Int Raw types.Log // Blockchain specific contextual infos }
ContractProposalExecutionExpired represents a ProposalExecutionExpired event raised by the Contract contract.
type ContractProposalExecutionExpiredIterator ¶
type ContractProposalExecutionExpiredIterator struct { Event *ContractProposalExecutionExpired // Event containing the contract specifics and raw log // contains filtered or unexported fields }
ContractProposalExecutionExpiredIterator is returned from FilterProposalExecutionExpired and is used to iterate over the raw logs and unpacked data for ProposalExecutionExpired events raised by the Contract contract.
func (*ContractProposalExecutionExpiredIterator) Close ¶
func (it *ContractProposalExecutionExpiredIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*ContractProposalExecutionExpiredIterator) Error ¶
func (it *ContractProposalExecutionExpiredIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*ContractProposalExecutionExpiredIterator) Next ¶
func (it *ContractProposalExecutionExpiredIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type ContractProposalRejected ¶
type ContractProposalRejected struct { ProposalID *big.Int Raw types.Log // Blockchain specific contextual infos }
ContractProposalRejected represents a ProposalRejected event raised by the Contract contract.
type ContractProposalRejectedIterator ¶
type ContractProposalRejectedIterator struct { Event *ContractProposalRejected // Event containing the contract specifics and raw log // contains filtered or unexported fields }
ContractProposalRejectedIterator is returned from FilterProposalRejected and is used to iterate over the raw logs and unpacked data for ProposalRejected events raised by the Contract contract.
func (*ContractProposalRejectedIterator) Close ¶
func (it *ContractProposalRejectedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*ContractProposalRejectedIterator) Error ¶
func (it *ContractProposalRejectedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*ContractProposalRejectedIterator) Next ¶
func (it *ContractProposalRejectedIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type ContractProposalResolved ¶
type ContractProposalResolved struct { ProposalID *big.Int Raw types.Log // Blockchain specific contextual infos }
ContractProposalResolved represents a ProposalResolved event raised by the Contract contract.
type ContractProposalResolvedIterator ¶
type ContractProposalResolvedIterator struct { Event *ContractProposalResolved // Event containing the contract specifics and raw log // contains filtered or unexported fields }
ContractProposalResolvedIterator is returned from FilterProposalResolved and is used to iterate over the raw logs and unpacked data for ProposalResolved events raised by the Contract contract.
func (*ContractProposalResolvedIterator) Close ¶
func (it *ContractProposalResolvedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*ContractProposalResolvedIterator) Error ¶
func (it *ContractProposalResolvedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*ContractProposalResolvedIterator) Next ¶
func (it *ContractProposalResolvedIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type ContractRaw ¶
type ContractRaw struct {
Contract *Contract // Generic contract binding to access the raw methods on
}
ContractRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*ContractRaw) Call ¶
func (_Contract *ContractRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error
Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.
func (*ContractRaw) Transact ¶
func (_Contract *ContractRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*ContractRaw) Transfer ¶
func (_Contract *ContractRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.
type ContractSession ¶
type ContractSession struct { Contract *Contract // Generic contract binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
ContractSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*ContractSession) Bytes32ToString ¶
func (_Contract *ContractSession) Bytes32ToString(_bytes32 [32]byte) (string, error)
Bytes32ToString is a free data retrieval call binding the contract method 0x9201de55.
Solidity: function bytes32ToString(bytes32 _bytes32) pure returns(string)
func (*ContractSession) CalculateVotingTally ¶
func (_Contract *ContractSession) CalculateVotingTally(proposalID *big.Int) (struct { ProposalResolved bool WinnerID *big.Int Votes *big.Int }, error)
CalculateVotingTally is a free data retrieval call binding the contract method 0x14262d79.
Solidity: function calculateVotingTally(uint256 proposalID) view returns(bool proposalResolved, uint256 winnerID, uint256 votes)
func (*ContractSession) CancelProposal ¶
func (_Contract *ContractSession) CancelProposal(proposalID *big.Int) (*types.Transaction, error)
CancelProposal is a paid mutator transaction binding the contract method 0xe0a8f6f5.
Solidity: function cancelProposal(uint256 proposalID) returns()
func (*ContractSession) CancelVote ¶
func (_Contract *ContractSession) CancelVote(delegatedTo common.Address, proposalID *big.Int) (*types.Transaction, error)
CancelVote is a paid mutator transaction binding the contract method 0x21edf2eb.
Solidity: function cancelVote(address delegatedTo, uint256 proposalID) returns()
func (*ContractSession) CreateProposal ¶
func (_Contract *ContractSession) CreateProposal(proposalContract common.Address) (*types.Transaction, error)
CreateProposal is a paid mutator transaction binding the contract method 0x07eecaf5.
Solidity: function createProposal(address proposalContract) payable returns()
func (*ContractSession) GetTask ¶
func (_Contract *ContractSession) GetTask(i *big.Int) (struct { Active bool Assignment *big.Int ProposalID *big.Int }, error)
GetTask is a free data retrieval call binding the contract method 0x1d65e77e.
Solidity: function getTask(uint256 i) view returns(bool active, uint256 assignment, uint256 proposalID)
func (*ContractSession) GetVote ¶
func (_Contract *ContractSession) GetVote(from common.Address, delegatedTo common.Address, proposalID *big.Int) (struct { Weight *big.Int Choices []*big.Int }, error)
GetVote is a free data retrieval call binding the contract method 0xb9e6842b.
Solidity: function getVote(address from, address delegatedTo, uint256 proposalID) view returns(uint256 weight, uint256[] choices)
func (*ContractSession) HandleTasks ¶
func (_Contract *ContractSession) HandleTasks(startIdx *big.Int, quantity *big.Int) (*types.Transaction, error)
HandleTasks is a paid mutator transaction binding the contract method 0x6b2ad7d8.
Solidity: function handleTasks(uint256 startIdx, uint256 quantity) returns()
func (*ContractSession) Initialize ¶
func (_Contract *ContractSession) Initialize(_governableContract common.Address, _proposalVerifier common.Address) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0x485cc955.
Solidity: function initialize(address _governableContract, address _proposalVerifier) returns()
func (*ContractSession) LastProposalID ¶
func (_Contract *ContractSession) LastProposalID() (*big.Int, error)
LastProposalID is a free data retrieval call binding the contract method 0xa1d373d7.
Solidity: function lastProposalID() view returns(uint256)
func (*ContractSession) MaxExecutionPeriod ¶
func (_Contract *ContractSession) MaxExecutionPeriod() (*big.Int, error)
MaxExecutionPeriod is a free data retrieval call binding the contract method 0xc25c2f26.
Solidity: function maxExecutionPeriod() pure returns(uint256)
func (*ContractSession) MaxOptions ¶
func (_Contract *ContractSession) MaxOptions() (*big.Int, error)
MaxOptions is a free data retrieval call binding the contract method 0x5df17077.
Solidity: function maxOptions() pure returns(uint256)
func (*ContractSession) MinVotesAbsolute ¶
func (_Contract *ContractSession) MinVotesAbsolute(totalWeight *big.Int, minVotesRatio *big.Int) (*big.Int, error)
MinVotesAbsolute is a free data retrieval call binding the contract method 0x1191e270.
Solidity: function minVotesAbsolute(uint256 totalWeight, uint256 minVotesRatio) pure returns(uint256)
func (*ContractSession) OverriddenWeight ¶
func (_Contract *ContractSession) OverriddenWeight(arg0 common.Address, arg1 *big.Int) (*big.Int, error)
OverriddenWeight is a free data retrieval call binding the contract method 0x2177d6fc.
Solidity: function overriddenWeight(address , uint256 ) view returns(uint256)
func (*ContractSession) ProposalBurntFee ¶
func (_Contract *ContractSession) ProposalBurntFee() (*big.Int, error)
ProposalBurntFee is a free data retrieval call binding the contract method 0x8a444bd7.
Solidity: function proposalBurntFee() pure returns(uint256)
func (*ContractSession) ProposalFee ¶
func (_Contract *ContractSession) ProposalFee() (*big.Int, error)
ProposalFee is a free data retrieval call binding the contract method 0xc27cabb5.
Solidity: function proposalFee() pure returns(uint256)
func (*ContractSession) ProposalOptionState ¶
func (_Contract *ContractSession) ProposalOptionState(proposalID *big.Int, optionID *big.Int) (struct { Votes *big.Int AgreementRatio *big.Int Agreement *big.Int }, error)
ProposalOptionState is a free data retrieval call binding the contract method 0x5f89801e.
Solidity: function proposalOptionState(uint256 proposalID, uint256 optionID) view returns(uint256 votes, uint256 agreementRatio, uint256 agreement)
func (*ContractSession) ProposalParams ¶
func (_Contract *ContractSession) ProposalParams(proposalID *big.Int) (struct { PType *big.Int Executable uint8 MinVotes *big.Int MinAgreement *big.Int OpinionScales []*big.Int Options [][32]byte ProposalContract common.Address VotingStartTime *big.Int VotingMinEndTime *big.Int VotingMaxEndTime *big.Int }, error)
ProposalParams is a free data retrieval call binding the contract method 0xcfa1afa3.
Solidity: function proposalParams(uint256 proposalID) view returns(uint256 pType, uint8 executable, uint256 minVotes, uint256 minAgreement, uint256[] opinionScales, bytes32[] options, address proposalContract, uint256 votingStartTime, uint256 votingMinEndTime, uint256 votingMaxEndTime)
func (*ContractSession) ProposalState ¶
func (_Contract *ContractSession) ProposalState(proposalID *big.Int) (struct { WinnerOptionID *big.Int Votes *big.Int Status *big.Int }, error)
ProposalState is a free data retrieval call binding the contract method 0xd26331d4.
Solidity: function proposalState(uint256 proposalID) view returns(uint256 winnerOptionID, uint256 votes, uint256 status)
func (*ContractSession) RecountVote ¶
func (_Contract *ContractSession) RecountVote(voterAddr common.Address, delegatedTo common.Address, proposalID *big.Int) (*types.Transaction, error)
RecountVote is a paid mutator transaction binding the contract method 0x69921506.
Solidity: function recountVote(address voterAddr, address delegatedTo, uint256 proposalID) returns()
func (*ContractSession) TaskErasingReward ¶
func (_Contract *ContractSession) TaskErasingReward() (*big.Int, error)
TaskErasingReward is a free data retrieval call binding the contract method 0xaea2ddbd.
Solidity: function taskErasingReward() pure returns(uint256)
func (*ContractSession) TaskHandlingReward ¶
func (_Contract *ContractSession) TaskHandlingReward() (*big.Int, error)
TaskHandlingReward is a free data retrieval call binding the contract method 0xe3a4d709.
Solidity: function taskHandlingReward() pure returns(uint256)
func (*ContractSession) TasksCleanup ¶
func (_Contract *ContractSession) TasksCleanup(quantity *big.Int) (*types.Transaction, error)
TasksCleanup is a paid mutator transaction binding the contract method 0x491adeee.
Solidity: function tasksCleanup(uint256 quantity) returns()
func (*ContractSession) TasksCount ¶
func (_Contract *ContractSession) TasksCount() (*big.Int, error)
TasksCount is a free data retrieval call binding the contract method 0xbb6a0f07.
Solidity: function tasksCount() view returns(uint256)
func (*ContractSession) Version ¶
func (_Contract *ContractSession) Version() ([4]byte, error)
Version is a free data retrieval call binding the contract method 0x54fd4d50.
Solidity: function version() pure returns(bytes4)
func (*ContractSession) Vote ¶
func (_Contract *ContractSession) Vote(delegatedTo common.Address, proposalID *big.Int, choices []*big.Int) (*types.Transaction, error)
Vote is a paid mutator transaction binding the contract method 0x172c18b1.
Solidity: function vote(address delegatedTo, uint256 proposalID, uint256[] choices) returns()
type ContractTasksErased ¶
type ContractTasksErased struct { Quantity *big.Int Raw types.Log // Blockchain specific contextual infos }
ContractTasksErased represents a TasksErased event raised by the Contract contract.
type ContractTasksErasedIterator ¶
type ContractTasksErasedIterator struct { Event *ContractTasksErased // Event containing the contract specifics and raw log // contains filtered or unexported fields }
ContractTasksErasedIterator is returned from FilterTasksErased and is used to iterate over the raw logs and unpacked data for TasksErased events raised by the Contract contract.
func (*ContractTasksErasedIterator) Close ¶
func (it *ContractTasksErasedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*ContractTasksErasedIterator) Error ¶
func (it *ContractTasksErasedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*ContractTasksErasedIterator) Next ¶
func (it *ContractTasksErasedIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type ContractTasksHandled ¶
type ContractTasksHandled struct { StartIdx *big.Int EndIdx *big.Int Handled *big.Int Raw types.Log // Blockchain specific contextual infos }
ContractTasksHandled represents a TasksHandled event raised by the Contract contract.
type ContractTasksHandledIterator ¶
type ContractTasksHandledIterator struct { Event *ContractTasksHandled // Event containing the contract specifics and raw log // contains filtered or unexported fields }
ContractTasksHandledIterator is returned from FilterTasksHandled and is used to iterate over the raw logs and unpacked data for TasksHandled events raised by the Contract contract.
func (*ContractTasksHandledIterator) Close ¶
func (it *ContractTasksHandledIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*ContractTasksHandledIterator) Error ¶
func (it *ContractTasksHandledIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*ContractTasksHandledIterator) Next ¶
func (it *ContractTasksHandledIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type ContractTransactor ¶
type ContractTransactor struct {
// contains filtered or unexported fields
}
ContractTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewContractTransactor ¶
func NewContractTransactor(address common.Address, transactor bind.ContractTransactor) (*ContractTransactor, error)
NewContractTransactor creates a new write-only instance of Contract, bound to a specific deployed contract.
func (*ContractTransactor) CancelProposal ¶
func (_Contract *ContractTransactor) CancelProposal(opts *bind.TransactOpts, proposalID *big.Int) (*types.Transaction, error)
CancelProposal is a paid mutator transaction binding the contract method 0xe0a8f6f5.
Solidity: function cancelProposal(uint256 proposalID) returns()
func (*ContractTransactor) CancelVote ¶
func (_Contract *ContractTransactor) CancelVote(opts *bind.TransactOpts, delegatedTo common.Address, proposalID *big.Int) (*types.Transaction, error)
CancelVote is a paid mutator transaction binding the contract method 0x21edf2eb.
Solidity: function cancelVote(address delegatedTo, uint256 proposalID) returns()
func (*ContractTransactor) CreateProposal ¶
func (_Contract *ContractTransactor) CreateProposal(opts *bind.TransactOpts, proposalContract common.Address) (*types.Transaction, error)
CreateProposal is a paid mutator transaction binding the contract method 0x07eecaf5.
Solidity: function createProposal(address proposalContract) payable returns()
func (*ContractTransactor) HandleTasks ¶
func (_Contract *ContractTransactor) HandleTasks(opts *bind.TransactOpts, startIdx *big.Int, quantity *big.Int) (*types.Transaction, error)
HandleTasks is a paid mutator transaction binding the contract method 0x6b2ad7d8.
Solidity: function handleTasks(uint256 startIdx, uint256 quantity) returns()
func (*ContractTransactor) Initialize ¶
func (_Contract *ContractTransactor) Initialize(opts *bind.TransactOpts, _governableContract common.Address, _proposalVerifier common.Address) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0x485cc955.
Solidity: function initialize(address _governableContract, address _proposalVerifier) returns()
func (*ContractTransactor) RecountVote ¶
func (_Contract *ContractTransactor) RecountVote(opts *bind.TransactOpts, voterAddr common.Address, delegatedTo common.Address, proposalID *big.Int) (*types.Transaction, error)
RecountVote is a paid mutator transaction binding the contract method 0x69921506.
Solidity: function recountVote(address voterAddr, address delegatedTo, uint256 proposalID) returns()
func (*ContractTransactor) TasksCleanup ¶
func (_Contract *ContractTransactor) TasksCleanup(opts *bind.TransactOpts, quantity *big.Int) (*types.Transaction, error)
TasksCleanup is a paid mutator transaction binding the contract method 0x491adeee.
Solidity: function tasksCleanup(uint256 quantity) returns()
func (*ContractTransactor) Vote ¶
func (_Contract *ContractTransactor) Vote(opts *bind.TransactOpts, delegatedTo common.Address, proposalID *big.Int, choices []*big.Int) (*types.Transaction, error)
Vote is a paid mutator transaction binding the contract method 0x172c18b1.
Solidity: function vote(address delegatedTo, uint256 proposalID, uint256[] choices) returns()
type ContractTransactorRaw ¶
type ContractTransactorRaw struct {
Contract *ContractTransactor // Generic write-only contract binding to access the raw methods on
}
ContractTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*ContractTransactorRaw) Transact ¶
func (_Contract *ContractTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*ContractTransactorRaw) Transfer ¶
func (_Contract *ContractTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.
type ContractTransactorSession ¶
type ContractTransactorSession struct { Contract *ContractTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
ContractTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*ContractTransactorSession) CancelProposal ¶
func (_Contract *ContractTransactorSession) CancelProposal(proposalID *big.Int) (*types.Transaction, error)
CancelProposal is a paid mutator transaction binding the contract method 0xe0a8f6f5.
Solidity: function cancelProposal(uint256 proposalID) returns()
func (*ContractTransactorSession) CancelVote ¶
func (_Contract *ContractTransactorSession) CancelVote(delegatedTo common.Address, proposalID *big.Int) (*types.Transaction, error)
CancelVote is a paid mutator transaction binding the contract method 0x21edf2eb.
Solidity: function cancelVote(address delegatedTo, uint256 proposalID) returns()
func (*ContractTransactorSession) CreateProposal ¶
func (_Contract *ContractTransactorSession) CreateProposal(proposalContract common.Address) (*types.Transaction, error)
CreateProposal is a paid mutator transaction binding the contract method 0x07eecaf5.
Solidity: function createProposal(address proposalContract) payable returns()
func (*ContractTransactorSession) HandleTasks ¶
func (_Contract *ContractTransactorSession) HandleTasks(startIdx *big.Int, quantity *big.Int) (*types.Transaction, error)
HandleTasks is a paid mutator transaction binding the contract method 0x6b2ad7d8.
Solidity: function handleTasks(uint256 startIdx, uint256 quantity) returns()
func (*ContractTransactorSession) Initialize ¶
func (_Contract *ContractTransactorSession) Initialize(_governableContract common.Address, _proposalVerifier common.Address) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0x485cc955.
Solidity: function initialize(address _governableContract, address _proposalVerifier) returns()
func (*ContractTransactorSession) RecountVote ¶
func (_Contract *ContractTransactorSession) RecountVote(voterAddr common.Address, delegatedTo common.Address, proposalID *big.Int) (*types.Transaction, error)
RecountVote is a paid mutator transaction binding the contract method 0x69921506.
Solidity: function recountVote(address voterAddr, address delegatedTo, uint256 proposalID) returns()
func (*ContractTransactorSession) TasksCleanup ¶
func (_Contract *ContractTransactorSession) TasksCleanup(quantity *big.Int) (*types.Transaction, error)
TasksCleanup is a paid mutator transaction binding the contract method 0x491adeee.
Solidity: function tasksCleanup(uint256 quantity) returns()
func (*ContractTransactorSession) Vote ¶
func (_Contract *ContractTransactorSession) Vote(delegatedTo common.Address, proposalID *big.Int, choices []*big.Int) (*types.Transaction, error)
Vote is a paid mutator transaction binding the contract method 0x172c18b1.
Solidity: function vote(address delegatedTo, uint256 proposalID, uint256[] choices) returns()
type ContractVoteCanceled ¶
type ContractVoteCanceled struct { Voter common.Address DelegatedTo common.Address ProposalID *big.Int Raw types.Log // Blockchain specific contextual infos }
ContractVoteCanceled represents a VoteCanceled event raised by the Contract contract.
type ContractVoteCanceledIterator ¶
type ContractVoteCanceledIterator struct { Event *ContractVoteCanceled // Event containing the contract specifics and raw log // contains filtered or unexported fields }
ContractVoteCanceledIterator is returned from FilterVoteCanceled and is used to iterate over the raw logs and unpacked data for VoteCanceled events raised by the Contract contract.
func (*ContractVoteCanceledIterator) Close ¶
func (it *ContractVoteCanceledIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*ContractVoteCanceledIterator) Error ¶
func (it *ContractVoteCanceledIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*ContractVoteCanceledIterator) Next ¶
func (it *ContractVoteCanceledIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type ContractVoteWeightOverridden ¶
type ContractVoteWeightOverridden struct { Voter common.Address Diff *big.Int Raw types.Log // Blockchain specific contextual infos }
ContractVoteWeightOverridden represents a VoteWeightOverridden event raised by the Contract contract.
type ContractVoteWeightOverriddenIterator ¶
type ContractVoteWeightOverriddenIterator struct { Event *ContractVoteWeightOverridden // Event containing the contract specifics and raw log // contains filtered or unexported fields }
ContractVoteWeightOverriddenIterator is returned from FilterVoteWeightOverridden and is used to iterate over the raw logs and unpacked data for VoteWeightOverridden events raised by the Contract contract.
func (*ContractVoteWeightOverriddenIterator) Close ¶
func (it *ContractVoteWeightOverriddenIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*ContractVoteWeightOverriddenIterator) Error ¶
func (it *ContractVoteWeightOverriddenIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*ContractVoteWeightOverriddenIterator) Next ¶
func (it *ContractVoteWeightOverriddenIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type ContractVoteWeightUnOverridden ¶
type ContractVoteWeightUnOverridden struct { Voter common.Address Diff *big.Int Raw types.Log // Blockchain specific contextual infos }
ContractVoteWeightUnOverridden represents a VoteWeightUnOverridden event raised by the Contract contract.
type ContractVoteWeightUnOverriddenIterator ¶
type ContractVoteWeightUnOverriddenIterator struct { Event *ContractVoteWeightUnOverridden // Event containing the contract specifics and raw log // contains filtered or unexported fields }
ContractVoteWeightUnOverriddenIterator is returned from FilterVoteWeightUnOverridden and is used to iterate over the raw logs and unpacked data for VoteWeightUnOverridden events raised by the Contract contract.
func (*ContractVoteWeightUnOverriddenIterator) Close ¶
func (it *ContractVoteWeightUnOverriddenIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*ContractVoteWeightUnOverriddenIterator) Error ¶
func (it *ContractVoteWeightUnOverriddenIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*ContractVoteWeightUnOverriddenIterator) Next ¶
func (it *ContractVoteWeightUnOverriddenIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type ContractVoted ¶
type ContractVoted struct { Voter common.Address DelegatedTo common.Address ProposalID *big.Int Choices []*big.Int Weight *big.Int Raw types.Log // Blockchain specific contextual infos }
ContractVoted represents a Voted event raised by the Contract contract.
type ContractVotedIterator ¶
type ContractVotedIterator struct { Event *ContractVoted // Event containing the contract specifics and raw log // contains filtered or unexported fields }
ContractVotedIterator is returned from FilterVoted and is used to iterate over the raw logs and unpacked data for Voted events raised by the Contract contract.
func (*ContractVotedIterator) Close ¶
func (it *ContractVotedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*ContractVotedIterator) Error ¶
func (it *ContractVotedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*ContractVotedIterator) Next ¶
func (it *ContractVotedIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.