Documentation ¶
Index ¶
- type AspenHfConfig
- type ChainConfig
- type DPOSConfig
- type FicusHfConfig
- type GenesisValidator
- type HardforksConfig
- func (c *HardforksConfig) IsAspenHardforkPartOne(block types.BlockNum) bool
- func (c *HardforksConfig) IsAspenHardforkPartTwo(block types.BlockNum) bool
- func (c *HardforksConfig) IsFicusHardfork(block types.BlockNum) bool
- func (c *HardforksConfig) IsFixClaimAllHardfork(block types.BlockNum) bool
- func (c *HardforksConfig) IsMagnoliaHardfork(block types.BlockNum) bool
- func (c *HardforksConfig) IsPhalaenopsisHardfork(block types.BlockNum) bool
- func (c *HardforksConfig) Rules(num types.BlockNum) vm.Rules
- type MagnoliaHfConfig
- type Redelegation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AspenHfConfig ¶
type ChainConfig ¶
type ChainConfig struct { EVMChainConfig params.ChainConfig GenesisBalances core.BalanceMap DPOS DPOSConfig Hardforks HardforksConfig }
func (*ChainConfig) GenesisBalancesSum ¶
func (self *ChainConfig) GenesisBalancesSum() *big.Int
func (*ChainConfig) RewardsEnabled ¶
func (self *ChainConfig) RewardsEnabled() bool
type DPOSConfig ¶
type DPOSConfig = struct { EligibilityBalanceThreshold *big.Int VoteEligibilityBalanceStep *big.Int ValidatorMaximumStake *big.Int MinimumDeposit *big.Int MaxBlockAuthorReward uint16 DagProposersReward uint16 CommissionChangeDelta uint16 CommissionChangeFrequency uint32 // [number of blocks] DelegationDelay uint32 // [number of blocks] DelegationLockingPeriod uint32 // [number of blocks] BlocksPerYear uint32 // [count] YieldPercentage uint16 // [%] InitialValidators []GenesisValidator }
type FicusHfConfig ¶
type GenesisValidator ¶
type HardforksConfig ¶
type HardforksConfig struct { FixRedelegateBlockNum uint64 Redelegations []Redelegation RewardsDistributionFrequency map[uint64]uint32 MagnoliaHf MagnoliaHfConfig PhalaenopsisHfBlockNum uint64 FixClaimAllBlockNum uint64 AspenHf AspenHfConfig FicusHf FicusHfConfig }
func (*HardforksConfig) IsAspenHardforkPartOne ¶
func (c *HardforksConfig) IsAspenHardforkPartOne(block types.BlockNum) bool
func (*HardforksConfig) IsAspenHardforkPartTwo ¶
func (c *HardforksConfig) IsAspenHardforkPartTwo(block types.BlockNum) bool
func (*HardforksConfig) IsFicusHardfork ¶
func (c *HardforksConfig) IsFicusHardfork(block types.BlockNum) bool
func (*HardforksConfig) IsFixClaimAllHardfork ¶
func (c *HardforksConfig) IsFixClaimAllHardfork(block types.BlockNum) bool
func (*HardforksConfig) IsMagnoliaHardfork ¶
func (c *HardforksConfig) IsMagnoliaHardfork(block types.BlockNum) bool
func (*HardforksConfig) IsPhalaenopsisHardfork ¶
func (c *HardforksConfig) IsPhalaenopsisHardfork(block types.BlockNum) bool
type MagnoliaHfConfig ¶
Click to show internal directories.
Click to hide internal directories.