Documentation ¶
Index ¶
Constants ¶
const ( // DefaultCodespace reserves a Codespace for Ethermint. DefaultCodespace sdk.CodespaceType = "ethermint" CodeInvalidValue sdk.CodeType = 1 CodeInvalidChainID sdk.CodeType = 2 )
Ethermint error codes
const ( // DenomDefault defines the single coin type/denomination supported in // Ethermint. DenomDefault = "Photon" )
Variables ¶
This section is empty.
Functions ¶
func ErrInvalidChainID ¶
ErrInvalidChainID returns a standardized SDK error resulting from an invalid chain ID.
func ErrInvalidValue ¶
ErrInvalidValue returns a standardized SDK error resulting from an invalid value.
func ProtoBaseAccount ¶
ProtoBaseAccount defines the prototype function for BaseAccount used for an account mapper.
func RegisterCodec ¶
RegisterCodec registers all the necessary types with amino for the given codec.
Types ¶
type Account ¶
type Account struct { *auth.BaseAccount // merkle root of the storage trie // // TODO: good chance we may not need this Root ethcmn.Hash CodeHash []byte }
BaseAccount implements the auth.Account interface and embeds an auth.BaseAccount type. It is compatible with the auth.AccountMapper.
func (Account) SetBalance ¶
SetBalance sets an account's balance.
type AppContext ¶
type AppContext struct { }
AppContext provides the ability for the application to pass around and obtain immutable objects easily. More importantly, it allows for the utilization of the object-capability model in which components gain access to other components for which they truly need.