sfcpos

package
v1.0.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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 CurrentSealedEpoch() common.Hash

func FirstLockedUpEpoch

func FirstLockedUpEpoch() common.Hash

func Owner

func Owner() common.Hash

func StakeTotalAmount

func StakeTotalAmount() common.Hash

func StakerID

func StakerID(vstaker common.Address) common.Hash

func StakersLastID

func StakersLastID() common.Hash

func StakersNum

func StakersNum() common.Hash

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) Field

func (p *EpochSnapshotPos) Field(offset int64) 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 Staker

func Staker(stakerID idx.StakerID) StakePos

func (*StakePos) Address

func (p *StakePos) Address() common.Hash

func (*StakePos) CreatedEpoch

func (p *StakePos) CreatedEpoch() common.Hash

func (*StakePos) CreatedTime

func (p *StakePos) CreatedTime() common.Hash

func (*StakePos) DeactivatedEpoch

func (p *StakePos) DeactivatedEpoch() common.Hash

func (*StakePos) DeactivatedTime

func (p *StakePos) DeactivatedTime() common.Hash

func (*StakePos) Field

func (p *StakePos) Field(offset int64) common.Hash

func (*StakePos) StakeAmount

func (p *StakePos) StakeAmount() common.Hash

func (*StakePos) Status

func (p *StakePos) Status() common.Hash

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) Field

func (p *ValidatorMeritPos) Field(offset int64) common.Hash

func (*ValidatorMeritPos) StakeAmount

func (p *ValidatorMeritPos) StakeAmount() common.Hash

func (*ValidatorMeritPos) TxRewardWeight

func (p *ValidatorMeritPos) TxRewardWeight() common.Hash

Jump to

Keyboard shortcuts

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