# Functions
BlockGasLimit returns the max gas (limit) defined in the block gas meter.
GenerateRandomChainID returns a random chain-id in the valid format.
IsEmptyHash returns true if the hash corresponds to an empty ethereum hex hash.
IsValidChainID returns false if the given chain identifier is incorrectly formatted.
IsZeroAddress returns true if the address corresponds to an empty ethereum hex address.
NewPhotonCoin is a utility function that returns an "aphoton" coin with the given sdk.Int amount.
NewPhotonCoinInt64 is a utility function that returns an "aphoton" coin with the given int64 amount.
NewPhotonDecCoin is a utility function that returns an "aphoton" decimal coin with the given sdk.Int amount.
ParseChainID parses a string chain identifier's epoch to an Ethereum-compatible chain-id in *big.Int format.
ProtoAccount defines the prototype function for BaseAccount used for an AccountKeeper.
RegisterInterfaces registers the tendermint concrete client-related implementations and interfaces.
SetBech32Prefixes sets the global prefixes to be used when serializing addresses and public keys to Bech32 strings.
SetBip44CoinType sets the global coin type to be used in hierarchical deterministic wallets.
ValidateAddress returns an error if the provided string is either not a hex formatted string address.
# Constants
AttoPhoton defines the default coin denomination used in Ethermint in:
- Staking parameters: denomination used as stake in the dPoS chain - Mint parameters: denomination minted due to fee distribution rewards - Governance parameters: denomination used for spam prevention in proposal deposits - Crisis parameters: constant fee denomination used for spam prevention to check broken invariant - EVM parameters: denomination used for running EVM state transitions in Ethermint.
BaseDenomUnit defines the base denomination unit for Photons.
Bech32PrefixAccAddr defines the Bech32 prefix of an account's address.
Bech32PrefixAccPub defines the Bech32 prefix of an account's public key.
Bech32PrefixConsAddr defines the Bech32 prefix of a consensus node address.
Bech32PrefixConsPub defines the Bech32 prefix of a consensus node public key.
Bech32PrefixValAddr defines the Bech32 prefix of a validator's operator address.
Bech32PrefixValPub defines the Bech32 prefix of a validator's operator public key.
Bip44CoinType satisfies EIP84.
DefaultGasPrice is default gas price for evm transactions.
DefaultRPCGasLimit is default gas limit for RPC call operations.
EthBech32Prefix defines the Bech32 prefix used for EthAccounts.
ProtocolVersion is the latest supported version of the eth protocol.
RootCodespace is the codespace for all errors defined in this package.
# Variables
BIP44HDPath is the BIP44 HD path used on Ethereum.
No description provided by the author
ErrInvalidChainID returns an error resulting from an invalid chain ID.
No description provided by the author
ErrInvalidValue returns an error resulting from an invalid value.
ErrMarshalBigInt returns an error resulting from marshaling a big.Int to a string.
No description provided by the author
ErrUnmarshalBigInt returns an error resulting from unmarshaling a big.Int from a string.
PowerReduction defines the default power reduction value for staking.
# Structs
EthAccount implements the authtypes.AccountI interface and embeds an authtypes.BaseAccount type.
# Type aliases
Code is account Code type alias.