staking_contracts

package
v0.0.0-...-91d38f8 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2020 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const StakingContractsABI = "" /* 10460-byte string literal not displayed */

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

View Source
const StakingContractsBin = `` /* 23496-byte string literal not displayed */

StakingContractsBin is the compiled bytecode used for deploying new contracts.

Variables

This section is empty.

Functions

This section is empty.

Types

type StakingContracts

type StakingContracts struct {
	StakingContractsCaller     // Read-only binding to the contract
	StakingContractsTransactor // Write-only binding to the contract
	StakingContractsFilterer   // Log filterer for contract events
}

StakingContracts is an auto generated Go binding around an Evrynet contract.

func DeployStakingContracts

func DeployStakingContracts(auth *bind.TransactOpts, backend bind.ContractBackend, _candidates []common.Address, _candidateOwners []common.Address, _epochPeriod *big.Int, _startBlock *big.Int, _maxValidatorSize *big.Int, _minValidatorStake *big.Int, _minVoteCap *big.Int, _admin common.Address) (common.Address, *types.Transaction, *StakingContracts, error)

DeployStakingContracts deploys a new Evrynet contract, binding an instance of StakingContracts to it.

func NewStakingContracts

func NewStakingContracts(address common.Address, backend bind.ContractBackend) (*StakingContracts, error)

NewStakingContracts creates a new instance of StakingContracts, bound to a specific deployed contract.

type StakingContractsCaller

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

StakingContractsCaller is an auto generated read-only Go binding around an Evrynet contract.

func NewStakingContractsCaller

func NewStakingContractsCaller(address common.Address, caller bind.ContractCaller) (*StakingContractsCaller, error)

NewStakingContractsCaller creates a new read-only instance of StakingContracts, bound to a specific deployed contract.

func (*StakingContractsCaller) Admin

func (_StakingContracts *StakingContractsCaller) Admin(opts *bind.CallOpts) (common.Address, error)

Admin is a free data retrieval call binding the contract method 0xf851a440.

Solidity: function admin() constant returns(address)

func (*StakingContractsCaller) Candidates

func (_StakingContracts *StakingContractsCaller) 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 (*StakingContractsCaller) EpochPeriod

func (_StakingContracts *StakingContractsCaller) EpochPeriod(opts *bind.CallOpts) (*big.Int, error)

EpochPeriod is a free data retrieval call binding the contract method 0xb5b7a184.

Solidity: function epochPeriod() constant returns(uint256)

func (*StakingContractsCaller) GetCandidateData

func (_StakingContracts *StakingContractsCaller) GetCandidateData(opts *bind.CallOpts, _candidate common.Address) (struct {
	IsActiveCandidate bool
	Owner             common.Address
	TotalStake        *big.Int
}, error)

GetCandidateData is a free data retrieval call binding the contract method 0x2a466ac7.

Solidity: function getCandidateData(address _candidate) constant returns(bool _isActiveCandidate, address _owner, uint256 _totalStake)

func (*StakingContractsCaller) GetCandidateOwner

func (_StakingContracts *StakingContractsCaller) 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(address _candidate) constant returns(address)

func (*StakingContractsCaller) GetCandidateStake

func (_StakingContracts *StakingContractsCaller) GetCandidateStake(opts *bind.CallOpts, _candidate common.Address) (*big.Int, error)

GetCandidateStake is a free data retrieval call binding the contract method 0x484da961.

Solidity: function getCandidateStake(address _candidate) constant returns(uint256)

func (*StakingContractsCaller) GetCurrentEpoch

func (_StakingContracts *StakingContractsCaller) GetCurrentEpoch(opts *bind.CallOpts) (*big.Int, error)

GetCurrentEpoch is a free data retrieval call binding the contract method 0xb97dd9e2.

Solidity: function getCurrentEpoch() constant returns(uint256)

func (*StakingContractsCaller) GetListCandidates

func (_StakingContracts *StakingContractsCaller) GetListCandidates(opts *bind.CallOpts) (struct {
	Candidates      []common.Address
	Stakes          []*big.Int
	Epoch           *big.Int
	ValidatorSize   *big.Int
	MinValidatorCap *big.Int
}, error)

GetListCandidates is a free data retrieval call binding the contract method 0x690ff8a1.

Solidity: function getListCandidates() constant returns(address[] _candidates, uint256[] stakes, uint256 epoch, uint256 validatorSize, uint256 minValidatorCap)

func (*StakingContractsCaller) GetVoterStake

func (_StakingContracts *StakingContractsCaller) GetVoterStake(opts *bind.CallOpts, _candidate common.Address, _voter common.Address) (*big.Int, error)

GetVoterStake is a free data retrieval call binding the contract method 0x158a65f6.

Solidity: function getVoterStake(address _candidate, address _voter) constant returns(uint256 stake)

func (*StakingContractsCaller) GetVoterStakes

func (_StakingContracts *StakingContractsCaller) GetVoterStakes(opts *bind.CallOpts, _candidate common.Address, voters []common.Address) ([]*big.Int, error)

GetVoterStakes is a free data retrieval call binding the contract method 0xe2db89b5.

Solidity: function getVoterStakes(address _candidate, address[] voters) constant returns(uint256[] stakes)

func (*StakingContractsCaller) GetVoters

func (_StakingContracts *StakingContractsCaller) 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(address _candidate) constant returns(address[] voters)

func (*StakingContractsCaller) GetWithdrawCap

func (_StakingContracts *StakingContractsCaller) GetWithdrawCap(opts *bind.CallOpts, epoch *big.Int) (*big.Int, error)

GetWithdrawCap is a free data retrieval call binding the contract method 0x15febd68.

Solidity: function getWithdrawCap(uint256 epoch) constant returns(uint256 cap)

func (*StakingContractsCaller) GetWithdrawEpochs

func (_StakingContracts *StakingContractsCaller) GetWithdrawEpochs(opts *bind.CallOpts) ([]*big.Int, error)

GetWithdrawEpochs is a free data retrieval call binding the contract method 0x0e0516aa.

Solidity: function getWithdrawEpochs() constant returns(uint256[] epochs)

func (*StakingContractsCaller) GetWithdrawEpochsAndCaps

func (_StakingContracts *StakingContractsCaller) GetWithdrawEpochsAndCaps(opts *bind.CallOpts) (struct {
	Epochs []*big.Int
	Caps   []*big.Int
}, error)

GetWithdrawEpochsAndCaps is a free data retrieval call binding the contract method 0xd5816bfa.

Solidity: function getWithdrawEpochsAndCaps() constant returns(uint256[] epochs, uint256[] caps)

func (*StakingContractsCaller) IsCandidate

func (_StakingContracts *StakingContractsCaller) IsCandidate(opts *bind.CallOpts, _candidate common.Address) (bool, error)

IsCandidate is a free data retrieval call binding the contract method 0xd51b9e93.

Solidity: function isCandidate(address _candidate) constant returns(bool)

func (*StakingContractsCaller) MaxValidatorSize

func (_StakingContracts *StakingContractsCaller) MaxValidatorSize(opts *bind.CallOpts) (*big.Int, error)

MaxValidatorSize is a free data retrieval call binding the contract method 0x2de7dd5f.

Solidity: function maxValidatorSize() constant returns(uint256)

func (*StakingContractsCaller) MinValidatorStake

func (_StakingContracts *StakingContractsCaller) MinValidatorStake(opts *bind.CallOpts) (*big.Int, error)

MinValidatorStake is a free data retrieval call binding the contract method 0x017ddd35.

Solidity: function minValidatorStake() constant returns(uint256)

func (*StakingContractsCaller) MinVoterCap

func (_StakingContracts *StakingContractsCaller) 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 (*StakingContractsCaller) StartBlock

func (_StakingContracts *StakingContractsCaller) StartBlock(opts *bind.CallOpts) (*big.Int, error)

StartBlock is a free data retrieval call binding the contract method 0x48cd4cb1.

Solidity: function startBlock() constant returns(uint256)

type StakingContractsCallerRaw

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

StakingContractsCallerRaw is an auto generated low-level read-only Go binding around an Evrynet contract.

func (*StakingContractsCallerRaw) Call

func (_StakingContracts *StakingContractsCallerRaw) 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 StakingContractsCallerSession

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

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

func (*StakingContractsCallerSession) Admin

func (_StakingContracts *StakingContractsCallerSession) Admin() (common.Address, error)

Admin is a free data retrieval call binding the contract method 0xf851a440.

Solidity: function admin() constant returns(address)

func (*StakingContractsCallerSession) Candidates

func (_StakingContracts *StakingContractsCallerSession) 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 (*StakingContractsCallerSession) EpochPeriod

func (_StakingContracts *StakingContractsCallerSession) EpochPeriod() (*big.Int, error)

EpochPeriod is a free data retrieval call binding the contract method 0xb5b7a184.

Solidity: function epochPeriod() constant returns(uint256)

func (*StakingContractsCallerSession) GetCandidateData

func (_StakingContracts *StakingContractsCallerSession) GetCandidateData(_candidate common.Address) (struct {
	IsActiveCandidate bool
	Owner             common.Address
	TotalStake        *big.Int
}, error)

GetCandidateData is a free data retrieval call binding the contract method 0x2a466ac7.

Solidity: function getCandidateData(address _candidate) constant returns(bool _isActiveCandidate, address _owner, uint256 _totalStake)

func (*StakingContractsCallerSession) GetCandidateOwner

func (_StakingContracts *StakingContractsCallerSession) GetCandidateOwner(_candidate common.Address) (common.Address, error)

GetCandidateOwner is a free data retrieval call binding the contract method 0xb642facd.

Solidity: function getCandidateOwner(address _candidate) constant returns(address)

func (*StakingContractsCallerSession) GetCandidateStake

func (_StakingContracts *StakingContractsCallerSession) GetCandidateStake(_candidate common.Address) (*big.Int, error)

GetCandidateStake is a free data retrieval call binding the contract method 0x484da961.

Solidity: function getCandidateStake(address _candidate) constant returns(uint256)

func (*StakingContractsCallerSession) GetCurrentEpoch

func (_StakingContracts *StakingContractsCallerSession) GetCurrentEpoch() (*big.Int, error)

GetCurrentEpoch is a free data retrieval call binding the contract method 0xb97dd9e2.

Solidity: function getCurrentEpoch() constant returns(uint256)

func (*StakingContractsCallerSession) GetListCandidates

func (_StakingContracts *StakingContractsCallerSession) GetListCandidates() (struct {
	Candidates      []common.Address
	Stakes          []*big.Int
	Epoch           *big.Int
	ValidatorSize   *big.Int
	MinValidatorCap *big.Int
}, error)

GetListCandidates is a free data retrieval call binding the contract method 0x690ff8a1.

Solidity: function getListCandidates() constant returns(address[] _candidates, uint256[] stakes, uint256 epoch, uint256 validatorSize, uint256 minValidatorCap)

func (*StakingContractsCallerSession) GetVoterStake

func (_StakingContracts *StakingContractsCallerSession) GetVoterStake(_candidate common.Address, _voter common.Address) (*big.Int, error)

GetVoterStake is a free data retrieval call binding the contract method 0x158a65f6.

Solidity: function getVoterStake(address _candidate, address _voter) constant returns(uint256 stake)

func (*StakingContractsCallerSession) GetVoterStakes

func (_StakingContracts *StakingContractsCallerSession) GetVoterStakes(_candidate common.Address, voters []common.Address) ([]*big.Int, error)

GetVoterStakes is a free data retrieval call binding the contract method 0xe2db89b5.

Solidity: function getVoterStakes(address _candidate, address[] voters) constant returns(uint256[] stakes)

func (*StakingContractsCallerSession) GetVoters

func (_StakingContracts *StakingContractsCallerSession) GetVoters(_candidate common.Address) ([]common.Address, error)

GetVoters is a free data retrieval call binding the contract method 0x2d15cc04.

Solidity: function getVoters(address _candidate) constant returns(address[] voters)

func (*StakingContractsCallerSession) GetWithdrawCap

func (_StakingContracts *StakingContractsCallerSession) GetWithdrawCap(epoch *big.Int) (*big.Int, error)

GetWithdrawCap is a free data retrieval call binding the contract method 0x15febd68.

Solidity: function getWithdrawCap(uint256 epoch) constant returns(uint256 cap)

func (*StakingContractsCallerSession) GetWithdrawEpochs

func (_StakingContracts *StakingContractsCallerSession) GetWithdrawEpochs() ([]*big.Int, error)

GetWithdrawEpochs is a free data retrieval call binding the contract method 0x0e0516aa.

Solidity: function getWithdrawEpochs() constant returns(uint256[] epochs)

func (*StakingContractsCallerSession) GetWithdrawEpochsAndCaps

func (_StakingContracts *StakingContractsCallerSession) GetWithdrawEpochsAndCaps() (struct {
	Epochs []*big.Int
	Caps   []*big.Int
}, error)

GetWithdrawEpochsAndCaps is a free data retrieval call binding the contract method 0xd5816bfa.

Solidity: function getWithdrawEpochsAndCaps() constant returns(uint256[] epochs, uint256[] caps)

func (*StakingContractsCallerSession) IsCandidate

func (_StakingContracts *StakingContractsCallerSession) IsCandidate(_candidate common.Address) (bool, error)

IsCandidate is a free data retrieval call binding the contract method 0xd51b9e93.

Solidity: function isCandidate(address _candidate) constant returns(bool)

func (*StakingContractsCallerSession) MaxValidatorSize

func (_StakingContracts *StakingContractsCallerSession) MaxValidatorSize() (*big.Int, error)

MaxValidatorSize is a free data retrieval call binding the contract method 0x2de7dd5f.

Solidity: function maxValidatorSize() constant returns(uint256)

func (*StakingContractsCallerSession) MinValidatorStake

func (_StakingContracts *StakingContractsCallerSession) MinValidatorStake() (*big.Int, error)

MinValidatorStake is a free data retrieval call binding the contract method 0x017ddd35.

Solidity: function minValidatorStake() constant returns(uint256)

func (*StakingContractsCallerSession) MinVoterCap

func (_StakingContracts *StakingContractsCallerSession) MinVoterCap() (*big.Int, error)

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

Solidity: function minVoterCap() constant returns(uint256)

func (*StakingContractsCallerSession) StartBlock

func (_StakingContracts *StakingContractsCallerSession) StartBlock() (*big.Int, error)

StartBlock is a free data retrieval call binding the contract method 0x48cd4cb1.

Solidity: function startBlock() constant returns(uint256)

type StakingContractsFilterer

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

StakingContractsFilterer is an auto generated log filtering Go binding around an Evrynet contract events.

func NewStakingContractsFilterer

func NewStakingContractsFilterer(address common.Address, filterer bind.ContractFilterer) (*StakingContractsFilterer, error)

NewStakingContractsFilterer creates a new log filterer instance of StakingContracts, bound to a specific deployed contract.

func (*StakingContractsFilterer) FilterRegistered

func (_StakingContracts *StakingContractsFilterer) FilterRegistered(opts *bind.FilterOpts) (*StakingContractsRegisteredIterator, error)

FilterRegistered is a free log retrieval operation binding the contract event 0x0a31ee9d46a828884b81003c8498156ea6aa15b9b54bdd0ef0b533d9eba57e55.

Solidity: event Registered(address candidate, address owner)

func (*StakingContractsFilterer) FilterResigned

func (_StakingContracts *StakingContractsFilterer) FilterResigned(opts *bind.FilterOpts) (*StakingContractsResignedIterator, error)

FilterResigned is a free log retrieval operation binding the contract event 0x886e0db046874dde595498040d176412e81183750ceb33fc46f0450362bbc241.

Solidity: event Resigned(address _candidate, uint256 _epoch)

func (*StakingContractsFilterer) FilterUnvoted

func (_StakingContracts *StakingContractsFilterer) FilterUnvoted(opts *bind.FilterOpts) (*StakingContractsUnvotedIterator, error)

FilterUnvoted is a free log retrieval operation binding the contract event 0x7958395da8e26969cc7c09ee58e9507a2601574c3bd232617e2d6354224ff836.

Solidity: event Unvoted(address voter, address candidate, uint256 amount)

func (*StakingContractsFilterer) FilterVoted

func (_StakingContracts *StakingContractsFilterer) FilterVoted(opts *bind.FilterOpts) (*StakingContractsVotedIterator, error)

FilterVoted is a free log retrieval operation binding the contract event 0x174ba19ba3c8bb5c679c87e51db79fff7c3f04bb84c1fd55b7dacb470b674aa6.

Solidity: event Voted(address voter, address candidate, uint256 amount)

func (*StakingContractsFilterer) FilterWithdraw

func (_StakingContracts *StakingContractsFilterer) FilterWithdraw(opts *bind.FilterOpts) (*StakingContractsWithdrawIterator, error)

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

Solidity: event Withdraw(address _staker, uint256 _amount, address _destAddress)

func (*StakingContractsFilterer) WatchRegistered

func (_StakingContracts *StakingContractsFilterer) WatchRegistered(opts *bind.WatchOpts, sink chan<- *StakingContractsRegistered) (event.Subscription, error)

WatchRegistered is a free log subscription operation binding the contract event 0x0a31ee9d46a828884b81003c8498156ea6aa15b9b54bdd0ef0b533d9eba57e55.

Solidity: event Registered(address candidate, address owner)

func (*StakingContractsFilterer) WatchResigned

func (_StakingContracts *StakingContractsFilterer) WatchResigned(opts *bind.WatchOpts, sink chan<- *StakingContractsResigned) (event.Subscription, error)

WatchResigned is a free log subscription operation binding the contract event 0x886e0db046874dde595498040d176412e81183750ceb33fc46f0450362bbc241.

Solidity: event Resigned(address _candidate, uint256 _epoch)

func (*StakingContractsFilterer) WatchUnvoted

func (_StakingContracts *StakingContractsFilterer) WatchUnvoted(opts *bind.WatchOpts, sink chan<- *StakingContractsUnvoted) (event.Subscription, error)

WatchUnvoted is a free log subscription operation binding the contract event 0x7958395da8e26969cc7c09ee58e9507a2601574c3bd232617e2d6354224ff836.

Solidity: event Unvoted(address voter, address candidate, uint256 amount)

func (*StakingContractsFilterer) WatchVoted

func (_StakingContracts *StakingContractsFilterer) WatchVoted(opts *bind.WatchOpts, sink chan<- *StakingContractsVoted) (event.Subscription, error)

WatchVoted is a free log subscription operation binding the contract event 0x174ba19ba3c8bb5c679c87e51db79fff7c3f04bb84c1fd55b7dacb470b674aa6.

Solidity: event Voted(address voter, address candidate, uint256 amount)

func (*StakingContractsFilterer) WatchWithdraw

func (_StakingContracts *StakingContractsFilterer) WatchWithdraw(opts *bind.WatchOpts, sink chan<- *StakingContractsWithdraw) (event.Subscription, error)

WatchWithdraw is a free log subscription operation binding the contract event 0x56c54ba9bd38d8fd62012e42c7ee564519b09763c426d331b3661b537ead19b2.

Solidity: event Withdraw(address _staker, uint256 _amount, address _destAddress)

type StakingContractsRaw

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

StakingContractsRaw is an auto generated low-level Go binding around an Evrynet contract.

func (*StakingContractsRaw) Call

func (_StakingContracts *StakingContractsRaw) 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 (*StakingContractsRaw) Transact

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

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

func (*StakingContractsRaw) Transfer

func (_StakingContracts *StakingContractsRaw) 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 StakingContractsRegistered

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

StakingContractsRegistered represents a Registered event raised by the StakingContracts contract.

type StakingContractsRegisteredIterator

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

StakingContractsRegisteredIterator is returned from FilterRegistered and is used to iterate over the raw logs and unpacked data for Registered events raised by the StakingContracts contract.

func (*StakingContractsRegisteredIterator) Close

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

func (*StakingContractsRegisteredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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

type StakingContractsResigned struct {
	Candidate common.Address
	Epoch     *big.Int
	Raw       types.Log // Blockchain specific contextual infos
}

StakingContractsResigned represents a Resigned event raised by the StakingContracts contract.

type StakingContractsResignedIterator

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

StakingContractsResignedIterator is returned from FilterResigned and is used to iterate over the raw logs and unpacked data for Resigned events raised by the StakingContracts contract.

func (*StakingContractsResignedIterator) Close

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

func (*StakingContractsResignedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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

type StakingContractsSession struct {
	Contract     *StakingContracts // 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
}

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

func (*StakingContractsSession) Admin

func (_StakingContracts *StakingContractsSession) Admin() (common.Address, error)

Admin is a free data retrieval call binding the contract method 0xf851a440.

Solidity: function admin() constant returns(address)

func (*StakingContractsSession) Candidates

func (_StakingContracts *StakingContractsSession) 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 (*StakingContractsSession) EpochPeriod

func (_StakingContracts *StakingContractsSession) EpochPeriod() (*big.Int, error)

EpochPeriod is a free data retrieval call binding the contract method 0xb5b7a184.

Solidity: function epochPeriod() constant returns(uint256)

func (*StakingContractsSession) GetCandidateData

func (_StakingContracts *StakingContractsSession) GetCandidateData(_candidate common.Address) (struct {
	IsActiveCandidate bool
	Owner             common.Address
	TotalStake        *big.Int
}, error)

GetCandidateData is a free data retrieval call binding the contract method 0x2a466ac7.

Solidity: function getCandidateData(address _candidate) constant returns(bool _isActiveCandidate, address _owner, uint256 _totalStake)

func (*StakingContractsSession) GetCandidateOwner

func (_StakingContracts *StakingContractsSession) GetCandidateOwner(_candidate common.Address) (common.Address, error)

GetCandidateOwner is a free data retrieval call binding the contract method 0xb642facd.

Solidity: function getCandidateOwner(address _candidate) constant returns(address)

func (*StakingContractsSession) GetCandidateStake

func (_StakingContracts *StakingContractsSession) GetCandidateStake(_candidate common.Address) (*big.Int, error)

GetCandidateStake is a free data retrieval call binding the contract method 0x484da961.

Solidity: function getCandidateStake(address _candidate) constant returns(uint256)

func (*StakingContractsSession) GetCurrentEpoch

func (_StakingContracts *StakingContractsSession) GetCurrentEpoch() (*big.Int, error)

GetCurrentEpoch is a free data retrieval call binding the contract method 0xb97dd9e2.

Solidity: function getCurrentEpoch() constant returns(uint256)

func (*StakingContractsSession) GetListCandidates

func (_StakingContracts *StakingContractsSession) GetListCandidates() (struct {
	Candidates      []common.Address
	Stakes          []*big.Int
	Epoch           *big.Int
	ValidatorSize   *big.Int
	MinValidatorCap *big.Int
}, error)

GetListCandidates is a free data retrieval call binding the contract method 0x690ff8a1.

Solidity: function getListCandidates() constant returns(address[] _candidates, uint256[] stakes, uint256 epoch, uint256 validatorSize, uint256 minValidatorCap)

func (*StakingContractsSession) GetVoterStake

func (_StakingContracts *StakingContractsSession) GetVoterStake(_candidate common.Address, _voter common.Address) (*big.Int, error)

GetVoterStake is a free data retrieval call binding the contract method 0x158a65f6.

Solidity: function getVoterStake(address _candidate, address _voter) constant returns(uint256 stake)

func (*StakingContractsSession) GetVoterStakes

func (_StakingContracts *StakingContractsSession) GetVoterStakes(_candidate common.Address, voters []common.Address) ([]*big.Int, error)

GetVoterStakes is a free data retrieval call binding the contract method 0xe2db89b5.

Solidity: function getVoterStakes(address _candidate, address[] voters) constant returns(uint256[] stakes)

func (*StakingContractsSession) GetVoters

func (_StakingContracts *StakingContractsSession) GetVoters(_candidate common.Address) ([]common.Address, error)

GetVoters is a free data retrieval call binding the contract method 0x2d15cc04.

Solidity: function getVoters(address _candidate) constant returns(address[] voters)

func (*StakingContractsSession) GetWithdrawCap

func (_StakingContracts *StakingContractsSession) GetWithdrawCap(epoch *big.Int) (*big.Int, error)

GetWithdrawCap is a free data retrieval call binding the contract method 0x15febd68.

Solidity: function getWithdrawCap(uint256 epoch) constant returns(uint256 cap)

func (*StakingContractsSession) GetWithdrawEpochs

func (_StakingContracts *StakingContractsSession) GetWithdrawEpochs() ([]*big.Int, error)

GetWithdrawEpochs is a free data retrieval call binding the contract method 0x0e0516aa.

Solidity: function getWithdrawEpochs() constant returns(uint256[] epochs)

func (*StakingContractsSession) GetWithdrawEpochsAndCaps

func (_StakingContracts *StakingContractsSession) GetWithdrawEpochsAndCaps() (struct {
	Epochs []*big.Int
	Caps   []*big.Int
}, error)

GetWithdrawEpochsAndCaps is a free data retrieval call binding the contract method 0xd5816bfa.

Solidity: function getWithdrawEpochsAndCaps() constant returns(uint256[] epochs, uint256[] caps)

func (*StakingContractsSession) IsCandidate

func (_StakingContracts *StakingContractsSession) IsCandidate(_candidate common.Address) (bool, error)

IsCandidate is a free data retrieval call binding the contract method 0xd51b9e93.

Solidity: function isCandidate(address _candidate) constant returns(bool)

func (*StakingContractsSession) MaxValidatorSize

func (_StakingContracts *StakingContractsSession) MaxValidatorSize() (*big.Int, error)

MaxValidatorSize is a free data retrieval call binding the contract method 0x2de7dd5f.

Solidity: function maxValidatorSize() constant returns(uint256)

func (*StakingContractsSession) MinValidatorStake

func (_StakingContracts *StakingContractsSession) MinValidatorStake() (*big.Int, error)

MinValidatorStake is a free data retrieval call binding the contract method 0x017ddd35.

Solidity: function minValidatorStake() constant returns(uint256)

func (*StakingContractsSession) MinVoterCap

func (_StakingContracts *StakingContractsSession) MinVoterCap() (*big.Int, error)

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

Solidity: function minVoterCap() constant returns(uint256)

func (*StakingContractsSession) Register

func (_StakingContracts *StakingContractsSession) Register(_candidate common.Address, _owner common.Address) (*types.Transaction, error)

Register is a paid mutator transaction binding the contract method 0xaa677354.

Solidity: function register(address _candidate, address _owner) returns()

func (*StakingContractsSession) Resign

func (_StakingContracts *StakingContractsSession) Resign(_candidate common.Address) (*types.Transaction, error)

Resign is a paid mutator transaction binding the contract method 0xae6e43f5.

Solidity: function resign(address _candidate) returns()

func (*StakingContractsSession) StartBlock

func (_StakingContracts *StakingContractsSession) StartBlock() (*big.Int, error)

StartBlock is a free data retrieval call binding the contract method 0x48cd4cb1.

Solidity: function startBlock() constant returns(uint256)

func (*StakingContractsSession) TransferAdmin

func (_StakingContracts *StakingContractsSession) TransferAdmin(newAdmin common.Address) (*types.Transaction, error)

TransferAdmin is a paid mutator transaction binding the contract method 0x75829def.

Solidity: function transferAdmin(address newAdmin) returns()

func (*StakingContractsSession) Unvote

func (_StakingContracts *StakingContractsSession) Unvote(candidate common.Address, amount *big.Int) (*types.Transaction, error)

Unvote is a paid mutator transaction binding the contract method 0x02aa9be2.

Solidity: function unvote(address candidate, uint256 amount) returns()

func (*StakingContractsSession) UpdateMaxValidatorSize

func (_StakingContracts *StakingContractsSession) UpdateMaxValidatorSize(newMaxValidatorSize *big.Int) (*types.Transaction, error)

UpdateMaxValidatorSize is a paid mutator transaction binding the contract method 0x0619624f.

Solidity: function updateMaxValidatorSize(uint256 newMaxValidatorSize) returns()

func (*StakingContractsSession) UpdateMinValidateStake

func (_StakingContracts *StakingContractsSession) UpdateMinValidateStake(_newCap *big.Int) (*types.Transaction, error)

UpdateMinValidateStake is a paid mutator transaction binding the contract method 0xb2c76f10.

Solidity: function updateMinValidateStake(uint256 _newCap) returns()

func (*StakingContractsSession) UpdateMinVoteCap

func (_StakingContracts *StakingContractsSession) UpdateMinVoteCap(_newCap *big.Int) (*types.Transaction, error)

UpdateMinVoteCap is a paid mutator transaction binding the contract method 0x3a1d8c5a.

Solidity: function updateMinVoteCap(uint256 _newCap) returns()

func (*StakingContractsSession) Vote

func (_StakingContracts *StakingContractsSession) Vote(candidate common.Address) (*types.Transaction, error)

Vote is a paid mutator transaction binding the contract method 0x6dd7d8ea.

Solidity: function vote(address candidate) returns()

func (*StakingContractsSession) Withdraw

func (_StakingContracts *StakingContractsSession) Withdraw(epoch *big.Int, destAddress common.Address) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0x00f714ce.

Solidity: function withdraw(uint256 epoch, address destAddress) returns(bool)

func (*StakingContractsSession) WithdrawWithIndex

func (_StakingContracts *StakingContractsSession) WithdrawWithIndex(epoch *big.Int, index *big.Int, destAddress common.Address) (*types.Transaction, error)

WithdrawWithIndex is a paid mutator transaction binding the contract method 0xc2df409b.

Solidity: function withdrawWithIndex(uint256 epoch, uint256 index, address destAddress) returns(bool)

type StakingContractsTransactor

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

StakingContractsTransactor is an auto generated write-only Go binding around an Evrynet contract.

func NewStakingContractsTransactor

func NewStakingContractsTransactor(address common.Address, transactor bind.ContractTransactor) (*StakingContractsTransactor, error)

NewStakingContractsTransactor creates a new write-only instance of StakingContracts, bound to a specific deployed contract.

func (*StakingContractsTransactor) Register

func (_StakingContracts *StakingContractsTransactor) Register(opts *bind.TransactOpts, _candidate common.Address, _owner common.Address) (*types.Transaction, error)

Register is a paid mutator transaction binding the contract method 0xaa677354.

Solidity: function register(address _candidate, address _owner) returns()

func (*StakingContractsTransactor) Resign

func (_StakingContracts *StakingContractsTransactor) Resign(opts *bind.TransactOpts, _candidate common.Address) (*types.Transaction, error)

Resign is a paid mutator transaction binding the contract method 0xae6e43f5.

Solidity: function resign(address _candidate) returns()

func (*StakingContractsTransactor) TransferAdmin

func (_StakingContracts *StakingContractsTransactor) TransferAdmin(opts *bind.TransactOpts, newAdmin common.Address) (*types.Transaction, error)

TransferAdmin is a paid mutator transaction binding the contract method 0x75829def.

Solidity: function transferAdmin(address newAdmin) returns()

func (*StakingContractsTransactor) Unvote

func (_StakingContracts *StakingContractsTransactor) Unvote(opts *bind.TransactOpts, candidate common.Address, amount *big.Int) (*types.Transaction, error)

Unvote is a paid mutator transaction binding the contract method 0x02aa9be2.

Solidity: function unvote(address candidate, uint256 amount) returns()

func (*StakingContractsTransactor) UpdateMaxValidatorSize

func (_StakingContracts *StakingContractsTransactor) UpdateMaxValidatorSize(opts *bind.TransactOpts, newMaxValidatorSize *big.Int) (*types.Transaction, error)

UpdateMaxValidatorSize is a paid mutator transaction binding the contract method 0x0619624f.

Solidity: function updateMaxValidatorSize(uint256 newMaxValidatorSize) returns()

func (*StakingContractsTransactor) UpdateMinValidateStake

func (_StakingContracts *StakingContractsTransactor) UpdateMinValidateStake(opts *bind.TransactOpts, _newCap *big.Int) (*types.Transaction, error)

UpdateMinValidateStake is a paid mutator transaction binding the contract method 0xb2c76f10.

Solidity: function updateMinValidateStake(uint256 _newCap) returns()

func (*StakingContractsTransactor) UpdateMinVoteCap

func (_StakingContracts *StakingContractsTransactor) UpdateMinVoteCap(opts *bind.TransactOpts, _newCap *big.Int) (*types.Transaction, error)

UpdateMinVoteCap is a paid mutator transaction binding the contract method 0x3a1d8c5a.

Solidity: function updateMinVoteCap(uint256 _newCap) returns()

func (*StakingContractsTransactor) Vote

func (_StakingContracts *StakingContractsTransactor) Vote(opts *bind.TransactOpts, candidate common.Address) (*types.Transaction, error)

Vote is a paid mutator transaction binding the contract method 0x6dd7d8ea.

Solidity: function vote(address candidate) returns()

func (*StakingContractsTransactor) Withdraw

func (_StakingContracts *StakingContractsTransactor) Withdraw(opts *bind.TransactOpts, epoch *big.Int, destAddress common.Address) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0x00f714ce.

Solidity: function withdraw(uint256 epoch, address destAddress) returns(bool)

func (*StakingContractsTransactor) WithdrawWithIndex

func (_StakingContracts *StakingContractsTransactor) WithdrawWithIndex(opts *bind.TransactOpts, epoch *big.Int, index *big.Int, destAddress common.Address) (*types.Transaction, error)

WithdrawWithIndex is a paid mutator transaction binding the contract method 0xc2df409b.

Solidity: function withdrawWithIndex(uint256 epoch, uint256 index, address destAddress) returns(bool)

type StakingContractsTransactorRaw

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

StakingContractsTransactorRaw is an auto generated low-level write-only Go binding around an Evrynet contract.

func (*StakingContractsTransactorRaw) Transact

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

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

func (*StakingContractsTransactorRaw) Transfer

func (_StakingContracts *StakingContractsTransactorRaw) 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 StakingContractsTransactorSession

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

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

func (*StakingContractsTransactorSession) Register

func (_StakingContracts *StakingContractsTransactorSession) Register(_candidate common.Address, _owner common.Address) (*types.Transaction, error)

Register is a paid mutator transaction binding the contract method 0xaa677354.

Solidity: function register(address _candidate, address _owner) returns()

func (*StakingContractsTransactorSession) Resign

func (_StakingContracts *StakingContractsTransactorSession) Resign(_candidate common.Address) (*types.Transaction, error)

Resign is a paid mutator transaction binding the contract method 0xae6e43f5.

Solidity: function resign(address _candidate) returns()

func (*StakingContractsTransactorSession) TransferAdmin

func (_StakingContracts *StakingContractsTransactorSession) TransferAdmin(newAdmin common.Address) (*types.Transaction, error)

TransferAdmin is a paid mutator transaction binding the contract method 0x75829def.

Solidity: function transferAdmin(address newAdmin) returns()

func (*StakingContractsTransactorSession) Unvote

func (_StakingContracts *StakingContractsTransactorSession) Unvote(candidate common.Address, amount *big.Int) (*types.Transaction, error)

Unvote is a paid mutator transaction binding the contract method 0x02aa9be2.

Solidity: function unvote(address candidate, uint256 amount) returns()

func (*StakingContractsTransactorSession) UpdateMaxValidatorSize

func (_StakingContracts *StakingContractsTransactorSession) UpdateMaxValidatorSize(newMaxValidatorSize *big.Int) (*types.Transaction, error)

UpdateMaxValidatorSize is a paid mutator transaction binding the contract method 0x0619624f.

Solidity: function updateMaxValidatorSize(uint256 newMaxValidatorSize) returns()

func (*StakingContractsTransactorSession) UpdateMinValidateStake

func (_StakingContracts *StakingContractsTransactorSession) UpdateMinValidateStake(_newCap *big.Int) (*types.Transaction, error)

UpdateMinValidateStake is a paid mutator transaction binding the contract method 0xb2c76f10.

Solidity: function updateMinValidateStake(uint256 _newCap) returns()

func (*StakingContractsTransactorSession) UpdateMinVoteCap

func (_StakingContracts *StakingContractsTransactorSession) UpdateMinVoteCap(_newCap *big.Int) (*types.Transaction, error)

UpdateMinVoteCap is a paid mutator transaction binding the contract method 0x3a1d8c5a.

Solidity: function updateMinVoteCap(uint256 _newCap) returns()

func (*StakingContractsTransactorSession) Vote

func (_StakingContracts *StakingContractsTransactorSession) Vote(candidate common.Address) (*types.Transaction, error)

Vote is a paid mutator transaction binding the contract method 0x6dd7d8ea.

Solidity: function vote(address candidate) returns()

func (*StakingContractsTransactorSession) Withdraw

func (_StakingContracts *StakingContractsTransactorSession) Withdraw(epoch *big.Int, destAddress common.Address) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0x00f714ce.

Solidity: function withdraw(uint256 epoch, address destAddress) returns(bool)

func (*StakingContractsTransactorSession) WithdrawWithIndex

func (_StakingContracts *StakingContractsTransactorSession) WithdrawWithIndex(epoch *big.Int, index *big.Int, destAddress common.Address) (*types.Transaction, error)

WithdrawWithIndex is a paid mutator transaction binding the contract method 0xc2df409b.

Solidity: function withdrawWithIndex(uint256 epoch, uint256 index, address destAddress) returns(bool)

type StakingContractsUnvoted

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

StakingContractsUnvoted represents a Unvoted event raised by the StakingContracts contract.

type StakingContractsUnvotedIterator

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

StakingContractsUnvotedIterator is returned from FilterUnvoted and is used to iterate over the raw logs and unpacked data for Unvoted events raised by the StakingContracts contract.

func (*StakingContractsUnvotedIterator) Close

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

func (*StakingContractsUnvotedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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

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

StakingContractsVoted represents a Voted event raised by the StakingContracts contract.

type StakingContractsVotedIterator

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

StakingContractsVotedIterator is returned from FilterVoted and is used to iterate over the raw logs and unpacked data for Voted events raised by the StakingContracts contract.

func (*StakingContractsVotedIterator) Close

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

func (*StakingContractsVotedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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

type StakingContractsWithdraw struct {
	Staker      common.Address
	Amount      *big.Int
	DestAddress common.Address
	Raw         types.Log // Blockchain specific contextual infos
}

StakingContractsWithdraw represents a Withdraw event raised by the StakingContracts contract.

type StakingContractsWithdrawIterator

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

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

func (*StakingContractsWithdrawIterator) Close

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

func (*StakingContractsWithdrawIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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