staking

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const StakingABI = "" /* 17684-byte string literal not displayed */

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

View Source
const StakingBin = `` /* 32122-byte string literal not displayed */

StakingBin is the compiled bytecode used for deploying new contracts.

Variables

This section is empty.

Functions

This section is empty.

Types

type Staking

type Staking struct {
	StakingCaller     // Read-only binding to the contract
	StakingTransactor // Write-only binding to the contract
	StakingFilterer   // Log filterer for contract events
}

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

func DeployStaking

func DeployStaking(auth *bind.TransactOpts, backend bind.ContractBackend, _dostoken common.Address, _dbtoken common.Address, _vault common.Address, _bridgeAddr common.Address) (common.Address, *types.Transaction, *Staking, error)

DeployStaking deploys a new Ethereum contract, binding an instance of Staking to it.

func NewStaking

func NewStaking(address common.Address, backend bind.ContractBackend) (*Staking, error)

NewStaking creates a new instance of Staking, bound to a specific deployed contract.

type StakingCaller

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

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

func NewStakingCaller

func NewStakingCaller(address common.Address, caller bind.ContractCaller) (*StakingCaller, error)

NewStakingCaller creates a new read-only instance of Staking, bound to a specific deployed contract.

func (*StakingCaller) AccumulatedRewardIndex

func (_Staking *StakingCaller) AccumulatedRewardIndex(opts *bind.CallOpts) (*big.Int, error)

AccumulatedRewardIndex is a free data retrieval call binding the contract method 0x37308854.

Solidity: function accumulatedRewardIndex() constant returns(uint256)

func (*StakingCaller) Admin

func (_Staking *StakingCaller) 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 (*StakingCaller) BridgeAddr

func (_Staking *StakingCaller) BridgeAddr(opts *bind.CallOpts) (common.Address, error)

BridgeAddr is a free data retrieval call binding the contract method 0x91874ef7.

Solidity: function bridgeAddr() constant returns(address)

func (*StakingCaller) CirculatingSupply

func (_Staking *StakingCaller) CirculatingSupply(opts *bind.CallOpts) (*big.Int, error)

CirculatingSupply is a free data retrieval call binding the contract method 0x9358928b.

Solidity: function circulatingSupply() constant returns(uint256)

func (*StakingCaller) DBDECIMAL

func (_Staking *StakingCaller) DBDECIMAL(opts *bind.CallOpts) (*big.Int, error)

DBDECIMAL is a free data retrieval call binding the contract method 0x91bf6960.

Solidity: function DBDECIMAL() constant returns(uint256)

func (*StakingCaller) DBTOKEN

func (_Staking *StakingCaller) DBTOKEN(opts *bind.CallOpts) (common.Address, error)

DBTOKEN is a free data retrieval call binding the contract method 0xd2a02541.

Solidity: function DBTOKEN() constant returns(address)

func (*StakingCaller) DOSDECIMAL

func (_Staking *StakingCaller) DOSDECIMAL(opts *bind.CallOpts) (*big.Int, error)

DOSDECIMAL is a free data retrieval call binding the contract method 0xc48f4d47.

Solidity: function DOSDECIMAL() constant returns(uint256)

func (*StakingCaller) DOSTOKEN

func (_Staking *StakingCaller) DOSTOKEN(opts *bind.CallOpts) (common.Address, error)

DOSTOKEN is a free data retrieval call binding the contract method 0x0fd1d0ea.

Solidity: function DOSTOKEN() constant returns(address)

func (*StakingCaller) DelegatorWithdrawable

func (_Staking *StakingCaller) DelegatorWithdrawable(opts *bind.CallOpts, _owner common.Address, _nodeAddr common.Address) (*big.Int, error)

DelegatorWithdrawable is a free data retrieval call binding the contract method 0x0bac06cb.

Solidity: function delegatorWithdrawable(_owner address, _nodeAddr address) constant returns(uint256)

func (*StakingCaller) Delegators

func (_Staking *StakingCaller) Delegators(opts *bind.CallOpts, arg0 common.Address, arg1 common.Address) (struct {
	DelegatedNode          common.Address
	DelegatedAmount        *big.Int
	AccumulatedRewards     *big.Int
	AccumulatedRewardIndex *big.Int
	PendingWithdraw        *big.Int
}, error)

Delegators is a free data retrieval call binding the contract method 0xa2526bd3.

Solidity: function delegators( address, address) constant returns(delegatedNode address, delegatedAmount uint256, accumulatedRewards uint256, accumulatedRewardIndex uint256, pendingWithdraw uint256)

func (*StakingCaller) DropburnMaxQuota

func (_Staking *StakingCaller) DropburnMaxQuota(opts *bind.CallOpts) (*big.Int, error)

DropburnMaxQuota is a free data retrieval call binding the contract method 0xe8c3470c.

Solidity: function dropburnMaxQuota() constant returns(uint256)

func (*StakingCaller) GetCurrentAPR

func (_Staking *StakingCaller) GetCurrentAPR(opts *bind.CallOpts) (*big.Int, error)

GetCurrentAPR is a free data retrieval call binding the contract method 0x21ae05c8.

Solidity: function getCurrentAPR() constant returns(uint256)

func (*StakingCaller) GetDelegatorRewardTokensRT

func (_Staking *StakingCaller) GetDelegatorRewardTokensRT(opts *bind.CallOpts, _delegator common.Address, _nodeAddr common.Address) (*big.Int, error)

GetDelegatorRewardTokensRT is a free data retrieval call binding the contract method 0xfb7f2488.

Solidity: function getDelegatorRewardTokensRT(_delegator address, _nodeAddr address) constant returns(uint256)

func (*StakingCaller) GetNodeAddrs

func (_Staking *StakingCaller) GetNodeAddrs(opts *bind.CallOpts) ([]common.Address, error)

GetNodeAddrs is a free data retrieval call binding the contract method 0x1017bf56.

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

func (*StakingCaller) GetNodeRewardTokensRT

func (_Staking *StakingCaller) GetNodeRewardTokensRT(opts *bind.CallOpts, _nodeAddr common.Address) (*big.Int, error)

GetNodeRewardTokensRT is a free data retrieval call binding the contract method 0x4d0b5ea9.

Solidity: function getNodeRewardTokensRT(_nodeAddr address) constant returns(uint256)

func (*StakingCaller) GetNodeUptime

func (_Staking *StakingCaller) GetNodeUptime(opts *bind.CallOpts, nodeAddr common.Address) (*big.Int, error)

GetNodeUptime is a free data retrieval call binding the contract method 0x7f92ca19.

Solidity: function getNodeUptime(nodeAddr address) constant returns(uint256)

func (*StakingCaller) InitBlkN

func (_Staking *StakingCaller) InitBlkN(opts *bind.CallOpts) (*big.Int, error)

InitBlkN is a free data retrieval call binding the contract method 0x95071cf6.

Solidity: function initBlkN() constant returns(uint256)

func (*StakingCaller) IsValidStakingNode

func (_Staking *StakingCaller) IsValidStakingNode(opts *bind.CallOpts, nodeAddr common.Address) (bool, error)

IsValidStakingNode is a free data retrieval call binding the contract method 0xa8e8ab38.

Solidity: function isValidStakingNode(nodeAddr address) constant returns(bool)

func (*StakingCaller) LISTHEAD

func (_Staking *StakingCaller) LISTHEAD(opts *bind.CallOpts) (*big.Int, error)

LISTHEAD is a free data retrieval call binding the contract method 0xf2f97c21.

Solidity: function LISTHEAD() constant returns(uint256)

func (*StakingCaller) LastRateUpdatedTime

func (_Staking *StakingCaller) LastRateUpdatedTime(opts *bind.CallOpts) (*big.Int, error)

LastRateUpdatedTime is a free data retrieval call binding the contract method 0xbe568059.

Solidity: function lastRateUpdatedTime() constant returns(uint256)

func (*StakingCaller) MinStakePerNode

func (_Staking *StakingCaller) MinStakePerNode(opts *bind.CallOpts) (*big.Int, error)

MinStakePerNode is a free data retrieval call binding the contract method 0xe5f95a99.

Solidity: function minStakePerNode() constant returns(uint256)

func (*StakingCaller) NodeAddrs

func (_Staking *StakingCaller) NodeAddrs(opts *bind.CallOpts, arg0 *big.Int) (common.Address, error)

NodeAddrs is a free data retrieval call binding the contract method 0xb4a26490.

Solidity: function nodeAddrs( uint256) constant returns(address)

func (*StakingCaller) NodeRunners

func (_Staking *StakingCaller) NodeRunners(opts *bind.CallOpts, arg0 common.Address, arg1 common.Address) (bool, error)

NodeRunners is a free data retrieval call binding the contract method 0xbe4a455f.

Solidity: function nodeRunners( address, address) constant returns(bool)

func (*StakingCaller) NodeWithdrawable

func (_Staking *StakingCaller) NodeWithdrawable(opts *bind.CallOpts, _owner common.Address, _nodeAddr common.Address) (*big.Int, *big.Int, error)

NodeWithdrawable is a free data retrieval call binding the contract method 0x70841a0b.

Solidity: function nodeWithdrawable(_owner address, _nodeAddr address) constant returns(uint256, uint256)

func (*StakingCaller) Nodes

func (_Staking *StakingCaller) Nodes(opts *bind.CallOpts, arg0 common.Address) (struct {
	OwnerAddr                 common.Address
	RewardCut                 *big.Int
	StakedDB                  *big.Int
	SelfStakedAmount          *big.Int
	TotalOtherDelegatedAmount *big.Int
	AccumulatedRewards        *big.Int
	AccumulatedRewardIndex    *big.Int
	PendingWithdrawToken      *big.Int
	PendingWithdrawDB         *big.Int
	LastStartTime             *big.Int
	Running                   bool
	Description               string
}, error)

Nodes is a free data retrieval call binding the contract method 0x189a5a17.

Solidity: function nodes( address) constant returns(ownerAddr address, rewardCut uint256, stakedDB uint256, selfStakedAmount uint256, totalOtherDelegatedAmount uint256, accumulatedRewards uint256, accumulatedRewardIndex uint256, pendingWithdrawToken uint256, pendingWithdrawDB uint256, lastStartTime uint256, running bool, description string)

func (*StakingCaller) ONEYEAR

func (_Staking *StakingCaller) ONEYEAR(opts *bind.CallOpts) (*big.Int, error)

ONEYEAR is a free data retrieval call binding the contract method 0x195cb3ab.

Solidity: function ONEYEAR() constant returns(uint256)

func (*StakingCaller) StakingRewardsVault

func (_Staking *StakingCaller) StakingRewardsVault(opts *bind.CallOpts) (common.Address, error)

StakingRewardsVault is a free data retrieval call binding the contract method 0xcd45dbcb.

Solidity: function stakingRewardsVault() constant returns(address)

func (*StakingCaller) TotalStakedTokens

func (_Staking *StakingCaller) TotalStakedTokens(opts *bind.CallOpts) (*big.Int, error)

TotalStakedTokens is a free data retrieval call binding the contract method 0x3ae73259.

Solidity: function totalStakedTokens() constant returns(uint256)

func (*StakingCaller) UnbondDuration

func (_Staking *StakingCaller) UnbondDuration(opts *bind.CallOpts) (*big.Int, error)

UnbondDuration is a free data retrieval call binding the contract method 0xc4393444.

Solidity: function unbondDuration() constant returns(uint256)

type StakingCallerRaw

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

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

func (*StakingCallerRaw) Call

func (_Staking *StakingCallerRaw) 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 StakingCallerSession

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

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

func (*StakingCallerSession) AccumulatedRewardIndex

func (_Staking *StakingCallerSession) AccumulatedRewardIndex() (*big.Int, error)

AccumulatedRewardIndex is a free data retrieval call binding the contract method 0x37308854.

Solidity: function accumulatedRewardIndex() constant returns(uint256)

func (*StakingCallerSession) Admin

func (_Staking *StakingCallerSession) Admin() (common.Address, error)

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

Solidity: function admin() constant returns(address)

func (*StakingCallerSession) BridgeAddr

func (_Staking *StakingCallerSession) BridgeAddr() (common.Address, error)

BridgeAddr is a free data retrieval call binding the contract method 0x91874ef7.

Solidity: function bridgeAddr() constant returns(address)

func (*StakingCallerSession) CirculatingSupply

func (_Staking *StakingCallerSession) CirculatingSupply() (*big.Int, error)

CirculatingSupply is a free data retrieval call binding the contract method 0x9358928b.

Solidity: function circulatingSupply() constant returns(uint256)

func (*StakingCallerSession) DBDECIMAL

func (_Staking *StakingCallerSession) DBDECIMAL() (*big.Int, error)

DBDECIMAL is a free data retrieval call binding the contract method 0x91bf6960.

Solidity: function DBDECIMAL() constant returns(uint256)

func (*StakingCallerSession) DBTOKEN

func (_Staking *StakingCallerSession) DBTOKEN() (common.Address, error)

DBTOKEN is a free data retrieval call binding the contract method 0xd2a02541.

Solidity: function DBTOKEN() constant returns(address)

func (*StakingCallerSession) DOSDECIMAL

func (_Staking *StakingCallerSession) DOSDECIMAL() (*big.Int, error)

DOSDECIMAL is a free data retrieval call binding the contract method 0xc48f4d47.

Solidity: function DOSDECIMAL() constant returns(uint256)

func (*StakingCallerSession) DOSTOKEN

func (_Staking *StakingCallerSession) DOSTOKEN() (common.Address, error)

DOSTOKEN is a free data retrieval call binding the contract method 0x0fd1d0ea.

Solidity: function DOSTOKEN() constant returns(address)

func (*StakingCallerSession) DelegatorWithdrawable

func (_Staking *StakingCallerSession) DelegatorWithdrawable(_owner common.Address, _nodeAddr common.Address) (*big.Int, error)

DelegatorWithdrawable is a free data retrieval call binding the contract method 0x0bac06cb.

Solidity: function delegatorWithdrawable(_owner address, _nodeAddr address) constant returns(uint256)

func (*StakingCallerSession) Delegators

func (_Staking *StakingCallerSession) Delegators(arg0 common.Address, arg1 common.Address) (struct {
	DelegatedNode          common.Address
	DelegatedAmount        *big.Int
	AccumulatedRewards     *big.Int
	AccumulatedRewardIndex *big.Int
	PendingWithdraw        *big.Int
}, error)

Delegators is a free data retrieval call binding the contract method 0xa2526bd3.

Solidity: function delegators( address, address) constant returns(delegatedNode address, delegatedAmount uint256, accumulatedRewards uint256, accumulatedRewardIndex uint256, pendingWithdraw uint256)

func (*StakingCallerSession) DropburnMaxQuota

func (_Staking *StakingCallerSession) DropburnMaxQuota() (*big.Int, error)

DropburnMaxQuota is a free data retrieval call binding the contract method 0xe8c3470c.

Solidity: function dropburnMaxQuota() constant returns(uint256)

func (*StakingCallerSession) GetCurrentAPR

func (_Staking *StakingCallerSession) GetCurrentAPR() (*big.Int, error)

GetCurrentAPR is a free data retrieval call binding the contract method 0x21ae05c8.

Solidity: function getCurrentAPR() constant returns(uint256)

func (*StakingCallerSession) GetDelegatorRewardTokensRT

func (_Staking *StakingCallerSession) GetDelegatorRewardTokensRT(_delegator common.Address, _nodeAddr common.Address) (*big.Int, error)

GetDelegatorRewardTokensRT is a free data retrieval call binding the contract method 0xfb7f2488.

Solidity: function getDelegatorRewardTokensRT(_delegator address, _nodeAddr address) constant returns(uint256)

func (*StakingCallerSession) GetNodeAddrs

func (_Staking *StakingCallerSession) GetNodeAddrs() ([]common.Address, error)

GetNodeAddrs is a free data retrieval call binding the contract method 0x1017bf56.

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

func (*StakingCallerSession) GetNodeRewardTokensRT

func (_Staking *StakingCallerSession) GetNodeRewardTokensRT(_nodeAddr common.Address) (*big.Int, error)

GetNodeRewardTokensRT is a free data retrieval call binding the contract method 0x4d0b5ea9.

Solidity: function getNodeRewardTokensRT(_nodeAddr address) constant returns(uint256)

func (*StakingCallerSession) GetNodeUptime

func (_Staking *StakingCallerSession) GetNodeUptime(nodeAddr common.Address) (*big.Int, error)

GetNodeUptime is a free data retrieval call binding the contract method 0x7f92ca19.

Solidity: function getNodeUptime(nodeAddr address) constant returns(uint256)

func (*StakingCallerSession) InitBlkN

func (_Staking *StakingCallerSession) InitBlkN() (*big.Int, error)

InitBlkN is a free data retrieval call binding the contract method 0x95071cf6.

Solidity: function initBlkN() constant returns(uint256)

func (*StakingCallerSession) IsValidStakingNode

func (_Staking *StakingCallerSession) IsValidStakingNode(nodeAddr common.Address) (bool, error)

IsValidStakingNode is a free data retrieval call binding the contract method 0xa8e8ab38.

Solidity: function isValidStakingNode(nodeAddr address) constant returns(bool)

func (*StakingCallerSession) LISTHEAD

func (_Staking *StakingCallerSession) LISTHEAD() (*big.Int, error)

LISTHEAD is a free data retrieval call binding the contract method 0xf2f97c21.

Solidity: function LISTHEAD() constant returns(uint256)

func (*StakingCallerSession) LastRateUpdatedTime

func (_Staking *StakingCallerSession) LastRateUpdatedTime() (*big.Int, error)

LastRateUpdatedTime is a free data retrieval call binding the contract method 0xbe568059.

Solidity: function lastRateUpdatedTime() constant returns(uint256)

func (*StakingCallerSession) MinStakePerNode

func (_Staking *StakingCallerSession) MinStakePerNode() (*big.Int, error)

MinStakePerNode is a free data retrieval call binding the contract method 0xe5f95a99.

Solidity: function minStakePerNode() constant returns(uint256)

func (*StakingCallerSession) NodeAddrs

func (_Staking *StakingCallerSession) NodeAddrs(arg0 *big.Int) (common.Address, error)

NodeAddrs is a free data retrieval call binding the contract method 0xb4a26490.

Solidity: function nodeAddrs( uint256) constant returns(address)

func (*StakingCallerSession) NodeRunners

func (_Staking *StakingCallerSession) NodeRunners(arg0 common.Address, arg1 common.Address) (bool, error)

NodeRunners is a free data retrieval call binding the contract method 0xbe4a455f.

Solidity: function nodeRunners( address, address) constant returns(bool)

func (*StakingCallerSession) NodeWithdrawable

func (_Staking *StakingCallerSession) NodeWithdrawable(_owner common.Address, _nodeAddr common.Address) (*big.Int, *big.Int, error)

NodeWithdrawable is a free data retrieval call binding the contract method 0x70841a0b.

Solidity: function nodeWithdrawable(_owner address, _nodeAddr address) constant returns(uint256, uint256)

func (*StakingCallerSession) Nodes

func (_Staking *StakingCallerSession) Nodes(arg0 common.Address) (struct {
	OwnerAddr                 common.Address
	RewardCut                 *big.Int
	StakedDB                  *big.Int
	SelfStakedAmount          *big.Int
	TotalOtherDelegatedAmount *big.Int
	AccumulatedRewards        *big.Int
	AccumulatedRewardIndex    *big.Int
	PendingWithdrawToken      *big.Int
	PendingWithdrawDB         *big.Int
	LastStartTime             *big.Int
	Running                   bool
	Description               string
}, error)

Nodes is a free data retrieval call binding the contract method 0x189a5a17.

Solidity: function nodes( address) constant returns(ownerAddr address, rewardCut uint256, stakedDB uint256, selfStakedAmount uint256, totalOtherDelegatedAmount uint256, accumulatedRewards uint256, accumulatedRewardIndex uint256, pendingWithdrawToken uint256, pendingWithdrawDB uint256, lastStartTime uint256, running bool, description string)

func (*StakingCallerSession) ONEYEAR

func (_Staking *StakingCallerSession) ONEYEAR() (*big.Int, error)

ONEYEAR is a free data retrieval call binding the contract method 0x195cb3ab.

Solidity: function ONEYEAR() constant returns(uint256)

func (*StakingCallerSession) StakingRewardsVault

func (_Staking *StakingCallerSession) StakingRewardsVault() (common.Address, error)

StakingRewardsVault is a free data retrieval call binding the contract method 0xcd45dbcb.

Solidity: function stakingRewardsVault() constant returns(address)

func (*StakingCallerSession) TotalStakedTokens

func (_Staking *StakingCallerSession) TotalStakedTokens() (*big.Int, error)

TotalStakedTokens is a free data retrieval call binding the contract method 0x3ae73259.

Solidity: function totalStakedTokens() constant returns(uint256)

func (*StakingCallerSession) UnbondDuration

func (_Staking *StakingCallerSession) UnbondDuration() (*big.Int, error)

UnbondDuration is a free data retrieval call binding the contract method 0xc4393444.

Solidity: function unbondDuration() constant returns(uint256)

type StakingClaimReward

type StakingClaimReward struct {
	To         common.Address
	NodeRunner bool
	Amount     *big.Int
	Raw        types.Log // Blockchain specific contextual infos
}

StakingClaimReward represents a ClaimReward event raised by the Staking contract.

type StakingClaimRewardIterator

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

StakingClaimRewardIterator is returned from FilterClaimReward and is used to iterate over the raw logs and unpacked data for ClaimReward events raised by the Staking contract.

func (*StakingClaimRewardIterator) Close

func (it *StakingClaimRewardIterator) Close() error

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

func (*StakingClaimRewardIterator) Error

func (it *StakingClaimRewardIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*StakingClaimRewardIterator) Next

func (it *StakingClaimRewardIterator) 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 StakingDelegate

type StakingDelegate struct {
	From   common.Address
	To     common.Address
	Amount *big.Int
	Raw    types.Log // Blockchain specific contextual infos
}

StakingDelegate represents a Delegate event raised by the Staking contract.

type StakingDelegateIterator

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

StakingDelegateIterator is returned from FilterDelegate and is used to iterate over the raw logs and unpacked data for Delegate events raised by the Staking contract.

func (*StakingDelegateIterator) Close

func (it *StakingDelegateIterator) Close() error

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

func (*StakingDelegateIterator) Error

func (it *StakingDelegateIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*StakingDelegateIterator) Next

func (it *StakingDelegateIterator) 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 StakingFilterer

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

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

func NewStakingFilterer

func NewStakingFilterer(address common.Address, filterer bind.ContractFilterer) (*StakingFilterer, error)

NewStakingFilterer creates a new log filterer instance of Staking, bound to a specific deployed contract.

func (*StakingFilterer) FilterClaimReward

func (_Staking *StakingFilterer) FilterClaimReward(opts *bind.FilterOpts, to []common.Address) (*StakingClaimRewardIterator, error)

FilterClaimReward is a free log retrieval operation binding the contract event 0x70f2476b8214c2f4e6fc47e4adb3c9adca3cc0e0e6c9a9d7b0e2626ce83cbc40.

Solidity: e ClaimReward(to indexed address, nodeRunner bool, amount uint256)

func (*StakingFilterer) FilterDelegate

func (_Staking *StakingFilterer) FilterDelegate(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*StakingDelegateIterator, error)

FilterDelegate is a free log retrieval operation binding the contract event 0x510b11bb3f3c799b11307c01ab7db0d335683ef5b2da98f7697de744f465eacc.

Solidity: e Delegate(from indexed address, to indexed address, amount uint256)

func (*StakingFilterer) FilterNewNode

func (_Staking *StakingFilterer) FilterNewNode(opts *bind.FilterOpts, owner []common.Address, nodeAddress []common.Address) (*StakingNewNodeIterator, error)

FilterNewNode is a free log retrieval operation binding the contract event 0x08f38bdd2a12d30a92014fb5523763d3d147ea395e40f81c241eea1a6af0cdfc.

Solidity: e NewNode(owner indexed address, nodeAddress indexed address, selfStakedAmount uint256, stakedDB uint256, rewardCut uint256)

func (*StakingFilterer) FilterUnbond

func (_Staking *StakingFilterer) FilterUnbond(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*StakingUnbondIterator, error)

FilterUnbond is a free log retrieval operation binding the contract event 0x882043d8baf498c3af74efc34e0973ddc34e0e5a0351d84132ab0c7032b89160.

Solidity: e Unbond(from indexed address, to indexed address, nodeRunner bool, tokenAmount uint256, dropburnAmount uint256)

func (*StakingFilterer) FilterUpdateCirculatingSupply

func (_Staking *StakingFilterer) FilterUpdateCirculatingSupply(opts *bind.FilterOpts) (*StakingUpdateCirculatingSupplyIterator, error)

FilterUpdateCirculatingSupply is a free log retrieval operation binding the contract event 0xef08ea314c41dc78bc73676b156d3b7802c096dd7a552f7f514a80967aba10ac.

Solidity: e UpdateCirculatingSupply(oldCirculatingSupply uint256, newCirculatingSupply uint256)

func (*StakingFilterer) FilterUpdateDropBurnMaxQuota

func (_Staking *StakingFilterer) FilterUpdateDropBurnMaxQuota(opts *bind.FilterOpts) (*StakingUpdateDropBurnMaxQuotaIterator, error)

FilterUpdateDropBurnMaxQuota is a free log retrieval operation binding the contract event 0x0aee95cca46da64ee373e28dee5994361b4002c54035d92932c9825b76382e99.

Solidity: e UpdateDropBurnMaxQuota(oldQuota uint256, newQuota uint256)

func (*StakingFilterer) FilterUpdateMinStakePerNode

func (_Staking *StakingFilterer) FilterUpdateMinStakePerNode(opts *bind.FilterOpts) (*StakingUpdateMinStakePerNodeIterator, error)

FilterUpdateMinStakePerNode is a free log retrieval operation binding the contract event 0x89892efa8f66455fa9bf996b1444e79778d71795cf00089fadf89071a3896ebb.

Solidity: e UpdateMinStakePerNode(oldMinStakePerNode uint256, newMinStakePerNode uint256)

func (*StakingFilterer) FilterUpdateStakingAdmin

func (_Staking *StakingFilterer) FilterUpdateStakingAdmin(opts *bind.FilterOpts) (*StakingUpdateStakingAdminIterator, error)

FilterUpdateStakingAdmin is a free log retrieval operation binding the contract event 0xb2f7a3425615a6c40cd662f1fac51ca4343e78421401f252068a0a4a42070ffe.

Solidity: e UpdateStakingAdmin(oldAdmin address, newAdmin address)

func (*StakingFilterer) FilterUpdateUnbondDuration

func (_Staking *StakingFilterer) FilterUpdateUnbondDuration(opts *bind.FilterOpts) (*StakingUpdateUnbondDurationIterator, error)

FilterUpdateUnbondDuration is a free log retrieval operation binding the contract event 0x8671d68a1c48206a7cde676b141ee222482f2014d09ad75af8f5ee2118af9b99.

Solidity: e UpdateUnbondDuration(oldDuration uint256, newDuration uint256)

func (*StakingFilterer) FilterWithdraw

func (_Staking *StakingFilterer) FilterWithdraw(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*StakingWithdrawIterator, error)

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

Solidity: e Withdraw(from indexed address, to indexed address, nodeRunner bool, tokenAmount uint256, dbAmount uint256)

func (*StakingFilterer) WatchClaimReward

func (_Staking *StakingFilterer) WatchClaimReward(opts *bind.WatchOpts, sink chan<- *StakingClaimReward, to []common.Address) (event.Subscription, error)

WatchClaimReward is a free log subscription operation binding the contract event 0x70f2476b8214c2f4e6fc47e4adb3c9adca3cc0e0e6c9a9d7b0e2626ce83cbc40.

Solidity: e ClaimReward(to indexed address, nodeRunner bool, amount uint256)

func (*StakingFilterer) WatchDelegate

func (_Staking *StakingFilterer) WatchDelegate(opts *bind.WatchOpts, sink chan<- *StakingDelegate, from []common.Address, to []common.Address) (event.Subscription, error)

WatchDelegate is a free log subscription operation binding the contract event 0x510b11bb3f3c799b11307c01ab7db0d335683ef5b2da98f7697de744f465eacc.

Solidity: e Delegate(from indexed address, to indexed address, amount uint256)

func (*StakingFilterer) WatchNewNode

func (_Staking *StakingFilterer) WatchNewNode(opts *bind.WatchOpts, sink chan<- *StakingNewNode, owner []common.Address, nodeAddress []common.Address) (event.Subscription, error)

WatchNewNode is a free log subscription operation binding the contract event 0x08f38bdd2a12d30a92014fb5523763d3d147ea395e40f81c241eea1a6af0cdfc.

Solidity: e NewNode(owner indexed address, nodeAddress indexed address, selfStakedAmount uint256, stakedDB uint256, rewardCut uint256)

func (*StakingFilterer) WatchUnbond

func (_Staking *StakingFilterer) WatchUnbond(opts *bind.WatchOpts, sink chan<- *StakingUnbond, from []common.Address, to []common.Address) (event.Subscription, error)

WatchUnbond is a free log subscription operation binding the contract event 0x882043d8baf498c3af74efc34e0973ddc34e0e5a0351d84132ab0c7032b89160.

Solidity: e Unbond(from indexed address, to indexed address, nodeRunner bool, tokenAmount uint256, dropburnAmount uint256)

func (*StakingFilterer) WatchUpdateCirculatingSupply

func (_Staking *StakingFilterer) WatchUpdateCirculatingSupply(opts *bind.WatchOpts, sink chan<- *StakingUpdateCirculatingSupply) (event.Subscription, error)

WatchUpdateCirculatingSupply is a free log subscription operation binding the contract event 0xef08ea314c41dc78bc73676b156d3b7802c096dd7a552f7f514a80967aba10ac.

Solidity: e UpdateCirculatingSupply(oldCirculatingSupply uint256, newCirculatingSupply uint256)

func (*StakingFilterer) WatchUpdateDropBurnMaxQuota

func (_Staking *StakingFilterer) WatchUpdateDropBurnMaxQuota(opts *bind.WatchOpts, sink chan<- *StakingUpdateDropBurnMaxQuota) (event.Subscription, error)

WatchUpdateDropBurnMaxQuota is a free log subscription operation binding the contract event 0x0aee95cca46da64ee373e28dee5994361b4002c54035d92932c9825b76382e99.

Solidity: e UpdateDropBurnMaxQuota(oldQuota uint256, newQuota uint256)

func (*StakingFilterer) WatchUpdateMinStakePerNode

func (_Staking *StakingFilterer) WatchUpdateMinStakePerNode(opts *bind.WatchOpts, sink chan<- *StakingUpdateMinStakePerNode) (event.Subscription, error)

WatchUpdateMinStakePerNode is a free log subscription operation binding the contract event 0x89892efa8f66455fa9bf996b1444e79778d71795cf00089fadf89071a3896ebb.

Solidity: e UpdateMinStakePerNode(oldMinStakePerNode uint256, newMinStakePerNode uint256)

func (*StakingFilterer) WatchUpdateStakingAdmin

func (_Staking *StakingFilterer) WatchUpdateStakingAdmin(opts *bind.WatchOpts, sink chan<- *StakingUpdateStakingAdmin) (event.Subscription, error)

WatchUpdateStakingAdmin is a free log subscription operation binding the contract event 0xb2f7a3425615a6c40cd662f1fac51ca4343e78421401f252068a0a4a42070ffe.

Solidity: e UpdateStakingAdmin(oldAdmin address, newAdmin address)

func (*StakingFilterer) WatchUpdateUnbondDuration

func (_Staking *StakingFilterer) WatchUpdateUnbondDuration(opts *bind.WatchOpts, sink chan<- *StakingUpdateUnbondDuration) (event.Subscription, error)

WatchUpdateUnbondDuration is a free log subscription operation binding the contract event 0x8671d68a1c48206a7cde676b141ee222482f2014d09ad75af8f5ee2118af9b99.

Solidity: e UpdateUnbondDuration(oldDuration uint256, newDuration uint256)

func (*StakingFilterer) WatchWithdraw

func (_Staking *StakingFilterer) WatchWithdraw(opts *bind.WatchOpts, sink chan<- *StakingWithdraw, from []common.Address, to []common.Address) (event.Subscription, error)

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

Solidity: e Withdraw(from indexed address, to indexed address, nodeRunner bool, tokenAmount uint256, dbAmount uint256)

type StakingNewNode

type StakingNewNode struct {
	Owner            common.Address
	NodeAddress      common.Address
	SelfStakedAmount *big.Int
	StakedDB         *big.Int
	RewardCut        *big.Int
	Raw              types.Log // Blockchain specific contextual infos
}

StakingNewNode represents a NewNode event raised by the Staking contract.

type StakingNewNodeIterator

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

StakingNewNodeIterator is returned from FilterNewNode and is used to iterate over the raw logs and unpacked data for NewNode events raised by the Staking contract.

func (*StakingNewNodeIterator) Close

func (it *StakingNewNodeIterator) Close() error

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

func (*StakingNewNodeIterator) Error

func (it *StakingNewNodeIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*StakingNewNodeIterator) Next

func (it *StakingNewNodeIterator) 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 StakingRaw

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

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

func (*StakingRaw) Call

func (_Staking *StakingRaw) 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 (*StakingRaw) Transact

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

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

func (*StakingRaw) Transfer

func (_Staking *StakingRaw) 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 StakingSession

type StakingSession struct {
	Contract     *Staking          // 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
}

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

func (*StakingSession) AccumulatedRewardIndex

func (_Staking *StakingSession) AccumulatedRewardIndex() (*big.Int, error)

AccumulatedRewardIndex is a free data retrieval call binding the contract method 0x37308854.

Solidity: function accumulatedRewardIndex() constant returns(uint256)

func (*StakingSession) Admin

func (_Staking *StakingSession) Admin() (common.Address, error)

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

Solidity: function admin() constant returns(address)

func (*StakingSession) BridgeAddr

func (_Staking *StakingSession) BridgeAddr() (common.Address, error)

BridgeAddr is a free data retrieval call binding the contract method 0x91874ef7.

Solidity: function bridgeAddr() constant returns(address)

func (*StakingSession) CirculatingSupply

func (_Staking *StakingSession) CirculatingSupply() (*big.Int, error)

CirculatingSupply is a free data retrieval call binding the contract method 0x9358928b.

Solidity: function circulatingSupply() constant returns(uint256)

func (*StakingSession) DBDECIMAL

func (_Staking *StakingSession) DBDECIMAL() (*big.Int, error)

DBDECIMAL is a free data retrieval call binding the contract method 0x91bf6960.

Solidity: function DBDECIMAL() constant returns(uint256)

func (*StakingSession) DBTOKEN

func (_Staking *StakingSession) DBTOKEN() (common.Address, error)

DBTOKEN is a free data retrieval call binding the contract method 0xd2a02541.

Solidity: function DBTOKEN() constant returns(address)

func (*StakingSession) DOSDECIMAL

func (_Staking *StakingSession) DOSDECIMAL() (*big.Int, error)

DOSDECIMAL is a free data retrieval call binding the contract method 0xc48f4d47.

Solidity: function DOSDECIMAL() constant returns(uint256)

func (*StakingSession) DOSTOKEN

func (_Staking *StakingSession) DOSTOKEN() (common.Address, error)

DOSTOKEN is a free data retrieval call binding the contract method 0x0fd1d0ea.

Solidity: function DOSTOKEN() constant returns(address)

func (*StakingSession) Delegate

func (_Staking *StakingSession) Delegate(_tokenAmount *big.Int, _nodeAddr common.Address) (*types.Transaction, error)

Delegate is a paid mutator transaction binding the contract method 0x08bbb824.

Solidity: function delegate(_tokenAmount uint256, _nodeAddr address) returns()

func (*StakingSession) DelegatorClaimReward

func (_Staking *StakingSession) DelegatorClaimReward(_nodeAddr common.Address) (*types.Transaction, error)

DelegatorClaimReward is a paid mutator transaction binding the contract method 0x1cac57ec.

Solidity: function delegatorClaimReward(_nodeAddr address) returns()

func (*StakingSession) DelegatorUnbond

func (_Staking *StakingSession) DelegatorUnbond(_tokenAmount *big.Int, _nodeAddr common.Address) (*types.Transaction, error)

DelegatorUnbond is a paid mutator transaction binding the contract method 0x95d516dd.

Solidity: function delegatorUnbond(_tokenAmount uint256, _nodeAddr address) returns()

func (*StakingSession) DelegatorWithdraw

func (_Staking *StakingSession) DelegatorWithdraw(_nodeAddr common.Address) (*types.Transaction, error)

DelegatorWithdraw is a paid mutator transaction binding the contract method 0xc314bb99.

Solidity: function delegatorWithdraw(_nodeAddr address) returns()

func (*StakingSession) DelegatorWithdrawable

func (_Staking *StakingSession) DelegatorWithdrawable(_owner common.Address, _nodeAddr common.Address) (*big.Int, error)

DelegatorWithdrawable is a free data retrieval call binding the contract method 0x0bac06cb.

Solidity: function delegatorWithdrawable(_owner address, _nodeAddr address) constant returns(uint256)

func (*StakingSession) Delegators

func (_Staking *StakingSession) Delegators(arg0 common.Address, arg1 common.Address) (struct {
	DelegatedNode          common.Address
	DelegatedAmount        *big.Int
	AccumulatedRewards     *big.Int
	AccumulatedRewardIndex *big.Int
	PendingWithdraw        *big.Int
}, error)

Delegators is a free data retrieval call binding the contract method 0xa2526bd3.

Solidity: function delegators( address, address) constant returns(delegatedNode address, delegatedAmount uint256, accumulatedRewards uint256, accumulatedRewardIndex uint256, pendingWithdraw uint256)

func (*StakingSession) DropburnMaxQuota

func (_Staking *StakingSession) DropburnMaxQuota() (*big.Int, error)

DropburnMaxQuota is a free data retrieval call binding the contract method 0xe8c3470c.

Solidity: function dropburnMaxQuota() constant returns(uint256)

func (*StakingSession) GetCurrentAPR

func (_Staking *StakingSession) GetCurrentAPR() (*big.Int, error)

GetCurrentAPR is a free data retrieval call binding the contract method 0x21ae05c8.

Solidity: function getCurrentAPR() constant returns(uint256)

func (*StakingSession) GetDelegatorRewardTokensRT

func (_Staking *StakingSession) GetDelegatorRewardTokensRT(_delegator common.Address, _nodeAddr common.Address) (*big.Int, error)

GetDelegatorRewardTokensRT is a free data retrieval call binding the contract method 0xfb7f2488.

Solidity: function getDelegatorRewardTokensRT(_delegator address, _nodeAddr address) constant returns(uint256)

func (*StakingSession) GetNodeAddrs

func (_Staking *StakingSession) GetNodeAddrs() ([]common.Address, error)

GetNodeAddrs is a free data retrieval call binding the contract method 0x1017bf56.

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

func (*StakingSession) GetNodeRewardTokensRT

func (_Staking *StakingSession) GetNodeRewardTokensRT(_nodeAddr common.Address) (*big.Int, error)

GetNodeRewardTokensRT is a free data retrieval call binding the contract method 0x4d0b5ea9.

Solidity: function getNodeRewardTokensRT(_nodeAddr address) constant returns(uint256)

func (*StakingSession) GetNodeUptime

func (_Staking *StakingSession) GetNodeUptime(nodeAddr common.Address) (*big.Int, error)

GetNodeUptime is a free data retrieval call binding the contract method 0x7f92ca19.

Solidity: function getNodeUptime(nodeAddr address) constant returns(uint256)

func (*StakingSession) InitBlkN

func (_Staking *StakingSession) InitBlkN() (*big.Int, error)

InitBlkN is a free data retrieval call binding the contract method 0x95071cf6.

Solidity: function initBlkN() constant returns(uint256)

func (*StakingSession) Initialize

func (_Staking *StakingSession) Initialize(_dostoken common.Address, _dbtoken common.Address, _vault common.Address, _bridgeAddr common.Address) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0xf8c8765e.

Solidity: function initialize(_dostoken address, _dbtoken address, _vault address, _bridgeAddr address) returns()

func (*StakingSession) IsValidStakingNode

func (_Staking *StakingSession) IsValidStakingNode(nodeAddr common.Address) (bool, error)

IsValidStakingNode is a free data retrieval call binding the contract method 0xa8e8ab38.

Solidity: function isValidStakingNode(nodeAddr address) constant returns(bool)

func (*StakingSession) LISTHEAD

func (_Staking *StakingSession) LISTHEAD() (*big.Int, error)

LISTHEAD is a free data retrieval call binding the contract method 0xf2f97c21.

Solidity: function LISTHEAD() constant returns(uint256)

func (*StakingSession) LastRateUpdatedTime

func (_Staking *StakingSession) LastRateUpdatedTime() (*big.Int, error)

LastRateUpdatedTime is a free data retrieval call binding the contract method 0xbe568059.

Solidity: function lastRateUpdatedTime() constant returns(uint256)

func (*StakingSession) MinStakePerNode

func (_Staking *StakingSession) MinStakePerNode() (*big.Int, error)

MinStakePerNode is a free data retrieval call binding the contract method 0xe5f95a99.

Solidity: function minStakePerNode() constant returns(uint256)

func (*StakingSession) NewNode

func (_Staking *StakingSession) NewNode(_nodeAddr common.Address, _tokenAmount *big.Int, _dropburnAmount *big.Int, _rewardCut *big.Int, _desc string) (*types.Transaction, error)

NewNode is a paid mutator transaction binding the contract method 0x867f121a.

Solidity: function newNode(_nodeAddr address, _tokenAmount uint256, _dropburnAmount uint256, _rewardCut uint256, _desc string) returns()

func (*StakingSession) NodeAddrs

func (_Staking *StakingSession) NodeAddrs(arg0 *big.Int) (common.Address, error)

NodeAddrs is a free data retrieval call binding the contract method 0xb4a26490.

Solidity: function nodeAddrs( uint256) constant returns(address)

func (*StakingSession) NodeClaimReward

func (_Staking *StakingSession) NodeClaimReward(_nodeAddr common.Address) (*types.Transaction, error)

NodeClaimReward is a paid mutator transaction binding the contract method 0xb41b0f96.

Solidity: function nodeClaimReward(_nodeAddr address) returns()

func (*StakingSession) NodeRunners

func (_Staking *StakingSession) NodeRunners(arg0 common.Address, arg1 common.Address) (bool, error)

NodeRunners is a free data retrieval call binding the contract method 0xbe4a455f.

Solidity: function nodeRunners( address, address) constant returns(bool)

func (*StakingSession) NodeStart

func (_Staking *StakingSession) NodeStart(_nodeAddr common.Address) (*types.Transaction, error)

NodeStart is a paid mutator transaction binding the contract method 0x4c542d3d.

Solidity: function nodeStart(_nodeAddr address) returns()

func (*StakingSession) NodeStop

func (_Staking *StakingSession) NodeStop(_nodeAddr common.Address) (*types.Transaction, error)

NodeStop is a paid mutator transaction binding the contract method 0xc5375c29.

Solidity: function nodeStop(_nodeAddr address) returns()

func (*StakingSession) NodeUnbond

func (_Staking *StakingSession) NodeUnbond(_tokenAmount *big.Int, _dropburnAmount *big.Int, _nodeAddr common.Address) (*types.Transaction, error)

NodeUnbond is a paid mutator transaction binding the contract method 0x508b74fe.

Solidity: function nodeUnbond(_tokenAmount uint256, _dropburnAmount uint256, _nodeAddr address) returns()

func (*StakingSession) NodeUnregister

func (_Staking *StakingSession) NodeUnregister(_nodeAddr common.Address) (*types.Transaction, error)

NodeUnregister is a paid mutator transaction binding the contract method 0xa2772193.

Solidity: function nodeUnregister(_nodeAddr address) returns()

func (*StakingSession) NodeWithdraw

func (_Staking *StakingSession) NodeWithdraw(_nodeAddr common.Address) (*types.Transaction, error)

NodeWithdraw is a paid mutator transaction binding the contract method 0x4ecea80d.

Solidity: function nodeWithdraw(_nodeAddr address) returns()

func (*StakingSession) NodeWithdrawable

func (_Staking *StakingSession) NodeWithdrawable(_owner common.Address, _nodeAddr common.Address) (*big.Int, *big.Int, error)

NodeWithdrawable is a free data retrieval call binding the contract method 0x70841a0b.

Solidity: function nodeWithdrawable(_owner address, _nodeAddr address) constant returns(uint256, uint256)

func (*StakingSession) Nodes

func (_Staking *StakingSession) Nodes(arg0 common.Address) (struct {
	OwnerAddr                 common.Address
	RewardCut                 *big.Int
	StakedDB                  *big.Int
	SelfStakedAmount          *big.Int
	TotalOtherDelegatedAmount *big.Int
	AccumulatedRewards        *big.Int
	AccumulatedRewardIndex    *big.Int
	PendingWithdrawToken      *big.Int
	PendingWithdrawDB         *big.Int
	LastStartTime             *big.Int
	Running                   bool
	Description               string
}, error)

Nodes is a free data retrieval call binding the contract method 0x189a5a17.

Solidity: function nodes( address) constant returns(ownerAddr address, rewardCut uint256, stakedDB uint256, selfStakedAmount uint256, totalOtherDelegatedAmount uint256, accumulatedRewards uint256, accumulatedRewardIndex uint256, pendingWithdrawToken uint256, pendingWithdrawDB uint256, lastStartTime uint256, running bool, description string)

func (*StakingSession) ONEYEAR

func (_Staking *StakingSession) ONEYEAR() (*big.Int, error)

ONEYEAR is a free data retrieval call binding the contract method 0x195cb3ab.

Solidity: function ONEYEAR() constant returns(uint256)

func (*StakingSession) SetAdmin

func (_Staking *StakingSession) SetAdmin(newAdmin common.Address) (*types.Transaction, error)

SetAdmin is a paid mutator transaction binding the contract method 0x704b6c02.

Solidity: function setAdmin(newAdmin address) returns()

func (*StakingSession) SetCirculatingSupply

func (_Staking *StakingSession) SetCirculatingSupply(_newSupply *big.Int) (*types.Transaction, error)

SetCirculatingSupply is a paid mutator transaction binding the contract method 0xb1764071.

Solidity: function setCirculatingSupply(_newSupply uint256) returns()

func (*StakingSession) SetDropBurnMaxQuota

func (_Staking *StakingSession) SetDropBurnMaxQuota(_quota *big.Int) (*types.Transaction, error)

SetDropBurnMaxQuota is a paid mutator transaction binding the contract method 0x3f3381e1.

Solidity: function setDropBurnMaxQuota(_quota uint256) returns()

func (*StakingSession) SetMinStakePerNode

func (_Staking *StakingSession) SetMinStakePerNode(_minStake *big.Int) (*types.Transaction, error)

SetMinStakePerNode is a paid mutator transaction binding the contract method 0x8b0bc845.

Solidity: function setMinStakePerNode(_minStake uint256) returns()

func (*StakingSession) SetUnbondDuration

func (_Staking *StakingSession) SetUnbondDuration(_duration *big.Int) (*types.Transaction, error)

SetUnbondDuration is a paid mutator transaction binding the contract method 0xb16d2d58.

Solidity: function setUnbondDuration(_duration uint256) returns()

func (*StakingSession) StakingRewardsVault

func (_Staking *StakingSession) StakingRewardsVault() (common.Address, error)

StakingRewardsVault is a free data retrieval call binding the contract method 0xcd45dbcb.

Solidity: function stakingRewardsVault() constant returns(address)

func (*StakingSession) TotalStakedTokens

func (_Staking *StakingSession) TotalStakedTokens() (*big.Int, error)

TotalStakedTokens is a free data retrieval call binding the contract method 0x3ae73259.

Solidity: function totalStakedTokens() constant returns(uint256)

func (*StakingSession) UnbondDuration

func (_Staking *StakingSession) UnbondDuration() (*big.Int, error)

UnbondDuration is a free data retrieval call binding the contract method 0xc4393444.

Solidity: function unbondDuration() constant returns(uint256)

func (*StakingSession) UpdateNodeStaking

func (_Staking *StakingSession) UpdateNodeStaking(_nodeAddr common.Address, _newTokenAmount *big.Int, _newDropburnAmount *big.Int, _newCut *big.Int) (*types.Transaction, error)

UpdateNodeStaking is a paid mutator transaction binding the contract method 0x1ece5950.

Solidity: function updateNodeStaking(_nodeAddr address, _newTokenAmount uint256, _newDropburnAmount uint256, _newCut uint256) returns()

type StakingTransactor

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

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

func NewStakingTransactor

func NewStakingTransactor(address common.Address, transactor bind.ContractTransactor) (*StakingTransactor, error)

NewStakingTransactor creates a new write-only instance of Staking, bound to a specific deployed contract.

func (*StakingTransactor) Delegate

func (_Staking *StakingTransactor) Delegate(opts *bind.TransactOpts, _tokenAmount *big.Int, _nodeAddr common.Address) (*types.Transaction, error)

Delegate is a paid mutator transaction binding the contract method 0x08bbb824.

Solidity: function delegate(_tokenAmount uint256, _nodeAddr address) returns()

func (*StakingTransactor) DelegatorClaimReward

func (_Staking *StakingTransactor) DelegatorClaimReward(opts *bind.TransactOpts, _nodeAddr common.Address) (*types.Transaction, error)

DelegatorClaimReward is a paid mutator transaction binding the contract method 0x1cac57ec.

Solidity: function delegatorClaimReward(_nodeAddr address) returns()

func (*StakingTransactor) DelegatorUnbond

func (_Staking *StakingTransactor) DelegatorUnbond(opts *bind.TransactOpts, _tokenAmount *big.Int, _nodeAddr common.Address) (*types.Transaction, error)

DelegatorUnbond is a paid mutator transaction binding the contract method 0x95d516dd.

Solidity: function delegatorUnbond(_tokenAmount uint256, _nodeAddr address) returns()

func (*StakingTransactor) DelegatorWithdraw

func (_Staking *StakingTransactor) DelegatorWithdraw(opts *bind.TransactOpts, _nodeAddr common.Address) (*types.Transaction, error)

DelegatorWithdraw is a paid mutator transaction binding the contract method 0xc314bb99.

Solidity: function delegatorWithdraw(_nodeAddr address) returns()

func (*StakingTransactor) Initialize

func (_Staking *StakingTransactor) Initialize(opts *bind.TransactOpts, _dostoken common.Address, _dbtoken common.Address, _vault common.Address, _bridgeAddr common.Address) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0xf8c8765e.

Solidity: function initialize(_dostoken address, _dbtoken address, _vault address, _bridgeAddr address) returns()

func (*StakingTransactor) NewNode

func (_Staking *StakingTransactor) NewNode(opts *bind.TransactOpts, _nodeAddr common.Address, _tokenAmount *big.Int, _dropburnAmount *big.Int, _rewardCut *big.Int, _desc string) (*types.Transaction, error)

NewNode is a paid mutator transaction binding the contract method 0x867f121a.

Solidity: function newNode(_nodeAddr address, _tokenAmount uint256, _dropburnAmount uint256, _rewardCut uint256, _desc string) returns()

func (*StakingTransactor) NodeClaimReward

func (_Staking *StakingTransactor) NodeClaimReward(opts *bind.TransactOpts, _nodeAddr common.Address) (*types.Transaction, error)

NodeClaimReward is a paid mutator transaction binding the contract method 0xb41b0f96.

Solidity: function nodeClaimReward(_nodeAddr address) returns()

func (*StakingTransactor) NodeStart

func (_Staking *StakingTransactor) NodeStart(opts *bind.TransactOpts, _nodeAddr common.Address) (*types.Transaction, error)

NodeStart is a paid mutator transaction binding the contract method 0x4c542d3d.

Solidity: function nodeStart(_nodeAddr address) returns()

func (*StakingTransactor) NodeStop

func (_Staking *StakingTransactor) NodeStop(opts *bind.TransactOpts, _nodeAddr common.Address) (*types.Transaction, error)

NodeStop is a paid mutator transaction binding the contract method 0xc5375c29.

Solidity: function nodeStop(_nodeAddr address) returns()

func (*StakingTransactor) NodeUnbond

func (_Staking *StakingTransactor) NodeUnbond(opts *bind.TransactOpts, _tokenAmount *big.Int, _dropburnAmount *big.Int, _nodeAddr common.Address) (*types.Transaction, error)

NodeUnbond is a paid mutator transaction binding the contract method 0x508b74fe.

Solidity: function nodeUnbond(_tokenAmount uint256, _dropburnAmount uint256, _nodeAddr address) returns()

func (*StakingTransactor) NodeUnregister

func (_Staking *StakingTransactor) NodeUnregister(opts *bind.TransactOpts, _nodeAddr common.Address) (*types.Transaction, error)

NodeUnregister is a paid mutator transaction binding the contract method 0xa2772193.

Solidity: function nodeUnregister(_nodeAddr address) returns()

func (*StakingTransactor) NodeWithdraw

func (_Staking *StakingTransactor) NodeWithdraw(opts *bind.TransactOpts, _nodeAddr common.Address) (*types.Transaction, error)

NodeWithdraw is a paid mutator transaction binding the contract method 0x4ecea80d.

Solidity: function nodeWithdraw(_nodeAddr address) returns()

func (*StakingTransactor) SetAdmin

func (_Staking *StakingTransactor) SetAdmin(opts *bind.TransactOpts, newAdmin common.Address) (*types.Transaction, error)

SetAdmin is a paid mutator transaction binding the contract method 0x704b6c02.

Solidity: function setAdmin(newAdmin address) returns()

func (*StakingTransactor) SetCirculatingSupply

func (_Staking *StakingTransactor) SetCirculatingSupply(opts *bind.TransactOpts, _newSupply *big.Int) (*types.Transaction, error)

SetCirculatingSupply is a paid mutator transaction binding the contract method 0xb1764071.

Solidity: function setCirculatingSupply(_newSupply uint256) returns()

func (*StakingTransactor) SetDropBurnMaxQuota

func (_Staking *StakingTransactor) SetDropBurnMaxQuota(opts *bind.TransactOpts, _quota *big.Int) (*types.Transaction, error)

SetDropBurnMaxQuota is a paid mutator transaction binding the contract method 0x3f3381e1.

Solidity: function setDropBurnMaxQuota(_quota uint256) returns()

func (*StakingTransactor) SetMinStakePerNode

func (_Staking *StakingTransactor) SetMinStakePerNode(opts *bind.TransactOpts, _minStake *big.Int) (*types.Transaction, error)

SetMinStakePerNode is a paid mutator transaction binding the contract method 0x8b0bc845.

Solidity: function setMinStakePerNode(_minStake uint256) returns()

func (*StakingTransactor) SetUnbondDuration

func (_Staking *StakingTransactor) SetUnbondDuration(opts *bind.TransactOpts, _duration *big.Int) (*types.Transaction, error)

SetUnbondDuration is a paid mutator transaction binding the contract method 0xb16d2d58.

Solidity: function setUnbondDuration(_duration uint256) returns()

func (*StakingTransactor) UpdateNodeStaking

func (_Staking *StakingTransactor) UpdateNodeStaking(opts *bind.TransactOpts, _nodeAddr common.Address, _newTokenAmount *big.Int, _newDropburnAmount *big.Int, _newCut *big.Int) (*types.Transaction, error)

UpdateNodeStaking is a paid mutator transaction binding the contract method 0x1ece5950.

Solidity: function updateNodeStaking(_nodeAddr address, _newTokenAmount uint256, _newDropburnAmount uint256, _newCut uint256) returns()

type StakingTransactorRaw

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

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

func (*StakingTransactorRaw) Transact

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

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

func (*StakingTransactorRaw) Transfer

func (_Staking *StakingTransactorRaw) 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 StakingTransactorSession

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

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

func (*StakingTransactorSession) Delegate

func (_Staking *StakingTransactorSession) Delegate(_tokenAmount *big.Int, _nodeAddr common.Address) (*types.Transaction, error)

Delegate is a paid mutator transaction binding the contract method 0x08bbb824.

Solidity: function delegate(_tokenAmount uint256, _nodeAddr address) returns()

func (*StakingTransactorSession) DelegatorClaimReward

func (_Staking *StakingTransactorSession) DelegatorClaimReward(_nodeAddr common.Address) (*types.Transaction, error)

DelegatorClaimReward is a paid mutator transaction binding the contract method 0x1cac57ec.

Solidity: function delegatorClaimReward(_nodeAddr address) returns()

func (*StakingTransactorSession) DelegatorUnbond

func (_Staking *StakingTransactorSession) DelegatorUnbond(_tokenAmount *big.Int, _nodeAddr common.Address) (*types.Transaction, error)

DelegatorUnbond is a paid mutator transaction binding the contract method 0x95d516dd.

Solidity: function delegatorUnbond(_tokenAmount uint256, _nodeAddr address) returns()

func (*StakingTransactorSession) DelegatorWithdraw

func (_Staking *StakingTransactorSession) DelegatorWithdraw(_nodeAddr common.Address) (*types.Transaction, error)

DelegatorWithdraw is a paid mutator transaction binding the contract method 0xc314bb99.

Solidity: function delegatorWithdraw(_nodeAddr address) returns()

func (*StakingTransactorSession) Initialize

func (_Staking *StakingTransactorSession) Initialize(_dostoken common.Address, _dbtoken common.Address, _vault common.Address, _bridgeAddr common.Address) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0xf8c8765e.

Solidity: function initialize(_dostoken address, _dbtoken address, _vault address, _bridgeAddr address) returns()

func (*StakingTransactorSession) NewNode

func (_Staking *StakingTransactorSession) NewNode(_nodeAddr common.Address, _tokenAmount *big.Int, _dropburnAmount *big.Int, _rewardCut *big.Int, _desc string) (*types.Transaction, error)

NewNode is a paid mutator transaction binding the contract method 0x867f121a.

Solidity: function newNode(_nodeAddr address, _tokenAmount uint256, _dropburnAmount uint256, _rewardCut uint256, _desc string) returns()

func (*StakingTransactorSession) NodeClaimReward

func (_Staking *StakingTransactorSession) NodeClaimReward(_nodeAddr common.Address) (*types.Transaction, error)

NodeClaimReward is a paid mutator transaction binding the contract method 0xb41b0f96.

Solidity: function nodeClaimReward(_nodeAddr address) returns()

func (*StakingTransactorSession) NodeStart

func (_Staking *StakingTransactorSession) NodeStart(_nodeAddr common.Address) (*types.Transaction, error)

NodeStart is a paid mutator transaction binding the contract method 0x4c542d3d.

Solidity: function nodeStart(_nodeAddr address) returns()

func (*StakingTransactorSession) NodeStop

func (_Staking *StakingTransactorSession) NodeStop(_nodeAddr common.Address) (*types.Transaction, error)

NodeStop is a paid mutator transaction binding the contract method 0xc5375c29.

Solidity: function nodeStop(_nodeAddr address) returns()

func (*StakingTransactorSession) NodeUnbond

func (_Staking *StakingTransactorSession) NodeUnbond(_tokenAmount *big.Int, _dropburnAmount *big.Int, _nodeAddr common.Address) (*types.Transaction, error)

NodeUnbond is a paid mutator transaction binding the contract method 0x508b74fe.

Solidity: function nodeUnbond(_tokenAmount uint256, _dropburnAmount uint256, _nodeAddr address) returns()

func (*StakingTransactorSession) NodeUnregister

func (_Staking *StakingTransactorSession) NodeUnregister(_nodeAddr common.Address) (*types.Transaction, error)

NodeUnregister is a paid mutator transaction binding the contract method 0xa2772193.

Solidity: function nodeUnregister(_nodeAddr address) returns()

func (*StakingTransactorSession) NodeWithdraw

func (_Staking *StakingTransactorSession) NodeWithdraw(_nodeAddr common.Address) (*types.Transaction, error)

NodeWithdraw is a paid mutator transaction binding the contract method 0x4ecea80d.

Solidity: function nodeWithdraw(_nodeAddr address) returns()

func (*StakingTransactorSession) SetAdmin

func (_Staking *StakingTransactorSession) SetAdmin(newAdmin common.Address) (*types.Transaction, error)

SetAdmin is a paid mutator transaction binding the contract method 0x704b6c02.

Solidity: function setAdmin(newAdmin address) returns()

func (*StakingTransactorSession) SetCirculatingSupply

func (_Staking *StakingTransactorSession) SetCirculatingSupply(_newSupply *big.Int) (*types.Transaction, error)

SetCirculatingSupply is a paid mutator transaction binding the contract method 0xb1764071.

Solidity: function setCirculatingSupply(_newSupply uint256) returns()

func (*StakingTransactorSession) SetDropBurnMaxQuota

func (_Staking *StakingTransactorSession) SetDropBurnMaxQuota(_quota *big.Int) (*types.Transaction, error)

SetDropBurnMaxQuota is a paid mutator transaction binding the contract method 0x3f3381e1.

Solidity: function setDropBurnMaxQuota(_quota uint256) returns()

func (*StakingTransactorSession) SetMinStakePerNode

func (_Staking *StakingTransactorSession) SetMinStakePerNode(_minStake *big.Int) (*types.Transaction, error)

SetMinStakePerNode is a paid mutator transaction binding the contract method 0x8b0bc845.

Solidity: function setMinStakePerNode(_minStake uint256) returns()

func (*StakingTransactorSession) SetUnbondDuration

func (_Staking *StakingTransactorSession) SetUnbondDuration(_duration *big.Int) (*types.Transaction, error)

SetUnbondDuration is a paid mutator transaction binding the contract method 0xb16d2d58.

Solidity: function setUnbondDuration(_duration uint256) returns()

func (*StakingTransactorSession) UpdateNodeStaking

func (_Staking *StakingTransactorSession) UpdateNodeStaking(_nodeAddr common.Address, _newTokenAmount *big.Int, _newDropburnAmount *big.Int, _newCut *big.Int) (*types.Transaction, error)

UpdateNodeStaking is a paid mutator transaction binding the contract method 0x1ece5950.

Solidity: function updateNodeStaking(_nodeAddr address, _newTokenAmount uint256, _newDropburnAmount uint256, _newCut uint256) returns()

type StakingUnbond

type StakingUnbond struct {
	From           common.Address
	To             common.Address
	NodeRunner     bool
	TokenAmount    *big.Int
	DropburnAmount *big.Int
	Raw            types.Log // Blockchain specific contextual infos
}

StakingUnbond represents a Unbond event raised by the Staking contract.

type StakingUnbondIterator

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

StakingUnbondIterator is returned from FilterUnbond and is used to iterate over the raw logs and unpacked data for Unbond events raised by the Staking contract.

func (*StakingUnbondIterator) Close

func (it *StakingUnbondIterator) Close() error

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

func (*StakingUnbondIterator) Error

func (it *StakingUnbondIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*StakingUnbondIterator) Next

func (it *StakingUnbondIterator) 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 StakingUpdateCirculatingSupply

type StakingUpdateCirculatingSupply struct {
	OldCirculatingSupply *big.Int
	NewCirculatingSupply *big.Int
	Raw                  types.Log // Blockchain specific contextual infos
}

StakingUpdateCirculatingSupply represents a UpdateCirculatingSupply event raised by the Staking contract.

type StakingUpdateCirculatingSupplyIterator

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

StakingUpdateCirculatingSupplyIterator is returned from FilterUpdateCirculatingSupply and is used to iterate over the raw logs and unpacked data for UpdateCirculatingSupply events raised by the Staking contract.

func (*StakingUpdateCirculatingSupplyIterator) Close

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

func (*StakingUpdateCirculatingSupplyIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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

type StakingUpdateDropBurnMaxQuota struct {
	OldQuota *big.Int
	NewQuota *big.Int
	Raw      types.Log // Blockchain specific contextual infos
}

StakingUpdateDropBurnMaxQuota represents a UpdateDropBurnMaxQuota event raised by the Staking contract.

type StakingUpdateDropBurnMaxQuotaIterator

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

StakingUpdateDropBurnMaxQuotaIterator is returned from FilterUpdateDropBurnMaxQuota and is used to iterate over the raw logs and unpacked data for UpdateDropBurnMaxQuota events raised by the Staking contract.

func (*StakingUpdateDropBurnMaxQuotaIterator) Close

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

func (*StakingUpdateDropBurnMaxQuotaIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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

type StakingUpdateMinStakePerNode struct {
	OldMinStakePerNode *big.Int
	NewMinStakePerNode *big.Int
	Raw                types.Log // Blockchain specific contextual infos
}

StakingUpdateMinStakePerNode represents a UpdateMinStakePerNode event raised by the Staking contract.

type StakingUpdateMinStakePerNodeIterator

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

StakingUpdateMinStakePerNodeIterator is returned from FilterUpdateMinStakePerNode and is used to iterate over the raw logs and unpacked data for UpdateMinStakePerNode events raised by the Staking contract.

func (*StakingUpdateMinStakePerNodeIterator) Close

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

func (*StakingUpdateMinStakePerNodeIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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

type StakingUpdateStakingAdmin struct {
	OldAdmin common.Address
	NewAdmin common.Address
	Raw      types.Log // Blockchain specific contextual infos
}

StakingUpdateStakingAdmin represents a UpdateStakingAdmin event raised by the Staking contract.

type StakingUpdateStakingAdminIterator

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

StakingUpdateStakingAdminIterator is returned from FilterUpdateStakingAdmin and is used to iterate over the raw logs and unpacked data for UpdateStakingAdmin events raised by the Staking contract.

func (*StakingUpdateStakingAdminIterator) Close

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

func (*StakingUpdateStakingAdminIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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

type StakingUpdateUnbondDuration struct {
	OldDuration *big.Int
	NewDuration *big.Int
	Raw         types.Log // Blockchain specific contextual infos
}

StakingUpdateUnbondDuration represents a UpdateUnbondDuration event raised by the Staking contract.

type StakingUpdateUnbondDurationIterator

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

StakingUpdateUnbondDurationIterator is returned from FilterUpdateUnbondDuration and is used to iterate over the raw logs and unpacked data for UpdateUnbondDuration events raised by the Staking contract.

func (*StakingUpdateUnbondDurationIterator) Close

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

func (*StakingUpdateUnbondDurationIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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

type StakingWithdraw struct {
	From        common.Address
	To          common.Address
	NodeRunner  bool
	TokenAmount *big.Int
	DbAmount    *big.Int
	Raw         types.Log // Blockchain specific contextual infos
}

StakingWithdraw represents a Withdraw event raised by the Staking contract.

type StakingWithdrawIterator

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

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

func (*StakingWithdrawIterator) Close

func (it *StakingWithdrawIterator) Close() error

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

func (*StakingWithdrawIterator) Error

func (it *StakingWithdrawIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*StakingWithdrawIterator) Next

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

Jump to

Keyboard shortcuts

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