Documentation ¶
Index ¶
- func NewApp1(logger log.Logger, db dbm.DB) *bapp.BaseApp
- func NewApp2(logger log.Logger, db dbm.DB) *bapp.BaseApp
- func NewApp3(logger log.Logger, db dbm.DB) *bapp.BaseApp
- func NewApp4(logger log.Logger, db dbm.DB) *bapp.BaseApp
- func NewCodec() *codec.Codec
- func NewInitChainer(cdc *codec.Codec, accountKeeper auth.AccountKeeper) sdk.InitChainer
- func UpdatedCodec() *codec.Codec
- type GenesisAccount
- type GenesisState
- type MsgIssue
- type MsgSend
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewInitChainer ¶
func NewInitChainer(cdc *codec.Codec, accountKeeper auth.AccountKeeper) sdk.InitChainer
InitChainer will set initial balances for accounts as well as initial coin metadata MsgIssue can no longer be used to create new coin
func UpdatedCodec ¶ added in v0.24.0
Update codec from app2 to register imported modules
Types ¶
type GenesisAccount ¶
type GenesisAccount struct { Address sdk.AccAddress `json:"address"` Coins sdk.Coins `json:"coins"` }
GenesisAccount doesn't need pubkey or sequence
func (*GenesisAccount) ToAccount ¶
func (ga *GenesisAccount) ToAccount() (acc *auth.BaseAccount, err error)
Converts GenesisAccount to auth.BaseAccount for storage in account store
type GenesisState ¶
type GenesisState struct {
Accounts []*GenesisAccount `json:"accounts"`
}
Application state at Genesis has accounts with starting balances
type MsgIssue ¶
type MsgIssue struct { Issuer sdk.AccAddress Receiver sdk.AccAddress Coin sdk.Coin }
MsgIssue to allow a registered issuer to issue new coins.
func (MsgIssue) GetSignBytes ¶
Implements Msg. Get canonical sign bytes for MsgIssue
func (MsgIssue) GetSigners ¶
func (msg MsgIssue) GetSigners() []sdk.AccAddress
Implements Msg. Return the signer.
func (MsgIssue) ValidateBasic ¶
Implements Msg. Ensures addresses are valid and Coin is positive
type MsgSend ¶
type MsgSend struct { From sdk.AccAddress `json:"from"` To sdk.AccAddress `json:"to"` Amount sdk.Coins `json:"amount"` }
MsgSend to send coins from Input to Output
func (MsgSend) GetSignBytes ¶
Implements Msg. JSON encode the message.
func (MsgSend) GetSigners ¶
func (msg MsgSend) GetSigners() []sdk.AccAddress
Implements Msg. Return the signer.
func (MsgSend) ValidateBasic ¶
Implements Msg. Ensure the addresses are good and the amount is positive.