Documentation ¶
Index ¶
Constants ¶
View Source
const (
ModuleName = "bank"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Balance ¶
type Balance struct { Address sdk.AccAddress `json:"address" yaml:"address"` Coins sdk.Coins `json:"coins" yaml:"coins"` }
func (Balance) GetAddress ¶
func (b Balance) GetAddress() sdk.AccAddress
type GenesisBalance ¶
type GenesisBalance interface { GetAddress() sdk.AccAddress GetCoins() sdk.Coins }
type GenesisState ¶
type GenesisState struct { SendEnabled bool `json:"send_enabled" yaml:"send_enabled"` Balances []Balance `json:"balances" yaml:"balances"` }
func Migrate ¶
func Migrate(bankGenState v038bank.GenesisState, authGenState v038auth.GenesisState) GenesisState
Migrate accepts exported x/auth and x/bank genesis state from v0.38 and migrates it to v0.39 x/bank genesis state. The migration includes:
- Moving balances from x/auth to x/bank genesis state.
func NewGenesisState ¶
func NewGenesisState(sendEnabled bool, balances []Balance) GenesisState
Click to show internal directories.
Click to hide internal directories.