v039

package
v0.0.0-...-7c30539 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 25, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

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

func (Balance) GetCoins

func (b Balance) GetCoins() sdk.Coins

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL