contract

package
v0.0.0-...-b4cfd71 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 26, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const SafeMathABI = "[]"

SafeMathABI is the input ABI used to generate the binding from.

View Source
const SafeMathBin = `` /* 242-byte string literal not displayed */

SafeMathBin is the compiled bytecode used for deploying new contracts.

View Source
const TaoValidatorABI = "" /* 5884-byte string literal not displayed */

TaoValidatorABI is the input ABI used to generate the binding from.

View Source
const TaoValidatorBin = `` /* 10284-byte string literal not displayed */

TaoValidatorBin 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

func NewSafeMath(address common.Address, backend bind.ContractBackend) (*SafeMath, error)

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 TaoValidator

type TaoValidator struct {
	TaoValidatorCaller     // Read-only binding to the contract
	TaoValidatorTransactor // Write-only binding to the contract
	TaoValidatorFilterer   // Log filterer for contract events
}

TaoValidator is an auto generated Go binding around an Ethereum contract.

func DeployTaoValidator

func DeployTaoValidator(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, *TaoValidator, error)

DeployTaoValidator deploys a new Ethereum contract, binding an instance of TaoValidator to it.

func NewTaoValidator

func NewTaoValidator(address common.Address, backend bind.ContractBackend) (*TaoValidator, error)

NewTaoValidator creates a new instance of TaoValidator, bound to a specific deployed contract.

type TaoValidatorCaller

type TaoValidatorCaller struct {
	// contains filtered or unexported fields
}

TaoValidatorCaller is an auto generated read-only Go binding around an Ethereum contract.

func NewTaoValidatorCaller

func NewTaoValidatorCaller(address common.Address, caller bind.ContractCaller) (*TaoValidatorCaller, error)

NewTaoValidatorCaller creates a new read-only instance of TaoValidator, bound to a specific deployed contract.

func (*TaoValidatorCaller) CandidateCount

func (_TaoValidator *TaoValidatorCaller) 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 (*TaoValidatorCaller) CandidateWithdrawDelay

func (_TaoValidator *TaoValidatorCaller) 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 (*TaoValidatorCaller) Candidates

func (_TaoValidator *TaoValidatorCaller) 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 (*TaoValidatorCaller) GetCandidateCap

func (_TaoValidator *TaoValidatorCaller) 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 (*TaoValidatorCaller) GetCandidateOwner

func (_TaoValidator *TaoValidatorCaller) 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 (*TaoValidatorCaller) GetCandidates

func (_TaoValidator *TaoValidatorCaller) 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 (*TaoValidatorCaller) GetVoterCap

func (_TaoValidator *TaoValidatorCaller) 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 (*TaoValidatorCaller) GetVoters

func (_TaoValidator *TaoValidatorCaller) 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 (*TaoValidatorCaller) GetWithdrawBlockNumbers

func (_TaoValidator *TaoValidatorCaller) 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 (*TaoValidatorCaller) GetWithdrawCap

func (_TaoValidator *TaoValidatorCaller) 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 (*TaoValidatorCaller) IsCandidate

func (_TaoValidator *TaoValidatorCaller) 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 (*TaoValidatorCaller) MaxValidatorNumber

func (_TaoValidator *TaoValidatorCaller) 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 (*TaoValidatorCaller) MinCandidateCap

func (_TaoValidator *TaoValidatorCaller) 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 (*TaoValidatorCaller) MinVoterCap

func (_TaoValidator *TaoValidatorCaller) MinVoterCap(opts *bind.CallOpts) (*big.Int, error)

MinVoterCap is a free data retrieval call binding the contract method 0xf8ac9dd5.

Solidity: function minVoterCap() constant returns(uint256)

func (*TaoValidatorCaller) VoterWithdrawDelay

func (_TaoValidator *TaoValidatorCaller) 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 TaoValidatorCallerRaw

type TaoValidatorCallerRaw struct {
	Contract *TaoValidatorCaller // Generic read-only contract binding to access the raw methods on
}

TaoValidatorCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.

func (*TaoValidatorCallerRaw) Call

func (_TaoValidator *TaoValidatorCallerRaw) 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 TaoValidatorCallerSession

type TaoValidatorCallerSession struct {
	Contract *TaoValidatorCaller // Generic contract caller binding to set the session for
	CallOpts bind.CallOpts       // Call options to use throughout this session
}

TaoValidatorCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.

func (*TaoValidatorCallerSession) CandidateCount

func (_TaoValidator *TaoValidatorCallerSession) CandidateCount() (*big.Int, error)

CandidateCount is a free data retrieval call binding the contract method 0xa9a981a3.

Solidity: function candidateCount() constant returns(uint256)

func (*TaoValidatorCallerSession) CandidateWithdrawDelay

func (_TaoValidator *TaoValidatorCallerSession) CandidateWithdrawDelay() (*big.Int, error)

CandidateWithdrawDelay is a free data retrieval call binding the contract method 0xd161c767.

Solidity: function candidateWithdrawDelay() constant returns(uint256)

func (*TaoValidatorCallerSession) Candidates

func (_TaoValidator *TaoValidatorCallerSession) 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 (*TaoValidatorCallerSession) GetCandidateCap

func (_TaoValidator *TaoValidatorCallerSession) 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 (*TaoValidatorCallerSession) GetCandidateOwner

func (_TaoValidator *TaoValidatorCallerSession) 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 (*TaoValidatorCallerSession) GetCandidates

func (_TaoValidator *TaoValidatorCallerSession) GetCandidates() ([]common.Address, error)

GetCandidates is a free data retrieval call binding the contract method 0x06a49fce.

Solidity: function getCandidates() constant returns(address[])

func (*TaoValidatorCallerSession) GetVoterCap

func (_TaoValidator *TaoValidatorCallerSession) 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 (*TaoValidatorCallerSession) GetVoters

func (_TaoValidator *TaoValidatorCallerSession) 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 (*TaoValidatorCallerSession) GetWithdrawBlockNumbers

func (_TaoValidator *TaoValidatorCallerSession) GetWithdrawBlockNumbers() ([]*big.Int, error)

GetWithdrawBlockNumbers is a free data retrieval call binding the contract method 0x2f9c4bba.

Solidity: function getWithdrawBlockNumbers() constant returns(uint256[])

func (*TaoValidatorCallerSession) GetWithdrawCap

func (_TaoValidator *TaoValidatorCallerSession) 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 (*TaoValidatorCallerSession) IsCandidate

func (_TaoValidator *TaoValidatorCallerSession) 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 (*TaoValidatorCallerSession) MaxValidatorNumber

func (_TaoValidator *TaoValidatorCallerSession) MaxValidatorNumber() (*big.Int, error)

MaxValidatorNumber is a free data retrieval call binding the contract method 0xd09f1ab4.

Solidity: function maxValidatorNumber() constant returns(uint256)

func (*TaoValidatorCallerSession) MinCandidateCap

func (_TaoValidator *TaoValidatorCallerSession) MinCandidateCap() (*big.Int, error)

MinCandidateCap is a free data retrieval call binding the contract method 0xd55b7dff.

Solidity: function minCandidateCap() constant returns(uint256)

func (*TaoValidatorCallerSession) MinVoterCap

func (_TaoValidator *TaoValidatorCallerSession) MinVoterCap() (*big.Int, error)

MinVoterCap is a free data retrieval call binding the contract method 0xf8ac9dd5.

Solidity: function minVoterCap() constant returns(uint256)

func (*TaoValidatorCallerSession) VoterWithdrawDelay

func (_TaoValidator *TaoValidatorCallerSession) VoterWithdrawDelay() (*big.Int, error)

VoterWithdrawDelay is a free data retrieval call binding the contract method 0xa9ff959e.

Solidity: function voterWithdrawDelay() constant returns(uint256)

type TaoValidatorFilterer

type TaoValidatorFilterer struct {
	// contains filtered or unexported fields
}

TaoValidatorFilterer is an auto generated log filtering Go binding around an Ethereum contract events.

func NewTaoValidatorFilterer

func NewTaoValidatorFilterer(address common.Address, filterer bind.ContractFilterer) (*TaoValidatorFilterer, error)

NewTaoValidatorFilterer creates a new log filterer instance of TaoValidator, bound to a specific deployed contract.

func (*TaoValidatorFilterer) FilterPropose

func (_TaoValidator *TaoValidatorFilterer) FilterPropose(opts *bind.FilterOpts) (*TaoValidatorProposeIterator, error)

FilterPropose is a free log retrieval operation binding the contract event 0x7635f1d87b47fba9f2b09e56eb4be75cca030e0cb179c1602ac9261d39a8f5c1.

Solidity: event Propose(_owner address, _candidate address, _cap uint256)

func (*TaoValidatorFilterer) FilterResign

func (_TaoValidator *TaoValidatorFilterer) FilterResign(opts *bind.FilterOpts) (*TaoValidatorResignIterator, error)

FilterResign is a free log retrieval operation binding the contract event 0x4edf3e325d0063213a39f9085522994a1c44bea5f39e7d63ef61260a1e58c6d3.

Solidity: event Resign(_owner address, _candidate address)

func (*TaoValidatorFilterer) FilterUnvote

func (_TaoValidator *TaoValidatorFilterer) FilterUnvote(opts *bind.FilterOpts) (*TaoValidatorUnvoteIterator, error)

FilterUnvote is a free log retrieval operation binding the contract event 0xaa0e554f781c3c3b2be110a0557f260f11af9a8aa2c64bc1e7a31dbb21e32fa2.

Solidity: event Unvote(_voter address, _candidate address, _cap uint256)

func (*TaoValidatorFilterer) FilterVote

func (_TaoValidator *TaoValidatorFilterer) FilterVote(opts *bind.FilterOpts) (*TaoValidatorVoteIterator, error)

FilterVote is a free log retrieval operation binding the contract event 0x66a9138482c99e9baf08860110ef332cc0c23b4a199a53593d8db0fc8f96fbfc.

Solidity: event Vote(_voter address, _candidate address, _cap uint256)

func (*TaoValidatorFilterer) FilterWithdraw

func (_TaoValidator *TaoValidatorFilterer) FilterWithdraw(opts *bind.FilterOpts) (*TaoValidatorWithdrawIterator, error)

FilterWithdraw is a free log retrieval operation binding the contract event 0xf279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568.

Solidity: event Withdraw(_owner address, _blockNumber uint256, _cap uint256)

func (*TaoValidatorFilterer) WatchPropose

func (_TaoValidator *TaoValidatorFilterer) WatchPropose(opts *bind.WatchOpts, sink chan<- *TaoValidatorPropose) (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 (*TaoValidatorFilterer) WatchResign

func (_TaoValidator *TaoValidatorFilterer) WatchResign(opts *bind.WatchOpts, sink chan<- *TaoValidatorResign) (event.Subscription, error)

WatchResign is a free log subscription operation binding the contract event 0x4edf3e325d0063213a39f9085522994a1c44bea5f39e7d63ef61260a1e58c6d3.

Solidity: event Resign(_owner address, _candidate address)

func (*TaoValidatorFilterer) WatchUnvote

func (_TaoValidator *TaoValidatorFilterer) WatchUnvote(opts *bind.WatchOpts, sink chan<- *TaoValidatorUnvote) (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 (*TaoValidatorFilterer) WatchVote

func (_TaoValidator *TaoValidatorFilterer) WatchVote(opts *bind.WatchOpts, sink chan<- *TaoValidatorVote) (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 (*TaoValidatorFilterer) WatchWithdraw

func (_TaoValidator *TaoValidatorFilterer) WatchWithdraw(opts *bind.WatchOpts, sink chan<- *TaoValidatorWithdraw) (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 TaoValidatorPropose

type TaoValidatorPropose struct {
	Owner     common.Address
	Candidate common.Address
	Cap       *big.Int
	Raw       types.Log // Blockchain specific contextual infos
}

TaoValidatorPropose represents a Propose event raised by the TaoValidator contract.

type TaoValidatorProposeIterator

type TaoValidatorProposeIterator struct {
	Event *TaoValidatorPropose // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

TaoValidatorProposeIterator is returned from FilterPropose and is used to iterate over the raw logs and unpacked data for Propose events raised by the TaoValidator contract.

func (*TaoValidatorProposeIterator) Close

func (it *TaoValidatorProposeIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*TaoValidatorProposeIterator) Error

func (it *TaoValidatorProposeIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*TaoValidatorProposeIterator) Next

func (it *TaoValidatorProposeIterator) 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 TaoValidatorRaw

type TaoValidatorRaw struct {
	Contract *TaoValidator // Generic contract binding to access the raw methods on
}

TaoValidatorRaw is an auto generated low-level Go binding around an Ethereum contract.

func (*TaoValidatorRaw) Call

func (_TaoValidator *TaoValidatorRaw) 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 (*TaoValidatorRaw) Transact

func (_TaoValidator *TaoValidatorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*TaoValidatorRaw) Transfer

func (_TaoValidator *TaoValidatorRaw) 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 TaoValidatorResign

type TaoValidatorResign struct {
	Owner     common.Address
	Candidate common.Address
	Raw       types.Log // Blockchain specific contextual infos
}

TaoValidatorResign represents a Resign event raised by the TaoValidator contract.

type TaoValidatorResignIterator

type TaoValidatorResignIterator struct {
	Event *TaoValidatorResign // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

TaoValidatorResignIterator is returned from FilterResign and is used to iterate over the raw logs and unpacked data for Resign events raised by the TaoValidator contract.

func (*TaoValidatorResignIterator) Close

func (it *TaoValidatorResignIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*TaoValidatorResignIterator) Error

func (it *TaoValidatorResignIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*TaoValidatorResignIterator) Next

func (it *TaoValidatorResignIterator) 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 TaoValidatorSession

type TaoValidatorSession struct {
	Contract     *TaoValidator     // 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
}

TaoValidatorSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.

func (*TaoValidatorSession) CandidateCount

func (_TaoValidator *TaoValidatorSession) CandidateCount() (*big.Int, error)

CandidateCount is a free data retrieval call binding the contract method 0xa9a981a3.

Solidity: function candidateCount() constant returns(uint256)

func (*TaoValidatorSession) CandidateWithdrawDelay

func (_TaoValidator *TaoValidatorSession) CandidateWithdrawDelay() (*big.Int, error)

CandidateWithdrawDelay is a free data retrieval call binding the contract method 0xd161c767.

Solidity: function candidateWithdrawDelay() constant returns(uint256)

func (*TaoValidatorSession) Candidates

func (_TaoValidator *TaoValidatorSession) 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 (*TaoValidatorSession) GetCandidateCap

func (_TaoValidator *TaoValidatorSession) 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 (*TaoValidatorSession) GetCandidateOwner

func (_TaoValidator *TaoValidatorSession) 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 (*TaoValidatorSession) GetCandidates

func (_TaoValidator *TaoValidatorSession) GetCandidates() ([]common.Address, error)

GetCandidates is a free data retrieval call binding the contract method 0x06a49fce.

Solidity: function getCandidates() constant returns(address[])

func (*TaoValidatorSession) GetVoterCap

func (_TaoValidator *TaoValidatorSession) 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 (*TaoValidatorSession) GetVoters

func (_TaoValidator *TaoValidatorSession) 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 (*TaoValidatorSession) GetWithdrawBlockNumbers

func (_TaoValidator *TaoValidatorSession) GetWithdrawBlockNumbers() ([]*big.Int, error)

GetWithdrawBlockNumbers is a free data retrieval call binding the contract method 0x2f9c4bba.

Solidity: function getWithdrawBlockNumbers() constant returns(uint256[])

func (*TaoValidatorSession) GetWithdrawCap

func (_TaoValidator *TaoValidatorSession) 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 (*TaoValidatorSession) IsCandidate

func (_TaoValidator *TaoValidatorSession) 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 (*TaoValidatorSession) MaxValidatorNumber

func (_TaoValidator *TaoValidatorSession) MaxValidatorNumber() (*big.Int, error)

MaxValidatorNumber is a free data retrieval call binding the contract method 0xd09f1ab4.

Solidity: function maxValidatorNumber() constant returns(uint256)

func (*TaoValidatorSession) MinCandidateCap

func (_TaoValidator *TaoValidatorSession) MinCandidateCap() (*big.Int, error)

MinCandidateCap is a free data retrieval call binding the contract method 0xd55b7dff.

Solidity: function minCandidateCap() constant returns(uint256)

func (*TaoValidatorSession) MinVoterCap

func (_TaoValidator *TaoValidatorSession) MinVoterCap() (*big.Int, error)

MinVoterCap is a free data retrieval call binding the contract method 0xf8ac9dd5.

Solidity: function minVoterCap() constant returns(uint256)

func (*TaoValidatorSession) Propose

func (_TaoValidator *TaoValidatorSession) 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 (*TaoValidatorSession) Resign

func (_TaoValidator *TaoValidatorSession) 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 (*TaoValidatorSession) Unvote

func (_TaoValidator *TaoValidatorSession) 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 (*TaoValidatorSession) Vote

func (_TaoValidator *TaoValidatorSession) 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 (*TaoValidatorSession) VoterWithdrawDelay

func (_TaoValidator *TaoValidatorSession) VoterWithdrawDelay() (*big.Int, error)

VoterWithdrawDelay is a free data retrieval call binding the contract method 0xa9ff959e.

Solidity: function voterWithdrawDelay() constant returns(uint256)

func (*TaoValidatorSession) Withdraw

func (_TaoValidator *TaoValidatorSession) 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 TaoValidatorTransactor

type TaoValidatorTransactor struct {
	// contains filtered or unexported fields
}

TaoValidatorTransactor is an auto generated write-only Go binding around an Ethereum contract.

func NewTaoValidatorTransactor

func NewTaoValidatorTransactor(address common.Address, transactor bind.ContractTransactor) (*TaoValidatorTransactor, error)

NewTaoValidatorTransactor creates a new write-only instance of TaoValidator, bound to a specific deployed contract.

func (*TaoValidatorTransactor) Propose

func (_TaoValidator *TaoValidatorTransactor) 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 (*TaoValidatorTransactor) Resign

func (_TaoValidator *TaoValidatorTransactor) 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 (*TaoValidatorTransactor) Unvote

func (_TaoValidator *TaoValidatorTransactor) 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 (*TaoValidatorTransactor) Vote

func (_TaoValidator *TaoValidatorTransactor) 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 (*TaoValidatorTransactor) Withdraw

func (_TaoValidator *TaoValidatorTransactor) 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 TaoValidatorTransactorRaw

type TaoValidatorTransactorRaw struct {
	Contract *TaoValidatorTransactor // Generic write-only contract binding to access the raw methods on
}

TaoValidatorTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.

func (*TaoValidatorTransactorRaw) Transact

func (_TaoValidator *TaoValidatorTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*TaoValidatorTransactorRaw) Transfer

func (_TaoValidator *TaoValidatorTransactorRaw) 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 TaoValidatorTransactorSession

type TaoValidatorTransactorSession struct {
	Contract     *TaoValidatorTransactor // Generic contract transactor binding to set the session for
	TransactOpts bind.TransactOpts       // Transaction auth options to use throughout this session
}

TaoValidatorTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.

func (*TaoValidatorTransactorSession) Propose

func (_TaoValidator *TaoValidatorTransactorSession) 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 (*TaoValidatorTransactorSession) Resign

func (_TaoValidator *TaoValidatorTransactorSession) 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 (*TaoValidatorTransactorSession) Unvote

func (_TaoValidator *TaoValidatorTransactorSession) 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 (*TaoValidatorTransactorSession) Vote

func (_TaoValidator *TaoValidatorTransactorSession) 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 (*TaoValidatorTransactorSession) Withdraw

func (_TaoValidator *TaoValidatorTransactorSession) 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 TaoValidatorUnvote

type TaoValidatorUnvote struct {
	Voter     common.Address
	Candidate common.Address
	Cap       *big.Int
	Raw       types.Log // Blockchain specific contextual infos
}

TaoValidatorUnvote represents a Unvote event raised by the TaoValidator contract.

type TaoValidatorUnvoteIterator

type TaoValidatorUnvoteIterator struct {
	Event *TaoValidatorUnvote // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

TaoValidatorUnvoteIterator is returned from FilterUnvote and is used to iterate over the raw logs and unpacked data for Unvote events raised by the TaoValidator contract.

func (*TaoValidatorUnvoteIterator) Close

func (it *TaoValidatorUnvoteIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*TaoValidatorUnvoteIterator) Error

func (it *TaoValidatorUnvoteIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*TaoValidatorUnvoteIterator) Next

func (it *TaoValidatorUnvoteIterator) 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 TaoValidatorVote

type TaoValidatorVote struct {
	Voter     common.Address
	Candidate common.Address
	Cap       *big.Int
	Raw       types.Log // Blockchain specific contextual infos
}

TaoValidatorVote represents a Vote event raised by the TaoValidator contract.

type TaoValidatorVoteIterator

type TaoValidatorVoteIterator struct {
	Event *TaoValidatorVote // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

TaoValidatorVoteIterator is returned from FilterVote and is used to iterate over the raw logs and unpacked data for Vote events raised by the TaoValidator contract.

func (*TaoValidatorVoteIterator) Close

func (it *TaoValidatorVoteIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*TaoValidatorVoteIterator) Error

func (it *TaoValidatorVoteIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*TaoValidatorVoteIterator) Next

func (it *TaoValidatorVoteIterator) 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 TaoValidatorWithdraw

type TaoValidatorWithdraw struct {
	Owner       common.Address
	BlockNumber *big.Int
	Cap         *big.Int
	Raw         types.Log // Blockchain specific contextual infos
}

TaoValidatorWithdraw represents a Withdraw event raised by the TaoValidator contract.

type TaoValidatorWithdrawIterator

type TaoValidatorWithdrawIterator struct {
	Event *TaoValidatorWithdraw // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

TaoValidatorWithdrawIterator is returned from FilterWithdraw and is used to iterate over the raw logs and unpacked data for Withdraw events raised by the TaoValidator contract.

func (*TaoValidatorWithdrawIterator) Close

func (it *TaoValidatorWithdrawIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*TaoValidatorWithdrawIterator) Error

func (it *TaoValidatorWithdrawIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*TaoValidatorWithdrawIterator) Next

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL