v0_11

package
v0.0.0-...-a8d0dae Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const ModuleName = "token"

Variables

This section is empty.

Functions

This section is empty.

Types

type GenesisState

type GenesisState struct {
	Params       v0_10.Params     `json:"params"`
	Tokens       []Token          `json:"tokens"`
	LockedAssets []v0_10.AccCoins `json:"locked_assets"`
	LockedFees   []v0_10.AccCoins `json:"locked_fees"`
}

all state that must be provided in genesis file

func Migrate

func Migrate(oldGenState v0_10.GenesisState) GenesisState

type Token

type Token struct {
	Description         string         `json:"description" v2:"description"`                     // e.g. "OMEX Token"
	Symbol              string         `json:"symbol" v2:"symbol"`                               // e.g. "omt"
	OriginalSymbol      string         `json:"original_symbol" v2:"original_symbol"`             // e.g. "OMT"
	WholeName           string         `json:"whole_name" v2:"whole_name"`                       // e.g. "OMT"
	OriginalTotalSupply sdk.Dec        `json:"original_total_supply" v2:"original_total_supply"` // e.g. 1000000000.00000000
	Owner               sdk.AccAddress `json:"owner" v2:"owner"`                                 // e.g. omexchain1upyg3vl6vqaxqvzts69zpus2c027p7paw63s99
	Mintable            bool           `json:"mintable" v2:"mintable"`                           // e.g. false
}

Jump to

Keyboard shortcuts

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