Documentation ¶
Index ¶
- Constants
- type SafeMath
- type SafeMathCaller
- type SafeMathCallerRaw
- type SafeMathCallerSession
- type SafeMathFilterer
- type SafeMathRaw
- func (_SafeMath *SafeMathRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error
- func (_SafeMath *SafeMathRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_SafeMath *SafeMathRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type SafeMathSession
- type SafeMathTransactor
- type SafeMathTransactorRaw
- type SafeMathTransactorSession
- type TyslinValidator
- type TyslinValidatorCaller
- func (_TyslinValidator *TyslinValidatorCaller) CandidateCount(opts *bind.CallOpts) (*big.Int, error)
- func (_TyslinValidator *TyslinValidatorCaller) CandidateWithdrawDelay(opts *bind.CallOpts) (*big.Int, error)
- func (_TyslinValidator *TyslinValidatorCaller) Candidates(opts *bind.CallOpts, arg0 *big.Int) (common.Address, error)
- func (_TyslinValidator *TyslinValidatorCaller) GetCandidateCap(opts *bind.CallOpts, _candidate common.Address) (*big.Int, error)
- func (_TyslinValidator *TyslinValidatorCaller) GetCandidateOwner(opts *bind.CallOpts, _candidate common.Address) (common.Address, error)
- func (_TyslinValidator *TyslinValidatorCaller) GetCandidates(opts *bind.CallOpts) ([]common.Address, error)
- func (_TyslinValidator *TyslinValidatorCaller) GetVoterCap(opts *bind.CallOpts, _candidate common.Address, _voter common.Address) (*big.Int, error)
- func (_TyslinValidator *TyslinValidatorCaller) GetVoters(opts *bind.CallOpts, _candidate common.Address) ([]common.Address, error)
- func (_TyslinValidator *TyslinValidatorCaller) GetWithdrawBlockNumbers(opts *bind.CallOpts) ([]*big.Int, error)
- func (_TyslinValidator *TyslinValidatorCaller) GetWithdrawCap(opts *bind.CallOpts, _blockNumber *big.Int) (*big.Int, error)
- func (_TyslinValidator *TyslinValidatorCaller) IsCandidate(opts *bind.CallOpts, _candidate common.Address) (bool, error)
- func (_TyslinValidator *TyslinValidatorCaller) MaxValidatorNumber(opts *bind.CallOpts) (*big.Int, error)
- func (_TyslinValidator *TyslinValidatorCaller) MinCandidateCap(opts *bind.CallOpts) (*big.Int, error)
- func (_TyslinValidator *TyslinValidatorCaller) MinVoterCap(opts *bind.CallOpts) (*big.Int, error)
- func (_TyslinValidator *TyslinValidatorCaller) VoterWithdrawDelay(opts *bind.CallOpts) (*big.Int, error)
- type TyslinValidatorCallerRaw
- type TyslinValidatorCallerSession
- func (_TyslinValidator *TyslinValidatorCallerSession) CandidateCount() (*big.Int, error)
- func (_TyslinValidator *TyslinValidatorCallerSession) CandidateWithdrawDelay() (*big.Int, error)
- func (_TyslinValidator *TyslinValidatorCallerSession) Candidates(arg0 *big.Int) (common.Address, error)
- func (_TyslinValidator *TyslinValidatorCallerSession) GetCandidateCap(_candidate common.Address) (*big.Int, error)
- func (_TyslinValidator *TyslinValidatorCallerSession) GetCandidateOwner(_candidate common.Address) (common.Address, error)
- func (_TyslinValidator *TyslinValidatorCallerSession) GetCandidates() ([]common.Address, error)
- func (_TyslinValidator *TyslinValidatorCallerSession) GetVoterCap(_candidate common.Address, _voter common.Address) (*big.Int, error)
- func (_TyslinValidator *TyslinValidatorCallerSession) GetVoters(_candidate common.Address) ([]common.Address, error)
- func (_TyslinValidator *TyslinValidatorCallerSession) GetWithdrawBlockNumbers() ([]*big.Int, error)
- func (_TyslinValidator *TyslinValidatorCallerSession) GetWithdrawCap(_blockNumber *big.Int) (*big.Int, error)
- func (_TyslinValidator *TyslinValidatorCallerSession) IsCandidate(_candidate common.Address) (bool, error)
- func (_TyslinValidator *TyslinValidatorCallerSession) MaxValidatorNumber() (*big.Int, error)
- func (_TyslinValidator *TyslinValidatorCallerSession) MinCandidateCap() (*big.Int, error)
- func (_TyslinValidator *TyslinValidatorCallerSession) MinVoterCap() (*big.Int, error)
- func (_TyslinValidator *TyslinValidatorCallerSession) VoterWithdrawDelay() (*big.Int, error)
- type TyslinValidatorFilterer
- func (_TyslinValidator *TyslinValidatorFilterer) FilterPropose(opts *bind.FilterOpts) (*TyslinValidatorProposeIterator, error)
- func (_TyslinValidator *TyslinValidatorFilterer) FilterResign(opts *bind.FilterOpts) (*TyslinValidatorResignIterator, error)
- func (_TyslinValidator *TyslinValidatorFilterer) FilterUnvote(opts *bind.FilterOpts) (*TyslinValidatorUnvoteIterator, error)
- func (_TyslinValidator *TyslinValidatorFilterer) FilterVote(opts *bind.FilterOpts) (*TyslinValidatorVoteIterator, error)
- func (_TyslinValidator *TyslinValidatorFilterer) FilterWithdraw(opts *bind.FilterOpts) (*TyslinValidatorWithdrawIterator, error)
- func (_TyslinValidator *TyslinValidatorFilterer) WatchPropose(opts *bind.WatchOpts, sink chan<- *TyslinValidatorPropose) (event.Subscription, error)
- func (_TyslinValidator *TyslinValidatorFilterer) WatchResign(opts *bind.WatchOpts, sink chan<- *TyslinValidatorResign) (event.Subscription, error)
- func (_TyslinValidator *TyslinValidatorFilterer) WatchUnvote(opts *bind.WatchOpts, sink chan<- *TyslinValidatorUnvote) (event.Subscription, error)
- func (_TyslinValidator *TyslinValidatorFilterer) WatchVote(opts *bind.WatchOpts, sink chan<- *TyslinValidatorVote) (event.Subscription, error)
- func (_TyslinValidator *TyslinValidatorFilterer) WatchWithdraw(opts *bind.WatchOpts, sink chan<- *TyslinValidatorWithdraw) (event.Subscription, error)
- type TyslinValidatorPropose
- type TyslinValidatorProposeIterator
- type TyslinValidatorRaw
- func (_TyslinValidator *TyslinValidatorRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error
- func (_TyslinValidator *TyslinValidatorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_TyslinValidator *TyslinValidatorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type TyslinValidatorResign
- type TyslinValidatorResignIterator
- type TyslinValidatorSession
- func (_TyslinValidator *TyslinValidatorSession) CandidateCount() (*big.Int, error)
- func (_TyslinValidator *TyslinValidatorSession) CandidateWithdrawDelay() (*big.Int, error)
- func (_TyslinValidator *TyslinValidatorSession) Candidates(arg0 *big.Int) (common.Address, error)
- func (_TyslinValidator *TyslinValidatorSession) GetCandidateCap(_candidate common.Address) (*big.Int, error)
- func (_TyslinValidator *TyslinValidatorSession) GetCandidateOwner(_candidate common.Address) (common.Address, error)
- func (_TyslinValidator *TyslinValidatorSession) GetCandidates() ([]common.Address, error)
- func (_TyslinValidator *TyslinValidatorSession) GetVoterCap(_candidate common.Address, _voter common.Address) (*big.Int, error)
- func (_TyslinValidator *TyslinValidatorSession) GetVoters(_candidate common.Address) ([]common.Address, error)
- func (_TyslinValidator *TyslinValidatorSession) GetWithdrawBlockNumbers() ([]*big.Int, error)
- func (_TyslinValidator *TyslinValidatorSession) GetWithdrawCap(_blockNumber *big.Int) (*big.Int, error)
- func (_TyslinValidator *TyslinValidatorSession) IsCandidate(_candidate common.Address) (bool, error)
- func (_TyslinValidator *TyslinValidatorSession) MaxValidatorNumber() (*big.Int, error)
- func (_TyslinValidator *TyslinValidatorSession) MinCandidateCap() (*big.Int, error)
- func (_TyslinValidator *TyslinValidatorSession) MinVoterCap() (*big.Int, error)
- func (_TyslinValidator *TyslinValidatorSession) Propose(_candidate common.Address) (*types.Transaction, error)
- func (_TyslinValidator *TyslinValidatorSession) Resign(_candidate common.Address) (*types.Transaction, error)
- func (_TyslinValidator *TyslinValidatorSession) Unvote(_candidate common.Address, _cap *big.Int) (*types.Transaction, error)
- func (_TyslinValidator *TyslinValidatorSession) Vote(_candidate common.Address) (*types.Transaction, error)
- func (_TyslinValidator *TyslinValidatorSession) VoterWithdrawDelay() (*big.Int, error)
- func (_TyslinValidator *TyslinValidatorSession) Withdraw(_blockNumber *big.Int, _index *big.Int) (*types.Transaction, error)
- type TyslinValidatorTransactor
- func (_TyslinValidator *TyslinValidatorTransactor) Propose(opts *bind.TransactOpts, _candidate common.Address) (*types.Transaction, error)
- func (_TyslinValidator *TyslinValidatorTransactor) Resign(opts *bind.TransactOpts, _candidate common.Address) (*types.Transaction, error)
- func (_TyslinValidator *TyslinValidatorTransactor) Unvote(opts *bind.TransactOpts, _candidate common.Address, _cap *big.Int) (*types.Transaction, error)
- func (_TyslinValidator *TyslinValidatorTransactor) Vote(opts *bind.TransactOpts, _candidate common.Address) (*types.Transaction, error)
- func (_TyslinValidator *TyslinValidatorTransactor) Withdraw(opts *bind.TransactOpts, _blockNumber *big.Int, _index *big.Int) (*types.Transaction, error)
- type TyslinValidatorTransactorRaw
- type TyslinValidatorTransactorSession
- func (_TyslinValidator *TyslinValidatorTransactorSession) Propose(_candidate common.Address) (*types.Transaction, error)
- func (_TyslinValidator *TyslinValidatorTransactorSession) Resign(_candidate common.Address) (*types.Transaction, error)
- func (_TyslinValidator *TyslinValidatorTransactorSession) Unvote(_candidate common.Address, _cap *big.Int) (*types.Transaction, error)
- func (_TyslinValidator *TyslinValidatorTransactorSession) Vote(_candidate common.Address) (*types.Transaction, error)
- func (_TyslinValidator *TyslinValidatorTransactorSession) Withdraw(_blockNumber *big.Int, _index *big.Int) (*types.Transaction, error)
- type TyslinValidatorUnvote
- type TyslinValidatorUnvoteIterator
- type TyslinValidatorVote
- type TyslinValidatorVoteIterator
- type TyslinValidatorWithdraw
- type TyslinValidatorWithdrawIterator
Constants ¶
const SafeMathABI = "[]"
SafeMathABI is the input ABI used to generate the binding from.
const SafeMathBin = `` /* 242-byte string literal not displayed */
SafeMathBin is the compiled bytecode used for deploying new contracts.
const TyslinValidatorABI = "" /* 5884-byte string literal not displayed */
TyslinValidatorABI is the input ABI used to generate the binding from.
const TyslinValidatorBin = `` /* 10284-byte string literal not displayed */
TyslinValidatorBin is the compiled bytecode used for deploying new contracts.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SafeMath ¶
type SafeMath struct { SafeMathCaller // Read-only binding to the contract SafeMathTransactor // Write-only binding to the contract SafeMathFilterer // Log filterer for contract events }
SafeMath is an auto generated Go binding around an Ethereum contract.
func DeploySafeMath ¶
func DeploySafeMath(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *SafeMath, error)
DeploySafeMath deploys a new Ethereum contract, binding an instance of SafeMath to it.
func NewSafeMath ¶
NewSafeMath creates a new instance of SafeMath, bound to a specific deployed contract.
type SafeMathCaller ¶
type SafeMathCaller struct {
// contains filtered or unexported fields
}
SafeMathCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewSafeMathCaller ¶
func NewSafeMathCaller(address common.Address, caller bind.ContractCaller) (*SafeMathCaller, error)
NewSafeMathCaller creates a new read-only instance of SafeMath, bound to a specific deployed contract.
type SafeMathCallerRaw ¶
type SafeMathCallerRaw struct {
Contract *SafeMathCaller // Generic read-only contract binding to access the raw methods on
}
SafeMathCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*SafeMathCallerRaw) Call ¶
func (_SafeMath *SafeMathCallerRaw) 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 SafeMathCallerSession ¶
type SafeMathCallerSession struct { Contract *SafeMathCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
SafeMathCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
type SafeMathFilterer ¶
type SafeMathFilterer struct {
// contains filtered or unexported fields
}
SafeMathFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewSafeMathFilterer ¶
func NewSafeMathFilterer(address common.Address, filterer bind.ContractFilterer) (*SafeMathFilterer, error)
NewSafeMathFilterer creates a new log filterer instance of SafeMath, bound to a specific deployed contract.
type SafeMathRaw ¶
type SafeMathRaw struct {
Contract *SafeMath // Generic contract binding to access the raw methods on
}
SafeMathRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*SafeMathRaw) Call ¶
func (_SafeMath *SafeMathRaw) 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 (*SafeMathRaw) Transact ¶
func (_SafeMath *SafeMathRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*SafeMathRaw) Transfer ¶
func (_SafeMath *SafeMathRaw) 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 SafeMathSession ¶
type SafeMathSession struct { Contract *SafeMath // 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 }
SafeMathSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
type SafeMathTransactor ¶
type SafeMathTransactor struct {
// contains filtered or unexported fields
}
SafeMathTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewSafeMathTransactor ¶
func NewSafeMathTransactor(address common.Address, transactor bind.ContractTransactor) (*SafeMathTransactor, error)
NewSafeMathTransactor creates a new write-only instance of SafeMath, bound to a specific deployed contract.
type SafeMathTransactorRaw ¶
type SafeMathTransactorRaw struct {
Contract *SafeMathTransactor // Generic write-only contract binding to access the raw methods on
}
SafeMathTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*SafeMathTransactorRaw) Transact ¶
func (_SafeMath *SafeMathTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*SafeMathTransactorRaw) Transfer ¶
func (_SafeMath *SafeMathTransactorRaw) 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 SafeMathTransactorSession ¶
type SafeMathTransactorSession struct { Contract *SafeMathTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
SafeMathTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
type TyslinValidator ¶
type TyslinValidator struct { TyslinValidatorCaller // Read-only binding to the contract TyslinValidatorTransactor // Write-only binding to the contract TyslinValidatorFilterer // Log filterer for contract events }
TyslinValidator is an auto generated Go binding around an Ethereum contract.
func DeployTyslinValidator ¶
func DeployTyslinValidator(auth *bind.TransactOpts, backend bind.ContractBackend, _candidates []common.Address, _caps []*big.Int, _firstOwner common.Address, _minCandidateCap *big.Int, _minVoterCap *big.Int, _maxValidatorNumber *big.Int, _candidateWithdrawDelay *big.Int, _voterWithdrawDelay *big.Int) (common.Address, *types.Transaction, *TyslinValidator, error)
DeployTyslinValidator deploys a new Ethereum contract, binding an instance of TyslinValidator to it.
func NewTyslinValidator ¶
func NewTyslinValidator(address common.Address, backend bind.ContractBackend) (*TyslinValidator, error)
NewTyslinValidator creates a new instance of TyslinValidator, bound to a specific deployed contract.
type TyslinValidatorCaller ¶
type TyslinValidatorCaller struct {
// contains filtered or unexported fields
}
TyslinValidatorCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewTyslinValidatorCaller ¶
func NewTyslinValidatorCaller(address common.Address, caller bind.ContractCaller) (*TyslinValidatorCaller, error)
NewTyslinValidatorCaller creates a new read-only instance of TyslinValidator, bound to a specific deployed contract.
func (*TyslinValidatorCaller) CandidateCount ¶
func (_TyslinValidator *TyslinValidatorCaller) CandidateCount(opts *bind.CallOpts) (*big.Int, error)
CandidateCount is a free data retrieval call binding the contract method 0xa9a981a3.
Solidity: function candidateCount() constant returns(uint256)
func (*TyslinValidatorCaller) CandidateWithdrawDelay ¶
func (_TyslinValidator *TyslinValidatorCaller) CandidateWithdrawDelay(opts *bind.CallOpts) (*big.Int, error)
CandidateWithdrawDelay is a free data retrieval call binding the contract method 0xd161c767.
Solidity: function candidateWithdrawDelay() constant returns(uint256)
func (*TyslinValidatorCaller) Candidates ¶
func (_TyslinValidator *TyslinValidatorCaller) Candidates(opts *bind.CallOpts, arg0 *big.Int) (common.Address, error)
Candidates is a free data retrieval call binding the contract method 0x3477ee2e.
Solidity: function candidates( uint256) constant returns(address)
func (*TyslinValidatorCaller) GetCandidateCap ¶
func (_TyslinValidator *TyslinValidatorCaller) GetCandidateCap(opts *bind.CallOpts, _candidate common.Address) (*big.Int, error)
GetCandidateCap is a free data retrieval call binding the contract method 0x58e7525f.
Solidity: function getCandidateCap(_candidate address) constant returns(uint256)
func (*TyslinValidatorCaller) GetCandidateOwner ¶
func (_TyslinValidator *TyslinValidatorCaller) GetCandidateOwner(opts *bind.CallOpts, _candidate common.Address) (common.Address, error)
GetCandidateOwner is a free data retrieval call binding the contract method 0xb642facd.
Solidity: function getCandidateOwner(_candidate address) constant returns(address)
func (*TyslinValidatorCaller) GetCandidates ¶
func (_TyslinValidator *TyslinValidatorCaller) GetCandidates(opts *bind.CallOpts) ([]common.Address, error)
GetCandidates is a free data retrieval call binding the contract method 0x06a49fce.
Solidity: function getCandidates() constant returns(address[])
func (*TyslinValidatorCaller) GetVoterCap ¶
func (_TyslinValidator *TyslinValidatorCaller) GetVoterCap(opts *bind.CallOpts, _candidate common.Address, _voter common.Address) (*big.Int, error)
GetVoterCap is a free data retrieval call binding the contract method 0x302b6872.
Solidity: function getVoterCap(_candidate address, _voter address) constant returns(uint256)
func (*TyslinValidatorCaller) GetVoters ¶
func (_TyslinValidator *TyslinValidatorCaller) GetVoters(opts *bind.CallOpts, _candidate common.Address) ([]common.Address, error)
GetVoters is a free data retrieval call binding the contract method 0x2d15cc04.
Solidity: function getVoters(_candidate address) constant returns(address[])
func (*TyslinValidatorCaller) GetWithdrawBlockNumbers ¶
func (_TyslinValidator *TyslinValidatorCaller) GetWithdrawBlockNumbers(opts *bind.CallOpts) ([]*big.Int, error)
GetWithdrawBlockNumbers is a free data retrieval call binding the contract method 0x2f9c4bba.
Solidity: function getWithdrawBlockNumbers() constant returns(uint256[])
func (*TyslinValidatorCaller) GetWithdrawCap ¶
func (_TyslinValidator *TyslinValidatorCaller) GetWithdrawCap(opts *bind.CallOpts, _blockNumber *big.Int) (*big.Int, error)
GetWithdrawCap is a free data retrieval call binding the contract method 0x15febd68.
Solidity: function getWithdrawCap(_blockNumber uint256) constant returns(uint256)
func (*TyslinValidatorCaller) IsCandidate ¶
func (_TyslinValidator *TyslinValidatorCaller) IsCandidate(opts *bind.CallOpts, _candidate common.Address) (bool, error)
IsCandidate is a free data retrieval call binding the contract method 0xd51b9e93.
Solidity: function isCandidate(_candidate address) constant returns(bool)
func (*TyslinValidatorCaller) MaxValidatorNumber ¶
func (_TyslinValidator *TyslinValidatorCaller) MaxValidatorNumber(opts *bind.CallOpts) (*big.Int, error)
MaxValidatorNumber is a free data retrieval call binding the contract method 0xd09f1ab4.
Solidity: function maxValidatorNumber() constant returns(uint256)
func (*TyslinValidatorCaller) MinCandidateCap ¶
func (_TyslinValidator *TyslinValidatorCaller) MinCandidateCap(opts *bind.CallOpts) (*big.Int, error)
MinCandidateCap is a free data retrieval call binding the contract method 0xd55b7dff.
Solidity: function minCandidateCap() constant returns(uint256)
func (*TyslinValidatorCaller) MinVoterCap ¶
MinVoterCap is a free data retrieval call binding the contract method 0xf8ac9dd5.
Solidity: function minVoterCap() constant returns(uint256)
func (*TyslinValidatorCaller) VoterWithdrawDelay ¶
func (_TyslinValidator *TyslinValidatorCaller) VoterWithdrawDelay(opts *bind.CallOpts) (*big.Int, error)
VoterWithdrawDelay is a free data retrieval call binding the contract method 0xa9ff959e.
Solidity: function voterWithdrawDelay() constant returns(uint256)
type TyslinValidatorCallerRaw ¶
type TyslinValidatorCallerRaw struct {
Contract *TyslinValidatorCaller // Generic read-only contract binding to access the raw methods on
}
TyslinValidatorCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*TyslinValidatorCallerRaw) Call ¶
func (_TyslinValidator *TyslinValidatorCallerRaw) 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 TyslinValidatorCallerSession ¶
type TyslinValidatorCallerSession struct { Contract *TyslinValidatorCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
TyslinValidatorCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*TyslinValidatorCallerSession) CandidateCount ¶
func (_TyslinValidator *TyslinValidatorCallerSession) CandidateCount() (*big.Int, error)
CandidateCount is a free data retrieval call binding the contract method 0xa9a981a3.
Solidity: function candidateCount() constant returns(uint256)
func (*TyslinValidatorCallerSession) CandidateWithdrawDelay ¶
func (_TyslinValidator *TyslinValidatorCallerSession) CandidateWithdrawDelay() (*big.Int, error)
CandidateWithdrawDelay is a free data retrieval call binding the contract method 0xd161c767.
Solidity: function candidateWithdrawDelay() constant returns(uint256)
func (*TyslinValidatorCallerSession) Candidates ¶
func (_TyslinValidator *TyslinValidatorCallerSession) Candidates(arg0 *big.Int) (common.Address, error)
Candidates is a free data retrieval call binding the contract method 0x3477ee2e.
Solidity: function candidates( uint256) constant returns(address)
func (*TyslinValidatorCallerSession) GetCandidateCap ¶
func (_TyslinValidator *TyslinValidatorCallerSession) GetCandidateCap(_candidate common.Address) (*big.Int, error)
GetCandidateCap is a free data retrieval call binding the contract method 0x58e7525f.
Solidity: function getCandidateCap(_candidate address) constant returns(uint256)
func (*TyslinValidatorCallerSession) GetCandidateOwner ¶
func (_TyslinValidator *TyslinValidatorCallerSession) GetCandidateOwner(_candidate common.Address) (common.Address, error)
GetCandidateOwner is a free data retrieval call binding the contract method 0xb642facd.
Solidity: function getCandidateOwner(_candidate address) constant returns(address)
func (*TyslinValidatorCallerSession) GetCandidates ¶
func (_TyslinValidator *TyslinValidatorCallerSession) GetCandidates() ([]common.Address, error)
GetCandidates is a free data retrieval call binding the contract method 0x06a49fce.
Solidity: function getCandidates() constant returns(address[])
func (*TyslinValidatorCallerSession) GetVoterCap ¶
func (_TyslinValidator *TyslinValidatorCallerSession) GetVoterCap(_candidate common.Address, _voter common.Address) (*big.Int, error)
GetVoterCap is a free data retrieval call binding the contract method 0x302b6872.
Solidity: function getVoterCap(_candidate address, _voter address) constant returns(uint256)
func (*TyslinValidatorCallerSession) GetVoters ¶
func (_TyslinValidator *TyslinValidatorCallerSession) GetVoters(_candidate common.Address) ([]common.Address, error)
GetVoters is a free data retrieval call binding the contract method 0x2d15cc04.
Solidity: function getVoters(_candidate address) constant returns(address[])
func (*TyslinValidatorCallerSession) GetWithdrawBlockNumbers ¶
func (_TyslinValidator *TyslinValidatorCallerSession) GetWithdrawBlockNumbers() ([]*big.Int, error)
GetWithdrawBlockNumbers is a free data retrieval call binding the contract method 0x2f9c4bba.
Solidity: function getWithdrawBlockNumbers() constant returns(uint256[])
func (*TyslinValidatorCallerSession) GetWithdrawCap ¶
func (_TyslinValidator *TyslinValidatorCallerSession) GetWithdrawCap(_blockNumber *big.Int) (*big.Int, error)
GetWithdrawCap is a free data retrieval call binding the contract method 0x15febd68.
Solidity: function getWithdrawCap(_blockNumber uint256) constant returns(uint256)
func (*TyslinValidatorCallerSession) IsCandidate ¶
func (_TyslinValidator *TyslinValidatorCallerSession) IsCandidate(_candidate common.Address) (bool, error)
IsCandidate is a free data retrieval call binding the contract method 0xd51b9e93.
Solidity: function isCandidate(_candidate address) constant returns(bool)
func (*TyslinValidatorCallerSession) MaxValidatorNumber ¶
func (_TyslinValidator *TyslinValidatorCallerSession) MaxValidatorNumber() (*big.Int, error)
MaxValidatorNumber is a free data retrieval call binding the contract method 0xd09f1ab4.
Solidity: function maxValidatorNumber() constant returns(uint256)
func (*TyslinValidatorCallerSession) MinCandidateCap ¶
func (_TyslinValidator *TyslinValidatorCallerSession) MinCandidateCap() (*big.Int, error)
MinCandidateCap is a free data retrieval call binding the contract method 0xd55b7dff.
Solidity: function minCandidateCap() constant returns(uint256)
func (*TyslinValidatorCallerSession) MinVoterCap ¶
func (_TyslinValidator *TyslinValidatorCallerSession) MinVoterCap() (*big.Int, error)
MinVoterCap is a free data retrieval call binding the contract method 0xf8ac9dd5.
Solidity: function minVoterCap() constant returns(uint256)
func (*TyslinValidatorCallerSession) VoterWithdrawDelay ¶
func (_TyslinValidator *TyslinValidatorCallerSession) VoterWithdrawDelay() (*big.Int, error)
VoterWithdrawDelay is a free data retrieval call binding the contract method 0xa9ff959e.
Solidity: function voterWithdrawDelay() constant returns(uint256)
type TyslinValidatorFilterer ¶
type TyslinValidatorFilterer struct {
// contains filtered or unexported fields
}
TyslinValidatorFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewTyslinValidatorFilterer ¶
func NewTyslinValidatorFilterer(address common.Address, filterer bind.ContractFilterer) (*TyslinValidatorFilterer, error)
NewTyslinValidatorFilterer creates a new log filterer instance of TyslinValidator, bound to a specific deployed contract.
func (*TyslinValidatorFilterer) FilterPropose ¶
func (_TyslinValidator *TyslinValidatorFilterer) FilterPropose(opts *bind.FilterOpts) (*TyslinValidatorProposeIterator, error)
FilterPropose is a free log retrieval operation binding the contract event 0x7635f1d87b47fba9f2b09e56eb4be75cca030e0cb179c1602ac9261d39a8f5c1.
Solidity: event Propose(_owner address, _candidate address, _cap uint256)
func (*TyslinValidatorFilterer) FilterResign ¶
func (_TyslinValidator *TyslinValidatorFilterer) FilterResign(opts *bind.FilterOpts) (*TyslinValidatorResignIterator, error)
FilterResign is a free log retrieval operation binding the contract event 0x4edf3e325d0063213a39f9085522994a1c44bea5f39e7d63ef61260a1e58c6d3.
Solidity: event Resign(_owner address, _candidate address)
func (*TyslinValidatorFilterer) FilterUnvote ¶
func (_TyslinValidator *TyslinValidatorFilterer) FilterUnvote(opts *bind.FilterOpts) (*TyslinValidatorUnvoteIterator, error)
FilterUnvote is a free log retrieval operation binding the contract event 0xaa0e554f781c3c3b2be110a0557f260f11af9a8aa2c64bc1e7a31dbb21e32fa2.
Solidity: event Unvote(_voter address, _candidate address, _cap uint256)
func (*TyslinValidatorFilterer) FilterVote ¶
func (_TyslinValidator *TyslinValidatorFilterer) FilterVote(opts *bind.FilterOpts) (*TyslinValidatorVoteIterator, error)
FilterVote is a free log retrieval operation binding the contract event 0x66a9138482c99e9baf08860110ef332cc0c23b4a199a53593d8db0fc8f96fbfc.
Solidity: event Vote(_voter address, _candidate address, _cap uint256)
func (*TyslinValidatorFilterer) FilterWithdraw ¶
func (_TyslinValidator *TyslinValidatorFilterer) FilterWithdraw(opts *bind.FilterOpts) (*TyslinValidatorWithdrawIterator, error)
FilterWithdraw is a free log retrieval operation binding the contract event 0xf279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568.
Solidity: event Withdraw(_owner address, _blockNumber uint256, _cap uint256)
func (*TyslinValidatorFilterer) WatchPropose ¶
func (_TyslinValidator *TyslinValidatorFilterer) WatchPropose(opts *bind.WatchOpts, sink chan<- *TyslinValidatorPropose) (event.Subscription, error)
WatchPropose is a free log subscription operation binding the contract event 0x7635f1d87b47fba9f2b09e56eb4be75cca030e0cb179c1602ac9261d39a8f5c1.
Solidity: event Propose(_owner address, _candidate address, _cap uint256)
func (*TyslinValidatorFilterer) WatchResign ¶
func (_TyslinValidator *TyslinValidatorFilterer) WatchResign(opts *bind.WatchOpts, sink chan<- *TyslinValidatorResign) (event.Subscription, error)
WatchResign is a free log subscription operation binding the contract event 0x4edf3e325d0063213a39f9085522994a1c44bea5f39e7d63ef61260a1e58c6d3.
Solidity: event Resign(_owner address, _candidate address)
func (*TyslinValidatorFilterer) WatchUnvote ¶
func (_TyslinValidator *TyslinValidatorFilterer) WatchUnvote(opts *bind.WatchOpts, sink chan<- *TyslinValidatorUnvote) (event.Subscription, error)
WatchUnvote is a free log subscription operation binding the contract event 0xaa0e554f781c3c3b2be110a0557f260f11af9a8aa2c64bc1e7a31dbb21e32fa2.
Solidity: event Unvote(_voter address, _candidate address, _cap uint256)
func (*TyslinValidatorFilterer) WatchVote ¶
func (_TyslinValidator *TyslinValidatorFilterer) WatchVote(opts *bind.WatchOpts, sink chan<- *TyslinValidatorVote) (event.Subscription, error)
WatchVote is a free log subscription operation binding the contract event 0x66a9138482c99e9baf08860110ef332cc0c23b4a199a53593d8db0fc8f96fbfc.
Solidity: event Vote(_voter address, _candidate address, _cap uint256)
func (*TyslinValidatorFilterer) WatchWithdraw ¶
func (_TyslinValidator *TyslinValidatorFilterer) WatchWithdraw(opts *bind.WatchOpts, sink chan<- *TyslinValidatorWithdraw) (event.Subscription, error)
WatchWithdraw is a free log subscription operation binding the contract event 0xf279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568.
Solidity: event Withdraw(_owner address, _blockNumber uint256, _cap uint256)
type TyslinValidatorPropose ¶
type TyslinValidatorPropose struct { Owner common.Address Candidate common.Address Cap *big.Int Raw types.Log // Blockchain specific contextual infos }
TyslinValidatorPropose represents a Propose event raised by the TyslinValidator contract.
type TyslinValidatorProposeIterator ¶
type TyslinValidatorProposeIterator struct { Event *TyslinValidatorPropose // Event containing the contract specifics and raw log // contains filtered or unexported fields }
TyslinValidatorProposeIterator is returned from FilterPropose and is used to iterate over the raw logs and unpacked data for Propose events raised by the TyslinValidator contract.
func (*TyslinValidatorProposeIterator) Close ¶
func (it *TyslinValidatorProposeIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*TyslinValidatorProposeIterator) Error ¶
func (it *TyslinValidatorProposeIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*TyslinValidatorProposeIterator) Next ¶
func (it *TyslinValidatorProposeIterator) 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 TyslinValidatorRaw ¶
type TyslinValidatorRaw struct {
Contract *TyslinValidator // Generic contract binding to access the raw methods on
}
TyslinValidatorRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*TyslinValidatorRaw) Call ¶
func (_TyslinValidator *TyslinValidatorRaw) 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 (*TyslinValidatorRaw) Transact ¶
func (_TyslinValidator *TyslinValidatorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*TyslinValidatorRaw) Transfer ¶
func (_TyslinValidator *TyslinValidatorRaw) 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 TyslinValidatorResign ¶
type TyslinValidatorResign struct { Owner common.Address Candidate common.Address Raw types.Log // Blockchain specific contextual infos }
TyslinValidatorResign represents a Resign event raised by the TyslinValidator contract.
type TyslinValidatorResignIterator ¶
type TyslinValidatorResignIterator struct { Event *TyslinValidatorResign // Event containing the contract specifics and raw log // contains filtered or unexported fields }
TyslinValidatorResignIterator is returned from FilterResign and is used to iterate over the raw logs and unpacked data for Resign events raised by the TyslinValidator contract.
func (*TyslinValidatorResignIterator) Close ¶
func (it *TyslinValidatorResignIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*TyslinValidatorResignIterator) Error ¶
func (it *TyslinValidatorResignIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*TyslinValidatorResignIterator) Next ¶
func (it *TyslinValidatorResignIterator) 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 TyslinValidatorSession ¶
type TyslinValidatorSession struct { Contract *TyslinValidator // 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 }
TyslinValidatorSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*TyslinValidatorSession) CandidateCount ¶
func (_TyslinValidator *TyslinValidatorSession) CandidateCount() (*big.Int, error)
CandidateCount is a free data retrieval call binding the contract method 0xa9a981a3.
Solidity: function candidateCount() constant returns(uint256)
func (*TyslinValidatorSession) CandidateWithdrawDelay ¶
func (_TyslinValidator *TyslinValidatorSession) CandidateWithdrawDelay() (*big.Int, error)
CandidateWithdrawDelay is a free data retrieval call binding the contract method 0xd161c767.
Solidity: function candidateWithdrawDelay() constant returns(uint256)
func (*TyslinValidatorSession) Candidates ¶
Candidates is a free data retrieval call binding the contract method 0x3477ee2e.
Solidity: function candidates( uint256) constant returns(address)
func (*TyslinValidatorSession) GetCandidateCap ¶
func (_TyslinValidator *TyslinValidatorSession) GetCandidateCap(_candidate common.Address) (*big.Int, error)
GetCandidateCap is a free data retrieval call binding the contract method 0x58e7525f.
Solidity: function getCandidateCap(_candidate address) constant returns(uint256)
func (*TyslinValidatorSession) GetCandidateOwner ¶
func (_TyslinValidator *TyslinValidatorSession) GetCandidateOwner(_candidate common.Address) (common.Address, error)
GetCandidateOwner is a free data retrieval call binding the contract method 0xb642facd.
Solidity: function getCandidateOwner(_candidate address) constant returns(address)
func (*TyslinValidatorSession) GetCandidates ¶
func (_TyslinValidator *TyslinValidatorSession) GetCandidates() ([]common.Address, error)
GetCandidates is a free data retrieval call binding the contract method 0x06a49fce.
Solidity: function getCandidates() constant returns(address[])
func (*TyslinValidatorSession) GetVoterCap ¶
func (_TyslinValidator *TyslinValidatorSession) GetVoterCap(_candidate common.Address, _voter common.Address) (*big.Int, error)
GetVoterCap is a free data retrieval call binding the contract method 0x302b6872.
Solidity: function getVoterCap(_candidate address, _voter address) constant returns(uint256)
func (*TyslinValidatorSession) GetVoters ¶
func (_TyslinValidator *TyslinValidatorSession) GetVoters(_candidate common.Address) ([]common.Address, error)
GetVoters is a free data retrieval call binding the contract method 0x2d15cc04.
Solidity: function getVoters(_candidate address) constant returns(address[])
func (*TyslinValidatorSession) GetWithdrawBlockNumbers ¶
func (_TyslinValidator *TyslinValidatorSession) GetWithdrawBlockNumbers() ([]*big.Int, error)
GetWithdrawBlockNumbers is a free data retrieval call binding the contract method 0x2f9c4bba.
Solidity: function getWithdrawBlockNumbers() constant returns(uint256[])
func (*TyslinValidatorSession) GetWithdrawCap ¶
func (_TyslinValidator *TyslinValidatorSession) GetWithdrawCap(_blockNumber *big.Int) (*big.Int, error)
GetWithdrawCap is a free data retrieval call binding the contract method 0x15febd68.
Solidity: function getWithdrawCap(_blockNumber uint256) constant returns(uint256)
func (*TyslinValidatorSession) IsCandidate ¶
func (_TyslinValidator *TyslinValidatorSession) IsCandidate(_candidate common.Address) (bool, error)
IsCandidate is a free data retrieval call binding the contract method 0xd51b9e93.
Solidity: function isCandidate(_candidate address) constant returns(bool)
func (*TyslinValidatorSession) MaxValidatorNumber ¶
func (_TyslinValidator *TyslinValidatorSession) MaxValidatorNumber() (*big.Int, error)
MaxValidatorNumber is a free data retrieval call binding the contract method 0xd09f1ab4.
Solidity: function maxValidatorNumber() constant returns(uint256)
func (*TyslinValidatorSession) MinCandidateCap ¶
func (_TyslinValidator *TyslinValidatorSession) MinCandidateCap() (*big.Int, error)
MinCandidateCap is a free data retrieval call binding the contract method 0xd55b7dff.
Solidity: function minCandidateCap() constant returns(uint256)
func (*TyslinValidatorSession) MinVoterCap ¶
func (_TyslinValidator *TyslinValidatorSession) MinVoterCap() (*big.Int, error)
MinVoterCap is a free data retrieval call binding the contract method 0xf8ac9dd5.
Solidity: function minVoterCap() constant returns(uint256)
func (*TyslinValidatorSession) Propose ¶
func (_TyslinValidator *TyslinValidatorSession) Propose(_candidate common.Address) (*types.Transaction, error)
Propose is a paid mutator transaction binding the contract method 0x01267951.
Solidity: function propose(_candidate address) returns()
func (*TyslinValidatorSession) Resign ¶
func (_TyslinValidator *TyslinValidatorSession) Resign(_candidate common.Address) (*types.Transaction, error)
Resign is a paid mutator transaction binding the contract method 0xae6e43f5.
Solidity: function resign(_candidate address) returns()
func (*TyslinValidatorSession) Unvote ¶
func (_TyslinValidator *TyslinValidatorSession) Unvote(_candidate common.Address, _cap *big.Int) (*types.Transaction, error)
Unvote is a paid mutator transaction binding the contract method 0x02aa9be2.
Solidity: function unvote(_candidate address, _cap uint256) returns()
func (*TyslinValidatorSession) Vote ¶
func (_TyslinValidator *TyslinValidatorSession) Vote(_candidate common.Address) (*types.Transaction, error)
Vote is a paid mutator transaction binding the contract method 0x6dd7d8ea.
Solidity: function vote(_candidate address) returns()
func (*TyslinValidatorSession) VoterWithdrawDelay ¶
func (_TyslinValidator *TyslinValidatorSession) VoterWithdrawDelay() (*big.Int, error)
VoterWithdrawDelay is a free data retrieval call binding the contract method 0xa9ff959e.
Solidity: function voterWithdrawDelay() constant returns(uint256)
func (*TyslinValidatorSession) Withdraw ¶
func (_TyslinValidator *TyslinValidatorSession) Withdraw(_blockNumber *big.Int, _index *big.Int) (*types.Transaction, error)
Withdraw is a paid mutator transaction binding the contract method 0x441a3e70.
Solidity: function withdraw(_blockNumber uint256, _index uint256) returns()
type TyslinValidatorTransactor ¶
type TyslinValidatorTransactor struct {
// contains filtered or unexported fields
}
TyslinValidatorTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewTyslinValidatorTransactor ¶
func NewTyslinValidatorTransactor(address common.Address, transactor bind.ContractTransactor) (*TyslinValidatorTransactor, error)
NewTyslinValidatorTransactor creates a new write-only instance of TyslinValidator, bound to a specific deployed contract.
func (*TyslinValidatorTransactor) Propose ¶
func (_TyslinValidator *TyslinValidatorTransactor) Propose(opts *bind.TransactOpts, _candidate common.Address) (*types.Transaction, error)
Propose is a paid mutator transaction binding the contract method 0x01267951.
Solidity: function propose(_candidate address) returns()
func (*TyslinValidatorTransactor) Resign ¶
func (_TyslinValidator *TyslinValidatorTransactor) Resign(opts *bind.TransactOpts, _candidate common.Address) (*types.Transaction, error)
Resign is a paid mutator transaction binding the contract method 0xae6e43f5.
Solidity: function resign(_candidate address) returns()
func (*TyslinValidatorTransactor) Unvote ¶
func (_TyslinValidator *TyslinValidatorTransactor) Unvote(opts *bind.TransactOpts, _candidate common.Address, _cap *big.Int) (*types.Transaction, error)
Unvote is a paid mutator transaction binding the contract method 0x02aa9be2.
Solidity: function unvote(_candidate address, _cap uint256) returns()
func (*TyslinValidatorTransactor) Vote ¶
func (_TyslinValidator *TyslinValidatorTransactor) Vote(opts *bind.TransactOpts, _candidate common.Address) (*types.Transaction, error)
Vote is a paid mutator transaction binding the contract method 0x6dd7d8ea.
Solidity: function vote(_candidate address) returns()
func (*TyslinValidatorTransactor) Withdraw ¶
func (_TyslinValidator *TyslinValidatorTransactor) Withdraw(opts *bind.TransactOpts, _blockNumber *big.Int, _index *big.Int) (*types.Transaction, error)
Withdraw is a paid mutator transaction binding the contract method 0x441a3e70.
Solidity: function withdraw(_blockNumber uint256, _index uint256) returns()
type TyslinValidatorTransactorRaw ¶
type TyslinValidatorTransactorRaw struct {
Contract *TyslinValidatorTransactor // Generic write-only contract binding to access the raw methods on
}
TyslinValidatorTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*TyslinValidatorTransactorRaw) Transact ¶
func (_TyslinValidator *TyslinValidatorTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*TyslinValidatorTransactorRaw) Transfer ¶
func (_TyslinValidator *TyslinValidatorTransactorRaw) 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 TyslinValidatorTransactorSession ¶
type TyslinValidatorTransactorSession struct { Contract *TyslinValidatorTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
TyslinValidatorTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*TyslinValidatorTransactorSession) Propose ¶
func (_TyslinValidator *TyslinValidatorTransactorSession) Propose(_candidate common.Address) (*types.Transaction, error)
Propose is a paid mutator transaction binding the contract method 0x01267951.
Solidity: function propose(_candidate address) returns()
func (*TyslinValidatorTransactorSession) Resign ¶
func (_TyslinValidator *TyslinValidatorTransactorSession) Resign(_candidate common.Address) (*types.Transaction, error)
Resign is a paid mutator transaction binding the contract method 0xae6e43f5.
Solidity: function resign(_candidate address) returns()
func (*TyslinValidatorTransactorSession) Unvote ¶
func (_TyslinValidator *TyslinValidatorTransactorSession) Unvote(_candidate common.Address, _cap *big.Int) (*types.Transaction, error)
Unvote is a paid mutator transaction binding the contract method 0x02aa9be2.
Solidity: function unvote(_candidate address, _cap uint256) returns()
func (*TyslinValidatorTransactorSession) Vote ¶
func (_TyslinValidator *TyslinValidatorTransactorSession) Vote(_candidate common.Address) (*types.Transaction, error)
Vote is a paid mutator transaction binding the contract method 0x6dd7d8ea.
Solidity: function vote(_candidate address) returns()
func (*TyslinValidatorTransactorSession) Withdraw ¶
func (_TyslinValidator *TyslinValidatorTransactorSession) Withdraw(_blockNumber *big.Int, _index *big.Int) (*types.Transaction, error)
Withdraw is a paid mutator transaction binding the contract method 0x441a3e70.
Solidity: function withdraw(_blockNumber uint256, _index uint256) returns()
type TyslinValidatorUnvote ¶
type TyslinValidatorUnvote struct { Voter common.Address Candidate common.Address Cap *big.Int Raw types.Log // Blockchain specific contextual infos }
TyslinValidatorUnvote represents a Unvote event raised by the TyslinValidator contract.
type TyslinValidatorUnvoteIterator ¶
type TyslinValidatorUnvoteIterator struct { Event *TyslinValidatorUnvote // Event containing the contract specifics and raw log // contains filtered or unexported fields }
TyslinValidatorUnvoteIterator is returned from FilterUnvote and is used to iterate over the raw logs and unpacked data for Unvote events raised by the TyslinValidator contract.
func (*TyslinValidatorUnvoteIterator) Close ¶
func (it *TyslinValidatorUnvoteIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*TyslinValidatorUnvoteIterator) Error ¶
func (it *TyslinValidatorUnvoteIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*TyslinValidatorUnvoteIterator) Next ¶
func (it *TyslinValidatorUnvoteIterator) 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 TyslinValidatorVote ¶
type TyslinValidatorVote struct { Voter common.Address Candidate common.Address Cap *big.Int Raw types.Log // Blockchain specific contextual infos }
TyslinValidatorVote represents a Vote event raised by the TyslinValidator contract.
type TyslinValidatorVoteIterator ¶
type TyslinValidatorVoteIterator struct { Event *TyslinValidatorVote // Event containing the contract specifics and raw log // contains filtered or unexported fields }
TyslinValidatorVoteIterator is returned from FilterVote and is used to iterate over the raw logs and unpacked data for Vote events raised by the TyslinValidator contract.
func (*TyslinValidatorVoteIterator) Close ¶
func (it *TyslinValidatorVoteIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*TyslinValidatorVoteIterator) Error ¶
func (it *TyslinValidatorVoteIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*TyslinValidatorVoteIterator) Next ¶
func (it *TyslinValidatorVoteIterator) 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 TyslinValidatorWithdraw ¶
type TyslinValidatorWithdraw struct { Owner common.Address BlockNumber *big.Int Cap *big.Int Raw types.Log // Blockchain specific contextual infos }
TyslinValidatorWithdraw represents a Withdraw event raised by the TyslinValidator contract.
type TyslinValidatorWithdrawIterator ¶
type TyslinValidatorWithdrawIterator struct { Event *TyslinValidatorWithdraw // Event containing the contract specifics and raw log // contains filtered or unexported fields }
TyslinValidatorWithdrawIterator is returned from FilterWithdraw and is used to iterate over the raw logs and unpacked data for Withdraw events raised by the TyslinValidator contract.
func (*TyslinValidatorWithdrawIterator) Close ¶
func (it *TyslinValidatorWithdrawIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*TyslinValidatorWithdrawIterator) Error ¶
func (it *TyslinValidatorWithdrawIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*TyslinValidatorWithdrawIterator) Next ¶
func (it *TyslinValidatorWithdrawIterator) 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.