utils

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: May 23, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBoxInfo

func GetBoxInfo(cdc *codec.Codec, cliCtx context.CLIContext, box types.BoxInfo) fmt.Stringer

func GetBoxList

func GetBoxList(cdc *codec.Codec, cliCtx context.CLIContext, boxs types.BoxInfos, boxType string) fmt.Stringer

func GetCoinDecimal

func GetCoinDecimal(cdc *codec.Codec, cliCtx context.CLIContext, coin sdk.Coin) (uint, error)

func StructCopy

func StructCopy(destPtr interface{}, srcPtr interface{})

Types

type DepositBoxInfo

type DepositBoxInfo struct {
	BoxId         string           `json:"box_id"`
	BoxStatus     string           `json:"box_status"`
	Owner         sdk.AccAddress   `json:"owner"`
	Name          string           `json:"name"`
	BoxType       string           `json:"type"`
	CreatedTime   int64            `json:"created_time"`
	TotalAmount   types.BoxToken   `json:"total_amount"`
	Description   string           `json:"description"`
	TradeDisabled bool             `json:"trade_disabled"`
	Deposit       types.DepositBox `json:"deposit"`
}

func (DepositBoxInfo) String

func (bi DepositBoxInfo) String() string

nolint

type DepositBoxInfos

type DepositBoxInfos []DepositBoxInfo

func (DepositBoxInfos) String

func (bi DepositBoxInfos) String() string

nolint

type FutureBoxInfo

type FutureBoxInfo struct {
	BoxId         string          `json:"box_id"`
	BoxStatus     string          `json:"box_status"`
	Owner         sdk.AccAddress  `json:"owner"`
	Name          string          `json:"name"`
	BoxType       string          `json:"type"`
	CreatedTime   int64           `json:"created_time"`
	TotalAmount   types.BoxToken  `json:"total_amount"`
	Description   string          `json:"description"`
	TradeDisabled bool            `json:"trade_disabled"`
	Future        types.FutureBox `json:"future"`
}

func (FutureBoxInfo) String

func (bi FutureBoxInfo) String() string

nolint

type FutureBoxInfos

type FutureBoxInfos []FutureBoxInfo

func (FutureBoxInfos) String

func (bi FutureBoxInfos) String() string

nolint

type LockBoxInfo

type LockBoxInfo struct {
	BoxId         string         `json:"box_id"`
	BoxStatus     string         `json:"box_status"`
	Owner         sdk.AccAddress `json:"owner"`
	Name          string         `json:"name"`
	BoxType       string         `json:"type"`
	CreatedTime   int64          `json:"created_time"`
	TotalAmount   types.BoxToken `json:"total_amount"`
	Description   string         `json:"description"`
	TradeDisabled bool           `json:"trade_disabled"`
	Lock          types.LockBox  `json:"lock"`
}

func (LockBoxInfo) String

func (bi LockBoxInfo) String() string

nolint

type LockBoxInfos

type LockBoxInfos []LockBoxInfo

func (LockBoxInfos) String

func (bi LockBoxInfos) String() string

nolint

Jump to

Keyboard shortcuts

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