types

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2019 License: BSD-2-Clause Imports: 14 Imported by: 0

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 added in v0.0.17

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

Merge several byte slices into one

func ErrUnknownRequest added in v0.0.17

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

func GetSymbol added in v0.0.17

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 ResponseFrom added in v0.0.13

func ResponseFrom(err sdk.Error) abci.ResponseCheckTx

func SafeJSONMarshal added in v0.0.15

func SafeJSONMarshal(msg interface{}) []byte

func SplitSymbol added in v0.0.17

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

Types

type OrderedBasicManager added in v0.0.15

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

func NewOrderedBasicManager added in v0.0.15

func NewOrderedBasicManager(modules []module.AppModuleBasic) OrderedBasicManager

func (OrderedBasicManager) AddQueryCommands added in v0.0.15

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

func (OrderedBasicManager) AddTxCommands added in v0.0.15

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

func (OrderedBasicManager) RegisterRESTRoutes added in v0.0.15

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

func (OrderedBasicManager) ValidateGenesis added in v0.0.15

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