utils

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2019 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoxOwnerCheck added in v0.6.0

func BoxOwnerCheck(cdc *codec.Codec, cliCtx context.CLIContext, sender auth.Account, id string) (types.Box, error)

func GetBoxByID added in v0.6.0

func GetBoxByID(cdc *codec.Codec, cliCtx context.CLIContext, id string) (types.Box, error)

func GetBoxInfo

func GetBoxInfo(box types.BoxInfo) fmt.Stringer

func GetBoxList

func GetBoxList(boxs types.BoxInfos, boxType string) fmt.Stringer

func GetBoxParams added in v0.6.0

func GetBoxParams(params config.Params, boxType string) fmt.Stringer

func GetCoinDecimal

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

func GetInjectMsg added in v0.6.0

func GetInjectMsg(cdc *codec.Codec, cliCtx context.CLIContext, account auth.Account,
	id string, amountStr string, operation string, cli bool) (sdk.Msg, error)

func GetInterestMsg added in v0.6.0

func GetInterestMsg(cdc *codec.Codec, cliCtx context.CLIContext, account auth.Account,
	id string, amountStr string, operation string, cli bool) (sdk.Msg, error)

func GetWithdrawMsg added in v0.6.0

func GetWithdrawMsg(cdc *codec.Codec, cliCtx context.CLIContext, account auth.Account, id string) (sdk.Msg, error)

func StructCopy

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

Types

type DepositBoxParams added in v0.6.0

type DepositBoxParams struct {
	DepositBoxCreateFee sdk.Coin `json:"deposit_box_create_fee"`
	DisableFeatureFee   sdk.Coin `json:"disable_feature_fee"`
	DescribeFee         sdk.Coin `json:"describe_fee"`
}

func (DepositBoxParams) String added in v0.6.0

func (dp DepositBoxParams) String() string

nolint

type FutureBoxParams added in v0.6.0

type FutureBoxParams struct {
	FutureBoxCreateFee sdk.Coin `json:"future_box_create_fee"`
	DisableFeatureFee  sdk.Coin `json:"disable_feature_fee"`
	DescribeFee        sdk.Coin `json:"describe_fee"`
}

func (FutureBoxParams) String added in v0.6.0

func (dp FutureBoxParams) String() string

nolint

type LockBoxParams added in v0.6.0

type LockBoxParams struct {
	LockCreateFee sdk.Coin `json:"lock_create_fee"`
	DescribeFee   sdk.Coin `json:"describe_fee"`
}

func (LockBoxParams) String added in v0.6.0

func (dp LockBoxParams) String() string

nolint

Jump to

Keyboard shortcuts

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