Documentation ¶
Index ¶
- Constants
- func DeploychancoinValidator(auth *bind.TransactOpts, backend bind.ContractBackend, ...) (common.Address, *types.Transaction, *chancoinValidator, error)
- func NewchancoinValidator(address common.Address, backend bind.ContractBackend) (*chancoinValidator, error)
- func NewchancoinValidatorCaller(address common.Address, caller bind.ContractCaller) (*chancoinValidatorCaller, error)
- func NewchancoinValidatorFilterer(address common.Address, filterer bind.ContractFilterer) (*chancoinValidatorFilterer, error)
- func NewchancoinValidatorTransactor(address common.Address, transactor bind.ContractTransactor) (*chancoinValidatorTransactor, error)
- 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 ValidatorSession
- func (_chancoinValidator *ValidatorSession) CandidateCount() (*big.Int, error)
- func (_chancoinValidator *ValidatorSession) CandidateWithdrawDelay() (*big.Int, error)
- func (_chancoinValidator *ValidatorSession) Candidates(arg0 *big.Int) (common.Address, error)
- func (_chancoinValidator *ValidatorSession) GetCandidateCap(_candidate common.Address) (*big.Int, error)
- func (_chancoinValidator *ValidatorSession) GetCandidateOwner(_candidate common.Address) (common.Address, error)
- func (_chancoinValidator *ValidatorSession) GetCandidates() ([]common.Address, error)
- func (_chancoinValidator *ValidatorSession) GetVoterCap(_candidate common.Address, _voter common.Address) (*big.Int, error)
- func (_chancoinValidator *ValidatorSession) GetVoters(_candidate common.Address) ([]common.Address, error)
- func (_chancoinValidator *ValidatorSession) GetWithdrawBlockNumbers() ([]*big.Int, error)
- func (_chancoinValidator *ValidatorSession) GetWithdrawCap(_blockNumber *big.Int) (*big.Int, error)
- func (_chancoinValidator *ValidatorSession) IsCandidate(_candidate common.Address) (bool, error)
- func (_chancoinValidator *ValidatorSession) MaxValidatorNumber() (*big.Int, error)
- func (_chancoinValidator *ValidatorSession) MinCandidateCap() (*big.Int, error)
- func (_chancoinValidator *ValidatorSession) MinVoterCap() (*big.Int, error)
- func (_chancoinValidator *ValidatorSession) Propose(_candidate common.Address) (*types.Transaction, error)
- func (_chancoinValidator *ValidatorSession) Resign(_candidate common.Address) (*types.Transaction, error)
- func (_chancoinValidator *ValidatorSession) Unvote(_candidate common.Address, _cap *big.Int) (*types.Transaction, error)
- func (_chancoinValidator *ValidatorSession) Vote(_candidate common.Address) (*types.Transaction, error)
- func (_chancoinValidator *ValidatorSession) VoterWithdrawDelay() (*big.Int, error)
- func (_chancoinValidator *ValidatorSession) Withdraw(_blockNumber *big.Int, _index *big.Int) (*types.Transaction, error)
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.
Variables ¶
This section is empty.
Functions ¶
func DeploychancoinValidator ¶
func DeploychancoinValidator(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, *chancoinValidator, error)
DeploychancoinValidator deploys a new Ethereum contract, binding an instance of chancoinValidator to it.
func NewchancoinValidator ¶
func NewchancoinValidator(address common.Address, backend bind.ContractBackend) (*chancoinValidator, error)
NewchancoinValidator creates a new instance of chancoinValidator, bound to a specific deployed contract.
func NewchancoinValidatorCaller ¶
func NewchancoinValidatorCaller(address common.Address, caller bind.ContractCaller) (*chancoinValidatorCaller, error)
NewchancoinValidatorCaller creates a new read-only instance of chancoinValidator, bound to a specific deployed contract.
func NewchancoinValidatorFilterer ¶
func NewchancoinValidatorFilterer(address common.Address, filterer bind.ContractFilterer) (*chancoinValidatorFilterer, error)
NewchancoinValidatorFilterer creates a new log filterer instance of chancoinValidator, bound to a specific deployed contract.
func NewchancoinValidatorTransactor ¶
func NewchancoinValidatorTransactor(address common.Address, transactor bind.ContractTransactor) (*chancoinValidatorTransactor, error)
NewchancoinValidatorTransactor creates a new write-only instance of chancoinValidator, bound to a specific deployed contract.
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 ValidatorSession ¶
type ValidatorSession struct { Contract *chancoinValidator // 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 }
ValidatorSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*ValidatorSession) CandidateCount ¶
func (_chancoinValidator *ValidatorSession) CandidateCount() (*big.Int, error)
CandidateCount is a free data retrieval call binding the contract method 0xa9a981a3.
Solidity: function candidateCount() constant returns(uint256)
func (*ValidatorSession) CandidateWithdrawDelay ¶
func (_chancoinValidator *ValidatorSession) CandidateWithdrawDelay() (*big.Int, error)
CandidateWithdrawDelay is a free data retrieval call binding the contract method 0xd161c767.
Solidity: function candidateWithdrawDelay() constant returns(uint256)
func (*ValidatorSession) Candidates ¶
Candidates is a free data retrieval call binding the contract method 0x3477ee2e.
Solidity: function candidates( uint256) constant returns(address)
func (*ValidatorSession) GetCandidateCap ¶
func (_chancoinValidator *ValidatorSession) 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 (*ValidatorSession) GetCandidateOwner ¶
func (_chancoinValidator *ValidatorSession) 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 (*ValidatorSession) GetCandidates ¶
func (_chancoinValidator *ValidatorSession) GetCandidates() ([]common.Address, error)
GetCandidates is a free data retrieval call binding the contract method 0x06a49fce.
Solidity: function getCandidates() constant returns(address[])
func (*ValidatorSession) GetVoterCap ¶
func (_chancoinValidator *ValidatorSession) 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 (*ValidatorSession) GetVoters ¶
func (_chancoinValidator *ValidatorSession) 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 (*ValidatorSession) GetWithdrawBlockNumbers ¶
func (_chancoinValidator *ValidatorSession) GetWithdrawBlockNumbers() ([]*big.Int, error)
GetWithdrawBlockNumbers is a free data retrieval call binding the contract method 0x2f9c4bba.
Solidity: function getWithdrawBlockNumbers() constant returns(uint256[])
func (*ValidatorSession) GetWithdrawCap ¶
GetWithdrawCap is a free data retrieval call binding the contract method 0x15febd68.
Solidity: function getWithdrawCap(_blockNumber uint256) constant returns(uint256)
func (*ValidatorSession) IsCandidate ¶
func (_chancoinValidator *ValidatorSession) 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 (*ValidatorSession) MaxValidatorNumber ¶
func (_chancoinValidator *ValidatorSession) MaxValidatorNumber() (*big.Int, error)
MaxValidatorNumber is a free data retrieval call binding the contract method 0xd09f1ab4.
Solidity: function maxValidatorNumber() constant returns(uint256)
func (*ValidatorSession) MinCandidateCap ¶
func (_chancoinValidator *ValidatorSession) MinCandidateCap() (*big.Int, error)
MinCandidateCap is a free data retrieval call binding the contract method 0xd55b7dff.
Solidity: function minCandidateCap() constant returns(uint256)
func (*ValidatorSession) MinVoterCap ¶
func (_chancoinValidator *ValidatorSession) MinVoterCap() (*big.Int, error)
MinVoterCap is a free data retrieval call binding the contract method 0xf8ac9dd5.
Solidity: function minVoterCap() constant returns(uint256)
func (*ValidatorSession) Propose ¶
func (_chancoinValidator *ValidatorSession) 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 (*ValidatorSession) Resign ¶
func (_chancoinValidator *ValidatorSession) 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 (*ValidatorSession) Unvote ¶
func (_chancoinValidator *ValidatorSession) 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 (*ValidatorSession) Vote ¶
func (_chancoinValidator *ValidatorSession) 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 (*ValidatorSession) VoterWithdrawDelay ¶
func (_chancoinValidator *ValidatorSession) VoterWithdrawDelay() (*big.Int, error)
VoterWithdrawDelay is a free data retrieval call binding the contract method 0xa9ff959e.
Solidity: function voterWithdrawDelay() constant returns(uint256)
func (*ValidatorSession) Withdraw ¶
func (_chancoinValidator *ValidatorSession) 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()