types

package
v0.2.2-alpha Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2020 License: BSD-2-Clause Imports: 14 Imported by: 6

Documentation

Index

Constants

View Source
const (
	CetCoinType           = 688
	CetFullFundraiserPath = "44'/688'/0'/0/0"
)
View Source
const (
	E8 = 100000000

	CET              = "cet"
	DefaultBondDenom = CET // default bond denomination
)
View Source
const (
	SymbolSeparator = "/"
)

Variables

View Source
var (
	// AddrLen defines a valid address length
	AddrLen = 20
	// Bech32MainPrefix defines the Bech32 prefix of an account's address
	Bech32MainPrefix = "coinex"
)

Functions

func ConcatKeys

func ConcatKeys(keys ...[]byte) []byte

Merge several byte slices into one

func ErrUnknownRequest

func ErrUnknownRequest(module string, msg sdk.Msg) sdk.Result

func GetSymbol

func GetSymbol(stock, money string) string

func InitSdkConfig

func InitSdkConfig()

Read in the configuration file for the sdk

func IsCET

func IsCET(coin sdk.Coin) bool

func NewCetCoin

func NewCetCoin(amount int64) sdk.Coin

func NewCetCoinE8

func NewCetCoinE8(amount int64) sdk.Coin

func NewCetCoins

func NewCetCoins(amount int64) sdk.Coins

func NewCetCoinsE8

func NewCetCoinsE8(amount int64) sdk.Coins

func NewCoins

func NewCoins(denom string, amount int64) sdk.Coins

func ResponseFrom

func ResponseFrom(err sdk.Error) abci.ResponseCheckTx

func SafeJSONMarshal

func SafeJSONMarshal(msg interface{}) []byte

func SplitSymbol

func SplitSymbol(symbol string) (stock, money string)

Types

type OrderedBasicManager

type OrderedBasicManager struct {
	module.BasicManager
	// contains filtered or unexported fields
}

func NewOrderedBasicManager

func NewOrderedBasicManager(modules []module.AppModuleBasic) OrderedBasicManager

func (OrderedBasicManager) AddQueryCommands

func (bm OrderedBasicManager) AddQueryCommands(rootQueryCmd *cobra.Command, cdc *codec.Codec)

func (OrderedBasicManager) AddTxCommands

func (bm OrderedBasicManager) AddTxCommands(rootTxCmd *cobra.Command, cdc *codec.Codec)

func (OrderedBasicManager) RegisterRESTRoutes

func (bm OrderedBasicManager) RegisterRESTRoutes(ctx context.CLIContext, rtr *mux.Router)

func (OrderedBasicManager) ValidateGenesis

func (bm OrderedBasicManager) ValidateGenesis(genesis map[string]json.RawMessage) error

Jump to

Keyboard shortcuts

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