order

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

Documentation

Index

Constants

View Source
const (
	QueryList = "list"
)

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(keeper Keeper) sdk.Handler

func NewQuerier

func NewQuerier(keeper Keeper) sdk.Querier

Types

type AppModule

type AppModule struct {
	AppModuleBasic
	// contains filtered or unexported fields
}

func NewAppModule

func NewAppModule(keeper Keeper) AppModule

func (AppModule) BeginBlock

func (a AppModule) BeginBlock(types.Context, abci.RequestBeginBlock)

func (AppModule) EndBlock

func (AppModule) ExportGenesis

func (a AppModule) ExportGenesis(types.Context) json.RawMessage

func (AppModule) InitGenesis

func (AppModule) NewHandler

func (a AppModule) NewHandler() types.Handler

func (AppModule) NewQuerierHandler

func (a AppModule) NewQuerierHandler() types.Querier

func (AppModule) QuerierRoute

func (a AppModule) QuerierRoute() string

func (AppModule) RegisterInvariants

func (a AppModule) RegisterInvariants(types.InvariantRegistry)

func (AppModule) Route

func (a AppModule) Route() string

type AppModuleBasic

type AppModuleBasic struct{}

func (AppModuleBasic) DefaultGenesis

func (a AppModuleBasic) DefaultGenesis() json.RawMessage

func (AppModuleBasic) GetQueryCmd

func (a AppModuleBasic) GetQueryCmd(cdc *codec.Codec) *cobra.Command

func (AppModuleBasic) GetTxCmd

func (a AppModuleBasic) GetTxCmd(cdc *codec.Codec) *cobra.Command

func (AppModuleBasic) Name

func (a AppModuleBasic) Name() string

func (AppModuleBasic) RegisterCodec

func (a AppModuleBasic) RegisterCodec(cdc *codec.Codec)

func (AppModuleBasic) RegisterRESTRoutes

func (a AppModuleBasic) RegisterRESTRoutes(context.CLIContext, *mux.Router)

func (AppModuleBasic) ValidateGenesis

func (a AppModuleBasic) ValidateGenesis(json.RawMessage) error

type IteratorCB

type IteratorCB func(order types3.Order) bool

type Keeper

type Keeper struct {
	// contains filtered or unexported fields
}

func NewKeeper

func NewKeeper(bk bank.Keeper, mk market.Keeper, ak asset.Keeper, sk sdk.StoreKey, queue types.Backend, cdc *codec.Codec) Keeper

func (Keeper) Cancel

func (k Keeper) Cancel(ctx sdk.Context, id store.EntityID) sdk.Error

func (Keeper) Create

func (k Keeper) Create(ctx sdk.Context, owner sdk.AccAddress, marketID store.EntityID, direction matcheng.Direction, price sdk.Uint, quantity sdk.Uint, tif uint16) (types3.Order, sdk.Error)

func (Keeper) Del

func (k Keeper) Del(ctx sdk.Context, id store.EntityID) sdk.Error

func (Keeper) Get

func (k Keeper) Get(ctx sdk.Context, id store.EntityID) (types3.Order, sdk.Error)

func (Keeper) Has

func (k Keeper) Has(ctx sdk.Context, id store.EntityID) bool

func (Keeper) Iterator

func (k Keeper) Iterator(ctx sdk.Context, cb IteratorCB)

func (Keeper) Post

func (k Keeper) Post(ctx sdk.Context, owner sdk.AccAddress, mktID store.EntityID, direction matcheng.Direction, price sdk.Uint, quantity sdk.Uint, tif uint16) (types3.Order, sdk.Error)

func (Keeper) ReverseIterator

func (k Keeper) ReverseIterator(ctx sdk.Context, cb IteratorCB)

func (Keeper) Set

func (k Keeper) Set(ctx sdk.Context, order types3.Order) sdk.Error

Directories

Path Synopsis
client
cli

Jump to

Keyboard shortcuts

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