Versions in this module Expand all Collapse all v1 v1.0.0 Jun 26, 2019 Changes in this version + const AddComputationCost + const AddValidator + const AddmodComputationCost + const AddressComputationCost + const AndComputationCost + const AspenNetworkId + const BFTMaximumExtraDataSize + const BalanceComputationCost + const BaobabNetworkId + const BigModExpBaseComputationCost + const BigModExpPerGasComputationCost + const BlockHashComputationCost + const BloomBitsBlocks + const Bn256AddComputationCost + const Bn256AddGas + const Bn256PairingBaseGas + const Bn256PairingPerPointGas + const Bn256ParingBaseComputationCost + const Bn256ParingPerPointComputationCost + const Bn256ScalarMulComputationCost + const Bn256ScalarMulGas + const ByteComputationCost + const CallCodeComputationCost + const CallComputationCost + const CallCreateDepth + const CallDataCopyComputationCost + const CallDataLoadComputationCost + const CallDataSizeComputationCost + const CallNewAccountGas + const CallStipend + const CallValueComputationCost + const CallValueTransferGas + const CallerComputationCost + const ChainDataAnchoringGas + const ChainIDBaobab + const CliqueEpoch + const CodeCopyComputationCost + const CodeSizeComputationCost + const CoinbaseComputationCost + const CommitteeSize + const ConstTxGasHumanReadable + const CopyGas + const Create2ComputationCost + const Create2Gas + const CreateComputationCost + const CreateDataGas + const CreateGas + const CypressNetworkId + const DefaultCNRewardRatio + const DefaultDefferedTxFee + const DefaultEpoch + const DefaultGovernanceMode + const DefaultGoverningNode + const DefaultKIRRewardRatio + const DefaultMintingAmount + const DefaultPeriod + const DefaultPoCRewardRatio + const DefaultProposerPolicy + const DefaultRatio + const DefaultSubGroupSize + const DefaultUnitPrice + const DefaultUseGiniCoeff + const DeferredTxFee + const DelegateCallComputationCost + const DifficultyComputationCost + const DivComputationCost + const Dup10ComputationCost + const Dup11ComputationCost + const Dup12ComputationCost + const Dup13ComputationCost + const Dup14ComputationCost + const Dup15ComputationCost + const Dup16ComputationCost + const Dup1ComputationCost + const Dup2ComputationCost + const Dup3ComputationCost + const Dup4ComputationCost + const Dup5ComputationCost + const Dup6ComputationCost + const Dup7ComputationCost + const Dup8ComputationCost + const Dup9ComputationCost + const EcrecoverComputationCost + const EcrecoverGas + const Epoch + const EpochDuration + const EqComputationCost + const ExpComputationCost + const ExpGas + const ExtCodeCopyComputationCost + const ExtCodeHashComputationCost + const ExtCodeSizeComputationCost + const FeePayerComputationCost + const FeePayerGas + const GKLAY + const GasComputationCost + const GasLimitBoundDivisor + const GasLimitComputationCost + const GasPriceComputationCost + const GenesisGasLimit + const GovernanceCacheLimit + const GovernanceCachePrefix + const GovernanceIdxCacheLimit + const GovernanceMode + const GovernanceMode_Ballot + const GovernanceMode_None + const GovernanceMode_Single + const GoverningNode + const Gpeb + const GtComputationCost + const IdentityBaseComputationCost + const IdentityBaseGas + const IdentityPerWordComputationCost + const IdentityPerWordGas + const IszeroComputationCost + const JumpComputationCost + const JumpDestComputationCost + const JumpdestGas + const JumpiComputationCost + const KKLAY + const KLAY + const Kpeb + const Log0ComputationCost + const Log1ComputationCost + const Log2ComputationCost + const Log3ComputationCost + const Log4ComputationCost + const LogDataGas + const LogGas + const LogTopicGas + const LtComputationCost + const MKLAY + const MaxCodeSize + const MaximumExtraDataSize + const MemoryGas + const MiliKLAY + const MinGasLimit + const MinimumStake + const MintingAmount + const MloadComputationCost + const ModComputationCost + const ModExpQuadCoeffDiv + const Mpeb + const MsizeComputationCost + const Mstore8ComputationCost + const MstoreComputationCost + const MulComputationCost + const MulmodComputationCost + const NotComputationCost + const NumberComputationCost + const OrComputationCost + const OriginComputationCost + const PcComputationCost + const Peb + const Policy + const PopComputationCost + const ProposerRefreshInterval + const PushComputationCost + const QuadCoeffDiv + const Ratio + const ReleaseNum + const RemoveValidator + const ReturnComputationCost + const ReturnDataCopyComputationCost + const ReturnDataSizeComputationCost + const RevertComputationCost + const RewardSliceCount + const Ripemd160BaseComputationCost + const Ripemd160BaseGas + const Ripemd160PerWordComputationCost + const Ripemd160PerWordGas + const RoundRobin + const SarComputationCost + const SdivComputationCost + const SelfDestructComputationCost + const SgtComputationCost + const Sha256BaseComputationCost + const Sha256BaseGas + const Sha256PerWordComputationCost + const Sha256PerWordGas + const Sha3ComputationCost + const Sha3Gas + const Sha3WordGas + const ShlComputationCost + const ShrComputationCost + const SignExtendComputationCost + const SloadComputationCost + const SltComputationCost + const SmodComputationCost + const SstoreClearGas + const SstoreComputationCost + const SstoreRefundGas + const SstoreResetGas + const SstoreSetGas + const StackLimit + const StakeUpdateInterval + const StaticCallComputationCost + const Sticky + const Ston + const StopComputationCost + const SubComputationCost + const SuicideRefundGas + const Swap10ComputationCost + const Swap11ComputationCost + const Swap12ComputationCost + const Swap13ComputationCost + const Swap14ComputationCost + const Swap15ComputationCost + const Swap16ComputationCost + const Swap1ComputationCost + const Swap2ComputationCost + const Swap3ComputationCost + const Swap4ComputationCost + const Swap5ComputationCost + const Swap6ComputationCost + const Swap7ComputationCost + const Swap8ComputationCost + const Swap9ComputationCost + const TimestampComputationCost + const TxAccountCreationGasDefault + const TxAccountCreationGasPerKey + const TxChainDataAnchoringGas + const TxDataGas + const TxDataNonZeroGas + const TxDataZeroGas + const TxGas + const TxGasAccountCreation + const TxGasAccountUpdate + const TxGasCancel + const TxGasContractCreation + const TxGasContractExecution + const TxGasFeeDelegated + const TxGasFeeDelegatedWithRatio + const TxGasValueTransfer + const TxValidationGasDefault + const TxValidationGasPerKey + const UKLAY + const UnitPrice + const UnusedNetworkId + const UpperGasLimit + const UseGiniCoeff + const VMLogBaseComputationCost + const VMLogBaseGas + const VMLogPerByteComputationCost + const VMLogPerByteGas + const VMLogToAll + const VMLogToFile + const VMLogToStdout + const ValidateSenderBaseComputationCost + const ValidateSenderGas + const ValidateSenderPerSigComputationCost + const VersionMajor + const VersionMinor + const VersionPatch + const WeightedRandom + const XorComputationCost + var AllCliqueProtocolChanges = &ChainConfig + var AllGxhashProtocolChanges = &ChainConfig + var AuthorAddressForTesting = common.HexToAddress("0xc0ea08a2d404d3172d2add29a45be56da40e2949") + var BFTTestChainConfig = &ChainConfig + var BaobabBootnodes = map[p2p.ConnType]bootnodesByTypes + var BlockScoreBoundDivisor = big.NewInt(2048) + var DefaultMintedKLAY = big.NewInt(0).Mul(big.NewInt(defaultMintedKLAYInSton), big.NewInt(Ston)) + var DurationLimit = big.NewInt(13) + var GasTableCypress = GasTable + var GenesisBlockScore = big.NewInt(131072) + var KIRContractIncentive = big.NewInt(0).Mul(big.NewInt(kirContractIncentiveInSton), big.NewInt(Ston)) + var MainnetBootnodes = map[p2p.ConnType]bootnodesByTypes + var MainnetChainConfig = &ChainConfig + var MainnetGenesisHash = common.HexToHash("// todo generate new hash for mainnet") + var MinimumBlockScore = big.NewInt(131072) + var OpcodeComputationCostLimit = uint64(100000000) + var PoCContractIncentive = big.NewInt(0).Mul(big.NewInt(pocContractIncentiveInSton), big.NewInt(Ston)) + var RewardContractIncentive = big.NewInt(0).Mul(big.NewInt(rewardContractIncentiveInSton), big.NewInt(Ston)) + var TargetGasLimit = GenesisGasLimit + var TestChainConfig = &ChainConfig + var TestRules = TestChainConfig.Rules(new(big.Int)) + var TestnetChainConfig = &ChainConfig + var TestnetGenesisHash = common.HexToHash("// todo generate new hash for testnet") + var TotalTimeLimit = 250 * time.Millisecond + var TxGasHumanReadable uint64 = 4000000000 + var VMLogTarget = 0x0 + var Version = func() string { ... }() + func CalcProposerBlockNumber(blockNum uint64) uint64 + func CalcStakingBlockNumber(blockNum uint64) uint64 + func GetMaximumExtraDataSize() uint64 + func IsProposerUpdateInterval(blockNum uint64) (bool, uint64) + func IsStakingUpdateInterval(blockNum uint64) bool + func ProposerUpdateInterval() uint64 + func SetProposerUpdateInterval(num uint64) + func SetStakingUpdateInterval(num uint64) + func StakingUpdateInterval() uint64 + func VersionWithCommit(gitCommit string) string + type ChainConfig struct + ChainID *big.Int + Clique *CliqueConfig + DeriveShaImpl int + Governance *GovernanceConfig + Gxhash *GxhashConfig + Istanbul *IstanbulConfig + UnitPrice uint64 + func (c *ChainConfig) CheckCompatible(newcfg *ChainConfig, height uint64) *ConfigCompatError + func (c *ChainConfig) GasTable(num *big.Int) GasTable + func (c *ChainConfig) Rules(num *big.Int) Rules + func (c *ChainConfig) String() string + type CliqueConfig struct + Epoch uint64 + Period uint64 + func (c *CliqueConfig) String() string + type CodeFormat uint8 + const CodeFormatEVM + const CodeFormatLast + func (t CodeFormat) String() string + func (t CodeFormat) Validate() bool + type ConfigCompatError struct + NewConfig *big.Int + RewindTo uint64 + StoredConfig *big.Int + What string + func (err *ConfigCompatError) Error() string + type EngineType int + const UseClique + const UseIstanbul + type GasTable struct + Balance uint64 + Calls uint64 + CreateBySuicide uint64 + ExpByte uint64 + ExtcodeCopy uint64 + ExtcodeHash uint64 + ExtcodeSize uint64 + SLoad uint64 + Suicide uint64 + type GovernanceConfig struct + GovernanceMode string + GoverningNode common.Address + Reward *RewardConfig + func (g *GovernanceConfig) Copy() *GovernanceConfig + func (g *GovernanceConfig) DeferredTxFee() bool + type GxhashConfig struct + func (c *GxhashConfig) String() string + type IstanbulConfig struct + Epoch uint64 + ProposerPolicy uint64 + SubGroupSize uint64 + func (c *IstanbulConfig) Copy() *IstanbulConfig + func (c *IstanbulConfig) String() string + type RewardConfig struct + DeferredTxFee bool + MinimumStake *big.Int + MintingAmount *big.Int + ProposerUpdateInterval uint64 + Ratio string + StakingUpdateInterval uint64 + UseGiniCoeff bool + type Rules struct + ChainID *big.Int