handler

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(keeper keeper.Keeper, mkeeper MarketKeeper) sdk.Handler

NewHandler returns a handler for "deployment" type messages

func OnEndBlock

func OnEndBlock(ctx sdk.Context, keeper keeper.Keeper, mkeeper MarketKeeper)

OnEndBlock create order and update order state for each open Group. Executed at the end of block

Types

type MarketKeeper

type MarketKeeper interface {
	CreateOrder(ctx sdk.Context, id types.GroupID, spec types.GroupSpec) (mtypes.Order, error)
	OnGroupClosed(ctx sdk.Context, id types.GroupID)
}

MarketKeeper Interface includes market methods

Jump to

Keyboard shortcuts

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