Documentation ¶
Index ¶
- Variables
- func CurrentSealedEpoch() common.Hash
- func Owner() common.Hash
- func StakeTotalAmount() common.Hash
- func StakerID(vstaker common.Address) common.Hash
- func StakersLastID() common.Hash
- func StakersNum() common.Hash
- type EpochSnapshotPos
- func (p *EpochSnapshotPos) BaseRewardPerSecond() common.Hash
- func (p *EpochSnapshotPos) DelegationsTotalAmount() common.Hash
- func (p *EpochSnapshotPos) Duration() common.Hash
- func (p *EpochSnapshotPos) EndTime() common.Hash
- func (p *EpochSnapshotPos) EpochFee() common.Hash
- func (p *EpochSnapshotPos) Field(offset int64) common.Hash
- func (p *EpochSnapshotPos) StakeTotalAmount() common.Hash
- func (p *EpochSnapshotPos) TotalBaseRewardWeight() common.Hash
- func (p *EpochSnapshotPos) TotalSupply() common.Hash
- func (p *EpochSnapshotPos) TotalTxRewardWeight() common.Hash
- func (p *EpochSnapshotPos) ValidatorMerit(stakerID idx.StakerID) ValidatorMeritPos
- type StakePos
- type ValidatorMeritPos
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Topics of SFC contract logs Topics = struct { CreatedStake common.Hash IncreasedStake common.Hash CreatedDelegation common.Hash PreparedToWithdrawStake common.Hash PreparedToWithdrawDelegation common.Hash WithdrawnStake common.Hash WithdrawnDelegation common.Hash ClaimedDelegationReward common.Hash ClaimedValidatorReward common.Hash UpdatedBaseRewardPerSec common.Hash UpdatedGasPowerAllocationRate common.Hash DeactivatedStake common.Hash DeactivatedDelegation common.Hash UpdatedStake common.Hash UpdatedDelegation common.Hash }{ CreatedStake: hash.Of([]byte("CreatedStake(uint256,address,uint256)")), IncreasedStake: hash.Of([]byte("IncreasedStake(uint256,uint256,uint256)")), CreatedDelegation: hash.Of([]byte("CreatedDelegation(address,uint256,uint256)")), PreparedToWithdrawStake: hash.Of([]byte("PreparedToWithdrawStake(uint256)")), PreparedToWithdrawDelegation: hash.Of([]byte("PreparedToWithdrawDelegation(address, uint256)")), WithdrawnStake: hash.Of([]byte("WithdrawnStake(uint256,uint256)")), WithdrawnDelegation: hash.Of([]byte("WithdrawnDelegation(address,uint256,uint256)")), ClaimedDelegationReward: hash.Of([]byte("ClaimedDelegationReward(address,uint256,uint256,uint256,uint256)")), ClaimedValidatorReward: hash.Of([]byte("ClaimedValidatorReward(uint256,uint256,uint256,uint256)")), UpdatedBaseRewardPerSec: hash.Of([]byte("UpdatedBaseRewardPerSec(uint256)")), UpdatedGasPowerAllocationRate: hash.Of([]byte("UpdatedGasPowerAllocationRate(uint256,uint256)")), DeactivatedStake: hash.Of([]byte("DeactivatedStake(uint256)")), DeactivatedDelegation: hash.Of([]byte("DeactivatedDelegation(address,uint256)")), UpdatedStake: hash.Of([]byte("UpdatedStake(uint256,uint256,uint256)")), UpdatedDelegation: hash.Of([]byte("UpdatedDelegation(address,uint256,uint256,uint256)")), } )
Functions ¶
func CurrentSealedEpoch ¶
func StakeTotalAmount ¶
func StakersLastID ¶
func StakersNum ¶
Types ¶
type EpochSnapshotPos ¶
type EpochSnapshotPos struct {
// contains filtered or unexported fields
}
func EpochSnapshot ¶
func EpochSnapshot(epoch idx.Epoch) EpochSnapshotPos
func (*EpochSnapshotPos) BaseRewardPerSecond ¶
func (p *EpochSnapshotPos) BaseRewardPerSecond() common.Hash
func (*EpochSnapshotPos) DelegationsTotalAmount ¶
func (p *EpochSnapshotPos) DelegationsTotalAmount() common.Hash
func (*EpochSnapshotPos) Duration ¶
func (p *EpochSnapshotPos) Duration() common.Hash
func (*EpochSnapshotPos) EndTime ¶
func (p *EpochSnapshotPos) EndTime() common.Hash
func (*EpochSnapshotPos) EpochFee ¶
func (p *EpochSnapshotPos) EpochFee() common.Hash
func (*EpochSnapshotPos) StakeTotalAmount ¶
func (p *EpochSnapshotPos) StakeTotalAmount() common.Hash
func (*EpochSnapshotPos) TotalBaseRewardWeight ¶
func (p *EpochSnapshotPos) TotalBaseRewardWeight() common.Hash
func (*EpochSnapshotPos) TotalSupply ¶
func (p *EpochSnapshotPos) TotalSupply() common.Hash
func (*EpochSnapshotPos) TotalTxRewardWeight ¶
func (p *EpochSnapshotPos) TotalTxRewardWeight() common.Hash
func (*EpochSnapshotPos) ValidatorMerit ¶
func (p *EpochSnapshotPos) ValidatorMerit(stakerID idx.StakerID) ValidatorMeritPos
type StakePos ¶
type StakePos struct {
// contains filtered or unexported fields
}
func (*StakePos) CreatedEpoch ¶
func (*StakePos) CreatedTime ¶
func (*StakePos) StakeAmount ¶
type ValidatorMeritPos ¶
type ValidatorMeritPos struct {
// contains filtered or unexported fields
}
func (*ValidatorMeritPos) BaseRewardWeight ¶
func (p *ValidatorMeritPos) BaseRewardWeight() common.Hash
func (*ValidatorMeritPos) DelegatedMe ¶
func (p *ValidatorMeritPos) DelegatedMe() common.Hash
func (*ValidatorMeritPos) StakeAmount ¶
func (p *ValidatorMeritPos) StakeAmount() common.Hash
func (*ValidatorMeritPos) TxRewardWeight ¶
func (p *ValidatorMeritPos) TxRewardWeight() common.Hash
Click to show internal directories.
Click to hide internal directories.