package
0.4.1
Repository: https://github.com/cosmos/ethermint.git
Documentation: pkg.go.dev

# Functions

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.
RegisterCodec registers the account interfaces and concrete types on the provided Amino codec.
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.

# 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.
EthAccountName is the amino encoding name for EthAccount.
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.
ErrInvalidChainID returns an error resulting from an invalid chain ID.
ErrInvalidValue returns an error resulting from an invalid value.
ErrVMExecution returns an error resulting from an error in EVM execution.

# Structs

EthAccount implements the auth.Account interface and embeds an auth.BaseAccount type.

# Type aliases

Code is account Code type alias.