params

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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BoxConfigParams

type BoxConfigParams struct {
	MinDeposit    sdk.Coins `json:"min_deposit"`
	StartingBoxId uint64    `json:"starting_box_id"`
}

Param Config issue for issue

func (BoxConfigParams) Equal

func (dp BoxConfigParams) Equal(dp2 BoxConfigParams) bool

Checks equality of BoxConfigParams

func (BoxConfigParams) String

func (dp BoxConfigParams) String() string

type BoxDepositParams

type BoxDepositParams struct {
	Sender        sdk.AccAddress   `json:"sender"`
	Name          string           `json:"name"`
	BoxType       string           `json:"type"`
	TotalAmount   types.BoxToken   `json:"total_amount"`
	Description   string           `json:"description"`
	TradeDisabled bool             `json:"trade_disabled"`
	Deposit       types.DepositBox `json:"deposit"`
}

type BoxFutureParams

type BoxFutureParams struct {
	Sender        sdk.AccAddress  `json:"sender"`
	Name          string          `json:"name"`
	BoxType       string          `json:"type"`
	TotalAmount   types.BoxToken  `json:"total_amount"`
	Description   string          `json:"description"`
	TradeDisabled bool            `json:"trade_disabled"`
	Future        types.FutureBox `json:"future"`
}

type BoxLockParams

type BoxLockParams struct {
	Sender      sdk.AccAddress `json:"sender"`
	Name        string         `json:"name"`
	BoxType     string         `json:"type"`
	TotalAmount types.BoxToken `json:"total_amount"`
	Description string         `json:"description"`
	Lock        types.LockBox  `json:"lock"`
}

type BoxQueryDepositListParams

type BoxQueryDepositListParams struct {
	BoxId string         `json:"box_id"`
	Owner sdk.AccAddress `json:"owner"`
}

Param query deposit

type BoxQueryParams

type BoxQueryParams struct {
	StartBoxId string         `json:"start_box_id"`
	Owner      sdk.AccAddress `json:"owner"`
	BoxType    string         `json:"type"`
	Limit      int            `json:"limit"`
}

Param query box

type Params

type Params struct {
	BoxConfigParams BoxConfigParams `json:"issue_params"`
}

Params returns all of the issue params

func NewParams

func NewParams(config BoxConfigParams) Params

func (Params) String

func (iss Params) String() string

Jump to

Keyboard shortcuts

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