types

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2019 License: Apache-2.0, Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ModuleName = "market"
	RouterKey  = ModuleName
	StoreKey   = RouterKey
)

Variables

View Source
var ModuleCdc = codec.New()

Functions

This section is empty.

Types

type ListQueryResult

type ListQueryResult struct {
	Markets []NamedMarket `json:"markets"`
}

func (ListQueryResult) String

func (l ListQueryResult) String() string

type Market

type Market struct {
	ID           store.EntityID
	BaseAssetID  store.EntityID
	QuoteAssetID store.EntityID
}

func New

func New(id store.EntityID, baseAsset store.EntityID, quoteAsset store.EntityID) Market

type NamedMarket

type NamedMarket struct {
	ID           store.EntityID
	BaseAssetID  store.EntityID
	QuoteAssetID store.EntityID
	Name         string
}

Jump to

Keyboard shortcuts

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