types

package
v0.52.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: Apache-2.0 Imports: 37 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	TypeEvtCloseSpotOrder       = "close_spot_order"
	TypeEvtCancelPerpetualOrder = "cancel_perpetual_order"
	TypeEvtExecuteOrders        = "execute_orders"
)
View Source
const (
	// ModuleName defines the module name
	ModuleName = "tradeshield"

	// StoreKey defines the primary module store key
	StoreKey = ModuleName
)
View Source
const DefaultIndex uint64 = 1

DefaultIndex is the default global index

Variables

View Source
var (
	ErrSample                 = errors.Register(ModuleName, 1100, "sample error")
	ErrSpotOrderNotFound      = errors.Register(ModuleName, 1101, "spot order not found")
	ErrPerpetualOrderNotFound = errors.Register(ModuleName, 1102, "perpetual order not found")
	ErrPriceNotFound          = errors.Register(ModuleName, 1103, "price not found")
	ErrSizeZero               = errors.Register(ModuleName, 1104, "zero order ids ")
	ErrInvalidStatus          = errors.Register(ModuleName, 1105, "invalid status")
	ErrZeroMarketPrice        = errors.Register(ModuleName, 1106, "market price is zero")
)

x/tradeshield module sentinel errors

View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ParamsKey                     = []byte{0x01}
	PendingSpotOrderKey           = []byte{0x02}
	PendingSpotOrderCountKey      = []byte{0x03}
	SortedSpotOrderKey            = []byte{0x04}
	PendingPerpetualOrderKey      = []byte{0x05}
	PendingPerpetualOrderCountKey = []byte{0x06}
	SortedPerpetualOrderKey       = []byte{0x07}
)
View Source
var (
	ErrInvalidLengthOrder        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowOrder          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupOrder = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthParams        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowParams          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthPendingPerpetualOrder        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowPendingPerpetualOrder          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupPendingPerpetualOrder = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTypes        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTypes          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group")
)
View Source
var PerpetualOrderType_name = map[int32]string{
	0: "LIMITOPEN",
	1: "LIMITCLOSE",
	2: "STOPLOSSPERP",
}
View Source
var PerpetualOrderType_value = map[string]int32{
	"LIMITOPEN":    0,
	"LIMITCLOSE":   1,
	"STOPLOSSPERP": 2,
}
View Source
var PerpetualPosition_name = map[int32]string{
	0: "UNSPECIFIED",
	1: "LONG",
	2: "SHORT",
}
View Source
var PerpetualPosition_value = map[string]int32{
	"UNSPECIFIED": 0,
	"LONG":        1,
	"SHORT":       2,
}
View Source
var SpotOrderType_name = map[int32]string{
	0: "STOPLOSS",
	1: "LIMITSELL",
	2: "LIMITBUY",
	3: "MARKETBUY",
}
View Source
var SpotOrderType_value = map[string]int32{
	"STOPLOSS":  0,
	"LIMITSELL": 1,
	"LIMITBUY":  2,
	"MARKETBUY": 3,
}
View Source
var Status_name = map[int32]string{
	0: "PENDING",
	1: "EXECUTED",
	2: "CANCELED",
	3: "ALL",
}
View Source
var Status_value = map[string]int32{
	"PENDING":  0,
	"EXECUTED": 1,
	"CANCELED": 2,
	"ALL":      3,
}

Functions

func CheckLegacyDecNilAndNegative added in v0.52.0

func CheckLegacyDecNilAndNegative(value sdkmath.LegacyDec, name string) error

func DecodeUint64Slice added in v0.46.0

func DecodeUint64Slice(bz []byte) ([]uint64, error)

func EmitCancelPerpetualOrderEvent added in v0.49.4

func EmitCancelPerpetualOrderEvent(ctx sdk.Context, order PerpetualOrder)

func EmitCloseSpotOrderEvent added in v0.48.0

func EmitCloseSpotOrderEvent(ctx sdk.Context, order SpotOrder)

func EncodeUint64Slice added in v0.46.0

func EncodeUint64Slice(slice []uint64) []byte

func GenPerpKey added in v0.46.0

func GenPerpKey(order PerpetualOrder) string

func GenSpotKey added in v0.46.0

func GenSpotKey(order SpotOrder) (string, error)

func GetPerpOrderAddress added in v0.52.0

func GetPerpOrderAddress(orderId uint64) sdk.AccAddress

func GetSpotOrderAddress added in v0.52.0

func GetSpotOrderAddress(orderId uint64) sdk.AccAddress

func GetUint64Bytes added in v0.48.0

func GetUint64Bytes(ID uint64) []byte

GetUint64Bytes returns the byte representation of the ID

func GetUint64FromBytes added in v0.48.0

func GetUint64FromBytes(bz []byte) uint64

GetUint64FromBytes returns ID in uint64 format from a byte array

func KeyPrefix

func KeyPrefix(p string) []byte

func NewCancelPerpetualOrderEvt added in v0.49.4

func NewCancelPerpetualOrderEvt(order PerpetualOrder) sdk.Event

func NewCloseSpotOrderEvt added in v0.48.0

func NewCloseSpotOrderEvt(order SpotOrder) sdk.Event

func RegisterCodec

func RegisterCodec(cdc *codec.LegacyAmino)

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterQueryHandlerClient

func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error

RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.

func RegisterQueryHandlerFromEndpoint

func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterQueryHandlerServer

func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error

RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

Types

type AccountKeeper

type AccountKeeper interface {
	GetAccount(ctx context.Context, addr sdk.AccAddress) sdk.AccountI
}

AccountKeeper defines the expected account keeper used for simulations (noalias)

type AmmKeeper added in v0.46.0

type AmmKeeper interface {
	SwapByDenom(ctx sdk.Context, msg *ammtypes.MsgSwapByDenom) (*ammtypes.MsgSwapByDenomResponse, error)
}

AmmKeeper defines the expected interface needed to swap tokens

type BankKeeper

type BankKeeper interface {
	SpendableCoins(ctx context.Context, addr sdk.AccAddress) sdk.Coins

	SendCoins(goCtx context.Context, fromAddr sdk.AccAddress, toAddr sdk.AccAddress, amt sdk.Coins) error
}

BankKeeper defines the expected interface needed to retrieve account balances.

type Date added in v0.46.0

type Date struct {
	Height    uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
	Timestamp uint64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
}

func (*Date) Descriptor added in v0.46.0

func (*Date) Descriptor() ([]byte, []int)

func (*Date) GetHeight added in v0.46.0

func (m *Date) GetHeight() uint64

func (*Date) GetTimestamp added in v0.46.0

func (m *Date) GetTimestamp() uint64

func (*Date) Marshal added in v0.46.0

func (m *Date) Marshal() (dAtA []byte, err error)

func (*Date) MarshalTo added in v0.46.0

func (m *Date) MarshalTo(dAtA []byte) (int, error)

func (*Date) MarshalToSizedBuffer added in v0.46.0

func (m *Date) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Date) ProtoMessage added in v0.46.0

func (*Date) ProtoMessage()

func (*Date) Reset added in v0.46.0

func (m *Date) Reset()

func (*Date) Size added in v0.46.0

func (m *Date) Size() (n int)

func (*Date) String added in v0.46.0

func (m *Date) String() string

func (*Date) Unmarshal added in v0.46.0

func (m *Date) Unmarshal(dAtA []byte) error

func (*Date) XXX_DiscardUnknown added in v0.46.0

func (m *Date) XXX_DiscardUnknown()

func (*Date) XXX_Marshal added in v0.46.0

func (m *Date) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Date) XXX_Merge added in v0.46.0

func (m *Date) XXX_Merge(src proto.Message)

func (*Date) XXX_Size added in v0.46.0

func (m *Date) XXX_Size() int

func (*Date) XXX_Unmarshal added in v0.46.0

func (m *Date) XXX_Unmarshal(b []byte) error

type GenesisState

type GenesisState struct {
	Params                     Params           `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	PendingSpotOrderList       []SpotOrder      `protobuf:"bytes,2,rep,name=pending_spot_order_list,json=pendingSpotOrderList,proto3" json:"pending_spot_order_list"`
	PendingSpotOrderCount      uint64           `` /* 129-byte string literal not displayed */
	PendingPerpetualOrderList  []PerpetualOrder `` /* 130-byte string literal not displayed */
	PendingPerpetualOrderCount uint64           `` /* 144-byte string literal not displayed */
}

GenesisState defines the tradeshield module's genesis state.

func DefaultGenesis

func DefaultGenesis() *GenesisState

DefaultGenesis returns the default genesis state

func (*GenesisState) Descriptor

func (*GenesisState) Descriptor() ([]byte, []int)

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

func (*GenesisState) GetPendingPerpetualOrderCount added in v0.46.0

func (m *GenesisState) GetPendingPerpetualOrderCount() uint64

func (*GenesisState) GetPendingPerpetualOrderList added in v0.46.0

func (m *GenesisState) GetPendingPerpetualOrderList() []PerpetualOrder

func (*GenesisState) GetPendingSpotOrderCount added in v0.46.0

func (m *GenesisState) GetPendingSpotOrderCount() uint64

func (*GenesisState) GetPendingSpotOrderList added in v0.46.0

func (m *GenesisState) GetPendingSpotOrderList() []SpotOrder

func (*GenesisState) Marshal

func (m *GenesisState) Marshal() (dAtA []byte, err error)

func (*GenesisState) MarshalTo

func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)

func (*GenesisState) MarshalToSizedBuffer

func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset

func (m *GenesisState) Reset()

func (*GenesisState) Size

func (m *GenesisState) Size() (n int)

func (*GenesisState) String

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal

func (m *GenesisState) Unmarshal(dAtA []byte) error

func (GenesisState) Validate

func (gs GenesisState) Validate() error

Validate performs basic genesis state validation returning an error upon any failure.

func (*GenesisState) XXX_DiscardUnknown

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal

func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GenesisState) XXX_Merge

func (m *GenesisState) XXX_Merge(src proto.Message)

func (*GenesisState) XXX_Size

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal

func (m *GenesisState) XXX_Unmarshal(b []byte) error

type LegacyPerpetualOrder added in v0.48.0

type LegacyPerpetualOrder struct {
	OrderId            uint64                      `protobuf:"varint,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"`
	OwnerAddress       string                      `protobuf:"bytes,2,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"`
	PerpetualOrderType PerpetualOrderType          `` /* 159-byte string literal not displayed */
	Position           PerpetualPosition           `protobuf:"varint,4,opt,name=position,proto3,enum=elys.tradeshield.PerpetualPosition" json:"position,omitempty"`
	TriggerPrice       *OrderPrice                 `protobuf:"bytes,5,opt,name=trigger_price,json=triggerPrice,proto3" json:"trigger_price,omitempty"`
	Collateral         types.Coin                  `protobuf:"bytes,6,opt,name=collateral,proto3" json:"collateral"`
	TradingAsset       string                      `protobuf:"bytes,7,opt,name=trading_asset,json=tradingAsset,proto3" json:"trading_asset,omitempty"`
	Leverage           cosmossdk_io_math.LegacyDec `protobuf:"bytes,8,opt,name=leverage,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"leverage"`
	TakeProfitPrice    cosmossdk_io_math.LegacyDec `` /* 137-byte string literal not displayed */
	PositionId         uint64                      `protobuf:"varint,10,opt,name=position_id,json=positionId,proto3" json:"position_id,omitempty"`
	Status             Status                      `protobuf:"varint,11,opt,name=status,proto3,enum=elys.tradeshield.Status" json:"status,omitempty"`
	StopLossPrice      cosmossdk_io_math.LegacyDec `` /* 132-byte string literal not displayed */
	PositionSize       types.Coin                  `protobuf:"bytes,13,opt,name=position_size,json=positionSize,proto3" json:"position_size"`
	LiquidationPrice   cosmossdk_io_math.LegacyDec `` /* 139-byte string literal not displayed */
	FundingRate        cosmossdk_io_math.LegacyDec `protobuf:"bytes,15,opt,name=funding_rate,json=fundingRate,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"funding_rate"`
	BorrowInterestRate cosmossdk_io_math.LegacyDec `` /* 147-byte string literal not displayed */
}

func (*LegacyPerpetualOrder) Descriptor added in v0.48.0

func (*LegacyPerpetualOrder) Descriptor() ([]byte, []int)

func (*LegacyPerpetualOrder) GetCollateral added in v0.48.0

func (m *LegacyPerpetualOrder) GetCollateral() types.Coin

func (*LegacyPerpetualOrder) GetOrderId added in v0.48.0

func (m *LegacyPerpetualOrder) GetOrderId() uint64

func (*LegacyPerpetualOrder) GetOwnerAddress added in v0.48.0

func (m *LegacyPerpetualOrder) GetOwnerAddress() string

func (*LegacyPerpetualOrder) GetPerpetualOrderType added in v0.48.0

func (m *LegacyPerpetualOrder) GetPerpetualOrderType() PerpetualOrderType

func (*LegacyPerpetualOrder) GetPosition added in v0.48.0

func (m *LegacyPerpetualOrder) GetPosition() PerpetualPosition

func (*LegacyPerpetualOrder) GetPositionId added in v0.48.0

func (m *LegacyPerpetualOrder) GetPositionId() uint64

func (*LegacyPerpetualOrder) GetPositionSize added in v0.49.3

func (m *LegacyPerpetualOrder) GetPositionSize() types.Coin

func (*LegacyPerpetualOrder) GetStatus added in v0.48.0

func (m *LegacyPerpetualOrder) GetStatus() Status

func (*LegacyPerpetualOrder) GetTradingAsset added in v0.48.0

func (m *LegacyPerpetualOrder) GetTradingAsset() string

func (*LegacyPerpetualOrder) GetTriggerPrice added in v0.48.0

func (m *LegacyPerpetualOrder) GetTriggerPrice() *OrderPrice

func (*LegacyPerpetualOrder) Marshal added in v0.48.0

func (m *LegacyPerpetualOrder) Marshal() (dAtA []byte, err error)

func (*LegacyPerpetualOrder) MarshalTo added in v0.48.0

func (m *LegacyPerpetualOrder) MarshalTo(dAtA []byte) (int, error)

func (*LegacyPerpetualOrder) MarshalToSizedBuffer added in v0.48.0

func (m *LegacyPerpetualOrder) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*LegacyPerpetualOrder) ProtoMessage added in v0.48.0

func (*LegacyPerpetualOrder) ProtoMessage()

func (*LegacyPerpetualOrder) Reset added in v0.48.0

func (m *LegacyPerpetualOrder) Reset()

func (*LegacyPerpetualOrder) Size added in v0.48.0

func (m *LegacyPerpetualOrder) Size() (n int)

func (*LegacyPerpetualOrder) String added in v0.48.0

func (m *LegacyPerpetualOrder) String() string

func (*LegacyPerpetualOrder) Unmarshal added in v0.48.0

func (m *LegacyPerpetualOrder) Unmarshal(dAtA []byte) error

func (*LegacyPerpetualOrder) XXX_DiscardUnknown added in v0.48.0

func (m *LegacyPerpetualOrder) XXX_DiscardUnknown()

func (*LegacyPerpetualOrder) XXX_Marshal added in v0.48.0

func (m *LegacyPerpetualOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LegacyPerpetualOrder) XXX_Merge added in v0.48.0

func (m *LegacyPerpetualOrder) XXX_Merge(src proto.Message)

func (*LegacyPerpetualOrder) XXX_Size added in v0.48.0

func (m *LegacyPerpetualOrder) XXX_Size() int

func (*LegacyPerpetualOrder) XXX_Unmarshal added in v0.48.0

func (m *LegacyPerpetualOrder) XXX_Unmarshal(b []byte) error

type MsgCancelPerpetualOrder added in v0.49.3

type MsgCancelPerpetualOrder struct {
	OwnerAddress string `protobuf:"bytes,1,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"`
	OrderId      uint64 `protobuf:"varint,2,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"`
}

func NewMsgCancelPerpetualOrder added in v0.49.3

func NewMsgCancelPerpetualOrder(ownerAddress string, orderId uint64) *MsgCancelPerpetualOrder

func (*MsgCancelPerpetualOrder) Descriptor added in v0.49.3

func (*MsgCancelPerpetualOrder) Descriptor() ([]byte, []int)

func (*MsgCancelPerpetualOrder) GetOrderId added in v0.49.3

func (m *MsgCancelPerpetualOrder) GetOrderId() uint64

func (*MsgCancelPerpetualOrder) GetOwnerAddress added in v0.49.3

func (m *MsgCancelPerpetualOrder) GetOwnerAddress() string

func (*MsgCancelPerpetualOrder) Marshal added in v0.49.3

func (m *MsgCancelPerpetualOrder) Marshal() (dAtA []byte, err error)

func (*MsgCancelPerpetualOrder) MarshalTo added in v0.49.3

func (m *MsgCancelPerpetualOrder) MarshalTo(dAtA []byte) (int, error)

func (*MsgCancelPerpetualOrder) MarshalToSizedBuffer added in v0.49.3

func (m *MsgCancelPerpetualOrder) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgCancelPerpetualOrder) ProtoMessage added in v0.49.3

func (*MsgCancelPerpetualOrder) ProtoMessage()

func (*MsgCancelPerpetualOrder) Reset added in v0.49.3

func (m *MsgCancelPerpetualOrder) Reset()

func (*MsgCancelPerpetualOrder) Size added in v0.49.3

func (m *MsgCancelPerpetualOrder) Size() (n int)

func (*MsgCancelPerpetualOrder) String added in v0.49.3

func (m *MsgCancelPerpetualOrder) String() string

func (*MsgCancelPerpetualOrder) Unmarshal added in v0.49.3

func (m *MsgCancelPerpetualOrder) Unmarshal(dAtA []byte) error

func (*MsgCancelPerpetualOrder) ValidateBasic added in v0.49.3

func (msg *MsgCancelPerpetualOrder) ValidateBasic() error

func (*MsgCancelPerpetualOrder) XXX_DiscardUnknown added in v0.49.3

func (m *MsgCancelPerpetualOrder) XXX_DiscardUnknown()

func (*MsgCancelPerpetualOrder) XXX_Marshal added in v0.49.3

func (m *MsgCancelPerpetualOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgCancelPerpetualOrder) XXX_Merge added in v0.49.3

func (m *MsgCancelPerpetualOrder) XXX_Merge(src proto.Message)

func (*MsgCancelPerpetualOrder) XXX_Size added in v0.49.3

func (m *MsgCancelPerpetualOrder) XXX_Size() int

func (*MsgCancelPerpetualOrder) XXX_Unmarshal added in v0.49.3

func (m *MsgCancelPerpetualOrder) XXX_Unmarshal(b []byte) error

type MsgCancelPerpetualOrderResponse added in v0.49.3

type MsgCancelPerpetualOrderResponse struct {
	OrderId uint64 `protobuf:"varint,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"`
}

func (*MsgCancelPerpetualOrderResponse) Descriptor added in v0.49.3

func (*MsgCancelPerpetualOrderResponse) Descriptor() ([]byte, []int)

func (*MsgCancelPerpetualOrderResponse) GetOrderId added in v0.49.3

func (m *MsgCancelPerpetualOrderResponse) GetOrderId() uint64

func (*MsgCancelPerpetualOrderResponse) Marshal added in v0.49.3

func (m *MsgCancelPerpetualOrderResponse) Marshal() (dAtA []byte, err error)

func (*MsgCancelPerpetualOrderResponse) MarshalTo added in v0.49.3

func (m *MsgCancelPerpetualOrderResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgCancelPerpetualOrderResponse) MarshalToSizedBuffer added in v0.49.3

func (m *MsgCancelPerpetualOrderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgCancelPerpetualOrderResponse) ProtoMessage added in v0.49.3

func (*MsgCancelPerpetualOrderResponse) ProtoMessage()

func (*MsgCancelPerpetualOrderResponse) Reset added in v0.49.3

func (*MsgCancelPerpetualOrderResponse) Size added in v0.49.3

func (m *MsgCancelPerpetualOrderResponse) Size() (n int)

func (*MsgCancelPerpetualOrderResponse) String added in v0.49.3

func (*MsgCancelPerpetualOrderResponse) Unmarshal added in v0.49.3

func (m *MsgCancelPerpetualOrderResponse) Unmarshal(dAtA []byte) error

func (*MsgCancelPerpetualOrderResponse) XXX_DiscardUnknown added in v0.49.3

func (m *MsgCancelPerpetualOrderResponse) XXX_DiscardUnknown()

func (*MsgCancelPerpetualOrderResponse) XXX_Marshal added in v0.49.3

func (m *MsgCancelPerpetualOrderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgCancelPerpetualOrderResponse) XXX_Merge added in v0.49.3

func (m *MsgCancelPerpetualOrderResponse) XXX_Merge(src proto.Message)

func (*MsgCancelPerpetualOrderResponse) XXX_Size added in v0.49.3

func (m *MsgCancelPerpetualOrderResponse) XXX_Size() int

func (*MsgCancelPerpetualOrderResponse) XXX_Unmarshal added in v0.49.3

func (m *MsgCancelPerpetualOrderResponse) XXX_Unmarshal(b []byte) error

type MsgCancelPerpetualOrders added in v0.48.0

type MsgCancelPerpetualOrders struct {
	OwnerAddress string   `protobuf:"bytes,1,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"`
	OrderIds     []uint64 `protobuf:"varint,2,rep,packed,name=order_ids,json=orderIds,proto3" json:"order_ids,omitempty"`
}

func NewMsgCancelPerpetualOrders added in v0.48.0

func NewMsgCancelPerpetualOrders(creator string, ids []uint64) *MsgCancelPerpetualOrders

func (*MsgCancelPerpetualOrders) Descriptor added in v0.48.0

func (*MsgCancelPerpetualOrders) Descriptor() ([]byte, []int)

func (*MsgCancelPerpetualOrders) GetOrderIds added in v0.48.0

func (m *MsgCancelPerpetualOrders) GetOrderIds() []uint64

func (*MsgCancelPerpetualOrders) GetOwnerAddress added in v0.48.0

func (m *MsgCancelPerpetualOrders) GetOwnerAddress() string

func (*MsgCancelPerpetualOrders) Marshal added in v0.48.0

func (m *MsgCancelPerpetualOrders) Marshal() (dAtA []byte, err error)

func (*MsgCancelPerpetualOrders) MarshalTo added in v0.48.0

func (m *MsgCancelPerpetualOrders) MarshalTo(dAtA []byte) (int, error)

func (*MsgCancelPerpetualOrders) MarshalToSizedBuffer added in v0.48.0

func (m *MsgCancelPerpetualOrders) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgCancelPerpetualOrders) ProtoMessage added in v0.48.0

func (*MsgCancelPerpetualOrders) ProtoMessage()

func (*MsgCancelPerpetualOrders) Reset added in v0.48.0

func (m *MsgCancelPerpetualOrders) Reset()

func (*MsgCancelPerpetualOrders) Size added in v0.48.0

func (m *MsgCancelPerpetualOrders) Size() (n int)

func (*MsgCancelPerpetualOrders) String added in v0.48.0

func (m *MsgCancelPerpetualOrders) String() string

func (*MsgCancelPerpetualOrders) Unmarshal added in v0.48.0

func (m *MsgCancelPerpetualOrders) Unmarshal(dAtA []byte) error

func (*MsgCancelPerpetualOrders) ValidateBasic added in v0.48.0

func (msg *MsgCancelPerpetualOrders) ValidateBasic() error

func (*MsgCancelPerpetualOrders) XXX_DiscardUnknown added in v0.48.0

func (m *MsgCancelPerpetualOrders) XXX_DiscardUnknown()

func (*MsgCancelPerpetualOrders) XXX_Marshal added in v0.48.0

func (m *MsgCancelPerpetualOrders) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgCancelPerpetualOrders) XXX_Merge added in v0.48.0

func (m *MsgCancelPerpetualOrders) XXX_Merge(src proto.Message)

func (*MsgCancelPerpetualOrders) XXX_Size added in v0.48.0

func (m *MsgCancelPerpetualOrders) XXX_Size() int

func (*MsgCancelPerpetualOrders) XXX_Unmarshal added in v0.48.0

func (m *MsgCancelPerpetualOrders) XXX_Unmarshal(b []byte) error

type MsgCancelPerpetualOrdersResponse added in v0.48.0

type MsgCancelPerpetualOrdersResponse struct {
}

func (*MsgCancelPerpetualOrdersResponse) Descriptor added in v0.48.0

func (*MsgCancelPerpetualOrdersResponse) Descriptor() ([]byte, []int)

func (*MsgCancelPerpetualOrdersResponse) Marshal added in v0.48.0

func (m *MsgCancelPerpetualOrdersResponse) Marshal() (dAtA []byte, err error)

func (*MsgCancelPerpetualOrdersResponse) MarshalTo added in v0.48.0

func (m *MsgCancelPerpetualOrdersResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgCancelPerpetualOrdersResponse) MarshalToSizedBuffer added in v0.48.0

func (m *MsgCancelPerpetualOrdersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgCancelPerpetualOrdersResponse) ProtoMessage added in v0.48.0

func (*MsgCancelPerpetualOrdersResponse) ProtoMessage()

func (*MsgCancelPerpetualOrdersResponse) Reset added in v0.48.0

func (*MsgCancelPerpetualOrdersResponse) Size added in v0.48.0

func (m *MsgCancelPerpetualOrdersResponse) Size() (n int)

func (*MsgCancelPerpetualOrdersResponse) String added in v0.48.0

func (*MsgCancelPerpetualOrdersResponse) Unmarshal added in v0.48.0

func (m *MsgCancelPerpetualOrdersResponse) Unmarshal(dAtA []byte) error

func (*MsgCancelPerpetualOrdersResponse) XXX_DiscardUnknown added in v0.48.0

func (m *MsgCancelPerpetualOrdersResponse) XXX_DiscardUnknown()

func (*MsgCancelPerpetualOrdersResponse) XXX_Marshal added in v0.48.0

func (m *MsgCancelPerpetualOrdersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgCancelPerpetualOrdersResponse) XXX_Merge added in v0.48.0

func (*MsgCancelPerpetualOrdersResponse) XXX_Size added in v0.48.0

func (m *MsgCancelPerpetualOrdersResponse) XXX_Size() int

func (*MsgCancelPerpetualOrdersResponse) XXX_Unmarshal added in v0.48.0

func (m *MsgCancelPerpetualOrdersResponse) XXX_Unmarshal(b []byte) error

type MsgCancelSpotOrder added in v0.49.3

type MsgCancelSpotOrder struct {
	OwnerAddress string `protobuf:"bytes,1,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"`
	OrderId      uint64 `protobuf:"varint,2,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"`
}

func NewMsgCancelSpotOrder added in v0.49.3

func NewMsgCancelSpotOrder(ownerAddress string, orderId uint64) *MsgCancelSpotOrder

func (*MsgCancelSpotOrder) Descriptor added in v0.49.3

func (*MsgCancelSpotOrder) Descriptor() ([]byte, []int)

func (*MsgCancelSpotOrder) GetOrderId added in v0.49.3

func (m *MsgCancelSpotOrder) GetOrderId() uint64

func (*MsgCancelSpotOrder) GetOwnerAddress added in v0.49.3

func (m *MsgCancelSpotOrder) GetOwnerAddress() string

func (*MsgCancelSpotOrder) Marshal added in v0.49.3

func (m *MsgCancelSpotOrder) Marshal() (dAtA []byte, err error)

func (*MsgCancelSpotOrder) MarshalTo added in v0.49.3

func (m *MsgCancelSpotOrder) MarshalTo(dAtA []byte) (int, error)

func (*MsgCancelSpotOrder) MarshalToSizedBuffer added in v0.49.3

func (m *MsgCancelSpotOrder) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgCancelSpotOrder) ProtoMessage added in v0.49.3

func (*MsgCancelSpotOrder) ProtoMessage()

func (*MsgCancelSpotOrder) Reset added in v0.49.3

func (m *MsgCancelSpotOrder) Reset()

func (*MsgCancelSpotOrder) Size added in v0.49.3

func (m *MsgCancelSpotOrder) Size() (n int)

func (*MsgCancelSpotOrder) String added in v0.49.3

func (m *MsgCancelSpotOrder) String() string

func (*MsgCancelSpotOrder) Unmarshal added in v0.49.3

func (m *MsgCancelSpotOrder) Unmarshal(dAtA []byte) error

func (*MsgCancelSpotOrder) ValidateBasic added in v0.49.3

func (msg *MsgCancelSpotOrder) ValidateBasic() error

func (*MsgCancelSpotOrder) XXX_DiscardUnknown added in v0.49.3

func (m *MsgCancelSpotOrder) XXX_DiscardUnknown()

func (*MsgCancelSpotOrder) XXX_Marshal added in v0.49.3

func (m *MsgCancelSpotOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgCancelSpotOrder) XXX_Merge added in v0.49.3

func (m *MsgCancelSpotOrder) XXX_Merge(src proto.Message)

func (*MsgCancelSpotOrder) XXX_Size added in v0.49.3

func (m *MsgCancelSpotOrder) XXX_Size() int

func (*MsgCancelSpotOrder) XXX_Unmarshal added in v0.49.3

func (m *MsgCancelSpotOrder) XXX_Unmarshal(b []byte) error

type MsgCancelSpotOrderResponse added in v0.49.3

type MsgCancelSpotOrderResponse struct {
	OrderId uint64 `protobuf:"varint,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"`
}

func (*MsgCancelSpotOrderResponse) Descriptor added in v0.49.3

func (*MsgCancelSpotOrderResponse) Descriptor() ([]byte, []int)

func (*MsgCancelSpotOrderResponse) GetOrderId added in v0.49.3

func (m *MsgCancelSpotOrderResponse) GetOrderId() uint64

func (*MsgCancelSpotOrderResponse) Marshal added in v0.49.3

func (m *MsgCancelSpotOrderResponse) Marshal() (dAtA []byte, err error)

func (*MsgCancelSpotOrderResponse) MarshalTo added in v0.49.3

func (m *MsgCancelSpotOrderResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgCancelSpotOrderResponse) MarshalToSizedBuffer added in v0.49.3

func (m *MsgCancelSpotOrderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgCancelSpotOrderResponse) ProtoMessage added in v0.49.3

func (*MsgCancelSpotOrderResponse) ProtoMessage()

func (*MsgCancelSpotOrderResponse) Reset added in v0.49.3

func (m *MsgCancelSpotOrderResponse) Reset()

func (*MsgCancelSpotOrderResponse) Size added in v0.49.3

func (m *MsgCancelSpotOrderResponse) Size() (n int)

func (*MsgCancelSpotOrderResponse) String added in v0.49.3

func (m *MsgCancelSpotOrderResponse) String() string

func (*MsgCancelSpotOrderResponse) Unmarshal added in v0.49.3

func (m *MsgCancelSpotOrderResponse) Unmarshal(dAtA []byte) error

func (*MsgCancelSpotOrderResponse) XXX_DiscardUnknown added in v0.49.3

func (m *MsgCancelSpotOrderResponse) XXX_DiscardUnknown()

func (*MsgCancelSpotOrderResponse) XXX_Marshal added in v0.49.3

func (m *MsgCancelSpotOrderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgCancelSpotOrderResponse) XXX_Merge added in v0.49.3

func (m *MsgCancelSpotOrderResponse) XXX_Merge(src proto.Message)

func (*MsgCancelSpotOrderResponse) XXX_Size added in v0.49.3

func (m *MsgCancelSpotOrderResponse) XXX_Size() int

func (*MsgCancelSpotOrderResponse) XXX_Unmarshal added in v0.49.3

func (m *MsgCancelSpotOrderResponse) XXX_Unmarshal(b []byte) error

type MsgCancelSpotOrders added in v0.48.0

type MsgCancelSpotOrders struct {
	Creator      string   `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	SpotOrderIds []uint64 `protobuf:"varint,2,rep,packed,name=spot_order_ids,json=spotOrderIds,proto3" json:"spot_order_ids,omitempty"`
}

func NewMsgCancelSpotOrders added in v0.48.0

func NewMsgCancelSpotOrders(creator string, id []uint64) *MsgCancelSpotOrders

func (*MsgCancelSpotOrders) Descriptor added in v0.48.0

func (*MsgCancelSpotOrders) Descriptor() ([]byte, []int)

func (*MsgCancelSpotOrders) GetCreator added in v0.48.0

func (m *MsgCancelSpotOrders) GetCreator() string

func (*MsgCancelSpotOrders) GetSpotOrderIds added in v0.48.0

func (m *MsgCancelSpotOrders) GetSpotOrderIds() []uint64

func (*MsgCancelSpotOrders) Marshal added in v0.48.0

func (m *MsgCancelSpotOrders) Marshal() (dAtA []byte, err error)

func (*MsgCancelSpotOrders) MarshalTo added in v0.48.0

func (m *MsgCancelSpotOrders) MarshalTo(dAtA []byte) (int, error)

func (*MsgCancelSpotOrders) MarshalToSizedBuffer added in v0.48.0

func (m *MsgCancelSpotOrders) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgCancelSpotOrders) ProtoMessage added in v0.48.0

func (*MsgCancelSpotOrders) ProtoMessage()

func (*MsgCancelSpotOrders) Reset added in v0.48.0

func (m *MsgCancelSpotOrders) Reset()

func (*MsgCancelSpotOrders) Size added in v0.48.0

func (m *MsgCancelSpotOrders) Size() (n int)

func (*MsgCancelSpotOrders) String added in v0.48.0

func (m *MsgCancelSpotOrders) String() string

func (*MsgCancelSpotOrders) Unmarshal added in v0.48.0

func (m *MsgCancelSpotOrders) Unmarshal(dAtA []byte) error

func (*MsgCancelSpotOrders) ValidateBasic added in v0.48.0

func (msg *MsgCancelSpotOrders) ValidateBasic() error

func (*MsgCancelSpotOrders) XXX_DiscardUnknown added in v0.48.0

func (m *MsgCancelSpotOrders) XXX_DiscardUnknown()

func (*MsgCancelSpotOrders) XXX_Marshal added in v0.48.0

func (m *MsgCancelSpotOrders) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgCancelSpotOrders) XXX_Merge added in v0.48.0

func (m *MsgCancelSpotOrders) XXX_Merge(src proto.Message)

func (*MsgCancelSpotOrders) XXX_Size added in v0.48.0

func (m *MsgCancelSpotOrders) XXX_Size() int

func (*MsgCancelSpotOrders) XXX_Unmarshal added in v0.48.0

func (m *MsgCancelSpotOrders) XXX_Unmarshal(b []byte) error

type MsgCancelSpotOrdersResponse added in v0.48.0

type MsgCancelSpotOrdersResponse struct {
}

func (*MsgCancelSpotOrdersResponse) Descriptor added in v0.48.0

func (*MsgCancelSpotOrdersResponse) Descriptor() ([]byte, []int)

func (*MsgCancelSpotOrdersResponse) Marshal added in v0.48.0

func (m *MsgCancelSpotOrdersResponse) Marshal() (dAtA []byte, err error)

func (*MsgCancelSpotOrdersResponse) MarshalTo added in v0.48.0

func (m *MsgCancelSpotOrdersResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgCancelSpotOrdersResponse) MarshalToSizedBuffer added in v0.48.0

func (m *MsgCancelSpotOrdersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgCancelSpotOrdersResponse) ProtoMessage added in v0.48.0

func (*MsgCancelSpotOrdersResponse) ProtoMessage()

func (*MsgCancelSpotOrdersResponse) Reset added in v0.48.0

func (m *MsgCancelSpotOrdersResponse) Reset()

func (*MsgCancelSpotOrdersResponse) Size added in v0.48.0

func (m *MsgCancelSpotOrdersResponse) Size() (n int)

func (*MsgCancelSpotOrdersResponse) String added in v0.48.0

func (m *MsgCancelSpotOrdersResponse) String() string

func (*MsgCancelSpotOrdersResponse) Unmarshal added in v0.48.0

func (m *MsgCancelSpotOrdersResponse) Unmarshal(dAtA []byte) error

func (*MsgCancelSpotOrdersResponse) XXX_DiscardUnknown added in v0.48.0

func (m *MsgCancelSpotOrdersResponse) XXX_DiscardUnknown()

func (*MsgCancelSpotOrdersResponse) XXX_Marshal added in v0.48.0

func (m *MsgCancelSpotOrdersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgCancelSpotOrdersResponse) XXX_Merge added in v0.48.0

func (m *MsgCancelSpotOrdersResponse) XXX_Merge(src proto.Message)

func (*MsgCancelSpotOrdersResponse) XXX_Size added in v0.48.0

func (m *MsgCancelSpotOrdersResponse) XXX_Size() int

func (*MsgCancelSpotOrdersResponse) XXX_Unmarshal added in v0.48.0

func (m *MsgCancelSpotOrdersResponse) XXX_Unmarshal(b []byte) error

type MsgClient

MsgClient is the client API for Msg service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewMsgClient

func NewMsgClient(cc grpc1.ClientConn) MsgClient

type MsgCreatePerpetualCloseOrder added in v0.49.3

type MsgCreatePerpetualCloseOrder struct {
	OwnerAddress string       `protobuf:"bytes,1,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"`
	TriggerPrice TriggerPrice `protobuf:"bytes,2,opt,name=trigger_price,json=triggerPrice,proto3" json:"trigger_price"`
	PositionId   uint64       `protobuf:"varint,3,opt,name=position_id,json=positionId,proto3" json:"position_id,omitempty"`
}

func NewMsgCreatePerpetualCloseOrder added in v0.49.3

func NewMsgCreatePerpetualCloseOrder(
	ownerAddress string,
	triggerPrice TriggerPrice,
	positionId uint64,
) *MsgCreatePerpetualCloseOrder

func (*MsgCreatePerpetualCloseOrder) Descriptor added in v0.49.3

func (*MsgCreatePerpetualCloseOrder) Descriptor() ([]byte, []int)

func (*MsgCreatePerpetualCloseOrder) GetOwnerAddress added in v0.49.3

func (m *MsgCreatePerpetualCloseOrder) GetOwnerAddress() string

func (*MsgCreatePerpetualCloseOrder) GetPositionId added in v0.49.3

func (m *MsgCreatePerpetualCloseOrder) GetPositionId() uint64

func (*MsgCreatePerpetualCloseOrder) GetTriggerPrice added in v0.49.3

func (m *MsgCreatePerpetualCloseOrder) GetTriggerPrice() TriggerPrice

func (*MsgCreatePerpetualCloseOrder) Marshal added in v0.49.3

func (m *MsgCreatePerpetualCloseOrder) Marshal() (dAtA []byte, err error)

func (*MsgCreatePerpetualCloseOrder) MarshalTo added in v0.49.3

func (m *MsgCreatePerpetualCloseOrder) MarshalTo(dAtA []byte) (int, error)

func (*MsgCreatePerpetualCloseOrder) MarshalToSizedBuffer added in v0.49.3

func (m *MsgCreatePerpetualCloseOrder) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgCreatePerpetualCloseOrder) ProtoMessage added in v0.49.3

func (*MsgCreatePerpetualCloseOrder) ProtoMessage()

func (*MsgCreatePerpetualCloseOrder) Reset added in v0.49.3

func (m *MsgCreatePerpetualCloseOrder) Reset()

func (*MsgCreatePerpetualCloseOrder) Size added in v0.49.3

func (m *MsgCreatePerpetualCloseOrder) Size() (n int)

func (*MsgCreatePerpetualCloseOrder) String added in v0.49.3

func (*MsgCreatePerpetualCloseOrder) Unmarshal added in v0.49.3

func (m *MsgCreatePerpetualCloseOrder) Unmarshal(dAtA []byte) error

func (*MsgCreatePerpetualCloseOrder) ValidateBasic added in v0.49.3

func (msg *MsgCreatePerpetualCloseOrder) ValidateBasic() error

func (*MsgCreatePerpetualCloseOrder) XXX_DiscardUnknown added in v0.49.3

func (m *MsgCreatePerpetualCloseOrder) XXX_DiscardUnknown()

func (*MsgCreatePerpetualCloseOrder) XXX_Marshal added in v0.49.3

func (m *MsgCreatePerpetualCloseOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgCreatePerpetualCloseOrder) XXX_Merge added in v0.49.3

func (m *MsgCreatePerpetualCloseOrder) XXX_Merge(src proto.Message)

func (*MsgCreatePerpetualCloseOrder) XXX_Size added in v0.49.3

func (m *MsgCreatePerpetualCloseOrder) XXX_Size() int

func (*MsgCreatePerpetualCloseOrder) XXX_Unmarshal added in v0.49.3

func (m *MsgCreatePerpetualCloseOrder) XXX_Unmarshal(b []byte) error

type MsgCreatePerpetualCloseOrderResponse added in v0.49.3

type MsgCreatePerpetualCloseOrderResponse struct {
	OrderId uint64 `protobuf:"varint,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"`
}

func (*MsgCreatePerpetualCloseOrderResponse) Descriptor added in v0.49.3

func (*MsgCreatePerpetualCloseOrderResponse) Descriptor() ([]byte, []int)

func (*MsgCreatePerpetualCloseOrderResponse) GetOrderId added in v0.49.3

func (*MsgCreatePerpetualCloseOrderResponse) Marshal added in v0.49.3

func (m *MsgCreatePerpetualCloseOrderResponse) Marshal() (dAtA []byte, err error)

func (*MsgCreatePerpetualCloseOrderResponse) MarshalTo added in v0.49.3

func (m *MsgCreatePerpetualCloseOrderResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgCreatePerpetualCloseOrderResponse) MarshalToSizedBuffer added in v0.49.3

func (m *MsgCreatePerpetualCloseOrderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgCreatePerpetualCloseOrderResponse) ProtoMessage added in v0.49.3

func (*MsgCreatePerpetualCloseOrderResponse) ProtoMessage()

func (*MsgCreatePerpetualCloseOrderResponse) Reset added in v0.49.3

func (*MsgCreatePerpetualCloseOrderResponse) Size added in v0.49.3

func (*MsgCreatePerpetualCloseOrderResponse) String added in v0.49.3

func (*MsgCreatePerpetualCloseOrderResponse) Unmarshal added in v0.49.3

func (m *MsgCreatePerpetualCloseOrderResponse) Unmarshal(dAtA []byte) error

func (*MsgCreatePerpetualCloseOrderResponse) XXX_DiscardUnknown added in v0.49.3

func (m *MsgCreatePerpetualCloseOrderResponse) XXX_DiscardUnknown()

func (*MsgCreatePerpetualCloseOrderResponse) XXX_Marshal added in v0.49.3

func (m *MsgCreatePerpetualCloseOrderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgCreatePerpetualCloseOrderResponse) XXX_Merge added in v0.49.3

func (*MsgCreatePerpetualCloseOrderResponse) XXX_Size added in v0.49.3

func (*MsgCreatePerpetualCloseOrderResponse) XXX_Unmarshal added in v0.49.3

func (m *MsgCreatePerpetualCloseOrderResponse) XXX_Unmarshal(b []byte) error

type MsgCreatePerpetualOpenOrder added in v0.49.3

type MsgCreatePerpetualOpenOrder struct {
	OwnerAddress    string                      `protobuf:"bytes,1,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"`
	TriggerPrice    TriggerPrice                `protobuf:"bytes,2,opt,name=trigger_price,json=triggerPrice,proto3" json:"trigger_price"`
	Collateral      types.Coin                  `protobuf:"bytes,3,opt,name=collateral,proto3" json:"collateral"`
	TradingAsset    string                      `protobuf:"bytes,4,opt,name=trading_asset,json=tradingAsset,proto3" json:"trading_asset,omitempty"`
	Position        PerpetualPosition           `protobuf:"varint,5,opt,name=position,proto3,enum=elys.tradeshield.PerpetualPosition" json:"position,omitempty"`
	Leverage        cosmossdk_io_math.LegacyDec `protobuf:"bytes,6,opt,name=leverage,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"leverage"`
	TakeProfitPrice cosmossdk_io_math.LegacyDec `` /* 137-byte string literal not displayed */
	StopLossPrice   cosmossdk_io_math.LegacyDec `` /* 131-byte string literal not displayed */
	PoolId          uint64                      `protobuf:"varint,9,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"`
}

func NewMsgCreatePerpetualOpenOrder added in v0.49.3

func NewMsgCreatePerpetualOpenOrder(
	ownerAddress string,
	triggerPrice TriggerPrice,
	collateral sdk.Coin,
	tradingAsset string,
	position PerpetualPosition,
	leverage math.LegacyDec,
	takeProfitPrice math.LegacyDec,
	stopLossPrice math.LegacyDec,
	poolId uint64,
) *MsgCreatePerpetualOpenOrder

func (*MsgCreatePerpetualOpenOrder) Descriptor added in v0.49.3

func (*MsgCreatePerpetualOpenOrder) Descriptor() ([]byte, []int)

func (*MsgCreatePerpetualOpenOrder) GetCollateral added in v0.49.3

func (m *MsgCreatePerpetualOpenOrder) GetCollateral() types.Coin

func (*MsgCreatePerpetualOpenOrder) GetOwnerAddress added in v0.49.3

func (m *MsgCreatePerpetualOpenOrder) GetOwnerAddress() string

func (*MsgCreatePerpetualOpenOrder) GetPoolId added in v0.49.3

func (m *MsgCreatePerpetualOpenOrder) GetPoolId() uint64

func (*MsgCreatePerpetualOpenOrder) GetPosition added in v0.49.3

func (*MsgCreatePerpetualOpenOrder) GetTradingAsset added in v0.49.3

func (m *MsgCreatePerpetualOpenOrder) GetTradingAsset() string

func (*MsgCreatePerpetualOpenOrder) GetTriggerPrice added in v0.49.3

func (m *MsgCreatePerpetualOpenOrder) GetTriggerPrice() TriggerPrice

func (*MsgCreatePerpetualOpenOrder) Marshal added in v0.49.3

func (m *MsgCreatePerpetualOpenOrder) Marshal() (dAtA []byte, err error)

func (*MsgCreatePerpetualOpenOrder) MarshalTo added in v0.49.3

func (m *MsgCreatePerpetualOpenOrder) MarshalTo(dAtA []byte) (int, error)

func (*MsgCreatePerpetualOpenOrder) MarshalToSizedBuffer added in v0.49.3

func (m *MsgCreatePerpetualOpenOrder) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgCreatePerpetualOpenOrder) ProtoMessage added in v0.49.3

func (*MsgCreatePerpetualOpenOrder) ProtoMessage()

func (*MsgCreatePerpetualOpenOrder) Reset added in v0.49.3

func (m *MsgCreatePerpetualOpenOrder) Reset()

func (*MsgCreatePerpetualOpenOrder) Size added in v0.49.3

func (m *MsgCreatePerpetualOpenOrder) Size() (n int)

func (*MsgCreatePerpetualOpenOrder) String added in v0.49.3

func (m *MsgCreatePerpetualOpenOrder) String() string

func (*MsgCreatePerpetualOpenOrder) Unmarshal added in v0.49.3

func (m *MsgCreatePerpetualOpenOrder) Unmarshal(dAtA []byte) error

func (*MsgCreatePerpetualOpenOrder) ValidateBasic added in v0.49.3

func (msg *MsgCreatePerpetualOpenOrder) ValidateBasic() error

func (*MsgCreatePerpetualOpenOrder) XXX_DiscardUnknown added in v0.49.3

func (m *MsgCreatePerpetualOpenOrder) XXX_DiscardUnknown()

func (*MsgCreatePerpetualOpenOrder) XXX_Marshal added in v0.49.3

func (m *MsgCreatePerpetualOpenOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgCreatePerpetualOpenOrder) XXX_Merge added in v0.49.3

func (m *MsgCreatePerpetualOpenOrder) XXX_Merge(src proto.Message)

func (*MsgCreatePerpetualOpenOrder) XXX_Size added in v0.49.3

func (m *MsgCreatePerpetualOpenOrder) XXX_Size() int

func (*MsgCreatePerpetualOpenOrder) XXX_Unmarshal added in v0.49.3

func (m *MsgCreatePerpetualOpenOrder) XXX_Unmarshal(b []byte) error

type MsgCreatePerpetualOpenOrderResponse added in v0.49.3

type MsgCreatePerpetualOpenOrderResponse struct {
	OrderId uint64 `protobuf:"varint,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"`
}

func (*MsgCreatePerpetualOpenOrderResponse) Descriptor added in v0.49.3

func (*MsgCreatePerpetualOpenOrderResponse) Descriptor() ([]byte, []int)

func (*MsgCreatePerpetualOpenOrderResponse) GetOrderId added in v0.49.3

func (*MsgCreatePerpetualOpenOrderResponse) Marshal added in v0.49.3

func (m *MsgCreatePerpetualOpenOrderResponse) Marshal() (dAtA []byte, err error)

func (*MsgCreatePerpetualOpenOrderResponse) MarshalTo added in v0.49.3

func (m *MsgCreatePerpetualOpenOrderResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgCreatePerpetualOpenOrderResponse) MarshalToSizedBuffer added in v0.49.3

func (m *MsgCreatePerpetualOpenOrderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgCreatePerpetualOpenOrderResponse) ProtoMessage added in v0.49.3

func (*MsgCreatePerpetualOpenOrderResponse) ProtoMessage()

func (*MsgCreatePerpetualOpenOrderResponse) Reset added in v0.49.3

func (*MsgCreatePerpetualOpenOrderResponse) Size added in v0.49.3

func (*MsgCreatePerpetualOpenOrderResponse) String added in v0.49.3

func (*MsgCreatePerpetualOpenOrderResponse) Unmarshal added in v0.49.3

func (m *MsgCreatePerpetualOpenOrderResponse) Unmarshal(dAtA []byte) error

func (*MsgCreatePerpetualOpenOrderResponse) XXX_DiscardUnknown added in v0.49.3

func (m *MsgCreatePerpetualOpenOrderResponse) XXX_DiscardUnknown()

func (*MsgCreatePerpetualOpenOrderResponse) XXX_Marshal added in v0.49.3

func (m *MsgCreatePerpetualOpenOrderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgCreatePerpetualOpenOrderResponse) XXX_Merge added in v0.49.3

func (*MsgCreatePerpetualOpenOrderResponse) XXX_Size added in v0.49.3

func (*MsgCreatePerpetualOpenOrderResponse) XXX_Unmarshal added in v0.49.3

func (m *MsgCreatePerpetualOpenOrderResponse) XXX_Unmarshal(b []byte) error

type MsgCreateSpotOrder added in v0.49.3

type MsgCreateSpotOrder struct {
	OrderType        SpotOrderType `protobuf:"varint,1,opt,name=order_type,json=orderType,proto3,enum=elys.tradeshield.SpotOrderType" json:"order_type,omitempty"`
	OrderPrice       OrderPrice    `protobuf:"bytes,2,opt,name=order_price,json=orderPrice,proto3" json:"order_price"`
	OrderAmount      types.Coin    `protobuf:"bytes,3,opt,name=order_amount,json=orderAmount,proto3" json:"order_amount"`
	OwnerAddress     string        `protobuf:"bytes,4,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"`
	OrderTargetDenom string        `protobuf:"bytes,5,opt,name=order_target_denom,json=orderTargetDenom,proto3" json:"order_target_denom,omitempty"`
}

func NewMsgCreateSpotOrder added in v0.49.3

func NewMsgCreateSpotOrder(ownerAddress string, orderType SpotOrderType,
	orderPrice OrderPrice, orderAmount sdk.Coin,
	orderTargetDenom string) *MsgCreateSpotOrder

func (*MsgCreateSpotOrder) Descriptor added in v0.49.3

func (*MsgCreateSpotOrder) Descriptor() ([]byte, []int)

func (*MsgCreateSpotOrder) GetOrderAmount added in v0.49.3

func (m *MsgCreateSpotOrder) GetOrderAmount() types.Coin

func (*MsgCreateSpotOrder) GetOrderPrice added in v0.49.3

func (m *MsgCreateSpotOrder) GetOrderPrice() OrderPrice

func (*MsgCreateSpotOrder) GetOrderTargetDenom added in v0.49.3

func (m *MsgCreateSpotOrder) GetOrderTargetDenom() string

func (*MsgCreateSpotOrder) GetOrderType added in v0.49.3

func (m *MsgCreateSpotOrder) GetOrderType() SpotOrderType

func (*MsgCreateSpotOrder) GetOwnerAddress added in v0.49.3

func (m *MsgCreateSpotOrder) GetOwnerAddress() string

func (*MsgCreateSpotOrder) Marshal added in v0.49.3

func (m *MsgCreateSpotOrder) Marshal() (dAtA []byte, err error)

func (*MsgCreateSpotOrder) MarshalTo added in v0.49.3

func (m *MsgCreateSpotOrder) MarshalTo(dAtA []byte) (int, error)

func (*MsgCreateSpotOrder) MarshalToSizedBuffer added in v0.49.3

func (m *MsgCreateSpotOrder) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgCreateSpotOrder) ProtoMessage added in v0.49.3

func (*MsgCreateSpotOrder) ProtoMessage()

func (*MsgCreateSpotOrder) Reset added in v0.49.3

func (m *MsgCreateSpotOrder) Reset()

func (*MsgCreateSpotOrder) Size added in v0.49.3

func (m *MsgCreateSpotOrder) Size() (n int)

func (*MsgCreateSpotOrder) String added in v0.49.3

func (m *MsgCreateSpotOrder) String() string

func (*MsgCreateSpotOrder) Unmarshal added in v0.49.3

func (m *MsgCreateSpotOrder) Unmarshal(dAtA []byte) error

func (*MsgCreateSpotOrder) ValidateBasic added in v0.49.3

func (msg *MsgCreateSpotOrder) ValidateBasic() error

func (*MsgCreateSpotOrder) XXX_DiscardUnknown added in v0.49.3

func (m *MsgCreateSpotOrder) XXX_DiscardUnknown()

func (*MsgCreateSpotOrder) XXX_Marshal added in v0.49.3

func (m *MsgCreateSpotOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgCreateSpotOrder) XXX_Merge added in v0.49.3

func (m *MsgCreateSpotOrder) XXX_Merge(src proto.Message)

func (*MsgCreateSpotOrder) XXX_Size added in v0.49.3

func (m *MsgCreateSpotOrder) XXX_Size() int

func (*MsgCreateSpotOrder) XXX_Unmarshal added in v0.49.3

func (m *MsgCreateSpotOrder) XXX_Unmarshal(b []byte) error

type MsgCreateSpotOrderResponse added in v0.49.3

type MsgCreateSpotOrderResponse struct {
	OrderId uint64 `protobuf:"varint,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"`
}

func (*MsgCreateSpotOrderResponse) Descriptor added in v0.49.3

func (*MsgCreateSpotOrderResponse) Descriptor() ([]byte, []int)

func (*MsgCreateSpotOrderResponse) GetOrderId added in v0.49.3

func (m *MsgCreateSpotOrderResponse) GetOrderId() uint64

func (*MsgCreateSpotOrderResponse) Marshal added in v0.49.3

func (m *MsgCreateSpotOrderResponse) Marshal() (dAtA []byte, err error)

func (*MsgCreateSpotOrderResponse) MarshalTo added in v0.49.3

func (m *MsgCreateSpotOrderResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgCreateSpotOrderResponse) MarshalToSizedBuffer added in v0.49.3

func (m *MsgCreateSpotOrderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgCreateSpotOrderResponse) ProtoMessage added in v0.49.3

func (*MsgCreateSpotOrderResponse) ProtoMessage()

func (*MsgCreateSpotOrderResponse) Reset added in v0.49.3

func (m *MsgCreateSpotOrderResponse) Reset()

func (*MsgCreateSpotOrderResponse) Size added in v0.49.3

func (m *MsgCreateSpotOrderResponse) Size() (n int)

func (*MsgCreateSpotOrderResponse) String added in v0.49.3

func (m *MsgCreateSpotOrderResponse) String() string

func (*MsgCreateSpotOrderResponse) Unmarshal added in v0.49.3

func (m *MsgCreateSpotOrderResponse) Unmarshal(dAtA []byte) error

func (*MsgCreateSpotOrderResponse) XXX_DiscardUnknown added in v0.49.3

func (m *MsgCreateSpotOrderResponse) XXX_DiscardUnknown()

func (*MsgCreateSpotOrderResponse) XXX_Marshal added in v0.49.3

func (m *MsgCreateSpotOrderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgCreateSpotOrderResponse) XXX_Merge added in v0.49.3

func (m *MsgCreateSpotOrderResponse) XXX_Merge(src proto.Message)

func (*MsgCreateSpotOrderResponse) XXX_Size added in v0.49.3

func (m *MsgCreateSpotOrderResponse) XXX_Size() int

func (*MsgCreateSpotOrderResponse) XXX_Unmarshal added in v0.49.3

func (m *MsgCreateSpotOrderResponse) XXX_Unmarshal(b []byte) error

type MsgExecuteOrders added in v0.46.0

type MsgExecuteOrders struct {
	Creator           string   `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	SpotOrderIds      []uint64 `protobuf:"varint,2,rep,packed,name=spot_order_ids,json=spotOrderIds,proto3" json:"spot_order_ids,omitempty"`
	PerpetualOrderIds []uint64 `protobuf:"varint,3,rep,packed,name=perpetual_order_ids,json=perpetualOrderIds,proto3" json:"perpetual_order_ids,omitempty"`
}

func NewMsgExecuteOrders added in v0.46.0

func NewMsgExecuteOrders(creator string, spotOrderIds []uint64, perpetualOrderIds []uint64) *MsgExecuteOrders

func (*MsgExecuteOrders) Descriptor added in v0.46.0

func (*MsgExecuteOrders) Descriptor() ([]byte, []int)

func (*MsgExecuteOrders) GetCreator added in v0.46.0

func (m *MsgExecuteOrders) GetCreator() string

func (*MsgExecuteOrders) GetPerpetualOrderIds added in v0.46.0

func (m *MsgExecuteOrders) GetPerpetualOrderIds() []uint64

func (*MsgExecuteOrders) GetSpotOrderIds added in v0.46.0

func (m *MsgExecuteOrders) GetSpotOrderIds() []uint64

func (*MsgExecuteOrders) Marshal added in v0.46.0

func (m *MsgExecuteOrders) Marshal() (dAtA []byte, err error)

func (*MsgExecuteOrders) MarshalTo added in v0.46.0

func (m *MsgExecuteOrders) MarshalTo(dAtA []byte) (int, error)

func (*MsgExecuteOrders) MarshalToSizedBuffer added in v0.46.0

func (m *MsgExecuteOrders) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgExecuteOrders) ProtoMessage added in v0.46.0

func (*MsgExecuteOrders) ProtoMessage()

func (*MsgExecuteOrders) Reset added in v0.46.0

func (m *MsgExecuteOrders) Reset()

func (*MsgExecuteOrders) Size added in v0.46.0

func (m *MsgExecuteOrders) Size() (n int)

func (*MsgExecuteOrders) String added in v0.46.0

func (m *MsgExecuteOrders) String() string

func (*MsgExecuteOrders) Unmarshal added in v0.46.0

func (m *MsgExecuteOrders) Unmarshal(dAtA []byte) error

func (*MsgExecuteOrders) ValidateBasic added in v0.46.0

func (msg *MsgExecuteOrders) ValidateBasic() error

func (*MsgExecuteOrders) XXX_DiscardUnknown added in v0.46.0

func (m *MsgExecuteOrders) XXX_DiscardUnknown()

func (*MsgExecuteOrders) XXX_Marshal added in v0.46.0

func (m *MsgExecuteOrders) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgExecuteOrders) XXX_Merge added in v0.46.0

func (m *MsgExecuteOrders) XXX_Merge(src proto.Message)

func (*MsgExecuteOrders) XXX_Size added in v0.46.0

func (m *MsgExecuteOrders) XXX_Size() int

func (*MsgExecuteOrders) XXX_Unmarshal added in v0.46.0

func (m *MsgExecuteOrders) XXX_Unmarshal(b []byte) error

type MsgExecuteOrdersResponse added in v0.46.0

type MsgExecuteOrdersResponse struct {
}

func (*MsgExecuteOrdersResponse) Descriptor added in v0.46.0

func (*MsgExecuteOrdersResponse) Descriptor() ([]byte, []int)

func (*MsgExecuteOrdersResponse) Marshal added in v0.46.0

func (m *MsgExecuteOrdersResponse) Marshal() (dAtA []byte, err error)

func (*MsgExecuteOrdersResponse) MarshalTo added in v0.46.0

func (m *MsgExecuteOrdersResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgExecuteOrdersResponse) MarshalToSizedBuffer added in v0.46.0

func (m *MsgExecuteOrdersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgExecuteOrdersResponse) ProtoMessage added in v0.46.0

func (*MsgExecuteOrdersResponse) ProtoMessage()

func (*MsgExecuteOrdersResponse) Reset added in v0.46.0

func (m *MsgExecuteOrdersResponse) Reset()

func (*MsgExecuteOrdersResponse) Size added in v0.46.0

func (m *MsgExecuteOrdersResponse) Size() (n int)

func (*MsgExecuteOrdersResponse) String added in v0.46.0

func (m *MsgExecuteOrdersResponse) String() string

func (*MsgExecuteOrdersResponse) Unmarshal added in v0.46.0

func (m *MsgExecuteOrdersResponse) Unmarshal(dAtA []byte) error

func (*MsgExecuteOrdersResponse) XXX_DiscardUnknown added in v0.46.0

func (m *MsgExecuteOrdersResponse) XXX_DiscardUnknown()

func (*MsgExecuteOrdersResponse) XXX_Marshal added in v0.46.0

func (m *MsgExecuteOrdersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgExecuteOrdersResponse) XXX_Merge added in v0.46.0

func (m *MsgExecuteOrdersResponse) XXX_Merge(src proto.Message)

func (*MsgExecuteOrdersResponse) XXX_Size added in v0.46.0

func (m *MsgExecuteOrdersResponse) XXX_Size() int

func (*MsgExecuteOrdersResponse) XXX_Unmarshal added in v0.46.0

func (m *MsgExecuteOrdersResponse) XXX_Unmarshal(b []byte) error

type MsgUpdateParams added in v0.46.0

type MsgUpdateParams struct {
	// authority is the address that controls the module (defaults to x/gov unless
	// overwritten).
	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	// NOTE: All parameters must be supplied.
	Params *Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"`
}

func NewMsgUpdateParams added in v0.46.0

func NewMsgUpdateParams(authority string, params Params) *MsgUpdateParams

func (*MsgUpdateParams) Descriptor added in v0.46.0

func (*MsgUpdateParams) Descriptor() ([]byte, []int)

func (*MsgUpdateParams) GetAuthority added in v0.46.0

func (m *MsgUpdateParams) GetAuthority() string

func (*MsgUpdateParams) GetParams added in v0.46.0

func (m *MsgUpdateParams) GetParams() *Params

func (*MsgUpdateParams) Marshal added in v0.46.0

func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error)

func (*MsgUpdateParams) MarshalTo added in v0.46.0

func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error)

func (*MsgUpdateParams) MarshalToSizedBuffer added in v0.46.0

func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUpdateParams) ProtoMessage added in v0.46.0

func (*MsgUpdateParams) ProtoMessage()

func (*MsgUpdateParams) Reset added in v0.46.0

func (m *MsgUpdateParams) Reset()

func (*MsgUpdateParams) Size added in v0.46.0

func (m *MsgUpdateParams) Size() (n int)

func (*MsgUpdateParams) String added in v0.46.0

func (m *MsgUpdateParams) String() string

func (*MsgUpdateParams) Unmarshal added in v0.46.0

func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error

func (*MsgUpdateParams) ValidateBasic added in v0.46.0

func (msg *MsgUpdateParams) ValidateBasic() error

func (*MsgUpdateParams) XXX_DiscardUnknown added in v0.46.0

func (m *MsgUpdateParams) XXX_DiscardUnknown()

func (*MsgUpdateParams) XXX_Marshal added in v0.46.0

func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgUpdateParams) XXX_Merge added in v0.46.0

func (m *MsgUpdateParams) XXX_Merge(src proto.Message)

func (*MsgUpdateParams) XXX_Size added in v0.46.0

func (m *MsgUpdateParams) XXX_Size() int

func (*MsgUpdateParams) XXX_Unmarshal added in v0.46.0

func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error

type MsgUpdateParamsResponse added in v0.46.0

type MsgUpdateParamsResponse struct {
}

func (*MsgUpdateParamsResponse) Descriptor added in v0.46.0

func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)

func (*MsgUpdateParamsResponse) Marshal added in v0.46.0

func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)

func (*MsgUpdateParamsResponse) MarshalTo added in v0.46.0

func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgUpdateParamsResponse) MarshalToSizedBuffer added in v0.46.0

func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUpdateParamsResponse) ProtoMessage added in v0.46.0

func (*MsgUpdateParamsResponse) ProtoMessage()

func (*MsgUpdateParamsResponse) Reset added in v0.46.0

func (m *MsgUpdateParamsResponse) Reset()

func (*MsgUpdateParamsResponse) Size added in v0.46.0

func (m *MsgUpdateParamsResponse) Size() (n int)

func (*MsgUpdateParamsResponse) String added in v0.46.0

func (m *MsgUpdateParamsResponse) String() string

func (*MsgUpdateParamsResponse) Unmarshal added in v0.46.0

func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error

func (*MsgUpdateParamsResponse) XXX_DiscardUnknown added in v0.46.0

func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()

func (*MsgUpdateParamsResponse) XXX_Marshal added in v0.46.0

func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgUpdateParamsResponse) XXX_Merge added in v0.46.0

func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)

func (*MsgUpdateParamsResponse) XXX_Size added in v0.46.0

func (m *MsgUpdateParamsResponse) XXX_Size() int

func (*MsgUpdateParamsResponse) XXX_Unmarshal added in v0.46.0

func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error

type MsgUpdatePerpetualOrder added in v0.49.3

type MsgUpdatePerpetualOrder struct {
	OwnerAddress string       `protobuf:"bytes,1,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"`
	OrderId      uint64       `protobuf:"varint,2,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"`
	TriggerPrice TriggerPrice `protobuf:"bytes,3,opt,name=trigger_price,json=triggerPrice,proto3" json:"trigger_price"`
}

func NewMsgUpdatePerpetualOrder added in v0.49.3

func NewMsgUpdatePerpetualOrder(creator string, id uint64, triggerPrice TriggerPrice) *MsgUpdatePerpetualOrder

func (*MsgUpdatePerpetualOrder) Descriptor added in v0.49.3

func (*MsgUpdatePerpetualOrder) Descriptor() ([]byte, []int)

func (*MsgUpdatePerpetualOrder) GetOrderId added in v0.49.3

func (m *MsgUpdatePerpetualOrder) GetOrderId() uint64

func (*MsgUpdatePerpetualOrder) GetOwnerAddress added in v0.49.3

func (m *MsgUpdatePerpetualOrder) GetOwnerAddress() string

func (*MsgUpdatePerpetualOrder) GetTriggerPrice added in v0.49.3

func (m *MsgUpdatePerpetualOrder) GetTriggerPrice() TriggerPrice

func (*MsgUpdatePerpetualOrder) Marshal added in v0.49.3

func (m *MsgUpdatePerpetualOrder) Marshal() (dAtA []byte, err error)

func (*MsgUpdatePerpetualOrder) MarshalTo added in v0.49.3

func (m *MsgUpdatePerpetualOrder) MarshalTo(dAtA []byte) (int, error)

func (*MsgUpdatePerpetualOrder) MarshalToSizedBuffer added in v0.49.3

func (m *MsgUpdatePerpetualOrder) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUpdatePerpetualOrder) ProtoMessage added in v0.49.3

func (*MsgUpdatePerpetualOrder) ProtoMessage()

func (*MsgUpdatePerpetualOrder) Reset added in v0.49.3

func (m *MsgUpdatePerpetualOrder) Reset()

func (*MsgUpdatePerpetualOrder) Size added in v0.49.3

func (m *MsgUpdatePerpetualOrder) Size() (n int)

func (*MsgUpdatePerpetualOrder) String added in v0.49.3

func (m *MsgUpdatePerpetualOrder) String() string

func (*MsgUpdatePerpetualOrder) Unmarshal added in v0.49.3

func (m *MsgUpdatePerpetualOrder) Unmarshal(dAtA []byte) error

func (*MsgUpdatePerpetualOrder) ValidateBasic added in v0.49.3

func (msg *MsgUpdatePerpetualOrder) ValidateBasic() error

func (*MsgUpdatePerpetualOrder) XXX_DiscardUnknown added in v0.49.3

func (m *MsgUpdatePerpetualOrder) XXX_DiscardUnknown()

func (*MsgUpdatePerpetualOrder) XXX_Marshal added in v0.49.3

func (m *MsgUpdatePerpetualOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgUpdatePerpetualOrder) XXX_Merge added in v0.49.3

func (m *MsgUpdatePerpetualOrder) XXX_Merge(src proto.Message)

func (*MsgUpdatePerpetualOrder) XXX_Size added in v0.49.3

func (m *MsgUpdatePerpetualOrder) XXX_Size() int

func (*MsgUpdatePerpetualOrder) XXX_Unmarshal added in v0.49.3

func (m *MsgUpdatePerpetualOrder) XXX_Unmarshal(b []byte) error

type MsgUpdatePerpetualOrderResponse added in v0.49.3

type MsgUpdatePerpetualOrderResponse struct {
}

func (*MsgUpdatePerpetualOrderResponse) Descriptor added in v0.49.3

func (*MsgUpdatePerpetualOrderResponse) Descriptor() ([]byte, []int)

func (*MsgUpdatePerpetualOrderResponse) Marshal added in v0.49.3

func (m *MsgUpdatePerpetualOrderResponse) Marshal() (dAtA []byte, err error)

func (*MsgUpdatePerpetualOrderResponse) MarshalTo added in v0.49.3

func (m *MsgUpdatePerpetualOrderResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgUpdatePerpetualOrderResponse) MarshalToSizedBuffer added in v0.49.3

func (m *MsgUpdatePerpetualOrderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUpdatePerpetualOrderResponse) ProtoMessage added in v0.49.3

func (*MsgUpdatePerpetualOrderResponse) ProtoMessage()

func (*MsgUpdatePerpetualOrderResponse) Reset added in v0.49.3

func (*MsgUpdatePerpetualOrderResponse) Size added in v0.49.3

func (m *MsgUpdatePerpetualOrderResponse) Size() (n int)

func (*MsgUpdatePerpetualOrderResponse) String added in v0.49.3

func (*MsgUpdatePerpetualOrderResponse) Unmarshal added in v0.49.3

func (m *MsgUpdatePerpetualOrderResponse) Unmarshal(dAtA []byte) error

func (*MsgUpdatePerpetualOrderResponse) XXX_DiscardUnknown added in v0.49.3

func (m *MsgUpdatePerpetualOrderResponse) XXX_DiscardUnknown()

func (*MsgUpdatePerpetualOrderResponse) XXX_Marshal added in v0.49.3

func (m *MsgUpdatePerpetualOrderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgUpdatePerpetualOrderResponse) XXX_Merge added in v0.49.3

func (m *MsgUpdatePerpetualOrderResponse) XXX_Merge(src proto.Message)

func (*MsgUpdatePerpetualOrderResponse) XXX_Size added in v0.49.3

func (m *MsgUpdatePerpetualOrderResponse) XXX_Size() int

func (*MsgUpdatePerpetualOrderResponse) XXX_Unmarshal added in v0.49.3

func (m *MsgUpdatePerpetualOrderResponse) XXX_Unmarshal(b []byte) error

type MsgUpdateSpotOrder added in v0.49.3

type MsgUpdateSpotOrder struct {
	OwnerAddress string     `protobuf:"bytes,1,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"`
	OrderId      uint64     `protobuf:"varint,2,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"`
	OrderPrice   OrderPrice `protobuf:"bytes,3,opt,name=order_price,json=orderPrice,proto3" json:"order_price"`
}

func NewMsgUpdateSpotOrder added in v0.49.3

func NewMsgUpdateSpotOrder(creator string, id uint64, orderPrice OrderPrice) *MsgUpdateSpotOrder

func (*MsgUpdateSpotOrder) Descriptor added in v0.49.3

func (*MsgUpdateSpotOrder) Descriptor() ([]byte, []int)

func (*MsgUpdateSpotOrder) GetOrderId added in v0.49.3

func (m *MsgUpdateSpotOrder) GetOrderId() uint64

func (*MsgUpdateSpotOrder) GetOrderPrice added in v0.49.3

func (m *MsgUpdateSpotOrder) GetOrderPrice() OrderPrice

func (*MsgUpdateSpotOrder) GetOwnerAddress added in v0.49.3

func (m *MsgUpdateSpotOrder) GetOwnerAddress() string

func (*MsgUpdateSpotOrder) Marshal added in v0.49.3

func (m *MsgUpdateSpotOrder) Marshal() (dAtA []byte, err error)

func (*MsgUpdateSpotOrder) MarshalTo added in v0.49.3

func (m *MsgUpdateSpotOrder) MarshalTo(dAtA []byte) (int, error)

func (*MsgUpdateSpotOrder) MarshalToSizedBuffer added in v0.49.3

func (m *MsgUpdateSpotOrder) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUpdateSpotOrder) ProtoMessage added in v0.49.3

func (*MsgUpdateSpotOrder) ProtoMessage()

func (*MsgUpdateSpotOrder) Reset added in v0.49.3

func (m *MsgUpdateSpotOrder) Reset()

func (*MsgUpdateSpotOrder) Size added in v0.49.3

func (m *MsgUpdateSpotOrder) Size() (n int)

func (*MsgUpdateSpotOrder) String added in v0.49.3

func (m *MsgUpdateSpotOrder) String() string

func (*MsgUpdateSpotOrder) Unmarshal added in v0.49.3

func (m *MsgUpdateSpotOrder) Unmarshal(dAtA []byte) error

func (*MsgUpdateSpotOrder) ValidateBasic added in v0.49.3

func (msg *MsgUpdateSpotOrder) ValidateBasic() error

func (*MsgUpdateSpotOrder) XXX_DiscardUnknown added in v0.49.3

func (m *MsgUpdateSpotOrder) XXX_DiscardUnknown()

func (*MsgUpdateSpotOrder) XXX_Marshal added in v0.49.3

func (m *MsgUpdateSpotOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgUpdateSpotOrder) XXX_Merge added in v0.49.3

func (m *MsgUpdateSpotOrder) XXX_Merge(src proto.Message)

func (*MsgUpdateSpotOrder) XXX_Size added in v0.49.3

func (m *MsgUpdateSpotOrder) XXX_Size() int

func (*MsgUpdateSpotOrder) XXX_Unmarshal added in v0.49.3

func (m *MsgUpdateSpotOrder) XXX_Unmarshal(b []byte) error

type MsgUpdateSpotOrderResponse added in v0.49.3

type MsgUpdateSpotOrderResponse struct {
}

func (*MsgUpdateSpotOrderResponse) Descriptor added in v0.49.3

func (*MsgUpdateSpotOrderResponse) Descriptor() ([]byte, []int)

func (*MsgUpdateSpotOrderResponse) Marshal added in v0.49.3

func (m *MsgUpdateSpotOrderResponse) Marshal() (dAtA []byte, err error)

func (*MsgUpdateSpotOrderResponse) MarshalTo added in v0.49.3

func (m *MsgUpdateSpotOrderResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgUpdateSpotOrderResponse) MarshalToSizedBuffer added in v0.49.3

func (m *MsgUpdateSpotOrderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUpdateSpotOrderResponse) ProtoMessage added in v0.49.3

func (*MsgUpdateSpotOrderResponse) ProtoMessage()

func (*MsgUpdateSpotOrderResponse) Reset added in v0.49.3

func (m *MsgUpdateSpotOrderResponse) Reset()

func (*MsgUpdateSpotOrderResponse) Size added in v0.49.3

func (m *MsgUpdateSpotOrderResponse) Size() (n int)

func (*MsgUpdateSpotOrderResponse) String added in v0.49.3

func (m *MsgUpdateSpotOrderResponse) String() string

func (*MsgUpdateSpotOrderResponse) Unmarshal added in v0.49.3

func (m *MsgUpdateSpotOrderResponse) Unmarshal(dAtA []byte) error

func (*MsgUpdateSpotOrderResponse) XXX_DiscardUnknown added in v0.49.3

func (m *MsgUpdateSpotOrderResponse) XXX_DiscardUnknown()

func (*MsgUpdateSpotOrderResponse) XXX_Marshal added in v0.49.3

func (m *MsgUpdateSpotOrderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgUpdateSpotOrderResponse) XXX_Merge added in v0.49.3

func (m *MsgUpdateSpotOrderResponse) XXX_Merge(src proto.Message)

func (*MsgUpdateSpotOrderResponse) XXX_Size added in v0.49.3

func (m *MsgUpdateSpotOrderResponse) XXX_Size() int

func (*MsgUpdateSpotOrderResponse) XXX_Unmarshal added in v0.49.3

func (m *MsgUpdateSpotOrderResponse) XXX_Unmarshal(b []byte) error

type OrderPrice added in v0.46.0

type OrderPrice struct {
	BaseDenom  string                      `protobuf:"bytes,1,opt,name=base_denom,json=baseDenom,proto3" json:"base_denom,omitempty"`
	QuoteDenom string                      `protobuf:"bytes,2,opt,name=quote_denom,json=quoteDenom,proto3" json:"quote_denom,omitempty"`
	Rate       cosmossdk_io_math.LegacyDec `protobuf:"bytes,3,opt,name=rate,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"rate"`
}

func (*OrderPrice) Descriptor added in v0.46.0

func (*OrderPrice) Descriptor() ([]byte, []int)

func (*OrderPrice) GetBaseDenom added in v0.46.0

func (m *OrderPrice) GetBaseDenom() string

func (*OrderPrice) GetQuoteDenom added in v0.46.0

func (m *OrderPrice) GetQuoteDenom() string

func (*OrderPrice) Marshal added in v0.46.0

func (m *OrderPrice) Marshal() (dAtA []byte, err error)

func (*OrderPrice) MarshalTo added in v0.46.0

func (m *OrderPrice) MarshalTo(dAtA []byte) (int, error)

func (*OrderPrice) MarshalToSizedBuffer added in v0.46.0

func (m *OrderPrice) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*OrderPrice) ProtoMessage added in v0.46.0

func (*OrderPrice) ProtoMessage()

func (*OrderPrice) Reset added in v0.46.0

func (m *OrderPrice) Reset()

func (*OrderPrice) Size added in v0.46.0

func (m *OrderPrice) Size() (n int)

func (*OrderPrice) String added in v0.46.0

func (m *OrderPrice) String() string

func (*OrderPrice) Unmarshal added in v0.46.0

func (m *OrderPrice) Unmarshal(dAtA []byte) error

func (*OrderPrice) XXX_DiscardUnknown added in v0.46.0

func (m *OrderPrice) XXX_DiscardUnknown()

func (*OrderPrice) XXX_Marshal added in v0.46.0

func (m *OrderPrice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*OrderPrice) XXX_Merge added in v0.46.0

func (m *OrderPrice) XXX_Merge(src proto.Message)

func (*OrderPrice) XXX_Size added in v0.46.0

func (m *OrderPrice) XXX_Size() int

func (*OrderPrice) XXX_Unmarshal added in v0.46.0

func (m *OrderPrice) XXX_Unmarshal(b []byte) error

type Params

type Params struct {
	MarketOrderEnabled   bool   `protobuf:"varint,1,opt,name=market_order_enabled,json=marketOrderEnabled,proto3" json:"market_order_enabled,omitempty"`
	StakeEnabled         bool   `protobuf:"varint,2,opt,name=stake_enabled,json=stakeEnabled,proto3" json:"stake_enabled,omitempty"`
	ProcessOrdersEnabled bool   `protobuf:"varint,3,opt,name=process_orders_enabled,json=processOrdersEnabled,proto3" json:"process_orders_enabled,omitempty"`
	SwapEnabled          bool   `protobuf:"varint,4,opt,name=swap_enabled,json=swapEnabled,proto3" json:"swap_enabled,omitempty"`
	PerpetualEnabled     bool   `protobuf:"varint,5,opt,name=perpetual_enabled,json=perpetualEnabled,proto3" json:"perpetual_enabled,omitempty"`
	RewardEnabled        bool   `protobuf:"varint,6,opt,name=reward_enabled,json=rewardEnabled,proto3" json:"reward_enabled,omitempty"`
	LeverageEnabled      bool   `protobuf:"varint,7,opt,name=leverage_enabled,json=leverageEnabled,proto3" json:"leverage_enabled,omitempty"`
	LimitProcessOrder    uint64 `protobuf:"varint,8,opt,name=limit_process_order,json=limitProcessOrder,proto3" json:"limit_process_order,omitempty"`
	// For incentive system v2
	RewardPercentage cosmossdk_io_math.LegacyDec `` /* 138-byte string literal not displayed */
	MarginError      cosmossdk_io_math.LegacyDec `protobuf:"bytes,10,opt,name=margin_error,json=marginError,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"margin_error"`
	MinimumDeposit   cosmossdk_io_math.Int       `` /* 127-byte string literal not displayed */
}

Params defines the parameters for the module.

func DefaultParams

func DefaultParams() Params

DefaultParams returns a default set of parameters

func NewParams

func NewParams() Params

NewParams creates a new Params instance

func (*Params) Descriptor

func (*Params) Descriptor() ([]byte, []int)

func (*Params) GetLeverageEnabled added in v0.46.0

func (m *Params) GetLeverageEnabled() bool

func (*Params) GetLimitProcessOrder added in v0.46.0

func (m *Params) GetLimitProcessOrder() uint64

func (*Params) GetMarketOrderEnabled added in v0.46.0

func (m *Params) GetMarketOrderEnabled() bool

func (*Params) GetPerpetualEnabled added in v0.46.0

func (m *Params) GetPerpetualEnabled() bool

func (*Params) GetProcessOrdersEnabled added in v0.46.0

func (m *Params) GetProcessOrdersEnabled() bool

func (*Params) GetRewardEnabled added in v0.46.0

func (m *Params) GetRewardEnabled() bool

func (*Params) GetStakeEnabled added in v0.46.0

func (m *Params) GetStakeEnabled() bool

func (*Params) GetSwapEnabled added in v0.46.0

func (m *Params) GetSwapEnabled() bool

func (*Params) Marshal

func (m *Params) Marshal() (dAtA []byte, err error)

func (*Params) MarshalTo

func (m *Params) MarshalTo(dAtA []byte) (int, error)

func (*Params) MarshalToSizedBuffer

func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

func (m *Params) Size() (n int)

func (*Params) String

func (m *Params) String() string

func (*Params) Unmarshal

func (m *Params) Unmarshal(dAtA []byte) error

func (Params) Validate

func (p Params) Validate() error

Validate validates the set of params

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Params) XXX_Merge

func (m *Params) XXX_Merge(src proto.Message)

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

func (m *Params) XXX_Unmarshal(b []byte) error

type PendingPerpetualOrder added in v0.46.0

type PendingPerpetualOrder struct {
	Id      uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Order   string `protobuf:"bytes,2,opt,name=order,proto3" json:"order,omitempty"`
	Creator string `protobuf:"bytes,3,opt,name=creator,proto3" json:"creator,omitempty"`
}

func (*PendingPerpetualOrder) Descriptor added in v0.46.0

func (*PendingPerpetualOrder) Descriptor() ([]byte, []int)

func (*PendingPerpetualOrder) GetCreator added in v0.46.0

func (m *PendingPerpetualOrder) GetCreator() string

func (*PendingPerpetualOrder) GetId added in v0.46.0

func (m *PendingPerpetualOrder) GetId() uint64

func (*PendingPerpetualOrder) GetOrder added in v0.46.0

func (m *PendingPerpetualOrder) GetOrder() string

func (*PendingPerpetualOrder) Marshal added in v0.46.0

func (m *PendingPerpetualOrder) Marshal() (dAtA []byte, err error)

func (*PendingPerpetualOrder) MarshalTo added in v0.46.0

func (m *PendingPerpetualOrder) MarshalTo(dAtA []byte) (int, error)

func (*PendingPerpetualOrder) MarshalToSizedBuffer added in v0.46.0

func (m *PendingPerpetualOrder) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PendingPerpetualOrder) ProtoMessage added in v0.46.0

func (*PendingPerpetualOrder) ProtoMessage()

func (*PendingPerpetualOrder) Reset added in v0.46.0

func (m *PendingPerpetualOrder) Reset()

func (*PendingPerpetualOrder) Size added in v0.46.0

func (m *PendingPerpetualOrder) Size() (n int)

func (*PendingPerpetualOrder) String added in v0.46.0

func (m *PendingPerpetualOrder) String() string

func (*PendingPerpetualOrder) Unmarshal added in v0.46.0

func (m *PendingPerpetualOrder) Unmarshal(dAtA []byte) error

func (*PendingPerpetualOrder) XXX_DiscardUnknown added in v0.46.0

func (m *PendingPerpetualOrder) XXX_DiscardUnknown()

func (*PendingPerpetualOrder) XXX_Marshal added in v0.46.0

func (m *PendingPerpetualOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PendingPerpetualOrder) XXX_Merge added in v0.46.0

func (m *PendingPerpetualOrder) XXX_Merge(src proto.Message)

func (*PendingPerpetualOrder) XXX_Size added in v0.46.0

func (m *PendingPerpetualOrder) XXX_Size() int

func (*PendingPerpetualOrder) XXX_Unmarshal added in v0.46.0

func (m *PendingPerpetualOrder) XXX_Unmarshal(b []byte) error

type PerpetualKeeper added in v0.46.0

type PerpetualKeeper interface {
	Open(ctx sdk.Context, msg *perpetualtypes.MsgOpen) (*perpetualtypes.MsgOpenResponse, error)
	Close(ctx sdk.Context, msg *perpetualtypes.MsgClose) (*perpetualtypes.MsgCloseResponse, error)
	GetMTP(ctx sdk.Context, mtpAddress sdk.AccAddress, id uint64) (perpetualtypes.MTP, error)
	GetPool(ctx sdk.Context, poolId uint64) (val perpetualtypes.Pool, found bool)
	GetParams(ctx sdk.Context) perpetualtypes.Params
	HandleOpenEstimation(ctx sdk.Context, req *perpetualtypes.QueryOpenEstimationRequest) (*perpetualtypes.QueryOpenEstimationResponse, error)
	HandleCloseEstimation(ctx sdk.Context, req *perpetualtypes.QueryCloseEstimationRequest) (res *perpetualtypes.QueryCloseEstimationResponse, err error)
	GetAssetPrice(ctx sdk.Context, asset string) (sdkmath.LegacyDec, error)
	GetMTPsForAddressWithPagination(ctx sdk.Context, mtpAddress sdk.AccAddress, pagination *query.PageRequest) ([]*perpetualtypes.MtpAndPrice, *query.PageResponse, error)
}

PerpetualKeeper defines the expected interface needed to open and close perpetual positions

type PerpetualOrder added in v0.46.0

type PerpetualOrder struct {
	OrderId            uint64                      `protobuf:"varint,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"`
	OwnerAddress       string                      `protobuf:"bytes,2,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"`
	PerpetualOrderType PerpetualOrderType          `` /* 159-byte string literal not displayed */
	Position           PerpetualPosition           `protobuf:"varint,4,opt,name=position,proto3,enum=elys.tradeshield.PerpetualPosition" json:"position,omitempty"`
	TriggerPrice       TriggerPrice                `protobuf:"bytes,5,opt,name=trigger_price,json=triggerPrice,proto3" json:"trigger_price"`
	Collateral         types.Coin                  `protobuf:"bytes,6,opt,name=collateral,proto3" json:"collateral"`
	TradingAsset       string                      `protobuf:"bytes,7,opt,name=trading_asset,json=tradingAsset,proto3" json:"trading_asset,omitempty"`
	Leverage           cosmossdk_io_math.LegacyDec `protobuf:"bytes,8,opt,name=leverage,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"leverage"`
	TakeProfitPrice    cosmossdk_io_math.LegacyDec `` /* 137-byte string literal not displayed */
	PositionId         uint64                      `protobuf:"varint,10,opt,name=position_id,json=positionId,proto3" json:"position_id,omitempty"`
	Status             Status                      `protobuf:"varint,11,opt,name=status,proto3,enum=elys.tradeshield.Status" json:"status,omitempty"`
	StopLossPrice      cosmossdk_io_math.LegacyDec `` /* 132-byte string literal not displayed */
	PoolId             uint64                      `protobuf:"varint,13,opt,name=poolId,proto3" json:"poolId,omitempty"`
}

func (*PerpetualOrder) Descriptor added in v0.46.0

func (*PerpetualOrder) Descriptor() ([]byte, []int)

func (*PerpetualOrder) GetCollateral added in v0.46.0

func (m *PerpetualOrder) GetCollateral() types.Coin

func (PerpetualOrder) GetOrderAddress added in v0.52.0

func (p PerpetualOrder) GetOrderAddress() sdk.AccAddress

Get Perpetual Order address

func (*PerpetualOrder) GetOrderId added in v0.46.0

func (m *PerpetualOrder) GetOrderId() uint64

func (*PerpetualOrder) GetOwnerAddress added in v0.46.0

func (m *PerpetualOrder) GetOwnerAddress() string

func (*PerpetualOrder) GetPerpetualOrderType added in v0.46.0

func (m *PerpetualOrder) GetPerpetualOrderType() PerpetualOrderType

func (*PerpetualOrder) GetPoolId added in v0.49.3

func (m *PerpetualOrder) GetPoolId() uint64

func (*PerpetualOrder) GetPosition added in v0.46.0

func (m *PerpetualOrder) GetPosition() PerpetualPosition

func (*PerpetualOrder) GetPositionId added in v0.46.0

func (m *PerpetualOrder) GetPositionId() uint64

func (*PerpetualOrder) GetStatus added in v0.46.0

func (m *PerpetualOrder) GetStatus() Status

func (*PerpetualOrder) GetTradingAsset added in v0.46.0

func (m *PerpetualOrder) GetTradingAsset() string

func (*PerpetualOrder) GetTriggerPrice added in v0.46.0

func (m *PerpetualOrder) GetTriggerPrice() TriggerPrice

func (*PerpetualOrder) Marshal added in v0.46.0

func (m *PerpetualOrder) Marshal() (dAtA []byte, err error)

func (*PerpetualOrder) MarshalTo added in v0.46.0

func (m *PerpetualOrder) MarshalTo(dAtA []byte) (int, error)

func (*PerpetualOrder) MarshalToSizedBuffer added in v0.46.0

func (m *PerpetualOrder) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PerpetualOrder) ProtoMessage added in v0.46.0

func (*PerpetualOrder) ProtoMessage()

func (*PerpetualOrder) Reset added in v0.46.0

func (m *PerpetualOrder) Reset()

func (*PerpetualOrder) Size added in v0.46.0

func (m *PerpetualOrder) Size() (n int)

func (*PerpetualOrder) String added in v0.46.0

func (m *PerpetualOrder) String() string

func (*PerpetualOrder) Unmarshal added in v0.46.0

func (m *PerpetualOrder) Unmarshal(dAtA []byte) error

func (*PerpetualOrder) XXX_DiscardUnknown added in v0.46.0

func (m *PerpetualOrder) XXX_DiscardUnknown()

func (*PerpetualOrder) XXX_Marshal added in v0.46.0

func (m *PerpetualOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PerpetualOrder) XXX_Merge added in v0.46.0

func (m *PerpetualOrder) XXX_Merge(src proto.Message)

func (*PerpetualOrder) XXX_Size added in v0.46.0

func (m *PerpetualOrder) XXX_Size() int

func (*PerpetualOrder) XXX_Unmarshal added in v0.46.0

func (m *PerpetualOrder) XXX_Unmarshal(b []byte) error

type PerpetualOrderExtraInfo added in v0.49.3

type PerpetualOrderExtraInfo struct {
	PerpetualOrder     *PerpetualOrder             `protobuf:"bytes,1,opt,name=perpetual_order,json=perpetualOrder,proto3" json:"perpetual_order,omitempty"`
	PositionSize       types.Coin                  `protobuf:"bytes,2,opt,name=position_size,json=positionSize,proto3" json:"position_size"`
	LiquidationPrice   cosmossdk_io_math.LegacyDec `` /* 138-byte string literal not displayed */
	FundingRate        cosmossdk_io_math.LegacyDec `protobuf:"bytes,4,opt,name=funding_rate,json=fundingRate,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"funding_rate"`
	BorrowInterestRate cosmossdk_io_math.LegacyDec `` /* 146-byte string literal not displayed */
}

func (*PerpetualOrderExtraInfo) Descriptor added in v0.49.3

func (*PerpetualOrderExtraInfo) Descriptor() ([]byte, []int)

func (*PerpetualOrderExtraInfo) GetPerpetualOrder added in v0.49.3

func (m *PerpetualOrderExtraInfo) GetPerpetualOrder() *PerpetualOrder

func (*PerpetualOrderExtraInfo) GetPositionSize added in v0.49.3

func (m *PerpetualOrderExtraInfo) GetPositionSize() types.Coin

func (*PerpetualOrderExtraInfo) Marshal added in v0.49.3

func (m *PerpetualOrderExtraInfo) Marshal() (dAtA []byte, err error)

func (*PerpetualOrderExtraInfo) MarshalTo added in v0.49.3

func (m *PerpetualOrderExtraInfo) MarshalTo(dAtA []byte) (int, error)

func (*PerpetualOrderExtraInfo) MarshalToSizedBuffer added in v0.49.3

func (m *PerpetualOrderExtraInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PerpetualOrderExtraInfo) ProtoMessage added in v0.49.3

func (*PerpetualOrderExtraInfo) ProtoMessage()

func (*PerpetualOrderExtraInfo) Reset added in v0.49.3

func (m *PerpetualOrderExtraInfo) Reset()

func (*PerpetualOrderExtraInfo) Size added in v0.49.3

func (m *PerpetualOrderExtraInfo) Size() (n int)

func (*PerpetualOrderExtraInfo) String added in v0.49.3

func (m *PerpetualOrderExtraInfo) String() string

func (*PerpetualOrderExtraInfo) Unmarshal added in v0.49.3

func (m *PerpetualOrderExtraInfo) Unmarshal(dAtA []byte) error

func (*PerpetualOrderExtraInfo) XXX_DiscardUnknown added in v0.49.3

func (m *PerpetualOrderExtraInfo) XXX_DiscardUnknown()

func (*PerpetualOrderExtraInfo) XXX_Marshal added in v0.49.3

func (m *PerpetualOrderExtraInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PerpetualOrderExtraInfo) XXX_Merge added in v0.49.3

func (m *PerpetualOrderExtraInfo) XXX_Merge(src proto.Message)

func (*PerpetualOrderExtraInfo) XXX_Size added in v0.49.3

func (m *PerpetualOrderExtraInfo) XXX_Size() int

func (*PerpetualOrderExtraInfo) XXX_Unmarshal added in v0.49.3

func (m *PerpetualOrderExtraInfo) XXX_Unmarshal(b []byte) error

type PerpetualOrderType added in v0.46.0

type PerpetualOrderType int32

Perpetual Order

const (
	PerpetualOrderType_LIMITOPEN    PerpetualOrderType = 0
	PerpetualOrderType_LIMITCLOSE   PerpetualOrderType = 1
	PerpetualOrderType_STOPLOSSPERP PerpetualOrderType = 2
)

func GetPerpetualOrderTypeFromString added in v0.49.3

func GetPerpetualOrderTypeFromString(s string) PerpetualOrderType

func (PerpetualOrderType) EnumDescriptor added in v0.46.0

func (PerpetualOrderType) EnumDescriptor() ([]byte, []int)

func (PerpetualOrderType) String added in v0.46.0

func (x PerpetualOrderType) String() string

type PerpetualPosition added in v0.46.0

type PerpetualPosition int32
const (
	PerpetualPosition_UNSPECIFIED PerpetualPosition = 0
	PerpetualPosition_LONG        PerpetualPosition = 1
	PerpetualPosition_SHORT       PerpetualPosition = 2
)

func (PerpetualPosition) EnumDescriptor added in v0.46.0

func (PerpetualPosition) EnumDescriptor() ([]byte, []int)

func (PerpetualPosition) String added in v0.46.0

func (x PerpetualPosition) String() string

type QueryAllPendingPerpetualOrderRequest added in v0.46.0

type QueryAllPendingPerpetualOrderRequest struct {
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllPendingPerpetualOrderRequest) Descriptor added in v0.46.0

func (*QueryAllPendingPerpetualOrderRequest) Descriptor() ([]byte, []int)

func (*QueryAllPendingPerpetualOrderRequest) GetPagination added in v0.46.0

func (*QueryAllPendingPerpetualOrderRequest) Marshal added in v0.46.0

func (m *QueryAllPendingPerpetualOrderRequest) Marshal() (dAtA []byte, err error)

func (*QueryAllPendingPerpetualOrderRequest) MarshalTo added in v0.46.0

func (m *QueryAllPendingPerpetualOrderRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryAllPendingPerpetualOrderRequest) MarshalToSizedBuffer added in v0.46.0

func (m *QueryAllPendingPerpetualOrderRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryAllPendingPerpetualOrderRequest) ProtoMessage added in v0.46.0

func (*QueryAllPendingPerpetualOrderRequest) ProtoMessage()

func (*QueryAllPendingPerpetualOrderRequest) Reset added in v0.46.0

func (*QueryAllPendingPerpetualOrderRequest) Size added in v0.46.0

func (*QueryAllPendingPerpetualOrderRequest) String added in v0.46.0

func (*QueryAllPendingPerpetualOrderRequest) Unmarshal added in v0.46.0

func (m *QueryAllPendingPerpetualOrderRequest) Unmarshal(dAtA []byte) error

func (*QueryAllPendingPerpetualOrderRequest) XXX_DiscardUnknown added in v0.46.0

func (m *QueryAllPendingPerpetualOrderRequest) XXX_DiscardUnknown()

func (*QueryAllPendingPerpetualOrderRequest) XXX_Marshal added in v0.46.0

func (m *QueryAllPendingPerpetualOrderRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryAllPendingPerpetualOrderRequest) XXX_Merge added in v0.46.0

func (*QueryAllPendingPerpetualOrderRequest) XXX_Size added in v0.46.0

func (*QueryAllPendingPerpetualOrderRequest) XXX_Unmarshal added in v0.46.0

func (m *QueryAllPendingPerpetualOrderRequest) XXX_Unmarshal(b []byte) error

type QueryAllPendingPerpetualOrderResponse added in v0.46.0

type QueryAllPendingPerpetualOrderResponse struct {
	PendingPerpetualOrder []PerpetualOrderExtraInfo `protobuf:"bytes,1,rep,name=pending_perpetual_order,json=pendingPerpetualOrder,proto3" json:"pending_perpetual_order"`
	Pagination            *query.PageResponse       `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllPendingPerpetualOrderResponse) Descriptor added in v0.46.0

func (*QueryAllPendingPerpetualOrderResponse) Descriptor() ([]byte, []int)

func (*QueryAllPendingPerpetualOrderResponse) GetPagination added in v0.46.0

func (*QueryAllPendingPerpetualOrderResponse) GetPendingPerpetualOrder added in v0.46.0

func (m *QueryAllPendingPerpetualOrderResponse) GetPendingPerpetualOrder() []PerpetualOrderExtraInfo

func (*QueryAllPendingPerpetualOrderResponse) Marshal added in v0.46.0

func (m *QueryAllPendingPerpetualOrderResponse) Marshal() (dAtA []byte, err error)

func (*QueryAllPendingPerpetualOrderResponse) MarshalTo added in v0.46.0

func (m *QueryAllPendingPerpetualOrderResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryAllPendingPerpetualOrderResponse) MarshalToSizedBuffer added in v0.46.0

func (m *QueryAllPendingPerpetualOrderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryAllPendingPerpetualOrderResponse) ProtoMessage added in v0.46.0

func (*QueryAllPendingPerpetualOrderResponse) ProtoMessage()

func (*QueryAllPendingPerpetualOrderResponse) Reset added in v0.46.0

func (*QueryAllPendingPerpetualOrderResponse) Size added in v0.46.0

func (*QueryAllPendingPerpetualOrderResponse) String added in v0.46.0

func (*QueryAllPendingPerpetualOrderResponse) Unmarshal added in v0.46.0

func (m *QueryAllPendingPerpetualOrderResponse) Unmarshal(dAtA []byte) error

func (*QueryAllPendingPerpetualOrderResponse) XXX_DiscardUnknown added in v0.46.0

func (m *QueryAllPendingPerpetualOrderResponse) XXX_DiscardUnknown()

func (*QueryAllPendingPerpetualOrderResponse) XXX_Marshal added in v0.46.0

func (m *QueryAllPendingPerpetualOrderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryAllPendingPerpetualOrderResponse) XXX_Merge added in v0.46.0

func (*QueryAllPendingPerpetualOrderResponse) XXX_Size added in v0.46.0

func (*QueryAllPendingPerpetualOrderResponse) XXX_Unmarshal added in v0.46.0

func (m *QueryAllPendingPerpetualOrderResponse) XXX_Unmarshal(b []byte) error

type QueryAllPendingSpotOrderRequest added in v0.46.0

type QueryAllPendingSpotOrderRequest struct {
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllPendingSpotOrderRequest) Descriptor added in v0.46.0

func (*QueryAllPendingSpotOrderRequest) Descriptor() ([]byte, []int)

func (*QueryAllPendingSpotOrderRequest) GetPagination added in v0.46.0

func (*QueryAllPendingSpotOrderRequest) Marshal added in v0.46.0

func (m *QueryAllPendingSpotOrderRequest) Marshal() (dAtA []byte, err error)

func (*QueryAllPendingSpotOrderRequest) MarshalTo added in v0.46.0

func (m *QueryAllPendingSpotOrderRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryAllPendingSpotOrderRequest) MarshalToSizedBuffer added in v0.46.0

func (m *QueryAllPendingSpotOrderRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryAllPendingSpotOrderRequest) ProtoMessage added in v0.46.0

func (*QueryAllPendingSpotOrderRequest) ProtoMessage()

func (*QueryAllPendingSpotOrderRequest) Reset added in v0.46.0

func (*QueryAllPendingSpotOrderRequest) Size added in v0.46.0

func (m *QueryAllPendingSpotOrderRequest) Size() (n int)

func (*QueryAllPendingSpotOrderRequest) String added in v0.46.0

func (*QueryAllPendingSpotOrderRequest) Unmarshal added in v0.46.0

func (m *QueryAllPendingSpotOrderRequest) Unmarshal(dAtA []byte) error

func (*QueryAllPendingSpotOrderRequest) XXX_DiscardUnknown added in v0.46.0

func (m *QueryAllPendingSpotOrderRequest) XXX_DiscardUnknown()

func (*QueryAllPendingSpotOrderRequest) XXX_Marshal added in v0.46.0

func (m *QueryAllPendingSpotOrderRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryAllPendingSpotOrderRequest) XXX_Merge added in v0.46.0

func (m *QueryAllPendingSpotOrderRequest) XXX_Merge(src proto.Message)

func (*QueryAllPendingSpotOrderRequest) XXX_Size added in v0.46.0

func (m *QueryAllPendingSpotOrderRequest) XXX_Size() int

func (*QueryAllPendingSpotOrderRequest) XXX_Unmarshal added in v0.46.0

func (m *QueryAllPendingSpotOrderRequest) XXX_Unmarshal(b []byte) error

type QueryAllPendingSpotOrderResponse added in v0.46.0

type QueryAllPendingSpotOrderResponse struct {
	PendingSpotOrder []SpotOrder         `protobuf:"bytes,1,rep,name=pending_spot_order,json=pendingSpotOrder,proto3" json:"pending_spot_order"`
	Pagination       *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllPendingSpotOrderResponse) Descriptor added in v0.46.0

func (*QueryAllPendingSpotOrderResponse) Descriptor() ([]byte, []int)

func (*QueryAllPendingSpotOrderResponse) GetPagination added in v0.46.0

func (*QueryAllPendingSpotOrderResponse) GetPendingSpotOrder added in v0.46.0

func (m *QueryAllPendingSpotOrderResponse) GetPendingSpotOrder() []SpotOrder

func (*QueryAllPendingSpotOrderResponse) Marshal added in v0.46.0

func (m *QueryAllPendingSpotOrderResponse) Marshal() (dAtA []byte, err error)

func (*QueryAllPendingSpotOrderResponse) MarshalTo added in v0.46.0

func (m *QueryAllPendingSpotOrderResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryAllPendingSpotOrderResponse) MarshalToSizedBuffer added in v0.46.0

func (m *QueryAllPendingSpotOrderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryAllPendingSpotOrderResponse) ProtoMessage added in v0.46.0

func (*QueryAllPendingSpotOrderResponse) ProtoMessage()

func (*QueryAllPendingSpotOrderResponse) Reset added in v0.46.0

func (*QueryAllPendingSpotOrderResponse) Size added in v0.46.0

func (m *QueryAllPendingSpotOrderResponse) Size() (n int)

func (*QueryAllPendingSpotOrderResponse) String added in v0.46.0

func (*QueryAllPendingSpotOrderResponse) Unmarshal added in v0.46.0

func (m *QueryAllPendingSpotOrderResponse) Unmarshal(dAtA []byte) error

func (*QueryAllPendingSpotOrderResponse) XXX_DiscardUnknown added in v0.46.0

func (m *QueryAllPendingSpotOrderResponse) XXX_DiscardUnknown()

func (*QueryAllPendingSpotOrderResponse) XXX_Marshal added in v0.46.0

func (m *QueryAllPendingSpotOrderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryAllPendingSpotOrderResponse) XXX_Merge added in v0.46.0

func (*QueryAllPendingSpotOrderResponse) XXX_Size added in v0.46.0

func (m *QueryAllPendingSpotOrderResponse) XXX_Size() int

func (*QueryAllPendingSpotOrderResponse) XXX_Unmarshal added in v0.46.0

func (m *QueryAllPendingSpotOrderResponse) XXX_Unmarshal(b []byte) error

type QueryClient

type QueryClient interface {
	// Parameters queries the parameters of the module.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// Queries a list of PendingSpotOrder items.
	PendingSpotOrder(ctx context.Context, in *QueryGetPendingSpotOrderRequest, opts ...grpc.CallOption) (*QueryGetPendingSpotOrderResponse, error)
	PendingSpotOrderAll(ctx context.Context, in *QueryAllPendingSpotOrderRequest, opts ...grpc.CallOption) (*QueryAllPendingSpotOrderResponse, error)
	// Queries a list of PendingPerpetualOrder items.
	PendingPerpetualOrder(ctx context.Context, in *QueryGetPendingPerpetualOrderRequest, opts ...grpc.CallOption) (*QueryGetPendingPerpetualOrderResponse, error)
	PendingPerpetualOrderAll(ctx context.Context, in *QueryAllPendingPerpetualOrderRequest, opts ...grpc.CallOption) (*QueryAllPendingPerpetualOrderResponse, error)
	// Queries a list of PendingPerpetualOrderForAddress items.
	PendingPerpetualOrderForAddress(ctx context.Context, in *QueryPendingPerpetualOrderForAddressRequest, opts ...grpc.CallOption) (*QueryPendingPerpetualOrderForAddressResponse, error)
	// Queries a list of PendingSpotOrderForAddress items.
	PendingSpotOrderForAddress(ctx context.Context, in *QueryPendingSpotOrderForAddressRequest, opts ...grpc.CallOption) (*QueryPendingSpotOrderForAddressResponse, error)
}

QueryClient is the client API for Query service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewQueryClient

func NewQueryClient(cc grpc1.ClientConn) QueryClient

type QueryGetPendingPerpetualOrderRequest added in v0.46.0

type QueryGetPendingPerpetualOrderRequest struct {
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
}

func (*QueryGetPendingPerpetualOrderRequest) Descriptor added in v0.46.0

func (*QueryGetPendingPerpetualOrderRequest) Descriptor() ([]byte, []int)

func (*QueryGetPendingPerpetualOrderRequest) GetId added in v0.46.0

func (*QueryGetPendingPerpetualOrderRequest) Marshal added in v0.46.0

func (m *QueryGetPendingPerpetualOrderRequest) Marshal() (dAtA []byte, err error)

func (*QueryGetPendingPerpetualOrderRequest) MarshalTo added in v0.46.0

func (m *QueryGetPendingPerpetualOrderRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryGetPendingPerpetualOrderRequest) MarshalToSizedBuffer added in v0.46.0

func (m *QueryGetPendingPerpetualOrderRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryGetPendingPerpetualOrderRequest) ProtoMessage added in v0.46.0

func (*QueryGetPendingPerpetualOrderRequest) ProtoMessage()

func (*QueryGetPendingPerpetualOrderRequest) Reset added in v0.46.0

func (*QueryGetPendingPerpetualOrderRequest) Size added in v0.46.0

func (*QueryGetPendingPerpetualOrderRequest) String added in v0.46.0

func (*QueryGetPendingPerpetualOrderRequest) Unmarshal added in v0.46.0

func (m *QueryGetPendingPerpetualOrderRequest) Unmarshal(dAtA []byte) error

func (*QueryGetPendingPerpetualOrderRequest) XXX_DiscardUnknown added in v0.46.0

func (m *QueryGetPendingPerpetualOrderRequest) XXX_DiscardUnknown()

func (*QueryGetPendingPerpetualOrderRequest) XXX_Marshal added in v0.46.0

func (m *QueryGetPendingPerpetualOrderRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryGetPendingPerpetualOrderRequest) XXX_Merge added in v0.46.0

func (*QueryGetPendingPerpetualOrderRequest) XXX_Size added in v0.46.0

func (*QueryGetPendingPerpetualOrderRequest) XXX_Unmarshal added in v0.46.0

func (m *QueryGetPendingPerpetualOrderRequest) XXX_Unmarshal(b []byte) error

type QueryGetPendingPerpetualOrderResponse added in v0.46.0

type QueryGetPendingPerpetualOrderResponse struct {
	PendingPerpetualOrder PerpetualOrderExtraInfo `protobuf:"bytes,1,opt,name=pending_perpetual_order,json=pendingPerpetualOrder,proto3" json:"pending_perpetual_order"`
}

func (*QueryGetPendingPerpetualOrderResponse) Descriptor added in v0.46.0

func (*QueryGetPendingPerpetualOrderResponse) Descriptor() ([]byte, []int)

func (*QueryGetPendingPerpetualOrderResponse) GetPendingPerpetualOrder added in v0.46.0

func (m *QueryGetPendingPerpetualOrderResponse) GetPendingPerpetualOrder() PerpetualOrderExtraInfo

func (*QueryGetPendingPerpetualOrderResponse) Marshal added in v0.46.0

func (m *QueryGetPendingPerpetualOrderResponse) Marshal() (dAtA []byte, err error)

func (*QueryGetPendingPerpetualOrderResponse) MarshalTo added in v0.46.0

func (m *QueryGetPendingPerpetualOrderResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryGetPendingPerpetualOrderResponse) MarshalToSizedBuffer added in v0.46.0

func (m *QueryGetPendingPerpetualOrderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryGetPendingPerpetualOrderResponse) ProtoMessage added in v0.46.0

func (*QueryGetPendingPerpetualOrderResponse) ProtoMessage()

func (*QueryGetPendingPerpetualOrderResponse) Reset added in v0.46.0

func (*QueryGetPendingPerpetualOrderResponse) Size added in v0.46.0

func (*QueryGetPendingPerpetualOrderResponse) String added in v0.46.0

func (*QueryGetPendingPerpetualOrderResponse) Unmarshal added in v0.46.0

func (m *QueryGetPendingPerpetualOrderResponse) Unmarshal(dAtA []byte) error

func (*QueryGetPendingPerpetualOrderResponse) XXX_DiscardUnknown added in v0.46.0

func (m *QueryGetPendingPerpetualOrderResponse) XXX_DiscardUnknown()

func (*QueryGetPendingPerpetualOrderResponse) XXX_Marshal added in v0.46.0

func (m *QueryGetPendingPerpetualOrderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryGetPendingPerpetualOrderResponse) XXX_Merge added in v0.46.0

func (*QueryGetPendingPerpetualOrderResponse) XXX_Size added in v0.46.0

func (*QueryGetPendingPerpetualOrderResponse) XXX_Unmarshal added in v0.46.0

func (m *QueryGetPendingPerpetualOrderResponse) XXX_Unmarshal(b []byte) error

type QueryGetPendingSpotOrderRequest added in v0.46.0

type QueryGetPendingSpotOrderRequest struct {
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
}

func (*QueryGetPendingSpotOrderRequest) Descriptor added in v0.46.0

func (*QueryGetPendingSpotOrderRequest) Descriptor() ([]byte, []int)

func (*QueryGetPendingSpotOrderRequest) GetId added in v0.46.0

func (*QueryGetPendingSpotOrderRequest) Marshal added in v0.46.0

func (m *QueryGetPendingSpotOrderRequest) Marshal() (dAtA []byte, err error)

func (*QueryGetPendingSpotOrderRequest) MarshalTo added in v0.46.0

func (m *QueryGetPendingSpotOrderRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryGetPendingSpotOrderRequest) MarshalToSizedBuffer added in v0.46.0

func (m *QueryGetPendingSpotOrderRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryGetPendingSpotOrderRequest) ProtoMessage added in v0.46.0

func (*QueryGetPendingSpotOrderRequest) ProtoMessage()

func (*QueryGetPendingSpotOrderRequest) Reset added in v0.46.0

func (*QueryGetPendingSpotOrderRequest) Size added in v0.46.0

func (m *QueryGetPendingSpotOrderRequest) Size() (n int)

func (*QueryGetPendingSpotOrderRequest) String added in v0.46.0

func (*QueryGetPendingSpotOrderRequest) Unmarshal added in v0.46.0

func (m *QueryGetPendingSpotOrderRequest) Unmarshal(dAtA []byte) error

func (*QueryGetPendingSpotOrderRequest) XXX_DiscardUnknown added in v0.46.0

func (m *QueryGetPendingSpotOrderRequest) XXX_DiscardUnknown()

func (*QueryGetPendingSpotOrderRequest) XXX_Marshal added in v0.46.0

func (m *QueryGetPendingSpotOrderRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryGetPendingSpotOrderRequest) XXX_Merge added in v0.46.0

func (m *QueryGetPendingSpotOrderRequest) XXX_Merge(src proto.Message)

func (*QueryGetPendingSpotOrderRequest) XXX_Size added in v0.46.0

func (m *QueryGetPendingSpotOrderRequest) XXX_Size() int

func (*QueryGetPendingSpotOrderRequest) XXX_Unmarshal added in v0.46.0

func (m *QueryGetPendingSpotOrderRequest) XXX_Unmarshal(b []byte) error

type QueryGetPendingSpotOrderResponse added in v0.46.0

type QueryGetPendingSpotOrderResponse struct {
	PendingSpotOrder SpotOrder `protobuf:"bytes,1,opt,name=pending_spot_order,json=pendingSpotOrder,proto3" json:"pending_spot_order"`
}

func (*QueryGetPendingSpotOrderResponse) Descriptor added in v0.46.0

func (*QueryGetPendingSpotOrderResponse) Descriptor() ([]byte, []int)

func (*QueryGetPendingSpotOrderResponse) GetPendingSpotOrder added in v0.46.0

func (m *QueryGetPendingSpotOrderResponse) GetPendingSpotOrder() SpotOrder

func (*QueryGetPendingSpotOrderResponse) Marshal added in v0.46.0

func (m *QueryGetPendingSpotOrderResponse) Marshal() (dAtA []byte, err error)

func (*QueryGetPendingSpotOrderResponse) MarshalTo added in v0.46.0

func (m *QueryGetPendingSpotOrderResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryGetPendingSpotOrderResponse) MarshalToSizedBuffer added in v0.46.0

func (m *QueryGetPendingSpotOrderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryGetPendingSpotOrderResponse) ProtoMessage added in v0.46.0

func (*QueryGetPendingSpotOrderResponse) ProtoMessage()

func (*QueryGetPendingSpotOrderResponse) Reset added in v0.46.0

func (*QueryGetPendingSpotOrderResponse) Size added in v0.46.0

func (m *QueryGetPendingSpotOrderResponse) Size() (n int)

func (*QueryGetPendingSpotOrderResponse) String added in v0.46.0

func (*QueryGetPendingSpotOrderResponse) Unmarshal added in v0.46.0

func (m *QueryGetPendingSpotOrderResponse) Unmarshal(dAtA []byte) error

func (*QueryGetPendingSpotOrderResponse) XXX_DiscardUnknown added in v0.46.0

func (m *QueryGetPendingSpotOrderResponse) XXX_DiscardUnknown()

func (*QueryGetPendingSpotOrderResponse) XXX_Marshal added in v0.46.0

func (m *QueryGetPendingSpotOrderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryGetPendingSpotOrderResponse) XXX_Merge added in v0.46.0

func (*QueryGetPendingSpotOrderResponse) XXX_Size added in v0.46.0

func (m *QueryGetPendingSpotOrderResponse) XXX_Size() int

func (*QueryGetPendingSpotOrderResponse) XXX_Unmarshal added in v0.46.0

func (m *QueryGetPendingSpotOrderResponse) XXX_Unmarshal(b []byte) error

type QueryParamsRequest

type QueryParamsRequest struct {
}

QueryParamsRequest is request type for the Query/Params RPC method.

func (*QueryParamsRequest) Descriptor

func (*QueryParamsRequest) Descriptor() ([]byte, []int)

func (*QueryParamsRequest) Marshal

func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)

func (*QueryParamsRequest) MarshalTo

func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryParamsRequest) MarshalToSizedBuffer

func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryParamsRequest) ProtoMessage

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) Reset

func (m *QueryParamsRequest) Reset()

func (*QueryParamsRequest) Size

func (m *QueryParamsRequest) Size() (n int)

func (*QueryParamsRequest) String

func (m *QueryParamsRequest) String() string

func (*QueryParamsRequest) Unmarshal

func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error

func (*QueryParamsRequest) XXX_DiscardUnknown

func (m *QueryParamsRequest) XXX_DiscardUnknown()

func (*QueryParamsRequest) XXX_Marshal

func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryParamsRequest) XXX_Merge

func (m *QueryParamsRequest) XXX_Merge(src proto.Message)

func (*QueryParamsRequest) XXX_Size

func (m *QueryParamsRequest) XXX_Size() int

func (*QueryParamsRequest) XXX_Unmarshal

func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error

type QueryParamsResponse

type QueryParamsResponse struct {
	// params holds all the parameters of this module.
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

QueryParamsResponse is response type for the Query/Params RPC method.

func (*QueryParamsResponse) Descriptor

func (*QueryParamsResponse) Descriptor() ([]byte, []int)

func (*QueryParamsResponse) GetParams

func (m *QueryParamsResponse) GetParams() Params

func (*QueryParamsResponse) Marshal

func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)

func (*QueryParamsResponse) MarshalTo

func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryParamsResponse) MarshalToSizedBuffer

func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryParamsResponse) ProtoMessage

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) Reset

func (m *QueryParamsResponse) Reset()

func (*QueryParamsResponse) Size

func (m *QueryParamsResponse) Size() (n int)

func (*QueryParamsResponse) String

func (m *QueryParamsResponse) String() string

func (*QueryParamsResponse) Unmarshal

func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error

func (*QueryParamsResponse) XXX_DiscardUnknown

func (m *QueryParamsResponse) XXX_DiscardUnknown()

func (*QueryParamsResponse) XXX_Marshal

func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryParamsResponse) XXX_Merge

func (m *QueryParamsResponse) XXX_Merge(src proto.Message)

func (*QueryParamsResponse) XXX_Size

func (m *QueryParamsResponse) XXX_Size() int

func (*QueryParamsResponse) XXX_Unmarshal

func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error

type QueryPendingPerpetualOrderForAddressRequest added in v0.48.0

type QueryPendingPerpetualOrderForAddressRequest struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Status  Status `protobuf:"varint,2,opt,name=status,proto3,enum=elys.tradeshield.Status" json:"status,omitempty"`
}

func (*QueryPendingPerpetualOrderForAddressRequest) Descriptor added in v0.48.0

func (*QueryPendingPerpetualOrderForAddressRequest) GetAddress added in v0.48.0

func (*QueryPendingPerpetualOrderForAddressRequest) GetStatus added in v0.48.0

func (*QueryPendingPerpetualOrderForAddressRequest) Marshal added in v0.48.0

func (m *QueryPendingPerpetualOrderForAddressRequest) Marshal() (dAtA []byte, err error)

func (*QueryPendingPerpetualOrderForAddressRequest) MarshalTo added in v0.48.0

func (*QueryPendingPerpetualOrderForAddressRequest) MarshalToSizedBuffer added in v0.48.0

func (m *QueryPendingPerpetualOrderForAddressRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryPendingPerpetualOrderForAddressRequest) ProtoMessage added in v0.48.0

func (*QueryPendingPerpetualOrderForAddressRequest) Reset added in v0.48.0

func (*QueryPendingPerpetualOrderForAddressRequest) Size added in v0.48.0

func (*QueryPendingPerpetualOrderForAddressRequest) String added in v0.48.0

func (*QueryPendingPerpetualOrderForAddressRequest) Unmarshal added in v0.48.0

func (*QueryPendingPerpetualOrderForAddressRequest) XXX_DiscardUnknown added in v0.48.0

func (m *QueryPendingPerpetualOrderForAddressRequest) XXX_DiscardUnknown()

func (*QueryPendingPerpetualOrderForAddressRequest) XXX_Marshal added in v0.48.0

func (m *QueryPendingPerpetualOrderForAddressRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryPendingPerpetualOrderForAddressRequest) XXX_Merge added in v0.48.0

func (*QueryPendingPerpetualOrderForAddressRequest) XXX_Size added in v0.48.0

func (*QueryPendingPerpetualOrderForAddressRequest) XXX_Unmarshal added in v0.48.0

type QueryPendingPerpetualOrderForAddressResponse added in v0.48.0

type QueryPendingPerpetualOrderForAddressResponse struct {
	PendingPerpetualOrders []PerpetualOrderExtraInfo `protobuf:"bytes,1,rep,name=pending_perpetual_orders,json=pendingPerpetualOrders,proto3" json:"pending_perpetual_orders"`
}

func (*QueryPendingPerpetualOrderForAddressResponse) Descriptor added in v0.48.0

func (*QueryPendingPerpetualOrderForAddressResponse) GetPendingPerpetualOrders added in v0.48.0

func (*QueryPendingPerpetualOrderForAddressResponse) Marshal added in v0.48.0

func (m *QueryPendingPerpetualOrderForAddressResponse) Marshal() (dAtA []byte, err error)

func (*QueryPendingPerpetualOrderForAddressResponse) MarshalTo added in v0.48.0

func (*QueryPendingPerpetualOrderForAddressResponse) MarshalToSizedBuffer added in v0.48.0

func (m *QueryPendingPerpetualOrderForAddressResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryPendingPerpetualOrderForAddressResponse) ProtoMessage added in v0.48.0

func (*QueryPendingPerpetualOrderForAddressResponse) Reset added in v0.48.0

func (*QueryPendingPerpetualOrderForAddressResponse) Size added in v0.48.0

func (*QueryPendingPerpetualOrderForAddressResponse) String added in v0.48.0

func (*QueryPendingPerpetualOrderForAddressResponse) Unmarshal added in v0.48.0

func (*QueryPendingPerpetualOrderForAddressResponse) XXX_DiscardUnknown added in v0.48.0

func (m *QueryPendingPerpetualOrderForAddressResponse) XXX_DiscardUnknown()

func (*QueryPendingPerpetualOrderForAddressResponse) XXX_Marshal added in v0.48.0

func (m *QueryPendingPerpetualOrderForAddressResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryPendingPerpetualOrderForAddressResponse) XXX_Merge added in v0.48.0

func (*QueryPendingPerpetualOrderForAddressResponse) XXX_Size added in v0.48.0

func (*QueryPendingPerpetualOrderForAddressResponse) XXX_Unmarshal added in v0.48.0

type QueryPendingSpotOrderForAddressRequest added in v0.48.0

type QueryPendingSpotOrderForAddressRequest struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Status  Status `protobuf:"varint,2,opt,name=status,proto3,enum=elys.tradeshield.Status" json:"status,omitempty"`
}

func (*QueryPendingSpotOrderForAddressRequest) Descriptor added in v0.48.0

func (*QueryPendingSpotOrderForAddressRequest) Descriptor() ([]byte, []int)

func (*QueryPendingSpotOrderForAddressRequest) GetAddress added in v0.48.0

func (*QueryPendingSpotOrderForAddressRequest) GetStatus added in v0.48.0

func (*QueryPendingSpotOrderForAddressRequest) Marshal added in v0.48.0

func (m *QueryPendingSpotOrderForAddressRequest) Marshal() (dAtA []byte, err error)

func (*QueryPendingSpotOrderForAddressRequest) MarshalTo added in v0.48.0

func (m *QueryPendingSpotOrderForAddressRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryPendingSpotOrderForAddressRequest) MarshalToSizedBuffer added in v0.48.0

func (m *QueryPendingSpotOrderForAddressRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryPendingSpotOrderForAddressRequest) ProtoMessage added in v0.48.0

func (*QueryPendingSpotOrderForAddressRequest) Reset added in v0.48.0

func (*QueryPendingSpotOrderForAddressRequest) Size added in v0.48.0

func (*QueryPendingSpotOrderForAddressRequest) String added in v0.48.0

func (*QueryPendingSpotOrderForAddressRequest) Unmarshal added in v0.48.0

func (m *QueryPendingSpotOrderForAddressRequest) Unmarshal(dAtA []byte) error

func (*QueryPendingSpotOrderForAddressRequest) XXX_DiscardUnknown added in v0.48.0

func (m *QueryPendingSpotOrderForAddressRequest) XXX_DiscardUnknown()

func (*QueryPendingSpotOrderForAddressRequest) XXX_Marshal added in v0.48.0

func (m *QueryPendingSpotOrderForAddressRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryPendingSpotOrderForAddressRequest) XXX_Merge added in v0.48.0

func (*QueryPendingSpotOrderForAddressRequest) XXX_Size added in v0.48.0

func (*QueryPendingSpotOrderForAddressRequest) XXX_Unmarshal added in v0.48.0

func (m *QueryPendingSpotOrderForAddressRequest) XXX_Unmarshal(b []byte) error

type QueryPendingSpotOrderForAddressResponse added in v0.48.0

type QueryPendingSpotOrderForAddressResponse struct {
	PendingSpotOrders []SpotOrder `protobuf:"bytes,1,rep,name=pending_spot_orders,json=pendingSpotOrders,proto3" json:"pending_spot_orders"`
}

func (*QueryPendingSpotOrderForAddressResponse) Descriptor added in v0.48.0

func (*QueryPendingSpotOrderForAddressResponse) Descriptor() ([]byte, []int)

func (*QueryPendingSpotOrderForAddressResponse) GetPendingSpotOrders added in v0.48.0

func (m *QueryPendingSpotOrderForAddressResponse) GetPendingSpotOrders() []SpotOrder

func (*QueryPendingSpotOrderForAddressResponse) Marshal added in v0.48.0

func (m *QueryPendingSpotOrderForAddressResponse) Marshal() (dAtA []byte, err error)

func (*QueryPendingSpotOrderForAddressResponse) MarshalTo added in v0.48.0

func (m *QueryPendingSpotOrderForAddressResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryPendingSpotOrderForAddressResponse) MarshalToSizedBuffer added in v0.48.0

func (m *QueryPendingSpotOrderForAddressResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryPendingSpotOrderForAddressResponse) ProtoMessage added in v0.48.0

func (*QueryPendingSpotOrderForAddressResponse) Reset added in v0.48.0

func (*QueryPendingSpotOrderForAddressResponse) Size added in v0.48.0

func (*QueryPendingSpotOrderForAddressResponse) String added in v0.48.0

func (*QueryPendingSpotOrderForAddressResponse) Unmarshal added in v0.48.0

func (m *QueryPendingSpotOrderForAddressResponse) Unmarshal(dAtA []byte) error

func (*QueryPendingSpotOrderForAddressResponse) XXX_DiscardUnknown added in v0.48.0

func (m *QueryPendingSpotOrderForAddressResponse) XXX_DiscardUnknown()

func (*QueryPendingSpotOrderForAddressResponse) XXX_Marshal added in v0.48.0

func (m *QueryPendingSpotOrderForAddressResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryPendingSpotOrderForAddressResponse) XXX_Merge added in v0.48.0

func (*QueryPendingSpotOrderForAddressResponse) XXX_Size added in v0.48.0

func (*QueryPendingSpotOrderForAddressResponse) XXX_Unmarshal added in v0.48.0

func (m *QueryPendingSpotOrderForAddressResponse) XXX_Unmarshal(b []byte) error

type QueryServer

type QueryServer interface {
	// Parameters queries the parameters of the module.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// Queries a list of PendingSpotOrder items.
	PendingSpotOrder(context.Context, *QueryGetPendingSpotOrderRequest) (*QueryGetPendingSpotOrderResponse, error)
	PendingSpotOrderAll(context.Context, *QueryAllPendingSpotOrderRequest) (*QueryAllPendingSpotOrderResponse, error)
	// Queries a list of PendingPerpetualOrder items.
	PendingPerpetualOrder(context.Context, *QueryGetPendingPerpetualOrderRequest) (*QueryGetPendingPerpetualOrderResponse, error)
	PendingPerpetualOrderAll(context.Context, *QueryAllPendingPerpetualOrderRequest) (*QueryAllPendingPerpetualOrderResponse, error)
	// Queries a list of PendingPerpetualOrderForAddress items.
	PendingPerpetualOrderForAddress(context.Context, *QueryPendingPerpetualOrderForAddressRequest) (*QueryPendingPerpetualOrderForAddressResponse, error)
	// Queries a list of PendingSpotOrderForAddress items.
	PendingSpotOrderForAddress(context.Context, *QueryPendingSpotOrderForAddressRequest) (*QueryPendingSpotOrderForAddressResponse, error)
}

QueryServer is the server API for Query service.

type SpotOrder added in v0.46.0

type SpotOrder struct {
	OrderType        SpotOrderType `protobuf:"varint,1,opt,name=order_type,json=orderType,proto3,enum=elys.tradeshield.SpotOrderType" json:"order_type,omitempty"`
	OrderId          uint64        `protobuf:"varint,2,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"`
	OrderPrice       OrderPrice    `protobuf:"bytes,3,opt,name=order_price,json=orderPrice,proto3" json:"order_price"`
	OrderAmount      types.Coin    `protobuf:"bytes,4,opt,name=order_amount,json=orderAmount,proto3" json:"order_amount"`
	OwnerAddress     string        `protobuf:"bytes,5,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"`
	OrderTargetDenom string        `protobuf:"bytes,6,opt,name=order_target_denom,json=orderTargetDenom,proto3" json:"order_target_denom,omitempty"`
	Status           Status        `protobuf:"varint,7,opt,name=status,proto3,enum=elys.tradeshield.Status" json:"status,omitempty"`
	Date             *Date         `protobuf:"bytes,8,opt,name=date,proto3" json:"date,omitempty"`
}

func (*SpotOrder) Descriptor added in v0.46.0

func (*SpotOrder) Descriptor() ([]byte, []int)

func (*SpotOrder) GetDate added in v0.46.0

func (m *SpotOrder) GetDate() *Date

func (SpotOrder) GetOrderAddress added in v0.52.0

func (p SpotOrder) GetOrderAddress() sdk.AccAddress

Get Spot Order address

func (*SpotOrder) GetOrderAmount added in v0.46.0

func (m *SpotOrder) GetOrderAmount() types.Coin

func (*SpotOrder) GetOrderId added in v0.46.0

func (m *SpotOrder) GetOrderId() uint64

func (*SpotOrder) GetOrderPrice added in v0.46.0

func (m *SpotOrder) GetOrderPrice() OrderPrice

func (*SpotOrder) GetOrderTargetDenom added in v0.46.0

func (m *SpotOrder) GetOrderTargetDenom() string

func (*SpotOrder) GetOrderType added in v0.46.0

func (m *SpotOrder) GetOrderType() SpotOrderType

func (*SpotOrder) GetOwnerAddress added in v0.46.0

func (m *SpotOrder) GetOwnerAddress() string

func (*SpotOrder) GetStatus added in v0.46.0

func (m *SpotOrder) GetStatus() Status

func (*SpotOrder) Marshal added in v0.46.0

func (m *SpotOrder) Marshal() (dAtA []byte, err error)

func (*SpotOrder) MarshalTo added in v0.46.0

func (m *SpotOrder) MarshalTo(dAtA []byte) (int, error)

func (*SpotOrder) MarshalToSizedBuffer added in v0.46.0

func (m *SpotOrder) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SpotOrder) ProtoMessage added in v0.46.0

func (*SpotOrder) ProtoMessage()

func (*SpotOrder) Reset added in v0.46.0

func (m *SpotOrder) Reset()

func (*SpotOrder) Size added in v0.46.0

func (m *SpotOrder) Size() (n int)

func (*SpotOrder) String added in v0.46.0

func (m *SpotOrder) String() string

func (*SpotOrder) Unmarshal added in v0.46.0

func (m *SpotOrder) Unmarshal(dAtA []byte) error

func (*SpotOrder) XXX_DiscardUnknown added in v0.46.0

func (m *SpotOrder) XXX_DiscardUnknown()

func (*SpotOrder) XXX_Marshal added in v0.46.0

func (m *SpotOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SpotOrder) XXX_Merge added in v0.46.0

func (m *SpotOrder) XXX_Merge(src proto.Message)

func (*SpotOrder) XXX_Size added in v0.46.0

func (m *SpotOrder) XXX_Size() int

func (*SpotOrder) XXX_Unmarshal added in v0.46.0

func (m *SpotOrder) XXX_Unmarshal(b []byte) error

type SpotOrderType added in v0.46.0

type SpotOrderType int32

Spot order

const (
	SpotOrderType_STOPLOSS  SpotOrderType = 0
	SpotOrderType_LIMITSELL SpotOrderType = 1
	SpotOrderType_LIMITBUY  SpotOrderType = 2
	SpotOrderType_MARKETBUY SpotOrderType = 3
)

func GetSpotOrderTypeFromString added in v0.49.3

func GetSpotOrderTypeFromString(s string) SpotOrderType

func (SpotOrderType) EnumDescriptor added in v0.46.0

func (SpotOrderType) EnumDescriptor() ([]byte, []int)

func (SpotOrderType) String added in v0.46.0

func (x SpotOrderType) String() string

type Status added in v0.46.0

type Status int32
const (
	Status_PENDING  Status = 0
	Status_EXECUTED Status = 1
	Status_CANCELED Status = 2
	Status_ALL      Status = 3
)

func (Status) EnumDescriptor added in v0.46.0

func (Status) EnumDescriptor() ([]byte, []int)

func (Status) String added in v0.46.0

func (x Status) String() string

type TierKeeper added in v0.46.0

type TierKeeper interface {
	GetMembershipTier(ctx sdk.Context, user sdk.AccAddress) (total_portfolio sdkmath.LegacyDec, tier tiertypes.MembershipTier)

	CalculateUSDValue(ctx sdk.Context, denom string, amount sdkmath.Int) sdkmath.LegacyDec
}

TierKeeper defines the expected interface needed to get tier information

type TriggerPrice added in v0.49.3

type TriggerPrice struct {
	TradingAssetDenom string                      `protobuf:"bytes,1,opt,name=trading_asset_denom,json=tradingAssetDenom,proto3" json:"trading_asset_denom,omitempty"`
	Rate              cosmossdk_io_math.LegacyDec `protobuf:"bytes,3,opt,name=rate,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"rate"`
}

func (*TriggerPrice) Descriptor added in v0.49.3

func (*TriggerPrice) Descriptor() ([]byte, []int)

func (*TriggerPrice) GetTradingAssetDenom added in v0.49.3

func (m *TriggerPrice) GetTradingAssetDenom() string

func (*TriggerPrice) Marshal added in v0.49.3

func (m *TriggerPrice) Marshal() (dAtA []byte, err error)

func (*TriggerPrice) MarshalTo added in v0.49.3

func (m *TriggerPrice) MarshalTo(dAtA []byte) (int, error)

func (*TriggerPrice) MarshalToSizedBuffer added in v0.49.3

func (m *TriggerPrice) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TriggerPrice) ProtoMessage added in v0.49.3

func (*TriggerPrice) ProtoMessage()

func (*TriggerPrice) Reset added in v0.49.3

func (m *TriggerPrice) Reset()

func (*TriggerPrice) Size added in v0.49.3

func (m *TriggerPrice) Size() (n int)

func (*TriggerPrice) String added in v0.49.3

func (m *TriggerPrice) String() string

func (*TriggerPrice) Unmarshal added in v0.49.3

func (m *TriggerPrice) Unmarshal(dAtA []byte) error

func (*TriggerPrice) XXX_DiscardUnknown added in v0.49.3

func (m *TriggerPrice) XXX_DiscardUnknown()

func (*TriggerPrice) XXX_Marshal added in v0.49.3

func (m *TriggerPrice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TriggerPrice) XXX_Merge added in v0.49.3

func (m *TriggerPrice) XXX_Merge(src proto.Message)

func (*TriggerPrice) XXX_Size added in v0.49.3

func (m *TriggerPrice) XXX_Size() int

func (*TriggerPrice) XXX_Unmarshal added in v0.49.3

func (m *TriggerPrice) XXX_Unmarshal(b []byte) error

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) CancelPerpetualOrder added in v0.49.3

func (*UnimplementedMsgServer) CancelPerpetualOrders added in v0.48.0

func (*UnimplementedMsgServer) CancelSpotOrder added in v0.49.3

func (*UnimplementedMsgServer) CancelSpotOrders added in v0.48.0

func (*UnimplementedMsgServer) CreatePerpetualCloseOrder added in v0.49.3

func (*UnimplementedMsgServer) CreatePerpetualOpenOrder added in v0.49.3

func (*UnimplementedMsgServer) CreateSpotOrder added in v0.49.3

func (*UnimplementedMsgServer) ExecuteOrders added in v0.46.0

func (*UnimplementedMsgServer) UpdateParams added in v0.46.0

func (*UnimplementedMsgServer) UpdatePerpetualOrder added in v0.49.3

func (*UnimplementedMsgServer) UpdateSpotOrder added in v0.49.3

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Params

func (*UnimplementedQueryServer) PendingPerpetualOrder added in v0.46.0

func (*UnimplementedQueryServer) PendingPerpetualOrderAll added in v0.46.0

func (*UnimplementedQueryServer) PendingPerpetualOrderForAddress added in v0.48.0

func (*UnimplementedQueryServer) PendingSpotOrder added in v0.46.0

func (*UnimplementedQueryServer) PendingSpotOrderAll added in v0.46.0

func (*UnimplementedQueryServer) PendingSpotOrderForAddress added in v0.48.0

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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