msgs

package
v0.0.0-...-bf46863 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

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