Versions in this module Expand all Collapse all v0 v0.6.3 Nov 22, 2024 Changes in this version + const BalanceGasEIP150 + const BalanceGasEIP1884 + const BalanceGasFrontier + const BlobTxBlobGasPerBlob + const BlobTxBlobGaspriceUpdateFraction + const BlobTxBytesPerFieldElement + const BlobTxFieldElementsPerBlob + const BlobTxHashVersion + const BlobTxMinBlobGasprice + const BlobTxPointEvaluationPrecompileGas + const BlobTxTargetBlobGasPerBlock + 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 MaxBlobGasPerBlock + 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 RefundQuotient + const RefundQuotientEIP3529 + 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 Wei + var BeaconRootsStorageAddress = common.HexToAddress("0x000F3df6D732807Ef1319fB7B8bB8522d0Beac02") + var Bls12381MultiExpDiscountTable = [128]uint64 + var DefaultFeeConfig = commontype.FeeConfig + var DefaultGenesisTime = version.DefaultUpgradeTime + var DifficultyBoundDivisor = big.NewInt(2048) + var DurationLimit = big.NewInt(13) + var DynamicFeeExtraDataSize = 80 + var GenesisDifficulty = big.NewInt(131072) + 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 SystemAddress common.Address = common.HexToAddress("0xfffffffffffffffffffffffffffffffffffffffe") + var TestChainConfig = &ChainConfig + var TestInitialBaseFee int64 = 225_000_000_000 + var TestMaxBaseFee int64 = 225_000_000_000 + var TestPreSubnetEVMConfig = &ChainConfig + var TestRules = TestChainConfig.Rules(new(big.Int), 0) + var TestSubnetEVMConfig = &ChainConfig + var Version = func() string { ... }() + var VersionWithMeta = func() string { ... }() + func VersionWithCommit(gitCommit, gitDate string) string + type AvalancheContext struct + SnowCtx *snow.Context + type AvalancheRules struct + IsDurango bool + IsEUpgrade bool + IsSubnetEVM bool + type ChainConfig struct + AllowFeeRecipients bool + ByzantiumBlock *big.Int + CancunTime *uint64 + ChainID *big.Int + ConstantinopleBlock *big.Int + EIP150Block *big.Int + EIP155Block *big.Int + EIP158Block *big.Int + FeeConfig commontype.FeeConfig + GenesisPrecompiles Precompiles + HomesteadBlock *big.Int + IstanbulBlock *big.Int + MuirGlacierBlock *big.Int + PetersburgBlock *big.Int + VerkleTime *uint64 + 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) IsCancun(num *big.Int, time uint64) bool + func (c *ChainConfig) IsConstantinople(num *big.Int) 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) IsVerkle(num *big.Int, time uint64) bool + func (c *ChainConfig) Rules(blockNum *big.Int, timestamp uint64) Rules + func (c *ChainConfig) SetEVMUpgrades(avalancheUpgrades NetworkUpgrades) + func (c *ChainConfig) SetNetworkUpgradeDefaults() + 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 NetworkUpgrades struct + DurangoTimestamp *uint64 + EUpgradeTimestamp *uint64 + SubnetEVMTimestamp *uint64 + func (n *NetworkUpgrades) CheckNetworkUpgradesCompatible(newcfg *NetworkUpgrades, time uint64) *ConfigCompatError + func (n *NetworkUpgrades) Description() string + func (n *NetworkUpgrades) Equal(other *NetworkUpgrades) bool + func (n *NetworkUpgrades) GetAvalancheRules(time uint64) AvalancheRules + func (n *NetworkUpgrades) IsDurango(time uint64) bool + func (n *NetworkUpgrades) IsEUpgrade(time uint64) bool + func (n *NetworkUpgrades) IsSubnetEVM(time uint64) bool + func (n *NetworkUpgrades) Override(o *NetworkUpgrades) + 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 + IsCancun bool + IsConstantinople bool + IsEIP150 bool + IsEIP155 bool + IsEIP158 bool + IsHomestead bool + IsIstanbul bool + IsPetersburg bool + Predicaters map[common.Address]precompileconfig.Predicater + func (r *Rules) IsPrecompileEnabled(addr common.Address) bool + func (r *Rules) PredicaterExists(addr common.Address) bool + func (r *Rules) PredicatersExist() 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 + NetworkUpgradeOverrides *NetworkUpgrades + PrecompileUpgrades []PrecompileUpgrade + StateUpgrades []StateUpgrade