Versions in this module Expand all Collapse all v1 v1.0.1 Nov 24, 2021 Changes in this version + const DefaultEventGas + const FakeNetworkID + const MainNetworkID + const TestNetworkID + var DefaultVMConfig = vm.Config + type BlocksMissed struct + BlocksNum idx.Block + Period inter.Timestamp + type BlocksRules struct + MaxBlockGas uint64 + MaxEmptyBlockSkipPeriod inter.Timestamp + type DagRules struct + MaxExtraData uint32 + MaxFreeParents idx.Event + MaxParents idx.Event + func DefaultDagRules() DagRules + type EconomyRules struct + BlockMissedSlack idx.Block + Gas GasRules + LongGasPower GasPowerRules + MinGasPrice *big.Int + ShortGasPower GasPowerRules + func DefaultEconomyRules() EconomyRules + func FakeEconomyRules() EconomyRules + type EpochsRules struct + MaxEpochDuration inter.Timestamp + MaxEpochGas uint64 + func DefaultEpochsRules() EpochsRules + func FakeNetEpochsRules() EpochsRules + type GasPowerRules struct + AllocPerSec uint64 + MaxAllocPeriod inter.Timestamp + MinStartupGas uint64 + StartupAllocPeriod inter.Timestamp + func DefaulLongGasPowerRules() GasPowerRules + func DefaultShortGasPowerRules() GasPowerRules + func FakeLongGasPowerRules() GasPowerRules + func FakeShortGasPowerRules() GasPowerRules + type GasRules struct + EventGas uint64 + ExtraDataGas uint64 + MaxEventGas uint64 + ParentGas uint64 + func DefaultGasRules() GasRules + type Genesis struct + Accounts genesis.Accounts + Blocks genesis.Blocks + Delegations genesis.Delegations + DriverOwner common.Address + ExtraData []byte + FirstEpoch idx.Epoch + Hash func() hash.Hash + PrevEpochTime inter.Timestamp + RawEvmItems genesis.RawEvmItems + Rules Rules + Storage genesis.Storage + Time inter.Timestamp + TotalSupply *big.Int + Validators gpos.Validators + type Rules RulesRLP + func FakeNetRules() Rules + func MainNetRules() Rules + func TestNetRules() Rules + func UpdateRules(src Rules, diff []byte) (res Rules, err error) + func (r *Rules) DecodeRLP(s *rlp.Stream) error + func (r Rules) Copy() Rules + func (r Rules) EncodeRLP(w io.Writer) error + func (r Rules) EvmChainConfig() *ethparams.ChainConfig + func (r Rules) String() string + type RulesRLP struct + Blocks BlocksRules + Dag DagRules + Economy EconomyRules + Epochs EpochsRules + Name string + NetworkID uint64 + Upgrades Upgrades + type Upgrades struct + Berlin bool