types

package
v0.49.2 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: Apache-2.0 Imports: 39 Imported by: 1

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	TypeEvtCloseSpotOrder      = "close_spot_order"
	TypeEvtClosePerpetualOrder = "close_perpetual_order"
)
View Source
const (
	// ModuleName defines the module name
	ModuleName = "tradeshield"

	// StoreKey defines the primary module store key
	StoreKey = ModuleName

	// RouterKey defines the module's message routing key
	RouterKey = ModuleName

	// MemStoreKey defines the in-memory store key
	MemStoreKey = "mem_tradeshield"
)
View Source
const (
	TypeMsgCreatePendingPerpetualOrder = "create_pending_perpetual_order"
	TypeMsgUpdatePendingPerpetualOrder = "update_pending_perpetual_order"
	TypeMsgCancelPerpetualOrders       = "cancel_perpetual_order"
)
View Source
const (
	TypeMsgCreatePendingSpotOrder = "create_pending_spot_order"
	TypeMsgUpdatePendingSpotOrder = "update_pending_spot_order"
	TypeMsgCancelSpotOrders       = "cancel_pending_spot_order"
)
View Source
const DefaultIndex uint64 = 1

DefaultIndex is the default global index

View Source
const TypeMsgExecuteOrders = "execute_orders"
View Source
const TypeMsgUpdateParams = "update_params"

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")
)

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 (
	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 (
	ModuleCdc = codec.NewAminoCodec(amino)
)
View Source
var PerpetualOrderType_name = map[int32]string{
	0: "LIMITOPEN",
	1: "LIMITCLOSE",
	2: "MARKETOPEN",
	3: "MARKETCLOSE",
	4: "STOPLOSSPERP",
}
View Source
var PerpetualOrderType_value = map[string]int32{
	"LIMITOPEN":    0,
	"LIMITCLOSE":   1,
	"MARKETOPEN":   2,
	"MARKETCLOSE":  3,
	"STOPLOSSPERP": 4,
}
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 DecodeUint64Slice added in v0.46.0

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

func EmitClosePerpetualOrderEvent added in v0.48.0

func EmitClosePerpetualOrderEvent(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, error)

func GenSpotKey added in v0.46.0

func GenSpotKey(order SpotOrder) (string, error)

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 NewClosePerpetualOrderEvt added in v0.48.0

func NewClosePerpetualOrderEvt(order PerpetualOrder) sdk.Event

func NewCloseSpotOrderEvt added in v0.48.0

func NewCloseSpotOrderEvt(order SpotOrder) sdk.Event

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

ParamKeyTable the param key table for launch module

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 sdk.Context, addr sdk.AccAddress) types.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 sdk.Context, addr sdk.AccAddress) sdk.Coins
}

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           github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,8,opt,name=leverage,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"leverage"`
	TakeProfitPrice    github_com_cosmos_cosmos_sdk_types.Dec `` /* 148-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      github_com_cosmos_cosmos_sdk_types.Dec `` /* 143-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) 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 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) GetSignBytes added in v0.48.0

func (msg *MsgCancelPerpetualOrders) GetSignBytes() []byte

func (*MsgCancelPerpetualOrders) GetSigners added in v0.48.0

func (msg *MsgCancelPerpetualOrders) GetSigners() []sdk.AccAddress

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) Route added in v0.48.0

func (msg *MsgCancelPerpetualOrders) Route() string

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) Type added in v0.48.0

func (msg *MsgCancelPerpetualOrders) Type() 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 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) GetSignBytes added in v0.48.0

func (msg *MsgCancelSpotOrders) GetSignBytes() []byte

func (*MsgCancelSpotOrders) GetSigners added in v0.48.0

func (msg *MsgCancelSpotOrders) GetSigners() []sdk.AccAddress

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) Route added in v0.48.0

func (msg *MsgCancelSpotOrders) Route() string

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) Type added in v0.48.0

func (msg *MsgCancelSpotOrders) Type() 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 MsgCreatePendingPerpetualOrder added in v0.46.0

type MsgCreatePendingPerpetualOrder struct {
	OrderType       PerpetualOrderType                     `` /* 130-byte string literal not displayed */
	TriggerPrice    *OrderPrice                            `protobuf:"bytes,2,opt,name=trigger_price,json=triggerPrice,proto3" json:"trigger_price,omitempty"`
	Collateral      types.Coin                             `protobuf:"bytes,3,opt,name=collateral,proto3" json:"collateral"`
	OwnerAddress    string                                 `protobuf:"bytes,4,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"`
	TradingAsset    string                                 `protobuf:"bytes,5,opt,name=trading_asset,json=tradingAsset,proto3" json:"trading_asset,omitempty"`
	Position        PerpetualPosition                      `protobuf:"varint,6,opt,name=position,proto3,enum=elys.tradeshield.PerpetualPosition" json:"position,omitempty"`
	Leverage        github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,7,opt,name=leverage,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"leverage"`
	TakeProfitPrice github_com_cosmos_cosmos_sdk_types.Dec `` /* 148-byte string literal not displayed */
	StopLossPrice   github_com_cosmos_cosmos_sdk_types.Dec `` /* 142-byte string literal not displayed */
}

func NewMsgCreatePendingPerpetualOrder added in v0.46.0

func NewMsgCreatePendingPerpetualOrder(creator string) *MsgCreatePendingPerpetualOrder

func (*MsgCreatePendingPerpetualOrder) Descriptor added in v0.46.0

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

func (*MsgCreatePendingPerpetualOrder) GetCollateral added in v0.46.0

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

func (*MsgCreatePendingPerpetualOrder) GetOrderType added in v0.46.0

func (*MsgCreatePendingPerpetualOrder) GetOwnerAddress added in v0.46.0

func (m *MsgCreatePendingPerpetualOrder) GetOwnerAddress() string

func (*MsgCreatePendingPerpetualOrder) GetPosition added in v0.46.0

func (*MsgCreatePendingPerpetualOrder) GetSignBytes added in v0.46.0

func (msg *MsgCreatePendingPerpetualOrder) GetSignBytes() []byte

func (*MsgCreatePendingPerpetualOrder) GetSigners added in v0.46.0

func (msg *MsgCreatePendingPerpetualOrder) GetSigners() []sdk.AccAddress

func (*MsgCreatePendingPerpetualOrder) GetTradingAsset added in v0.46.0

func (m *MsgCreatePendingPerpetualOrder) GetTradingAsset() string

func (*MsgCreatePendingPerpetualOrder) GetTriggerPrice added in v0.46.0

func (m *MsgCreatePendingPerpetualOrder) GetTriggerPrice() *OrderPrice

func (*MsgCreatePendingPerpetualOrder) Marshal added in v0.46.0

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

func (*MsgCreatePendingPerpetualOrder) MarshalTo added in v0.46.0

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

func (*MsgCreatePendingPerpetualOrder) MarshalToSizedBuffer added in v0.46.0

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

func (*MsgCreatePendingPerpetualOrder) ProtoMessage added in v0.46.0

func (*MsgCreatePendingPerpetualOrder) ProtoMessage()

func (*MsgCreatePendingPerpetualOrder) Reset added in v0.46.0

func (m *MsgCreatePendingPerpetualOrder) Reset()

func (*MsgCreatePendingPerpetualOrder) Route added in v0.46.0

func (*MsgCreatePendingPerpetualOrder) Size added in v0.46.0

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

func (*MsgCreatePendingPerpetualOrder) String added in v0.46.0

func (*MsgCreatePendingPerpetualOrder) Type added in v0.46.0

func (*MsgCreatePendingPerpetualOrder) Unmarshal added in v0.46.0

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

func (*MsgCreatePendingPerpetualOrder) ValidateBasic added in v0.46.0

func (msg *MsgCreatePendingPerpetualOrder) ValidateBasic() error

func (*MsgCreatePendingPerpetualOrder) XXX_DiscardUnknown added in v0.46.0

func (m *MsgCreatePendingPerpetualOrder) XXX_DiscardUnknown()

func (*MsgCreatePendingPerpetualOrder) XXX_Marshal added in v0.46.0

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

func (*MsgCreatePendingPerpetualOrder) XXX_Merge added in v0.46.0

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

func (*MsgCreatePendingPerpetualOrder) XXX_Size added in v0.46.0

func (m *MsgCreatePendingPerpetualOrder) XXX_Size() int

func (*MsgCreatePendingPerpetualOrder) XXX_Unmarshal added in v0.46.0

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

type MsgCreatePendingPerpetualOrderResponse added in v0.46.0

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

func (*MsgCreatePendingPerpetualOrderResponse) Descriptor added in v0.46.0

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

func (*MsgCreatePendingPerpetualOrderResponse) GetOrderId added in v0.46.0

func (*MsgCreatePendingPerpetualOrderResponse) Marshal added in v0.46.0

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

func (*MsgCreatePendingPerpetualOrderResponse) MarshalTo added in v0.46.0

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

func (*MsgCreatePendingPerpetualOrderResponse) MarshalToSizedBuffer added in v0.46.0

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

func (*MsgCreatePendingPerpetualOrderResponse) ProtoMessage added in v0.46.0

func (*MsgCreatePendingPerpetualOrderResponse) Reset added in v0.46.0

func (*MsgCreatePendingPerpetualOrderResponse) Size added in v0.46.0

func (*MsgCreatePendingPerpetualOrderResponse) String added in v0.46.0

func (*MsgCreatePendingPerpetualOrderResponse) Unmarshal added in v0.46.0

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

func (*MsgCreatePendingPerpetualOrderResponse) XXX_DiscardUnknown added in v0.46.0

func (m *MsgCreatePendingPerpetualOrderResponse) XXX_DiscardUnknown()

func (*MsgCreatePendingPerpetualOrderResponse) XXX_Marshal added in v0.46.0

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

func (*MsgCreatePendingPerpetualOrderResponse) XXX_Merge added in v0.46.0

func (*MsgCreatePendingPerpetualOrderResponse) XXX_Size added in v0.46.0

func (*MsgCreatePendingPerpetualOrderResponse) XXX_Unmarshal added in v0.46.0

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

type MsgCreatePendingSpotOrder added in v0.46.0

type MsgCreatePendingSpotOrder 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,omitempty"`
	OrderAmount      *types.Coin   `protobuf:"bytes,3,opt,name=order_amount,json=orderAmount,proto3" json:"order_amount,omitempty"`
	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 NewMsgCreatePendingSpotOrder added in v0.46.0

func NewMsgCreatePendingSpotOrder(ownerAddress string) *MsgCreatePendingSpotOrder

func (*MsgCreatePendingSpotOrder) Descriptor added in v0.46.0

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

func (*MsgCreatePendingSpotOrder) GetOrderAmount added in v0.46.0

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

func (*MsgCreatePendingSpotOrder) GetOrderPrice added in v0.46.0

func (m *MsgCreatePendingSpotOrder) GetOrderPrice() *OrderPrice

func (*MsgCreatePendingSpotOrder) GetOrderTargetDenom added in v0.46.0

func (m *MsgCreatePendingSpotOrder) GetOrderTargetDenom() string

func (*MsgCreatePendingSpotOrder) GetOrderType added in v0.46.0

func (m *MsgCreatePendingSpotOrder) GetOrderType() SpotOrderType

func (*MsgCreatePendingSpotOrder) GetOwnerAddress added in v0.46.0

func (m *MsgCreatePendingSpotOrder) GetOwnerAddress() string

func (*MsgCreatePendingSpotOrder) GetSignBytes added in v0.46.0

func (msg *MsgCreatePendingSpotOrder) GetSignBytes() []byte

func (*MsgCreatePendingSpotOrder) GetSigners added in v0.46.0

func (msg *MsgCreatePendingSpotOrder) GetSigners() []sdk.AccAddress

func (*MsgCreatePendingSpotOrder) Marshal added in v0.46.0

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

func (*MsgCreatePendingSpotOrder) MarshalTo added in v0.46.0

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

func (*MsgCreatePendingSpotOrder) MarshalToSizedBuffer added in v0.46.0

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

func (*MsgCreatePendingSpotOrder) ProtoMessage added in v0.46.0

func (*MsgCreatePendingSpotOrder) ProtoMessage()

func (*MsgCreatePendingSpotOrder) Reset added in v0.46.0

func (m *MsgCreatePendingSpotOrder) Reset()

func (*MsgCreatePendingSpotOrder) Route added in v0.46.0

func (msg *MsgCreatePendingSpotOrder) Route() string

func (*MsgCreatePendingSpotOrder) Size added in v0.46.0

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

func (*MsgCreatePendingSpotOrder) String added in v0.46.0

func (m *MsgCreatePendingSpotOrder) String() string

func (*MsgCreatePendingSpotOrder) Type added in v0.46.0

func (msg *MsgCreatePendingSpotOrder) Type() string

func (*MsgCreatePendingSpotOrder) Unmarshal added in v0.46.0

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

func (*MsgCreatePendingSpotOrder) ValidateBasic added in v0.46.0

func (msg *MsgCreatePendingSpotOrder) ValidateBasic() error

func (*MsgCreatePendingSpotOrder) XXX_DiscardUnknown added in v0.46.0

func (m *MsgCreatePendingSpotOrder) XXX_DiscardUnknown()

func (*MsgCreatePendingSpotOrder) XXX_Marshal added in v0.46.0

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

func (*MsgCreatePendingSpotOrder) XXX_Merge added in v0.46.0

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

func (*MsgCreatePendingSpotOrder) XXX_Size added in v0.46.0

func (m *MsgCreatePendingSpotOrder) XXX_Size() int

func (*MsgCreatePendingSpotOrder) XXX_Unmarshal added in v0.46.0

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

type MsgCreatePendingSpotOrderResponse added in v0.46.0

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

func (*MsgCreatePendingSpotOrderResponse) Descriptor added in v0.46.0

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

func (*MsgCreatePendingSpotOrderResponse) GetOrderId added in v0.46.0

func (m *MsgCreatePendingSpotOrderResponse) GetOrderId() uint64

func (*MsgCreatePendingSpotOrderResponse) Marshal added in v0.46.0

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

func (*MsgCreatePendingSpotOrderResponse) MarshalTo added in v0.46.0

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

func (*MsgCreatePendingSpotOrderResponse) MarshalToSizedBuffer added in v0.46.0

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

func (*MsgCreatePendingSpotOrderResponse) ProtoMessage added in v0.46.0

func (*MsgCreatePendingSpotOrderResponse) ProtoMessage()

func (*MsgCreatePendingSpotOrderResponse) Reset added in v0.46.0

func (*MsgCreatePendingSpotOrderResponse) Size added in v0.46.0

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

func (*MsgCreatePendingSpotOrderResponse) String added in v0.46.0

func (*MsgCreatePendingSpotOrderResponse) Unmarshal added in v0.46.0

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

func (*MsgCreatePendingSpotOrderResponse) XXX_DiscardUnknown added in v0.46.0

func (m *MsgCreatePendingSpotOrderResponse) XXX_DiscardUnknown()

func (*MsgCreatePendingSpotOrderResponse) XXX_Marshal added in v0.46.0

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

func (*MsgCreatePendingSpotOrderResponse) XXX_Merge added in v0.46.0

func (*MsgCreatePendingSpotOrderResponse) XXX_Size added in v0.46.0

func (m *MsgCreatePendingSpotOrderResponse) XXX_Size() int

func (*MsgCreatePendingSpotOrderResponse) XXX_Unmarshal added in v0.46.0

func (m *MsgCreatePendingSpotOrderResponse) 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) GetSignBytes added in v0.46.0

func (msg *MsgExecuteOrders) GetSignBytes() []byte

func (*MsgExecuteOrders) GetSigners added in v0.46.0

func (msg *MsgExecuteOrders) GetSigners() []sdk.AccAddress

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) Route added in v0.46.0

func (msg *MsgExecuteOrders) Route() string

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) Type added in v0.46.0

func (msg *MsgExecuteOrders) Type() 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) GetSignBytes added in v0.46.0

func (msg *MsgUpdateParams) GetSignBytes() []byte

func (*MsgUpdateParams) GetSigners added in v0.46.0

func (msg *MsgUpdateParams) GetSigners() []sdk.AccAddress

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) Route added in v0.46.0

func (msg *MsgUpdateParams) Route() string

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) Type added in v0.46.0

func (msg *MsgUpdateParams) Type() 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 MsgUpdatePendingPerpetualOrder added in v0.46.0

type MsgUpdatePendingPerpetualOrder 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,omitempty"`
}

func NewMsgUpdatePendingPerpetualOrder added in v0.46.0

func NewMsgUpdatePendingPerpetualOrder(creator string, id uint64, orderPrice *OrderPrice) *MsgUpdatePendingPerpetualOrder

func (*MsgUpdatePendingPerpetualOrder) Descriptor added in v0.46.0

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

func (*MsgUpdatePendingPerpetualOrder) GetOrderId added in v0.46.0

func (m *MsgUpdatePendingPerpetualOrder) GetOrderId() uint64

func (*MsgUpdatePendingPerpetualOrder) GetOrderPrice added in v0.46.0

func (m *MsgUpdatePendingPerpetualOrder) GetOrderPrice() *OrderPrice

func (*MsgUpdatePendingPerpetualOrder) GetOwnerAddress added in v0.46.0

func (m *MsgUpdatePendingPerpetualOrder) GetOwnerAddress() string

func (*MsgUpdatePendingPerpetualOrder) GetSignBytes added in v0.46.0

func (msg *MsgUpdatePendingPerpetualOrder) GetSignBytes() []byte

func (*MsgUpdatePendingPerpetualOrder) GetSigners added in v0.46.0

func (msg *MsgUpdatePendingPerpetualOrder) GetSigners() []sdk.AccAddress

func (*MsgUpdatePendingPerpetualOrder) Marshal added in v0.46.0

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

func (*MsgUpdatePendingPerpetualOrder) MarshalTo added in v0.46.0

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

func (*MsgUpdatePendingPerpetualOrder) MarshalToSizedBuffer added in v0.46.0

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

func (*MsgUpdatePendingPerpetualOrder) ProtoMessage added in v0.46.0

func (*MsgUpdatePendingPerpetualOrder) ProtoMessage()

func (*MsgUpdatePendingPerpetualOrder) Reset added in v0.46.0

func (m *MsgUpdatePendingPerpetualOrder) Reset()

func (*MsgUpdatePendingPerpetualOrder) Route added in v0.46.0

func (*MsgUpdatePendingPerpetualOrder) Size added in v0.46.0

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

func (*MsgUpdatePendingPerpetualOrder) String added in v0.46.0

func (*MsgUpdatePendingPerpetualOrder) Type added in v0.46.0

func (*MsgUpdatePendingPerpetualOrder) Unmarshal added in v0.46.0

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

func (*MsgUpdatePendingPerpetualOrder) ValidateBasic added in v0.46.0

func (msg *MsgUpdatePendingPerpetualOrder) ValidateBasic() error

func (*MsgUpdatePendingPerpetualOrder) XXX_DiscardUnknown added in v0.46.0

func (m *MsgUpdatePendingPerpetualOrder) XXX_DiscardUnknown()

func (*MsgUpdatePendingPerpetualOrder) XXX_Marshal added in v0.46.0

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

func (*MsgUpdatePendingPerpetualOrder) XXX_Merge added in v0.46.0

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

func (*MsgUpdatePendingPerpetualOrder) XXX_Size added in v0.46.0

func (m *MsgUpdatePendingPerpetualOrder) XXX_Size() int

func (*MsgUpdatePendingPerpetualOrder) XXX_Unmarshal added in v0.46.0

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

type MsgUpdatePendingPerpetualOrderResponse added in v0.46.0

type MsgUpdatePendingPerpetualOrderResponse struct {
}

func (*MsgUpdatePendingPerpetualOrderResponse) Descriptor added in v0.46.0

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

func (*MsgUpdatePendingPerpetualOrderResponse) Marshal added in v0.46.0

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

func (*MsgUpdatePendingPerpetualOrderResponse) MarshalTo added in v0.46.0

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

func (*MsgUpdatePendingPerpetualOrderResponse) MarshalToSizedBuffer added in v0.46.0

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

func (*MsgUpdatePendingPerpetualOrderResponse) ProtoMessage added in v0.46.0

func (*MsgUpdatePendingPerpetualOrderResponse) Reset added in v0.46.0

func (*MsgUpdatePendingPerpetualOrderResponse) Size added in v0.46.0

func (*MsgUpdatePendingPerpetualOrderResponse) String added in v0.46.0

func (*MsgUpdatePendingPerpetualOrderResponse) Unmarshal added in v0.46.0

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

func (*MsgUpdatePendingPerpetualOrderResponse) XXX_DiscardUnknown added in v0.46.0

func (m *MsgUpdatePendingPerpetualOrderResponse) XXX_DiscardUnknown()

func (*MsgUpdatePendingPerpetualOrderResponse) XXX_Marshal added in v0.46.0

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

func (*MsgUpdatePendingPerpetualOrderResponse) XXX_Merge added in v0.46.0

func (*MsgUpdatePendingPerpetualOrderResponse) XXX_Size added in v0.46.0

func (*MsgUpdatePendingPerpetualOrderResponse) XXX_Unmarshal added in v0.46.0

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

type MsgUpdatePendingSpotOrder added in v0.46.0

type MsgUpdatePendingSpotOrder 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,omitempty"`
}

func NewMsgUpdatePendingSpotOrder added in v0.46.0

func NewMsgUpdatePendingSpotOrder(creator string, id uint64, orderPrice *OrderPrice) *MsgUpdatePendingSpotOrder

func (*MsgUpdatePendingSpotOrder) Descriptor added in v0.46.0

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

func (*MsgUpdatePendingSpotOrder) GetOrderId added in v0.46.0

func (m *MsgUpdatePendingSpotOrder) GetOrderId() uint64

func (*MsgUpdatePendingSpotOrder) GetOrderPrice added in v0.46.0

func (m *MsgUpdatePendingSpotOrder) GetOrderPrice() *OrderPrice

func (*MsgUpdatePendingSpotOrder) GetOwnerAddress added in v0.46.0

func (m *MsgUpdatePendingSpotOrder) GetOwnerAddress() string

func (*MsgUpdatePendingSpotOrder) GetSignBytes added in v0.46.0

func (msg *MsgUpdatePendingSpotOrder) GetSignBytes() []byte

func (*MsgUpdatePendingSpotOrder) GetSigners added in v0.46.0

func (msg *MsgUpdatePendingSpotOrder) GetSigners() []sdk.AccAddress

func (*MsgUpdatePendingSpotOrder) Marshal added in v0.46.0

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

func (*MsgUpdatePendingSpotOrder) MarshalTo added in v0.46.0

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

func (*MsgUpdatePendingSpotOrder) MarshalToSizedBuffer added in v0.46.0

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

func (*MsgUpdatePendingSpotOrder) ProtoMessage added in v0.46.0

func (*MsgUpdatePendingSpotOrder) ProtoMessage()

func (*MsgUpdatePendingSpotOrder) Reset added in v0.46.0

func (m *MsgUpdatePendingSpotOrder) Reset()

func (*MsgUpdatePendingSpotOrder) Route added in v0.46.0

func (msg *MsgUpdatePendingSpotOrder) Route() string

func (*MsgUpdatePendingSpotOrder) Size added in v0.46.0

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

func (*MsgUpdatePendingSpotOrder) String added in v0.46.0

func (m *MsgUpdatePendingSpotOrder) String() string

func (*MsgUpdatePendingSpotOrder) Type added in v0.46.0

func (msg *MsgUpdatePendingSpotOrder) Type() string

func (*MsgUpdatePendingSpotOrder) Unmarshal added in v0.46.0

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

func (*MsgUpdatePendingSpotOrder) ValidateBasic added in v0.46.0

func (msg *MsgUpdatePendingSpotOrder) ValidateBasic() error

func (*MsgUpdatePendingSpotOrder) XXX_DiscardUnknown added in v0.46.0

func (m *MsgUpdatePendingSpotOrder) XXX_DiscardUnknown()

func (*MsgUpdatePendingSpotOrder) XXX_Marshal added in v0.46.0

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

func (*MsgUpdatePendingSpotOrder) XXX_Merge added in v0.46.0

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

func (*MsgUpdatePendingSpotOrder) XXX_Size added in v0.46.0

func (m *MsgUpdatePendingSpotOrder) XXX_Size() int

func (*MsgUpdatePendingSpotOrder) XXX_Unmarshal added in v0.46.0

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

type MsgUpdatePendingSpotOrderResponse added in v0.46.0

type MsgUpdatePendingSpotOrderResponse struct {
}

func (*MsgUpdatePendingSpotOrderResponse) Descriptor added in v0.46.0

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

func (*MsgUpdatePendingSpotOrderResponse) Marshal added in v0.46.0

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

func (*MsgUpdatePendingSpotOrderResponse) MarshalTo added in v0.46.0

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

func (*MsgUpdatePendingSpotOrderResponse) MarshalToSizedBuffer added in v0.46.0

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

func (*MsgUpdatePendingSpotOrderResponse) ProtoMessage added in v0.46.0

func (*MsgUpdatePendingSpotOrderResponse) ProtoMessage()

func (*MsgUpdatePendingSpotOrderResponse) Reset added in v0.46.0

func (*MsgUpdatePendingSpotOrderResponse) Size added in v0.46.0

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

func (*MsgUpdatePendingSpotOrderResponse) String added in v0.46.0

func (*MsgUpdatePendingSpotOrderResponse) Unmarshal added in v0.46.0

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

func (*MsgUpdatePendingSpotOrderResponse) XXX_DiscardUnknown added in v0.46.0

func (m *MsgUpdatePendingSpotOrderResponse) XXX_DiscardUnknown()

func (*MsgUpdatePendingSpotOrderResponse) XXX_Marshal added in v0.46.0

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

func (*MsgUpdatePendingSpotOrderResponse) XXX_Merge added in v0.46.0

func (*MsgUpdatePendingSpotOrderResponse) XXX_Size added in v0.46.0

func (m *MsgUpdatePendingSpotOrderResponse) XXX_Size() int

func (*MsgUpdatePendingSpotOrderResponse) XXX_Unmarshal added in v0.46.0

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

type MsgUpdateStopLossResponse added in v0.48.0

type MsgUpdateStopLossResponse struct {
}

func (*MsgUpdateStopLossResponse) Descriptor added in v0.48.0

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

func (*MsgUpdateStopLossResponse) Marshal added in v0.48.0

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

func (*MsgUpdateStopLossResponse) MarshalTo added in v0.48.0

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

func (*MsgUpdateStopLossResponse) MarshalToSizedBuffer added in v0.48.0

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

func (*MsgUpdateStopLossResponse) ProtoMessage added in v0.48.0

func (*MsgUpdateStopLossResponse) ProtoMessage()

func (*MsgUpdateStopLossResponse) Reset added in v0.48.0

func (m *MsgUpdateStopLossResponse) Reset()

func (*MsgUpdateStopLossResponse) Size added in v0.48.0

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

func (*MsgUpdateStopLossResponse) String added in v0.48.0

func (m *MsgUpdateStopLossResponse) String() string

func (*MsgUpdateStopLossResponse) Unmarshal added in v0.48.0

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

func (*MsgUpdateStopLossResponse) XXX_DiscardUnknown added in v0.48.0

func (m *MsgUpdateStopLossResponse) XXX_DiscardUnknown()

func (*MsgUpdateStopLossResponse) XXX_Marshal added in v0.48.0

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

func (*MsgUpdateStopLossResponse) XXX_Merge added in v0.48.0

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

func (*MsgUpdateStopLossResponse) XXX_Size added in v0.48.0

func (m *MsgUpdateStopLossResponse) XXX_Size() int

func (*MsgUpdateStopLossResponse) XXX_Unmarshal added in v0.48.0

func (m *MsgUpdateStopLossResponse) 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       github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,3,opt,name=rate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" 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 github_com_cosmos_cosmos_sdk_types.Dec `` /* 149-byte string literal not displayed */
	MarginError      github_com_cosmos_cosmos_sdk_types.Dec `` /* 135-byte string literal not displayed */
	MinimumDeposit   github_com_cosmos_cosmos_sdk_types.Int `` /* 144-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) ParamSetPairs

func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs

ParamSetPairs get the params.ParamSet

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 (p Params) String() string

String implements the Stringer interface.

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

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       *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           github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,8,opt,name=leverage,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"leverage"`
	TakeProfitPrice    github_com_cosmos_cosmos_sdk_types.Dec `` /* 148-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      github_com_cosmos_cosmos_sdk_types.Dec `` /* 143-byte string literal not displayed */
	PositionSize       types.Coin                             `protobuf:"bytes,13,opt,name=position_size,json=positionSize,proto3" json:"position_size"`
	LiquidationPrice   github_com_cosmos_cosmos_sdk_types.Dec `` /* 150-byte string literal not displayed */
	FundingRate        github_com_cosmos_cosmos_sdk_types.Dec `` /* 135-byte string literal not displayed */
	BorrowInterestRate github_com_cosmos_cosmos_sdk_types.Dec `` /* 158-byte string literal not displayed */
}

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) 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) 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) GetPositionSize added in v0.48.0

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

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() *OrderPrice

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 PerpetualOrderType added in v0.46.0

type PerpetualOrderType int32

Perpetual Order

const (
	PerpetualOrderType_LIMITOPEN    PerpetualOrderType = 0
	PerpetualOrderType_LIMITCLOSE   PerpetualOrderType = 1
	PerpetualOrderType_MARKETOPEN   PerpetualOrderType = 2
	PerpetualOrderType_MARKETCLOSE  PerpetualOrderType = 3
	PerpetualOrderType_STOPLOSSPERP PerpetualOrderType = 4
)

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 []PerpetualOrder    `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() []PerpetualOrder

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 PerpetualOrder `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() PerpetualOrder

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 []PerpetualOrder `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 (m *QueryPendingPerpetualOrderForAddressResponse) GetPendingPerpetualOrders() []PerpetualOrder

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,omitempty"`
	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) 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 (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 sdk.Dec, tier string, discount uint64)

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

TierKeeper defines the expected interface needed to get tier information

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) CancelPerpetualOrders added in v0.48.0

func (*UnimplementedMsgServer) CancelSpotOrders added in v0.48.0

func (*UnimplementedMsgServer) CreatePendingPerpetualOrder added in v0.46.0

func (*UnimplementedMsgServer) CreatePendingSpotOrder added in v0.46.0

func (*UnimplementedMsgServer) ExecuteOrders added in v0.46.0

func (*UnimplementedMsgServer) UpdateParams added in v0.46.0

func (*UnimplementedMsgServer) UpdatePendingPerpetualOrder added in v0.46.0

func (*UnimplementedMsgServer) UpdatePendingSpotOrder added in v0.46.0

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