Documentation
¶
Index ¶
- func GetBoxInfo(cdc *codec.Codec, cliCtx context.CLIContext, box types.BoxInfo) fmt.Stringer
- func GetBoxList(cdc *codec.Codec, cliCtx context.CLIContext, boxs types.BoxInfos, ...) fmt.Stringer
- func GetCliContext(cdc *codec.Codec) (authtxb.TxBuilder, context.CLIContext, auth.Account, error)
- func GetCoinDecimal(cdc *codec.Codec, cliCtx context.CLIContext, coin sdk.Coin) (uint, error)
- func StructCopy(destPtr interface{}, srcPtr interface{})
- type DepositBoxInfo
- type DepositBoxInfos
- type FutureBoxInfo
- type FutureBoxInfos
- type LockBoxInfo
- type LockBoxInfos
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBoxInfo ¶
func GetBoxList ¶
func GetCliContext ¶
func GetCoinDecimal ¶
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"`
}
type DepositBoxInfos ¶
type DepositBoxInfos []DepositBoxInfo
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"`
}
type FutureBoxInfos ¶
type FutureBoxInfos []FutureBoxInfo
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"`
}
type LockBoxInfos ¶
type LockBoxInfos []LockBoxInfo
Click to show internal directories.
Click to hide internal directories.