package
0.1.0
Repository: https://github.com/brc20-collab/brczero.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
IsValidChainID returns false if the given chain identifier is incorrectly formatted.
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.
No description provided by the author

# Constants

No description provided by the author
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.
No description provided by the author
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.
node mode flag.
No description provided by the author
NativeToken defines the default coin denomination used in brczero 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 brczero.
ProtocolVersion is the latest supported version of the eth protocol.
RootCodespace is the codespace for all errors defined in this package.
node mode values.
No description provided by the author

# Variables

BIP44HDPath is the BIP44 HD path used on Ethereum.
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.
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.
No description provided by the author