contract

package
v1.5.4-internalrpc Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2019 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 TomoValidatorABI = "" /* 5884-byte string literal not displayed */

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

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

TomoValidatorBin 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 TomoValidator

type TomoValidator struct {
	TomoValidatorCaller     // Read-only binding to the contract
	TomoValidatorTransactor // Write-only binding to the contract
	TomoValidatorFilterer   // Log filterer for contract events
}

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

func DeployTomoValidator

func DeployTomoValidator(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, *TomoValidator, error)

DeployTomoValidator deploys a new Ethereum contract, binding an instance of TomoValidator to it.

func NewTomoValidator

func NewTomoValidator(address common.Address, backend bind.ContractBackend) (*TomoValidator, error)

NewTomoValidator creates a new instance of TomoValidator, bound to a specific deployed contract.

type TomoValidatorCaller

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

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

func NewTomoValidatorCaller

func NewTomoValidatorCaller(address common.Address, caller bind.ContractCaller) (*TomoValidatorCaller, error)

NewTomoValidatorCaller creates a new read-only instance of TomoValidator, bound to a specific deployed contract.

func (*TomoValidatorCaller) CandidateCount

func (_TomoValidator *TomoValidatorCaller) 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 (*TomoValidatorCaller) CandidateWithdrawDelay

func (_TomoValidator *TomoValidatorCaller) 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 (*TomoValidatorCaller) Candidates

func (_TomoValidator *TomoValidatorCaller) 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 (*TomoValidatorCaller) GetCandidateCap

func (_TomoValidator *TomoValidatorCaller) 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 (*TomoValidatorCaller) GetCandidateOwner

func (_TomoValidator *TomoValidatorCaller) 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 (*TomoValidatorCaller) GetCandidates

func (_TomoValidator *TomoValidatorCaller) 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 (*TomoValidatorCaller) GetVoterCap

func (_TomoValidator *TomoValidatorCaller) 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 (*TomoValidatorCaller) GetVoters

func (_TomoValidator *TomoValidatorCaller) 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 (*TomoValidatorCaller) GetWithdrawBlockNumbers

func (_TomoValidator *TomoValidatorCaller) 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 (*TomoValidatorCaller) GetWithdrawCap

func (_TomoValidator *TomoValidatorCaller) 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 (*TomoValidatorCaller) IsCandidate

func (_TomoValidator *TomoValidatorCaller) 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 (*TomoValidatorCaller) MaxValidatorNumber

func (_TomoValidator *TomoValidatorCaller) 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 (*TomoValidatorCaller) MinCandidateCap

func (_TomoValidator *TomoValidatorCaller) 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 (*TomoValidatorCaller) MinVoterCap

func (_TomoValidator *TomoValidatorCaller) 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 (*TomoValidatorCaller) VoterWithdrawDelay

func (_TomoValidator *TomoValidatorCaller) 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 TomoValidatorCallerRaw

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

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

func (*TomoValidatorCallerRaw) Call

func (_TomoValidator *TomoValidatorCallerRaw) 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 TomoValidatorCallerSession

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

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

func (*TomoValidatorCallerSession) CandidateCount

func (_TomoValidator *TomoValidatorCallerSession) CandidateCount() (*big.Int, error)

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

Solidity: function candidateCount() constant returns(uint256)

func (*TomoValidatorCallerSession) CandidateWithdrawDelay

func (_TomoValidator *TomoValidatorCallerSession) CandidateWithdrawDelay() (*big.Int, error)

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

Solidity: function candidateWithdrawDelay() constant returns(uint256)

func (*TomoValidatorCallerSession) Candidates

func (_TomoValidator *TomoValidatorCallerSession) 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 (*TomoValidatorCallerSession) GetCandidateCap

func (_TomoValidator *TomoValidatorCallerSession) 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 (*TomoValidatorCallerSession) GetCandidateOwner

func (_TomoValidator *TomoValidatorCallerSession) 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 (*TomoValidatorCallerSession) GetCandidates

func (_TomoValidator *TomoValidatorCallerSession) GetCandidates() ([]common.Address, error)

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

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

func (*TomoValidatorCallerSession) GetVoterCap

func (_TomoValidator *TomoValidatorCallerSession) 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 (*TomoValidatorCallerSession) GetVoters

func (_TomoValidator *TomoValidatorCallerSession) 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 (*TomoValidatorCallerSession) GetWithdrawBlockNumbers

func (_TomoValidator *TomoValidatorCallerSession) GetWithdrawBlockNumbers() ([]*big.Int, error)

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

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

func (*TomoValidatorCallerSession) GetWithdrawCap

func (_TomoValidator *TomoValidatorCallerSession) 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 (*TomoValidatorCallerSession) IsCandidate

func (_TomoValidator *TomoValidatorCallerSession) 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 (*TomoValidatorCallerSession) MaxValidatorNumber

func (_TomoValidator *TomoValidatorCallerSession) MaxValidatorNumber() (*big.Int, error)

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

Solidity: function maxValidatorNumber() constant returns(uint256)

func (*TomoValidatorCallerSession) MinCandidateCap

func (_TomoValidator *TomoValidatorCallerSession) MinCandidateCap() (*big.Int, error)

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

Solidity: function minCandidateCap() constant returns(uint256)

func (*TomoValidatorCallerSession) MinVoterCap

func (_TomoValidator *TomoValidatorCallerSession) MinVoterCap() (*big.Int, error)

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

Solidity: function minVoterCap() constant returns(uint256)

func (*TomoValidatorCallerSession) VoterWithdrawDelay

func (_TomoValidator *TomoValidatorCallerSession) VoterWithdrawDelay() (*big.Int, error)

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

Solidity: function voterWithdrawDelay() constant returns(uint256)

type TomoValidatorFilterer

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

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

func NewTomoValidatorFilterer

func NewTomoValidatorFilterer(address common.Address, filterer bind.ContractFilterer) (*TomoValidatorFilterer, error)

NewTomoValidatorFilterer creates a new log filterer instance of TomoValidator, bound to a specific deployed contract.

func (*TomoValidatorFilterer) FilterPropose

func (_TomoValidator *TomoValidatorFilterer) FilterPropose(opts *bind.FilterOpts) (*TomoValidatorProposeIterator, error)

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

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

func (*TomoValidatorFilterer) FilterResign

func (_TomoValidator *TomoValidatorFilterer) FilterResign(opts *bind.FilterOpts) (*TomoValidatorResignIterator, error)

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

Solidity: event Resign(_owner address, _candidate address)

func (*TomoValidatorFilterer) FilterUnvote

func (_TomoValidator *TomoValidatorFilterer) FilterUnvote(opts *bind.FilterOpts) (*TomoValidatorUnvoteIterator, error)

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

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

func (*TomoValidatorFilterer) FilterVote

func (_TomoValidator *TomoValidatorFilterer) FilterVote(opts *bind.FilterOpts) (*TomoValidatorVoteIterator, error)

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

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

func (*TomoValidatorFilterer) FilterWithdraw

func (_TomoValidator *TomoValidatorFilterer) FilterWithdraw(opts *bind.FilterOpts) (*TomoValidatorWithdrawIterator, error)

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

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

func (*TomoValidatorFilterer) WatchPropose

func (_TomoValidator *TomoValidatorFilterer) WatchPropose(opts *bind.WatchOpts, sink chan<- *TomoValidatorPropose) (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 (*TomoValidatorFilterer) WatchResign

func (_TomoValidator *TomoValidatorFilterer) WatchResign(opts *bind.WatchOpts, sink chan<- *TomoValidatorResign) (event.Subscription, error)

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

Solidity: event Resign(_owner address, _candidate address)

func (*TomoValidatorFilterer) WatchUnvote

func (_TomoValidator *TomoValidatorFilterer) WatchUnvote(opts *bind.WatchOpts, sink chan<- *TomoValidatorUnvote) (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 (*TomoValidatorFilterer) WatchVote

func (_TomoValidator *TomoValidatorFilterer) WatchVote(opts *bind.WatchOpts, sink chan<- *TomoValidatorVote) (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 (*TomoValidatorFilterer) WatchWithdraw

func (_TomoValidator *TomoValidatorFilterer) WatchWithdraw(opts *bind.WatchOpts, sink chan<- *TomoValidatorWithdraw) (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 TomoValidatorPropose

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

TomoValidatorPropose represents a Propose event raised by the TomoValidator contract.

type TomoValidatorProposeIterator

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

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

func (*TomoValidatorProposeIterator) Close

func (it *TomoValidatorProposeIterator) Close() error

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

func (*TomoValidatorProposeIterator) Error

func (it *TomoValidatorProposeIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*TomoValidatorProposeIterator) 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.

type TomoValidatorRaw

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

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

func (*TomoValidatorRaw) Call

func (_TomoValidator *TomoValidatorRaw) 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 (*TomoValidatorRaw) Transact

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

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

func (*TomoValidatorRaw) Transfer

func (_TomoValidator *TomoValidatorRaw) 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 TomoValidatorResign

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

TomoValidatorResign represents a Resign event raised by the TomoValidator contract.

type TomoValidatorResignIterator

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

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

func (*TomoValidatorResignIterator) Close

func (it *TomoValidatorResignIterator) Close() error

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

func (*TomoValidatorResignIterator) Error

func (it *TomoValidatorResignIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*TomoValidatorResignIterator) Next

func (it *TomoValidatorResignIterator) 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 TomoValidatorSession

type TomoValidatorSession struct {
	Contract     *TomoValidator    // 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
}

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

func (*TomoValidatorSession) CandidateCount

func (_TomoValidator *TomoValidatorSession) CandidateCount() (*big.Int, error)

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

Solidity: function candidateCount() constant returns(uint256)

func (*TomoValidatorSession) CandidateWithdrawDelay

func (_TomoValidator *TomoValidatorSession) CandidateWithdrawDelay() (*big.Int, error)

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

Solidity: function candidateWithdrawDelay() constant returns(uint256)

func (*TomoValidatorSession) Candidates

func (_TomoValidator *TomoValidatorSession) 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 (*TomoValidatorSession) GetCandidateCap

func (_TomoValidator *TomoValidatorSession) 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 (*TomoValidatorSession) GetCandidateOwner

func (_TomoValidator *TomoValidatorSession) 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 (*TomoValidatorSession) GetCandidates

func (_TomoValidator *TomoValidatorSession) GetCandidates() ([]common.Address, error)

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

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

func (*TomoValidatorSession) GetVoterCap

func (_TomoValidator *TomoValidatorSession) 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 (*TomoValidatorSession) GetVoters

func (_TomoValidator *TomoValidatorSession) 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 (*TomoValidatorSession) GetWithdrawBlockNumbers

func (_TomoValidator *TomoValidatorSession) GetWithdrawBlockNumbers() ([]*big.Int, error)

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

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

func (*TomoValidatorSession) GetWithdrawCap

func (_TomoValidator *TomoValidatorSession) 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 (*TomoValidatorSession) IsCandidate

func (_TomoValidator *TomoValidatorSession) 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 (*TomoValidatorSession) MaxValidatorNumber

func (_TomoValidator *TomoValidatorSession) MaxValidatorNumber() (*big.Int, error)

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

Solidity: function maxValidatorNumber() constant returns(uint256)

func (*TomoValidatorSession) MinCandidateCap

func (_TomoValidator *TomoValidatorSession) MinCandidateCap() (*big.Int, error)

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

Solidity: function minCandidateCap() constant returns(uint256)

func (*TomoValidatorSession) MinVoterCap

func (_TomoValidator *TomoValidatorSession) MinVoterCap() (*big.Int, error)

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

Solidity: function minVoterCap() constant returns(uint256)

func (*TomoValidatorSession) Propose

func (_TomoValidator *TomoValidatorSession) 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 (*TomoValidatorSession) Resign

func (_TomoValidator *TomoValidatorSession) 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 (*TomoValidatorSession) Unvote

func (_TomoValidator *TomoValidatorSession) 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 (*TomoValidatorSession) Vote

func (_TomoValidator *TomoValidatorSession) 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 (*TomoValidatorSession) VoterWithdrawDelay

func (_TomoValidator *TomoValidatorSession) VoterWithdrawDelay() (*big.Int, error)

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

Solidity: function voterWithdrawDelay() constant returns(uint256)

func (*TomoValidatorSession) Withdraw

func (_TomoValidator *TomoValidatorSession) 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 TomoValidatorTransactor

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

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

func NewTomoValidatorTransactor

func NewTomoValidatorTransactor(address common.Address, transactor bind.ContractTransactor) (*TomoValidatorTransactor, error)

NewTomoValidatorTransactor creates a new write-only instance of TomoValidator, bound to a specific deployed contract.

func (*TomoValidatorTransactor) Propose

func (_TomoValidator *TomoValidatorTransactor) 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 (*TomoValidatorTransactor) Resign

func (_TomoValidator *TomoValidatorTransactor) 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 (*TomoValidatorTransactor) Unvote

func (_TomoValidator *TomoValidatorTransactor) 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 (*TomoValidatorTransactor) Vote

func (_TomoValidator *TomoValidatorTransactor) 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 (*TomoValidatorTransactor) Withdraw

func (_TomoValidator *TomoValidatorTransactor) 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 TomoValidatorTransactorRaw

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

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

func (*TomoValidatorTransactorRaw) Transact

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

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

func (*TomoValidatorTransactorRaw) Transfer

func (_TomoValidator *TomoValidatorTransactorRaw) 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 TomoValidatorTransactorSession

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

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

func (*TomoValidatorTransactorSession) Propose

func (_TomoValidator *TomoValidatorTransactorSession) 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 (*TomoValidatorTransactorSession) Resign

func (_TomoValidator *TomoValidatorTransactorSession) 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 (*TomoValidatorTransactorSession) Unvote

func (_TomoValidator *TomoValidatorTransactorSession) 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 (*TomoValidatorTransactorSession) Vote

func (_TomoValidator *TomoValidatorTransactorSession) 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 (*TomoValidatorTransactorSession) Withdraw

func (_TomoValidator *TomoValidatorTransactorSession) 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 TomoValidatorUnvote

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

TomoValidatorUnvote represents a Unvote event raised by the TomoValidator contract.

type TomoValidatorUnvoteIterator

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

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

func (*TomoValidatorUnvoteIterator) Close

func (it *TomoValidatorUnvoteIterator) Close() error

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

func (*TomoValidatorUnvoteIterator) Error

func (it *TomoValidatorUnvoteIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*TomoValidatorUnvoteIterator) Next

func (it *TomoValidatorUnvoteIterator) 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 TomoValidatorVote

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

TomoValidatorVote represents a Vote event raised by the TomoValidator contract.

type TomoValidatorVoteIterator

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

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

func (*TomoValidatorVoteIterator) Close

func (it *TomoValidatorVoteIterator) Close() error

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

func (*TomoValidatorVoteIterator) Error

func (it *TomoValidatorVoteIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*TomoValidatorVoteIterator) Next

func (it *TomoValidatorVoteIterator) 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 TomoValidatorWithdraw

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

TomoValidatorWithdraw represents a Withdraw event raised by the TomoValidator contract.

type TomoValidatorWithdrawIterator

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

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

func (*TomoValidatorWithdrawIterator) Close

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

func (*TomoValidatorWithdrawIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*TomoValidatorWithdrawIterator) 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