Versions in this module Expand all Collapse all v0 v0.0.2 Oct 1, 2024 Changes in this version + const GovernanceAddressDefault + const GovernanceAddressMannet + const LpAddressDefault + const LpAddressMainnet v0.0.1 Jun 25, 2024 Changes in this version + const ApricotPhase1GasLimit + const ApricotPhase1MinGasPrice + const ApricotPhase3ExtraDataSize + const ApricotPhase3InitialBaseFee + const ApricotPhase3MaxBaseFee + const ApricotPhase3MinBaseFee + const ApricotPhase3TargetGas + const ApricotPhase4BaseFeeChangeDenominator + const ApricotPhase4MaxBaseFee + const ApricotPhase4MinBaseFee + const ApricotPhase5BaseFeeChangeDenominator + const ApricotPhase5TargetGas + const AssetBalanceApricot + const AssetCallApricot + const AtomicTxBaseCost + const BalanceGasEIP150 + const BalanceGasEIP1884 + const BalanceGasFrontier + const BlobTxDataGasPerBlob + const BlobTxDataGaspriceUpdateFraction + const BlobTxMinDataGasprice + 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 CortinaGasLimit + 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 GovernanceAddress + const HelperTrieConfirmations + const HelperTrieProcessConfirmations + const IdentityBaseGas + const IdentityPerWordGas + const InitCodeWordGas + const JumpdestGas + const Keccak256Gas + const Keccak256WordGas + const LaunchMinGasPrice + const LightImmutabilityThreshold + const LogDataGas + const LogGas + const LogTopicGas + const LpAddress + const MaxCodeHashesPerRequest + 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 OdysseyAtomicTxFee + 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 Wei + var AllocationDenominator *big.Int = big.NewInt(100_000) + var AtomicGasLimit *big.Int = big.NewInt(100_000) + var Bls12381MultiExpDiscountTable = [128]uint64 + var DifficultyBoundDivisor = big.NewInt(2048) + var DurationLimit = big.NewInt(13) + var GenesisDifficulty = big.NewInt(131072) + var GovernanceAllocation *big.Int = big.NewInt(50_000) + var LpAllocation *big.Int = big.NewInt(25_000) + var MaxOrionAllocation *big.Int = big.NewInt(25_000) + var MinimumDifficulty = big.NewInt(131072) + var OdysseyLocalChainConfig = &ChainConfig + var OdysseyLocalChainID = big.NewInt(131312) + var OdysseyMainnetChainConfig = &ChainConfig + var OdysseyMainnetChainID = big.NewInt(153153) + var OdysseyTestnetChainConfig = &ChainConfig + var OdysseyTestnetChainID = big.NewInt(131313) + var OrionAllocation *big.Int = big.NewInt(5_000) + var OrionGetter = NewOrionGetter(orionContractAddress, orionLastUpdateTimestampSlot, orionNodesSlot) + var PriorityFeeOrionAllocation *big.Int = big.NewInt(5_000) + var TestApricotPhase1Config = &ChainConfig + var TestApricotPhase2Config = &ChainConfig + var TestApricotPhase3Config = &ChainConfig + var TestApricotPhase4Config = &ChainConfig + var TestApricotPhase5Config = &ChainConfig + var TestApricotPhase6Config = &ChainConfig + var TestApricotPhasePost6Config = &ChainConfig + var TestApricotPhasePre6Config = &ChainConfig + var TestBanffChainConfig = &ChainConfig + var TestChainConfig = &ChainConfig + var TestCortinaChainConfig = &ChainConfig + var TestDUpgradeChainConfig = &ChainConfig + var TestLaunchConfig = &ChainConfig + var TestRules = TestChainConfig.OdysseyRules(new(big.Int), 0) + var Version = func() string { ... }() + var VersionWithMeta = func() string { ... }() + func VersionWithCommit(gitCommit, gitDate string) string + type ChainConfig struct + ApricotPhase1BlockTimestamp *uint64 + ApricotPhase2BlockTimestamp *uint64 + ApricotPhase3BlockTimestamp *uint64 + ApricotPhase4BlockTimestamp *uint64 + ApricotPhase5BlockTimestamp *uint64 + ApricotPhase6BlockTimestamp *uint64 + ApricotPhasePost6BlockTimestamp *uint64 + ApricotPhasePre6BlockTimestamp *uint64 + BanffBlockTimestamp *uint64 + ByzantiumBlock *big.Int + CancunTime *uint64 + ChainID *big.Int + ConstantinopleBlock *big.Int + CortinaBlockTimestamp *uint64 + DAOForkBlock *big.Int + DAOForkSupport bool + DUpgradeBlockTimestamp *uint64 + EIP150Block *big.Int + EIP155Block *big.Int + EIP158Block *big.Int + HomesteadBlock *big.Int + IstanbulBlock *big.Int + MuirGlacierBlock *big.Int + PetersburgBlock *big.Int + func (c *ChainConfig) AllocationDenominator(time uint64) *big.Int + func (c *ChainConfig) CheckCompatible(newcfg *ChainConfig, height uint64, time uint64) *ConfigCompatError + func (c *ChainConfig) CheckConfigForkOrder() error + func (c *ChainConfig) CheckConfigurePrecompiles(parentTimestamp *uint64, blockContext precompile.BlockContext, ...) + func (c *ChainConfig) Description() string + func (c *ChainConfig) GovernanceAddress(time uint64) common.Address + func (c *ChainConfig) GovernanceAllocation(time uint64) *big.Int + func (c *ChainConfig) IsApricotPhase1(time uint64) bool + func (c *ChainConfig) IsApricotPhase2(time uint64) bool + func (c *ChainConfig) IsApricotPhase3(time uint64) bool + func (c *ChainConfig) IsApricotPhase4(time uint64) bool + func (c *ChainConfig) IsApricotPhase5(time uint64) bool + func (c *ChainConfig) IsApricotPhase6(time uint64) bool + func (c *ChainConfig) IsApricotPhasePost6(time uint64) bool + func (c *ChainConfig) IsApricotPhasePre6(time uint64) bool + func (c *ChainConfig) IsBanff(time uint64) bool + func (c *ChainConfig) IsByzantium(num *big.Int) bool + func (c *ChainConfig) IsCancun(time uint64) bool + func (c *ChainConfig) IsConstantinople(num *big.Int) bool + func (c *ChainConfig) IsCortina(time uint64) bool + func (c *ChainConfig) IsDAOFork(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) LpAddress(time uint64) common.Address + func (c *ChainConfig) LpAllocation(time uint64) *big.Int + func (c *ChainConfig) MaxOrionAllocation(time uint64) *big.Int + func (c *ChainConfig) OdysseyRules(blockNum *big.Int, timestamp uint64) Rules + func (c *ChainConfig) OrionAllocation(time uint64) *big.Int + func (c *ChainConfig) OrionNodesGetter(time uint64) OrionNodesGetter + func (c *ChainConfig) PriorityFeeOrionAllocation(time uint64) *big.Int + 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 OdysseyContext struct + BlockchainID common.Hash + type OrionNodesGetter interface + GetLastUpdateTimestamp func(stateGetter) uint64 + GetNodesList func(stateGetter) []ids.NodeID + func NewOrionGetter(contract common.Address, lastUpdateSlot, orionsListSlot common.Hash) OrionNodesGetter + type Rules struct + AllocationDenominator *big.Int + ChainID *big.Int + GovernanceAddress common.Address + GovernanceAllocation *big.Int + IsApricotPhase1 bool + IsApricotPhase2 bool + IsApricotPhase3 bool + IsApricotPhase4 bool + IsApricotPhase5 bool + IsApricotPhase6 bool + IsApricotPhasePost6 bool + IsApricotPhasePre6 bool + IsBanff bool + IsByzantium bool + IsCancun bool + IsConstantinople bool + IsCortina bool + IsDUpgrade bool + IsEIP150 bool + IsEIP155 bool + IsEIP158 bool + IsHomestead bool + IsIstanbul bool + IsPetersburg bool + LpAddress common.Address + LpAllocation *big.Int + MaxOrionAllocation *big.Int + OrionAllocation *big.Int + OrionNodes OrionNodesGetter + Precompiles map[common.Address]precompile.StatefulPrecompiledContract + PriorityFeeOrionAllocation *big.Int