Documentation ¶
Index ¶
- Variables
- func CurrentSealedEpoch() common.Hash
- func FirstLockedUpEpoch() 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
- func (p *StakePos) Address() common.Hash
- func (p *StakePos) CreatedEpoch() common.Hash
- func (p *StakePos) CreatedTime() common.Hash
- func (p *StakePos) DeactivatedEpoch() common.Hash
- func (p *StakePos) DeactivatedTime() common.Hash
- func (p *StakePos) Field(offset int64) common.Hash
- func (p *StakePos) StakeAmount() common.Hash
- func (p *StakePos) Status() common.Hash
- 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 PreparedToWithdrawDelegation2 common.Hash WithdrawnStake common.Hash WithdrawnDelegation common.Hash ClaimedDelegationReward common.Hash ClaimedValidatorReward common.Hash UpdatedBaseRewardPerSec common.Hash UpdatedGasPowerAllocationRate common.Hash UpdatedOfflinePenaltyThreshold common.Hash UpdatedMinGasPrice common.Hash DeactivatedStake common.Hash DeactivatedDelegation common.Hash UpdatedStake common.Hash UpdatedDelegation common.Hash NetworkUpgradeActivated common.Hash CreatedWithdrawRequest common.Hash NetworkMigration 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)")), PreparedToWithdrawDelegation2: 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)")), UpdatedOfflinePenaltyThreshold: hash.Of([]byte("UpdatedOfflinePenaltyThreshold(uint256,uint256)")), UpdatedMinGasPrice: hash.Of([]byte("UpdatedMinGasPrice(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)")), NetworkUpgradeActivated: hash.Of([]byte("NetworkUpgradeActivated(uint256)")), CreatedWithdrawRequest: hash.Of([]byte("CreatedWithdrawRequest(address,address,uint256,uint256,bool,uint256)")), NetworkMigration: hash.Of([]byte("NetworkMigrationStarted(uint256)")), } )
Functions ¶
func CurrentSealedEpoch ¶
func FirstLockedUpEpoch ¶
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) DeactivatedEpoch ¶
func (*StakePos) DeactivatedTime ¶
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.