Versions in this module Expand all Collapse all v1 v1.0.0 Jan 6, 2023 Changes in this version + const BIP44HDPathEVOChain + const BaseDenomUnit + const Bech32PrefixAccAddr + const Bech32PrefixAccPub + const Bech32PrefixConsAddr + const Bech32PrefixConsPub + const Bech32PrefixValAddr + const Bech32PrefixValPub + const Bip44CoinType + const CloseMode + const CongestionHigherGpMode + const DefaultGasPrice + const DefaultRPCGasLimit + const EthAccountName + const EthBech32Prefix + const NativeToken + const NoGasUsedCap + const NormalGpMode + const ProtocolVersion + const RootCodespace + var BIP44HDPath = ethaccounts.DefaultBaseDerivationPath.String() + var ErrInvalidChainID = sdkerrors.Register(RootCodespace, 3, "invalid chain ID") + var ErrInvalidMsgType = sdkerrors.Register(RootCodespace, 5, "invalid message type") + var ErrInvalidValue = sdkerrors.Register(RootCodespace, 2, "invalid value") + var ErrVMExecution = sdkerrors.Register(RootCodespace, 4, "error while executing evm transaction") + func IsValidChainID(chainID string) bool + func IsValidateChainIdWithGenesisHeight(chainID string) error + func NewPhotonCoin(amount sdk.Int) sdk.Coin + func NewPhotonCoinInt64(amount int64) sdk.Coin + func NewPhotonDecCoin(amount sdk.Int) sdk.SysCoin + func ParseChainID(chainID string) (*big.Int, error) + func ProtoAccount() exported.Account + func RegisterCodec(cdc *codec.Codec) + func SetBech32Prefixes(config *sdk.Config) + func SetBip44CoinType(config *sdk.Config) + func SetChainId(chainid string) error + type BigIntArray []*big.Int + func (s BigIntArray) Len() int + func (s BigIntArray) Less(i, j int) bool + func (s BigIntArray) Swap(i, j int) + type BlockGPResults struct + func NewBlockGPResults(checkBlocksNum int) *BlockGPResults + func (rs *BlockGPResults) ExecuteSamplingBy(lastPrice *big.Int, adoptHigherGp bool) []*big.Int + func (rs *BlockGPResults) Pop() (*SingleBlockGPs, error) + func (rs *BlockGPResults) Push(gp *SingleBlockGPs) error + func (rs BlockGPResults) Cap() int + func (rs BlockGPResults) Front() int + func (rs BlockGPResults) IsEmpty() bool + func (rs BlockGPResults) IsFull() bool + func (rs BlockGPResults) Rear() int + type Code []byte + func (c Code) String() string + type EthAccount struct + CodeHash []byte + func (acc *EthAccount) SetBalance(denom string, amt sdk.Dec) + func (acc *EthAccount) UnmarshalFromAmino(cdc *amino.Codec, data []byte) error + func (acc *EthAccount) UnmarshalJSON(bz []byte) error + func (acc EthAccount) AminoSize(cdc *amino.Codec) int + func (acc EthAccount) Balance(denom string) sdk.Dec + func (acc EthAccount) Copy() sdk.Account + func (acc EthAccount) EthAddress() ethcmn.Address + func (acc EthAccount) IsContract() bool + func (acc EthAccount) MarshalAminoTo(cdc *amino.Codec, buf *bytes.Buffer) error + func (acc EthAccount) MarshalJSON() ([]byte, error) + func (acc EthAccount) MarshalToAmino(cdc *amino.Codec) ([]byte, error) + func (acc EthAccount) MarshalYAML() (interface{}, error) + func (acc EthAccount) String() string + type NodeMode string + const ArchiveNode + const FlagNodeMode + const InnertxNode + const RpcNode + const ValidatorNode + type SingleBlockGPs struct + func NewSingleBlockGPs() *SingleBlockGPs + func (bgp *SingleBlockGPs) AddSampledGP(gp *big.Int) + func (bgp *SingleBlockGPs) Clear() + func (bgp *SingleBlockGPs) Copy() *SingleBlockGPs + func (bgp *SingleBlockGPs) SampleGP(adoptHigherGp bool) + func (bgp *SingleBlockGPs) Update(gp *big.Int, gas uint64) + func (bgp SingleBlockGPs) GetAll() []*big.Int + func (bgp SingleBlockGPs) GetGasUsed() uint64 + func (bgp SingleBlockGPs) GetSampled() []*big.Int