mapper

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultParamspace = "orders"
View Source
const ModuleName = "orders"
View Source
const ModuleRoute = constants.ProjectRoute + "/" + ModuleName
View Source
const QueryRoute = ModuleRoute
View Source
const TransactionRoute = ModuleRoute

Variables

View Source
var Mapper = base.NewMapper(
	ModuleName,
	parameters.Prototype,
	generateKey,
	orderPrototype,
	registerCodec,
)
View Source
var StoreKeyPrefix = []byte{0x14}

Functions

func NewOrder

func NewOrder(orderID types.ID, immutables types.Immutables, mutables types.Mutables) mappables.Order

func NewOrderID

func NewOrderID(classificationID types.ID, makerOwnableID types.ID, takerOwnableID types.ID, makerID types.ID, immutables types.Immutables) types.ID

func NewOrders

func NewOrders(mapper helpers.Mapper, context sdkTypes.Context) mappers.Orders

Types

This section is empty.

Jump to

Keyboard shortcuts

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