Versions in this module Expand all Collapse all v0 v0.5.6 Jul 16, 2024 v0.0.1 Jun 28, 2024 Changes in this version + const BalanceGasEIP150 + const BalanceGasEIP1884 + const BalanceGasFrontier + const BloomBitsBlocks + const BloomBitsBlocksClient + const BloomConfirms + const BloomTrieFrequency + const Bls12381G1AddGas + const Bls12381G1MulGas + const Bls12381G2AddGas + const Bls12381G2MulGas + const Bls12381MapG1Gas + const Bls12381MapG2Gas + const Bls12381PairingBaseGas + const Bls12381PairingPerPairGas + const Bn256AddGasByzantium + const Bn256AddGasIstanbul + const Bn256PairingBaseGasByzantium + const Bn256PairingBaseGasIstanbul + const Bn256PairingPerPointGasByzantium + const Bn256PairingPerPointGasIstanbul + const Bn256ScalarMulGasByzantium + const Bn256ScalarMulGasIstanbul + const CHTFrequency + const CallCreateDepth + const CallGasEIP150 + const CallGasFrontier + const CallNewAccountGas + const CallStipend + const CallValueTransferGas + const CheckpointFrequency + const CheckpointProcessConfirmations + const ColdAccountAccessCostEIP2929 + const ColdSloadCostEIP2929 + const CopyGas + const Create2Gas + const CreateBySelfdestructGas + const CreateDataGas + const CreateGas + const EcrecoverGas + const EpochDuration + const Ether + const ExpByteEIP158 + const ExpByteFrontier + const ExpByteGas + const ExpGas + const ExtcodeCopyBaseEIP150 + const ExtcodeCopyBaseFrontier + const ExtcodeHashGasConstantinople + const ExtcodeHashGasEIP1884 + const ExtcodeSizeGasEIP150 + const ExtcodeSizeGasFrontier + const FullImmutabilityThreshold + const GWei + const GasLimitBoundDivisor + const GenesisGasLimit + const HelperTrieConfirmations + const HelperTrieProcessConfirmations + const IdentityBaseGas + const IdentityPerWordGas + const InitCodeWordGas + const JumpdestGas + const Keccak256Gas + const Keccak256WordGas + const LightImmutabilityThreshold + const LogDataGas + const LogGas + const LogTopicGas + const MaxCodeSize + const MaxGasLimit + const MaxInitCodeSize + const MaximumExtraDataSize + const MemoryGas + const MinGasLimit + const NetSstoreCleanGas + const NetSstoreClearRefund + const NetSstoreDirtyGas + const NetSstoreInitGas + const NetSstoreNoopGas + const NetSstoreResetClearRefund + const NetSstoreResetRefund + const QuadCoeffDiv + const Ripemd160BaseGas + const Ripemd160PerWordGas + const SelfdestructGasEIP150 + const SelfdestructRefundGas + const Sha256BaseGas + const Sha256PerWordGas + const SloadGas + const SloadGasEIP150 + const SloadGasEIP1884 + const SloadGasEIP2200 + const SloadGasFrontier + const SstoreClearGas + const SstoreClearsScheduleRefundEIP2200 + const SstoreClearsScheduleRefundEIP3529 + const SstoreRefundGas + const SstoreResetGas + const SstoreResetGasEIP2200 + const SstoreSentryGasEIP2200 + const SstoreSetGas + const SstoreSetGasEIP2200 + const StackLimit + const TierStepGas + const TxAccessListAddressGas + const TxAccessListStorageKeyGas + const TxDataNonZeroGasEIP2028 + const TxDataNonZeroGasFrontier + const TxDataZeroGas + const TxGas + const TxGasContractCreation + const VersionMajor + const VersionMeta + const VersionMinor + const VersionPatch + const WarmStorageReadCostEIP2929 + const WarpDefaultQuorumNumerator + const WarpQuorumDenominator + const WarpQuorumNumeratorMinimum + const Wei + var Bls12381MultiExpDiscountTable = [128]uint64 + var DefaultFeeConfig = commontype.FeeConfig + var DifficultyBoundDivisor = big.NewInt(2048) + var DurationLimit = big.NewInt(13) + var DynamicFeeExtraDataSize = 80 + var GenesisDifficulty = big.NewInt(131072) + var LocalNetworkUpgrades = MandatoryNetworkUpgrades + var MainnetNetworkUpgrades = MandatoryNetworkUpgrades + var MinGasPrice int64 = 225_000_000_000 + var MinimumDifficulty = big.NewInt(131072) + var RollupWindow uint64 = 10 + var SubnetEVMChainID = big.NewInt(43214) + var SubnetEVMDefaultChainConfig = &ChainConfig + var TestChainConfig = &ChainConfig + var TestInitialBaseFee int64 = 225_000_000_000 + var TestMaxBaseFee int64 = 225_000_000_000 + var TestPreSubnetEVMConfig = &ChainConfig + var TestRules = TestChainConfig.OdysseyRules(new(big.Int), 0) + var TestSubnetEVMConfig = &ChainConfig + var TestnetNetworkUpgrades = MandatoryNetworkUpgrades + var UnitTestNetworkUpgrades = MandatoryNetworkUpgrades + var Version = func() string { ... }() + var VersionWithMeta = func() string { ... }() + func VersionWithCommit(gitCommit, gitDate string) string + type ChainConfig struct + AllowFeeRecipients bool + ByzantiumBlock *big.Int + ChainID *big.Int + ConstantinopleBlock *big.Int + EIP150Block *big.Int + EIP150Hash common.Hash + EIP155Block *big.Int + EIP158Block *big.Int + FeeConfig commontype.FeeConfig + GenesisPrecompiles Precompiles + HomesteadBlock *big.Int + IstanbulBlock *big.Int + MuirGlacierBlock *big.Int + PetersburgBlock *big.Int + func (c *ChainConfig) AllowedFeeRecipients() bool + func (c *ChainConfig) CheckCompatible(newcfg *ChainConfig, height uint64, time uint64) *ConfigCompatError + func (c *ChainConfig) CheckConfigForkOrder() error + func (c *ChainConfig) CheckPrecompilesCompatible(precompileUpgrades []PrecompileUpgrade, time uint64) *ConfigCompatError + func (c *ChainConfig) CheckStateUpgradesCompatible(stateUpgrades []StateUpgrade, lastTimestamp uint64) *ConfigCompatError + func (c *ChainConfig) Description() string + func (c *ChainConfig) EnabledStatefulPrecompiles(blockTimestamp uint64) Precompiles + func (c *ChainConfig) GetActivatingPrecompileConfigs(address common.Address, from *uint64, to uint64, upgrades []PrecompileUpgrade) []precompileconfig.Config + func (c *ChainConfig) GetActivatingStateUpgrades(from *uint64, to uint64, upgrades []StateUpgrade) []StateUpgrade + func (c *ChainConfig) GetFeeConfig() commontype.FeeConfig + func (c *ChainConfig) IsByzantium(num *big.Int) bool + func (c *ChainConfig) IsConstantinople(num *big.Int) bool + func (c *ChainConfig) IsDUpgrade(time uint64) bool + func (c *ChainConfig) IsEIP150(num *big.Int) bool + func (c *ChainConfig) IsEIP155(num *big.Int) bool + func (c *ChainConfig) IsEIP158(num *big.Int) bool + func (c *ChainConfig) IsHomestead(num *big.Int) bool + func (c *ChainConfig) IsIstanbul(num *big.Int) bool + func (c *ChainConfig) IsMuirGlacier(num *big.Int) bool + func (c *ChainConfig) IsPetersburg(num *big.Int) bool + func (c *ChainConfig) IsPrecompileEnabled(address common.Address, timestamp uint64) bool + func (c *ChainConfig) IsSubnetEVM(time uint64) bool + func (c *ChainConfig) OdysseyRules(blockNum *big.Int, timestamp uint64) Rules + func (c *ChainConfig) ToWithUpgradesJSON() *ChainConfigWithUpgradesJSON + func (c *ChainConfig) UnmarshalJSON(data []byte) error + func (c *ChainConfig) Verify() error + func (c ChainConfig) MarshalJSON() ([]byte, error) + type ChainConfigWithUpgradesJSON struct + UpgradeConfig UpgradeConfig + func (cu *ChainConfigWithUpgradesJSON) UnmarshalJSON(input []byte) error + func (cu ChainConfigWithUpgradesJSON) MarshalJSON() ([]byte, error) + type ConfigCompatError struct + NewBlock *big.Int + NewTime *uint64 + RewindToBlock uint64 + RewindToTime uint64 + StoredBlock *big.Int + StoredTime *uint64 + What string + func (err *ConfigCompatError) Error() string + type MandatoryNetworkUpgrades struct + DUpgradeTimestamp *uint64 + SubnetEVMTimestamp *uint64 + func (m *MandatoryNetworkUpgrades) CheckMandatoryCompatible(newcfg *MandatoryNetworkUpgrades, time uint64) *ConfigCompatError + type OdysseyContext struct + SnowCtx *snow.Context + type OptionalNetworkUpgrades struct + func (n *OptionalNetworkUpgrades) CheckOptionalCompatible(newcfg *OptionalNetworkUpgrades, time uint64) *ConfigCompatError + type PrecompileUpgrade struct + func (u *PrecompileUpgrade) MarshalJSON() ([]byte, error) + func (u *PrecompileUpgrade) UnmarshalJSON(data []byte) error + type Precompiles map[string]precompileconfig.Config + func (ccp *Precompiles) UnmarshalJSON(data []byte) error + type Rules struct + AccepterPrecompiles map[common.Address]precompileconfig.Accepter + ActivePrecompiles map[common.Address]precompileconfig.Config + ChainID *big.Int + IsByzantium bool + IsConstantinople bool + IsDUpgrade bool + IsEIP150 bool + IsEIP155 bool + IsEIP158 bool + IsHomestead bool + IsIstanbul bool + IsPetersburg bool + IsSubnetEVM bool + Predicates map[common.Address]precompileconfig.Predicater + func (r *Rules) IsPrecompileEnabled(addr common.Address) bool + func (r *Rules) PredicateExists(addr common.Address) bool + func (r *Rules) PredicatesExist() bool + type StateUpgrade struct + BlockTimestamp *uint64 + StateUpgradeAccounts map[common.Address]StateUpgradeAccount + func (s *StateUpgrade) Equal(other *StateUpgrade) bool + type StateUpgradeAccount struct + BalanceChange *math.HexOrDecimal256 + Code hexutil.Bytes + Storage map[common.Hash]common.Hash + type UpgradeConfig struct + OptionalNetworkUpgrades *OptionalNetworkUpgrades + PrecompileUpgrades []PrecompileUpgrade + StateUpgrades []StateUpgrade