msgs

package
v0.0.29-fix Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: Apache-2.0 Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Send

func Send(from sdk.AccAddress, to sdk.AccAddress, amount int64) *banktypes.MsgSend

Types

type Market

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

func NewMarket

func NewMarket(contract string, priceDenom string, assetDenom string) *Market

func (*Market) CancelLongOrder

func (m *Market) CancelLongOrder(account sdk.AccAddress, price string, id uint64) *dextypes.MsgCancelOrders

func (*Market) CancelShortOrder

func (m *Market) CancelShortOrder(account sdk.AccAddress, price string, id uint64) *dextypes.MsgCancelOrders

func (*Market) LongLimitOrder

func (m *Market) LongLimitOrder(account sdk.AccAddress, price string, quantity string) *dextypes.MsgPlaceOrders

func (*Market) LongMarketOrder

func (m *Market) LongMarketOrder(account sdk.AccAddress, price string, quantity string) *dextypes.MsgPlaceOrders

func (*Market) Register

func (m *Market) Register(admin sdk.AccAddress, deps []string, deposit uint64) []sdk.Msg

func (*Market) ShortLimitOrder

func (m *Market) ShortLimitOrder(account sdk.AccAddress, price string, quantity string) *dextypes.MsgPlaceOrders

func (*Market) ShortMarketOrder

func (m *Market) ShortMarketOrder(account sdk.AccAddress, price string, quantity string) *dextypes.MsgPlaceOrders

Jump to

Keyboard shortcuts

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