Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func BytesToPrice(bz []byte) sdk.Dec
- func DeductFee(amt, feeRate sdk.Dec) (deducted, fee sdk.Dec)
- func DepositAmount(isBuy bool, price sdk.Dec, qty sdk.Dec) sdk.Dec
- func DeriveMarketEscrowAddress(marketId uint64) sdk.AccAddress
- func GetMarketByDenomsIndexKey(baseDenom, quoteDenom string) []byte
- func GetMarketKey(marketId uint64) []byte
- func GetMarketStateKey(marketId uint64) []byte
- func GetNumMMOrdersKey(ordererAddr sdk.AccAddress, marketId uint64) []byte
- func GetOrderBookOrderIndexKey(marketId uint64, isBuy bool, price sdk.Dec, orderId uint64) []byte
- func GetOrderBookSideIteratorPrefix(marketId uint64, isBuy bool) []byte
- func GetOrderBookSidePriceLimitIteratorPrefix(marketId uint64, isBuy bool, priceLimit sdk.Dec) []byte
- func GetOrderKey(orderId uint64) []byte
- func GetOrdersByMarketIteratorPrefix(marketId uint64) []byte
- func GetOrdersByOrdererAndMarketIteratorPrefix(ordererAddr sdk.AccAddress, marketId uint64) []byte
- func GetOrdersByOrdererIndexKey(ordererAddr sdk.AccAddress, marketId, orderId uint64) []byte
- func GetOrdersByOrdererIteratorPrefix(ordererAddr sdk.AccAddress) []byte
- func GroupMemOrdersByOrderer(results []*MemOrder) (ordererAddrs []sdk.AccAddress, m map[string][]*MemOrder)
- func OrderPriceLimit(basePrice, maxOrderPriceRatio sdk.Dec) (minPrice, maxPrice sdk.Dec)
- func ParamKeyTable() paramstypes.KeyTable
- func ParseMarketByDenomsIndexKey(key []byte) (baseDenom, quoteDenom string)
- func ParseNumMMOrdersKey(key []byte) (ordererAddr sdk.AccAddress, marketId uint64)
- func ParseOrderIdFromOrderBookOrderIndexKey(key []byte) (orderId uint64)
- func ParseOrderIdFromOrdersByOrdererIndexKey(key []byte) (orderId uint64)
- func ParsePriceFromOrderBookOrderIndexKey(key []byte) (price sdk.Dec)
- func PayReceiveDenoms(baseDenom, quoteDenom string, isBuy bool) (payDenom, receiveDenom string)
- func PriceAtTick(tick int32) sdk.Dec
- func PriceIntervalAtTick(tick int32) sdk.Dec
- func PriceToBytes(d sdk.Dec) []byte
- func QuoteAmount(isBuy bool, price, qty sdk.Dec) sdk.Dec
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- func RoundPrice(price sdk.Dec) sdk.Dec
- func RoundTick(tick int32) int32
- func TickAtPrice(price sdk.Dec) int32
- func TotalExecutableQuantity(orders []*MemOrder) sdk.Dec
- func ValidateFees(makerFeeRate, takerFeeRate, orderSourceFeeRatio sdk.Dec) error
- func ValidateLimitOrderMsg(sender string, marketId uint64, isBuy bool, price, qty sdk.Dec, ...) error
- func ValidateTickPrice(price sdk.Dec) (tick int32, valid bool)
- type AccountKeeper
- type BankKeeper
- type CreateOrderFunc
- type Escrow
- func (e *Escrow) Lock(addr sdk.AccAddress, amt ...sdk.DecCoin)
- func (e *Escrow) Pays(addr sdk.AccAddress) sdk.Coins
- func (e *Escrow) Receives(addr sdk.AccAddress) sdk.Coins
- func (e *Escrow) Transact(ctx sdk.Context, bankKeeper BankKeeper) error
- func (e *Escrow) Unlock(addr sdk.AccAddress, amt ...sdk.DecCoin)
- type EventCancelAllOrders
- func (*EventCancelAllOrders) Descriptor() ([]byte, []int)
- func (m *EventCancelAllOrders) Marshal() (dAtA []byte, err error)
- func (m *EventCancelAllOrders) MarshalTo(dAtA []byte) (int, error)
- func (m *EventCancelAllOrders) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventCancelAllOrders) ProtoMessage()
- func (m *EventCancelAllOrders) Reset()
- func (m *EventCancelAllOrders) Size() (n int)
- func (m *EventCancelAllOrders) String() string
- func (m *EventCancelAllOrders) Unmarshal(dAtA []byte) error
- func (m *EventCancelAllOrders) XXX_DiscardUnknown()
- func (m *EventCancelAllOrders) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventCancelAllOrders) XXX_Merge(src proto.Message)
- func (m *EventCancelAllOrders) XXX_Size() int
- func (m *EventCancelAllOrders) XXX_Unmarshal(b []byte) error
- type EventCancelOrder
- func (*EventCancelOrder) Descriptor() ([]byte, []int)
- func (m *EventCancelOrder) Marshal() (dAtA []byte, err error)
- func (m *EventCancelOrder) MarshalTo(dAtA []byte) (int, error)
- func (m *EventCancelOrder) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventCancelOrder) ProtoMessage()
- func (m *EventCancelOrder) Reset()
- func (m *EventCancelOrder) Size() (n int)
- func (m *EventCancelOrder) String() string
- func (m *EventCancelOrder) Unmarshal(dAtA []byte) error
- func (m *EventCancelOrder) XXX_DiscardUnknown()
- func (m *EventCancelOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventCancelOrder) XXX_Merge(src proto.Message)
- func (m *EventCancelOrder) XXX_Size() int
- func (m *EventCancelOrder) XXX_Unmarshal(b []byte) error
- type EventCreateMarket
- func (*EventCreateMarket) Descriptor() ([]byte, []int)
- func (m *EventCreateMarket) Marshal() (dAtA []byte, err error)
- func (m *EventCreateMarket) MarshalTo(dAtA []byte) (int, error)
- func (m *EventCreateMarket) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventCreateMarket) ProtoMessage()
- func (m *EventCreateMarket) Reset()
- func (m *EventCreateMarket) Size() (n int)
- func (m *EventCreateMarket) String() string
- func (m *EventCreateMarket) Unmarshal(dAtA []byte) error
- func (m *EventCreateMarket) XXX_DiscardUnknown()
- func (m *EventCreateMarket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventCreateMarket) XXX_Merge(src proto.Message)
- func (m *EventCreateMarket) XXX_Size() int
- func (m *EventCreateMarket) XXX_Unmarshal(b []byte) error
- type EventMarketParameterChanged
- func (*EventMarketParameterChanged) Descriptor() ([]byte, []int)
- func (m *EventMarketParameterChanged) Marshal() (dAtA []byte, err error)
- func (m *EventMarketParameterChanged) MarshalTo(dAtA []byte) (int, error)
- func (m *EventMarketParameterChanged) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventMarketParameterChanged) ProtoMessage()
- func (m *EventMarketParameterChanged) Reset()
- func (m *EventMarketParameterChanged) Size() (n int)
- func (m *EventMarketParameterChanged) String() string
- func (m *EventMarketParameterChanged) Unmarshal(dAtA []byte) error
- func (m *EventMarketParameterChanged) XXX_DiscardUnknown()
- func (m *EventMarketParameterChanged) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventMarketParameterChanged) XXX_Merge(src proto.Message)
- func (m *EventMarketParameterChanged) XXX_Size() int
- func (m *EventMarketParameterChanged) XXX_Unmarshal(b []byte) error
- type EventOrderCompleted
- func (*EventOrderCompleted) Descriptor() ([]byte, []int)
- func (m *EventOrderCompleted) Marshal() (dAtA []byte, err error)
- func (m *EventOrderCompleted) MarshalTo(dAtA []byte) (int, error)
- func (m *EventOrderCompleted) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventOrderCompleted) ProtoMessage()
- func (m *EventOrderCompleted) Reset()
- func (m *EventOrderCompleted) Size() (n int)
- func (m *EventOrderCompleted) String() string
- func (m *EventOrderCompleted) Unmarshal(dAtA []byte) error
- func (m *EventOrderCompleted) XXX_DiscardUnknown()
- func (m *EventOrderCompleted) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventOrderCompleted) XXX_Merge(src proto.Message)
- func (m *EventOrderCompleted) XXX_Size() int
- func (m *EventOrderCompleted) XXX_Unmarshal(b []byte) error
- type EventOrderExpired
- func (*EventOrderExpired) Descriptor() ([]byte, []int)
- func (m *EventOrderExpired) Marshal() (dAtA []byte, err error)
- func (m *EventOrderExpired) MarshalTo(dAtA []byte) (int, error)
- func (m *EventOrderExpired) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventOrderExpired) ProtoMessage()
- func (m *EventOrderExpired) Reset()
- func (m *EventOrderExpired) Size() (n int)
- func (m *EventOrderExpired) String() string
- func (m *EventOrderExpired) Unmarshal(dAtA []byte) error
- func (m *EventOrderExpired) XXX_DiscardUnknown()
- func (m *EventOrderExpired) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventOrderExpired) XXX_Merge(src proto.Message)
- func (m *EventOrderExpired) XXX_Size() int
- func (m *EventOrderExpired) XXX_Unmarshal(b []byte) error
- type EventOrderFilled
- func (*EventOrderFilled) Descriptor() ([]byte, []int)
- func (m *EventOrderFilled) Marshal() (dAtA []byte, err error)
- func (m *EventOrderFilled) MarshalTo(dAtA []byte) (int, error)
- func (m *EventOrderFilled) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventOrderFilled) ProtoMessage()
- func (m *EventOrderFilled) Reset()
- func (m *EventOrderFilled) Size() (n int)
- func (m *EventOrderFilled) String() string
- func (m *EventOrderFilled) Unmarshal(dAtA []byte) error
- func (m *EventOrderFilled) XXX_DiscardUnknown()
- func (m *EventOrderFilled) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventOrderFilled) XXX_Merge(src proto.Message)
- func (m *EventOrderFilled) XXX_Size() int
- func (m *EventOrderFilled) XXX_Unmarshal(b []byte) error
- type EventOrderSourceOrdersFilled
- func (*EventOrderSourceOrdersFilled) Descriptor() ([]byte, []int)
- func (m *EventOrderSourceOrdersFilled) Marshal() (dAtA []byte, err error)
- func (m *EventOrderSourceOrdersFilled) MarshalTo(dAtA []byte) (int, error)
- func (m *EventOrderSourceOrdersFilled) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventOrderSourceOrdersFilled) ProtoMessage()
- func (m *EventOrderSourceOrdersFilled) Reset()
- func (m *EventOrderSourceOrdersFilled) Size() (n int)
- func (m *EventOrderSourceOrdersFilled) String() string
- func (m *EventOrderSourceOrdersFilled) Unmarshal(dAtA []byte) error
- func (m *EventOrderSourceOrdersFilled) XXX_DiscardUnknown()
- func (m *EventOrderSourceOrdersFilled) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventOrderSourceOrdersFilled) XXX_Merge(src proto.Message)
- func (m *EventOrderSourceOrdersFilled) XXX_Size() int
- func (m *EventOrderSourceOrdersFilled) XXX_Unmarshal(b []byte) error
- type EventPlaceBatchLimitOrder
- func (*EventPlaceBatchLimitOrder) Descriptor() ([]byte, []int)
- func (m *EventPlaceBatchLimitOrder) Marshal() (dAtA []byte, err error)
- func (m *EventPlaceBatchLimitOrder) MarshalTo(dAtA []byte) (int, error)
- func (m *EventPlaceBatchLimitOrder) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventPlaceBatchLimitOrder) ProtoMessage()
- func (m *EventPlaceBatchLimitOrder) Reset()
- func (m *EventPlaceBatchLimitOrder) Size() (n int)
- func (m *EventPlaceBatchLimitOrder) String() string
- func (m *EventPlaceBatchLimitOrder) Unmarshal(dAtA []byte) error
- func (m *EventPlaceBatchLimitOrder) XXX_DiscardUnknown()
- func (m *EventPlaceBatchLimitOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventPlaceBatchLimitOrder) XXX_Merge(src proto.Message)
- func (m *EventPlaceBatchLimitOrder) XXX_Size() int
- func (m *EventPlaceBatchLimitOrder) XXX_Unmarshal(b []byte) error
- type EventPlaceLimitOrder
- func (*EventPlaceLimitOrder) Descriptor() ([]byte, []int)
- func (m *EventPlaceLimitOrder) Marshal() (dAtA []byte, err error)
- func (m *EventPlaceLimitOrder) MarshalTo(dAtA []byte) (int, error)
- func (m *EventPlaceLimitOrder) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventPlaceLimitOrder) ProtoMessage()
- func (m *EventPlaceLimitOrder) Reset()
- func (m *EventPlaceLimitOrder) Size() (n int)
- func (m *EventPlaceLimitOrder) String() string
- func (m *EventPlaceLimitOrder) Unmarshal(dAtA []byte) error
- func (m *EventPlaceLimitOrder) XXX_DiscardUnknown()
- func (m *EventPlaceLimitOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventPlaceLimitOrder) XXX_Merge(src proto.Message)
- func (m *EventPlaceLimitOrder) XXX_Size() int
- func (m *EventPlaceLimitOrder) XXX_Unmarshal(b []byte) error
- type EventPlaceMMBatchLimitOrder
- func (*EventPlaceMMBatchLimitOrder) Descriptor() ([]byte, []int)
- func (m *EventPlaceMMBatchLimitOrder) Marshal() (dAtA []byte, err error)
- func (m *EventPlaceMMBatchLimitOrder) MarshalTo(dAtA []byte) (int, error)
- func (m *EventPlaceMMBatchLimitOrder) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventPlaceMMBatchLimitOrder) ProtoMessage()
- func (m *EventPlaceMMBatchLimitOrder) Reset()
- func (m *EventPlaceMMBatchLimitOrder) Size() (n int)
- func (m *EventPlaceMMBatchLimitOrder) String() string
- func (m *EventPlaceMMBatchLimitOrder) Unmarshal(dAtA []byte) error
- func (m *EventPlaceMMBatchLimitOrder) XXX_DiscardUnknown()
- func (m *EventPlaceMMBatchLimitOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventPlaceMMBatchLimitOrder) XXX_Merge(src proto.Message)
- func (m *EventPlaceMMBatchLimitOrder) XXX_Size() int
- func (m *EventPlaceMMBatchLimitOrder) XXX_Unmarshal(b []byte) error
- type EventPlaceMMLimitOrder
- func (*EventPlaceMMLimitOrder) Descriptor() ([]byte, []int)
- func (m *EventPlaceMMLimitOrder) Marshal() (dAtA []byte, err error)
- func (m *EventPlaceMMLimitOrder) MarshalTo(dAtA []byte) (int, error)
- func (m *EventPlaceMMLimitOrder) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventPlaceMMLimitOrder) ProtoMessage()
- func (m *EventPlaceMMLimitOrder) Reset()
- func (m *EventPlaceMMLimitOrder) Size() (n int)
- func (m *EventPlaceMMLimitOrder) String() string
- func (m *EventPlaceMMLimitOrder) Unmarshal(dAtA []byte) error
- func (m *EventPlaceMMLimitOrder) XXX_DiscardUnknown()
- func (m *EventPlaceMMLimitOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventPlaceMMLimitOrder) XXX_Merge(src proto.Message)
- func (m *EventPlaceMMLimitOrder) XXX_Size() int
- func (m *EventPlaceMMLimitOrder) XXX_Unmarshal(b []byte) error
- type EventPlaceMarketOrder
- func (*EventPlaceMarketOrder) Descriptor() ([]byte, []int)
- func (m *EventPlaceMarketOrder) Marshal() (dAtA []byte, err error)
- func (m *EventPlaceMarketOrder) MarshalTo(dAtA []byte) (int, error)
- func (m *EventPlaceMarketOrder) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventPlaceMarketOrder) ProtoMessage()
- func (m *EventPlaceMarketOrder) Reset()
- func (m *EventPlaceMarketOrder) Size() (n int)
- func (m *EventPlaceMarketOrder) String() string
- func (m *EventPlaceMarketOrder) Unmarshal(dAtA []byte) error
- func (m *EventPlaceMarketOrder) XXX_DiscardUnknown()
- func (m *EventPlaceMarketOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventPlaceMarketOrder) XXX_Merge(src proto.Message)
- func (m *EventPlaceMarketOrder) XXX_Size() int
- func (m *EventPlaceMarketOrder) XXX_Unmarshal(b []byte) error
- type EventSwapExactAmountIn
- func (*EventSwapExactAmountIn) Descriptor() ([]byte, []int)
- func (m *EventSwapExactAmountIn) Marshal() (dAtA []byte, err error)
- func (m *EventSwapExactAmountIn) MarshalTo(dAtA []byte) (int, error)
- func (m *EventSwapExactAmountIn) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventSwapExactAmountIn) ProtoMessage()
- func (m *EventSwapExactAmountIn) Reset()
- func (m *EventSwapExactAmountIn) Size() (n int)
- func (m *EventSwapExactAmountIn) String() string
- func (m *EventSwapExactAmountIn) Unmarshal(dAtA []byte) error
- func (m *EventSwapExactAmountIn) XXX_DiscardUnknown()
- func (m *EventSwapExactAmountIn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventSwapExactAmountIn) XXX_Merge(src proto.Message)
- func (m *EventSwapExactAmountIn) XXX_Size() int
- func (m *EventSwapExactAmountIn) XXX_Unmarshal(b []byte) error
- type ExecuteOrderResult
- type Fees
- func (*Fees) Descriptor() ([]byte, []int)
- func (m *Fees) Marshal() (dAtA []byte, err error)
- func (m *Fees) MarshalTo(dAtA []byte) (int, error)
- func (m *Fees) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Fees) ProtoMessage()
- func (m *Fees) Reset()
- func (m *Fees) Size() (n int)
- func (m *Fees) String() string
- func (m *Fees) Unmarshal(dAtA []byte) error
- func (m *Fees) XXX_DiscardUnknown()
- func (m *Fees) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Fees) XXX_Merge(src proto.Message)
- func (m *Fees) XXX_Size() int
- func (m *Fees) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (genState GenesisState) Validate() error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type Market
- func (*Market) Descriptor() ([]byte, []int)
- func (m *Market) Marshal() (dAtA []byte, err error)
- func (m *Market) MarshalTo(dAtA []byte) (int, error)
- func (m *Market) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (market Market) MustGetEscrowAddress() sdk.AccAddress
- func (*Market) ProtoMessage()
- func (m *Market) Reset()
- func (m *Market) Size() (n int)
- func (m *Market) String() string
- func (m *Market) Unmarshal(dAtA []byte) error
- func (market Market) Validate() error
- func (m *Market) XXX_DiscardUnknown()
- func (m *Market) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Market) XXX_Merge(src proto.Message)
- func (m *Market) XXX_Size() int
- func (m *Market) XXX_Unmarshal(b []byte) error
- type MarketParameterChange
- func (*MarketParameterChange) Descriptor() ([]byte, []int)
- func (m *MarketParameterChange) Marshal() (dAtA []byte, err error)
- func (m *MarketParameterChange) MarshalTo(dAtA []byte) (int, error)
- func (m *MarketParameterChange) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MarketParameterChange) ProtoMessage()
- func (m *MarketParameterChange) Reset()
- func (m *MarketParameterChange) Size() (n int)
- func (m *MarketParameterChange) String() string
- func (m *MarketParameterChange) Unmarshal(dAtA []byte) error
- func (change MarketParameterChange) Validate() error
- func (m *MarketParameterChange) XXX_DiscardUnknown()
- func (m *MarketParameterChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MarketParameterChange) XXX_Merge(src proto.Message)
- func (m *MarketParameterChange) XXX_Size() int
- func (m *MarketParameterChange) XXX_Unmarshal(b []byte) error
- type MarketParameterChangeProposal
- func (*MarketParameterChangeProposal) Descriptor() ([]byte, []int)
- func (p *MarketParameterChangeProposal) GetDescription() string
- func (p *MarketParameterChangeProposal) GetTitle() string
- func (m *MarketParameterChangeProposal) Marshal() (dAtA []byte, err error)
- func (m *MarketParameterChangeProposal) MarshalTo(dAtA []byte) (int, error)
- func (m *MarketParameterChangeProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *MarketParameterChangeProposal) ProposalRoute() string
- func (p *MarketParameterChangeProposal) ProposalType() string
- func (*MarketParameterChangeProposal) ProtoMessage()
- func (m *MarketParameterChangeProposal) Reset()
- func (m *MarketParameterChangeProposal) Size() (n int)
- func (p MarketParameterChangeProposal) String() string
- func (m *MarketParameterChangeProposal) Unmarshal(dAtA []byte) error
- func (p *MarketParameterChangeProposal) ValidateBasic() error
- func (m *MarketParameterChangeProposal) XXX_DiscardUnknown()
- func (m *MarketParameterChangeProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MarketParameterChangeProposal) XXX_Merge(src proto.Message)
- func (m *MarketParameterChangeProposal) XXX_Size() int
- func (m *MarketParameterChangeProposal) XXX_Unmarshal(b []byte) error
- type MarketRecord
- func (*MarketRecord) Descriptor() ([]byte, []int)
- func (m *MarketRecord) Marshal() (dAtA []byte, err error)
- func (m *MarketRecord) MarshalTo(dAtA []byte) (int, error)
- func (m *MarketRecord) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MarketRecord) ProtoMessage()
- func (m *MarketRecord) Reset()
- func (m *MarketRecord) Size() (n int)
- func (m *MarketRecord) String() string
- func (m *MarketRecord) Unmarshal(dAtA []byte) error
- func (record MarketRecord) Validate() error
- func (m *MarketRecord) XXX_DiscardUnknown()
- func (m *MarketRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MarketRecord) XXX_Merge(src proto.Message)
- func (m *MarketRecord) XXX_Size() int
- func (m *MarketRecord) XXX_Unmarshal(b []byte) error
- type MarketResponse
- func (*MarketResponse) Descriptor() ([]byte, []int)
- func (m *MarketResponse) Marshal() (dAtA []byte, err error)
- func (m *MarketResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MarketResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MarketResponse) ProtoMessage()
- func (m *MarketResponse) Reset()
- func (m *MarketResponse) Size() (n int)
- func (m *MarketResponse) String() string
- func (m *MarketResponse) Unmarshal(dAtA []byte) error
- func (m *MarketResponse) XXX_DiscardUnknown()
- func (m *MarketResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MarketResponse) XXX_Merge(src proto.Message)
- func (m *MarketResponse) XXX_Size() int
- func (m *MarketResponse) XXX_Unmarshal(b []byte) error
- type MarketState
- func (*MarketState) Descriptor() ([]byte, []int)
- func (m *MarketState) Marshal() (dAtA []byte, err error)
- func (m *MarketState) MarshalTo(dAtA []byte) (int, error)
- func (m *MarketState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MarketState) ProtoMessage()
- func (m *MarketState) Reset()
- func (m *MarketState) Size() (n int)
- func (m *MarketState) String() string
- func (m *MarketState) Unmarshal(dAtA []byte) error
- func (marketState MarketState) Validate() error
- func (m *MarketState) XXX_DiscardUnknown()
- func (m *MarketState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MarketState) XXX_Merge(src proto.Message)
- func (m *MarketState) XXX_Size() int
- func (m *MarketState) XXX_Unmarshal(b []byte) error
- type MatchingContext
- func (ctx *MatchingContext) BatchMatchOrderBookSides(buyObs, sellObs *MemOrderBookSide, lastPrice sdk.Dec) (newLastPrice sdk.Dec, matched bool)
- func (ctx *MatchingContext) ExecuteOrder(obs *MemOrderBookSide, qtyLimit, quoteLimit *sdk.Dec) (res ExecuteOrderResult)
- func (ctx *MatchingContext) FillOrder(order *MemOrder, qty, price sdk.Dec, isMaker bool)
- func (ctx *MatchingContext) FillOrderBookPriceLevel(level *MemOrderBookPriceLevel, qty, price sdk.Dec, isMaker bool)
- func (ctx *MatchingContext) FillOrders(orders []*MemOrder, qty, price sdk.Dec, isMaker bool)
- func (ctx *MatchingContext) MatchOrderBookPriceLevels(levelA *MemOrderBookPriceLevel, isLevelAMaker bool, ...) (executedQty sdk.Dec, fullA, fullB bool)
- func (ctx *MatchingContext) RunSinglePriceAuction(buyObs, sellObs *MemOrderBookSide) (matchPrice sdk.Dec, matched bool)
- type MemOrder
- func (order *MemOrder) ExecutableQuantity() sdk.Dec
- func (order *MemOrder) ExecutedQuantity() sdk.Dec
- func (order *MemOrder) Fee() sdk.Dec
- func (order *MemOrder) HasPriorityOver(other *MemOrder) bool
- func (order *MemOrder) IsBuy() bool
- func (order *MemOrder) IsMatched() bool
- func (order *MemOrder) OpenQuantity() sdk.Dec
- func (order *MemOrder) Order() Order
- func (order *MemOrder) OrdererAddress() sdk.AccAddress
- func (order *MemOrder) Paid() sdk.Dec
- func (order *MemOrder) PaidWithoutFee() sdk.Dec
- func (order *MemOrder) Price() sdk.Dec
- func (order *MemOrder) Quantity() sdk.Dec
- func (order *MemOrder) Received() sdk.Dec
- func (order *MemOrder) RemainingDeposit() sdk.Dec
- func (order *MemOrder) Source() OrderSource
- func (order *MemOrder) String() string
- func (order *MemOrder) Type() MemOrderType
- type MemOrderBookPriceLevel
- type MemOrderBookSide
- type MemOrderBookSideOptions
- type MemOrderGroup
- type MemOrderType
- type MockOrderSource
- type MsgCancelAllOrders
- func (*MsgCancelAllOrders) Descriptor() ([]byte, []int)
- func (msg MsgCancelAllOrders) GetSignBytes() []byte
- func (msg MsgCancelAllOrders) GetSigners() []sdk.AccAddress
- func (m *MsgCancelAllOrders) Marshal() (dAtA []byte, err error)
- func (m *MsgCancelAllOrders) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCancelAllOrders) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCancelAllOrders) ProtoMessage()
- func (m *MsgCancelAllOrders) Reset()
- func (msg MsgCancelAllOrders) Route() string
- func (m *MsgCancelAllOrders) Size() (n int)
- func (m *MsgCancelAllOrders) String() string
- func (msg MsgCancelAllOrders) Type() string
- func (m *MsgCancelAllOrders) Unmarshal(dAtA []byte) error
- func (msg MsgCancelAllOrders) ValidateBasic() error
- func (m *MsgCancelAllOrders) XXX_DiscardUnknown()
- func (m *MsgCancelAllOrders) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCancelAllOrders) XXX_Merge(src proto.Message)
- func (m *MsgCancelAllOrders) XXX_Size() int
- func (m *MsgCancelAllOrders) XXX_Unmarshal(b []byte) error
- type MsgCancelAllOrdersResponse
- func (*MsgCancelAllOrdersResponse) Descriptor() ([]byte, []int)
- func (m *MsgCancelAllOrdersResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCancelAllOrdersResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCancelAllOrdersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCancelAllOrdersResponse) ProtoMessage()
- func (m *MsgCancelAllOrdersResponse) Reset()
- func (m *MsgCancelAllOrdersResponse) Size() (n int)
- func (m *MsgCancelAllOrdersResponse) String() string
- func (m *MsgCancelAllOrdersResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCancelAllOrdersResponse) XXX_DiscardUnknown()
- func (m *MsgCancelAllOrdersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCancelAllOrdersResponse) XXX_Merge(src proto.Message)
- func (m *MsgCancelAllOrdersResponse) XXX_Size() int
- func (m *MsgCancelAllOrdersResponse) XXX_Unmarshal(b []byte) error
- type MsgCancelOrder
- func (*MsgCancelOrder) Descriptor() ([]byte, []int)
- func (msg MsgCancelOrder) GetSignBytes() []byte
- func (msg MsgCancelOrder) GetSigners() []sdk.AccAddress
- func (m *MsgCancelOrder) Marshal() (dAtA []byte, err error)
- func (m *MsgCancelOrder) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCancelOrder) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCancelOrder) ProtoMessage()
- func (m *MsgCancelOrder) Reset()
- func (msg MsgCancelOrder) Route() string
- func (m *MsgCancelOrder) Size() (n int)
- func (m *MsgCancelOrder) String() string
- func (msg MsgCancelOrder) Type() string
- func (m *MsgCancelOrder) Unmarshal(dAtA []byte) error
- func (msg MsgCancelOrder) ValidateBasic() error
- func (m *MsgCancelOrder) XXX_DiscardUnknown()
- func (m *MsgCancelOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCancelOrder) XXX_Merge(src proto.Message)
- func (m *MsgCancelOrder) XXX_Size() int
- func (m *MsgCancelOrder) XXX_Unmarshal(b []byte) error
- type MsgCancelOrderResponse
- func (*MsgCancelOrderResponse) Descriptor() ([]byte, []int)
- func (m *MsgCancelOrderResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCancelOrderResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCancelOrderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCancelOrderResponse) ProtoMessage()
- func (m *MsgCancelOrderResponse) Reset()
- func (m *MsgCancelOrderResponse) Size() (n int)
- func (m *MsgCancelOrderResponse) String() string
- func (m *MsgCancelOrderResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCancelOrderResponse) XXX_DiscardUnknown()
- func (m *MsgCancelOrderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCancelOrderResponse) XXX_Merge(src proto.Message)
- func (m *MsgCancelOrderResponse) XXX_Size() int
- func (m *MsgCancelOrderResponse) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgCreateMarket
- func (*MsgCreateMarket) Descriptor() ([]byte, []int)
- func (msg MsgCreateMarket) GetSignBytes() []byte
- func (msg MsgCreateMarket) GetSigners() []sdk.AccAddress
- func (m *MsgCreateMarket) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateMarket) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateMarket) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateMarket) ProtoMessage()
- func (m *MsgCreateMarket) Reset()
- func (msg MsgCreateMarket) Route() string
- func (m *MsgCreateMarket) Size() (n int)
- func (m *MsgCreateMarket) String() string
- func (msg MsgCreateMarket) Type() string
- func (m *MsgCreateMarket) Unmarshal(dAtA []byte) error
- func (msg MsgCreateMarket) ValidateBasic() error
- func (m *MsgCreateMarket) XXX_DiscardUnknown()
- func (m *MsgCreateMarket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateMarket) XXX_Merge(src proto.Message)
- func (m *MsgCreateMarket) XXX_Size() int
- func (m *MsgCreateMarket) XXX_Unmarshal(b []byte) error
- type MsgCreateMarketResponse
- func (*MsgCreateMarketResponse) Descriptor() ([]byte, []int)
- func (m *MsgCreateMarketResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateMarketResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateMarketResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateMarketResponse) ProtoMessage()
- func (m *MsgCreateMarketResponse) Reset()
- func (m *MsgCreateMarketResponse) Size() (n int)
- func (m *MsgCreateMarketResponse) String() string
- func (m *MsgCreateMarketResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCreateMarketResponse) XXX_DiscardUnknown()
- func (m *MsgCreateMarketResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateMarketResponse) XXX_Merge(src proto.Message)
- func (m *MsgCreateMarketResponse) XXX_Size() int
- func (m *MsgCreateMarketResponse) XXX_Unmarshal(b []byte) error
- type MsgPlaceBatchLimitOrder
- func (*MsgPlaceBatchLimitOrder) Descriptor() ([]byte, []int)
- func (msg MsgPlaceBatchLimitOrder) GetSignBytes() []byte
- func (msg MsgPlaceBatchLimitOrder) GetSigners() []sdk.AccAddress
- func (m *MsgPlaceBatchLimitOrder) Marshal() (dAtA []byte, err error)
- func (m *MsgPlaceBatchLimitOrder) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgPlaceBatchLimitOrder) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgPlaceBatchLimitOrder) ProtoMessage()
- func (m *MsgPlaceBatchLimitOrder) Reset()
- func (msg MsgPlaceBatchLimitOrder) Route() string
- func (m *MsgPlaceBatchLimitOrder) Size() (n int)
- func (m *MsgPlaceBatchLimitOrder) String() string
- func (msg MsgPlaceBatchLimitOrder) Type() string
- func (m *MsgPlaceBatchLimitOrder) Unmarshal(dAtA []byte) error
- func (msg MsgPlaceBatchLimitOrder) ValidateBasic() error
- func (m *MsgPlaceBatchLimitOrder) XXX_DiscardUnknown()
- func (m *MsgPlaceBatchLimitOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgPlaceBatchLimitOrder) XXX_Merge(src proto.Message)
- func (m *MsgPlaceBatchLimitOrder) XXX_Size() int
- func (m *MsgPlaceBatchLimitOrder) XXX_Unmarshal(b []byte) error
- type MsgPlaceBatchLimitOrderResponse
- func (*MsgPlaceBatchLimitOrderResponse) Descriptor() ([]byte, []int)
- func (m *MsgPlaceBatchLimitOrderResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgPlaceBatchLimitOrderResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgPlaceBatchLimitOrderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgPlaceBatchLimitOrderResponse) ProtoMessage()
- func (m *MsgPlaceBatchLimitOrderResponse) Reset()
- func (m *MsgPlaceBatchLimitOrderResponse) Size() (n int)
- func (m *MsgPlaceBatchLimitOrderResponse) String() string
- func (m *MsgPlaceBatchLimitOrderResponse) Unmarshal(dAtA []byte) error
- func (m *MsgPlaceBatchLimitOrderResponse) XXX_DiscardUnknown()
- func (m *MsgPlaceBatchLimitOrderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgPlaceBatchLimitOrderResponse) XXX_Merge(src proto.Message)
- func (m *MsgPlaceBatchLimitOrderResponse) XXX_Size() int
- func (m *MsgPlaceBatchLimitOrderResponse) XXX_Unmarshal(b []byte) error
- type MsgPlaceLimitOrder
- func (*MsgPlaceLimitOrder) Descriptor() ([]byte, []int)
- func (msg MsgPlaceLimitOrder) GetSignBytes() []byte
- func (msg MsgPlaceLimitOrder) GetSigners() []sdk.AccAddress
- func (m *MsgPlaceLimitOrder) Marshal() (dAtA []byte, err error)
- func (m *MsgPlaceLimitOrder) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgPlaceLimitOrder) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgPlaceLimitOrder) ProtoMessage()
- func (m *MsgPlaceLimitOrder) Reset()
- func (msg MsgPlaceLimitOrder) Route() string
- func (m *MsgPlaceLimitOrder) Size() (n int)
- func (m *MsgPlaceLimitOrder) String() string
- func (msg MsgPlaceLimitOrder) Type() string
- func (m *MsgPlaceLimitOrder) Unmarshal(dAtA []byte) error
- func (msg MsgPlaceLimitOrder) ValidateBasic() error
- func (m *MsgPlaceLimitOrder) XXX_DiscardUnknown()
- func (m *MsgPlaceLimitOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgPlaceLimitOrder) XXX_Merge(src proto.Message)
- func (m *MsgPlaceLimitOrder) XXX_Size() int
- func (m *MsgPlaceLimitOrder) XXX_Unmarshal(b []byte) error
- type MsgPlaceLimitOrderResponse
- func (*MsgPlaceLimitOrderResponse) Descriptor() ([]byte, []int)
- func (m *MsgPlaceLimitOrderResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgPlaceLimitOrderResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgPlaceLimitOrderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgPlaceLimitOrderResponse) ProtoMessage()
- func (m *MsgPlaceLimitOrderResponse) Reset()
- func (m *MsgPlaceLimitOrderResponse) Size() (n int)
- func (m *MsgPlaceLimitOrderResponse) String() string
- func (m *MsgPlaceLimitOrderResponse) Unmarshal(dAtA []byte) error
- func (m *MsgPlaceLimitOrderResponse) XXX_DiscardUnknown()
- func (m *MsgPlaceLimitOrderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgPlaceLimitOrderResponse) XXX_Merge(src proto.Message)
- func (m *MsgPlaceLimitOrderResponse) XXX_Size() int
- func (m *MsgPlaceLimitOrderResponse) XXX_Unmarshal(b []byte) error
- type MsgPlaceMMBatchLimitOrder
- func (*MsgPlaceMMBatchLimitOrder) Descriptor() ([]byte, []int)
- func (msg MsgPlaceMMBatchLimitOrder) GetSignBytes() []byte
- func (msg MsgPlaceMMBatchLimitOrder) GetSigners() []sdk.AccAddress
- func (m *MsgPlaceMMBatchLimitOrder) Marshal() (dAtA []byte, err error)
- func (m *MsgPlaceMMBatchLimitOrder) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgPlaceMMBatchLimitOrder) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgPlaceMMBatchLimitOrder) ProtoMessage()
- func (m *MsgPlaceMMBatchLimitOrder) Reset()
- func (msg MsgPlaceMMBatchLimitOrder) Route() string
- func (m *MsgPlaceMMBatchLimitOrder) Size() (n int)
- func (m *MsgPlaceMMBatchLimitOrder) String() string
- func (msg MsgPlaceMMBatchLimitOrder) Type() string
- func (m *MsgPlaceMMBatchLimitOrder) Unmarshal(dAtA []byte) error
- func (msg MsgPlaceMMBatchLimitOrder) ValidateBasic() error
- func (m *MsgPlaceMMBatchLimitOrder) XXX_DiscardUnknown()
- func (m *MsgPlaceMMBatchLimitOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgPlaceMMBatchLimitOrder) XXX_Merge(src proto.Message)
- func (m *MsgPlaceMMBatchLimitOrder) XXX_Size() int
- func (m *MsgPlaceMMBatchLimitOrder) XXX_Unmarshal(b []byte) error
- type MsgPlaceMMBatchLimitOrderResponse
- func (*MsgPlaceMMBatchLimitOrderResponse) Descriptor() ([]byte, []int)
- func (m *MsgPlaceMMBatchLimitOrderResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgPlaceMMBatchLimitOrderResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgPlaceMMBatchLimitOrderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgPlaceMMBatchLimitOrderResponse) ProtoMessage()
- func (m *MsgPlaceMMBatchLimitOrderResponse) Reset()
- func (m *MsgPlaceMMBatchLimitOrderResponse) Size() (n int)
- func (m *MsgPlaceMMBatchLimitOrderResponse) String() string
- func (m *MsgPlaceMMBatchLimitOrderResponse) Unmarshal(dAtA []byte) error
- func (m *MsgPlaceMMBatchLimitOrderResponse) XXX_DiscardUnknown()
- func (m *MsgPlaceMMBatchLimitOrderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgPlaceMMBatchLimitOrderResponse) XXX_Merge(src proto.Message)
- func (m *MsgPlaceMMBatchLimitOrderResponse) XXX_Size() int
- func (m *MsgPlaceMMBatchLimitOrderResponse) XXX_Unmarshal(b []byte) error
- type MsgPlaceMMLimitOrder
- func (*MsgPlaceMMLimitOrder) Descriptor() ([]byte, []int)
- func (msg MsgPlaceMMLimitOrder) GetSignBytes() []byte
- func (msg MsgPlaceMMLimitOrder) GetSigners() []sdk.AccAddress
- func (m *MsgPlaceMMLimitOrder) Marshal() (dAtA []byte, err error)
- func (m *MsgPlaceMMLimitOrder) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgPlaceMMLimitOrder) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgPlaceMMLimitOrder) ProtoMessage()
- func (m *MsgPlaceMMLimitOrder) Reset()
- func (msg MsgPlaceMMLimitOrder) Route() string
- func (m *MsgPlaceMMLimitOrder) Size() (n int)
- func (m *MsgPlaceMMLimitOrder) String() string
- func (msg MsgPlaceMMLimitOrder) Type() string
- func (m *MsgPlaceMMLimitOrder) Unmarshal(dAtA []byte) error
- func (msg MsgPlaceMMLimitOrder) ValidateBasic() error
- func (m *MsgPlaceMMLimitOrder) XXX_DiscardUnknown()
- func (m *MsgPlaceMMLimitOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgPlaceMMLimitOrder) XXX_Merge(src proto.Message)
- func (m *MsgPlaceMMLimitOrder) XXX_Size() int
- func (m *MsgPlaceMMLimitOrder) XXX_Unmarshal(b []byte) error
- type MsgPlaceMMLimitOrderResponse
- func (*MsgPlaceMMLimitOrderResponse) Descriptor() ([]byte, []int)
- func (m *MsgPlaceMMLimitOrderResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgPlaceMMLimitOrderResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgPlaceMMLimitOrderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgPlaceMMLimitOrderResponse) ProtoMessage()
- func (m *MsgPlaceMMLimitOrderResponse) Reset()
- func (m *MsgPlaceMMLimitOrderResponse) Size() (n int)
- func (m *MsgPlaceMMLimitOrderResponse) String() string
- func (m *MsgPlaceMMLimitOrderResponse) Unmarshal(dAtA []byte) error
- func (m *MsgPlaceMMLimitOrderResponse) XXX_DiscardUnknown()
- func (m *MsgPlaceMMLimitOrderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgPlaceMMLimitOrderResponse) XXX_Merge(src proto.Message)
- func (m *MsgPlaceMMLimitOrderResponse) XXX_Size() int
- func (m *MsgPlaceMMLimitOrderResponse) XXX_Unmarshal(b []byte) error
- type MsgPlaceMarketOrder
- func (*MsgPlaceMarketOrder) Descriptor() ([]byte, []int)
- func (msg MsgPlaceMarketOrder) GetSignBytes() []byte
- func (msg MsgPlaceMarketOrder) GetSigners() []sdk.AccAddress
- func (m *MsgPlaceMarketOrder) Marshal() (dAtA []byte, err error)
- func (m *MsgPlaceMarketOrder) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgPlaceMarketOrder) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgPlaceMarketOrder) ProtoMessage()
- func (m *MsgPlaceMarketOrder) Reset()
- func (msg MsgPlaceMarketOrder) Route() string
- func (m *MsgPlaceMarketOrder) Size() (n int)
- func (m *MsgPlaceMarketOrder) String() string
- func (msg MsgPlaceMarketOrder) Type() string
- func (m *MsgPlaceMarketOrder) Unmarshal(dAtA []byte) error
- func (msg MsgPlaceMarketOrder) ValidateBasic() error
- func (m *MsgPlaceMarketOrder) XXX_DiscardUnknown()
- func (m *MsgPlaceMarketOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgPlaceMarketOrder) XXX_Merge(src proto.Message)
- func (m *MsgPlaceMarketOrder) XXX_Size() int
- func (m *MsgPlaceMarketOrder) XXX_Unmarshal(b []byte) error
- type MsgPlaceMarketOrderResponse
- func (*MsgPlaceMarketOrderResponse) Descriptor() ([]byte, []int)
- func (m *MsgPlaceMarketOrderResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgPlaceMarketOrderResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgPlaceMarketOrderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgPlaceMarketOrderResponse) ProtoMessage()
- func (m *MsgPlaceMarketOrderResponse) Reset()
- func (m *MsgPlaceMarketOrderResponse) Size() (n int)
- func (m *MsgPlaceMarketOrderResponse) String() string
- func (m *MsgPlaceMarketOrderResponse) Unmarshal(dAtA []byte) error
- func (m *MsgPlaceMarketOrderResponse) XXX_DiscardUnknown()
- func (m *MsgPlaceMarketOrderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgPlaceMarketOrderResponse) XXX_Merge(src proto.Message)
- func (m *MsgPlaceMarketOrderResponse) XXX_Size() int
- func (m *MsgPlaceMarketOrderResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgSwapExactAmountIn
- func (*MsgSwapExactAmountIn) Descriptor() ([]byte, []int)
- func (msg MsgSwapExactAmountIn) GetSignBytes() []byte
- func (msg MsgSwapExactAmountIn) GetSigners() []sdk.AccAddress
- func (m *MsgSwapExactAmountIn) Marshal() (dAtA []byte, err error)
- func (m *MsgSwapExactAmountIn) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSwapExactAmountIn) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSwapExactAmountIn) ProtoMessage()
- func (m *MsgSwapExactAmountIn) Reset()
- func (msg MsgSwapExactAmountIn) Route() string
- func (m *MsgSwapExactAmountIn) Size() (n int)
- func (m *MsgSwapExactAmountIn) String() string
- func (msg MsgSwapExactAmountIn) Type() string
- func (m *MsgSwapExactAmountIn) Unmarshal(dAtA []byte) error
- func (msg MsgSwapExactAmountIn) ValidateBasic() error
- func (m *MsgSwapExactAmountIn) XXX_DiscardUnknown()
- func (m *MsgSwapExactAmountIn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSwapExactAmountIn) XXX_Merge(src proto.Message)
- func (m *MsgSwapExactAmountIn) XXX_Size() int
- func (m *MsgSwapExactAmountIn) XXX_Unmarshal(b []byte) error
- type MsgSwapExactAmountInResponse
- func (*MsgSwapExactAmountInResponse) Descriptor() ([]byte, []int)
- func (m *MsgSwapExactAmountInResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgSwapExactAmountInResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSwapExactAmountInResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSwapExactAmountInResponse) ProtoMessage()
- func (m *MsgSwapExactAmountInResponse) Reset()
- func (m *MsgSwapExactAmountInResponse) Size() (n int)
- func (m *MsgSwapExactAmountInResponse) String() string
- func (m *MsgSwapExactAmountInResponse) Unmarshal(dAtA []byte) error
- func (m *MsgSwapExactAmountInResponse) XXX_DiscardUnknown()
- func (m *MsgSwapExactAmountInResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSwapExactAmountInResponse) XXX_Merge(src proto.Message)
- func (m *MsgSwapExactAmountInResponse) XXX_Size() int
- func (m *MsgSwapExactAmountInResponse) XXX_Unmarshal(b []byte) error
- type NumMMOrdersRecord
- func (*NumMMOrdersRecord) Descriptor() ([]byte, []int)
- func (m *NumMMOrdersRecord) Marshal() (dAtA []byte, err error)
- func (m *NumMMOrdersRecord) MarshalTo(dAtA []byte) (int, error)
- func (m *NumMMOrdersRecord) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*NumMMOrdersRecord) ProtoMessage()
- func (m *NumMMOrdersRecord) Reset()
- func (m *NumMMOrdersRecord) Size() (n int)
- func (m *NumMMOrdersRecord) String() string
- func (m *NumMMOrdersRecord) Unmarshal(dAtA []byte) error
- func (record NumMMOrdersRecord) Validate() error
- func (m *NumMMOrdersRecord) XXX_DiscardUnknown()
- func (m *NumMMOrdersRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *NumMMOrdersRecord) XXX_Merge(src proto.Message)
- func (m *NumMMOrdersRecord) XXX_Size() int
- func (m *NumMMOrdersRecord) XXX_Unmarshal(b []byte) error
- type Order
- func (*Order) Descriptor() ([]byte, []int)
- func (order Order) ExecutableQuantity() sdk.Dec
- func (m *Order) Marshal() (dAtA []byte, err error)
- func (m *Order) MarshalTo(dAtA []byte) (int, error)
- func (m *Order) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (order Order) MustGetOrdererAddress() sdk.AccAddress
- func (*Order) ProtoMessage()
- func (m *Order) Reset()
- func (m *Order) Size() (n int)
- func (m *Order) String() string
- func (m *Order) Unmarshal(dAtA []byte) error
- func (order Order) Validate() error
- func (m *Order) XXX_DiscardUnknown()
- func (m *Order) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Order) XXX_Merge(src proto.Message)
- func (m *Order) XXX_Size() int
- func (m *Order) XXX_Unmarshal(b []byte) error
- type OrderBook
- func (*OrderBook) Descriptor() ([]byte, []int)
- func (m *OrderBook) Marshal() (dAtA []byte, err error)
- func (m *OrderBook) MarshalTo(dAtA []byte) (int, error)
- func (m *OrderBook) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*OrderBook) ProtoMessage()
- func (m *OrderBook) Reset()
- func (m *OrderBook) Size() (n int)
- func (m *OrderBook) String() string
- func (m *OrderBook) Unmarshal(dAtA []byte) error
- func (m *OrderBook) XXX_DiscardUnknown()
- func (m *OrderBook) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *OrderBook) XXX_Merge(src proto.Message)
- func (m *OrderBook) XXX_Size() int
- func (m *OrderBook) XXX_Unmarshal(b []byte) error
- type OrderBookPriceLevel
- func (*OrderBookPriceLevel) Descriptor() ([]byte, []int)
- func (m *OrderBookPriceLevel) Marshal() (dAtA []byte, err error)
- func (m *OrderBookPriceLevel) MarshalTo(dAtA []byte) (int, error)
- func (m *OrderBookPriceLevel) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*OrderBookPriceLevel) ProtoMessage()
- func (m *OrderBookPriceLevel) Reset()
- func (m *OrderBookPriceLevel) Size() (n int)
- func (m *OrderBookPriceLevel) String() string
- func (m *OrderBookPriceLevel) Unmarshal(dAtA []byte) error
- func (m *OrderBookPriceLevel) XXX_DiscardUnknown()
- func (m *OrderBookPriceLevel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *OrderBookPriceLevel) XXX_Merge(src proto.Message)
- func (m *OrderBookPriceLevel) XXX_Size() int
- func (m *OrderBookPriceLevel) XXX_Unmarshal(b []byte) error
- type OrderSource
- type OrderType
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (params *Params) ParamSetPairs() paramstypes.ParamSetPairs
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (m *Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (params Params) Validate() error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type QueryAllMarketsRequest
- func (*QueryAllMarketsRequest) Descriptor() ([]byte, []int)
- func (m *QueryAllMarketsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAllMarketsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllMarketsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllMarketsRequest) ProtoMessage()
- func (m *QueryAllMarketsRequest) Reset()
- func (m *QueryAllMarketsRequest) Size() (n int)
- func (m *QueryAllMarketsRequest) String() string
- func (m *QueryAllMarketsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAllMarketsRequest) XXX_DiscardUnknown()
- func (m *QueryAllMarketsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllMarketsRequest) XXX_Merge(src proto.Message)
- func (m *QueryAllMarketsRequest) XXX_Size() int
- func (m *QueryAllMarketsRequest) XXX_Unmarshal(b []byte) error
- type QueryAllMarketsResponse
- func (*QueryAllMarketsResponse) Descriptor() ([]byte, []int)
- func (m *QueryAllMarketsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAllMarketsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllMarketsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllMarketsResponse) ProtoMessage()
- func (m *QueryAllMarketsResponse) Reset()
- func (m *QueryAllMarketsResponse) Size() (n int)
- func (m *QueryAllMarketsResponse) String() string
- func (m *QueryAllMarketsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAllMarketsResponse) XXX_DiscardUnknown()
- func (m *QueryAllMarketsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllMarketsResponse) XXX_Merge(src proto.Message)
- func (m *QueryAllMarketsResponse) XXX_Size() int
- func (m *QueryAllMarketsResponse) XXX_Unmarshal(b []byte) error
- type QueryAllOrdersRequest
- func (*QueryAllOrdersRequest) Descriptor() ([]byte, []int)
- func (m *QueryAllOrdersRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAllOrdersRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllOrdersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllOrdersRequest) ProtoMessage()
- func (m *QueryAllOrdersRequest) Reset()
- func (m *QueryAllOrdersRequest) Size() (n int)
- func (m *QueryAllOrdersRequest) String() string
- func (m *QueryAllOrdersRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAllOrdersRequest) XXX_DiscardUnknown()
- func (m *QueryAllOrdersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllOrdersRequest) XXX_Merge(src proto.Message)
- func (m *QueryAllOrdersRequest) XXX_Size() int
- func (m *QueryAllOrdersRequest) XXX_Unmarshal(b []byte) error
- type QueryAllOrdersResponse
- func (*QueryAllOrdersResponse) Descriptor() ([]byte, []int)
- func (m *QueryAllOrdersResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAllOrdersResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllOrdersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllOrdersResponse) ProtoMessage()
- func (m *QueryAllOrdersResponse) Reset()
- func (m *QueryAllOrdersResponse) Size() (n int)
- func (m *QueryAllOrdersResponse) String() string
- func (m *QueryAllOrdersResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAllOrdersResponse) XXX_DiscardUnknown()
- func (m *QueryAllOrdersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllOrdersResponse) XXX_Merge(src proto.Message)
- func (m *QueryAllOrdersResponse) XXX_Size() int
- func (m *QueryAllOrdersResponse) XXX_Unmarshal(b []byte) error
- type QueryBestSwapExactAmountInRoutesRequest
- func (*QueryBestSwapExactAmountInRoutesRequest) Descriptor() ([]byte, []int)
- func (m *QueryBestSwapExactAmountInRoutesRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryBestSwapExactAmountInRoutesRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryBestSwapExactAmountInRoutesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryBestSwapExactAmountInRoutesRequest) ProtoMessage()
- func (m *QueryBestSwapExactAmountInRoutesRequest) Reset()
- func (m *QueryBestSwapExactAmountInRoutesRequest) Size() (n int)
- func (m *QueryBestSwapExactAmountInRoutesRequest) String() string
- func (m *QueryBestSwapExactAmountInRoutesRequest) Unmarshal(dAtA []byte) error
- func (m *QueryBestSwapExactAmountInRoutesRequest) XXX_DiscardUnknown()
- func (m *QueryBestSwapExactAmountInRoutesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryBestSwapExactAmountInRoutesRequest) XXX_Merge(src proto.Message)
- func (m *QueryBestSwapExactAmountInRoutesRequest) XXX_Size() int
- func (m *QueryBestSwapExactAmountInRoutesRequest) XXX_Unmarshal(b []byte) error
- type QueryBestSwapExactAmountInRoutesResponse
- func (*QueryBestSwapExactAmountInRoutesResponse) Descriptor() ([]byte, []int)
- func (m *QueryBestSwapExactAmountInRoutesResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryBestSwapExactAmountInRoutesResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryBestSwapExactAmountInRoutesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryBestSwapExactAmountInRoutesResponse) ProtoMessage()
- func (m *QueryBestSwapExactAmountInRoutesResponse) Reset()
- func (m *QueryBestSwapExactAmountInRoutesResponse) Size() (n int)
- func (m *QueryBestSwapExactAmountInRoutesResponse) String() string
- func (m *QueryBestSwapExactAmountInRoutesResponse) Unmarshal(dAtA []byte) error
- func (m *QueryBestSwapExactAmountInRoutesResponse) XXX_DiscardUnknown()
- func (m *QueryBestSwapExactAmountInRoutesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryBestSwapExactAmountInRoutesResponse) XXX_Merge(src proto.Message)
- func (m *QueryBestSwapExactAmountInRoutesResponse) XXX_Size() int
- func (m *QueryBestSwapExactAmountInRoutesResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryMarketRequest
- func (*QueryMarketRequest) Descriptor() ([]byte, []int)
- func (m *QueryMarketRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryMarketRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryMarketRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryMarketRequest) ProtoMessage()
- func (m *QueryMarketRequest) Reset()
- func (m *QueryMarketRequest) Size() (n int)
- func (m *QueryMarketRequest) String() string
- func (m *QueryMarketRequest) Unmarshal(dAtA []byte) error
- func (m *QueryMarketRequest) XXX_DiscardUnknown()
- func (m *QueryMarketRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryMarketRequest) XXX_Merge(src proto.Message)
- func (m *QueryMarketRequest) XXX_Size() int
- func (m *QueryMarketRequest) XXX_Unmarshal(b []byte) error
- type QueryMarketResponse
- func (*QueryMarketResponse) Descriptor() ([]byte, []int)
- func (m *QueryMarketResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryMarketResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryMarketResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryMarketResponse) ProtoMessage()
- func (m *QueryMarketResponse) Reset()
- func (m *QueryMarketResponse) Size() (n int)
- func (m *QueryMarketResponse) String() string
- func (m *QueryMarketResponse) Unmarshal(dAtA []byte) error
- func (m *QueryMarketResponse) XXX_DiscardUnknown()
- func (m *QueryMarketResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryMarketResponse) XXX_Merge(src proto.Message)
- func (m *QueryMarketResponse) XXX_Size() int
- func (m *QueryMarketResponse) XXX_Unmarshal(b []byte) error
- type QueryOrderBookRequest
- func (*QueryOrderBookRequest) Descriptor() ([]byte, []int)
- func (m *QueryOrderBookRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryOrderBookRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryOrderBookRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryOrderBookRequest) ProtoMessage()
- func (m *QueryOrderBookRequest) Reset()
- func (m *QueryOrderBookRequest) Size() (n int)
- func (m *QueryOrderBookRequest) String() string
- func (m *QueryOrderBookRequest) Unmarshal(dAtA []byte) error
- func (m *QueryOrderBookRequest) XXX_DiscardUnknown()
- func (m *QueryOrderBookRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryOrderBookRequest) XXX_Merge(src proto.Message)
- func (m *QueryOrderBookRequest) XXX_Size() int
- func (m *QueryOrderBookRequest) XXX_Unmarshal(b []byte) error
- type QueryOrderBookResponse
- func (*QueryOrderBookResponse) Descriptor() ([]byte, []int)
- func (m *QueryOrderBookResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryOrderBookResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryOrderBookResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryOrderBookResponse) ProtoMessage()
- func (m *QueryOrderBookResponse) Reset()
- func (m *QueryOrderBookResponse) Size() (n int)
- func (m *QueryOrderBookResponse) String() string
- func (m *QueryOrderBookResponse) Unmarshal(dAtA []byte) error
- func (m *QueryOrderBookResponse) XXX_DiscardUnknown()
- func (m *QueryOrderBookResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryOrderBookResponse) XXX_Merge(src proto.Message)
- func (m *QueryOrderBookResponse) XXX_Size() int
- func (m *QueryOrderBookResponse) XXX_Unmarshal(b []byte) error
- type QueryOrderRequest
- func (*QueryOrderRequest) Descriptor() ([]byte, []int)
- func (m *QueryOrderRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryOrderRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryOrderRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryOrderRequest) ProtoMessage()
- func (m *QueryOrderRequest) Reset()
- func (m *QueryOrderRequest) Size() (n int)
- func (m *QueryOrderRequest) String() string
- func (m *QueryOrderRequest) Unmarshal(dAtA []byte) error
- func (m *QueryOrderRequest) XXX_DiscardUnknown()
- func (m *QueryOrderRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryOrderRequest) XXX_Merge(src proto.Message)
- func (m *QueryOrderRequest) XXX_Size() int
- func (m *QueryOrderRequest) XXX_Unmarshal(b []byte) error
- type QueryOrderResponse
- func (*QueryOrderResponse) Descriptor() ([]byte, []int)
- func (m *QueryOrderResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryOrderResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryOrderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryOrderResponse) ProtoMessage()
- func (m *QueryOrderResponse) Reset()
- func (m *QueryOrderResponse) Size() (n int)
- func (m *QueryOrderResponse) String() string
- func (m *QueryOrderResponse) Unmarshal(dAtA []byte) error
- func (m *QueryOrderResponse) XXX_DiscardUnknown()
- func (m *QueryOrderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryOrderResponse) XXX_Merge(src proto.Message)
- func (m *QueryOrderResponse) XXX_Size() int
- func (m *QueryOrderResponse) XXX_Unmarshal(b []byte) error
- type QueryParamsRequest
- func (*QueryParamsRequest) Descriptor() ([]byte, []int)
- func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsRequest) ProtoMessage()
- func (m *QueryParamsRequest) Reset()
- func (m *QueryParamsRequest) Size() (n int)
- func (m *QueryParamsRequest) String() string
- func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryParamsRequest) XXX_DiscardUnknown()
- func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
- func (m *QueryParamsRequest) XXX_Size() int
- func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)
- func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsResponse) ProtoMessage()
- func (m *QueryParamsResponse) Reset()
- func (m *QueryParamsResponse) Size() (n int)
- func (m *QueryParamsResponse) String() string
- func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryParamsResponse) XXX_DiscardUnknown()
- func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
- func (m *QueryParamsResponse) XXX_Size() int
- func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type SwapRouteResult
- func (*SwapRouteResult) Descriptor() ([]byte, []int)
- func (m *SwapRouteResult) Marshal() (dAtA []byte, err error)
- func (m *SwapRouteResult) MarshalTo(dAtA []byte) (int, error)
- func (m *SwapRouteResult) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SwapRouteResult) ProtoMessage()
- func (m *SwapRouteResult) Reset()
- func (m *SwapRouteResult) Size() (n int)
- func (m *SwapRouteResult) String() string
- func (m *SwapRouteResult) Unmarshal(dAtA []byte) error
- func (m *SwapRouteResult) XXX_DiscardUnknown()
- func (m *SwapRouteResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SwapRouteResult) XXX_Merge(src proto.Message)
- func (m *SwapRouteResult) XXX_Size() int
- func (m *SwapRouteResult) XXX_Unmarshal(b []byte) error
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) CancelAllOrders(ctx context.Context, req *MsgCancelAllOrders) (*MsgCancelAllOrdersResponse, error)
- func (*UnimplementedMsgServer) CancelOrder(ctx context.Context, req *MsgCancelOrder) (*MsgCancelOrderResponse, error)
- func (*UnimplementedMsgServer) CreateMarket(ctx context.Context, req *MsgCreateMarket) (*MsgCreateMarketResponse, error)
- func (*UnimplementedMsgServer) PlaceBatchLimitOrder(ctx context.Context, req *MsgPlaceBatchLimitOrder) (*MsgPlaceBatchLimitOrderResponse, error)
- func (*UnimplementedMsgServer) PlaceLimitOrder(ctx context.Context, req *MsgPlaceLimitOrder) (*MsgPlaceLimitOrderResponse, error)
- func (*UnimplementedMsgServer) PlaceMMBatchLimitOrder(ctx context.Context, req *MsgPlaceMMBatchLimitOrder) (*MsgPlaceMMBatchLimitOrderResponse, error)
- func (*UnimplementedMsgServer) PlaceMMLimitOrder(ctx context.Context, req *MsgPlaceMMLimitOrder) (*MsgPlaceMMLimitOrderResponse, error)
- func (*UnimplementedMsgServer) PlaceMarketOrder(ctx context.Context, req *MsgPlaceMarketOrder) (*MsgPlaceMarketOrderResponse, error)
- func (*UnimplementedMsgServer) SwapExactAmountIn(ctx context.Context, req *MsgSwapExactAmountIn) (*MsgSwapExactAmountInResponse, error)
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) AllMarkets(ctx context.Context, req *QueryAllMarketsRequest) (*QueryAllMarketsResponse, error)
- func (*UnimplementedQueryServer) AllOrders(ctx context.Context, req *QueryAllOrdersRequest) (*QueryAllOrdersResponse, error)
- func (*UnimplementedQueryServer) BestSwapExactAmountInRoutes(ctx context.Context, req *QueryBestSwapExactAmountInRoutesRequest) (*QueryBestSwapExactAmountInRoutesResponse, error)
- func (*UnimplementedQueryServer) Market(ctx context.Context, req *QueryMarketRequest) (*QueryMarketResponse, error)
- func (*UnimplementedQueryServer) Order(ctx context.Context, req *QueryOrderRequest) (*QueryOrderResponse, error)
- func (*UnimplementedQueryServer) OrderBook(ctx context.Context, req *QueryOrderBookRequest) (*QueryOrderBookResponse, error)
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
Examples ¶
Constants ¶
const ( // ModuleName defines the module name ModuleName = "exchange" // StoreKey defines the primary module store key StoreKey = ModuleName // RouterKey is the message route for slashing RouterKey = ModuleName // QuerierRoute defines the module's query routing key QuerierRoute = ModuleName )
const ( TypeMsgCreateMarket = "create_market" TypeMsgPlaceLimitOrder = "place_limit_order" TypeMsgPlaceBatchLimitOrder = "place_batch_limit_order" TypeMsgPlaceMMLimitOrder = "place_mm_limit_order" TypeMsgPlaceMMBatchLimitOrder = "place_mm_batch_limit_order" TypeMsgPlaceMarketOrder = "place_market_order" TypeMsgCancelOrder = "cancel_order" TypeMsgCancelAllOrders = "cancel_all_orders" TypeMsgSwapExactAmountIn = "swap_exact_amount_in" )
Message types for the module
const (
ProposalTypeMarketParameterChange string = "MarketParameterChange"
)
const TickPrecision = 4
Variables ¶
var ( ErrSwapNotEnoughInput = sdkerrors.Register(ModuleName, 2, "not enough swap input amount") ErrSwapNotEnoughOutput = sdkerrors.Register(ModuleName, 3, "not enough swap output amount") ErrSwapNotEnoughLiquidity = sdkerrors.Register(ModuleName, 4, "not enough liquidity in the market") ErrOrderPriceOutOfRange = sdkerrors.Register(ModuleName, 5, "order price out of range") ErrMaxNumMMOrdersExceeded = sdkerrors.Register(ModuleName, 6, "number of MM orders exceeded the limit") )
var ( ErrInvalidLengthEvent = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowEvent = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupEvent = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthExchange = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowExchange = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupExchange = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( LastMarketIdKey = []byte{0x60} LastOrderIdKey = []byte{0x61} MarketKeyPrefix = []byte{0x62} MarketStateKeyPrefix = []byte{0x63} MarketByDenomsIndexKeyPrefix = []byte{0x64} OrderKeyPrefix = []byte{0x65} OrderBookOrderIndexKeyPrefix = []byte{0x66} OrdersByOrdererIndexKeyPrefix = []byte{0x67} NumMMOrdersKeyPrefix = []byte{0x68} )
var ( ErrInvalidLengthOrderBook = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowOrderBook = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupOrderBook = fmt.Errorf("proto: unexpected end of group") )
var ( KeyMarketCreationFee = []byte("MarketCreationFee") KeyFees = []byte("Fees") KeyMaxOrderLifespan = []byte("MaxOrderLifespan") KeyMaxOrderPriceRatio = []byte("MaxOrderPriceRatio") KeyMaxSwapRoutesLen = []byte("MaxSwapRoutesLen") KeyMaxNumMMOrders = []byte("MaxNumMMOrders") )
var ( DefaultMarketCreationFee = sdk.NewCoins(sdk.NewInt64Coin(sdk.DefaultBondDenom, 1000000)) DefaultFees = Fees{ DefaultMakerFeeRate: sdk.NewDecWithPrec(15, 4), DefaultTakerFeeRate: sdk.NewDecWithPrec(3, 3), DefaultOrderSourceFeeRatio: sdk.NewDecWithPrec(5, 1), } DefaultMaxOrderLifespan = 24 * time.Hour DefaultMaxOrderPriceRatio = sdk.NewDecWithPrec(1, 1) // 10% DefaultMaxSwapRoutesLen uint32 = 3 DefaultMaxNumMMOrders uint32 = 15 MinPrice = sdk.NewDecWithPrec(1, 14) MaxPrice = sdk.NewDecFromInt(sdk.NewIntWithDecimal(1, 40)) )
var ( ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthProposal = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowProposal = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupProposal = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
var (
ModuleCdc = codec.NewAminoCodec(amino)
)
var OrderType_name = map[int32]string{
0: "ORDER_TYPE_UNSPECIFIED",
1: "ORDER_TYPE_LIMIT",
2: "ORDER_TYPE_MM",
}
var OrderType_value = map[string]int32{
"ORDER_TYPE_UNSPECIFIED": 0,
"ORDER_TYPE_LIMIT": 1,
"ORDER_TYPE_MM": 2,
}
Functions ¶
func BytesToPrice ¶
func DeriveMarketEscrowAddress ¶
func DeriveMarketEscrowAddress(marketId uint64) sdk.AccAddress
func GetMarketKey ¶
func GetMarketStateKey ¶
func GetNumMMOrdersKey ¶
func GetNumMMOrdersKey(ordererAddr sdk.AccAddress, marketId uint64) []byte
func GetOrderKey ¶
func GetOrdersByOrdererAndMarketIteratorPrefix ¶
func GetOrdersByOrdererAndMarketIteratorPrefix(ordererAddr sdk.AccAddress, marketId uint64) []byte
func GetOrdersByOrdererIndexKey ¶
func GetOrdersByOrdererIndexKey(ordererAddr sdk.AccAddress, marketId, orderId uint64) []byte
func GetOrdersByOrdererIteratorPrefix ¶
func GetOrdersByOrdererIteratorPrefix(ordererAddr sdk.AccAddress) []byte
func GroupMemOrdersByOrderer ¶
func GroupMemOrdersByOrderer(results []*MemOrder) (ordererAddrs []sdk.AccAddress, m map[string][]*MemOrder)
func OrderPriceLimit ¶
func ParamKeyTable ¶
func ParamKeyTable() paramstypes.KeyTable
func ParseNumMMOrdersKey ¶
func ParseNumMMOrdersKey(key []byte) (ordererAddr sdk.AccAddress, marketId uint64)
func PayReceiveDenoms ¶
func PriceAtTick ¶
func PriceIntervalAtTick ¶
func PriceToBytes ¶
func RegisterInterfaces ¶
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
RegisterInterfaces registers the x/exchange interfaces types with the interface registry.
func RegisterLegacyAminoCodec ¶
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
RegisterLegacyAminoCodec registers the necessary x/exchange interfaces and concrete types on the provided LegacyAmino codec. These types are used for Amino JSON serialization.
func RegisterMsgServer ¶
func RegisterQueryHandler ¶
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 (such as grpc.SendHeader, etc) to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
func RoundPrice ¶
RoundPrice returns rounded tick price using banker's rounding.
func TickAtPrice ¶
func TotalExecutableQuantity ¶
func ValidateFees ¶
ValidateFees validates maker fee rate, taker fee rate and order source fee ratio. ValidateFees returns an error if any of fee params is out of range [0, 1].
func ValidateLimitOrderMsg ¶
Types ¶
type AccountKeeper ¶
type AccountKeeper interface {
GetAccount(ctx sdk.Context, addr sdk.AccAddress) authtypes.AccountI
}
AccountKeeper is the expected account keeper
type BankKeeper ¶
type BankKeeper interface { HasSupply(ctx sdk.Context, denom string) bool SendCoins(ctx sdk.Context, fromAddr, toAddr sdk.AccAddress, amt sdk.Coins) error InputOutputCoins(ctx sdk.Context, inputs []banktypes.Input, outputs []banktypes.Output) error SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error IterateTotalSupply(ctx sdk.Context, cb func(coin sdk.Coin) (stop bool)) }
BankKeeper defines the expected keeper interface of the bank module. Some methods are used only in simulation tests.
type CreateOrderFunc ¶
type CreateOrderFunc func(ordererAddr sdk.AccAddress, price, qty, openQty sdk.Dec)
type Escrow ¶
type Escrow struct {
// contains filtered or unexported fields
}
func NewEscrow ¶
func NewEscrow(escrowAddr sdk.AccAddress) *Escrow
type EventCancelAllOrders ¶
type EventCancelAllOrders struct { Orderer string `protobuf:"bytes,1,opt,name=orderer,proto3" json:"orderer,omitempty"` MarketId uint64 `protobuf:"varint,2,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` CancelledOrderIds []uint64 `protobuf:"varint,3,rep,packed,name=cancelled_order_ids,json=cancelledOrderIds,proto3" json:"cancelled_order_ids,omitempty"` }
func (*EventCancelAllOrders) Descriptor ¶
func (*EventCancelAllOrders) Descriptor() ([]byte, []int)
func (*EventCancelAllOrders) Marshal ¶
func (m *EventCancelAllOrders) Marshal() (dAtA []byte, err error)
func (*EventCancelAllOrders) MarshalTo ¶
func (m *EventCancelAllOrders) MarshalTo(dAtA []byte) (int, error)
func (*EventCancelAllOrders) MarshalToSizedBuffer ¶
func (m *EventCancelAllOrders) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventCancelAllOrders) ProtoMessage ¶
func (*EventCancelAllOrders) ProtoMessage()
func (*EventCancelAllOrders) Reset ¶
func (m *EventCancelAllOrders) Reset()
func (*EventCancelAllOrders) Size ¶
func (m *EventCancelAllOrders) Size() (n int)
func (*EventCancelAllOrders) String ¶
func (m *EventCancelAllOrders) String() string
func (*EventCancelAllOrders) Unmarshal ¶
func (m *EventCancelAllOrders) Unmarshal(dAtA []byte) error
func (*EventCancelAllOrders) XXX_DiscardUnknown ¶
func (m *EventCancelAllOrders) XXX_DiscardUnknown()
func (*EventCancelAllOrders) XXX_Marshal ¶
func (m *EventCancelAllOrders) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventCancelAllOrders) XXX_Merge ¶
func (m *EventCancelAllOrders) XXX_Merge(src proto.Message)
func (*EventCancelAllOrders) XXX_Size ¶
func (m *EventCancelAllOrders) XXX_Size() int
func (*EventCancelAllOrders) XXX_Unmarshal ¶
func (m *EventCancelAllOrders) XXX_Unmarshal(b []byte) error
type EventCancelOrder ¶
type EventCancelOrder struct { Orderer string `protobuf:"bytes,1,opt,name=orderer,proto3" json:"orderer,omitempty"` OrderId uint64 `protobuf:"varint,2,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"` }
func (*EventCancelOrder) Descriptor ¶
func (*EventCancelOrder) Descriptor() ([]byte, []int)
func (*EventCancelOrder) Marshal ¶
func (m *EventCancelOrder) Marshal() (dAtA []byte, err error)
func (*EventCancelOrder) MarshalToSizedBuffer ¶
func (m *EventCancelOrder) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventCancelOrder) ProtoMessage ¶
func (*EventCancelOrder) ProtoMessage()
func (*EventCancelOrder) Reset ¶
func (m *EventCancelOrder) Reset()
func (*EventCancelOrder) Size ¶
func (m *EventCancelOrder) Size() (n int)
func (*EventCancelOrder) String ¶
func (m *EventCancelOrder) String() string
func (*EventCancelOrder) Unmarshal ¶
func (m *EventCancelOrder) Unmarshal(dAtA []byte) error
func (*EventCancelOrder) XXX_DiscardUnknown ¶
func (m *EventCancelOrder) XXX_DiscardUnknown()
func (*EventCancelOrder) XXX_Marshal ¶
func (m *EventCancelOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventCancelOrder) XXX_Merge ¶
func (m *EventCancelOrder) XXX_Merge(src proto.Message)
func (*EventCancelOrder) XXX_Size ¶
func (m *EventCancelOrder) XXX_Size() int
func (*EventCancelOrder) XXX_Unmarshal ¶
func (m *EventCancelOrder) XXX_Unmarshal(b []byte) error
type EventCreateMarket ¶
type EventCreateMarket struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` BaseDenom string `protobuf:"bytes,2,opt,name=base_denom,json=baseDenom,proto3" json:"base_denom,omitempty"` QuoteDenom string `protobuf:"bytes,3,opt,name=quote_denom,json=quoteDenom,proto3" json:"quote_denom,omitempty"` MarketId uint64 `protobuf:"varint,4,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` }
func (*EventCreateMarket) Descriptor ¶
func (*EventCreateMarket) Descriptor() ([]byte, []int)
func (*EventCreateMarket) Marshal ¶
func (m *EventCreateMarket) Marshal() (dAtA []byte, err error)
func (*EventCreateMarket) MarshalTo ¶
func (m *EventCreateMarket) MarshalTo(dAtA []byte) (int, error)
func (*EventCreateMarket) MarshalToSizedBuffer ¶
func (m *EventCreateMarket) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventCreateMarket) ProtoMessage ¶
func (*EventCreateMarket) ProtoMessage()
func (*EventCreateMarket) Reset ¶
func (m *EventCreateMarket) Reset()
func (*EventCreateMarket) Size ¶
func (m *EventCreateMarket) Size() (n int)
func (*EventCreateMarket) String ¶
func (m *EventCreateMarket) String() string
func (*EventCreateMarket) Unmarshal ¶
func (m *EventCreateMarket) Unmarshal(dAtA []byte) error
func (*EventCreateMarket) XXX_DiscardUnknown ¶
func (m *EventCreateMarket) XXX_DiscardUnknown()
func (*EventCreateMarket) XXX_Marshal ¶
func (m *EventCreateMarket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventCreateMarket) XXX_Merge ¶
func (m *EventCreateMarket) XXX_Merge(src proto.Message)
func (*EventCreateMarket) XXX_Size ¶
func (m *EventCreateMarket) XXX_Size() int
func (*EventCreateMarket) XXX_Unmarshal ¶
func (m *EventCreateMarket) XXX_Unmarshal(b []byte) error
type EventMarketParameterChanged ¶
type EventMarketParameterChanged struct { MarketId uint64 `protobuf:"varint,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` MakerFeeRate github_com_cosmos_cosmos_sdk_types.Dec `` /* 139-byte string literal not displayed */ TakerFeeRate github_com_cosmos_cosmos_sdk_types.Dec `` /* 139-byte string literal not displayed */ OrderSourceFeeRatio github_com_cosmos_cosmos_sdk_types.Dec `` /* 162-byte string literal not displayed */ }
func (*EventMarketParameterChanged) Descriptor ¶
func (*EventMarketParameterChanged) Descriptor() ([]byte, []int)
func (*EventMarketParameterChanged) Marshal ¶
func (m *EventMarketParameterChanged) Marshal() (dAtA []byte, err error)
func (*EventMarketParameterChanged) MarshalTo ¶
func (m *EventMarketParameterChanged) MarshalTo(dAtA []byte) (int, error)
func (*EventMarketParameterChanged) MarshalToSizedBuffer ¶
func (m *EventMarketParameterChanged) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventMarketParameterChanged) ProtoMessage ¶
func (*EventMarketParameterChanged) ProtoMessage()
func (*EventMarketParameterChanged) Reset ¶
func (m *EventMarketParameterChanged) Reset()
func (*EventMarketParameterChanged) Size ¶
func (m *EventMarketParameterChanged) Size() (n int)
func (*EventMarketParameterChanged) String ¶
func (m *EventMarketParameterChanged) String() string
func (*EventMarketParameterChanged) Unmarshal ¶
func (m *EventMarketParameterChanged) Unmarshal(dAtA []byte) error
func (*EventMarketParameterChanged) XXX_DiscardUnknown ¶
func (m *EventMarketParameterChanged) XXX_DiscardUnknown()
func (*EventMarketParameterChanged) XXX_Marshal ¶
func (m *EventMarketParameterChanged) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventMarketParameterChanged) XXX_Merge ¶
func (m *EventMarketParameterChanged) XXX_Merge(src proto.Message)
func (*EventMarketParameterChanged) XXX_Size ¶
func (m *EventMarketParameterChanged) XXX_Size() int
func (*EventMarketParameterChanged) XXX_Unmarshal ¶
func (m *EventMarketParameterChanged) XXX_Unmarshal(b []byte) error
type EventOrderCompleted ¶
type EventOrderCompleted struct {
OrderId uint64 `protobuf:"varint,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"`
}
func (*EventOrderCompleted) Descriptor ¶
func (*EventOrderCompleted) Descriptor() ([]byte, []int)
func (*EventOrderCompleted) Marshal ¶
func (m *EventOrderCompleted) Marshal() (dAtA []byte, err error)
func (*EventOrderCompleted) MarshalTo ¶
func (m *EventOrderCompleted) MarshalTo(dAtA []byte) (int, error)
func (*EventOrderCompleted) MarshalToSizedBuffer ¶
func (m *EventOrderCompleted) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventOrderCompleted) ProtoMessage ¶
func (*EventOrderCompleted) ProtoMessage()
func (*EventOrderCompleted) Reset ¶
func (m *EventOrderCompleted) Reset()
func (*EventOrderCompleted) Size ¶
func (m *EventOrderCompleted) Size() (n int)
func (*EventOrderCompleted) String ¶
func (m *EventOrderCompleted) String() string
func (*EventOrderCompleted) Unmarshal ¶
func (m *EventOrderCompleted) Unmarshal(dAtA []byte) error
func (*EventOrderCompleted) XXX_DiscardUnknown ¶
func (m *EventOrderCompleted) XXX_DiscardUnknown()
func (*EventOrderCompleted) XXX_Marshal ¶
func (m *EventOrderCompleted) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventOrderCompleted) XXX_Merge ¶
func (m *EventOrderCompleted) XXX_Merge(src proto.Message)
func (*EventOrderCompleted) XXX_Size ¶
func (m *EventOrderCompleted) XXX_Size() int
func (*EventOrderCompleted) XXX_Unmarshal ¶
func (m *EventOrderCompleted) XXX_Unmarshal(b []byte) error
type EventOrderExpired ¶
type EventOrderExpired struct {
OrderId uint64 `protobuf:"varint,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"`
}
func (*EventOrderExpired) Descriptor ¶
func (*EventOrderExpired) Descriptor() ([]byte, []int)
func (*EventOrderExpired) Marshal ¶
func (m *EventOrderExpired) Marshal() (dAtA []byte, err error)
func (*EventOrderExpired) MarshalTo ¶
func (m *EventOrderExpired) MarshalTo(dAtA []byte) (int, error)
func (*EventOrderExpired) MarshalToSizedBuffer ¶
func (m *EventOrderExpired) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventOrderExpired) ProtoMessage ¶
func (*EventOrderExpired) ProtoMessage()
func (*EventOrderExpired) Reset ¶
func (m *EventOrderExpired) Reset()
func (*EventOrderExpired) Size ¶
func (m *EventOrderExpired) Size() (n int)
func (*EventOrderExpired) String ¶
func (m *EventOrderExpired) String() string
func (*EventOrderExpired) Unmarshal ¶
func (m *EventOrderExpired) Unmarshal(dAtA []byte) error
func (*EventOrderExpired) XXX_DiscardUnknown ¶
func (m *EventOrderExpired) XXX_DiscardUnknown()
func (*EventOrderExpired) XXX_Marshal ¶
func (m *EventOrderExpired) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventOrderExpired) XXX_Merge ¶
func (m *EventOrderExpired) XXX_Merge(src proto.Message)
func (*EventOrderExpired) XXX_Size ¶
func (m *EventOrderExpired) XXX_Size() int
func (*EventOrderExpired) XXX_Unmarshal ¶
func (m *EventOrderExpired) XXX_Unmarshal(b []byte) error
type EventOrderFilled ¶
type EventOrderFilled struct { MarketId uint64 `protobuf:"varint,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` OrderId uint64 `protobuf:"varint,2,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"` Orderer string `protobuf:"bytes,3,opt,name=orderer,proto3" json:"orderer,omitempty"` IsBuy bool `protobuf:"varint,4,opt,name=is_buy,json=isBuy,proto3" json:"is_buy,omitempty"` Price github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,5,opt,name=price,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"price"` Quantity github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,6,opt,name=quantity,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"quantity"` OpenQuantity github_com_cosmos_cosmos_sdk_types.Dec `` /* 137-byte string literal not displayed */ ExecutedQuantity github_com_cosmos_cosmos_sdk_types.Dec `` /* 149-byte string literal not displayed */ Paid types.DecCoin `protobuf:"bytes,9,opt,name=paid,proto3" json:"paid"` Received types.DecCoin `protobuf:"bytes,10,opt,name=received,proto3" json:"received"` }
func (*EventOrderFilled) Descriptor ¶
func (*EventOrderFilled) Descriptor() ([]byte, []int)
func (*EventOrderFilled) Marshal ¶
func (m *EventOrderFilled) Marshal() (dAtA []byte, err error)
func (*EventOrderFilled) MarshalToSizedBuffer ¶
func (m *EventOrderFilled) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventOrderFilled) ProtoMessage ¶
func (*EventOrderFilled) ProtoMessage()
func (*EventOrderFilled) Reset ¶
func (m *EventOrderFilled) Reset()
func (*EventOrderFilled) Size ¶
func (m *EventOrderFilled) Size() (n int)
func (*EventOrderFilled) String ¶
func (m *EventOrderFilled) String() string
func (*EventOrderFilled) Unmarshal ¶
func (m *EventOrderFilled) Unmarshal(dAtA []byte) error
func (*EventOrderFilled) XXX_DiscardUnknown ¶
func (m *EventOrderFilled) XXX_DiscardUnknown()
func (*EventOrderFilled) XXX_Marshal ¶
func (m *EventOrderFilled) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventOrderFilled) XXX_Merge ¶
func (m *EventOrderFilled) XXX_Merge(src proto.Message)
func (*EventOrderFilled) XXX_Size ¶
func (m *EventOrderFilled) XXX_Size() int
func (*EventOrderFilled) XXX_Unmarshal ¶
func (m *EventOrderFilled) XXX_Unmarshal(b []byte) error
type EventOrderSourceOrdersFilled ¶
type EventOrderSourceOrdersFilled struct { MarketId uint64 `protobuf:"varint,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` SourceName string `protobuf:"bytes,2,opt,name=source_name,json=sourceName,proto3" json:"source_name,omitempty"` Orderer string `protobuf:"bytes,3,opt,name=orderer,proto3" json:"orderer,omitempty"` IsBuy bool `protobuf:"varint,4,opt,name=is_buy,json=isBuy,proto3" json:"is_buy,omitempty"` ExecutedQuantity github_com_cosmos_cosmos_sdk_types.Dec `` /* 149-byte string literal not displayed */ Paid types.DecCoin `protobuf:"bytes,6,opt,name=paid,proto3" json:"paid"` Received types.DecCoin `protobuf:"bytes,7,opt,name=received,proto3" json:"received"` }
func (*EventOrderSourceOrdersFilled) Descriptor ¶
func (*EventOrderSourceOrdersFilled) Descriptor() ([]byte, []int)
func (*EventOrderSourceOrdersFilled) Marshal ¶
func (m *EventOrderSourceOrdersFilled) Marshal() (dAtA []byte, err error)
func (*EventOrderSourceOrdersFilled) MarshalTo ¶
func (m *EventOrderSourceOrdersFilled) MarshalTo(dAtA []byte) (int, error)
func (*EventOrderSourceOrdersFilled) MarshalToSizedBuffer ¶
func (m *EventOrderSourceOrdersFilled) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventOrderSourceOrdersFilled) ProtoMessage ¶
func (*EventOrderSourceOrdersFilled) ProtoMessage()
func (*EventOrderSourceOrdersFilled) Reset ¶
func (m *EventOrderSourceOrdersFilled) Reset()
func (*EventOrderSourceOrdersFilled) Size ¶
func (m *EventOrderSourceOrdersFilled) Size() (n int)
func (*EventOrderSourceOrdersFilled) String ¶
func (m *EventOrderSourceOrdersFilled) String() string
func (*EventOrderSourceOrdersFilled) Unmarshal ¶
func (m *EventOrderSourceOrdersFilled) Unmarshal(dAtA []byte) error
func (*EventOrderSourceOrdersFilled) XXX_DiscardUnknown ¶
func (m *EventOrderSourceOrdersFilled) XXX_DiscardUnknown()
func (*EventOrderSourceOrdersFilled) XXX_Marshal ¶
func (m *EventOrderSourceOrdersFilled) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventOrderSourceOrdersFilled) XXX_Merge ¶
func (m *EventOrderSourceOrdersFilled) XXX_Merge(src proto.Message)
func (*EventOrderSourceOrdersFilled) XXX_Size ¶
func (m *EventOrderSourceOrdersFilled) XXX_Size() int
func (*EventOrderSourceOrdersFilled) XXX_Unmarshal ¶
func (m *EventOrderSourceOrdersFilled) XXX_Unmarshal(b []byte) error
type EventPlaceBatchLimitOrder ¶
type EventPlaceBatchLimitOrder struct { MarketId uint64 `protobuf:"varint,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` OrderId uint64 `protobuf:"varint,2,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"` Orderer string `protobuf:"bytes,3,opt,name=orderer,proto3" json:"orderer,omitempty"` IsBuy bool `protobuf:"varint,4,opt,name=is_buy,json=isBuy,proto3" json:"is_buy,omitempty"` Price github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,5,opt,name=price,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"price"` Quantity github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,6,opt,name=quantity,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"quantity"` Lifespan time.Duration `protobuf:"bytes,7,opt,name=lifespan,proto3,stdduration" json:"lifespan"` Deadline time.Time `protobuf:"bytes,8,opt,name=deadline,proto3,stdtime" json:"deadline"` }
func (*EventPlaceBatchLimitOrder) Descriptor ¶
func (*EventPlaceBatchLimitOrder) Descriptor() ([]byte, []int)
func (*EventPlaceBatchLimitOrder) Marshal ¶
func (m *EventPlaceBatchLimitOrder) Marshal() (dAtA []byte, err error)
func (*EventPlaceBatchLimitOrder) MarshalTo ¶
func (m *EventPlaceBatchLimitOrder) MarshalTo(dAtA []byte) (int, error)
func (*EventPlaceBatchLimitOrder) MarshalToSizedBuffer ¶
func (m *EventPlaceBatchLimitOrder) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventPlaceBatchLimitOrder) ProtoMessage ¶
func (*EventPlaceBatchLimitOrder) ProtoMessage()
func (*EventPlaceBatchLimitOrder) Reset ¶
func (m *EventPlaceBatchLimitOrder) Reset()
func (*EventPlaceBatchLimitOrder) Size ¶
func (m *EventPlaceBatchLimitOrder) Size() (n int)
func (*EventPlaceBatchLimitOrder) String ¶
func (m *EventPlaceBatchLimitOrder) String() string
func (*EventPlaceBatchLimitOrder) Unmarshal ¶
func (m *EventPlaceBatchLimitOrder) Unmarshal(dAtA []byte) error
func (*EventPlaceBatchLimitOrder) XXX_DiscardUnknown ¶
func (m *EventPlaceBatchLimitOrder) XXX_DiscardUnknown()
func (*EventPlaceBatchLimitOrder) XXX_Marshal ¶
func (m *EventPlaceBatchLimitOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventPlaceBatchLimitOrder) XXX_Merge ¶
func (m *EventPlaceBatchLimitOrder) XXX_Merge(src proto.Message)
func (*EventPlaceBatchLimitOrder) XXX_Size ¶
func (m *EventPlaceBatchLimitOrder) XXX_Size() int
func (*EventPlaceBatchLimitOrder) XXX_Unmarshal ¶
func (m *EventPlaceBatchLimitOrder) XXX_Unmarshal(b []byte) error
type EventPlaceLimitOrder ¶
type EventPlaceLimitOrder struct { MarketId uint64 `protobuf:"varint,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` OrderId uint64 `protobuf:"varint,2,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"` Orderer string `protobuf:"bytes,3,opt,name=orderer,proto3" json:"orderer,omitempty"` IsBuy bool `protobuf:"varint,4,opt,name=is_buy,json=isBuy,proto3" json:"is_buy,omitempty"` Price github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,5,opt,name=price,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"price"` Quantity github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,6,opt,name=quantity,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"quantity"` Lifespan time.Duration `protobuf:"bytes,7,opt,name=lifespan,proto3,stdduration" json:"lifespan"` Deadline time.Time `protobuf:"bytes,8,opt,name=deadline,proto3,stdtime" json:"deadline"` ExecutedQuantity github_com_cosmos_cosmos_sdk_types.Dec `` /* 149-byte string literal not displayed */ Paid types.DecCoin `protobuf:"bytes,10,opt,name=paid,proto3" json:"paid"` Received types.DecCoin `protobuf:"bytes,11,opt,name=received,proto3" json:"received"` }
func (*EventPlaceLimitOrder) Descriptor ¶
func (*EventPlaceLimitOrder) Descriptor() ([]byte, []int)
func (*EventPlaceLimitOrder) Marshal ¶
func (m *EventPlaceLimitOrder) Marshal() (dAtA []byte, err error)
func (*EventPlaceLimitOrder) MarshalTo ¶
func (m *EventPlaceLimitOrder) MarshalTo(dAtA []byte) (int, error)
func (*EventPlaceLimitOrder) MarshalToSizedBuffer ¶
func (m *EventPlaceLimitOrder) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventPlaceLimitOrder) ProtoMessage ¶
func (*EventPlaceLimitOrder) ProtoMessage()
func (*EventPlaceLimitOrder) Reset ¶
func (m *EventPlaceLimitOrder) Reset()
func (*EventPlaceLimitOrder) Size ¶
func (m *EventPlaceLimitOrder) Size() (n int)
func (*EventPlaceLimitOrder) String ¶
func (m *EventPlaceLimitOrder) String() string
func (*EventPlaceLimitOrder) Unmarshal ¶
func (m *EventPlaceLimitOrder) Unmarshal(dAtA []byte) error
func (*EventPlaceLimitOrder) XXX_DiscardUnknown ¶
func (m *EventPlaceLimitOrder) XXX_DiscardUnknown()
func (*EventPlaceLimitOrder) XXX_Marshal ¶
func (m *EventPlaceLimitOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventPlaceLimitOrder) XXX_Merge ¶
func (m *EventPlaceLimitOrder) XXX_Merge(src proto.Message)
func (*EventPlaceLimitOrder) XXX_Size ¶
func (m *EventPlaceLimitOrder) XXX_Size() int
func (*EventPlaceLimitOrder) XXX_Unmarshal ¶
func (m *EventPlaceLimitOrder) XXX_Unmarshal(b []byte) error
type EventPlaceMMBatchLimitOrder ¶
type EventPlaceMMBatchLimitOrder struct { MarketId uint64 `protobuf:"varint,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` OrderId uint64 `protobuf:"varint,2,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"` Orderer string `protobuf:"bytes,3,opt,name=orderer,proto3" json:"orderer,omitempty"` IsBuy bool `protobuf:"varint,4,opt,name=is_buy,json=isBuy,proto3" json:"is_buy,omitempty"` Price github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,5,opt,name=price,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"price"` Quantity github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,6,opt,name=quantity,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"quantity"` Lifespan time.Duration `protobuf:"bytes,7,opt,name=lifespan,proto3,stdduration" json:"lifespan"` Deadline time.Time `protobuf:"bytes,8,opt,name=deadline,proto3,stdtime" json:"deadline"` }
func (*EventPlaceMMBatchLimitOrder) Descriptor ¶
func (*EventPlaceMMBatchLimitOrder) Descriptor() ([]byte, []int)
func (*EventPlaceMMBatchLimitOrder) Marshal ¶
func (m *EventPlaceMMBatchLimitOrder) Marshal() (dAtA []byte, err error)
func (*EventPlaceMMBatchLimitOrder) MarshalTo ¶
func (m *EventPlaceMMBatchLimitOrder) MarshalTo(dAtA []byte) (int, error)
func (*EventPlaceMMBatchLimitOrder) MarshalToSizedBuffer ¶
func (m *EventPlaceMMBatchLimitOrder) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventPlaceMMBatchLimitOrder) ProtoMessage ¶
func (*EventPlaceMMBatchLimitOrder) ProtoMessage()
func (*EventPlaceMMBatchLimitOrder) Reset ¶
func (m *EventPlaceMMBatchLimitOrder) Reset()
func (*EventPlaceMMBatchLimitOrder) Size ¶
func (m *EventPlaceMMBatchLimitOrder) Size() (n int)
func (*EventPlaceMMBatchLimitOrder) String ¶
func (m *EventPlaceMMBatchLimitOrder) String() string
func (*EventPlaceMMBatchLimitOrder) Unmarshal ¶
func (m *EventPlaceMMBatchLimitOrder) Unmarshal(dAtA []byte) error
func (*EventPlaceMMBatchLimitOrder) XXX_DiscardUnknown ¶
func (m *EventPlaceMMBatchLimitOrder) XXX_DiscardUnknown()
func (*EventPlaceMMBatchLimitOrder) XXX_Marshal ¶
func (m *EventPlaceMMBatchLimitOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventPlaceMMBatchLimitOrder) XXX_Merge ¶
func (m *EventPlaceMMBatchLimitOrder) XXX_Merge(src proto.Message)
func (*EventPlaceMMBatchLimitOrder) XXX_Size ¶
func (m *EventPlaceMMBatchLimitOrder) XXX_Size() int
func (*EventPlaceMMBatchLimitOrder) XXX_Unmarshal ¶
func (m *EventPlaceMMBatchLimitOrder) XXX_Unmarshal(b []byte) error
type EventPlaceMMLimitOrder ¶
type EventPlaceMMLimitOrder struct { MarketId uint64 `protobuf:"varint,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` OrderId uint64 `protobuf:"varint,2,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"` Orderer string `protobuf:"bytes,3,opt,name=orderer,proto3" json:"orderer,omitempty"` IsBuy bool `protobuf:"varint,4,opt,name=is_buy,json=isBuy,proto3" json:"is_buy,omitempty"` Price github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,5,opt,name=price,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"price"` Quantity github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,6,opt,name=quantity,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"quantity"` Lifespan time.Duration `protobuf:"bytes,7,opt,name=lifespan,proto3,stdduration" json:"lifespan"` Deadline time.Time `protobuf:"bytes,8,opt,name=deadline,proto3,stdtime" json:"deadline"` ExecutedQuantity github_com_cosmos_cosmos_sdk_types.Dec `` /* 149-byte string literal not displayed */ Paid types.DecCoin `protobuf:"bytes,10,opt,name=paid,proto3" json:"paid"` Received types.DecCoin `protobuf:"bytes,11,opt,name=received,proto3" json:"received"` }
func (*EventPlaceMMLimitOrder) Descriptor ¶
func (*EventPlaceMMLimitOrder) Descriptor() ([]byte, []int)
func (*EventPlaceMMLimitOrder) Marshal ¶
func (m *EventPlaceMMLimitOrder) Marshal() (dAtA []byte, err error)
func (*EventPlaceMMLimitOrder) MarshalTo ¶
func (m *EventPlaceMMLimitOrder) MarshalTo(dAtA []byte) (int, error)
func (*EventPlaceMMLimitOrder) MarshalToSizedBuffer ¶
func (m *EventPlaceMMLimitOrder) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventPlaceMMLimitOrder) ProtoMessage ¶
func (*EventPlaceMMLimitOrder) ProtoMessage()
func (*EventPlaceMMLimitOrder) Reset ¶
func (m *EventPlaceMMLimitOrder) Reset()
func (*EventPlaceMMLimitOrder) Size ¶
func (m *EventPlaceMMLimitOrder) Size() (n int)
func (*EventPlaceMMLimitOrder) String ¶
func (m *EventPlaceMMLimitOrder) String() string
func (*EventPlaceMMLimitOrder) Unmarshal ¶
func (m *EventPlaceMMLimitOrder) Unmarshal(dAtA []byte) error
func (*EventPlaceMMLimitOrder) XXX_DiscardUnknown ¶
func (m *EventPlaceMMLimitOrder) XXX_DiscardUnknown()
func (*EventPlaceMMLimitOrder) XXX_Marshal ¶
func (m *EventPlaceMMLimitOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventPlaceMMLimitOrder) XXX_Merge ¶
func (m *EventPlaceMMLimitOrder) XXX_Merge(src proto.Message)
func (*EventPlaceMMLimitOrder) XXX_Size ¶
func (m *EventPlaceMMLimitOrder) XXX_Size() int
func (*EventPlaceMMLimitOrder) XXX_Unmarshal ¶
func (m *EventPlaceMMLimitOrder) XXX_Unmarshal(b []byte) error
type EventPlaceMarketOrder ¶
type EventPlaceMarketOrder struct { MarketId uint64 `protobuf:"varint,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` OrderId uint64 `protobuf:"varint,2,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"` Orderer string `protobuf:"bytes,3,opt,name=orderer,proto3" json:"orderer,omitempty"` IsBuy bool `protobuf:"varint,4,opt,name=is_buy,json=isBuy,proto3" json:"is_buy,omitempty"` Quantity github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,5,opt,name=quantity,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"quantity"` ExecutedQuantity github_com_cosmos_cosmos_sdk_types.Dec `` /* 149-byte string literal not displayed */ Paid types.DecCoin `protobuf:"bytes,7,opt,name=paid,proto3" json:"paid"` Received types.DecCoin `protobuf:"bytes,8,opt,name=received,proto3" json:"received"` }
func (*EventPlaceMarketOrder) Descriptor ¶
func (*EventPlaceMarketOrder) Descriptor() ([]byte, []int)
func (*EventPlaceMarketOrder) Marshal ¶
func (m *EventPlaceMarketOrder) Marshal() (dAtA []byte, err error)
func (*EventPlaceMarketOrder) MarshalTo ¶
func (m *EventPlaceMarketOrder) MarshalTo(dAtA []byte) (int, error)
func (*EventPlaceMarketOrder) MarshalToSizedBuffer ¶
func (m *EventPlaceMarketOrder) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventPlaceMarketOrder) ProtoMessage ¶
func (*EventPlaceMarketOrder) ProtoMessage()
func (*EventPlaceMarketOrder) Reset ¶
func (m *EventPlaceMarketOrder) Reset()
func (*EventPlaceMarketOrder) Size ¶
func (m *EventPlaceMarketOrder) Size() (n int)
func (*EventPlaceMarketOrder) String ¶
func (m *EventPlaceMarketOrder) String() string
func (*EventPlaceMarketOrder) Unmarshal ¶
func (m *EventPlaceMarketOrder) Unmarshal(dAtA []byte) error
func (*EventPlaceMarketOrder) XXX_DiscardUnknown ¶
func (m *EventPlaceMarketOrder) XXX_DiscardUnknown()
func (*EventPlaceMarketOrder) XXX_Marshal ¶
func (m *EventPlaceMarketOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventPlaceMarketOrder) XXX_Merge ¶
func (m *EventPlaceMarketOrder) XXX_Merge(src proto.Message)
func (*EventPlaceMarketOrder) XXX_Size ¶
func (m *EventPlaceMarketOrder) XXX_Size() int
func (*EventPlaceMarketOrder) XXX_Unmarshal ¶
func (m *EventPlaceMarketOrder) XXX_Unmarshal(b []byte) error
type EventSwapExactAmountIn ¶
type EventSwapExactAmountIn struct { Orderer string `protobuf:"bytes,1,opt,name=orderer,proto3" json:"orderer,omitempty"` Routes []uint64 `protobuf:"varint,2,rep,packed,name=routes,proto3" json:"routes,omitempty"` Input types.DecCoin `protobuf:"bytes,3,opt,name=input,proto3" json:"input"` Output types.DecCoin `protobuf:"bytes,4,opt,name=output,proto3" json:"output"` Results []SwapRouteResult `protobuf:"bytes,5,rep,name=results,proto3" json:"results"` }
func (*EventSwapExactAmountIn) Descriptor ¶
func (*EventSwapExactAmountIn) Descriptor() ([]byte, []int)
func (*EventSwapExactAmountIn) Marshal ¶
func (m *EventSwapExactAmountIn) Marshal() (dAtA []byte, err error)
func (*EventSwapExactAmountIn) MarshalTo ¶
func (m *EventSwapExactAmountIn) MarshalTo(dAtA []byte) (int, error)
func (*EventSwapExactAmountIn) MarshalToSizedBuffer ¶
func (m *EventSwapExactAmountIn) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventSwapExactAmountIn) ProtoMessage ¶
func (*EventSwapExactAmountIn) ProtoMessage()
func (*EventSwapExactAmountIn) Reset ¶
func (m *EventSwapExactAmountIn) Reset()
func (*EventSwapExactAmountIn) Size ¶
func (m *EventSwapExactAmountIn) Size() (n int)
func (*EventSwapExactAmountIn) String ¶
func (m *EventSwapExactAmountIn) String() string
func (*EventSwapExactAmountIn) Unmarshal ¶
func (m *EventSwapExactAmountIn) Unmarshal(dAtA []byte) error
func (*EventSwapExactAmountIn) XXX_DiscardUnknown ¶
func (m *EventSwapExactAmountIn) XXX_DiscardUnknown()
func (*EventSwapExactAmountIn) XXX_Marshal ¶
func (m *EventSwapExactAmountIn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventSwapExactAmountIn) XXX_Merge ¶
func (m *EventSwapExactAmountIn) XXX_Merge(src proto.Message)
func (*EventSwapExactAmountIn) XXX_Size ¶
func (m *EventSwapExactAmountIn) XXX_Size() int
func (*EventSwapExactAmountIn) XXX_Unmarshal ¶
func (m *EventSwapExactAmountIn) XXX_Unmarshal(b []byte) error
type ExecuteOrderResult ¶
type ExecuteOrderResult struct { LastPrice sdk.Dec ExecutedQuantity sdk.Dec ExecutedQuote sdk.Dec Paid sdk.DecCoin Received sdk.DecCoin Fee sdk.DecCoin FullyExecuted bool }
func NewExecuteOrderResult ¶
func NewExecuteOrderResult(payDenom, receiveDenom string) ExecuteOrderResult
func (ExecuteOrderResult) Executed ¶
func (res ExecuteOrderResult) Executed() bool
type Fees ¶
type Fees struct { DefaultMakerFeeRate github_com_cosmos_cosmos_sdk_types.Dec `` /* 162-byte string literal not displayed */ DefaultTakerFeeRate github_com_cosmos_cosmos_sdk_types.Dec `` /* 162-byte string literal not displayed */ DefaultOrderSourceFeeRatio github_com_cosmos_cosmos_sdk_types.Dec `` /* 185-byte string literal not displayed */ }
func (*Fees) Descriptor ¶
func (*Fees) ProtoMessage ¶
func (*Fees) ProtoMessage()
func (*Fees) XXX_DiscardUnknown ¶
func (m *Fees) XXX_DiscardUnknown()
func (*Fees) XXX_Unmarshal ¶
type GenesisState ¶
type GenesisState struct { Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` LastMarketId uint64 `protobuf:"varint,2,opt,name=last_market_id,json=lastMarketId,proto3" json:"last_market_id,omitempty"` LastOrderId uint64 `protobuf:"varint,3,opt,name=last_order_id,json=lastOrderId,proto3" json:"last_order_id,omitempty"` MarketRecords []MarketRecord `protobuf:"bytes,4,rep,name=market_records,json=marketRecords,proto3" json:"market_records"` Orders []Order `protobuf:"bytes,5,rep,name=orders,proto3" json:"orders"` NumMMOrdersRecords []NumMMOrdersRecord `protobuf:"bytes,6,rep,name=num_mm_orders_records,json=numMmOrdersRecords,proto3" json:"num_mm_orders_records"` }
func DefaultGenesis ¶
func DefaultGenesis() *GenesisState
DefaultGenesis returns the default genesis state for the module.
func NewGenesisState ¶
func NewGenesisState( params Params, lastMarketId, lastOrderId uint64, marketRecords []MarketRecord, orders []Order, numMMOrdersRecords []NumMMOrdersRecord) *GenesisState
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) Marshal ¶
func (m *GenesisState) Marshal() (dAtA []byte, err 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 (genState GenesisState) Validate() error
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 Market ¶
type Market struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` BaseDenom string `protobuf:"bytes,2,opt,name=base_denom,json=baseDenom,proto3" json:"base_denom,omitempty"` QuoteDenom string `protobuf:"bytes,3,opt,name=quote_denom,json=quoteDenom,proto3" json:"quote_denom,omitempty"` EscrowAddress string `protobuf:"bytes,4,opt,name=escrow_address,json=escrowAddress,proto3" json:"escrow_address,omitempty"` MakerFeeRate github_com_cosmos_cosmos_sdk_types.Dec `` /* 139-byte string literal not displayed */ TakerFeeRate github_com_cosmos_cosmos_sdk_types.Dec `` /* 139-byte string literal not displayed */ OrderSourceFeeRatio github_com_cosmos_cosmos_sdk_types.Dec `` /* 162-byte string literal not displayed */ }
func (*Market) Descriptor ¶
func (*Market) MarshalToSizedBuffer ¶
func (Market) MustGetEscrowAddress ¶
func (market Market) MustGetEscrowAddress() sdk.AccAddress
func (*Market) ProtoMessage ¶
func (*Market) ProtoMessage()
func (*Market) XXX_DiscardUnknown ¶
func (m *Market) XXX_DiscardUnknown()
func (*Market) XXX_Marshal ¶
func (*Market) XXX_Unmarshal ¶
type MarketParameterChange ¶
type MarketParameterChange struct { MarketId uint64 `protobuf:"varint,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` MakerFeeRate github_com_cosmos_cosmos_sdk_types.Dec `` /* 139-byte string literal not displayed */ TakerFeeRate github_com_cosmos_cosmos_sdk_types.Dec `` /* 139-byte string literal not displayed */ OrderSourceFeeRatio github_com_cosmos_cosmos_sdk_types.Dec `` /* 162-byte string literal not displayed */ }
func NewMarketParameterChange ¶
func NewMarketParameterChange( marketId uint64, makerFeeRate, takerFeeRate, orderSourceRatio sdk.Dec) MarketParameterChange
func (*MarketParameterChange) Descriptor ¶
func (*MarketParameterChange) Descriptor() ([]byte, []int)
func (*MarketParameterChange) Marshal ¶
func (m *MarketParameterChange) Marshal() (dAtA []byte, err error)
func (*MarketParameterChange) MarshalTo ¶
func (m *MarketParameterChange) MarshalTo(dAtA []byte) (int, error)
func (*MarketParameterChange) MarshalToSizedBuffer ¶
func (m *MarketParameterChange) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MarketParameterChange) ProtoMessage ¶
func (*MarketParameterChange) ProtoMessage()
func (*MarketParameterChange) Reset ¶
func (m *MarketParameterChange) Reset()
func (*MarketParameterChange) Size ¶
func (m *MarketParameterChange) Size() (n int)
func (*MarketParameterChange) String ¶
func (m *MarketParameterChange) String() string
Example ¶
package main import ( "fmt" utils "github.com/crescent-network/crescent/v5/types" "github.com/crescent-network/crescent/v5/x/exchange/types" ) func main() { p := types.NewMarketParameterChangeProposal( "Title", "Description", []types.MarketParameterChange{ types.NewMarketParameterChange(1, utils.ParseDec("0.001"), utils.ParseDec("0.002"), utils.ParseDec("0.5")), types.NewMarketParameterChange(2, utils.ParseDec("-0.0015"), utils.ParseDec("0.003"), utils.ParseDec("0.5")), }) fmt.Println(p.String()) }
Output: Market Parameter Change Proposal: Title: Title Description: Description Changes: Market Parameter Change: Market Id: 1 Maker Fee Rate: 0.001000000000000000 Taker Fee Rate: 0.002000000000000000 Order Source Fee Ratio: 0.500000000000000000 Market Parameter Change: Market Id: 2 Maker Fee Rate: -0.001500000000000000 Taker Fee Rate: 0.003000000000000000 Order Source Fee Ratio: 0.500000000000000000
func (*MarketParameterChange) Unmarshal ¶
func (m *MarketParameterChange) Unmarshal(dAtA []byte) error
func (MarketParameterChange) Validate ¶
func (change MarketParameterChange) Validate() error
func (*MarketParameterChange) XXX_DiscardUnknown ¶
func (m *MarketParameterChange) XXX_DiscardUnknown()
func (*MarketParameterChange) XXX_Marshal ¶
func (m *MarketParameterChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MarketParameterChange) XXX_Merge ¶
func (m *MarketParameterChange) XXX_Merge(src proto.Message)
func (*MarketParameterChange) XXX_Size ¶
func (m *MarketParameterChange) XXX_Size() int
func (*MarketParameterChange) XXX_Unmarshal ¶
func (m *MarketParameterChange) XXX_Unmarshal(b []byte) error
type MarketParameterChangeProposal ¶
type MarketParameterChangeProposal struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` Changes []MarketParameterChange `protobuf:"bytes,3,rep,name=changes,proto3" json:"changes"` }
func NewMarketParameterChangeProposal ¶
func NewMarketParameterChangeProposal( title, description string, changes []MarketParameterChange) *MarketParameterChangeProposal
func (*MarketParameterChangeProposal) Descriptor ¶
func (*MarketParameterChangeProposal) Descriptor() ([]byte, []int)
func (*MarketParameterChangeProposal) GetDescription ¶
func (p *MarketParameterChangeProposal) GetDescription() string
func (*MarketParameterChangeProposal) GetTitle ¶
func (p *MarketParameterChangeProposal) GetTitle() string
func (*MarketParameterChangeProposal) Marshal ¶
func (m *MarketParameterChangeProposal) Marshal() (dAtA []byte, err error)
func (*MarketParameterChangeProposal) MarshalTo ¶
func (m *MarketParameterChangeProposal) MarshalTo(dAtA []byte) (int, error)
func (*MarketParameterChangeProposal) MarshalToSizedBuffer ¶
func (m *MarketParameterChangeProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MarketParameterChangeProposal) ProposalRoute ¶
func (p *MarketParameterChangeProposal) ProposalRoute() string
func (*MarketParameterChangeProposal) ProposalType ¶
func (p *MarketParameterChangeProposal) ProposalType() string
func (*MarketParameterChangeProposal) ProtoMessage ¶
func (*MarketParameterChangeProposal) ProtoMessage()
func (*MarketParameterChangeProposal) Reset ¶
func (m *MarketParameterChangeProposal) Reset()
func (*MarketParameterChangeProposal) Size ¶
func (m *MarketParameterChangeProposal) Size() (n int)
func (MarketParameterChangeProposal) String ¶
func (p MarketParameterChangeProposal) String() string
func (*MarketParameterChangeProposal) Unmarshal ¶
func (m *MarketParameterChangeProposal) Unmarshal(dAtA []byte) error
func (*MarketParameterChangeProposal) ValidateBasic ¶
func (p *MarketParameterChangeProposal) ValidateBasic() error
func (*MarketParameterChangeProposal) XXX_DiscardUnknown ¶
func (m *MarketParameterChangeProposal) XXX_DiscardUnknown()
func (*MarketParameterChangeProposal) XXX_Marshal ¶
func (m *MarketParameterChangeProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MarketParameterChangeProposal) XXX_Merge ¶
func (m *MarketParameterChangeProposal) XXX_Merge(src proto.Message)
func (*MarketParameterChangeProposal) XXX_Size ¶
func (m *MarketParameterChangeProposal) XXX_Size() int
func (*MarketParameterChangeProposal) XXX_Unmarshal ¶
func (m *MarketParameterChangeProposal) XXX_Unmarshal(b []byte) error
type MarketRecord ¶
type MarketRecord struct { Market Market `protobuf:"bytes,1,opt,name=market,proto3" json:"market"` State MarketState `protobuf:"bytes,2,opt,name=state,proto3" json:"state"` }
func (*MarketRecord) Descriptor ¶
func (*MarketRecord) Descriptor() ([]byte, []int)
func (*MarketRecord) Marshal ¶
func (m *MarketRecord) Marshal() (dAtA []byte, err error)
func (*MarketRecord) MarshalToSizedBuffer ¶
func (m *MarketRecord) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MarketRecord) ProtoMessage ¶
func (*MarketRecord) ProtoMessage()
func (*MarketRecord) Reset ¶
func (m *MarketRecord) Reset()
func (*MarketRecord) Size ¶
func (m *MarketRecord) Size() (n int)
func (*MarketRecord) String ¶
func (m *MarketRecord) String() string
func (*MarketRecord) Unmarshal ¶
func (m *MarketRecord) Unmarshal(dAtA []byte) error
func (MarketRecord) Validate ¶
func (record MarketRecord) Validate() error
func (*MarketRecord) XXX_DiscardUnknown ¶
func (m *MarketRecord) XXX_DiscardUnknown()
func (*MarketRecord) XXX_Marshal ¶
func (m *MarketRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MarketRecord) XXX_Merge ¶
func (m *MarketRecord) XXX_Merge(src proto.Message)
func (*MarketRecord) XXX_Size ¶
func (m *MarketRecord) XXX_Size() int
func (*MarketRecord) XXX_Unmarshal ¶
func (m *MarketRecord) XXX_Unmarshal(b []byte) error
type MarketResponse ¶
type MarketResponse struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` BaseDenom string `protobuf:"bytes,2,opt,name=base_denom,json=baseDenom,proto3" json:"base_denom,omitempty"` QuoteDenom string `protobuf:"bytes,3,opt,name=quote_denom,json=quoteDenom,proto3" json:"quote_denom,omitempty"` EscrowAddress string `protobuf:"bytes,4,opt,name=escrow_address,json=escrowAddress,proto3" json:"escrow_address,omitempty"` MakerFeeRate github_com_cosmos_cosmos_sdk_types.Dec `` /* 139-byte string literal not displayed */ TakerFeeRate github_com_cosmos_cosmos_sdk_types.Dec `` /* 139-byte string literal not displayed */ OrderSourceFeeRatio github_com_cosmos_cosmos_sdk_types.Dec `` /* 162-byte string literal not displayed */ LastPrice *github_com_cosmos_cosmos_sdk_types.Dec `` /* 138-byte string literal not displayed */ LastMatchingHeight int64 `protobuf:"varint,9,opt,name=last_matching_height,json=lastMatchingHeight,proto3" json:"last_matching_height,omitempty"` }
func NewMarketResponse ¶
func NewMarketResponse(market Market, marketState MarketState) MarketResponse
func (*MarketResponse) Descriptor ¶
func (*MarketResponse) Descriptor() ([]byte, []int)
func (*MarketResponse) Marshal ¶
func (m *MarketResponse) Marshal() (dAtA []byte, err error)
func (*MarketResponse) MarshalToSizedBuffer ¶
func (m *MarketResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MarketResponse) ProtoMessage ¶
func (*MarketResponse) ProtoMessage()
func (*MarketResponse) Reset ¶
func (m *MarketResponse) Reset()
func (*MarketResponse) Size ¶
func (m *MarketResponse) Size() (n int)
func (*MarketResponse) String ¶
func (m *MarketResponse) String() string
func (*MarketResponse) Unmarshal ¶
func (m *MarketResponse) Unmarshal(dAtA []byte) error
func (*MarketResponse) XXX_DiscardUnknown ¶
func (m *MarketResponse) XXX_DiscardUnknown()
func (*MarketResponse) XXX_Marshal ¶
func (m *MarketResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MarketResponse) XXX_Merge ¶
func (m *MarketResponse) XXX_Merge(src proto.Message)
func (*MarketResponse) XXX_Size ¶
func (m *MarketResponse) XXX_Size() int
func (*MarketResponse) XXX_Unmarshal ¶
func (m *MarketResponse) XXX_Unmarshal(b []byte) error
type MarketState ¶
type MarketState struct { LastPrice *github_com_cosmos_cosmos_sdk_types.Dec `` /* 138-byte string literal not displayed */ LastMatchingHeight int64 `protobuf:"varint,2,opt,name=last_matching_height,json=lastMatchingHeight,proto3" json:"last_matching_height,omitempty"` }
func NewMarketState ¶
func NewMarketState(lastPrice *sdk.Dec) MarketState
func (*MarketState) Descriptor ¶
func (*MarketState) Descriptor() ([]byte, []int)
func (*MarketState) Marshal ¶
func (m *MarketState) Marshal() (dAtA []byte, err error)
func (*MarketState) MarshalToSizedBuffer ¶
func (m *MarketState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MarketState) ProtoMessage ¶
func (*MarketState) ProtoMessage()
func (*MarketState) Reset ¶
func (m *MarketState) Reset()
func (*MarketState) Size ¶
func (m *MarketState) Size() (n int)
func (*MarketState) String ¶
func (m *MarketState) String() string
func (*MarketState) Unmarshal ¶
func (m *MarketState) Unmarshal(dAtA []byte) error
func (MarketState) Validate ¶
func (marketState MarketState) Validate() error
func (*MarketState) XXX_DiscardUnknown ¶
func (m *MarketState) XXX_DiscardUnknown()
func (*MarketState) XXX_Marshal ¶
func (m *MarketState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MarketState) XXX_Merge ¶
func (m *MarketState) XXX_Merge(src proto.Message)
func (*MarketState) XXX_Size ¶
func (m *MarketState) XXX_Size() int
func (*MarketState) XXX_Unmarshal ¶
func (m *MarketState) XXX_Unmarshal(b []byte) error
type MatchingContext ¶
type MatchingContext struct {
// contains filtered or unexported fields
}
func NewMatchingContext ¶
func NewMatchingContext(market Market, halveFees bool) *MatchingContext
func (*MatchingContext) BatchMatchOrderBookSides ¶
func (ctx *MatchingContext) BatchMatchOrderBookSides(buyObs, sellObs *MemOrderBookSide, lastPrice sdk.Dec) (newLastPrice sdk.Dec, matched bool)
func (*MatchingContext) ExecuteOrder ¶
func (ctx *MatchingContext) ExecuteOrder( obs *MemOrderBookSide, qtyLimit, quoteLimit *sdk.Dec) (res ExecuteOrderResult)
ExecuteOrder simulates an order execution and returns the result. obs should be a valid MemOrderBookSide which the order will be executed against. The order will always be a taker.
func (*MatchingContext) FillOrder ¶
func (ctx *MatchingContext) FillOrder(order *MemOrder, qty, price sdk.Dec, isMaker bool)
func (*MatchingContext) FillOrderBookPriceLevel ¶
func (ctx *MatchingContext) FillOrderBookPriceLevel(level *MemOrderBookPriceLevel, qty, price sdk.Dec, isMaker bool)
func (*MatchingContext) FillOrders ¶
func (ctx *MatchingContext) FillOrders(orders []*MemOrder, qty, price sdk.Dec, isMaker bool)
func (*MatchingContext) MatchOrderBookPriceLevels ¶
func (ctx *MatchingContext) MatchOrderBookPriceLevels( levelA *MemOrderBookPriceLevel, isLevelAMaker bool, levelB *MemOrderBookPriceLevel, isLevelBMaker bool, price sdk.Dec) (executedQty sdk.Dec, fullA, fullB bool)
func (*MatchingContext) RunSinglePriceAuction ¶
func (ctx *MatchingContext) RunSinglePriceAuction(buyObs, sellObs *MemOrderBookSide) (matchPrice sdk.Dec, matched bool)
type MemOrder ¶
type MemOrder struct {
// contains filtered or unexported fields
}
func NewOrderSourceMemOrder ¶
func NewOrderSourceMemOrder( ordererAddr sdk.AccAddress, isBuy bool, price, qty, openQty sdk.Dec, source OrderSource) *MemOrder
func NewUserMemOrder ¶
func (*MemOrder) ExecutableQuantity ¶
func (*MemOrder) ExecutedQuantity ¶
func (*MemOrder) HasPriorityOver ¶
func (*MemOrder) OpenQuantity ¶
func (*MemOrder) OrdererAddress ¶
func (order *MemOrder) OrdererAddress() sdk.AccAddress
func (*MemOrder) PaidWithoutFee ¶
func (*MemOrder) RemainingDeposit ¶
func (*MemOrder) Source ¶
func (order *MemOrder) Source() OrderSource
func (*MemOrder) Type ¶
func (order *MemOrder) Type() MemOrderType
type MemOrderBookPriceLevel ¶
type MemOrderBookPriceLevel struct {
// contains filtered or unexported fields
}
func NewMemOrderBookPriceLevel ¶
func NewMemOrderBookPriceLevel(order *MemOrder) *MemOrderBookPriceLevel
func (*MemOrderBookPriceLevel) AddOrder ¶
func (level *MemOrderBookPriceLevel) AddOrder(order *MemOrder)
func (*MemOrderBookPriceLevel) Orders ¶
func (level *MemOrderBookPriceLevel) Orders() []*MemOrder
func (*MemOrderBookPriceLevel) Price ¶
func (level *MemOrderBookPriceLevel) Price() sdk.Dec
type MemOrderBookSide ¶
type MemOrderBookSide struct {
// contains filtered or unexported fields
}
func NewMemOrderBookSide ¶
func NewMemOrderBookSide(isBuy bool) *MemOrderBookSide
func (*MemOrderBookSide) AddOrder ¶
func (side *MemOrderBookSide) AddOrder(order *MemOrder)
func (*MemOrderBookSide) Levels ¶
func (obs *MemOrderBookSide) Levels() []*MemOrderBookPriceLevel
func (*MemOrderBookSide) Limit ¶
func (obs *MemOrderBookSide) Limit(n int)
func (*MemOrderBookSide) Orders ¶
func (obs *MemOrderBookSide) Orders() []*MemOrder
func (*MemOrderBookSide) String ¶
func (side *MemOrderBookSide) String() string
type MemOrderBookSideOptions ¶
type MemOrderBookSideOptions struct { IsBuy bool PriceLimit *sdk.Dec QuantityLimit *sdk.Dec QuoteLimit *sdk.Dec MaxNumPriceLevels int }
MemOrderBookSideOptions is options passed when constructing MemOrderBookSide.
func (MemOrderBookSideOptions) ReachedLimit ¶
func (opts MemOrderBookSideOptions) ReachedLimit(price, accQty, accQuote sdk.Dec, numPriceLevels int) (reached bool)
type MemOrderGroup ¶
type MemOrderGroup struct {
// contains filtered or unexported fields
}
func GroupMemOrdersByMsgHeight ¶
func GroupMemOrdersByMsgHeight(orders []*MemOrder) (groups []*MemOrderGroup)
func (*MemOrderGroup) MsgHeight ¶
func (group *MemOrderGroup) MsgHeight() int64
func (*MemOrderGroup) Orders ¶
func (group *MemOrderGroup) Orders() []*MemOrder
type MemOrderType ¶
type MemOrderType int
const ( UserMemOrder MemOrderType = iota + 1 OrderSourceMemOrder )
func (MemOrderType) String ¶
func (typ MemOrderType) String() string
type MockOrderSource ¶
type MockOrderSource struct {
// contains filtered or unexported fields
}
func NewMockOrderSource ¶
func NewMockOrderSource(name string) MockOrderSource
func (MockOrderSource) AfterOrdersExecuted ¶
func (MockOrderSource) AfterOrdersExecuted(sdk.Context, Market, sdk.AccAddress, []*MemOrder) error
func (MockOrderSource) ConstructMemOrderBookSide ¶
func (MockOrderSource) ConstructMemOrderBookSide(sdk.Context, Market, CreateOrderFunc, MemOrderBookSideOptions) error
func (MockOrderSource) Name ¶
func (m MockOrderSource) Name() string
type MsgCancelAllOrders ¶
type MsgCancelAllOrders struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` MarketId uint64 `protobuf:"varint,2,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` }
func NewMsgCancelAllOrders ¶
func NewMsgCancelAllOrders(senderAddr sdk.AccAddress, marketId uint64) *MsgCancelAllOrders
func (*MsgCancelAllOrders) Descriptor ¶
func (*MsgCancelAllOrders) Descriptor() ([]byte, []int)
func (MsgCancelAllOrders) GetSignBytes ¶
func (msg MsgCancelAllOrders) GetSignBytes() []byte
func (MsgCancelAllOrders) GetSigners ¶
func (msg MsgCancelAllOrders) GetSigners() []sdk.AccAddress
func (*MsgCancelAllOrders) Marshal ¶
func (m *MsgCancelAllOrders) Marshal() (dAtA []byte, err error)
func (*MsgCancelAllOrders) MarshalTo ¶
func (m *MsgCancelAllOrders) MarshalTo(dAtA []byte) (int, error)
func (*MsgCancelAllOrders) MarshalToSizedBuffer ¶
func (m *MsgCancelAllOrders) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCancelAllOrders) ProtoMessage ¶
func (*MsgCancelAllOrders) ProtoMessage()
func (*MsgCancelAllOrders) Reset ¶
func (m *MsgCancelAllOrders) Reset()
func (MsgCancelAllOrders) Route ¶
func (msg MsgCancelAllOrders) Route() string
func (*MsgCancelAllOrders) Size ¶
func (m *MsgCancelAllOrders) Size() (n int)
func (*MsgCancelAllOrders) String ¶
func (m *MsgCancelAllOrders) String() string
func (MsgCancelAllOrders) Type ¶
func (msg MsgCancelAllOrders) Type() string
func (*MsgCancelAllOrders) Unmarshal ¶
func (m *MsgCancelAllOrders) Unmarshal(dAtA []byte) error
func (MsgCancelAllOrders) ValidateBasic ¶
func (msg MsgCancelAllOrders) ValidateBasic() error
func (*MsgCancelAllOrders) XXX_DiscardUnknown ¶
func (m *MsgCancelAllOrders) XXX_DiscardUnknown()
func (*MsgCancelAllOrders) XXX_Marshal ¶
func (m *MsgCancelAllOrders) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCancelAllOrders) XXX_Merge ¶
func (m *MsgCancelAllOrders) XXX_Merge(src proto.Message)
func (*MsgCancelAllOrders) XXX_Size ¶
func (m *MsgCancelAllOrders) XXX_Size() int
func (*MsgCancelAllOrders) XXX_Unmarshal ¶
func (m *MsgCancelAllOrders) XXX_Unmarshal(b []byte) error
type MsgCancelAllOrdersResponse ¶
type MsgCancelAllOrdersResponse struct {
CancelledOrderIds []uint64 `protobuf:"varint,1,rep,packed,name=cancelled_order_ids,json=cancelledOrderIds,proto3" json:"cancelled_order_ids,omitempty"`
}
func (*MsgCancelAllOrdersResponse) Descriptor ¶
func (*MsgCancelAllOrdersResponse) Descriptor() ([]byte, []int)
func (*MsgCancelAllOrdersResponse) Marshal ¶
func (m *MsgCancelAllOrdersResponse) Marshal() (dAtA []byte, err error)
func (*MsgCancelAllOrdersResponse) MarshalTo ¶
func (m *MsgCancelAllOrdersResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgCancelAllOrdersResponse) MarshalToSizedBuffer ¶
func (m *MsgCancelAllOrdersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCancelAllOrdersResponse) ProtoMessage ¶
func (*MsgCancelAllOrdersResponse) ProtoMessage()
func (*MsgCancelAllOrdersResponse) Reset ¶
func (m *MsgCancelAllOrdersResponse) Reset()
func (*MsgCancelAllOrdersResponse) Size ¶
func (m *MsgCancelAllOrdersResponse) Size() (n int)
func (*MsgCancelAllOrdersResponse) String ¶
func (m *MsgCancelAllOrdersResponse) String() string
func (*MsgCancelAllOrdersResponse) Unmarshal ¶
func (m *MsgCancelAllOrdersResponse) Unmarshal(dAtA []byte) error
func (*MsgCancelAllOrdersResponse) XXX_DiscardUnknown ¶
func (m *MsgCancelAllOrdersResponse) XXX_DiscardUnknown()
func (*MsgCancelAllOrdersResponse) XXX_Marshal ¶
func (m *MsgCancelAllOrdersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCancelAllOrdersResponse) XXX_Merge ¶
func (m *MsgCancelAllOrdersResponse) XXX_Merge(src proto.Message)
func (*MsgCancelAllOrdersResponse) XXX_Size ¶
func (m *MsgCancelAllOrdersResponse) XXX_Size() int
func (*MsgCancelAllOrdersResponse) XXX_Unmarshal ¶
func (m *MsgCancelAllOrdersResponse) XXX_Unmarshal(b []byte) error
type MsgCancelOrder ¶
type MsgCancelOrder struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` OrderId uint64 `protobuf:"varint,2,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"` }
func NewMsgCancelOrder ¶
func NewMsgCancelOrder(senderAddr sdk.AccAddress, orderId uint64) *MsgCancelOrder
func (*MsgCancelOrder) Descriptor ¶
func (*MsgCancelOrder) Descriptor() ([]byte, []int)
func (MsgCancelOrder) GetSignBytes ¶
func (msg MsgCancelOrder) GetSignBytes() []byte
func (MsgCancelOrder) GetSigners ¶
func (msg MsgCancelOrder) GetSigners() []sdk.AccAddress
func (*MsgCancelOrder) Marshal ¶
func (m *MsgCancelOrder) Marshal() (dAtA []byte, err error)
func (*MsgCancelOrder) MarshalToSizedBuffer ¶
func (m *MsgCancelOrder) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCancelOrder) ProtoMessage ¶
func (*MsgCancelOrder) ProtoMessage()
func (*MsgCancelOrder) Reset ¶
func (m *MsgCancelOrder) Reset()
func (MsgCancelOrder) Route ¶
func (msg MsgCancelOrder) Route() string
func (*MsgCancelOrder) Size ¶
func (m *MsgCancelOrder) Size() (n int)
func (*MsgCancelOrder) String ¶
func (m *MsgCancelOrder) String() string
func (MsgCancelOrder) Type ¶
func (msg MsgCancelOrder) Type() string
func (*MsgCancelOrder) Unmarshal ¶
func (m *MsgCancelOrder) Unmarshal(dAtA []byte) error
func (MsgCancelOrder) ValidateBasic ¶
func (msg MsgCancelOrder) ValidateBasic() error
func (*MsgCancelOrder) XXX_DiscardUnknown ¶
func (m *MsgCancelOrder) XXX_DiscardUnknown()
func (*MsgCancelOrder) XXX_Marshal ¶
func (m *MsgCancelOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCancelOrder) XXX_Merge ¶
func (m *MsgCancelOrder) XXX_Merge(src proto.Message)
func (*MsgCancelOrder) XXX_Size ¶
func (m *MsgCancelOrder) XXX_Size() int
func (*MsgCancelOrder) XXX_Unmarshal ¶
func (m *MsgCancelOrder) XXX_Unmarshal(b []byte) error
type MsgCancelOrderResponse ¶
type MsgCancelOrderResponse struct { }
func (*MsgCancelOrderResponse) Descriptor ¶
func (*MsgCancelOrderResponse) Descriptor() ([]byte, []int)
func (*MsgCancelOrderResponse) Marshal ¶
func (m *MsgCancelOrderResponse) Marshal() (dAtA []byte, err error)
func (*MsgCancelOrderResponse) MarshalTo ¶
func (m *MsgCancelOrderResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgCancelOrderResponse) MarshalToSizedBuffer ¶
func (m *MsgCancelOrderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCancelOrderResponse) ProtoMessage ¶
func (*MsgCancelOrderResponse) ProtoMessage()
func (*MsgCancelOrderResponse) Reset ¶
func (m *MsgCancelOrderResponse) Reset()
func (*MsgCancelOrderResponse) Size ¶
func (m *MsgCancelOrderResponse) Size() (n int)
func (*MsgCancelOrderResponse) String ¶
func (m *MsgCancelOrderResponse) String() string
func (*MsgCancelOrderResponse) Unmarshal ¶
func (m *MsgCancelOrderResponse) Unmarshal(dAtA []byte) error
func (*MsgCancelOrderResponse) XXX_DiscardUnknown ¶
func (m *MsgCancelOrderResponse) XXX_DiscardUnknown()
func (*MsgCancelOrderResponse) XXX_Marshal ¶
func (m *MsgCancelOrderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCancelOrderResponse) XXX_Merge ¶
func (m *MsgCancelOrderResponse) XXX_Merge(src proto.Message)
func (*MsgCancelOrderResponse) XXX_Size ¶
func (m *MsgCancelOrderResponse) XXX_Size() int
func (*MsgCancelOrderResponse) XXX_Unmarshal ¶
func (m *MsgCancelOrderResponse) XXX_Unmarshal(b []byte) error
type MsgClient ¶
type MsgClient interface { CreateMarket(ctx context.Context, in *MsgCreateMarket, opts ...grpc.CallOption) (*MsgCreateMarketResponse, error) PlaceLimitOrder(ctx context.Context, in *MsgPlaceLimitOrder, opts ...grpc.CallOption) (*MsgPlaceLimitOrderResponse, error) PlaceBatchLimitOrder(ctx context.Context, in *MsgPlaceBatchLimitOrder, opts ...grpc.CallOption) (*MsgPlaceBatchLimitOrderResponse, error) PlaceMMLimitOrder(ctx context.Context, in *MsgPlaceMMLimitOrder, opts ...grpc.CallOption) (*MsgPlaceMMLimitOrderResponse, error) PlaceMMBatchLimitOrder(ctx context.Context, in *MsgPlaceMMBatchLimitOrder, opts ...grpc.CallOption) (*MsgPlaceMMBatchLimitOrderResponse, error) PlaceMarketOrder(ctx context.Context, in *MsgPlaceMarketOrder, opts ...grpc.CallOption) (*MsgPlaceMarketOrderResponse, error) CancelOrder(ctx context.Context, in *MsgCancelOrder, opts ...grpc.CallOption) (*MsgCancelOrderResponse, error) CancelAllOrders(ctx context.Context, in *MsgCancelAllOrders, opts ...grpc.CallOption) (*MsgCancelAllOrdersResponse, error) SwapExactAmountIn(ctx context.Context, in *MsgSwapExactAmountIn, opts ...grpc.CallOption) (*MsgSwapExactAmountInResponse, error) }
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 MsgCreateMarket ¶
type MsgCreateMarket struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` BaseDenom string `protobuf:"bytes,2,opt,name=base_denom,json=baseDenom,proto3" json:"base_denom,omitempty"` QuoteDenom string `protobuf:"bytes,3,opt,name=quote_denom,json=quoteDenom,proto3" json:"quote_denom,omitempty"` }
func NewMsgCreateMarket ¶
func NewMsgCreateMarket( senderAddr sdk.AccAddress, baseDenom, quoteDenom string) *MsgCreateMarket
func (*MsgCreateMarket) Descriptor ¶
func (*MsgCreateMarket) Descriptor() ([]byte, []int)
func (MsgCreateMarket) GetSignBytes ¶
func (msg MsgCreateMarket) GetSignBytes() []byte
func (MsgCreateMarket) GetSigners ¶
func (msg MsgCreateMarket) GetSigners() []sdk.AccAddress
func (*MsgCreateMarket) Marshal ¶
func (m *MsgCreateMarket) Marshal() (dAtA []byte, err error)
func (*MsgCreateMarket) MarshalToSizedBuffer ¶
func (m *MsgCreateMarket) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateMarket) ProtoMessage ¶
func (*MsgCreateMarket) ProtoMessage()
func (*MsgCreateMarket) Reset ¶
func (m *MsgCreateMarket) Reset()
func (MsgCreateMarket) Route ¶
func (msg MsgCreateMarket) Route() string
func (*MsgCreateMarket) Size ¶
func (m *MsgCreateMarket) Size() (n int)
func (*MsgCreateMarket) String ¶
func (m *MsgCreateMarket) String() string
func (MsgCreateMarket) Type ¶
func (msg MsgCreateMarket) Type() string
func (*MsgCreateMarket) Unmarshal ¶
func (m *MsgCreateMarket) Unmarshal(dAtA []byte) error
func (MsgCreateMarket) ValidateBasic ¶
func (msg MsgCreateMarket) ValidateBasic() error
func (*MsgCreateMarket) XXX_DiscardUnknown ¶
func (m *MsgCreateMarket) XXX_DiscardUnknown()
func (*MsgCreateMarket) XXX_Marshal ¶
func (m *MsgCreateMarket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateMarket) XXX_Merge ¶
func (m *MsgCreateMarket) XXX_Merge(src proto.Message)
func (*MsgCreateMarket) XXX_Size ¶
func (m *MsgCreateMarket) XXX_Size() int
func (*MsgCreateMarket) XXX_Unmarshal ¶
func (m *MsgCreateMarket) XXX_Unmarshal(b []byte) error
type MsgCreateMarketResponse ¶
type MsgCreateMarketResponse struct {
MarketId uint64 `protobuf:"varint,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"`
}
func (*MsgCreateMarketResponse) Descriptor ¶
func (*MsgCreateMarketResponse) Descriptor() ([]byte, []int)
func (*MsgCreateMarketResponse) Marshal ¶
func (m *MsgCreateMarketResponse) Marshal() (dAtA []byte, err error)
func (*MsgCreateMarketResponse) MarshalTo ¶
func (m *MsgCreateMarketResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreateMarketResponse) MarshalToSizedBuffer ¶
func (m *MsgCreateMarketResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateMarketResponse) ProtoMessage ¶
func (*MsgCreateMarketResponse) ProtoMessage()
func (*MsgCreateMarketResponse) Reset ¶
func (m *MsgCreateMarketResponse) Reset()
func (*MsgCreateMarketResponse) Size ¶
func (m *MsgCreateMarketResponse) Size() (n int)
func (*MsgCreateMarketResponse) String ¶
func (m *MsgCreateMarketResponse) String() string
func (*MsgCreateMarketResponse) Unmarshal ¶
func (m *MsgCreateMarketResponse) Unmarshal(dAtA []byte) error
func (*MsgCreateMarketResponse) XXX_DiscardUnknown ¶
func (m *MsgCreateMarketResponse) XXX_DiscardUnknown()
func (*MsgCreateMarketResponse) XXX_Marshal ¶
func (m *MsgCreateMarketResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateMarketResponse) XXX_Merge ¶
func (m *MsgCreateMarketResponse) XXX_Merge(src proto.Message)
func (*MsgCreateMarketResponse) XXX_Size ¶
func (m *MsgCreateMarketResponse) XXX_Size() int
func (*MsgCreateMarketResponse) XXX_Unmarshal ¶
func (m *MsgCreateMarketResponse) XXX_Unmarshal(b []byte) error
type MsgPlaceBatchLimitOrder ¶
type MsgPlaceBatchLimitOrder struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` MarketId uint64 `protobuf:"varint,2,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` IsBuy bool `protobuf:"varint,3,opt,name=is_buy,json=isBuy,proto3" json:"is_buy,omitempty"` Price github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,4,opt,name=price,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"price"` Quantity github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,5,opt,name=quantity,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"quantity"` Lifespan time.Duration `protobuf:"bytes,6,opt,name=lifespan,proto3,stdduration" json:"lifespan"` }
func NewMsgPlaceBatchLimitOrder ¶
func NewMsgPlaceBatchLimitOrder( senderAddr sdk.AccAddress, marketId uint64, isBuy bool, price, qty sdk.Dec, lifespan time.Duration) *MsgPlaceBatchLimitOrder
func (*MsgPlaceBatchLimitOrder) Descriptor ¶
func (*MsgPlaceBatchLimitOrder) Descriptor() ([]byte, []int)
func (MsgPlaceBatchLimitOrder) GetSignBytes ¶
func (msg MsgPlaceBatchLimitOrder) GetSignBytes() []byte
func (MsgPlaceBatchLimitOrder) GetSigners ¶
func (msg MsgPlaceBatchLimitOrder) GetSigners() []sdk.AccAddress
func (*MsgPlaceBatchLimitOrder) Marshal ¶
func (m *MsgPlaceBatchLimitOrder) Marshal() (dAtA []byte, err error)
func (*MsgPlaceBatchLimitOrder) MarshalTo ¶
func (m *MsgPlaceBatchLimitOrder) MarshalTo(dAtA []byte) (int, error)
func (*MsgPlaceBatchLimitOrder) MarshalToSizedBuffer ¶
func (m *MsgPlaceBatchLimitOrder) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgPlaceBatchLimitOrder) ProtoMessage ¶
func (*MsgPlaceBatchLimitOrder) ProtoMessage()
func (*MsgPlaceBatchLimitOrder) Reset ¶
func (m *MsgPlaceBatchLimitOrder) Reset()
func (MsgPlaceBatchLimitOrder) Route ¶
func (msg MsgPlaceBatchLimitOrder) Route() string
func (*MsgPlaceBatchLimitOrder) Size ¶
func (m *MsgPlaceBatchLimitOrder) Size() (n int)
func (*MsgPlaceBatchLimitOrder) String ¶
func (m *MsgPlaceBatchLimitOrder) String() string
func (MsgPlaceBatchLimitOrder) Type ¶
func (msg MsgPlaceBatchLimitOrder) Type() string
func (*MsgPlaceBatchLimitOrder) Unmarshal ¶
func (m *MsgPlaceBatchLimitOrder) Unmarshal(dAtA []byte) error
func (MsgPlaceBatchLimitOrder) ValidateBasic ¶
func (msg MsgPlaceBatchLimitOrder) ValidateBasic() error
func (*MsgPlaceBatchLimitOrder) XXX_DiscardUnknown ¶
func (m *MsgPlaceBatchLimitOrder) XXX_DiscardUnknown()
func (*MsgPlaceBatchLimitOrder) XXX_Marshal ¶
func (m *MsgPlaceBatchLimitOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgPlaceBatchLimitOrder) XXX_Merge ¶
func (m *MsgPlaceBatchLimitOrder) XXX_Merge(src proto.Message)
func (*MsgPlaceBatchLimitOrder) XXX_Size ¶
func (m *MsgPlaceBatchLimitOrder) XXX_Size() int
func (*MsgPlaceBatchLimitOrder) XXX_Unmarshal ¶
func (m *MsgPlaceBatchLimitOrder) XXX_Unmarshal(b []byte) error
type MsgPlaceBatchLimitOrderResponse ¶
type MsgPlaceBatchLimitOrderResponse struct {
OrderId uint64 `protobuf:"varint,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"`
}
func (*MsgPlaceBatchLimitOrderResponse) Descriptor ¶
func (*MsgPlaceBatchLimitOrderResponse) Descriptor() ([]byte, []int)
func (*MsgPlaceBatchLimitOrderResponse) Marshal ¶
func (m *MsgPlaceBatchLimitOrderResponse) Marshal() (dAtA []byte, err error)
func (*MsgPlaceBatchLimitOrderResponse) MarshalTo ¶
func (m *MsgPlaceBatchLimitOrderResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgPlaceBatchLimitOrderResponse) MarshalToSizedBuffer ¶
func (m *MsgPlaceBatchLimitOrderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgPlaceBatchLimitOrderResponse) ProtoMessage ¶
func (*MsgPlaceBatchLimitOrderResponse) ProtoMessage()
func (*MsgPlaceBatchLimitOrderResponse) Reset ¶
func (m *MsgPlaceBatchLimitOrderResponse) Reset()
func (*MsgPlaceBatchLimitOrderResponse) Size ¶
func (m *MsgPlaceBatchLimitOrderResponse) Size() (n int)
func (*MsgPlaceBatchLimitOrderResponse) String ¶
func (m *MsgPlaceBatchLimitOrderResponse) String() string
func (*MsgPlaceBatchLimitOrderResponse) Unmarshal ¶
func (m *MsgPlaceBatchLimitOrderResponse) Unmarshal(dAtA []byte) error
func (*MsgPlaceBatchLimitOrderResponse) XXX_DiscardUnknown ¶
func (m *MsgPlaceBatchLimitOrderResponse) XXX_DiscardUnknown()
func (*MsgPlaceBatchLimitOrderResponse) XXX_Marshal ¶
func (m *MsgPlaceBatchLimitOrderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgPlaceBatchLimitOrderResponse) XXX_Merge ¶
func (m *MsgPlaceBatchLimitOrderResponse) XXX_Merge(src proto.Message)
func (*MsgPlaceBatchLimitOrderResponse) XXX_Size ¶
func (m *MsgPlaceBatchLimitOrderResponse) XXX_Size() int
func (*MsgPlaceBatchLimitOrderResponse) XXX_Unmarshal ¶
func (m *MsgPlaceBatchLimitOrderResponse) XXX_Unmarshal(b []byte) error
type MsgPlaceLimitOrder ¶
type MsgPlaceLimitOrder struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` MarketId uint64 `protobuf:"varint,2,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` IsBuy bool `protobuf:"varint,3,opt,name=is_buy,json=isBuy,proto3" json:"is_buy,omitempty"` Price github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,4,opt,name=price,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"price"` Quantity github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,5,opt,name=quantity,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"quantity"` Lifespan time.Duration `protobuf:"bytes,6,opt,name=lifespan,proto3,stdduration" json:"lifespan"` }
func NewMsgPlaceLimitOrder ¶
func NewMsgPlaceLimitOrder( senderAddr sdk.AccAddress, marketId uint64, isBuy bool, price, qty sdk.Dec, lifespan time.Duration) *MsgPlaceLimitOrder
func (*MsgPlaceLimitOrder) Descriptor ¶
func (*MsgPlaceLimitOrder) Descriptor() ([]byte, []int)
func (MsgPlaceLimitOrder) GetSignBytes ¶
func (msg MsgPlaceLimitOrder) GetSignBytes() []byte
func (MsgPlaceLimitOrder) GetSigners ¶
func (msg MsgPlaceLimitOrder) GetSigners() []sdk.AccAddress
func (*MsgPlaceLimitOrder) Marshal ¶
func (m *MsgPlaceLimitOrder) Marshal() (dAtA []byte, err error)
func (*MsgPlaceLimitOrder) MarshalTo ¶
func (m *MsgPlaceLimitOrder) MarshalTo(dAtA []byte) (int, error)
func (*MsgPlaceLimitOrder) MarshalToSizedBuffer ¶
func (m *MsgPlaceLimitOrder) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgPlaceLimitOrder) ProtoMessage ¶
func (*MsgPlaceLimitOrder) ProtoMessage()
func (*MsgPlaceLimitOrder) Reset ¶
func (m *MsgPlaceLimitOrder) Reset()
func (MsgPlaceLimitOrder) Route ¶
func (msg MsgPlaceLimitOrder) Route() string
func (*MsgPlaceLimitOrder) Size ¶
func (m *MsgPlaceLimitOrder) Size() (n int)
func (*MsgPlaceLimitOrder) String ¶
func (m *MsgPlaceLimitOrder) String() string
func (MsgPlaceLimitOrder) Type ¶
func (msg MsgPlaceLimitOrder) Type() string
func (*MsgPlaceLimitOrder) Unmarshal ¶
func (m *MsgPlaceLimitOrder) Unmarshal(dAtA []byte) error
func (MsgPlaceLimitOrder) ValidateBasic ¶
func (msg MsgPlaceLimitOrder) ValidateBasic() error
func (*MsgPlaceLimitOrder) XXX_DiscardUnknown ¶
func (m *MsgPlaceLimitOrder) XXX_DiscardUnknown()
func (*MsgPlaceLimitOrder) XXX_Marshal ¶
func (m *MsgPlaceLimitOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgPlaceLimitOrder) XXX_Merge ¶
func (m *MsgPlaceLimitOrder) XXX_Merge(src proto.Message)
func (*MsgPlaceLimitOrder) XXX_Size ¶
func (m *MsgPlaceLimitOrder) XXX_Size() int
func (*MsgPlaceLimitOrder) XXX_Unmarshal ¶
func (m *MsgPlaceLimitOrder) XXX_Unmarshal(b []byte) error
type MsgPlaceLimitOrderResponse ¶
type MsgPlaceLimitOrderResponse struct { OrderId uint64 `protobuf:"varint,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"` ExecutedQuantity github_com_cosmos_cosmos_sdk_types.Dec `` /* 149-byte string literal not displayed */ Paid types.DecCoin `protobuf:"bytes,3,opt,name=paid,proto3" json:"paid"` Received types.DecCoin `protobuf:"bytes,4,opt,name=received,proto3" json:"received"` }
func (*MsgPlaceLimitOrderResponse) Descriptor ¶
func (*MsgPlaceLimitOrderResponse) Descriptor() ([]byte, []int)
func (*MsgPlaceLimitOrderResponse) Marshal ¶
func (m *MsgPlaceLimitOrderResponse) Marshal() (dAtA []byte, err error)
func (*MsgPlaceLimitOrderResponse) MarshalTo ¶
func (m *MsgPlaceLimitOrderResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgPlaceLimitOrderResponse) MarshalToSizedBuffer ¶
func (m *MsgPlaceLimitOrderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgPlaceLimitOrderResponse) ProtoMessage ¶
func (*MsgPlaceLimitOrderResponse) ProtoMessage()
func (*MsgPlaceLimitOrderResponse) Reset ¶
func (m *MsgPlaceLimitOrderResponse) Reset()
func (*MsgPlaceLimitOrderResponse) Size ¶
func (m *MsgPlaceLimitOrderResponse) Size() (n int)
func (*MsgPlaceLimitOrderResponse) String ¶
func (m *MsgPlaceLimitOrderResponse) String() string
func (*MsgPlaceLimitOrderResponse) Unmarshal ¶
func (m *MsgPlaceLimitOrderResponse) Unmarshal(dAtA []byte) error
func (*MsgPlaceLimitOrderResponse) XXX_DiscardUnknown ¶
func (m *MsgPlaceLimitOrderResponse) XXX_DiscardUnknown()
func (*MsgPlaceLimitOrderResponse) XXX_Marshal ¶
func (m *MsgPlaceLimitOrderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgPlaceLimitOrderResponse) XXX_Merge ¶
func (m *MsgPlaceLimitOrderResponse) XXX_Merge(src proto.Message)
func (*MsgPlaceLimitOrderResponse) XXX_Size ¶
func (m *MsgPlaceLimitOrderResponse) XXX_Size() int
func (*MsgPlaceLimitOrderResponse) XXX_Unmarshal ¶
func (m *MsgPlaceLimitOrderResponse) XXX_Unmarshal(b []byte) error
type MsgPlaceMMBatchLimitOrder ¶
type MsgPlaceMMBatchLimitOrder struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` MarketId uint64 `protobuf:"varint,2,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` IsBuy bool `protobuf:"varint,3,opt,name=is_buy,json=isBuy,proto3" json:"is_buy,omitempty"` Price github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,4,opt,name=price,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"price"` Quantity github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,5,opt,name=quantity,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"quantity"` Lifespan time.Duration `protobuf:"bytes,6,opt,name=lifespan,proto3,stdduration" json:"lifespan"` }
func NewMsgPlaceMMBatchLimitOrder ¶
func NewMsgPlaceMMBatchLimitOrder( senderAddr sdk.AccAddress, marketId uint64, isBuy bool, price, qty sdk.Dec, lifespan time.Duration) *MsgPlaceMMBatchLimitOrder
func (*MsgPlaceMMBatchLimitOrder) Descriptor ¶
func (*MsgPlaceMMBatchLimitOrder) Descriptor() ([]byte, []int)
func (MsgPlaceMMBatchLimitOrder) GetSignBytes ¶
func (msg MsgPlaceMMBatchLimitOrder) GetSignBytes() []byte
func (MsgPlaceMMBatchLimitOrder) GetSigners ¶
func (msg MsgPlaceMMBatchLimitOrder) GetSigners() []sdk.AccAddress
func (*MsgPlaceMMBatchLimitOrder) Marshal ¶
func (m *MsgPlaceMMBatchLimitOrder) Marshal() (dAtA []byte, err error)
func (*MsgPlaceMMBatchLimitOrder) MarshalTo ¶
func (m *MsgPlaceMMBatchLimitOrder) MarshalTo(dAtA []byte) (int, error)
func (*MsgPlaceMMBatchLimitOrder) MarshalToSizedBuffer ¶
func (m *MsgPlaceMMBatchLimitOrder) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgPlaceMMBatchLimitOrder) ProtoMessage ¶
func (*MsgPlaceMMBatchLimitOrder) ProtoMessage()
func (*MsgPlaceMMBatchLimitOrder) Reset ¶
func (m *MsgPlaceMMBatchLimitOrder) Reset()
func (MsgPlaceMMBatchLimitOrder) Route ¶
func (msg MsgPlaceMMBatchLimitOrder) Route() string
func (*MsgPlaceMMBatchLimitOrder) Size ¶
func (m *MsgPlaceMMBatchLimitOrder) Size() (n int)
func (*MsgPlaceMMBatchLimitOrder) String ¶
func (m *MsgPlaceMMBatchLimitOrder) String() string
func (MsgPlaceMMBatchLimitOrder) Type ¶
func (msg MsgPlaceMMBatchLimitOrder) Type() string
func (*MsgPlaceMMBatchLimitOrder) Unmarshal ¶
func (m *MsgPlaceMMBatchLimitOrder) Unmarshal(dAtA []byte) error
func (MsgPlaceMMBatchLimitOrder) ValidateBasic ¶
func (msg MsgPlaceMMBatchLimitOrder) ValidateBasic() error
func (*MsgPlaceMMBatchLimitOrder) XXX_DiscardUnknown ¶
func (m *MsgPlaceMMBatchLimitOrder) XXX_DiscardUnknown()
func (*MsgPlaceMMBatchLimitOrder) XXX_Marshal ¶
func (m *MsgPlaceMMBatchLimitOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgPlaceMMBatchLimitOrder) XXX_Merge ¶
func (m *MsgPlaceMMBatchLimitOrder) XXX_Merge(src proto.Message)
func (*MsgPlaceMMBatchLimitOrder) XXX_Size ¶
func (m *MsgPlaceMMBatchLimitOrder) XXX_Size() int
func (*MsgPlaceMMBatchLimitOrder) XXX_Unmarshal ¶
func (m *MsgPlaceMMBatchLimitOrder) XXX_Unmarshal(b []byte) error
type MsgPlaceMMBatchLimitOrderResponse ¶
type MsgPlaceMMBatchLimitOrderResponse struct {
OrderId uint64 `protobuf:"varint,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"`
}
func (*MsgPlaceMMBatchLimitOrderResponse) Descriptor ¶
func (*MsgPlaceMMBatchLimitOrderResponse) Descriptor() ([]byte, []int)
func (*MsgPlaceMMBatchLimitOrderResponse) Marshal ¶
func (m *MsgPlaceMMBatchLimitOrderResponse) Marshal() (dAtA []byte, err error)
func (*MsgPlaceMMBatchLimitOrderResponse) MarshalTo ¶
func (m *MsgPlaceMMBatchLimitOrderResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgPlaceMMBatchLimitOrderResponse) MarshalToSizedBuffer ¶
func (m *MsgPlaceMMBatchLimitOrderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgPlaceMMBatchLimitOrderResponse) ProtoMessage ¶
func (*MsgPlaceMMBatchLimitOrderResponse) ProtoMessage()
func (*MsgPlaceMMBatchLimitOrderResponse) Reset ¶
func (m *MsgPlaceMMBatchLimitOrderResponse) Reset()
func (*MsgPlaceMMBatchLimitOrderResponse) Size ¶
func (m *MsgPlaceMMBatchLimitOrderResponse) Size() (n int)
func (*MsgPlaceMMBatchLimitOrderResponse) String ¶
func (m *MsgPlaceMMBatchLimitOrderResponse) String() string
func (*MsgPlaceMMBatchLimitOrderResponse) Unmarshal ¶
func (m *MsgPlaceMMBatchLimitOrderResponse) Unmarshal(dAtA []byte) error
func (*MsgPlaceMMBatchLimitOrderResponse) XXX_DiscardUnknown ¶
func (m *MsgPlaceMMBatchLimitOrderResponse) XXX_DiscardUnknown()
func (*MsgPlaceMMBatchLimitOrderResponse) XXX_Marshal ¶
func (m *MsgPlaceMMBatchLimitOrderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgPlaceMMBatchLimitOrderResponse) XXX_Merge ¶
func (m *MsgPlaceMMBatchLimitOrderResponse) XXX_Merge(src proto.Message)
func (*MsgPlaceMMBatchLimitOrderResponse) XXX_Size ¶
func (m *MsgPlaceMMBatchLimitOrderResponse) XXX_Size() int
func (*MsgPlaceMMBatchLimitOrderResponse) XXX_Unmarshal ¶
func (m *MsgPlaceMMBatchLimitOrderResponse) XXX_Unmarshal(b []byte) error
type MsgPlaceMMLimitOrder ¶
type MsgPlaceMMLimitOrder struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` MarketId uint64 `protobuf:"varint,2,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` IsBuy bool `protobuf:"varint,3,opt,name=is_buy,json=isBuy,proto3" json:"is_buy,omitempty"` Price github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,4,opt,name=price,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"price"` Quantity github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,5,opt,name=quantity,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"quantity"` Lifespan time.Duration `protobuf:"bytes,6,opt,name=lifespan,proto3,stdduration" json:"lifespan"` }
func NewMsgPlaceMMLimitOrder ¶
func NewMsgPlaceMMLimitOrder( senderAddr sdk.AccAddress, marketId uint64, isBuy bool, price, qty sdk.Dec, lifespan time.Duration) *MsgPlaceMMLimitOrder
func (*MsgPlaceMMLimitOrder) Descriptor ¶
func (*MsgPlaceMMLimitOrder) Descriptor() ([]byte, []int)
func (MsgPlaceMMLimitOrder) GetSignBytes ¶
func (msg MsgPlaceMMLimitOrder) GetSignBytes() []byte
func (MsgPlaceMMLimitOrder) GetSigners ¶
func (msg MsgPlaceMMLimitOrder) GetSigners() []sdk.AccAddress
func (*MsgPlaceMMLimitOrder) Marshal ¶
func (m *MsgPlaceMMLimitOrder) Marshal() (dAtA []byte, err error)
func (*MsgPlaceMMLimitOrder) MarshalTo ¶
func (m *MsgPlaceMMLimitOrder) MarshalTo(dAtA []byte) (int, error)
func (*MsgPlaceMMLimitOrder) MarshalToSizedBuffer ¶
func (m *MsgPlaceMMLimitOrder) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgPlaceMMLimitOrder) ProtoMessage ¶
func (*MsgPlaceMMLimitOrder) ProtoMessage()
func (*MsgPlaceMMLimitOrder) Reset ¶
func (m *MsgPlaceMMLimitOrder) Reset()
func (MsgPlaceMMLimitOrder) Route ¶
func (msg MsgPlaceMMLimitOrder) Route() string
func (*MsgPlaceMMLimitOrder) Size ¶
func (m *MsgPlaceMMLimitOrder) Size() (n int)
func (*MsgPlaceMMLimitOrder) String ¶
func (m *MsgPlaceMMLimitOrder) String() string
func (MsgPlaceMMLimitOrder) Type ¶
func (msg MsgPlaceMMLimitOrder) Type() string
func (*MsgPlaceMMLimitOrder) Unmarshal ¶
func (m *MsgPlaceMMLimitOrder) Unmarshal(dAtA []byte) error
func (MsgPlaceMMLimitOrder) ValidateBasic ¶
func (msg MsgPlaceMMLimitOrder) ValidateBasic() error
func (*MsgPlaceMMLimitOrder) XXX_DiscardUnknown ¶
func (m *MsgPlaceMMLimitOrder) XXX_DiscardUnknown()
func (*MsgPlaceMMLimitOrder) XXX_Marshal ¶
func (m *MsgPlaceMMLimitOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgPlaceMMLimitOrder) XXX_Merge ¶
func (m *MsgPlaceMMLimitOrder) XXX_Merge(src proto.Message)
func (*MsgPlaceMMLimitOrder) XXX_Size ¶
func (m *MsgPlaceMMLimitOrder) XXX_Size() int
func (*MsgPlaceMMLimitOrder) XXX_Unmarshal ¶
func (m *MsgPlaceMMLimitOrder) XXX_Unmarshal(b []byte) error
type MsgPlaceMMLimitOrderResponse ¶
type MsgPlaceMMLimitOrderResponse struct { OrderId uint64 `protobuf:"varint,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"` ExecutedQuantity github_com_cosmos_cosmos_sdk_types.Dec `` /* 149-byte string literal not displayed */ Paid types.DecCoin `protobuf:"bytes,3,opt,name=paid,proto3" json:"paid"` Received types.DecCoin `protobuf:"bytes,4,opt,name=received,proto3" json:"received"` }
func (*MsgPlaceMMLimitOrderResponse) Descriptor ¶
func (*MsgPlaceMMLimitOrderResponse) Descriptor() ([]byte, []int)
func (*MsgPlaceMMLimitOrderResponse) Marshal ¶
func (m *MsgPlaceMMLimitOrderResponse) Marshal() (dAtA []byte, err error)
func (*MsgPlaceMMLimitOrderResponse) MarshalTo ¶
func (m *MsgPlaceMMLimitOrderResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgPlaceMMLimitOrderResponse) MarshalToSizedBuffer ¶
func (m *MsgPlaceMMLimitOrderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgPlaceMMLimitOrderResponse) ProtoMessage ¶
func (*MsgPlaceMMLimitOrderResponse) ProtoMessage()
func (*MsgPlaceMMLimitOrderResponse) Reset ¶
func (m *MsgPlaceMMLimitOrderResponse) Reset()
func (*MsgPlaceMMLimitOrderResponse) Size ¶
func (m *MsgPlaceMMLimitOrderResponse) Size() (n int)
func (*MsgPlaceMMLimitOrderResponse) String ¶
func (m *MsgPlaceMMLimitOrderResponse) String() string
func (*MsgPlaceMMLimitOrderResponse) Unmarshal ¶
func (m *MsgPlaceMMLimitOrderResponse) Unmarshal(dAtA []byte) error
func (*MsgPlaceMMLimitOrderResponse) XXX_DiscardUnknown ¶
func (m *MsgPlaceMMLimitOrderResponse) XXX_DiscardUnknown()
func (*MsgPlaceMMLimitOrderResponse) XXX_Marshal ¶
func (m *MsgPlaceMMLimitOrderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgPlaceMMLimitOrderResponse) XXX_Merge ¶
func (m *MsgPlaceMMLimitOrderResponse) XXX_Merge(src proto.Message)
func (*MsgPlaceMMLimitOrderResponse) XXX_Size ¶
func (m *MsgPlaceMMLimitOrderResponse) XXX_Size() int
func (*MsgPlaceMMLimitOrderResponse) XXX_Unmarshal ¶
func (m *MsgPlaceMMLimitOrderResponse) XXX_Unmarshal(b []byte) error
type MsgPlaceMarketOrder ¶
type MsgPlaceMarketOrder struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` MarketId uint64 `protobuf:"varint,2,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` IsBuy bool `protobuf:"varint,3,opt,name=is_buy,json=isBuy,proto3" json:"is_buy,omitempty"` Quantity github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,4,opt,name=quantity,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"quantity"` }
func NewMsgPlaceMarketOrder ¶
func NewMsgPlaceMarketOrder( senderAddr sdk.AccAddress, marketId uint64, isBuy bool, qty sdk.Dec) *MsgPlaceMarketOrder
func (*MsgPlaceMarketOrder) Descriptor ¶
func (*MsgPlaceMarketOrder) Descriptor() ([]byte, []int)
func (MsgPlaceMarketOrder) GetSignBytes ¶
func (msg MsgPlaceMarketOrder) GetSignBytes() []byte
func (MsgPlaceMarketOrder) GetSigners ¶
func (msg MsgPlaceMarketOrder) GetSigners() []sdk.AccAddress
func (*MsgPlaceMarketOrder) Marshal ¶
func (m *MsgPlaceMarketOrder) Marshal() (dAtA []byte, err error)
func (*MsgPlaceMarketOrder) MarshalTo ¶
func (m *MsgPlaceMarketOrder) MarshalTo(dAtA []byte) (int, error)
func (*MsgPlaceMarketOrder) MarshalToSizedBuffer ¶
func (m *MsgPlaceMarketOrder) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgPlaceMarketOrder) ProtoMessage ¶
func (*MsgPlaceMarketOrder) ProtoMessage()
func (*MsgPlaceMarketOrder) Reset ¶
func (m *MsgPlaceMarketOrder) Reset()
func (MsgPlaceMarketOrder) Route ¶
func (msg MsgPlaceMarketOrder) Route() string
func (*MsgPlaceMarketOrder) Size ¶
func (m *MsgPlaceMarketOrder) Size() (n int)
func (*MsgPlaceMarketOrder) String ¶
func (m *MsgPlaceMarketOrder) String() string
func (MsgPlaceMarketOrder) Type ¶
func (msg MsgPlaceMarketOrder) Type() string
func (*MsgPlaceMarketOrder) Unmarshal ¶
func (m *MsgPlaceMarketOrder) Unmarshal(dAtA []byte) error
func (MsgPlaceMarketOrder) ValidateBasic ¶
func (msg MsgPlaceMarketOrder) ValidateBasic() error
func (*MsgPlaceMarketOrder) XXX_DiscardUnknown ¶
func (m *MsgPlaceMarketOrder) XXX_DiscardUnknown()
func (*MsgPlaceMarketOrder) XXX_Marshal ¶
func (m *MsgPlaceMarketOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgPlaceMarketOrder) XXX_Merge ¶
func (m *MsgPlaceMarketOrder) XXX_Merge(src proto.Message)
func (*MsgPlaceMarketOrder) XXX_Size ¶
func (m *MsgPlaceMarketOrder) XXX_Size() int
func (*MsgPlaceMarketOrder) XXX_Unmarshal ¶
func (m *MsgPlaceMarketOrder) XXX_Unmarshal(b []byte) error
type MsgPlaceMarketOrderResponse ¶
type MsgPlaceMarketOrderResponse struct { OrderId uint64 `protobuf:"varint,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"` ExecutedQuantity github_com_cosmos_cosmos_sdk_types.Dec `` /* 149-byte string literal not displayed */ Paid types.DecCoin `protobuf:"bytes,3,opt,name=paid,proto3" json:"paid"` Received types.DecCoin `protobuf:"bytes,4,opt,name=received,proto3" json:"received"` }
func (*MsgPlaceMarketOrderResponse) Descriptor ¶
func (*MsgPlaceMarketOrderResponse) Descriptor() ([]byte, []int)
func (*MsgPlaceMarketOrderResponse) Marshal ¶
func (m *MsgPlaceMarketOrderResponse) Marshal() (dAtA []byte, err error)
func (*MsgPlaceMarketOrderResponse) MarshalTo ¶
func (m *MsgPlaceMarketOrderResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgPlaceMarketOrderResponse) MarshalToSizedBuffer ¶
func (m *MsgPlaceMarketOrderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgPlaceMarketOrderResponse) ProtoMessage ¶
func (*MsgPlaceMarketOrderResponse) ProtoMessage()
func (*MsgPlaceMarketOrderResponse) Reset ¶
func (m *MsgPlaceMarketOrderResponse) Reset()
func (*MsgPlaceMarketOrderResponse) Size ¶
func (m *MsgPlaceMarketOrderResponse) Size() (n int)
func (*MsgPlaceMarketOrderResponse) String ¶
func (m *MsgPlaceMarketOrderResponse) String() string
func (*MsgPlaceMarketOrderResponse) Unmarshal ¶
func (m *MsgPlaceMarketOrderResponse) Unmarshal(dAtA []byte) error
func (*MsgPlaceMarketOrderResponse) XXX_DiscardUnknown ¶
func (m *MsgPlaceMarketOrderResponse) XXX_DiscardUnknown()
func (*MsgPlaceMarketOrderResponse) XXX_Marshal ¶
func (m *MsgPlaceMarketOrderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgPlaceMarketOrderResponse) XXX_Merge ¶
func (m *MsgPlaceMarketOrderResponse) XXX_Merge(src proto.Message)
func (*MsgPlaceMarketOrderResponse) XXX_Size ¶
func (m *MsgPlaceMarketOrderResponse) XXX_Size() int
func (*MsgPlaceMarketOrderResponse) XXX_Unmarshal ¶
func (m *MsgPlaceMarketOrderResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { CreateMarket(context.Context, *MsgCreateMarket) (*MsgCreateMarketResponse, error) PlaceLimitOrder(context.Context, *MsgPlaceLimitOrder) (*MsgPlaceLimitOrderResponse, error) PlaceBatchLimitOrder(context.Context, *MsgPlaceBatchLimitOrder) (*MsgPlaceBatchLimitOrderResponse, error) PlaceMMLimitOrder(context.Context, *MsgPlaceMMLimitOrder) (*MsgPlaceMMLimitOrderResponse, error) PlaceMMBatchLimitOrder(context.Context, *MsgPlaceMMBatchLimitOrder) (*MsgPlaceMMBatchLimitOrderResponse, error) PlaceMarketOrder(context.Context, *MsgPlaceMarketOrder) (*MsgPlaceMarketOrderResponse, error) CancelOrder(context.Context, *MsgCancelOrder) (*MsgCancelOrderResponse, error) CancelAllOrders(context.Context, *MsgCancelAllOrders) (*MsgCancelAllOrdersResponse, error) SwapExactAmountIn(context.Context, *MsgSwapExactAmountIn) (*MsgSwapExactAmountInResponse, error) }
MsgServer is the server API for Msg service.
type MsgSwapExactAmountIn ¶
type MsgSwapExactAmountIn struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` Routes []uint64 `protobuf:"varint,2,rep,packed,name=routes,proto3" json:"routes,omitempty"` Input types.DecCoin `protobuf:"bytes,3,opt,name=input,proto3" json:"input"` MinOutput types.DecCoin `protobuf:"bytes,4,opt,name=min_output,json=minOutput,proto3" json:"min_output"` }
func NewMsgSwapExactAmountIn ¶
func NewMsgSwapExactAmountIn( senderAddr sdk.AccAddress, routes []uint64, input, minOutput sdk.DecCoin) *MsgSwapExactAmountIn
func (*MsgSwapExactAmountIn) Descriptor ¶
func (*MsgSwapExactAmountIn) Descriptor() ([]byte, []int)
func (MsgSwapExactAmountIn) GetSignBytes ¶
func (msg MsgSwapExactAmountIn) GetSignBytes() []byte
func (MsgSwapExactAmountIn) GetSigners ¶
func (msg MsgSwapExactAmountIn) GetSigners() []sdk.AccAddress
func (*MsgSwapExactAmountIn) Marshal ¶
func (m *MsgSwapExactAmountIn) Marshal() (dAtA []byte, err error)
func (*MsgSwapExactAmountIn) MarshalTo ¶
func (m *MsgSwapExactAmountIn) MarshalTo(dAtA []byte) (int, error)
func (*MsgSwapExactAmountIn) MarshalToSizedBuffer ¶
func (m *MsgSwapExactAmountIn) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSwapExactAmountIn) ProtoMessage ¶
func (*MsgSwapExactAmountIn) ProtoMessage()
func (*MsgSwapExactAmountIn) Reset ¶
func (m *MsgSwapExactAmountIn) Reset()
func (MsgSwapExactAmountIn) Route ¶
func (msg MsgSwapExactAmountIn) Route() string
func (*MsgSwapExactAmountIn) Size ¶
func (m *MsgSwapExactAmountIn) Size() (n int)
func (*MsgSwapExactAmountIn) String ¶
func (m *MsgSwapExactAmountIn) String() string
func (MsgSwapExactAmountIn) Type ¶
func (msg MsgSwapExactAmountIn) Type() string
func (*MsgSwapExactAmountIn) Unmarshal ¶
func (m *MsgSwapExactAmountIn) Unmarshal(dAtA []byte) error
func (MsgSwapExactAmountIn) ValidateBasic ¶
func (msg MsgSwapExactAmountIn) ValidateBasic() error
func (*MsgSwapExactAmountIn) XXX_DiscardUnknown ¶
func (m *MsgSwapExactAmountIn) XXX_DiscardUnknown()
func (*MsgSwapExactAmountIn) XXX_Marshal ¶
func (m *MsgSwapExactAmountIn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgSwapExactAmountIn) XXX_Merge ¶
func (m *MsgSwapExactAmountIn) XXX_Merge(src proto.Message)
func (*MsgSwapExactAmountIn) XXX_Size ¶
func (m *MsgSwapExactAmountIn) XXX_Size() int
func (*MsgSwapExactAmountIn) XXX_Unmarshal ¶
func (m *MsgSwapExactAmountIn) XXX_Unmarshal(b []byte) error
type MsgSwapExactAmountInResponse ¶
type MsgSwapExactAmountInResponse struct { Output types.DecCoin `protobuf:"bytes,1,opt,name=output,proto3" json:"output"` Results []SwapRouteResult `protobuf:"bytes,2,rep,name=results,proto3" json:"results"` }
func (*MsgSwapExactAmountInResponse) Descriptor ¶
func (*MsgSwapExactAmountInResponse) Descriptor() ([]byte, []int)
func (*MsgSwapExactAmountInResponse) Marshal ¶
func (m *MsgSwapExactAmountInResponse) Marshal() (dAtA []byte, err error)
func (*MsgSwapExactAmountInResponse) MarshalTo ¶
func (m *MsgSwapExactAmountInResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgSwapExactAmountInResponse) MarshalToSizedBuffer ¶
func (m *MsgSwapExactAmountInResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSwapExactAmountInResponse) ProtoMessage ¶
func (*MsgSwapExactAmountInResponse) ProtoMessage()
func (*MsgSwapExactAmountInResponse) Reset ¶
func (m *MsgSwapExactAmountInResponse) Reset()
func (*MsgSwapExactAmountInResponse) Size ¶
func (m *MsgSwapExactAmountInResponse) Size() (n int)
func (*MsgSwapExactAmountInResponse) String ¶
func (m *MsgSwapExactAmountInResponse) String() string
func (*MsgSwapExactAmountInResponse) Unmarshal ¶
func (m *MsgSwapExactAmountInResponse) Unmarshal(dAtA []byte) error
func (*MsgSwapExactAmountInResponse) XXX_DiscardUnknown ¶
func (m *MsgSwapExactAmountInResponse) XXX_DiscardUnknown()
func (*MsgSwapExactAmountInResponse) XXX_Marshal ¶
func (m *MsgSwapExactAmountInResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgSwapExactAmountInResponse) XXX_Merge ¶
func (m *MsgSwapExactAmountInResponse) XXX_Merge(src proto.Message)
func (*MsgSwapExactAmountInResponse) XXX_Size ¶
func (m *MsgSwapExactAmountInResponse) XXX_Size() int
func (*MsgSwapExactAmountInResponse) XXX_Unmarshal ¶
func (m *MsgSwapExactAmountInResponse) XXX_Unmarshal(b []byte) error
type NumMMOrdersRecord ¶
type NumMMOrdersRecord struct { Orderer string `protobuf:"bytes,1,opt,name=orderer,proto3" json:"orderer,omitempty"` MarketId uint64 `protobuf:"varint,2,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` NumMMOrders uint32 `protobuf:"varint,3,opt,name=num_mm_orders,json=numMmOrders,proto3" json:"num_mm_orders,omitempty"` }
func (*NumMMOrdersRecord) Descriptor ¶
func (*NumMMOrdersRecord) Descriptor() ([]byte, []int)
func (*NumMMOrdersRecord) Marshal ¶
func (m *NumMMOrdersRecord) Marshal() (dAtA []byte, err error)
func (*NumMMOrdersRecord) MarshalTo ¶
func (m *NumMMOrdersRecord) MarshalTo(dAtA []byte) (int, error)
func (*NumMMOrdersRecord) MarshalToSizedBuffer ¶
func (m *NumMMOrdersRecord) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*NumMMOrdersRecord) ProtoMessage ¶
func (*NumMMOrdersRecord) ProtoMessage()
func (*NumMMOrdersRecord) Reset ¶
func (m *NumMMOrdersRecord) Reset()
func (*NumMMOrdersRecord) Size ¶
func (m *NumMMOrdersRecord) Size() (n int)
func (*NumMMOrdersRecord) String ¶
func (m *NumMMOrdersRecord) String() string
func (*NumMMOrdersRecord) Unmarshal ¶
func (m *NumMMOrdersRecord) Unmarshal(dAtA []byte) error
func (NumMMOrdersRecord) Validate ¶
func (record NumMMOrdersRecord) Validate() error
func (*NumMMOrdersRecord) XXX_DiscardUnknown ¶
func (m *NumMMOrdersRecord) XXX_DiscardUnknown()
func (*NumMMOrdersRecord) XXX_Marshal ¶
func (m *NumMMOrdersRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*NumMMOrdersRecord) XXX_Merge ¶
func (m *NumMMOrdersRecord) XXX_Merge(src proto.Message)
func (*NumMMOrdersRecord) XXX_Size ¶
func (m *NumMMOrdersRecord) XXX_Size() int
func (*NumMMOrdersRecord) XXX_Unmarshal ¶
func (m *NumMMOrdersRecord) XXX_Unmarshal(b []byte) error
type Order ¶
type Order struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Type OrderType `protobuf:"varint,2,opt,name=type,proto3,enum=crescent.exchange.v1beta1.OrderType" json:"type,omitempty"` Orderer string `protobuf:"bytes,3,opt,name=orderer,proto3" json:"orderer,omitempty"` MarketId uint64 `protobuf:"varint,4,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` IsBuy bool `protobuf:"varint,5,opt,name=is_buy,json=isBuy,proto3" json:"is_buy,omitempty"` Price github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,6,opt,name=price,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"price"` Quantity github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,7,opt,name=quantity,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"quantity"` MsgHeight int64 `protobuf:"varint,8,opt,name=msg_height,json=msgHeight,proto3" json:"msg_height,omitempty"` OpenQuantity github_com_cosmos_cosmos_sdk_types.Dec `` /* 137-byte string literal not displayed */ RemainingDeposit github_com_cosmos_cosmos_sdk_types.Dec `` /* 150-byte string literal not displayed */ Deadline time.Time `protobuf:"bytes,11,opt,name=deadline,proto3,stdtime" json:"deadline"` }
func (*Order) Descriptor ¶
func (Order) ExecutableQuantity ¶
func (Order) MustGetOrdererAddress ¶
func (order Order) MustGetOrdererAddress() sdk.AccAddress
func (*Order) ProtoMessage ¶
func (*Order) ProtoMessage()
func (*Order) XXX_DiscardUnknown ¶
func (m *Order) XXX_DiscardUnknown()
func (*Order) XXX_Marshal ¶
func (*Order) XXX_Unmarshal ¶
type OrderBook ¶
type OrderBook struct { PriceInterval github_com_cosmos_cosmos_sdk_types.Dec `` /* 140-byte string literal not displayed */ Sells []OrderBookPriceLevel `protobuf:"bytes,2,rep,name=sells,proto3" json:"sells"` Buys []OrderBookPriceLevel `protobuf:"bytes,3,rep,name=buys,proto3" json:"buys"` }
func (*OrderBook) Descriptor ¶
func (*OrderBook) MarshalToSizedBuffer ¶
func (*OrderBook) ProtoMessage ¶
func (*OrderBook) ProtoMessage()
func (*OrderBook) XXX_DiscardUnknown ¶
func (m *OrderBook) XXX_DiscardUnknown()
func (*OrderBook) XXX_Marshal ¶
func (*OrderBook) XXX_Unmarshal ¶
type OrderBookPriceLevel ¶
type OrderBookPriceLevel struct { // p denotes price P github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,1,opt,name=p,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"p"` // q denotes quantity Q github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=q,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"q"` }
func (*OrderBookPriceLevel) Descriptor ¶
func (*OrderBookPriceLevel) Descriptor() ([]byte, []int)
func (*OrderBookPriceLevel) Marshal ¶
func (m *OrderBookPriceLevel) Marshal() (dAtA []byte, err error)
func (*OrderBookPriceLevel) MarshalTo ¶
func (m *OrderBookPriceLevel) MarshalTo(dAtA []byte) (int, error)
func (*OrderBookPriceLevel) MarshalToSizedBuffer ¶
func (m *OrderBookPriceLevel) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*OrderBookPriceLevel) ProtoMessage ¶
func (*OrderBookPriceLevel) ProtoMessage()
func (*OrderBookPriceLevel) Reset ¶
func (m *OrderBookPriceLevel) Reset()
func (*OrderBookPriceLevel) Size ¶
func (m *OrderBookPriceLevel) Size() (n int)
func (*OrderBookPriceLevel) String ¶
func (m *OrderBookPriceLevel) String() string
func (*OrderBookPriceLevel) Unmarshal ¶
func (m *OrderBookPriceLevel) Unmarshal(dAtA []byte) error
func (*OrderBookPriceLevel) XXX_DiscardUnknown ¶
func (m *OrderBookPriceLevel) XXX_DiscardUnknown()
func (*OrderBookPriceLevel) XXX_Marshal ¶
func (m *OrderBookPriceLevel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*OrderBookPriceLevel) XXX_Merge ¶
func (m *OrderBookPriceLevel) XXX_Merge(src proto.Message)
func (*OrderBookPriceLevel) XXX_Size ¶
func (m *OrderBookPriceLevel) XXX_Size() int
func (*OrderBookPriceLevel) XXX_Unmarshal ¶
func (m *OrderBookPriceLevel) XXX_Unmarshal(b []byte) error
type OrderSource ¶
type OrderSource interface { Name() string ConstructMemOrderBookSide(ctx sdk.Context, market Market, createOrder CreateOrderFunc, opts MemOrderBookSideOptions) error AfterOrdersExecuted(ctx sdk.Context, market Market, ordererAddr sdk.AccAddress, results []*MemOrder) error }
type Params ¶
type Params struct { MarketCreationFee github_com_cosmos_cosmos_sdk_types.Coins `` /* 158-byte string literal not displayed */ Fees Fees `protobuf:"bytes,2,opt,name=fees,proto3" json:"fees"` MaxOrderLifespan time.Duration `protobuf:"bytes,3,opt,name=max_order_lifespan,json=maxOrderLifespan,proto3,stdduration" json:"max_order_lifespan"` // max_order_price_ratio defines the ratio of the maximum possible order price compared to the market's last price MaxOrderPriceRatio github_com_cosmos_cosmos_sdk_types.Dec `` /* 159-byte string literal not displayed */ MaxSwapRoutesLen uint32 `protobuf:"varint,5,opt,name=max_swap_routes_len,json=maxSwapRoutesLen,proto3" json:"max_swap_routes_len,omitempty"` MaxNumMMOrders uint32 `protobuf:"varint,6,opt,name=max_num_mm_orders,json=maxNumMmOrders,proto3" json:"max_num_mm_orders,omitempty"` }
func DefaultParams ¶
func DefaultParams() Params
DefaultParams returns a default params for the module.
func (*Params) Descriptor ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (params *Params) ParamSetPairs() paramstypes.ParamSetPairs
ParamSetPairs implements ParamSet.
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type QueryAllMarketsRequest ¶
type QueryAllMarketsRequest struct {
Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
func (*QueryAllMarketsRequest) Descriptor ¶
func (*QueryAllMarketsRequest) Descriptor() ([]byte, []int)
func (*QueryAllMarketsRequest) Marshal ¶
func (m *QueryAllMarketsRequest) Marshal() (dAtA []byte, err error)
func (*QueryAllMarketsRequest) MarshalTo ¶
func (m *QueryAllMarketsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllMarketsRequest) MarshalToSizedBuffer ¶
func (m *QueryAllMarketsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllMarketsRequest) ProtoMessage ¶
func (*QueryAllMarketsRequest) ProtoMessage()
func (*QueryAllMarketsRequest) Reset ¶
func (m *QueryAllMarketsRequest) Reset()
func (*QueryAllMarketsRequest) Size ¶
func (m *QueryAllMarketsRequest) Size() (n int)
func (*QueryAllMarketsRequest) String ¶
func (m *QueryAllMarketsRequest) String() string
func (*QueryAllMarketsRequest) Unmarshal ¶
func (m *QueryAllMarketsRequest) Unmarshal(dAtA []byte) error
func (*QueryAllMarketsRequest) XXX_DiscardUnknown ¶
func (m *QueryAllMarketsRequest) XXX_DiscardUnknown()
func (*QueryAllMarketsRequest) XXX_Marshal ¶
func (m *QueryAllMarketsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllMarketsRequest) XXX_Merge ¶
func (m *QueryAllMarketsRequest) XXX_Merge(src proto.Message)
func (*QueryAllMarketsRequest) XXX_Size ¶
func (m *QueryAllMarketsRequest) XXX_Size() int
func (*QueryAllMarketsRequest) XXX_Unmarshal ¶
func (m *QueryAllMarketsRequest) XXX_Unmarshal(b []byte) error
type QueryAllMarketsResponse ¶
type QueryAllMarketsResponse struct { Markets []MarketResponse `protobuf:"bytes,1,rep,name=markets,proto3" json:"markets"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func (*QueryAllMarketsResponse) Descriptor ¶
func (*QueryAllMarketsResponse) Descriptor() ([]byte, []int)
func (*QueryAllMarketsResponse) Marshal ¶
func (m *QueryAllMarketsResponse) Marshal() (dAtA []byte, err error)
func (*QueryAllMarketsResponse) MarshalTo ¶
func (m *QueryAllMarketsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllMarketsResponse) MarshalToSizedBuffer ¶
func (m *QueryAllMarketsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllMarketsResponse) ProtoMessage ¶
func (*QueryAllMarketsResponse) ProtoMessage()
func (*QueryAllMarketsResponse) Reset ¶
func (m *QueryAllMarketsResponse) Reset()
func (*QueryAllMarketsResponse) Size ¶
func (m *QueryAllMarketsResponse) Size() (n int)
func (*QueryAllMarketsResponse) String ¶
func (m *QueryAllMarketsResponse) String() string
func (*QueryAllMarketsResponse) Unmarshal ¶
func (m *QueryAllMarketsResponse) Unmarshal(dAtA []byte) error
func (*QueryAllMarketsResponse) XXX_DiscardUnknown ¶
func (m *QueryAllMarketsResponse) XXX_DiscardUnknown()
func (*QueryAllMarketsResponse) XXX_Marshal ¶
func (m *QueryAllMarketsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllMarketsResponse) XXX_Merge ¶
func (m *QueryAllMarketsResponse) XXX_Merge(src proto.Message)
func (*QueryAllMarketsResponse) XXX_Size ¶
func (m *QueryAllMarketsResponse) XXX_Size() int
func (*QueryAllMarketsResponse) XXX_Unmarshal ¶
func (m *QueryAllMarketsResponse) XXX_Unmarshal(b []byte) error
type QueryAllOrdersRequest ¶
type QueryAllOrdersRequest struct { Orderer string `protobuf:"bytes,1,opt,name=orderer,proto3" json:"orderer,omitempty"` MarketId uint64 `protobuf:"varint,2,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func (*QueryAllOrdersRequest) Descriptor ¶
func (*QueryAllOrdersRequest) Descriptor() ([]byte, []int)
func (*QueryAllOrdersRequest) Marshal ¶
func (m *QueryAllOrdersRequest) Marshal() (dAtA []byte, err error)
func (*QueryAllOrdersRequest) MarshalTo ¶
func (m *QueryAllOrdersRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllOrdersRequest) MarshalToSizedBuffer ¶
func (m *QueryAllOrdersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllOrdersRequest) ProtoMessage ¶
func (*QueryAllOrdersRequest) ProtoMessage()
func (*QueryAllOrdersRequest) Reset ¶
func (m *QueryAllOrdersRequest) Reset()
func (*QueryAllOrdersRequest) Size ¶
func (m *QueryAllOrdersRequest) Size() (n int)
func (*QueryAllOrdersRequest) String ¶
func (m *QueryAllOrdersRequest) String() string
func (*QueryAllOrdersRequest) Unmarshal ¶
func (m *QueryAllOrdersRequest) Unmarshal(dAtA []byte) error
func (*QueryAllOrdersRequest) XXX_DiscardUnknown ¶
func (m *QueryAllOrdersRequest) XXX_DiscardUnknown()
func (*QueryAllOrdersRequest) XXX_Marshal ¶
func (m *QueryAllOrdersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllOrdersRequest) XXX_Merge ¶
func (m *QueryAllOrdersRequest) XXX_Merge(src proto.Message)
func (*QueryAllOrdersRequest) XXX_Size ¶
func (m *QueryAllOrdersRequest) XXX_Size() int
func (*QueryAllOrdersRequest) XXX_Unmarshal ¶
func (m *QueryAllOrdersRequest) XXX_Unmarshal(b []byte) error
type QueryAllOrdersResponse ¶
type QueryAllOrdersResponse struct { Orders []Order `protobuf:"bytes,1,rep,name=orders,proto3" json:"orders"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func (*QueryAllOrdersResponse) Descriptor ¶
func (*QueryAllOrdersResponse) Descriptor() ([]byte, []int)
func (*QueryAllOrdersResponse) Marshal ¶
func (m *QueryAllOrdersResponse) Marshal() (dAtA []byte, err error)
func (*QueryAllOrdersResponse) MarshalTo ¶
func (m *QueryAllOrdersResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllOrdersResponse) MarshalToSizedBuffer ¶
func (m *QueryAllOrdersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllOrdersResponse) ProtoMessage ¶
func (*QueryAllOrdersResponse) ProtoMessage()
func (*QueryAllOrdersResponse) Reset ¶
func (m *QueryAllOrdersResponse) Reset()
func (*QueryAllOrdersResponse) Size ¶
func (m *QueryAllOrdersResponse) Size() (n int)
func (*QueryAllOrdersResponse) String ¶
func (m *QueryAllOrdersResponse) String() string
func (*QueryAllOrdersResponse) Unmarshal ¶
func (m *QueryAllOrdersResponse) Unmarshal(dAtA []byte) error
func (*QueryAllOrdersResponse) XXX_DiscardUnknown ¶
func (m *QueryAllOrdersResponse) XXX_DiscardUnknown()
func (*QueryAllOrdersResponse) XXX_Marshal ¶
func (m *QueryAllOrdersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllOrdersResponse) XXX_Merge ¶
func (m *QueryAllOrdersResponse) XXX_Merge(src proto.Message)
func (*QueryAllOrdersResponse) XXX_Size ¶
func (m *QueryAllOrdersResponse) XXX_Size() int
func (*QueryAllOrdersResponse) XXX_Unmarshal ¶
func (m *QueryAllOrdersResponse) XXX_Unmarshal(b []byte) error
type QueryBestSwapExactAmountInRoutesRequest ¶
type QueryBestSwapExactAmountInRoutesRequest struct { Input string `protobuf:"bytes,1,opt,name=input,proto3" json:"input,omitempty"` OutputDenom string `protobuf:"bytes,2,opt,name=output_denom,json=outputDenom,proto3" json:"output_denom,omitempty"` }
func (*QueryBestSwapExactAmountInRoutesRequest) Descriptor ¶
func (*QueryBestSwapExactAmountInRoutesRequest) Descriptor() ([]byte, []int)
func (*QueryBestSwapExactAmountInRoutesRequest) Marshal ¶
func (m *QueryBestSwapExactAmountInRoutesRequest) Marshal() (dAtA []byte, err error)
func (*QueryBestSwapExactAmountInRoutesRequest) MarshalTo ¶
func (m *QueryBestSwapExactAmountInRoutesRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryBestSwapExactAmountInRoutesRequest) MarshalToSizedBuffer ¶
func (m *QueryBestSwapExactAmountInRoutesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryBestSwapExactAmountInRoutesRequest) ProtoMessage ¶
func (*QueryBestSwapExactAmountInRoutesRequest) ProtoMessage()
func (*QueryBestSwapExactAmountInRoutesRequest) Reset ¶
func (m *QueryBestSwapExactAmountInRoutesRequest) Reset()
func (*QueryBestSwapExactAmountInRoutesRequest) Size ¶
func (m *QueryBestSwapExactAmountInRoutesRequest) Size() (n int)
func (*QueryBestSwapExactAmountInRoutesRequest) String ¶
func (m *QueryBestSwapExactAmountInRoutesRequest) String() string
func (*QueryBestSwapExactAmountInRoutesRequest) Unmarshal ¶
func (m *QueryBestSwapExactAmountInRoutesRequest) Unmarshal(dAtA []byte) error
func (*QueryBestSwapExactAmountInRoutesRequest) XXX_DiscardUnknown ¶
func (m *QueryBestSwapExactAmountInRoutesRequest) XXX_DiscardUnknown()
func (*QueryBestSwapExactAmountInRoutesRequest) XXX_Marshal ¶
func (m *QueryBestSwapExactAmountInRoutesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryBestSwapExactAmountInRoutesRequest) XXX_Merge ¶
func (m *QueryBestSwapExactAmountInRoutesRequest) XXX_Merge(src proto.Message)
func (*QueryBestSwapExactAmountInRoutesRequest) XXX_Size ¶
func (m *QueryBestSwapExactAmountInRoutesRequest) XXX_Size() int
func (*QueryBestSwapExactAmountInRoutesRequest) XXX_Unmarshal ¶
func (m *QueryBestSwapExactAmountInRoutesRequest) XXX_Unmarshal(b []byte) error
type QueryBestSwapExactAmountInRoutesResponse ¶
type QueryBestSwapExactAmountInRoutesResponse struct { Routes []uint64 `protobuf:"varint,1,rep,packed,name=routes,proto3" json:"routes,omitempty"` Output types.DecCoin `protobuf:"bytes,2,opt,name=output,proto3" json:"output"` Results []SwapRouteResult `protobuf:"bytes,3,rep,name=results,proto3" json:"results"` }
func (*QueryBestSwapExactAmountInRoutesResponse) Descriptor ¶
func (*QueryBestSwapExactAmountInRoutesResponse) Descriptor() ([]byte, []int)
func (*QueryBestSwapExactAmountInRoutesResponse) Marshal ¶
func (m *QueryBestSwapExactAmountInRoutesResponse) Marshal() (dAtA []byte, err error)
func (*QueryBestSwapExactAmountInRoutesResponse) MarshalTo ¶
func (m *QueryBestSwapExactAmountInRoutesResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryBestSwapExactAmountInRoutesResponse) MarshalToSizedBuffer ¶
func (m *QueryBestSwapExactAmountInRoutesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryBestSwapExactAmountInRoutesResponse) ProtoMessage ¶
func (*QueryBestSwapExactAmountInRoutesResponse) ProtoMessage()
func (*QueryBestSwapExactAmountInRoutesResponse) Reset ¶
func (m *QueryBestSwapExactAmountInRoutesResponse) Reset()
func (*QueryBestSwapExactAmountInRoutesResponse) Size ¶
func (m *QueryBestSwapExactAmountInRoutesResponse) Size() (n int)
func (*QueryBestSwapExactAmountInRoutesResponse) String ¶
func (m *QueryBestSwapExactAmountInRoutesResponse) String() string
func (*QueryBestSwapExactAmountInRoutesResponse) Unmarshal ¶
func (m *QueryBestSwapExactAmountInRoutesResponse) Unmarshal(dAtA []byte) error
func (*QueryBestSwapExactAmountInRoutesResponse) XXX_DiscardUnknown ¶
func (m *QueryBestSwapExactAmountInRoutesResponse) XXX_DiscardUnknown()
func (*QueryBestSwapExactAmountInRoutesResponse) XXX_Marshal ¶
func (m *QueryBestSwapExactAmountInRoutesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryBestSwapExactAmountInRoutesResponse) XXX_Merge ¶
func (m *QueryBestSwapExactAmountInRoutesResponse) XXX_Merge(src proto.Message)
func (*QueryBestSwapExactAmountInRoutesResponse) XXX_Size ¶
func (m *QueryBestSwapExactAmountInRoutesResponse) XXX_Size() int
func (*QueryBestSwapExactAmountInRoutesResponse) XXX_Unmarshal ¶
func (m *QueryBestSwapExactAmountInRoutesResponse) XXX_Unmarshal(b []byte) error
type QueryClient ¶
type QueryClient interface { Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) AllMarkets(ctx context.Context, in *QueryAllMarketsRequest, opts ...grpc.CallOption) (*QueryAllMarketsResponse, error) Market(ctx context.Context, in *QueryMarketRequest, opts ...grpc.CallOption) (*QueryMarketResponse, error) AllOrders(ctx context.Context, in *QueryAllOrdersRequest, opts ...grpc.CallOption) (*QueryAllOrdersResponse, error) Order(ctx context.Context, in *QueryOrderRequest, opts ...grpc.CallOption) (*QueryOrderResponse, error) BestSwapExactAmountInRoutes(ctx context.Context, in *QueryBestSwapExactAmountInRoutesRequest, opts ...grpc.CallOption) (*QueryBestSwapExactAmountInRoutesResponse, error) OrderBook(ctx context.Context, in *QueryOrderBookRequest, opts ...grpc.CallOption) (*QueryOrderBookResponse, 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 QueryMarketRequest ¶
type QueryMarketRequest struct {
MarketId uint64 `protobuf:"varint,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"`
}
func (*QueryMarketRequest) Descriptor ¶
func (*QueryMarketRequest) Descriptor() ([]byte, []int)
func (*QueryMarketRequest) Marshal ¶
func (m *QueryMarketRequest) Marshal() (dAtA []byte, err error)
func (*QueryMarketRequest) MarshalTo ¶
func (m *QueryMarketRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryMarketRequest) MarshalToSizedBuffer ¶
func (m *QueryMarketRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryMarketRequest) ProtoMessage ¶
func (*QueryMarketRequest) ProtoMessage()
func (*QueryMarketRequest) Reset ¶
func (m *QueryMarketRequest) Reset()
func (*QueryMarketRequest) Size ¶
func (m *QueryMarketRequest) Size() (n int)
func (*QueryMarketRequest) String ¶
func (m *QueryMarketRequest) String() string
func (*QueryMarketRequest) Unmarshal ¶
func (m *QueryMarketRequest) Unmarshal(dAtA []byte) error
func (*QueryMarketRequest) XXX_DiscardUnknown ¶
func (m *QueryMarketRequest) XXX_DiscardUnknown()
func (*QueryMarketRequest) XXX_Marshal ¶
func (m *QueryMarketRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryMarketRequest) XXX_Merge ¶
func (m *QueryMarketRequest) XXX_Merge(src proto.Message)
func (*QueryMarketRequest) XXX_Size ¶
func (m *QueryMarketRequest) XXX_Size() int
func (*QueryMarketRequest) XXX_Unmarshal ¶
func (m *QueryMarketRequest) XXX_Unmarshal(b []byte) error
type QueryMarketResponse ¶
type QueryMarketResponse struct {
Market MarketResponse `protobuf:"bytes,1,opt,name=market,proto3" json:"market"`
}
func (*QueryMarketResponse) Descriptor ¶
func (*QueryMarketResponse) Descriptor() ([]byte, []int)
func (*QueryMarketResponse) Marshal ¶
func (m *QueryMarketResponse) Marshal() (dAtA []byte, err error)
func (*QueryMarketResponse) MarshalTo ¶
func (m *QueryMarketResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryMarketResponse) MarshalToSizedBuffer ¶
func (m *QueryMarketResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryMarketResponse) ProtoMessage ¶
func (*QueryMarketResponse) ProtoMessage()
func (*QueryMarketResponse) Reset ¶
func (m *QueryMarketResponse) Reset()
func (*QueryMarketResponse) Size ¶
func (m *QueryMarketResponse) Size() (n int)
func (*QueryMarketResponse) String ¶
func (m *QueryMarketResponse) String() string
func (*QueryMarketResponse) Unmarshal ¶
func (m *QueryMarketResponse) Unmarshal(dAtA []byte) error
func (*QueryMarketResponse) XXX_DiscardUnknown ¶
func (m *QueryMarketResponse) XXX_DiscardUnknown()
func (*QueryMarketResponse) XXX_Marshal ¶
func (m *QueryMarketResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryMarketResponse) XXX_Merge ¶
func (m *QueryMarketResponse) XXX_Merge(src proto.Message)
func (*QueryMarketResponse) XXX_Size ¶
func (m *QueryMarketResponse) XXX_Size() int
func (*QueryMarketResponse) XXX_Unmarshal ¶
func (m *QueryMarketResponse) XXX_Unmarshal(b []byte) error
type QueryOrderBookRequest ¶
type QueryOrderBookRequest struct {
MarketId uint64 `protobuf:"varint,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"`
}
func (*QueryOrderBookRequest) Descriptor ¶
func (*QueryOrderBookRequest) Descriptor() ([]byte, []int)
func (*QueryOrderBookRequest) Marshal ¶
func (m *QueryOrderBookRequest) Marshal() (dAtA []byte, err error)
func (*QueryOrderBookRequest) MarshalTo ¶
func (m *QueryOrderBookRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryOrderBookRequest) MarshalToSizedBuffer ¶
func (m *QueryOrderBookRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryOrderBookRequest) ProtoMessage ¶
func (*QueryOrderBookRequest) ProtoMessage()
func (*QueryOrderBookRequest) Reset ¶
func (m *QueryOrderBookRequest) Reset()
func (*QueryOrderBookRequest) Size ¶
func (m *QueryOrderBookRequest) Size() (n int)
func (*QueryOrderBookRequest) String ¶
func (m *QueryOrderBookRequest) String() string
func (*QueryOrderBookRequest) Unmarshal ¶
func (m *QueryOrderBookRequest) Unmarshal(dAtA []byte) error
func (*QueryOrderBookRequest) XXX_DiscardUnknown ¶
func (m *QueryOrderBookRequest) XXX_DiscardUnknown()
func (*QueryOrderBookRequest) XXX_Marshal ¶
func (m *QueryOrderBookRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryOrderBookRequest) XXX_Merge ¶
func (m *QueryOrderBookRequest) XXX_Merge(src proto.Message)
func (*QueryOrderBookRequest) XXX_Size ¶
func (m *QueryOrderBookRequest) XXX_Size() int
func (*QueryOrderBookRequest) XXX_Unmarshal ¶
func (m *QueryOrderBookRequest) XXX_Unmarshal(b []byte) error
type QueryOrderBookResponse ¶
type QueryOrderBookResponse struct {
OrderBooks []OrderBook `protobuf:"bytes,1,rep,name=order_books,json=orderBooks,proto3" json:"order_books"`
}
func (*QueryOrderBookResponse) Descriptor ¶
func (*QueryOrderBookResponse) Descriptor() ([]byte, []int)
func (*QueryOrderBookResponse) Marshal ¶
func (m *QueryOrderBookResponse) Marshal() (dAtA []byte, err error)
func (*QueryOrderBookResponse) MarshalTo ¶
func (m *QueryOrderBookResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryOrderBookResponse) MarshalToSizedBuffer ¶
func (m *QueryOrderBookResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryOrderBookResponse) ProtoMessage ¶
func (*QueryOrderBookResponse) ProtoMessage()
func (*QueryOrderBookResponse) Reset ¶
func (m *QueryOrderBookResponse) Reset()
func (*QueryOrderBookResponse) Size ¶
func (m *QueryOrderBookResponse) Size() (n int)
func (*QueryOrderBookResponse) String ¶
func (m *QueryOrderBookResponse) String() string
func (*QueryOrderBookResponse) Unmarshal ¶
func (m *QueryOrderBookResponse) Unmarshal(dAtA []byte) error
func (*QueryOrderBookResponse) XXX_DiscardUnknown ¶
func (m *QueryOrderBookResponse) XXX_DiscardUnknown()
func (*QueryOrderBookResponse) XXX_Marshal ¶
func (m *QueryOrderBookResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryOrderBookResponse) XXX_Merge ¶
func (m *QueryOrderBookResponse) XXX_Merge(src proto.Message)
func (*QueryOrderBookResponse) XXX_Size ¶
func (m *QueryOrderBookResponse) XXX_Size() int
func (*QueryOrderBookResponse) XXX_Unmarshal ¶
func (m *QueryOrderBookResponse) XXX_Unmarshal(b []byte) error
type QueryOrderRequest ¶
type QueryOrderRequest struct {
OrderId uint64 `protobuf:"varint,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"`
}
func (*QueryOrderRequest) Descriptor ¶
func (*QueryOrderRequest) Descriptor() ([]byte, []int)
func (*QueryOrderRequest) Marshal ¶
func (m *QueryOrderRequest) Marshal() (dAtA []byte, err error)
func (*QueryOrderRequest) MarshalTo ¶
func (m *QueryOrderRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryOrderRequest) MarshalToSizedBuffer ¶
func (m *QueryOrderRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryOrderRequest) ProtoMessage ¶
func (*QueryOrderRequest) ProtoMessage()
func (*QueryOrderRequest) Reset ¶
func (m *QueryOrderRequest) Reset()
func (*QueryOrderRequest) Size ¶
func (m *QueryOrderRequest) Size() (n int)
func (*QueryOrderRequest) String ¶
func (m *QueryOrderRequest) String() string
func (*QueryOrderRequest) Unmarshal ¶
func (m *QueryOrderRequest) Unmarshal(dAtA []byte) error
func (*QueryOrderRequest) XXX_DiscardUnknown ¶
func (m *QueryOrderRequest) XXX_DiscardUnknown()
func (*QueryOrderRequest) XXX_Marshal ¶
func (m *QueryOrderRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryOrderRequest) XXX_Merge ¶
func (m *QueryOrderRequest) XXX_Merge(src proto.Message)
func (*QueryOrderRequest) XXX_Size ¶
func (m *QueryOrderRequest) XXX_Size() int
func (*QueryOrderRequest) XXX_Unmarshal ¶
func (m *QueryOrderRequest) XXX_Unmarshal(b []byte) error
type QueryOrderResponse ¶
type QueryOrderResponse struct {
Order Order `protobuf:"bytes,1,opt,name=order,proto3" json:"order"`
}
func (*QueryOrderResponse) Descriptor ¶
func (*QueryOrderResponse) Descriptor() ([]byte, []int)
func (*QueryOrderResponse) Marshal ¶
func (m *QueryOrderResponse) Marshal() (dAtA []byte, err error)
func (*QueryOrderResponse) MarshalTo ¶
func (m *QueryOrderResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryOrderResponse) MarshalToSizedBuffer ¶
func (m *QueryOrderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryOrderResponse) ProtoMessage ¶
func (*QueryOrderResponse) ProtoMessage()
func (*QueryOrderResponse) Reset ¶
func (m *QueryOrderResponse) Reset()
func (*QueryOrderResponse) Size ¶
func (m *QueryOrderResponse) Size() (n int)
func (*QueryOrderResponse) String ¶
func (m *QueryOrderResponse) String() string
func (*QueryOrderResponse) Unmarshal ¶
func (m *QueryOrderResponse) Unmarshal(dAtA []byte) error
func (*QueryOrderResponse) XXX_DiscardUnknown ¶
func (m *QueryOrderResponse) XXX_DiscardUnknown()
func (*QueryOrderResponse) XXX_Marshal ¶
func (m *QueryOrderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryOrderResponse) XXX_Merge ¶
func (m *QueryOrderResponse) XXX_Merge(src proto.Message)
func (*QueryOrderResponse) XXX_Size ¶
func (m *QueryOrderResponse) XXX_Size() int
func (*QueryOrderResponse) XXX_Unmarshal ¶
func (m *QueryOrderResponse) XXX_Unmarshal(b []byte) error
type QueryParamsRequest ¶
type QueryParamsRequest struct { }
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 Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}
func (*QueryParamsResponse) Descriptor ¶
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
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 QueryServer ¶
type QueryServer interface { Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) AllMarkets(context.Context, *QueryAllMarketsRequest) (*QueryAllMarketsResponse, error) Market(context.Context, *QueryMarketRequest) (*QueryMarketResponse, error) AllOrders(context.Context, *QueryAllOrdersRequest) (*QueryAllOrdersResponse, error) Order(context.Context, *QueryOrderRequest) (*QueryOrderResponse, error) BestSwapExactAmountInRoutes(context.Context, *QueryBestSwapExactAmountInRoutesRequest) (*QueryBestSwapExactAmountInRoutesResponse, error) OrderBook(context.Context, *QueryOrderBookRequest) (*QueryOrderBookResponse, error) }
QueryServer is the server API for Query service.
type SwapRouteResult ¶
type SwapRouteResult struct { MarketId uint64 `protobuf:"varint,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` ExecutedQuantity github_com_cosmos_cosmos_sdk_types.Dec `` /* 149-byte string literal not displayed */ Input types.DecCoin `protobuf:"bytes,3,opt,name=input,proto3" json:"input"` Output types.DecCoin `protobuf:"bytes,4,opt,name=output,proto3" json:"output"` Fee types.DecCoin `protobuf:"bytes,5,opt,name=fee,proto3" json:"fee"` }
func (*SwapRouteResult) Descriptor ¶
func (*SwapRouteResult) Descriptor() ([]byte, []int)
func (*SwapRouteResult) Marshal ¶
func (m *SwapRouteResult) Marshal() (dAtA []byte, err error)
func (*SwapRouteResult) MarshalToSizedBuffer ¶
func (m *SwapRouteResult) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SwapRouteResult) ProtoMessage ¶
func (*SwapRouteResult) ProtoMessage()
func (*SwapRouteResult) Reset ¶
func (m *SwapRouteResult) Reset()
func (*SwapRouteResult) Size ¶
func (m *SwapRouteResult) Size() (n int)
func (*SwapRouteResult) String ¶
func (m *SwapRouteResult) String() string
func (*SwapRouteResult) Unmarshal ¶
func (m *SwapRouteResult) Unmarshal(dAtA []byte) error
func (*SwapRouteResult) XXX_DiscardUnknown ¶
func (m *SwapRouteResult) XXX_DiscardUnknown()
func (*SwapRouteResult) XXX_Marshal ¶
func (m *SwapRouteResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SwapRouteResult) XXX_Merge ¶
func (m *SwapRouteResult) XXX_Merge(src proto.Message)
func (*SwapRouteResult) XXX_Size ¶
func (m *SwapRouteResult) XXX_Size() int
func (*SwapRouteResult) XXX_Unmarshal ¶
func (m *SwapRouteResult) XXX_Unmarshal(b []byte) error
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) CancelAllOrders ¶
func (*UnimplementedMsgServer) CancelAllOrders(ctx context.Context, req *MsgCancelAllOrders) (*MsgCancelAllOrdersResponse, error)
func (*UnimplementedMsgServer) CancelOrder ¶
func (*UnimplementedMsgServer) CancelOrder(ctx context.Context, req *MsgCancelOrder) (*MsgCancelOrderResponse, error)
func (*UnimplementedMsgServer) CreateMarket ¶
func (*UnimplementedMsgServer) CreateMarket(ctx context.Context, req *MsgCreateMarket) (*MsgCreateMarketResponse, error)
func (*UnimplementedMsgServer) PlaceBatchLimitOrder ¶
func (*UnimplementedMsgServer) PlaceBatchLimitOrder(ctx context.Context, req *MsgPlaceBatchLimitOrder) (*MsgPlaceBatchLimitOrderResponse, error)
func (*UnimplementedMsgServer) PlaceLimitOrder ¶
func (*UnimplementedMsgServer) PlaceLimitOrder(ctx context.Context, req *MsgPlaceLimitOrder) (*MsgPlaceLimitOrderResponse, error)
func (*UnimplementedMsgServer) PlaceMMBatchLimitOrder ¶
func (*UnimplementedMsgServer) PlaceMMBatchLimitOrder(ctx context.Context, req *MsgPlaceMMBatchLimitOrder) (*MsgPlaceMMBatchLimitOrderResponse, error)
func (*UnimplementedMsgServer) PlaceMMLimitOrder ¶
func (*UnimplementedMsgServer) PlaceMMLimitOrder(ctx context.Context, req *MsgPlaceMMLimitOrder) (*MsgPlaceMMLimitOrderResponse, error)
func (*UnimplementedMsgServer) PlaceMarketOrder ¶
func (*UnimplementedMsgServer) PlaceMarketOrder(ctx context.Context, req *MsgPlaceMarketOrder) (*MsgPlaceMarketOrderResponse, error)
func (*UnimplementedMsgServer) SwapExactAmountIn ¶
func (*UnimplementedMsgServer) SwapExactAmountIn(ctx context.Context, req *MsgSwapExactAmountIn) (*MsgSwapExactAmountInResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) AllMarkets ¶
func (*UnimplementedQueryServer) AllMarkets(ctx context.Context, req *QueryAllMarketsRequest) (*QueryAllMarketsResponse, error)
func (*UnimplementedQueryServer) AllOrders ¶
func (*UnimplementedQueryServer) AllOrders(ctx context.Context, req *QueryAllOrdersRequest) (*QueryAllOrdersResponse, error)
func (*UnimplementedQueryServer) BestSwapExactAmountInRoutes ¶
func (*UnimplementedQueryServer) BestSwapExactAmountInRoutes(ctx context.Context, req *QueryBestSwapExactAmountInRoutesRequest) (*QueryBestSwapExactAmountInRoutesResponse, error)
func (*UnimplementedQueryServer) Market ¶
func (*UnimplementedQueryServer) Market(ctx context.Context, req *QueryMarketRequest) (*QueryMarketResponse, error)
func (*UnimplementedQueryServer) Order ¶
func (*UnimplementedQueryServer) Order(ctx context.Context, req *QueryOrderRequest) (*QueryOrderResponse, error)
func (*UnimplementedQueryServer) OrderBook ¶
func (*UnimplementedQueryServer) OrderBook(ctx context.Context, req *QueryOrderBookRequest) (*QueryOrderBookResponse, error)
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
Source Files ¶
- codec.go
- dec.go
- errors.go
- escrow.go
- event.pb.go
- exchange.pb.go
- expected_keepers.go
- fee.go
- genesis.go
- genesis.pb.go
- keys.go
- market.go
- matching.go
- math.go
- mem_order.go
- msgs.go
- order.go
- order_book.pb.go
- params.go
- params.pb.go
- proposal.go
- proposal.pb.go
- query.go
- query.pb.go
- query.pb.gw.go
- source.go
- tick.go
- tx.pb.go