contract

package
v0.0.0-...-7037f4e Latest Latest
Warning

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

Go to latest
Published: Jul 25, 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 SdxValidatorABI = "" /* 5884-byte string literal not displayed */

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

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

SdxValidatorBin 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 SdxValidator

type SdxValidator struct {
	SdxValidatorCaller     // Read-only binding to the contract
	SdxValidatorTransactor // Write-only binding to the contract
	SdxValidatorFilterer   // Log filterer for contract events
}

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

func DeploySdxValidator

func DeploySdxValidator(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, *SdxValidator, error)

DeploySdxValidator deploys a new Ethereum contract, binding an instance of SdxValidator to it.

func NewSdxValidator

func NewSdxValidator(address common.Address, backend bind.ContractBackend) (*SdxValidator, error)

NewSdxValidator creates a new instance of SdxValidator, bound to a specific deployed contract.

type SdxValidatorCaller

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

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

func NewSdxValidatorCaller

func NewSdxValidatorCaller(address common.Address, caller bind.ContractCaller) (*SdxValidatorCaller, error)

NewSdxValidatorCaller creates a new read-only instance of SdxValidator, bound to a specific deployed contract.

func (*SdxValidatorCaller) CandidateCount

func (_SdxValidator *SdxValidatorCaller) 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 (*SdxValidatorCaller) CandidateWithdrawDelay

func (_SdxValidator *SdxValidatorCaller) 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 (*SdxValidatorCaller) Candidates

func (_SdxValidator *SdxValidatorCaller) 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 (*SdxValidatorCaller) GetCandidateCap

func (_SdxValidator *SdxValidatorCaller) 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 (*SdxValidatorCaller) GetCandidateOwner

func (_SdxValidator *SdxValidatorCaller) 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 (*SdxValidatorCaller) GetCandidates

func (_SdxValidator *SdxValidatorCaller) 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 (*SdxValidatorCaller) GetVoterCap

func (_SdxValidator *SdxValidatorCaller) 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 (*SdxValidatorCaller) GetVoters

func (_SdxValidator *SdxValidatorCaller) 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 (*SdxValidatorCaller) GetWithdrawBlockNumbers

func (_SdxValidator *SdxValidatorCaller) 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 (*SdxValidatorCaller) GetWithdrawCap

func (_SdxValidator *SdxValidatorCaller) 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 (*SdxValidatorCaller) IsCandidate

func (_SdxValidator *SdxValidatorCaller) 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 (*SdxValidatorCaller) MaxValidatorNumber

func (_SdxValidator *SdxValidatorCaller) 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 (*SdxValidatorCaller) MinCandidateCap

func (_SdxValidator *SdxValidatorCaller) 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 (*SdxValidatorCaller) MinVoterCap

func (_SdxValidator *SdxValidatorCaller) 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 (*SdxValidatorCaller) VoterWithdrawDelay

func (_SdxValidator *SdxValidatorCaller) 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 SdxValidatorCallerRaw

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

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

func (*SdxValidatorCallerRaw) Call

func (_SdxValidator *SdxValidatorCallerRaw) 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 SdxValidatorCallerSession

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

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

func (*SdxValidatorCallerSession) CandidateCount

func (_SdxValidator *SdxValidatorCallerSession) CandidateCount() (*big.Int, error)

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

Solidity: function candidateCount() constant returns(uint256)

func (*SdxValidatorCallerSession) CandidateWithdrawDelay

func (_SdxValidator *SdxValidatorCallerSession) CandidateWithdrawDelay() (*big.Int, error)

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

Solidity: function candidateWithdrawDelay() constant returns(uint256)

func (*SdxValidatorCallerSession) Candidates

func (_SdxValidator *SdxValidatorCallerSession) 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 (*SdxValidatorCallerSession) GetCandidateCap

func (_SdxValidator *SdxValidatorCallerSession) 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 (*SdxValidatorCallerSession) GetCandidateOwner

func (_SdxValidator *SdxValidatorCallerSession) 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 (*SdxValidatorCallerSession) GetCandidates

func (_SdxValidator *SdxValidatorCallerSession) GetCandidates() ([]common.Address, error)

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

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

func (*SdxValidatorCallerSession) GetVoterCap

func (_SdxValidator *SdxValidatorCallerSession) 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 (*SdxValidatorCallerSession) GetVoters

func (_SdxValidator *SdxValidatorCallerSession) 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 (*SdxValidatorCallerSession) GetWithdrawBlockNumbers

func (_SdxValidator *SdxValidatorCallerSession) GetWithdrawBlockNumbers() ([]*big.Int, error)

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

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

func (*SdxValidatorCallerSession) GetWithdrawCap

func (_SdxValidator *SdxValidatorCallerSession) 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 (*SdxValidatorCallerSession) IsCandidate

func (_SdxValidator *SdxValidatorCallerSession) 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 (*SdxValidatorCallerSession) MaxValidatorNumber

func (_SdxValidator *SdxValidatorCallerSession) MaxValidatorNumber() (*big.Int, error)

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

Solidity: function maxValidatorNumber() constant returns(uint256)

func (*SdxValidatorCallerSession) MinCandidateCap

func (_SdxValidator *SdxValidatorCallerSession) MinCandidateCap() (*big.Int, error)

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

Solidity: function minCandidateCap() constant returns(uint256)

func (*SdxValidatorCallerSession) MinVoterCap

func (_SdxValidator *SdxValidatorCallerSession) MinVoterCap() (*big.Int, error)

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

Solidity: function minVoterCap() constant returns(uint256)

func (*SdxValidatorCallerSession) VoterWithdrawDelay

func (_SdxValidator *SdxValidatorCallerSession) VoterWithdrawDelay() (*big.Int, error)

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

Solidity: function voterWithdrawDelay() constant returns(uint256)

type SdxValidatorFilterer

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

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

func NewSdxValidatorFilterer

func NewSdxValidatorFilterer(address common.Address, filterer bind.ContractFilterer) (*SdxValidatorFilterer, error)

NewSdxValidatorFilterer creates a new log filterer instance of SdxValidator, bound to a specific deployed contract.

func (*SdxValidatorFilterer) FilterPropose

func (_SdxValidator *SdxValidatorFilterer) FilterPropose(opts *bind.FilterOpts) (*SdxValidatorProposeIterator, error)

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

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

func (*SdxValidatorFilterer) FilterResign

func (_SdxValidator *SdxValidatorFilterer) FilterResign(opts *bind.FilterOpts) (*SdxValidatorResignIterator, error)

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

Solidity: event Resign(_owner address, _candidate address)

func (*SdxValidatorFilterer) FilterUnvote

func (_SdxValidator *SdxValidatorFilterer) FilterUnvote(opts *bind.FilterOpts) (*SdxValidatorUnvoteIterator, error)

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

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

func (*SdxValidatorFilterer) FilterVote

func (_SdxValidator *SdxValidatorFilterer) FilterVote(opts *bind.FilterOpts) (*SdxValidatorVoteIterator, error)

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

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

func (*SdxValidatorFilterer) FilterWithdraw

func (_SdxValidator *SdxValidatorFilterer) FilterWithdraw(opts *bind.FilterOpts) (*SdxValidatorWithdrawIterator, error)

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

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

func (*SdxValidatorFilterer) WatchPropose

func (_SdxValidator *SdxValidatorFilterer) WatchPropose(opts *bind.WatchOpts, sink chan<- *SdxValidatorPropose) (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 (*SdxValidatorFilterer) WatchResign

func (_SdxValidator *SdxValidatorFilterer) WatchResign(opts *bind.WatchOpts, sink chan<- *SdxValidatorResign) (event.Subscription, error)

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

Solidity: event Resign(_owner address, _candidate address)

func (*SdxValidatorFilterer) WatchUnvote

func (_SdxValidator *SdxValidatorFilterer) WatchUnvote(opts *bind.WatchOpts, sink chan<- *SdxValidatorUnvote) (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 (*SdxValidatorFilterer) WatchVote

func (_SdxValidator *SdxValidatorFilterer) WatchVote(opts *bind.WatchOpts, sink chan<- *SdxValidatorVote) (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 (*SdxValidatorFilterer) WatchWithdraw

func (_SdxValidator *SdxValidatorFilterer) WatchWithdraw(opts *bind.WatchOpts, sink chan<- *SdxValidatorWithdraw) (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 SdxValidatorPropose

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

SdxValidatorPropose represents a Propose event raised by the SdxValidator contract.

type SdxValidatorProposeIterator

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

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

func (*SdxValidatorProposeIterator) Close

func (it *SdxValidatorProposeIterator) Close() error

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

func (*SdxValidatorProposeIterator) Error

func (it *SdxValidatorProposeIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*SdxValidatorProposeIterator) Next

func (it *SdxValidatorProposeIterator) 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 SdxValidatorRaw

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

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

func (*SdxValidatorRaw) Call

func (_SdxValidator *SdxValidatorRaw) 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 (*SdxValidatorRaw) Transact

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

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

func (*SdxValidatorRaw) Transfer

func (_SdxValidator *SdxValidatorRaw) 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 SdxValidatorResign

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

SdxValidatorResign represents a Resign event raised by the SdxValidator contract.

type SdxValidatorResignIterator

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

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

func (*SdxValidatorResignIterator) Close

func (it *SdxValidatorResignIterator) Close() error

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

func (*SdxValidatorResignIterator) Error

func (it *SdxValidatorResignIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*SdxValidatorResignIterator) Next

func (it *SdxValidatorResignIterator) 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 SdxValidatorSession

type SdxValidatorSession struct {
	Contract     *SdxValidator     // 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
}

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

func (*SdxValidatorSession) CandidateCount

func (_SdxValidator *SdxValidatorSession) CandidateCount() (*big.Int, error)

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

Solidity: function candidateCount() constant returns(uint256)

func (*SdxValidatorSession) CandidateWithdrawDelay

func (_SdxValidator *SdxValidatorSession) CandidateWithdrawDelay() (*big.Int, error)

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

Solidity: function candidateWithdrawDelay() constant returns(uint256)

func (*SdxValidatorSession) Candidates

func (_SdxValidator *SdxValidatorSession) 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 (*SdxValidatorSession) GetCandidateCap

func (_SdxValidator *SdxValidatorSession) 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 (*SdxValidatorSession) GetCandidateOwner

func (_SdxValidator *SdxValidatorSession) 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 (*SdxValidatorSession) GetCandidates

func (_SdxValidator *SdxValidatorSession) GetCandidates() ([]common.Address, error)

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

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

func (*SdxValidatorSession) GetVoterCap

func (_SdxValidator *SdxValidatorSession) 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 (*SdxValidatorSession) GetVoters

func (_SdxValidator *SdxValidatorSession) 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 (*SdxValidatorSession) GetWithdrawBlockNumbers

func (_SdxValidator *SdxValidatorSession) GetWithdrawBlockNumbers() ([]*big.Int, error)

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

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

func (*SdxValidatorSession) GetWithdrawCap

func (_SdxValidator *SdxValidatorSession) 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 (*SdxValidatorSession) IsCandidate

func (_SdxValidator *SdxValidatorSession) 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 (*SdxValidatorSession) MaxValidatorNumber

func (_SdxValidator *SdxValidatorSession) MaxValidatorNumber() (*big.Int, error)

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

Solidity: function maxValidatorNumber() constant returns(uint256)

func (*SdxValidatorSession) MinCandidateCap

func (_SdxValidator *SdxValidatorSession) MinCandidateCap() (*big.Int, error)

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

Solidity: function minCandidateCap() constant returns(uint256)

func (*SdxValidatorSession) MinVoterCap

func (_SdxValidator *SdxValidatorSession) MinVoterCap() (*big.Int, error)

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

Solidity: function minVoterCap() constant returns(uint256)

func (*SdxValidatorSession) Propose

func (_SdxValidator *SdxValidatorSession) 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 (*SdxValidatorSession) Resign

func (_SdxValidator *SdxValidatorSession) 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 (*SdxValidatorSession) Unvote

func (_SdxValidator *SdxValidatorSession) 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 (*SdxValidatorSession) Vote

func (_SdxValidator *SdxValidatorSession) 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 (*SdxValidatorSession) VoterWithdrawDelay

func (_SdxValidator *SdxValidatorSession) VoterWithdrawDelay() (*big.Int, error)

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

Solidity: function voterWithdrawDelay() constant returns(uint256)

func (*SdxValidatorSession) Withdraw

func (_SdxValidator *SdxValidatorSession) 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 SdxValidatorTransactor

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

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

func NewSdxValidatorTransactor

func NewSdxValidatorTransactor(address common.Address, transactor bind.ContractTransactor) (*SdxValidatorTransactor, error)

NewSdxValidatorTransactor creates a new write-only instance of SdxValidator, bound to a specific deployed contract.

func (*SdxValidatorTransactor) Propose

func (_SdxValidator *SdxValidatorTransactor) 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 (*SdxValidatorTransactor) Resign

func (_SdxValidator *SdxValidatorTransactor) 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 (*SdxValidatorTransactor) Unvote

func (_SdxValidator *SdxValidatorTransactor) 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 (*SdxValidatorTransactor) Vote

func (_SdxValidator *SdxValidatorTransactor) 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 (*SdxValidatorTransactor) Withdraw

func (_SdxValidator *SdxValidatorTransactor) 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 SdxValidatorTransactorRaw

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

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

func (*SdxValidatorTransactorRaw) Transact

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

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

func (*SdxValidatorTransactorRaw) Transfer

func (_SdxValidator *SdxValidatorTransactorRaw) 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 SdxValidatorTransactorSession

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

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

func (*SdxValidatorTransactorSession) Propose

func (_SdxValidator *SdxValidatorTransactorSession) 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 (*SdxValidatorTransactorSession) Resign

func (_SdxValidator *SdxValidatorTransactorSession) 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 (*SdxValidatorTransactorSession) Unvote

func (_SdxValidator *SdxValidatorTransactorSession) 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 (*SdxValidatorTransactorSession) Vote

func (_SdxValidator *SdxValidatorTransactorSession) 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 (*SdxValidatorTransactorSession) Withdraw

func (_SdxValidator *SdxValidatorTransactorSession) 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 SdxValidatorUnvote

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

SdxValidatorUnvote represents a Unvote event raised by the SdxValidator contract.

type SdxValidatorUnvoteIterator

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

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

func (*SdxValidatorUnvoteIterator) Close

func (it *SdxValidatorUnvoteIterator) Close() error

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

func (*SdxValidatorUnvoteIterator) Error

func (it *SdxValidatorUnvoteIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*SdxValidatorUnvoteIterator) Next

func (it *SdxValidatorUnvoteIterator) 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 SdxValidatorVote

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

SdxValidatorVote represents a Vote event raised by the SdxValidator contract.

type SdxValidatorVoteIterator

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

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

func (*SdxValidatorVoteIterator) Close

func (it *SdxValidatorVoteIterator) Close() error

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

func (*SdxValidatorVoteIterator) Error

func (it *SdxValidatorVoteIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*SdxValidatorVoteIterator) Next

func (it *SdxValidatorVoteIterator) 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 SdxValidatorWithdraw

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

SdxValidatorWithdraw represents a Withdraw event raised by the SdxValidator contract.

type SdxValidatorWithdrawIterator

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

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

func (*SdxValidatorWithdrawIterator) Close

func (it *SdxValidatorWithdrawIterator) Close() error

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

func (*SdxValidatorWithdrawIterator) Error

func (it *SdxValidatorWithdrawIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

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