Documentation ¶
Index ¶
- Constants
- type Voting
- type VotingCaller
- func (_Voting *VotingCaller) CandidateIs(opts *bind.CallOpts, hash [32]byte, kind *big.Int) (bool, error)
- func (_Voting *VotingCaller) DidPass(opts *bind.CallOpts, hash [32]byte, plurality *big.Int) (bool, error)
- func (_Voting *VotingCaller) GetCandidate(opts *bind.CallOpts, hash [32]byte) (*big.Int, common.Address, *big.Int, *big.Int, *big.Int, *big.Int, error)
- func (_Voting *VotingCaller) GetCandidateOwner(opts *bind.CallOpts, hash [32]byte) (common.Address, error)
- func (_Voting *VotingCaller) GetPrivileged(opts *bind.CallOpts) (common.Address, common.Address, common.Address, error)
- func (_Voting *VotingCaller) GetStake(opts *bind.CallOpts, hash [32]byte, addr common.Address) (*big.Int, error)
- func (_Voting *VotingCaller) HasPrivilege(opts *bind.CallOpts, sender common.Address) (bool, error)
- func (_Voting *VotingCaller) IsCandidate(opts *bind.CallOpts, hash [32]byte) (bool, error)
- func (_Voting *VotingCaller) PollClosed(opts *bind.CallOpts, hash [32]byte) (bool, error)
- type VotingCallerRaw
- type VotingCallerSession
- func (_Voting *VotingCallerSession) CandidateIs(hash [32]byte, kind *big.Int) (bool, error)
- func (_Voting *VotingCallerSession) DidPass(hash [32]byte, plurality *big.Int) (bool, error)
- func (_Voting *VotingCallerSession) GetCandidate(hash [32]byte) (*big.Int, common.Address, *big.Int, *big.Int, *big.Int, *big.Int, error)
- func (_Voting *VotingCallerSession) GetCandidateOwner(hash [32]byte) (common.Address, error)
- func (_Voting *VotingCallerSession) GetPrivileged() (common.Address, common.Address, common.Address, error)
- func (_Voting *VotingCallerSession) GetStake(hash [32]byte, addr common.Address) (*big.Int, error)
- func (_Voting *VotingCallerSession) HasPrivilege(sender common.Address) (bool, error)
- func (_Voting *VotingCallerSession) IsCandidate(hash [32]byte) (bool, error)
- func (_Voting *VotingCallerSession) PollClosed(hash [32]byte) (bool, error)
- type VotingCandidateAdded
- type VotingCandidateAddedIterator
- type VotingCandidateRemoved
- type VotingCandidateRemovedIterator
- type VotingFilterer
- func (_Voting *VotingFilterer) FilterCandidateAdded(opts *bind.FilterOpts, hash [][32]byte, kind []*big.Int, ...) (*VotingCandidateAddedIterator, error)
- func (_Voting *VotingFilterer) FilterCandidateRemoved(opts *bind.FilterOpts, hash [][32]byte) (*VotingCandidateRemovedIterator, error)
- func (_Voting *VotingFilterer) FilterVoted(opts *bind.FilterOpts, hash [][32]byte, voter []common.Address) (*VotingVotedIterator, error)
- func (_Voting *VotingFilterer) WatchCandidateAdded(opts *bind.WatchOpts, sink chan<- *VotingCandidateAdded, hash [][32]byte, ...) (event.Subscription, error)
- func (_Voting *VotingFilterer) WatchCandidateRemoved(opts *bind.WatchOpts, sink chan<- *VotingCandidateRemoved, hash [][32]byte) (event.Subscription, error)
- func (_Voting *VotingFilterer) WatchVoted(opts *bind.WatchOpts, sink chan<- *VotingVoted, hash [][32]byte, ...) (event.Subscription, error)
- type VotingRaw
- func (_Voting *VotingRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error
- func (_Voting *VotingRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Voting *VotingRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type VotingSession
- func (_Voting *VotingSession) AddCandidate(hash [32]byte, kind *big.Int, owner common.Address, stake *big.Int, ...) (*types.Transaction, error)
- func (_Voting *VotingSession) CandidateIs(hash [32]byte, kind *big.Int) (bool, error)
- func (_Voting *VotingSession) DidPass(hash [32]byte, plurality *big.Int) (bool, error)
- func (_Voting *VotingSession) GetCandidate(hash [32]byte) (*big.Int, common.Address, *big.Int, *big.Int, *big.Int, *big.Int, error)
- func (_Voting *VotingSession) GetCandidateOwner(hash [32]byte) (common.Address, error)
- func (_Voting *VotingSession) GetPrivileged() (common.Address, common.Address, common.Address, error)
- func (_Voting *VotingSession) GetStake(hash [32]byte, addr common.Address) (*big.Int, error)
- func (_Voting *VotingSession) HasPrivilege(sender common.Address) (bool, error)
- func (_Voting *VotingSession) IsCandidate(hash [32]byte) (bool, error)
- func (_Voting *VotingSession) PollClosed(hash [32]byte) (bool, error)
- func (_Voting *VotingSession) RemoveCandidate(hash [32]byte) (*types.Transaction, error)
- func (_Voting *VotingSession) SetPrivileged(parameterizer common.Address, datatrust common.Address, listing common.Address) (*types.Transaction, error)
- func (_Voting *VotingSession) TransferStake(hash [32]byte, addr common.Address) (*types.Transaction, error)
- func (_Voting *VotingSession) Unstake(hash [32]byte) (*types.Transaction, error)
- func (_Voting *VotingSession) Vote(hash [32]byte, option *big.Int) (*types.Transaction, error)
- type VotingTransactor
- func (_Voting *VotingTransactor) AddCandidate(opts *bind.TransactOpts, hash [32]byte, kind *big.Int, owner common.Address, ...) (*types.Transaction, error)
- func (_Voting *VotingTransactor) RemoveCandidate(opts *bind.TransactOpts, hash [32]byte) (*types.Transaction, error)
- func (_Voting *VotingTransactor) SetPrivileged(opts *bind.TransactOpts, parameterizer common.Address, ...) (*types.Transaction, error)
- func (_Voting *VotingTransactor) TransferStake(opts *bind.TransactOpts, hash [32]byte, addr common.Address) (*types.Transaction, error)
- func (_Voting *VotingTransactor) Unstake(opts *bind.TransactOpts, hash [32]byte) (*types.Transaction, error)
- func (_Voting *VotingTransactor) Vote(opts *bind.TransactOpts, hash [32]byte, option *big.Int) (*types.Transaction, error)
- type VotingTransactorRaw
- type VotingTransactorSession
- func (_Voting *VotingTransactorSession) AddCandidate(hash [32]byte, kind *big.Int, owner common.Address, stake *big.Int, ...) (*types.Transaction, error)
- func (_Voting *VotingTransactorSession) RemoveCandidate(hash [32]byte) (*types.Transaction, error)
- func (_Voting *VotingTransactorSession) SetPrivileged(parameterizer common.Address, datatrust common.Address, listing common.Address) (*types.Transaction, error)
- func (_Voting *VotingTransactorSession) TransferStake(hash [32]byte, addr common.Address) (*types.Transaction, error)
- func (_Voting *VotingTransactorSession) Unstake(hash [32]byte) (*types.Transaction, error)
- func (_Voting *VotingTransactorSession) Vote(hash [32]byte, option *big.Int) (*types.Transaction, error)
- type VotingVoted
- type VotingVotedIterator
Constants ¶
const VotingABI = "" /* 4474-byte string literal not displayed */
VotingABI is the input ABI used to generate the binding from.
const VotingBin = `` /* 6640-byte string literal not displayed */
VotingBin is the compiled bytecode used for deploying new contracts.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Voting ¶
type Voting struct { VotingCaller // Read-only binding to the contract VotingTransactor // Write-only binding to the contract VotingFilterer // Log filterer for contract events }
Voting is an auto generated Go binding around an Ethereum contract.
func DeployVoting ¶
func DeployVoting(auth *bind.TransactOpts, backend bind.ContractBackend, market_token_addr common.Address) (common.Address, *types.Transaction, *Voting, error)
DeployVoting deploys a new Ethereum contract, binding an instance of Voting to it.
type VotingCaller ¶
type VotingCaller struct {
// contains filtered or unexported fields
}
VotingCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewVotingCaller ¶
func NewVotingCaller(address common.Address, caller bind.ContractCaller) (*VotingCaller, error)
NewVotingCaller creates a new read-only instance of Voting, bound to a specific deployed contract.
func (*VotingCaller) CandidateIs ¶
func (_Voting *VotingCaller) CandidateIs(opts *bind.CallOpts, hash [32]byte, kind *big.Int) (bool, error)
CandidateIs is a free data retrieval call binding the contract method 0xaf61f760.
Solidity: function candidateIs(bytes32 hash, uint256 kind) constant returns(bool out)
func (*VotingCaller) DidPass ¶
func (_Voting *VotingCaller) DidPass(opts *bind.CallOpts, hash [32]byte, plurality *big.Int) (bool, error)
DidPass is a free data retrieval call binding the contract method 0x8f354b79.
Solidity: function didPass(bytes32 hash, uint256 plurality) constant returns(bool out)
func (*VotingCaller) GetCandidate ¶
func (_Voting *VotingCaller) GetCandidate(opts *bind.CallOpts, hash [32]byte) (*big.Int, common.Address, *big.Int, *big.Int, *big.Int, *big.Int, error)
GetCandidate is a free data retrieval call binding the contract method 0xdfb6419f.
Solidity: function getCandidate(bytes32 hash) constant returns(uint256 out, address out, uint256 out, uint256 out, uint256 out, uint256 out)
func (*VotingCaller) GetCandidateOwner ¶
func (_Voting *VotingCaller) GetCandidateOwner(opts *bind.CallOpts, hash [32]byte) (common.Address, error)
GetCandidateOwner is a free data retrieval call binding the contract method 0xeb3014fd.
Solidity: function getCandidateOwner(bytes32 hash) constant returns(address out)
func (*VotingCaller) GetPrivileged ¶
func (_Voting *VotingCaller) GetPrivileged(opts *bind.CallOpts) (common.Address, common.Address, common.Address, error)
GetPrivileged is a free data retrieval call binding the contract method 0xd4c17539.
Solidity: function getPrivileged() constant returns(address out, address out, address out)
func (*VotingCaller) GetStake ¶
func (_Voting *VotingCaller) GetStake(opts *bind.CallOpts, hash [32]byte, addr common.Address) (*big.Int, error)
GetStake is a free data retrieval call binding the contract method 0x5399ab4c.
Solidity: function getStake(bytes32 hash, address addr) constant returns(uint256 out)
func (*VotingCaller) HasPrivilege ¶
HasPrivilege is a free data retrieval call binding the contract method 0xb7bf210c.
Solidity: function hasPrivilege(address sender) constant returns(bool out)
func (*VotingCaller) IsCandidate ¶
IsCandidate is a free data retrieval call binding the contract method 0xb89694c6.
Solidity: function isCandidate(bytes32 hash) constant returns(bool out)
func (*VotingCaller) PollClosed ¶
PollClosed is a free data retrieval call binding the contract method 0x327322c8.
Solidity: function pollClosed(bytes32 hash) constant returns(bool out)
type VotingCallerRaw ¶
type VotingCallerRaw struct {
Contract *VotingCaller // Generic read-only contract binding to access the raw methods on
}
VotingCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*VotingCallerRaw) Call ¶
func (_Voting *VotingCallerRaw) 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 VotingCallerSession ¶
type VotingCallerSession struct { Contract *VotingCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
VotingCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*VotingCallerSession) CandidateIs ¶
CandidateIs is a free data retrieval call binding the contract method 0xaf61f760.
Solidity: function candidateIs(bytes32 hash, uint256 kind) constant returns(bool out)
func (*VotingCallerSession) DidPass ¶
DidPass is a free data retrieval call binding the contract method 0x8f354b79.
Solidity: function didPass(bytes32 hash, uint256 plurality) constant returns(bool out)
func (*VotingCallerSession) GetCandidate ¶
func (_Voting *VotingCallerSession) GetCandidate(hash [32]byte) (*big.Int, common.Address, *big.Int, *big.Int, *big.Int, *big.Int, error)
GetCandidate is a free data retrieval call binding the contract method 0xdfb6419f.
Solidity: function getCandidate(bytes32 hash) constant returns(uint256 out, address out, uint256 out, uint256 out, uint256 out, uint256 out)
func (*VotingCallerSession) GetCandidateOwner ¶
func (_Voting *VotingCallerSession) GetCandidateOwner(hash [32]byte) (common.Address, error)
GetCandidateOwner is a free data retrieval call binding the contract method 0xeb3014fd.
Solidity: function getCandidateOwner(bytes32 hash) constant returns(address out)
func (*VotingCallerSession) GetPrivileged ¶
func (_Voting *VotingCallerSession) GetPrivileged() (common.Address, common.Address, common.Address, error)
GetPrivileged is a free data retrieval call binding the contract method 0xd4c17539.
Solidity: function getPrivileged() constant returns(address out, address out, address out)
func (*VotingCallerSession) GetStake ¶
GetStake is a free data retrieval call binding the contract method 0x5399ab4c.
Solidity: function getStake(bytes32 hash, address addr) constant returns(uint256 out)
func (*VotingCallerSession) HasPrivilege ¶
func (_Voting *VotingCallerSession) HasPrivilege(sender common.Address) (bool, error)
HasPrivilege is a free data retrieval call binding the contract method 0xb7bf210c.
Solidity: function hasPrivilege(address sender) constant returns(bool out)
func (*VotingCallerSession) IsCandidate ¶
func (_Voting *VotingCallerSession) IsCandidate(hash [32]byte) (bool, error)
IsCandidate is a free data retrieval call binding the contract method 0xb89694c6.
Solidity: function isCandidate(bytes32 hash) constant returns(bool out)
func (*VotingCallerSession) PollClosed ¶
func (_Voting *VotingCallerSession) PollClosed(hash [32]byte) (bool, error)
PollClosed is a free data retrieval call binding the contract method 0x327322c8.
Solidity: function pollClosed(bytes32 hash) constant returns(bool out)
type VotingCandidateAdded ¶
type VotingCandidateAdded struct { Hash [32]byte Kind *big.Int Owner common.Address VoteBy *big.Int Raw types.Log // Blockchain specific contextual infos }
VotingCandidateAdded represents a CandidateAdded event raised by the Voting contract.
type VotingCandidateAddedIterator ¶
type VotingCandidateAddedIterator struct { Event *VotingCandidateAdded // Event containing the contract specifics and raw log // contains filtered or unexported fields }
VotingCandidateAddedIterator is returned from FilterCandidateAdded and is used to iterate over the raw logs and unpacked data for CandidateAdded events raised by the Voting contract.
func (*VotingCandidateAddedIterator) Close ¶
func (it *VotingCandidateAddedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*VotingCandidateAddedIterator) Error ¶
func (it *VotingCandidateAddedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*VotingCandidateAddedIterator) Next ¶
func (it *VotingCandidateAddedIterator) 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 VotingCandidateRemoved ¶
type VotingCandidateRemoved struct { Hash [32]byte Raw types.Log // Blockchain specific contextual infos }
VotingCandidateRemoved represents a CandidateRemoved event raised by the Voting contract.
type VotingCandidateRemovedIterator ¶
type VotingCandidateRemovedIterator struct { Event *VotingCandidateRemoved // Event containing the contract specifics and raw log // contains filtered or unexported fields }
VotingCandidateRemovedIterator is returned from FilterCandidateRemoved and is used to iterate over the raw logs and unpacked data for CandidateRemoved events raised by the Voting contract.
func (*VotingCandidateRemovedIterator) Close ¶
func (it *VotingCandidateRemovedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*VotingCandidateRemovedIterator) Error ¶
func (it *VotingCandidateRemovedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*VotingCandidateRemovedIterator) Next ¶
func (it *VotingCandidateRemovedIterator) 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 VotingFilterer ¶
type VotingFilterer struct {
// contains filtered or unexported fields
}
VotingFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewVotingFilterer ¶
func NewVotingFilterer(address common.Address, filterer bind.ContractFilterer) (*VotingFilterer, error)
NewVotingFilterer creates a new log filterer instance of Voting, bound to a specific deployed contract.
func (*VotingFilterer) FilterCandidateAdded ¶
func (_Voting *VotingFilterer) FilterCandidateAdded(opts *bind.FilterOpts, hash [][32]byte, kind []*big.Int, owner []common.Address) (*VotingCandidateAddedIterator, error)
FilterCandidateAdded is a free log retrieval operation binding the contract event 0x51baeaa00f5969dc416d8e5299022ac3886d317d13685d1c6906ced9bac71b02.
Solidity: event CandidateAdded(bytes32 indexed hash, uint256 indexed kind, address indexed owner, uint256 voteBy)
func (*VotingFilterer) FilterCandidateRemoved ¶
func (_Voting *VotingFilterer) FilterCandidateRemoved(opts *bind.FilterOpts, hash [][32]byte) (*VotingCandidateRemovedIterator, error)
FilterCandidateRemoved is a free log retrieval operation binding the contract event 0xb314642ce4aa3156c1090458cfccabff50f32bc85d110d7799c369e1a660bcf4.
Solidity: event CandidateRemoved(bytes32 indexed hash)
func (*VotingFilterer) FilterVoted ¶
func (_Voting *VotingFilterer) FilterVoted(opts *bind.FilterOpts, hash [][32]byte, voter []common.Address) (*VotingVotedIterator, error)
FilterVoted is a free log retrieval operation binding the contract event 0x0b2f654b7e608ce51a82ce8157e79c350ed670605e8985266ad89fc85060e749.
Solidity: event Voted(bytes32 indexed hash, address indexed voter)
func (*VotingFilterer) WatchCandidateAdded ¶
func (_Voting *VotingFilterer) WatchCandidateAdded(opts *bind.WatchOpts, sink chan<- *VotingCandidateAdded, hash [][32]byte, kind []*big.Int, owner []common.Address) (event.Subscription, error)
WatchCandidateAdded is a free log subscription operation binding the contract event 0x51baeaa00f5969dc416d8e5299022ac3886d317d13685d1c6906ced9bac71b02.
Solidity: event CandidateAdded(bytes32 indexed hash, uint256 indexed kind, address indexed owner, uint256 voteBy)
func (*VotingFilterer) WatchCandidateRemoved ¶
func (_Voting *VotingFilterer) WatchCandidateRemoved(opts *bind.WatchOpts, sink chan<- *VotingCandidateRemoved, hash [][32]byte) (event.Subscription, error)
WatchCandidateRemoved is a free log subscription operation binding the contract event 0xb314642ce4aa3156c1090458cfccabff50f32bc85d110d7799c369e1a660bcf4.
Solidity: event CandidateRemoved(bytes32 indexed hash)
func (*VotingFilterer) WatchVoted ¶
func (_Voting *VotingFilterer) WatchVoted(opts *bind.WatchOpts, sink chan<- *VotingVoted, hash [][32]byte, voter []common.Address) (event.Subscription, error)
WatchVoted is a free log subscription operation binding the contract event 0x0b2f654b7e608ce51a82ce8157e79c350ed670605e8985266ad89fc85060e749.
Solidity: event Voted(bytes32 indexed hash, address indexed voter)
type VotingRaw ¶
type VotingRaw struct {
Contract *Voting // Generic contract binding to access the raw methods on
}
VotingRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*VotingRaw) Call ¶
func (_Voting *VotingRaw) 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 (*VotingRaw) Transact ¶
func (_Voting *VotingRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*VotingRaw) Transfer ¶
func (_Voting *VotingRaw) 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 VotingSession ¶
type VotingSession struct { Contract *Voting // 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 }
VotingSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*VotingSession) AddCandidate ¶
func (_Voting *VotingSession) AddCandidate(hash [32]byte, kind *big.Int, owner common.Address, stake *big.Int, vote_by *big.Int) (*types.Transaction, error)
AddCandidate is a paid mutator transaction binding the contract method 0xbb12c49e.
Solidity: function addCandidate(bytes32 hash, uint256 kind, address owner, uint256 stake, uint256 vote_by) returns()
func (*VotingSession) CandidateIs ¶
CandidateIs is a free data retrieval call binding the contract method 0xaf61f760.
Solidity: function candidateIs(bytes32 hash, uint256 kind) constant returns(bool out)
func (*VotingSession) DidPass ¶
DidPass is a free data retrieval call binding the contract method 0x8f354b79.
Solidity: function didPass(bytes32 hash, uint256 plurality) constant returns(bool out)
func (*VotingSession) GetCandidate ¶
func (_Voting *VotingSession) GetCandidate(hash [32]byte) (*big.Int, common.Address, *big.Int, *big.Int, *big.Int, *big.Int, error)
GetCandidate is a free data retrieval call binding the contract method 0xdfb6419f.
Solidity: function getCandidate(bytes32 hash) constant returns(uint256 out, address out, uint256 out, uint256 out, uint256 out, uint256 out)
func (*VotingSession) GetCandidateOwner ¶
func (_Voting *VotingSession) GetCandidateOwner(hash [32]byte) (common.Address, error)
GetCandidateOwner is a free data retrieval call binding the contract method 0xeb3014fd.
Solidity: function getCandidateOwner(bytes32 hash) constant returns(address out)
func (*VotingSession) GetPrivileged ¶
func (_Voting *VotingSession) GetPrivileged() (common.Address, common.Address, common.Address, error)
GetPrivileged is a free data retrieval call binding the contract method 0xd4c17539.
Solidity: function getPrivileged() constant returns(address out, address out, address out)
func (*VotingSession) GetStake ¶
GetStake is a free data retrieval call binding the contract method 0x5399ab4c.
Solidity: function getStake(bytes32 hash, address addr) constant returns(uint256 out)
func (*VotingSession) HasPrivilege ¶
func (_Voting *VotingSession) HasPrivilege(sender common.Address) (bool, error)
HasPrivilege is a free data retrieval call binding the contract method 0xb7bf210c.
Solidity: function hasPrivilege(address sender) constant returns(bool out)
func (*VotingSession) IsCandidate ¶
func (_Voting *VotingSession) IsCandidate(hash [32]byte) (bool, error)
IsCandidate is a free data retrieval call binding the contract method 0xb89694c6.
Solidity: function isCandidate(bytes32 hash) constant returns(bool out)
func (*VotingSession) PollClosed ¶
func (_Voting *VotingSession) PollClosed(hash [32]byte) (bool, error)
PollClosed is a free data retrieval call binding the contract method 0x327322c8.
Solidity: function pollClosed(bytes32 hash) constant returns(bool out)
func (*VotingSession) RemoveCandidate ¶
func (_Voting *VotingSession) RemoveCandidate(hash [32]byte) (*types.Transaction, error)
RemoveCandidate is a paid mutator transaction binding the contract method 0x89bb617c.
Solidity: function removeCandidate(bytes32 hash) returns()
func (*VotingSession) SetPrivileged ¶
func (_Voting *VotingSession) SetPrivileged(parameterizer common.Address, datatrust common.Address, listing common.Address) (*types.Transaction, error)
SetPrivileged is a paid mutator transaction binding the contract method 0x89015c73.
Solidity: function setPrivileged(address parameterizer, address datatrust, address listing) returns()
func (*VotingSession) TransferStake ¶
func (_Voting *VotingSession) TransferStake(hash [32]byte, addr common.Address) (*types.Transaction, error)
TransferStake is a paid mutator transaction binding the contract method 0xb6b69206.
Solidity: function transferStake(bytes32 hash, address addr) returns()
func (*VotingSession) Unstake ¶
func (_Voting *VotingSession) Unstake(hash [32]byte) (*types.Transaction, error)
Unstake is a paid mutator transaction binding the contract method 0x71ed5d1a.
Solidity: function unstake(bytes32 hash) returns()
func (*VotingSession) Vote ¶
func (_Voting *VotingSession) Vote(hash [32]byte, option *big.Int) (*types.Transaction, error)
Vote is a paid mutator transaction binding the contract method 0x9ef1204c.
Solidity: function vote(bytes32 hash, uint256 option) returns()
type VotingTransactor ¶
type VotingTransactor struct {
// contains filtered or unexported fields
}
VotingTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewVotingTransactor ¶
func NewVotingTransactor(address common.Address, transactor bind.ContractTransactor) (*VotingTransactor, error)
NewVotingTransactor creates a new write-only instance of Voting, bound to a specific deployed contract.
func (*VotingTransactor) AddCandidate ¶
func (_Voting *VotingTransactor) AddCandidate(opts *bind.TransactOpts, hash [32]byte, kind *big.Int, owner common.Address, stake *big.Int, vote_by *big.Int) (*types.Transaction, error)
AddCandidate is a paid mutator transaction binding the contract method 0xbb12c49e.
Solidity: function addCandidate(bytes32 hash, uint256 kind, address owner, uint256 stake, uint256 vote_by) returns()
func (*VotingTransactor) RemoveCandidate ¶
func (_Voting *VotingTransactor) RemoveCandidate(opts *bind.TransactOpts, hash [32]byte) (*types.Transaction, error)
RemoveCandidate is a paid mutator transaction binding the contract method 0x89bb617c.
Solidity: function removeCandidate(bytes32 hash) returns()
func (*VotingTransactor) SetPrivileged ¶
func (_Voting *VotingTransactor) SetPrivileged(opts *bind.TransactOpts, parameterizer common.Address, datatrust common.Address, listing common.Address) (*types.Transaction, error)
SetPrivileged is a paid mutator transaction binding the contract method 0x89015c73.
Solidity: function setPrivileged(address parameterizer, address datatrust, address listing) returns()
func (*VotingTransactor) TransferStake ¶
func (_Voting *VotingTransactor) TransferStake(opts *bind.TransactOpts, hash [32]byte, addr common.Address) (*types.Transaction, error)
TransferStake is a paid mutator transaction binding the contract method 0xb6b69206.
Solidity: function transferStake(bytes32 hash, address addr) returns()
func (*VotingTransactor) Unstake ¶
func (_Voting *VotingTransactor) Unstake(opts *bind.TransactOpts, hash [32]byte) (*types.Transaction, error)
Unstake is a paid mutator transaction binding the contract method 0x71ed5d1a.
Solidity: function unstake(bytes32 hash) returns()
func (*VotingTransactor) Vote ¶
func (_Voting *VotingTransactor) Vote(opts *bind.TransactOpts, hash [32]byte, option *big.Int) (*types.Transaction, error)
Vote is a paid mutator transaction binding the contract method 0x9ef1204c.
Solidity: function vote(bytes32 hash, uint256 option) returns()
type VotingTransactorRaw ¶
type VotingTransactorRaw struct {
Contract *VotingTransactor // Generic write-only contract binding to access the raw methods on
}
VotingTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*VotingTransactorRaw) Transact ¶
func (_Voting *VotingTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*VotingTransactorRaw) Transfer ¶
func (_Voting *VotingTransactorRaw) 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 VotingTransactorSession ¶
type VotingTransactorSession struct { Contract *VotingTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
VotingTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*VotingTransactorSession) AddCandidate ¶
func (_Voting *VotingTransactorSession) AddCandidate(hash [32]byte, kind *big.Int, owner common.Address, stake *big.Int, vote_by *big.Int) (*types.Transaction, error)
AddCandidate is a paid mutator transaction binding the contract method 0xbb12c49e.
Solidity: function addCandidate(bytes32 hash, uint256 kind, address owner, uint256 stake, uint256 vote_by) returns()
func (*VotingTransactorSession) RemoveCandidate ¶
func (_Voting *VotingTransactorSession) RemoveCandidate(hash [32]byte) (*types.Transaction, error)
RemoveCandidate is a paid mutator transaction binding the contract method 0x89bb617c.
Solidity: function removeCandidate(bytes32 hash) returns()
func (*VotingTransactorSession) SetPrivileged ¶
func (_Voting *VotingTransactorSession) SetPrivileged(parameterizer common.Address, datatrust common.Address, listing common.Address) (*types.Transaction, error)
SetPrivileged is a paid mutator transaction binding the contract method 0x89015c73.
Solidity: function setPrivileged(address parameterizer, address datatrust, address listing) returns()
func (*VotingTransactorSession) TransferStake ¶
func (_Voting *VotingTransactorSession) TransferStake(hash [32]byte, addr common.Address) (*types.Transaction, error)
TransferStake is a paid mutator transaction binding the contract method 0xb6b69206.
Solidity: function transferStake(bytes32 hash, address addr) returns()
func (*VotingTransactorSession) Unstake ¶
func (_Voting *VotingTransactorSession) Unstake(hash [32]byte) (*types.Transaction, error)
Unstake is a paid mutator transaction binding the contract method 0x71ed5d1a.
Solidity: function unstake(bytes32 hash) returns()
func (*VotingTransactorSession) Vote ¶
func (_Voting *VotingTransactorSession) Vote(hash [32]byte, option *big.Int) (*types.Transaction, error)
Vote is a paid mutator transaction binding the contract method 0x9ef1204c.
Solidity: function vote(bytes32 hash, uint256 option) returns()
type VotingVoted ¶
type VotingVoted struct { Hash [32]byte Voter common.Address Raw types.Log // Blockchain specific contextual infos }
VotingVoted represents a Voted event raised by the Voting contract.
type VotingVotedIterator ¶
type VotingVotedIterator struct { Event *VotingVoted // Event containing the contract specifics and raw log // contains filtered or unexported fields }
VotingVotedIterator is returned from FilterVoted and is used to iterate over the raw logs and unpacked data for Voted events raised by the Voting contract.
func (*VotingVotedIterator) Close ¶
func (it *VotingVotedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*VotingVotedIterator) Error ¶
func (it *VotingVotedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*VotingVotedIterator) Next ¶
func (it *VotingVotedIterator) 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.