Documentation ¶
Overview ¶
Package marketplace is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- 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 RegisterTypes(registry codectypes.InterfaceRegistry)
- type AllowDenomProposal
- func (*AllowDenomProposal) Descriptor() ([]byte, []int)
- func (m *AllowDenomProposal) GetDenom() *AllowedDenom
- func (m *AllowDenomProposal) GetDescription() string
- func (m *AllowDenomProposal) GetTitle() string
- func (m *AllowDenomProposal) Marshal() (dAtA []byte, err error)
- func (m *AllowDenomProposal) MarshalTo(dAtA []byte) (int, error)
- func (m *AllowDenomProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (m AllowDenomProposal) ProposalRoute() string
- func (m AllowDenomProposal) ProposalType() string
- func (*AllowDenomProposal) ProtoMessage()
- func (m *AllowDenomProposal) Reset()
- func (m *AllowDenomProposal) Size() (n int)
- func (m AllowDenomProposal) String() string
- func (m *AllowDenomProposal) Unmarshal(dAtA []byte) error
- func (m AllowDenomProposal) ValidateBasic() error
- func (m *AllowDenomProposal) XXX_DiscardUnknown()
- func (m *AllowDenomProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AllowDenomProposal) XXX_Merge(src proto.Message)
- func (m *AllowDenomProposal) XXX_Size() int
- func (m *AllowDenomProposal) XXX_Unmarshal(b []byte) error
- type AllowedDenom
- func (*AllowedDenom) Descriptor() ([]byte, []int)
- func (m *AllowedDenom) GetBankDenom() string
- func (m *AllowedDenom) GetDisplayDenom() string
- func (m *AllowedDenom) GetExponent() uint32
- func (m *AllowedDenom) Marshal() (dAtA []byte, err error)
- func (m *AllowedDenom) MarshalTo(dAtA []byte) (int, error)
- func (m *AllowedDenom) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*AllowedDenom) ProtoMessage()
- func (m *AllowedDenom) Reset()
- func (m *AllowedDenom) Size() (n int)
- func (m *AllowedDenom) String() string
- func (m *AllowedDenom) Unmarshal(dAtA []byte) error
- func (m AllowedDenom) Validate() error
- func (m *AllowedDenom) XXX_DiscardUnknown()
- func (m *AllowedDenom) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AllowedDenom) XXX_Merge(src proto.Message)
- func (m *AllowedDenom) XXX_Size() int
- func (m *AllowedDenom) XXX_Unmarshal(b []byte) error
- type EventAllowDenom
- func (*EventAllowDenom) Descriptor() ([]byte, []int)
- func (m *EventAllowDenom) GetDenom() string
- func (m *EventAllowDenom) Marshal() (dAtA []byte, err error)
- func (m *EventAllowDenom) MarshalTo(dAtA []byte) (int, error)
- func (m *EventAllowDenom) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventAllowDenom) ProtoMessage()
- func (m *EventAllowDenom) Reset()
- func (m *EventAllowDenom) Size() (n int)
- func (m *EventAllowDenom) String() string
- func (m *EventAllowDenom) Unmarshal(dAtA []byte) error
- func (m *EventAllowDenom) XXX_DiscardUnknown()
- func (m *EventAllowDenom) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventAllowDenom) XXX_Merge(src proto.Message)
- func (m *EventAllowDenom) XXX_Size() int
- func (m *EventAllowDenom) XXX_Unmarshal(b []byte) error
- type EventBuyDirect
- func (*EventBuyDirect) Descriptor() ([]byte, []int)
- func (m *EventBuyDirect) GetSellOrderId() uint64
- func (m *EventBuyDirect) Marshal() (dAtA []byte, err error)
- func (m *EventBuyDirect) MarshalTo(dAtA []byte) (int, error)
- func (m *EventBuyDirect) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventBuyDirect) ProtoMessage()
- func (m *EventBuyDirect) Reset()
- func (m *EventBuyDirect) Size() (n int)
- func (m *EventBuyDirect) String() string
- func (m *EventBuyDirect) Unmarshal(dAtA []byte) error
- func (m *EventBuyDirect) XXX_DiscardUnknown()
- func (m *EventBuyDirect) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventBuyDirect) XXX_Merge(src proto.Message)
- func (m *EventBuyDirect) XXX_Size() int
- func (m *EventBuyDirect) XXX_Unmarshal(b []byte) error
- type EventCancelSellOrder
- func (*EventCancelSellOrder) Descriptor() ([]byte, []int)
- func (m *EventCancelSellOrder) GetSellOrderId() uint64
- func (m *EventCancelSellOrder) Marshal() (dAtA []byte, err error)
- func (m *EventCancelSellOrder) MarshalTo(dAtA []byte) (int, error)
- func (m *EventCancelSellOrder) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventCancelSellOrder) ProtoMessage()
- func (m *EventCancelSellOrder) Reset()
- func (m *EventCancelSellOrder) Size() (n int)
- func (m *EventCancelSellOrder) String() string
- func (m *EventCancelSellOrder) Unmarshal(dAtA []byte) error
- func (m *EventCancelSellOrder) XXX_DiscardUnknown()
- func (m *EventCancelSellOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventCancelSellOrder) XXX_Merge(src proto.Message)
- func (m *EventCancelSellOrder) XXX_Size() int
- func (m *EventCancelSellOrder) XXX_Unmarshal(b []byte) error
- type EventSell
- func (*EventSell) Descriptor() ([]byte, []int)
- func (m *EventSell) GetSellOrderId() uint64
- func (m *EventSell) Marshal() (dAtA []byte, err error)
- func (m *EventSell) MarshalTo(dAtA []byte) (int, error)
- func (m *EventSell) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventSell) ProtoMessage()
- func (m *EventSell) Reset()
- func (m *EventSell) Size() (n int)
- func (m *EventSell) String() string
- func (m *EventSell) Unmarshal(dAtA []byte) error
- func (m *EventSell) XXX_DiscardUnknown()
- func (m *EventSell) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventSell) XXX_Merge(src proto.Message)
- func (m *EventSell) XXX_Size() int
- func (m *EventSell) XXX_Unmarshal(b []byte) error
- type EventUpdateSellOrder
- func (*EventUpdateSellOrder) Descriptor() ([]byte, []int)
- func (m *EventUpdateSellOrder) GetSellOrderId() uint64
- func (m *EventUpdateSellOrder) Marshal() (dAtA []byte, err error)
- func (m *EventUpdateSellOrder) MarshalTo(dAtA []byte) (int, error)
- func (m *EventUpdateSellOrder) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventUpdateSellOrder) ProtoMessage()
- func (m *EventUpdateSellOrder) Reset()
- func (m *EventUpdateSellOrder) Size() (n int)
- func (m *EventUpdateSellOrder) String() string
- func (m *EventUpdateSellOrder) Unmarshal(dAtA []byte) error
- func (m *EventUpdateSellOrder) XXX_DiscardUnknown()
- func (m *EventUpdateSellOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventUpdateSellOrder) XXX_Merge(src proto.Message)
- func (m *EventUpdateSellOrder) XXX_Size() int
- func (m *EventUpdateSellOrder) XXX_Unmarshal(b []byte) error
- type Market
- func (*Market) Descriptor() ([]byte, []int)
- func (m *Market) GetBankDenom() string
- func (m *Market) GetCreditTypeAbbrev() string
- func (m *Market) GetId() uint64
- func (m *Market) GetPrecisionModifier() uint32
- 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) ProtoMessage()
- func (m *Market) Reset()
- func (m *Market) Size() (n int)
- func (m *Market) String() string
- func (m *Market) Unmarshal(dAtA []byte) 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 MsgBuyDirect
- func (*MsgBuyDirect) Descriptor() ([]byte, []int)
- func (m *MsgBuyDirect) GetBuyer() string
- func (m *MsgBuyDirect) GetOrders() []*MsgBuyDirect_Order
- func (m MsgBuyDirect) GetSignBytes() []byte
- func (m MsgBuyDirect) GetSigners() []sdk.AccAddress
- func (m *MsgBuyDirect) Marshal() (dAtA []byte, err error)
- func (m *MsgBuyDirect) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgBuyDirect) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgBuyDirect) ProtoMessage()
- func (m *MsgBuyDirect) Reset()
- func (m MsgBuyDirect) Route() string
- func (m *MsgBuyDirect) Size() (n int)
- func (m *MsgBuyDirect) String() string
- func (m MsgBuyDirect) Type() string
- func (m *MsgBuyDirect) Unmarshal(dAtA []byte) error
- func (m MsgBuyDirect) ValidateBasic() error
- func (m *MsgBuyDirect) XXX_DiscardUnknown()
- func (m *MsgBuyDirect) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgBuyDirect) XXX_Merge(src proto.Message)
- func (m *MsgBuyDirect) XXX_Size() int
- func (m *MsgBuyDirect) XXX_Unmarshal(b []byte) error
- type MsgBuyDirectResponse
- func (*MsgBuyDirectResponse) Descriptor() ([]byte, []int)
- func (m *MsgBuyDirectResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgBuyDirectResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgBuyDirectResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgBuyDirectResponse) ProtoMessage()
- func (m *MsgBuyDirectResponse) Reset()
- func (m *MsgBuyDirectResponse) Size() (n int)
- func (m *MsgBuyDirectResponse) String() string
- func (m *MsgBuyDirectResponse) Unmarshal(dAtA []byte) error
- func (m *MsgBuyDirectResponse) XXX_DiscardUnknown()
- func (m *MsgBuyDirectResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgBuyDirectResponse) XXX_Merge(src proto.Message)
- func (m *MsgBuyDirectResponse) XXX_Size() int
- func (m *MsgBuyDirectResponse) XXX_Unmarshal(b []byte) error
- type MsgBuyDirect_Order
- func (*MsgBuyDirect_Order) Descriptor() ([]byte, []int)
- func (m *MsgBuyDirect_Order) GetBidPrice() *types.Coin
- func (m *MsgBuyDirect_Order) GetDisableAutoRetire() bool
- func (m *MsgBuyDirect_Order) GetQuantity() string
- func (m *MsgBuyDirect_Order) GetRetirementJurisdiction() string
- func (m *MsgBuyDirect_Order) GetSellOrderId() uint64
- func (m *MsgBuyDirect_Order) Marshal() (dAtA []byte, err error)
- func (m *MsgBuyDirect_Order) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgBuyDirect_Order) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgBuyDirect_Order) ProtoMessage()
- func (m *MsgBuyDirect_Order) Reset()
- func (m *MsgBuyDirect_Order) Size() (n int)
- func (m *MsgBuyDirect_Order) String() string
- func (m *MsgBuyDirect_Order) Unmarshal(dAtA []byte) error
- func (m *MsgBuyDirect_Order) XXX_DiscardUnknown()
- func (m *MsgBuyDirect_Order) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgBuyDirect_Order) XXX_Merge(src proto.Message)
- func (m *MsgBuyDirect_Order) XXX_Size() int
- func (m *MsgBuyDirect_Order) XXX_Unmarshal(b []byte) error
- type MsgCancelSellOrder
- func (*MsgCancelSellOrder) Descriptor() ([]byte, []int)
- func (m *MsgCancelSellOrder) GetSellOrderId() uint64
- func (m *MsgCancelSellOrder) GetSeller() string
- func (m MsgCancelSellOrder) GetSignBytes() []byte
- func (m *MsgCancelSellOrder) GetSigners() []sdk.AccAddress
- func (m *MsgCancelSellOrder) Marshal() (dAtA []byte, err error)
- func (m *MsgCancelSellOrder) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCancelSellOrder) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCancelSellOrder) ProtoMessage()
- func (m *MsgCancelSellOrder) Reset()
- func (m MsgCancelSellOrder) Route() string
- func (m *MsgCancelSellOrder) Size() (n int)
- func (m *MsgCancelSellOrder) String() string
- func (m MsgCancelSellOrder) Type() string
- func (m *MsgCancelSellOrder) Unmarshal(dAtA []byte) error
- func (m *MsgCancelSellOrder) ValidateBasic() error
- func (m *MsgCancelSellOrder) XXX_DiscardUnknown()
- func (m *MsgCancelSellOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCancelSellOrder) XXX_Merge(src proto.Message)
- func (m *MsgCancelSellOrder) XXX_Size() int
- func (m *MsgCancelSellOrder) XXX_Unmarshal(b []byte) error
- type MsgCancelSellOrderResponse
- func (*MsgCancelSellOrderResponse) Descriptor() ([]byte, []int)
- func (m *MsgCancelSellOrderResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCancelSellOrderResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCancelSellOrderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCancelSellOrderResponse) ProtoMessage()
- func (m *MsgCancelSellOrderResponse) Reset()
- func (m *MsgCancelSellOrderResponse) Size() (n int)
- func (m *MsgCancelSellOrderResponse) String() string
- func (m *MsgCancelSellOrderResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCancelSellOrderResponse) XXX_DiscardUnknown()
- func (m *MsgCancelSellOrderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCancelSellOrderResponse) XXX_Merge(src proto.Message)
- func (m *MsgCancelSellOrderResponse) XXX_Size() int
- func (m *MsgCancelSellOrderResponse) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgSell
- func (*MsgSell) Descriptor() ([]byte, []int)
- func (m *MsgSell) GetOrders() []*MsgSell_Order
- func (m *MsgSell) GetSeller() string
- func (m MsgSell) GetSignBytes() []byte
- func (m *MsgSell) GetSigners() []sdk.AccAddress
- func (m *MsgSell) Marshal() (dAtA []byte, err error)
- func (m *MsgSell) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSell) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSell) ProtoMessage()
- func (m *MsgSell) Reset()
- func (m MsgSell) Route() string
- func (m *MsgSell) Size() (n int)
- func (m *MsgSell) String() string
- func (m MsgSell) Type() string
- func (m *MsgSell) Unmarshal(dAtA []byte) error
- func (m *MsgSell) ValidateBasic() error
- func (m *MsgSell) XXX_DiscardUnknown()
- func (m *MsgSell) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSell) XXX_Merge(src proto.Message)
- func (m *MsgSell) XXX_Size() int
- func (m *MsgSell) XXX_Unmarshal(b []byte) error
- type MsgSellResponse
- func (*MsgSellResponse) Descriptor() ([]byte, []int)
- func (m *MsgSellResponse) GetSellOrderIds() []uint64
- func (m *MsgSellResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgSellResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSellResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSellResponse) ProtoMessage()
- func (m *MsgSellResponse) Reset()
- func (m *MsgSellResponse) Size() (n int)
- func (m *MsgSellResponse) String() string
- func (m *MsgSellResponse) Unmarshal(dAtA []byte) error
- func (m *MsgSellResponse) XXX_DiscardUnknown()
- func (m *MsgSellResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSellResponse) XXX_Merge(src proto.Message)
- func (m *MsgSellResponse) XXX_Size() int
- func (m *MsgSellResponse) XXX_Unmarshal(b []byte) error
- type MsgSell_Order
- func (*MsgSell_Order) Descriptor() ([]byte, []int)
- func (m *MsgSell_Order) GetAskPrice() *types.Coin
- func (m *MsgSell_Order) GetBatchDenom() string
- func (m *MsgSell_Order) GetDisableAutoRetire() bool
- func (m *MsgSell_Order) GetExpiration() *time.Time
- func (m *MsgSell_Order) GetQuantity() string
- func (m *MsgSell_Order) Marshal() (dAtA []byte, err error)
- func (m *MsgSell_Order) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSell_Order) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSell_Order) ProtoMessage()
- func (m *MsgSell_Order) Reset()
- func (m *MsgSell_Order) Size() (n int)
- func (m *MsgSell_Order) String() string
- func (m *MsgSell_Order) Unmarshal(dAtA []byte) error
- func (m *MsgSell_Order) XXX_DiscardUnknown()
- func (m *MsgSell_Order) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSell_Order) XXX_Merge(src proto.Message)
- func (m *MsgSell_Order) XXX_Size() int
- func (m *MsgSell_Order) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgUpdateSellOrders
- func (*MsgUpdateSellOrders) Descriptor() ([]byte, []int)
- func (m *MsgUpdateSellOrders) GetSeller() string
- func (m MsgUpdateSellOrders) GetSignBytes() []byte
- func (m *MsgUpdateSellOrders) GetSigners() []sdk.AccAddress
- func (m *MsgUpdateSellOrders) GetUpdates() []*MsgUpdateSellOrders_Update
- func (m *MsgUpdateSellOrders) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateSellOrders) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateSellOrders) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateSellOrders) ProtoMessage()
- func (m *MsgUpdateSellOrders) Reset()
- func (m MsgUpdateSellOrders) Route() string
- func (m *MsgUpdateSellOrders) Size() (n int)
- func (m *MsgUpdateSellOrders) String() string
- func (m MsgUpdateSellOrders) Type() string
- func (m *MsgUpdateSellOrders) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateSellOrders) ValidateBasic() error
- func (m *MsgUpdateSellOrders) XXX_DiscardUnknown()
- func (m *MsgUpdateSellOrders) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateSellOrders) XXX_Merge(src proto.Message)
- func (m *MsgUpdateSellOrders) XXX_Size() int
- func (m *MsgUpdateSellOrders) XXX_Unmarshal(b []byte) error
- type MsgUpdateSellOrdersResponse
- func (*MsgUpdateSellOrdersResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateSellOrdersResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateSellOrdersResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateSellOrdersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateSellOrdersResponse) ProtoMessage()
- func (m *MsgUpdateSellOrdersResponse) Reset()
- func (m *MsgUpdateSellOrdersResponse) Size() (n int)
- func (m *MsgUpdateSellOrdersResponse) String() string
- func (m *MsgUpdateSellOrdersResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateSellOrdersResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateSellOrdersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateSellOrdersResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateSellOrdersResponse) XXX_Size() int
- func (m *MsgUpdateSellOrdersResponse) XXX_Unmarshal(b []byte) error
- type MsgUpdateSellOrders_Update
- func (*MsgUpdateSellOrders_Update) Descriptor() ([]byte, []int)
- func (m *MsgUpdateSellOrders_Update) GetDisableAutoRetire() bool
- func (m *MsgUpdateSellOrders_Update) GetNewAskPrice() *types.Coin
- func (m *MsgUpdateSellOrders_Update) GetNewExpiration() *time.Time
- func (m *MsgUpdateSellOrders_Update) GetNewQuantity() string
- func (m *MsgUpdateSellOrders_Update) GetSellOrderId() uint64
- func (m *MsgUpdateSellOrders_Update) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateSellOrders_Update) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateSellOrders_Update) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateSellOrders_Update) ProtoMessage()
- func (m *MsgUpdateSellOrders_Update) Reset()
- func (m *MsgUpdateSellOrders_Update) Size() (n int)
- func (m *MsgUpdateSellOrders_Update) String() string
- func (m *MsgUpdateSellOrders_Update) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateSellOrders_Update) XXX_DiscardUnknown()
- func (m *MsgUpdateSellOrders_Update) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateSellOrders_Update) XXX_Merge(src proto.Message)
- func (m *MsgUpdateSellOrders_Update) XXX_Size() int
- func (m *MsgUpdateSellOrders_Update) XXX_Unmarshal(b []byte) error
- type QueryAllowedDenomsRequest
- func (*QueryAllowedDenomsRequest) Descriptor() ([]byte, []int)
- func (m *QueryAllowedDenomsRequest) GetPagination() *query.PageRequest
- func (m *QueryAllowedDenomsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAllowedDenomsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllowedDenomsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllowedDenomsRequest) ProtoMessage()
- func (m *QueryAllowedDenomsRequest) Reset()
- func (m *QueryAllowedDenomsRequest) Size() (n int)
- func (m *QueryAllowedDenomsRequest) String() string
- func (m *QueryAllowedDenomsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAllowedDenomsRequest) XXX_DiscardUnknown()
- func (m *QueryAllowedDenomsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllowedDenomsRequest) XXX_Merge(src proto.Message)
- func (m *QueryAllowedDenomsRequest) XXX_Size() int
- func (m *QueryAllowedDenomsRequest) XXX_Unmarshal(b []byte) error
- type QueryAllowedDenomsResponse
- func (*QueryAllowedDenomsResponse) Descriptor() ([]byte, []int)
- func (m *QueryAllowedDenomsResponse) GetAllowedDenoms() []*AllowedDenom
- func (m *QueryAllowedDenomsResponse) GetPagination() *query.PageResponse
- func (m *QueryAllowedDenomsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAllowedDenomsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllowedDenomsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllowedDenomsResponse) ProtoMessage()
- func (m *QueryAllowedDenomsResponse) Reset()
- func (m *QueryAllowedDenomsResponse) Size() (n int)
- func (m *QueryAllowedDenomsResponse) String() string
- func (m *QueryAllowedDenomsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAllowedDenomsResponse) XXX_DiscardUnknown()
- func (m *QueryAllowedDenomsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllowedDenomsResponse) XXX_Merge(src proto.Message)
- func (m *QueryAllowedDenomsResponse) XXX_Size() int
- func (m *QueryAllowedDenomsResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QuerySellOrderRequest
- func (*QuerySellOrderRequest) Descriptor() ([]byte, []int)
- func (m *QuerySellOrderRequest) GetSellOrderId() uint64
- func (m *QuerySellOrderRequest) Marshal() (dAtA []byte, err error)
- func (m *QuerySellOrderRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySellOrderRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySellOrderRequest) ProtoMessage()
- func (m *QuerySellOrderRequest) Reset()
- func (m *QuerySellOrderRequest) Size() (n int)
- func (m *QuerySellOrderRequest) String() string
- func (m *QuerySellOrderRequest) Unmarshal(dAtA []byte) error
- func (m *QuerySellOrderRequest) XXX_DiscardUnknown()
- func (m *QuerySellOrderRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySellOrderRequest) XXX_Merge(src proto.Message)
- func (m *QuerySellOrderRequest) XXX_Size() int
- func (m *QuerySellOrderRequest) XXX_Unmarshal(b []byte) error
- type QuerySellOrderResponse
- func (*QuerySellOrderResponse) Descriptor() ([]byte, []int)
- func (m *QuerySellOrderResponse) GetSellOrder() *SellOrderInfo
- func (m *QuerySellOrderResponse) Marshal() (dAtA []byte, err error)
- func (m *QuerySellOrderResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySellOrderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySellOrderResponse) ProtoMessage()
- func (m *QuerySellOrderResponse) Reset()
- func (m *QuerySellOrderResponse) Size() (n int)
- func (m *QuerySellOrderResponse) String() string
- func (m *QuerySellOrderResponse) Unmarshal(dAtA []byte) error
- func (m *QuerySellOrderResponse) XXX_DiscardUnknown()
- func (m *QuerySellOrderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySellOrderResponse) XXX_Merge(src proto.Message)
- func (m *QuerySellOrderResponse) XXX_Size() int
- func (m *QuerySellOrderResponse) XXX_Unmarshal(b []byte) error
- type QuerySellOrdersByBatchRequest
- func (*QuerySellOrdersByBatchRequest) Descriptor() ([]byte, []int)
- func (m *QuerySellOrdersByBatchRequest) GetBatchDenom() string
- func (m *QuerySellOrdersByBatchRequest) GetPagination() *query.PageRequest
- func (m *QuerySellOrdersByBatchRequest) Marshal() (dAtA []byte, err error)
- func (m *QuerySellOrdersByBatchRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySellOrdersByBatchRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySellOrdersByBatchRequest) ProtoMessage()
- func (m *QuerySellOrdersByBatchRequest) Reset()
- func (m *QuerySellOrdersByBatchRequest) Size() (n int)
- func (m *QuerySellOrdersByBatchRequest) String() string
- func (m *QuerySellOrdersByBatchRequest) Unmarshal(dAtA []byte) error
- func (m *QuerySellOrdersByBatchRequest) XXX_DiscardUnknown()
- func (m *QuerySellOrdersByBatchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySellOrdersByBatchRequest) XXX_Merge(src proto.Message)
- func (m *QuerySellOrdersByBatchRequest) XXX_Size() int
- func (m *QuerySellOrdersByBatchRequest) XXX_Unmarshal(b []byte) error
- type QuerySellOrdersByBatchResponse
- func (*QuerySellOrdersByBatchResponse) Descriptor() ([]byte, []int)
- func (m *QuerySellOrdersByBatchResponse) GetPagination() *query.PageResponse
- func (m *QuerySellOrdersByBatchResponse) GetSellOrders() []*SellOrderInfo
- func (m *QuerySellOrdersByBatchResponse) Marshal() (dAtA []byte, err error)
- func (m *QuerySellOrdersByBatchResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySellOrdersByBatchResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySellOrdersByBatchResponse) ProtoMessage()
- func (m *QuerySellOrdersByBatchResponse) Reset()
- func (m *QuerySellOrdersByBatchResponse) Size() (n int)
- func (m *QuerySellOrdersByBatchResponse) String() string
- func (m *QuerySellOrdersByBatchResponse) Unmarshal(dAtA []byte) error
- func (m *QuerySellOrdersByBatchResponse) XXX_DiscardUnknown()
- func (m *QuerySellOrdersByBatchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySellOrdersByBatchResponse) XXX_Merge(src proto.Message)
- func (m *QuerySellOrdersByBatchResponse) XXX_Size() int
- func (m *QuerySellOrdersByBatchResponse) XXX_Unmarshal(b []byte) error
- type QuerySellOrdersBySellerRequest
- func (*QuerySellOrdersBySellerRequest) Descriptor() ([]byte, []int)
- func (m *QuerySellOrdersBySellerRequest) GetPagination() *query.PageRequest
- func (m *QuerySellOrdersBySellerRequest) GetSeller() string
- func (m *QuerySellOrdersBySellerRequest) Marshal() (dAtA []byte, err error)
- func (m *QuerySellOrdersBySellerRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySellOrdersBySellerRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySellOrdersBySellerRequest) ProtoMessage()
- func (m *QuerySellOrdersBySellerRequest) Reset()
- func (m *QuerySellOrdersBySellerRequest) Size() (n int)
- func (m *QuerySellOrdersBySellerRequest) String() string
- func (m *QuerySellOrdersBySellerRequest) Unmarshal(dAtA []byte) error
- func (m *QuerySellOrdersBySellerRequest) XXX_DiscardUnknown()
- func (m *QuerySellOrdersBySellerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySellOrdersBySellerRequest) XXX_Merge(src proto.Message)
- func (m *QuerySellOrdersBySellerRequest) XXX_Size() int
- func (m *QuerySellOrdersBySellerRequest) XXX_Unmarshal(b []byte) error
- type QuerySellOrdersBySellerResponse
- func (*QuerySellOrdersBySellerResponse) Descriptor() ([]byte, []int)
- func (m *QuerySellOrdersBySellerResponse) GetPagination() *query.PageResponse
- func (m *QuerySellOrdersBySellerResponse) GetSellOrders() []*SellOrderInfo
- func (m *QuerySellOrdersBySellerResponse) Marshal() (dAtA []byte, err error)
- func (m *QuerySellOrdersBySellerResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySellOrdersBySellerResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySellOrdersBySellerResponse) ProtoMessage()
- func (m *QuerySellOrdersBySellerResponse) Reset()
- func (m *QuerySellOrdersBySellerResponse) Size() (n int)
- func (m *QuerySellOrdersBySellerResponse) String() string
- func (m *QuerySellOrdersBySellerResponse) Unmarshal(dAtA []byte) error
- func (m *QuerySellOrdersBySellerResponse) XXX_DiscardUnknown()
- func (m *QuerySellOrdersBySellerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySellOrdersBySellerResponse) XXX_Merge(src proto.Message)
- func (m *QuerySellOrdersBySellerResponse) XXX_Size() int
- func (m *QuerySellOrdersBySellerResponse) XXX_Unmarshal(b []byte) error
- type QuerySellOrdersRequest
- func (*QuerySellOrdersRequest) Descriptor() ([]byte, []int)
- func (m *QuerySellOrdersRequest) GetPagination() *query.PageRequest
- func (m *QuerySellOrdersRequest) Marshal() (dAtA []byte, err error)
- func (m *QuerySellOrdersRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySellOrdersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySellOrdersRequest) ProtoMessage()
- func (m *QuerySellOrdersRequest) Reset()
- func (m *QuerySellOrdersRequest) Size() (n int)
- func (m *QuerySellOrdersRequest) String() string
- func (m *QuerySellOrdersRequest) Unmarshal(dAtA []byte) error
- func (m *QuerySellOrdersRequest) XXX_DiscardUnknown()
- func (m *QuerySellOrdersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySellOrdersRequest) XXX_Merge(src proto.Message)
- func (m *QuerySellOrdersRequest) XXX_Size() int
- func (m *QuerySellOrdersRequest) XXX_Unmarshal(b []byte) error
- type QuerySellOrdersResponse
- func (*QuerySellOrdersResponse) Descriptor() ([]byte, []int)
- func (m *QuerySellOrdersResponse) GetPagination() *query.PageResponse
- func (m *QuerySellOrdersResponse) GetSellOrders() []*SellOrderInfo
- func (m *QuerySellOrdersResponse) Marshal() (dAtA []byte, err error)
- func (m *QuerySellOrdersResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySellOrdersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySellOrdersResponse) ProtoMessage()
- func (m *QuerySellOrdersResponse) Reset()
- func (m *QuerySellOrdersResponse) Size() (n int)
- func (m *QuerySellOrdersResponse) String() string
- func (m *QuerySellOrdersResponse) Unmarshal(dAtA []byte) error
- func (m *QuerySellOrdersResponse) XXX_DiscardUnknown()
- func (m *QuerySellOrdersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySellOrdersResponse) XXX_Merge(src proto.Message)
- func (m *QuerySellOrdersResponse) XXX_Size() int
- func (m *QuerySellOrdersResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type SellOrder
- func (*SellOrder) Descriptor() ([]byte, []int)
- func (m *SellOrder) GetAskAmount() string
- func (m *SellOrder) GetBatchKey() uint64
- func (m *SellOrder) GetDisableAutoRetire() bool
- func (m *SellOrder) GetExpiration() *types.Timestamp
- func (m *SellOrder) GetId() uint64
- func (m *SellOrder) GetMaker() bool
- func (m *SellOrder) GetMarketId() uint64
- func (m *SellOrder) GetQuantity() string
- func (m *SellOrder) GetSeller() []byte
- func (m *SellOrder) Marshal() (dAtA []byte, err error)
- func (m *SellOrder) MarshalTo(dAtA []byte) (int, error)
- func (m *SellOrder) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SellOrder) ProtoMessage()
- func (m *SellOrder) Reset()
- func (m *SellOrder) Size() (n int)
- func (m *SellOrder) String() string
- func (m *SellOrder) Unmarshal(dAtA []byte) error
- func (m *SellOrder) XXX_DiscardUnknown()
- func (m *SellOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SellOrder) XXX_Merge(src proto.Message)
- func (m *SellOrder) XXX_Size() int
- func (m *SellOrder) XXX_Unmarshal(b []byte) error
- type SellOrderInfo
- func (*SellOrderInfo) Descriptor() ([]byte, []int)
- func (m *SellOrderInfo) GetAskAmount() string
- func (m *SellOrderInfo) GetAskDenom() string
- func (m *SellOrderInfo) GetBatchDenom() string
- func (m *SellOrderInfo) GetDisableAutoRetire() bool
- func (m *SellOrderInfo) GetExpiration() *types.Timestamp
- func (m *SellOrderInfo) GetId() uint64
- func (m *SellOrderInfo) GetQuantity() string
- func (m *SellOrderInfo) GetSeller() string
- func (m *SellOrderInfo) Marshal() (dAtA []byte, err error)
- func (m *SellOrderInfo) MarshalTo(dAtA []byte) (int, error)
- func (m *SellOrderInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SellOrderInfo) ProtoMessage()
- func (m *SellOrderInfo) Reset()
- func (m *SellOrderInfo) Size() (n int)
- func (m *SellOrderInfo) String() string
- func (m *SellOrderInfo) Unmarshal(dAtA []byte) error
- func (m *SellOrderInfo) XXX_DiscardUnknown()
- func (m *SellOrderInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SellOrderInfo) XXX_Merge(src proto.Message)
- func (m *SellOrderInfo) XXX_Size() int
- func (m *SellOrderInfo) XXX_Unmarshal(b []byte) error
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) BuyDirect(ctx context.Context, req *MsgBuyDirect) (*MsgBuyDirectResponse, error)
- func (*UnimplementedMsgServer) CancelSellOrder(ctx context.Context, req *MsgCancelSellOrder) (*MsgCancelSellOrderResponse, error)
- func (*UnimplementedMsgServer) Sell(ctx context.Context, req *MsgSell) (*MsgSellResponse, error)
- func (*UnimplementedMsgServer) UpdateSellOrders(ctx context.Context, req *MsgUpdateSellOrders) (*MsgUpdateSellOrdersResponse, error)
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) AllowedDenoms(ctx context.Context, req *QueryAllowedDenomsRequest) (*QueryAllowedDenomsResponse, error)
- func (*UnimplementedQueryServer) SellOrder(ctx context.Context, req *QuerySellOrderRequest) (*QuerySellOrderResponse, error)
- func (*UnimplementedQueryServer) SellOrders(ctx context.Context, req *QuerySellOrdersRequest) (*QuerySellOrdersResponse, error)
- func (*UnimplementedQueryServer) SellOrdersByBatch(ctx context.Context, req *QuerySellOrdersByBatchRequest) (*QuerySellOrdersByBatchResponse, error)
- func (*UnimplementedQueryServer) SellOrdersBySeller(ctx context.Context, req *QuerySellOrdersBySellerRequest) (*QuerySellOrdersBySellerResponse, error)
Constants ¶
const (
AllowDenomProposalType = "AllowDenomProposal"
)
Variables ¶
var ( ErrInvalidLengthEvents = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowEvents = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupEvents = 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 ( ErrInvalidLengthState = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowState = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupState = 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 ( ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group") )
var (
ModuleCdc = codec.NewAminoCodec(amino)
)
Functions ¶
func RegisterLegacyAminoCodec ¶
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
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 to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
func RegisterTypes ¶
func RegisterTypes(registry codectypes.InterfaceRegistry)
Types ¶
type AllowDenomProposal ¶
type AllowDenomProposal struct { // title is the title of the proposal. Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` // description is the description of the proposal. Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` // denom contains coin denom information that will be added to the // list of allowed denoms for use in the marketplace. Denom *AllowedDenom `protobuf:"bytes,3,opt,name=denom,proto3" json:"denom,omitempty"` }
AllowDenomProposal is a gov Content type for approving a denom for use in the marketplace.
func (*AllowDenomProposal) Descriptor ¶
func (*AllowDenomProposal) Descriptor() ([]byte, []int)
func (*AllowDenomProposal) GetDenom ¶
func (m *AllowDenomProposal) GetDenom() *AllowedDenom
func (*AllowDenomProposal) GetDescription ¶
func (m *AllowDenomProposal) GetDescription() string
func (*AllowDenomProposal) GetTitle ¶
func (m *AllowDenomProposal) GetTitle() string
func (*AllowDenomProposal) Marshal ¶
func (m *AllowDenomProposal) Marshal() (dAtA []byte, err error)
func (*AllowDenomProposal) MarshalTo ¶
func (m *AllowDenomProposal) MarshalTo(dAtA []byte) (int, error)
func (*AllowDenomProposal) MarshalToSizedBuffer ¶
func (m *AllowDenomProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (AllowDenomProposal) ProposalRoute ¶
func (m AllowDenomProposal) ProposalRoute() string
func (AllowDenomProposal) ProposalType ¶
func (m AllowDenomProposal) ProposalType() string
func (*AllowDenomProposal) ProtoMessage ¶
func (*AllowDenomProposal) ProtoMessage()
func (*AllowDenomProposal) Reset ¶
func (m *AllowDenomProposal) Reset()
func (*AllowDenomProposal) Size ¶
func (m *AllowDenomProposal) Size() (n int)
func (AllowDenomProposal) String ¶
func (m AllowDenomProposal) String() string
func (*AllowDenomProposal) Unmarshal ¶
func (m *AllowDenomProposal) Unmarshal(dAtA []byte) error
func (AllowDenomProposal) ValidateBasic ¶
func (m AllowDenomProposal) ValidateBasic() error
func (*AllowDenomProposal) XXX_DiscardUnknown ¶
func (m *AllowDenomProposal) XXX_DiscardUnknown()
func (*AllowDenomProposal) XXX_Marshal ¶
func (m *AllowDenomProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AllowDenomProposal) XXX_Merge ¶
func (m *AllowDenomProposal) XXX_Merge(src proto.Message)
func (*AllowDenomProposal) XXX_Size ¶
func (m *AllowDenomProposal) XXX_Size() int
func (*AllowDenomProposal) XXX_Unmarshal ¶
func (m *AllowDenomProposal) XXX_Unmarshal(b []byte) error
type AllowedDenom ¶
type AllowedDenom struct { // denom is the bank denom to allow (ex. ibc/GLKHDSG423SGS) BankDenom string `protobuf:"bytes,1,opt,name=bank_denom,json=bankDenom,proto3" json:"bank_denom,omitempty"` // display_denom is the denom to display to the user and is informational. // Because the denom is likely an IBC denom, this should be chosen by // governance to represent the consensus trusted name of the denom. DisplayDenom string `protobuf:"bytes,2,opt,name=display_denom,json=displayDenom,proto3" json:"display_denom,omitempty"` // exponent is the exponent that relates the denom to the display_denom and is // informational Exponent uint32 `protobuf:"varint,3,opt,name=exponent,proto3" json:"exponent,omitempty"` }
AllowedDenom represents the information for an allowed ask/bid denom.
func DefaultAllowedDenoms ¶
func DefaultAllowedDenoms() []AllowedDenom
DefaultAllowedDenoms returns a default set of allowed denoms.
func (*AllowedDenom) Descriptor ¶
func (*AllowedDenom) Descriptor() ([]byte, []int)
func (*AllowedDenom) GetBankDenom ¶
func (m *AllowedDenom) GetBankDenom() string
func (*AllowedDenom) GetDisplayDenom ¶
func (m *AllowedDenom) GetDisplayDenom() string
func (*AllowedDenom) GetExponent ¶
func (m *AllowedDenom) GetExponent() uint32
func (*AllowedDenom) Marshal ¶
func (m *AllowedDenom) Marshal() (dAtA []byte, err error)
func (*AllowedDenom) MarshalToSizedBuffer ¶
func (m *AllowedDenom) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*AllowedDenom) ProtoMessage ¶
func (*AllowedDenom) ProtoMessage()
func (*AllowedDenom) Reset ¶
func (m *AllowedDenom) Reset()
func (*AllowedDenom) Size ¶
func (m *AllowedDenom) Size() (n int)
func (*AllowedDenom) String ¶
func (m *AllowedDenom) String() string
func (*AllowedDenom) Unmarshal ¶
func (m *AllowedDenom) Unmarshal(dAtA []byte) error
func (AllowedDenom) Validate ¶
func (m AllowedDenom) Validate() error
func (*AllowedDenom) XXX_DiscardUnknown ¶
func (m *AllowedDenom) XXX_DiscardUnknown()
func (*AllowedDenom) XXX_Marshal ¶
func (m *AllowedDenom) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AllowedDenom) XXX_Merge ¶
func (m *AllowedDenom) XXX_Merge(src proto.Message)
func (*AllowedDenom) XXX_Size ¶
func (m *AllowedDenom) XXX_Size() int
func (*AllowedDenom) XXX_Unmarshal ¶
func (m *AllowedDenom) XXX_Unmarshal(b []byte) error
type EventAllowDenom ¶
type EventAllowDenom struct { // denom is the bank denom (e.g. ibc/GLKHDSG423SGS) added to the list of // allowed denoms for use in the marketplace. Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"` }
EventAllowDenom is an event emitted when a new denom is added for use in the marketplace.
func (*EventAllowDenom) Descriptor ¶
func (*EventAllowDenom) Descriptor() ([]byte, []int)
func (*EventAllowDenom) GetDenom ¶
func (m *EventAllowDenom) GetDenom() string
func (*EventAllowDenom) Marshal ¶
func (m *EventAllowDenom) Marshal() (dAtA []byte, err error)
func (*EventAllowDenom) MarshalToSizedBuffer ¶
func (m *EventAllowDenom) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventAllowDenom) ProtoMessage ¶
func (*EventAllowDenom) ProtoMessage()
func (*EventAllowDenom) Reset ¶
func (m *EventAllowDenom) Reset()
func (*EventAllowDenom) Size ¶
func (m *EventAllowDenom) Size() (n int)
func (*EventAllowDenom) String ¶
func (m *EventAllowDenom) String() string
func (*EventAllowDenom) Unmarshal ¶
func (m *EventAllowDenom) Unmarshal(dAtA []byte) error
func (*EventAllowDenom) XXX_DiscardUnknown ¶
func (m *EventAllowDenom) XXX_DiscardUnknown()
func (*EventAllowDenom) XXX_Marshal ¶
func (m *EventAllowDenom) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventAllowDenom) XXX_Merge ¶
func (m *EventAllowDenom) XXX_Merge(src proto.Message)
func (*EventAllowDenom) XXX_Size ¶
func (m *EventAllowDenom) XXX_Size() int
func (*EventAllowDenom) XXX_Unmarshal ¶
func (m *EventAllowDenom) XXX_Unmarshal(b []byte) error
type EventBuyDirect ¶
type EventBuyDirect struct { // sell_order_id is the unique identifier of the sell order that credits were // purchased from. SellOrderId uint64 `protobuf:"varint,1,opt,name=sell_order_id,json=sellOrderId,proto3" json:"sell_order_id,omitempty"` }
EventBuyDirect is an event emitted when a direct buy order is processed.
func (*EventBuyDirect) Descriptor ¶
func (*EventBuyDirect) Descriptor() ([]byte, []int)
func (*EventBuyDirect) GetSellOrderId ¶
func (m *EventBuyDirect) GetSellOrderId() uint64
func (*EventBuyDirect) Marshal ¶
func (m *EventBuyDirect) Marshal() (dAtA []byte, err error)
func (*EventBuyDirect) MarshalToSizedBuffer ¶
func (m *EventBuyDirect) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventBuyDirect) ProtoMessage ¶
func (*EventBuyDirect) ProtoMessage()
func (*EventBuyDirect) Reset ¶
func (m *EventBuyDirect) Reset()
func (*EventBuyDirect) Size ¶
func (m *EventBuyDirect) Size() (n int)
func (*EventBuyDirect) String ¶
func (m *EventBuyDirect) String() string
func (*EventBuyDirect) Unmarshal ¶
func (m *EventBuyDirect) Unmarshal(dAtA []byte) error
func (*EventBuyDirect) XXX_DiscardUnknown ¶
func (m *EventBuyDirect) XXX_DiscardUnknown()
func (*EventBuyDirect) XXX_Marshal ¶
func (m *EventBuyDirect) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventBuyDirect) XXX_Merge ¶
func (m *EventBuyDirect) XXX_Merge(src proto.Message)
func (*EventBuyDirect) XXX_Size ¶
func (m *EventBuyDirect) XXX_Size() int
func (*EventBuyDirect) XXX_Unmarshal ¶
func (m *EventBuyDirect) XXX_Unmarshal(b []byte) error
type EventCancelSellOrder ¶
type EventCancelSellOrder struct { // sell_order_id is the unique identifier of the sell order that was // cancelled. SellOrderId uint64 `protobuf:"varint,1,opt,name=sell_order_id,json=sellOrderId,proto3" json:"sell_order_id,omitempty"` }
EventCancelSellOrder is an event emitted when a sell order is cancelled.
func (*EventCancelSellOrder) Descriptor ¶
func (*EventCancelSellOrder) Descriptor() ([]byte, []int)
func (*EventCancelSellOrder) GetSellOrderId ¶
func (m *EventCancelSellOrder) GetSellOrderId() uint64
func (*EventCancelSellOrder) Marshal ¶
func (m *EventCancelSellOrder) Marshal() (dAtA []byte, err error)
func (*EventCancelSellOrder) MarshalTo ¶
func (m *EventCancelSellOrder) MarshalTo(dAtA []byte) (int, error)
func (*EventCancelSellOrder) MarshalToSizedBuffer ¶
func (m *EventCancelSellOrder) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventCancelSellOrder) ProtoMessage ¶
func (*EventCancelSellOrder) ProtoMessage()
func (*EventCancelSellOrder) Reset ¶
func (m *EventCancelSellOrder) Reset()
func (*EventCancelSellOrder) Size ¶
func (m *EventCancelSellOrder) Size() (n int)
func (*EventCancelSellOrder) String ¶
func (m *EventCancelSellOrder) String() string
func (*EventCancelSellOrder) Unmarshal ¶
func (m *EventCancelSellOrder) Unmarshal(dAtA []byte) error
func (*EventCancelSellOrder) XXX_DiscardUnknown ¶
func (m *EventCancelSellOrder) XXX_DiscardUnknown()
func (*EventCancelSellOrder) XXX_Marshal ¶
func (m *EventCancelSellOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventCancelSellOrder) XXX_Merge ¶
func (m *EventCancelSellOrder) XXX_Merge(src proto.Message)
func (*EventCancelSellOrder) XXX_Size ¶
func (m *EventCancelSellOrder) XXX_Size() int
func (*EventCancelSellOrder) XXX_Unmarshal ¶
func (m *EventCancelSellOrder) XXX_Unmarshal(b []byte) error
type EventSell ¶
type EventSell struct { // sell_order_id is the unique identifier of the sell order that was created. SellOrderId uint64 `protobuf:"varint,1,opt,name=sell_order_id,json=sellOrderId,proto3" json:"sell_order_id,omitempty"` }
EventSell is an event emitted when a sell order is created.
func (*EventSell) Descriptor ¶
func (*EventSell) GetSellOrderId ¶
func (*EventSell) MarshalToSizedBuffer ¶
func (*EventSell) ProtoMessage ¶
func (*EventSell) ProtoMessage()
func (*EventSell) XXX_DiscardUnknown ¶
func (m *EventSell) XXX_DiscardUnknown()
func (*EventSell) XXX_Marshal ¶
func (*EventSell) XXX_Unmarshal ¶
type EventUpdateSellOrder ¶
type EventUpdateSellOrder struct { // sell_order_id is the unique identifier of the sell order that was updated. SellOrderId uint64 `protobuf:"varint,1,opt,name=sell_order_id,json=sellOrderId,proto3" json:"sell_order_id,omitempty"` }
EventUpdateSellOrder is an event emitted when a sell order is updated.
func (*EventUpdateSellOrder) Descriptor ¶
func (*EventUpdateSellOrder) Descriptor() ([]byte, []int)
func (*EventUpdateSellOrder) GetSellOrderId ¶
func (m *EventUpdateSellOrder) GetSellOrderId() uint64
func (*EventUpdateSellOrder) Marshal ¶
func (m *EventUpdateSellOrder) Marshal() (dAtA []byte, err error)
func (*EventUpdateSellOrder) MarshalTo ¶
func (m *EventUpdateSellOrder) MarshalTo(dAtA []byte) (int, error)
func (*EventUpdateSellOrder) MarshalToSizedBuffer ¶
func (m *EventUpdateSellOrder) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventUpdateSellOrder) ProtoMessage ¶
func (*EventUpdateSellOrder) ProtoMessage()
func (*EventUpdateSellOrder) Reset ¶
func (m *EventUpdateSellOrder) Reset()
func (*EventUpdateSellOrder) Size ¶
func (m *EventUpdateSellOrder) Size() (n int)
func (*EventUpdateSellOrder) String ¶
func (m *EventUpdateSellOrder) String() string
func (*EventUpdateSellOrder) Unmarshal ¶
func (m *EventUpdateSellOrder) Unmarshal(dAtA []byte) error
func (*EventUpdateSellOrder) XXX_DiscardUnknown ¶
func (m *EventUpdateSellOrder) XXX_DiscardUnknown()
func (*EventUpdateSellOrder) XXX_Marshal ¶
func (m *EventUpdateSellOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventUpdateSellOrder) XXX_Merge ¶
func (m *EventUpdateSellOrder) XXX_Merge(src proto.Message)
func (*EventUpdateSellOrder) XXX_Size ¶
func (m *EventUpdateSellOrder) XXX_Size() int
func (*EventUpdateSellOrder) XXX_Unmarshal ¶
func (m *EventUpdateSellOrder) XXX_Unmarshal(b []byte) error
type Market ¶
type Market struct { // id is the unique ID of the market. Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // credit_type_abbrev is the abbreviation of the credit type. CreditTypeAbbrev string `protobuf:"bytes,2,opt,name=credit_type_abbrev,json=creditTypeAbbrev,proto3" json:"credit_type_abbrev,omitempty"` // bank_denom is an allowed bank denom. BankDenom string `protobuf:"bytes,3,opt,name=bank_denom,json=bankDenom,proto3" json:"bank_denom,omitempty"` // precision_modifier is an optional modifier used to convert arbitrary // precision integer bank amounts to uint32 values used for sorting in the // order book. Given an arbitrary precision integer x, its uint32 conversion // will be x / 10^precision_modifier using round half away from zero // rounding. // // uint32 values range from 0 to 4,294,967,295. // This allows for a full 9 digits of precision. In most real world markets // this amount of precision is sufficient and most common downside - // that some orders with very miniscule price differences may be ordered // equivalently (because of rounding) - is acceptable. // Note that this rounding will not affect settlement price which will // always be done exactly. // // Given a USD stable coin with 6 decimal digits, a precision_modifier // of 0 is probably acceptable as long as credits are always less than // $4,294/unit. With precision down to $0.001 (a precision_modifier of 3 // in this case), prices can rise up to $4,294,000/unit. Either scenario // is probably quite acceptable given that carbon prices are unlikely to // rise above $1000/ton any time in the near future. // // If credit prices, exceed the maximum range of uint32 with this // precision_modifier, orders with high prices will fail and governance // will need to adjust precision_modifier to allow for higher prices in // exchange for less precision at the lower end. PrecisionModifier uint32 `protobuf:"varint,4,opt,name=precision_modifier,json=precisionModifier,proto3" json:"precision_modifier,omitempty"` }
Market describes a distinctly processed market between a credit type and allowed bank denom. Each market has its own precision in the order book and is processed independently of other markets. Governance must enable markets one by one. Every additional enabled market potentially adds more processing overhead to the blockchain and potentially weakens liquidity in competing markets. For instance, enabling side by side USD/Carbon and EUR/Carbon markets may have the end result that each market individually has less liquidity and longer settlement times. Such decisions should be taken with care.
func (*Market) Descriptor ¶
func (*Market) GetBankDenom ¶
func (*Market) GetCreditTypeAbbrev ¶
func (*Market) GetPrecisionModifier ¶
func (*Market) MarshalToSizedBuffer ¶
func (*Market) ProtoMessage ¶
func (*Market) ProtoMessage()
func (*Market) XXX_DiscardUnknown ¶
func (m *Market) XXX_DiscardUnknown()
func (*Market) XXX_Marshal ¶
func (*Market) XXX_Unmarshal ¶
type MsgBuyDirect ¶
type MsgBuyDirect struct { // buyer is the address of the account that is buying credits. Buyer string `protobuf:"bytes,1,opt,name=buyer,proto3" json:"buyer,omitempty"` // orders is a list of orders for ecocredits. Orders []*MsgBuyDirect_Order `protobuf:"bytes,2,rep,name=orders,proto3" json:"orders,omitempty"` }
MsgBuyDirect is the Msg/BuyDirect request type.
func (*MsgBuyDirect) Descriptor ¶
func (*MsgBuyDirect) Descriptor() ([]byte, []int)
func (*MsgBuyDirect) GetBuyer ¶
func (m *MsgBuyDirect) GetBuyer() string
func (*MsgBuyDirect) GetOrders ¶
func (m *MsgBuyDirect) GetOrders() []*MsgBuyDirect_Order
func (MsgBuyDirect) GetSignBytes ¶
func (m MsgBuyDirect) GetSignBytes() []byte
func (MsgBuyDirect) GetSigners ¶
func (m MsgBuyDirect) GetSigners() []sdk.AccAddress
func (*MsgBuyDirect) Marshal ¶
func (m *MsgBuyDirect) Marshal() (dAtA []byte, err error)
func (*MsgBuyDirect) MarshalToSizedBuffer ¶
func (m *MsgBuyDirect) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgBuyDirect) ProtoMessage ¶
func (*MsgBuyDirect) ProtoMessage()
func (*MsgBuyDirect) Reset ¶
func (m *MsgBuyDirect) Reset()
func (MsgBuyDirect) Route ¶
func (m MsgBuyDirect) Route() string
func (*MsgBuyDirect) Size ¶
func (m *MsgBuyDirect) Size() (n int)
func (*MsgBuyDirect) String ¶
func (m *MsgBuyDirect) String() string
func (MsgBuyDirect) Type ¶
func (m MsgBuyDirect) Type() string
func (*MsgBuyDirect) Unmarshal ¶
func (m *MsgBuyDirect) Unmarshal(dAtA []byte) error
func (MsgBuyDirect) ValidateBasic ¶
func (m MsgBuyDirect) ValidateBasic() error
func (*MsgBuyDirect) XXX_DiscardUnknown ¶
func (m *MsgBuyDirect) XXX_DiscardUnknown()
func (*MsgBuyDirect) XXX_Marshal ¶
func (m *MsgBuyDirect) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgBuyDirect) XXX_Merge ¶
func (m *MsgBuyDirect) XXX_Merge(src proto.Message)
func (*MsgBuyDirect) XXX_Size ¶
func (m *MsgBuyDirect) XXX_Size() int
func (*MsgBuyDirect) XXX_Unmarshal ¶
func (m *MsgBuyDirect) XXX_Unmarshal(b []byte) error
type MsgBuyDirectResponse ¶
type MsgBuyDirectResponse struct { }
MsgBuyDirectResponse is the Msg/BuyDirect response type.
func (*MsgBuyDirectResponse) Descriptor ¶
func (*MsgBuyDirectResponse) Descriptor() ([]byte, []int)
func (*MsgBuyDirectResponse) Marshal ¶
func (m *MsgBuyDirectResponse) Marshal() (dAtA []byte, err error)
func (*MsgBuyDirectResponse) MarshalTo ¶
func (m *MsgBuyDirectResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgBuyDirectResponse) MarshalToSizedBuffer ¶
func (m *MsgBuyDirectResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgBuyDirectResponse) ProtoMessage ¶
func (*MsgBuyDirectResponse) ProtoMessage()
func (*MsgBuyDirectResponse) Reset ¶
func (m *MsgBuyDirectResponse) Reset()
func (*MsgBuyDirectResponse) Size ¶
func (m *MsgBuyDirectResponse) Size() (n int)
func (*MsgBuyDirectResponse) String ¶
func (m *MsgBuyDirectResponse) String() string
func (*MsgBuyDirectResponse) Unmarshal ¶
func (m *MsgBuyDirectResponse) Unmarshal(dAtA []byte) error
func (*MsgBuyDirectResponse) XXX_DiscardUnknown ¶
func (m *MsgBuyDirectResponse) XXX_DiscardUnknown()
func (*MsgBuyDirectResponse) XXX_Marshal ¶
func (m *MsgBuyDirectResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgBuyDirectResponse) XXX_Merge ¶
func (m *MsgBuyDirectResponse) XXX_Merge(src proto.Message)
func (*MsgBuyDirectResponse) XXX_Size ¶
func (m *MsgBuyDirectResponse) XXX_Size() int
func (*MsgBuyDirectResponse) XXX_Unmarshal ¶
func (m *MsgBuyDirectResponse) XXX_Unmarshal(b []byte) error
type MsgBuyDirect_Order ¶
type MsgBuyDirect_Order struct { // sell_order_id is the sell order ID against which the buyer is trying // to buy. SellOrderId uint64 `protobuf:"varint,2,opt,name=sell_order_id,json=sellOrderId,proto3" json:"sell_order_id,omitempty"` // quantity is the quantity of credits to buy. Quantity string `protobuf:"bytes,3,opt,name=quantity,proto3" json:"quantity,omitempty"` // bid_price is the price the buyer is willing to pay per credit. BidPrice *types.Coin `protobuf:"bytes,4,opt,name=bid_price,json=bidPrice,proto3" json:"bid_price,omitempty"` // disable_auto_retire allows auto-retirement to be disabled. If it is set // to true the credits will not auto-retire and can be resold assuming that // the corresponding sell order has auto-retirement disabled. If the sell // order hasn't disabled auto-retirement and the buy order tries to disable // it, that buy order will fail. DisableAutoRetire bool `protobuf:"varint,5,opt,name=disable_auto_retire,json=disableAutoRetire,proto3" json:"disable_auto_retire,omitempty"` // retirement_jurisdiction is the optional retirement jurisdiction for the // credits which will be used only if disable_auto_retire is false. RetirementJurisdiction string `` /* 127-byte string literal not displayed */ }
Order contains the information needed to purchase an ecocredit.
func (*MsgBuyDirect_Order) Descriptor ¶
func (*MsgBuyDirect_Order) Descriptor() ([]byte, []int)
func (*MsgBuyDirect_Order) GetBidPrice ¶
func (m *MsgBuyDirect_Order) GetBidPrice() *types.Coin
func (*MsgBuyDirect_Order) GetDisableAutoRetire ¶
func (m *MsgBuyDirect_Order) GetDisableAutoRetire() bool
func (*MsgBuyDirect_Order) GetQuantity ¶
func (m *MsgBuyDirect_Order) GetQuantity() string
func (*MsgBuyDirect_Order) GetRetirementJurisdiction ¶
func (m *MsgBuyDirect_Order) GetRetirementJurisdiction() string
func (*MsgBuyDirect_Order) GetSellOrderId ¶
func (m *MsgBuyDirect_Order) GetSellOrderId() uint64
func (*MsgBuyDirect_Order) Marshal ¶
func (m *MsgBuyDirect_Order) Marshal() (dAtA []byte, err error)
func (*MsgBuyDirect_Order) MarshalTo ¶
func (m *MsgBuyDirect_Order) MarshalTo(dAtA []byte) (int, error)
func (*MsgBuyDirect_Order) MarshalToSizedBuffer ¶
func (m *MsgBuyDirect_Order) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgBuyDirect_Order) ProtoMessage ¶
func (*MsgBuyDirect_Order) ProtoMessage()
func (*MsgBuyDirect_Order) Reset ¶
func (m *MsgBuyDirect_Order) Reset()
func (*MsgBuyDirect_Order) Size ¶
func (m *MsgBuyDirect_Order) Size() (n int)
func (*MsgBuyDirect_Order) String ¶
func (m *MsgBuyDirect_Order) String() string
func (*MsgBuyDirect_Order) Unmarshal ¶
func (m *MsgBuyDirect_Order) Unmarshal(dAtA []byte) error
func (*MsgBuyDirect_Order) XXX_DiscardUnknown ¶
func (m *MsgBuyDirect_Order) XXX_DiscardUnknown()
func (*MsgBuyDirect_Order) XXX_Marshal ¶
func (m *MsgBuyDirect_Order) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgBuyDirect_Order) XXX_Merge ¶
func (m *MsgBuyDirect_Order) XXX_Merge(src proto.Message)
func (*MsgBuyDirect_Order) XXX_Size ¶
func (m *MsgBuyDirect_Order) XXX_Size() int
func (*MsgBuyDirect_Order) XXX_Unmarshal ¶
func (m *MsgBuyDirect_Order) XXX_Unmarshal(b []byte) error
type MsgCancelSellOrder ¶
type MsgCancelSellOrder struct { // seller is the address of the account that created the sell order and is // therefore authorized to cancel the sell order. Seller string `protobuf:"bytes,1,opt,name=seller,proto3" json:"seller,omitempty"` // sell_order_id is the id of the seller order to cancel. SellOrderId uint64 `protobuf:"varint,2,opt,name=sell_order_id,json=sellOrderId,proto3" json:"sell_order_id,omitempty"` }
MsgCancelSellOrder is the Msg/CancelSellOrder request type.
func (*MsgCancelSellOrder) Descriptor ¶
func (*MsgCancelSellOrder) Descriptor() ([]byte, []int)
func (*MsgCancelSellOrder) GetSellOrderId ¶
func (m *MsgCancelSellOrder) GetSellOrderId() uint64
func (*MsgCancelSellOrder) GetSeller ¶
func (m *MsgCancelSellOrder) GetSeller() string
func (MsgCancelSellOrder) GetSignBytes ¶
func (m MsgCancelSellOrder) GetSignBytes() []byte
GetSignBytes implements the LegacyMsg interface.
func (*MsgCancelSellOrder) GetSigners ¶
func (m *MsgCancelSellOrder) GetSigners() []sdk.AccAddress
GetSigners returns the expected signers for MsgCancelSellOrder.
func (*MsgCancelSellOrder) Marshal ¶
func (m *MsgCancelSellOrder) Marshal() (dAtA []byte, err error)
func (*MsgCancelSellOrder) MarshalTo ¶
func (m *MsgCancelSellOrder) MarshalTo(dAtA []byte) (int, error)
func (*MsgCancelSellOrder) MarshalToSizedBuffer ¶
func (m *MsgCancelSellOrder) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCancelSellOrder) ProtoMessage ¶
func (*MsgCancelSellOrder) ProtoMessage()
func (*MsgCancelSellOrder) Reset ¶
func (m *MsgCancelSellOrder) Reset()
func (MsgCancelSellOrder) Route ¶
func (m MsgCancelSellOrder) Route() string
Route implements the LegacyMsg interface.
func (*MsgCancelSellOrder) Size ¶
func (m *MsgCancelSellOrder) Size() (n int)
func (*MsgCancelSellOrder) String ¶
func (m *MsgCancelSellOrder) String() string
func (MsgCancelSellOrder) Type ¶
func (m MsgCancelSellOrder) Type() string
Type implements the LegacyMsg interface.
func (*MsgCancelSellOrder) Unmarshal ¶
func (m *MsgCancelSellOrder) Unmarshal(dAtA []byte) error
func (*MsgCancelSellOrder) ValidateBasic ¶
func (m *MsgCancelSellOrder) ValidateBasic() error
ValidateBasic does a sanity check on the provided data.
func (*MsgCancelSellOrder) XXX_DiscardUnknown ¶
func (m *MsgCancelSellOrder) XXX_DiscardUnknown()
func (*MsgCancelSellOrder) XXX_Marshal ¶
func (m *MsgCancelSellOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCancelSellOrder) XXX_Merge ¶
func (m *MsgCancelSellOrder) XXX_Merge(src proto.Message)
func (*MsgCancelSellOrder) XXX_Size ¶
func (m *MsgCancelSellOrder) XXX_Size() int
func (*MsgCancelSellOrder) XXX_Unmarshal ¶
func (m *MsgCancelSellOrder) XXX_Unmarshal(b []byte) error
type MsgCancelSellOrderResponse ¶
type MsgCancelSellOrderResponse struct { }
MsgCancelSellOrder is the Msg/CancelSellOrder response type.
func (*MsgCancelSellOrderResponse) Descriptor ¶
func (*MsgCancelSellOrderResponse) Descriptor() ([]byte, []int)
func (*MsgCancelSellOrderResponse) Marshal ¶
func (m *MsgCancelSellOrderResponse) Marshal() (dAtA []byte, err error)
func (*MsgCancelSellOrderResponse) MarshalTo ¶
func (m *MsgCancelSellOrderResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgCancelSellOrderResponse) MarshalToSizedBuffer ¶
func (m *MsgCancelSellOrderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCancelSellOrderResponse) ProtoMessage ¶
func (*MsgCancelSellOrderResponse) ProtoMessage()
func (*MsgCancelSellOrderResponse) Reset ¶
func (m *MsgCancelSellOrderResponse) Reset()
func (*MsgCancelSellOrderResponse) Size ¶
func (m *MsgCancelSellOrderResponse) Size() (n int)
func (*MsgCancelSellOrderResponse) String ¶
func (m *MsgCancelSellOrderResponse) String() string
func (*MsgCancelSellOrderResponse) Unmarshal ¶
func (m *MsgCancelSellOrderResponse) Unmarshal(dAtA []byte) error
func (*MsgCancelSellOrderResponse) XXX_DiscardUnknown ¶
func (m *MsgCancelSellOrderResponse) XXX_DiscardUnknown()
func (*MsgCancelSellOrderResponse) XXX_Marshal ¶
func (m *MsgCancelSellOrderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCancelSellOrderResponse) XXX_Merge ¶
func (m *MsgCancelSellOrderResponse) XXX_Merge(src proto.Message)
func (*MsgCancelSellOrderResponse) XXX_Size ¶
func (m *MsgCancelSellOrderResponse) XXX_Size() int
func (*MsgCancelSellOrderResponse) XXX_Unmarshal ¶
func (m *MsgCancelSellOrderResponse) XXX_Unmarshal(b []byte) error
type MsgClient ¶
type MsgClient interface { // Sell creates new sell orders. Sell(ctx context.Context, in *MsgSell, opts ...grpc.CallOption) (*MsgSellResponse, error) // UpdateSellOrders updates existing sell orders. UpdateSellOrders(ctx context.Context, in *MsgUpdateSellOrders, opts ...grpc.CallOption) (*MsgUpdateSellOrdersResponse, error) // CancelSellOrder cancels a sell order and returns the funds from escrow. CancelSellOrder(ctx context.Context, in *MsgCancelSellOrder, opts ...grpc.CallOption) (*MsgCancelSellOrderResponse, error) // BuyDirect purchases credits directly from the specified sell order. BuyDirect(ctx context.Context, in *MsgBuyDirect, opts ...grpc.CallOption) (*MsgBuyDirectResponse, 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 MsgSell ¶
type MsgSell struct { // seller is the address of the account that is selling credits. Seller string `protobuf:"bytes,1,opt,name=seller,proto3" json:"seller,omitempty"` // orders are the sell orders being created. Orders []*MsgSell_Order `protobuf:"bytes,2,rep,name=orders,proto3" json:"orders,omitempty"` }
MsgSell is the Msg/Sell request type.
func (*MsgSell) Descriptor ¶
func (*MsgSell) GetOrders ¶
func (m *MsgSell) GetOrders() []*MsgSell_Order
func (MsgSell) GetSignBytes ¶
GetSignBytes implements the LegacyMsg interface.
func (*MsgSell) GetSigners ¶
func (m *MsgSell) GetSigners() []sdk.AccAddress
GetSigners returns the expected signers for MsgSell.
func (*MsgSell) MarshalToSizedBuffer ¶
func (*MsgSell) ProtoMessage ¶
func (*MsgSell) ProtoMessage()
func (*MsgSell) ValidateBasic ¶
ValidateBasic does a sanity check on the provided data.
func (*MsgSell) XXX_DiscardUnknown ¶
func (m *MsgSell) XXX_DiscardUnknown()
func (*MsgSell) XXX_Marshal ¶
func (*MsgSell) XXX_Unmarshal ¶
type MsgSellResponse ¶
type MsgSellResponse struct { // sell_order_ids are the sell order IDs of the newly created sell orders. SellOrderIds []uint64 `protobuf:"varint,1,rep,packed,name=sell_order_ids,json=sellOrderIds,proto3" json:"sell_order_ids,omitempty"` }
MsgSellResponse is the Msg/Sell response type.
func (*MsgSellResponse) Descriptor ¶
func (*MsgSellResponse) Descriptor() ([]byte, []int)
func (*MsgSellResponse) GetSellOrderIds ¶
func (m *MsgSellResponse) GetSellOrderIds() []uint64
func (*MsgSellResponse) Marshal ¶
func (m *MsgSellResponse) Marshal() (dAtA []byte, err error)
func (*MsgSellResponse) MarshalToSizedBuffer ¶
func (m *MsgSellResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSellResponse) ProtoMessage ¶
func (*MsgSellResponse) ProtoMessage()
func (*MsgSellResponse) Reset ¶
func (m *MsgSellResponse) Reset()
func (*MsgSellResponse) Size ¶
func (m *MsgSellResponse) Size() (n int)
func (*MsgSellResponse) String ¶
func (m *MsgSellResponse) String() string
func (*MsgSellResponse) Unmarshal ¶
func (m *MsgSellResponse) Unmarshal(dAtA []byte) error
func (*MsgSellResponse) XXX_DiscardUnknown ¶
func (m *MsgSellResponse) XXX_DiscardUnknown()
func (*MsgSellResponse) XXX_Marshal ¶
func (m *MsgSellResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgSellResponse) XXX_Merge ¶
func (m *MsgSellResponse) XXX_Merge(src proto.Message)
func (*MsgSellResponse) XXX_Size ¶
func (m *MsgSellResponse) XXX_Size() int
func (*MsgSellResponse) XXX_Unmarshal ¶
func (m *MsgSellResponse) XXX_Unmarshal(b []byte) error
type MsgSell_Order ¶
type MsgSell_Order struct { // batch_denom is the credit batch being sold. BatchDenom string `protobuf:"bytes,1,opt,name=batch_denom,json=batchDenom,proto3" json:"batch_denom,omitempty"` // quantity is the quantity of credits being sold from this batch. If it is // less then the balance of credits the owner has available at the time this // sell order is matched, the quantity will be adjusted downwards to the // owner's balance. However, if the balance of credits is less than this // quantity at the time the sell order is created, the operation will fail. Quantity string `protobuf:"bytes,2,opt,name=quantity,proto3" json:"quantity,omitempty"` // ask_price is the price the seller is asking for each unit of the // batch_denom. Each credit unit of the batch will be sold for at least the // ask_price or more. AskPrice *types.Coin `protobuf:"bytes,3,opt,name=ask_price,json=askPrice,proto3" json:"ask_price,omitempty"` // disable_auto_retire disables auto-retirement of credits which allows a // buyer to disable auto-retirement in their buy order enabling them to // resell the credits to another buyer. DisableAutoRetire bool `protobuf:"varint,4,opt,name=disable_auto_retire,json=disableAutoRetire,proto3" json:"disable_auto_retire,omitempty"` // expiration is an optional timestamp when the sell order expires. When the // expiration time is reached, the sell order is removed from state. Expiration *time.Time `protobuf:"bytes,5,opt,name=expiration,proto3,stdtime" json:"expiration,omitempty"` }
Order is the content of a new sell order.
func (*MsgSell_Order) Descriptor ¶
func (*MsgSell_Order) Descriptor() ([]byte, []int)
func (*MsgSell_Order) GetAskPrice ¶
func (m *MsgSell_Order) GetAskPrice() *types.Coin
func (*MsgSell_Order) GetBatchDenom ¶
func (m *MsgSell_Order) GetBatchDenom() string
func (*MsgSell_Order) GetDisableAutoRetire ¶
func (m *MsgSell_Order) GetDisableAutoRetire() bool
func (*MsgSell_Order) GetExpiration ¶
func (m *MsgSell_Order) GetExpiration() *time.Time
func (*MsgSell_Order) GetQuantity ¶
func (m *MsgSell_Order) GetQuantity() string
func (*MsgSell_Order) Marshal ¶
func (m *MsgSell_Order) Marshal() (dAtA []byte, err error)
func (*MsgSell_Order) MarshalToSizedBuffer ¶
func (m *MsgSell_Order) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSell_Order) ProtoMessage ¶
func (*MsgSell_Order) ProtoMessage()
func (*MsgSell_Order) Reset ¶
func (m *MsgSell_Order) Reset()
func (*MsgSell_Order) Size ¶
func (m *MsgSell_Order) Size() (n int)
func (*MsgSell_Order) String ¶
func (m *MsgSell_Order) String() string
func (*MsgSell_Order) Unmarshal ¶
func (m *MsgSell_Order) Unmarshal(dAtA []byte) error
func (*MsgSell_Order) XXX_DiscardUnknown ¶
func (m *MsgSell_Order) XXX_DiscardUnknown()
func (*MsgSell_Order) XXX_Marshal ¶
func (m *MsgSell_Order) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgSell_Order) XXX_Merge ¶
func (m *MsgSell_Order) XXX_Merge(src proto.Message)
func (*MsgSell_Order) XXX_Size ¶
func (m *MsgSell_Order) XXX_Size() int
func (*MsgSell_Order) XXX_Unmarshal ¶
func (m *MsgSell_Order) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { // Sell creates new sell orders. Sell(context.Context, *MsgSell) (*MsgSellResponse, error) // UpdateSellOrders updates existing sell orders. UpdateSellOrders(context.Context, *MsgUpdateSellOrders) (*MsgUpdateSellOrdersResponse, error) // CancelSellOrder cancels a sell order and returns the funds from escrow. CancelSellOrder(context.Context, *MsgCancelSellOrder) (*MsgCancelSellOrderResponse, error) // BuyDirect purchases credits directly from the specified sell order. BuyDirect(context.Context, *MsgBuyDirect) (*MsgBuyDirectResponse, error) }
MsgServer is the server API for Msg service.
type MsgUpdateSellOrders ¶
type MsgUpdateSellOrders struct { // seller is the address of the account that is selling credits. Seller string `protobuf:"bytes,1,opt,name=seller,proto3" json:"seller,omitempty"` // updates are updates to existing sell orders. Updates []*MsgUpdateSellOrders_Update `protobuf:"bytes,2,rep,name=updates,proto3" json:"updates,omitempty"` }
MsgUpdateSellOrders is the Msg/UpdateSellOrders request type.
func (*MsgUpdateSellOrders) Descriptor ¶
func (*MsgUpdateSellOrders) Descriptor() ([]byte, []int)
func (*MsgUpdateSellOrders) GetSeller ¶
func (m *MsgUpdateSellOrders) GetSeller() string
func (MsgUpdateSellOrders) GetSignBytes ¶
func (m MsgUpdateSellOrders) GetSignBytes() []byte
GetSignBytes implements the LegacyMsg interface.
func (*MsgUpdateSellOrders) GetSigners ¶
func (m *MsgUpdateSellOrders) GetSigners() []sdk.AccAddress
GetSigners returns the expected signers for MsgUpdateSellOrders.
func (*MsgUpdateSellOrders) GetUpdates ¶
func (m *MsgUpdateSellOrders) GetUpdates() []*MsgUpdateSellOrders_Update
func (*MsgUpdateSellOrders) Marshal ¶
func (m *MsgUpdateSellOrders) Marshal() (dAtA []byte, err error)
func (*MsgUpdateSellOrders) MarshalTo ¶
func (m *MsgUpdateSellOrders) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateSellOrders) MarshalToSizedBuffer ¶
func (m *MsgUpdateSellOrders) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateSellOrders) ProtoMessage ¶
func (*MsgUpdateSellOrders) ProtoMessage()
func (*MsgUpdateSellOrders) Reset ¶
func (m *MsgUpdateSellOrders) Reset()
func (MsgUpdateSellOrders) Route ¶
func (m MsgUpdateSellOrders) Route() string
Route implements the LegacyMsg interface.
func (*MsgUpdateSellOrders) Size ¶
func (m *MsgUpdateSellOrders) Size() (n int)
func (*MsgUpdateSellOrders) String ¶
func (m *MsgUpdateSellOrders) String() string
func (MsgUpdateSellOrders) Type ¶
func (m MsgUpdateSellOrders) Type() string
Type implements the LegacyMsg interface.
func (*MsgUpdateSellOrders) Unmarshal ¶
func (m *MsgUpdateSellOrders) Unmarshal(dAtA []byte) error
func (*MsgUpdateSellOrders) ValidateBasic ¶
func (m *MsgUpdateSellOrders) ValidateBasic() error
ValidateBasic does a sanity check on the provided data.
func (*MsgUpdateSellOrders) XXX_DiscardUnknown ¶
func (m *MsgUpdateSellOrders) XXX_DiscardUnknown()
func (*MsgUpdateSellOrders) XXX_Marshal ¶
func (m *MsgUpdateSellOrders) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateSellOrders) XXX_Merge ¶
func (m *MsgUpdateSellOrders) XXX_Merge(src proto.Message)
func (*MsgUpdateSellOrders) XXX_Size ¶
func (m *MsgUpdateSellOrders) XXX_Size() int
func (*MsgUpdateSellOrders) XXX_Unmarshal ¶
func (m *MsgUpdateSellOrders) XXX_Unmarshal(b []byte) error
type MsgUpdateSellOrdersResponse ¶
type MsgUpdateSellOrdersResponse struct { }
MsgUpdateSellOrdersResponse is the Msg/UpdateSellOrders response type.
func (*MsgUpdateSellOrdersResponse) Descriptor ¶
func (*MsgUpdateSellOrdersResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateSellOrdersResponse) Marshal ¶
func (m *MsgUpdateSellOrdersResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateSellOrdersResponse) MarshalTo ¶
func (m *MsgUpdateSellOrdersResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateSellOrdersResponse) MarshalToSizedBuffer ¶
func (m *MsgUpdateSellOrdersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateSellOrdersResponse) ProtoMessage ¶
func (*MsgUpdateSellOrdersResponse) ProtoMessage()
func (*MsgUpdateSellOrdersResponse) Reset ¶
func (m *MsgUpdateSellOrdersResponse) Reset()
func (*MsgUpdateSellOrdersResponse) Size ¶
func (m *MsgUpdateSellOrdersResponse) Size() (n int)
func (*MsgUpdateSellOrdersResponse) String ¶
func (m *MsgUpdateSellOrdersResponse) String() string
func (*MsgUpdateSellOrdersResponse) Unmarshal ¶
func (m *MsgUpdateSellOrdersResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateSellOrdersResponse) XXX_DiscardUnknown ¶
func (m *MsgUpdateSellOrdersResponse) XXX_DiscardUnknown()
func (*MsgUpdateSellOrdersResponse) XXX_Marshal ¶
func (m *MsgUpdateSellOrdersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateSellOrdersResponse) XXX_Merge ¶
func (m *MsgUpdateSellOrdersResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateSellOrdersResponse) XXX_Size ¶
func (m *MsgUpdateSellOrdersResponse) XXX_Size() int
func (*MsgUpdateSellOrdersResponse) XXX_Unmarshal ¶
func (m *MsgUpdateSellOrdersResponse) XXX_Unmarshal(b []byte) error
type MsgUpdateSellOrders_Update ¶
type MsgUpdateSellOrders_Update struct { // sell_order_id is the ID of an existing sell order. SellOrderId uint64 `protobuf:"varint,1,opt,name=sell_order_id,json=sellOrderId,proto3" json:"sell_order_id,omitempty"` // new_quantity is the updated quantity of credits available to sell, if it // is set to zero then the order is cancelled. NewQuantity string `protobuf:"bytes,2,opt,name=new_quantity,json=newQuantity,proto3" json:"new_quantity,omitempty"` // new_ask_price is the new ask price for this sell order NewAskPrice *types.Coin `protobuf:"bytes,3,opt,name=new_ask_price,json=newAskPrice,proto3" json:"new_ask_price,omitempty"` // disable_auto_retire updates the disable_auto_retire field in the sell // order. DisableAutoRetire bool `protobuf:"varint,4,opt,name=disable_auto_retire,json=disableAutoRetire,proto3" json:"disable_auto_retire,omitempty"` // new_expiration is an optional timestamp when the sell order expires. When // the expiration time is reached, the sell order is removed from state. NewExpiration *time.Time `protobuf:"bytes,5,opt,name=new_expiration,json=newExpiration,proto3,stdtime" json:"new_expiration,omitempty"` }
Update is an update to an existing sell order.
func (*MsgUpdateSellOrders_Update) Descriptor ¶
func (*MsgUpdateSellOrders_Update) Descriptor() ([]byte, []int)
func (*MsgUpdateSellOrders_Update) GetDisableAutoRetire ¶
func (m *MsgUpdateSellOrders_Update) GetDisableAutoRetire() bool
func (*MsgUpdateSellOrders_Update) GetNewAskPrice ¶
func (m *MsgUpdateSellOrders_Update) GetNewAskPrice() *types.Coin
func (*MsgUpdateSellOrders_Update) GetNewExpiration ¶
func (m *MsgUpdateSellOrders_Update) GetNewExpiration() *time.Time
func (*MsgUpdateSellOrders_Update) GetNewQuantity ¶
func (m *MsgUpdateSellOrders_Update) GetNewQuantity() string
func (*MsgUpdateSellOrders_Update) GetSellOrderId ¶
func (m *MsgUpdateSellOrders_Update) GetSellOrderId() uint64
func (*MsgUpdateSellOrders_Update) Marshal ¶
func (m *MsgUpdateSellOrders_Update) Marshal() (dAtA []byte, err error)
func (*MsgUpdateSellOrders_Update) MarshalTo ¶
func (m *MsgUpdateSellOrders_Update) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateSellOrders_Update) MarshalToSizedBuffer ¶
func (m *MsgUpdateSellOrders_Update) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateSellOrders_Update) ProtoMessage ¶
func (*MsgUpdateSellOrders_Update) ProtoMessage()
func (*MsgUpdateSellOrders_Update) Reset ¶
func (m *MsgUpdateSellOrders_Update) Reset()
func (*MsgUpdateSellOrders_Update) Size ¶
func (m *MsgUpdateSellOrders_Update) Size() (n int)
func (*MsgUpdateSellOrders_Update) String ¶
func (m *MsgUpdateSellOrders_Update) String() string
func (*MsgUpdateSellOrders_Update) Unmarshal ¶
func (m *MsgUpdateSellOrders_Update) Unmarshal(dAtA []byte) error
func (*MsgUpdateSellOrders_Update) XXX_DiscardUnknown ¶
func (m *MsgUpdateSellOrders_Update) XXX_DiscardUnknown()
func (*MsgUpdateSellOrders_Update) XXX_Marshal ¶
func (m *MsgUpdateSellOrders_Update) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateSellOrders_Update) XXX_Merge ¶
func (m *MsgUpdateSellOrders_Update) XXX_Merge(src proto.Message)
func (*MsgUpdateSellOrders_Update) XXX_Size ¶
func (m *MsgUpdateSellOrders_Update) XXX_Size() int
func (*MsgUpdateSellOrders_Update) XXX_Unmarshal ¶
func (m *MsgUpdateSellOrders_Update) XXX_Unmarshal(b []byte) error
type QueryAllowedDenomsRequest ¶
type QueryAllowedDenomsRequest struct { // pagination defines an optional pagination for the request. Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryAllowedDenomsRequest is the Query/AllowedDenoms request type.
func (*QueryAllowedDenomsRequest) Descriptor ¶
func (*QueryAllowedDenomsRequest) Descriptor() ([]byte, []int)
func (*QueryAllowedDenomsRequest) GetPagination ¶
func (m *QueryAllowedDenomsRequest) GetPagination() *query.PageRequest
func (*QueryAllowedDenomsRequest) Marshal ¶
func (m *QueryAllowedDenomsRequest) Marshal() (dAtA []byte, err error)
func (*QueryAllowedDenomsRequest) MarshalTo ¶
func (m *QueryAllowedDenomsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllowedDenomsRequest) MarshalToSizedBuffer ¶
func (m *QueryAllowedDenomsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllowedDenomsRequest) ProtoMessage ¶
func (*QueryAllowedDenomsRequest) ProtoMessage()
func (*QueryAllowedDenomsRequest) Reset ¶
func (m *QueryAllowedDenomsRequest) Reset()
func (*QueryAllowedDenomsRequest) Size ¶
func (m *QueryAllowedDenomsRequest) Size() (n int)
func (*QueryAllowedDenomsRequest) String ¶
func (m *QueryAllowedDenomsRequest) String() string
func (*QueryAllowedDenomsRequest) Unmarshal ¶
func (m *QueryAllowedDenomsRequest) Unmarshal(dAtA []byte) error
func (*QueryAllowedDenomsRequest) XXX_DiscardUnknown ¶
func (m *QueryAllowedDenomsRequest) XXX_DiscardUnknown()
func (*QueryAllowedDenomsRequest) XXX_Marshal ¶
func (m *QueryAllowedDenomsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllowedDenomsRequest) XXX_Merge ¶
func (m *QueryAllowedDenomsRequest) XXX_Merge(src proto.Message)
func (*QueryAllowedDenomsRequest) XXX_Size ¶
func (m *QueryAllowedDenomsRequest) XXX_Size() int
func (*QueryAllowedDenomsRequest) XXX_Unmarshal ¶
func (m *QueryAllowedDenomsRequest) XXX_Unmarshal(b []byte) error
type QueryAllowedDenomsResponse ¶
type QueryAllowedDenomsResponse struct { // allowed_denoms is a list of coin denoms allowed to use in the ask price of // sell orders. AllowedDenoms []*AllowedDenom `protobuf:"bytes,1,rep,name=allowed_denoms,json=allowedDenoms,proto3" json:"allowed_denoms,omitempty"` // pagination defines an optional pagination for the response. Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryAllowedDenomsResponse is the Query/AllowedDenoms response type.
func (*QueryAllowedDenomsResponse) Descriptor ¶
func (*QueryAllowedDenomsResponse) Descriptor() ([]byte, []int)
func (*QueryAllowedDenomsResponse) GetAllowedDenoms ¶
func (m *QueryAllowedDenomsResponse) GetAllowedDenoms() []*AllowedDenom
func (*QueryAllowedDenomsResponse) GetPagination ¶
func (m *QueryAllowedDenomsResponse) GetPagination() *query.PageResponse
func (*QueryAllowedDenomsResponse) Marshal ¶
func (m *QueryAllowedDenomsResponse) Marshal() (dAtA []byte, err error)
func (*QueryAllowedDenomsResponse) MarshalTo ¶
func (m *QueryAllowedDenomsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllowedDenomsResponse) MarshalToSizedBuffer ¶
func (m *QueryAllowedDenomsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllowedDenomsResponse) ProtoMessage ¶
func (*QueryAllowedDenomsResponse) ProtoMessage()
func (*QueryAllowedDenomsResponse) Reset ¶
func (m *QueryAllowedDenomsResponse) Reset()
func (*QueryAllowedDenomsResponse) Size ¶
func (m *QueryAllowedDenomsResponse) Size() (n int)
func (*QueryAllowedDenomsResponse) String ¶
func (m *QueryAllowedDenomsResponse) String() string
func (*QueryAllowedDenomsResponse) Unmarshal ¶
func (m *QueryAllowedDenomsResponse) Unmarshal(dAtA []byte) error
func (*QueryAllowedDenomsResponse) XXX_DiscardUnknown ¶
func (m *QueryAllowedDenomsResponse) XXX_DiscardUnknown()
func (*QueryAllowedDenomsResponse) XXX_Marshal ¶
func (m *QueryAllowedDenomsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllowedDenomsResponse) XXX_Merge ¶
func (m *QueryAllowedDenomsResponse) XXX_Merge(src proto.Message)
func (*QueryAllowedDenomsResponse) XXX_Size ¶
func (m *QueryAllowedDenomsResponse) XXX_Size() int
func (*QueryAllowedDenomsResponse) XXX_Unmarshal ¶
func (m *QueryAllowedDenomsResponse) XXX_Unmarshal(b []byte) error
type QueryClient ¶
type QueryClient interface { // SellOrder queries a sell order by its unique identifier. SellOrder(ctx context.Context, in *QuerySellOrderRequest, opts ...grpc.CallOption) (*QuerySellOrderResponse, error) // SellOrders queries a paginated list of all sell orders. SellOrders(ctx context.Context, in *QuerySellOrdersRequest, opts ...grpc.CallOption) (*QuerySellOrdersResponse, error) // SellOrdersByBatch queries a paginated list of all sell orders based on // the batch denom of the credits being sold. SellOrdersByBatch(ctx context.Context, in *QuerySellOrdersByBatchRequest, opts ...grpc.CallOption) (*QuerySellOrdersByBatchResponse, error) // SellOrdersBySeller queries a paginated list of all sell orders based on the // account address of the seller. SellOrdersBySeller(ctx context.Context, in *QuerySellOrdersBySellerRequest, opts ...grpc.CallOption) (*QuerySellOrdersBySellerResponse, error) // AllowedDenoms queries a paginated list of all bank denoms allowed to be // used in the marketplace. AllowedDenoms(ctx context.Context, in *QueryAllowedDenomsRequest, opts ...grpc.CallOption) (*QueryAllowedDenomsResponse, 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 QuerySellOrderRequest ¶
type QuerySellOrderRequest struct { // sell_order_id is the id of the requested sell order. SellOrderId uint64 `protobuf:"varint,1,opt,name=sell_order_id,json=sellOrderId,proto3" json:"sell_order_id,omitempty"` }
QuerySellOrderRequest is the Query/SellOrder request type.
func (*QuerySellOrderRequest) Descriptor ¶
func (*QuerySellOrderRequest) Descriptor() ([]byte, []int)
func (*QuerySellOrderRequest) GetSellOrderId ¶
func (m *QuerySellOrderRequest) GetSellOrderId() uint64
func (*QuerySellOrderRequest) Marshal ¶
func (m *QuerySellOrderRequest) Marshal() (dAtA []byte, err error)
func (*QuerySellOrderRequest) MarshalTo ¶
func (m *QuerySellOrderRequest) MarshalTo(dAtA []byte) (int, error)
func (*QuerySellOrderRequest) MarshalToSizedBuffer ¶
func (m *QuerySellOrderRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySellOrderRequest) ProtoMessage ¶
func (*QuerySellOrderRequest) ProtoMessage()
func (*QuerySellOrderRequest) Reset ¶
func (m *QuerySellOrderRequest) Reset()
func (*QuerySellOrderRequest) Size ¶
func (m *QuerySellOrderRequest) Size() (n int)
func (*QuerySellOrderRequest) String ¶
func (m *QuerySellOrderRequest) String() string
func (*QuerySellOrderRequest) Unmarshal ¶
func (m *QuerySellOrderRequest) Unmarshal(dAtA []byte) error
func (*QuerySellOrderRequest) XXX_DiscardUnknown ¶
func (m *QuerySellOrderRequest) XXX_DiscardUnknown()
func (*QuerySellOrderRequest) XXX_Marshal ¶
func (m *QuerySellOrderRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySellOrderRequest) XXX_Merge ¶
func (m *QuerySellOrderRequest) XXX_Merge(src proto.Message)
func (*QuerySellOrderRequest) XXX_Size ¶
func (m *QuerySellOrderRequest) XXX_Size() int
func (*QuerySellOrderRequest) XXX_Unmarshal ¶
func (m *QuerySellOrderRequest) XXX_Unmarshal(b []byte) error
type QuerySellOrderResponse ¶
type QuerySellOrderResponse struct { // sell_order contains all information related to a sell order. SellOrder *SellOrderInfo `protobuf:"bytes,1,opt,name=sell_order,json=sellOrder,proto3" json:"sell_order,omitempty"` }
QuerySellOrderResponse is the Query/SellOrder response type.
func (*QuerySellOrderResponse) Descriptor ¶
func (*QuerySellOrderResponse) Descriptor() ([]byte, []int)
func (*QuerySellOrderResponse) GetSellOrder ¶
func (m *QuerySellOrderResponse) GetSellOrder() *SellOrderInfo
func (*QuerySellOrderResponse) Marshal ¶
func (m *QuerySellOrderResponse) Marshal() (dAtA []byte, err error)
func (*QuerySellOrderResponse) MarshalTo ¶
func (m *QuerySellOrderResponse) MarshalTo(dAtA []byte) (int, error)
func (*QuerySellOrderResponse) MarshalToSizedBuffer ¶
func (m *QuerySellOrderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySellOrderResponse) ProtoMessage ¶
func (*QuerySellOrderResponse) ProtoMessage()
func (*QuerySellOrderResponse) Reset ¶
func (m *QuerySellOrderResponse) Reset()
func (*QuerySellOrderResponse) Size ¶
func (m *QuerySellOrderResponse) Size() (n int)
func (*QuerySellOrderResponse) String ¶
func (m *QuerySellOrderResponse) String() string
func (*QuerySellOrderResponse) Unmarshal ¶
func (m *QuerySellOrderResponse) Unmarshal(dAtA []byte) error
func (*QuerySellOrderResponse) XXX_DiscardUnknown ¶
func (m *QuerySellOrderResponse) XXX_DiscardUnknown()
func (*QuerySellOrderResponse) XXX_Marshal ¶
func (m *QuerySellOrderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySellOrderResponse) XXX_Merge ¶
func (m *QuerySellOrderResponse) XXX_Merge(src proto.Message)
func (*QuerySellOrderResponse) XXX_Size ¶
func (m *QuerySellOrderResponse) XXX_Size() int
func (*QuerySellOrderResponse) XXX_Unmarshal ¶
func (m *QuerySellOrderResponse) XXX_Unmarshal(b []byte) error
type QuerySellOrdersByBatchRequest ¶
type QuerySellOrdersByBatchRequest struct { // batch_denom is an ecocredit denom BatchDenom string `protobuf:"bytes,1,opt,name=batch_denom,json=batchDenom,proto3" json:"batch_denom,omitempty"` // pagination defines an optional pagination for the request. Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QuerySellOrdersByBatchRequest is the Query/SellOrdersByBatch request type.
func (*QuerySellOrdersByBatchRequest) Descriptor ¶
func (*QuerySellOrdersByBatchRequest) Descriptor() ([]byte, []int)
func (*QuerySellOrdersByBatchRequest) GetBatchDenom ¶
func (m *QuerySellOrdersByBatchRequest) GetBatchDenom() string
func (*QuerySellOrdersByBatchRequest) GetPagination ¶
func (m *QuerySellOrdersByBatchRequest) GetPagination() *query.PageRequest
func (*QuerySellOrdersByBatchRequest) Marshal ¶
func (m *QuerySellOrdersByBatchRequest) Marshal() (dAtA []byte, err error)
func (*QuerySellOrdersByBatchRequest) MarshalTo ¶
func (m *QuerySellOrdersByBatchRequest) MarshalTo(dAtA []byte) (int, error)
func (*QuerySellOrdersByBatchRequest) MarshalToSizedBuffer ¶
func (m *QuerySellOrdersByBatchRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySellOrdersByBatchRequest) ProtoMessage ¶
func (*QuerySellOrdersByBatchRequest) ProtoMessage()
func (*QuerySellOrdersByBatchRequest) Reset ¶
func (m *QuerySellOrdersByBatchRequest) Reset()
func (*QuerySellOrdersByBatchRequest) Size ¶
func (m *QuerySellOrdersByBatchRequest) Size() (n int)
func (*QuerySellOrdersByBatchRequest) String ¶
func (m *QuerySellOrdersByBatchRequest) String() string
func (*QuerySellOrdersByBatchRequest) Unmarshal ¶
func (m *QuerySellOrdersByBatchRequest) Unmarshal(dAtA []byte) error
func (*QuerySellOrdersByBatchRequest) XXX_DiscardUnknown ¶
func (m *QuerySellOrdersByBatchRequest) XXX_DiscardUnknown()
func (*QuerySellOrdersByBatchRequest) XXX_Marshal ¶
func (m *QuerySellOrdersByBatchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySellOrdersByBatchRequest) XXX_Merge ¶
func (m *QuerySellOrdersByBatchRequest) XXX_Merge(src proto.Message)
func (*QuerySellOrdersByBatchRequest) XXX_Size ¶
func (m *QuerySellOrdersByBatchRequest) XXX_Size() int
func (*QuerySellOrdersByBatchRequest) XXX_Unmarshal ¶
func (m *QuerySellOrdersByBatchRequest) XXX_Unmarshal(b []byte) error
type QuerySellOrdersByBatchResponse ¶
type QuerySellOrdersByBatchResponse struct { // sell_orders is a list of sell orders. SellOrders []*SellOrderInfo `protobuf:"bytes,1,rep,name=sell_orders,json=sellOrders,proto3" json:"sell_orders,omitempty"` // pagination defines an optional pagination for the response. Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QuerySellOrdersByBatchResponse is the Query/SellOrdersByBatch response type.
func (*QuerySellOrdersByBatchResponse) Descriptor ¶
func (*QuerySellOrdersByBatchResponse) Descriptor() ([]byte, []int)
func (*QuerySellOrdersByBatchResponse) GetPagination ¶
func (m *QuerySellOrdersByBatchResponse) GetPagination() *query.PageResponse
func (*QuerySellOrdersByBatchResponse) GetSellOrders ¶
func (m *QuerySellOrdersByBatchResponse) GetSellOrders() []*SellOrderInfo
func (*QuerySellOrdersByBatchResponse) Marshal ¶
func (m *QuerySellOrdersByBatchResponse) Marshal() (dAtA []byte, err error)
func (*QuerySellOrdersByBatchResponse) MarshalTo ¶
func (m *QuerySellOrdersByBatchResponse) MarshalTo(dAtA []byte) (int, error)
func (*QuerySellOrdersByBatchResponse) MarshalToSizedBuffer ¶
func (m *QuerySellOrdersByBatchResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySellOrdersByBatchResponse) ProtoMessage ¶
func (*QuerySellOrdersByBatchResponse) ProtoMessage()
func (*QuerySellOrdersByBatchResponse) Reset ¶
func (m *QuerySellOrdersByBatchResponse) Reset()
func (*QuerySellOrdersByBatchResponse) Size ¶
func (m *QuerySellOrdersByBatchResponse) Size() (n int)
func (*QuerySellOrdersByBatchResponse) String ¶
func (m *QuerySellOrdersByBatchResponse) String() string
func (*QuerySellOrdersByBatchResponse) Unmarshal ¶
func (m *QuerySellOrdersByBatchResponse) Unmarshal(dAtA []byte) error
func (*QuerySellOrdersByBatchResponse) XXX_DiscardUnknown ¶
func (m *QuerySellOrdersByBatchResponse) XXX_DiscardUnknown()
func (*QuerySellOrdersByBatchResponse) XXX_Marshal ¶
func (m *QuerySellOrdersByBatchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySellOrdersByBatchResponse) XXX_Merge ¶
func (m *QuerySellOrdersByBatchResponse) XXX_Merge(src proto.Message)
func (*QuerySellOrdersByBatchResponse) XXX_Size ¶
func (m *QuerySellOrdersByBatchResponse) XXX_Size() int
func (*QuerySellOrdersByBatchResponse) XXX_Unmarshal ¶
func (m *QuerySellOrdersByBatchResponse) XXX_Unmarshal(b []byte) error
type QuerySellOrdersBySellerRequest ¶
type QuerySellOrdersBySellerRequest struct { // seller is the address of the account that is selling credits. Seller string `protobuf:"bytes,1,opt,name=seller,proto3" json:"seller,omitempty"` // pagination defines an optional pagination for the request. Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QuerySellOrdersBySellerRequest is the Query/SellOrdersBySeller request type.
func (*QuerySellOrdersBySellerRequest) Descriptor ¶
func (*QuerySellOrdersBySellerRequest) Descriptor() ([]byte, []int)
func (*QuerySellOrdersBySellerRequest) GetPagination ¶
func (m *QuerySellOrdersBySellerRequest) GetPagination() *query.PageRequest
func (*QuerySellOrdersBySellerRequest) GetSeller ¶
func (m *QuerySellOrdersBySellerRequest) GetSeller() string
func (*QuerySellOrdersBySellerRequest) Marshal ¶
func (m *QuerySellOrdersBySellerRequest) Marshal() (dAtA []byte, err error)
func (*QuerySellOrdersBySellerRequest) MarshalTo ¶
func (m *QuerySellOrdersBySellerRequest) MarshalTo(dAtA []byte) (int, error)
func (*QuerySellOrdersBySellerRequest) MarshalToSizedBuffer ¶
func (m *QuerySellOrdersBySellerRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySellOrdersBySellerRequest) ProtoMessage ¶
func (*QuerySellOrdersBySellerRequest) ProtoMessage()
func (*QuerySellOrdersBySellerRequest) Reset ¶
func (m *QuerySellOrdersBySellerRequest) Reset()
func (*QuerySellOrdersBySellerRequest) Size ¶
func (m *QuerySellOrdersBySellerRequest) Size() (n int)
func (*QuerySellOrdersBySellerRequest) String ¶
func (m *QuerySellOrdersBySellerRequest) String() string
func (*QuerySellOrdersBySellerRequest) Unmarshal ¶
func (m *QuerySellOrdersBySellerRequest) Unmarshal(dAtA []byte) error
func (*QuerySellOrdersBySellerRequest) XXX_DiscardUnknown ¶
func (m *QuerySellOrdersBySellerRequest) XXX_DiscardUnknown()
func (*QuerySellOrdersBySellerRequest) XXX_Marshal ¶
func (m *QuerySellOrdersBySellerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySellOrdersBySellerRequest) XXX_Merge ¶
func (m *QuerySellOrdersBySellerRequest) XXX_Merge(src proto.Message)
func (*QuerySellOrdersBySellerRequest) XXX_Size ¶
func (m *QuerySellOrdersBySellerRequest) XXX_Size() int
func (*QuerySellOrdersBySellerRequest) XXX_Unmarshal ¶
func (m *QuerySellOrdersBySellerRequest) XXX_Unmarshal(b []byte) error
type QuerySellOrdersBySellerResponse ¶
type QuerySellOrdersBySellerResponse struct { // sell_orders is a list of sell orders. SellOrders []*SellOrderInfo `protobuf:"bytes,1,rep,name=sell_orders,json=sellOrders,proto3" json:"sell_orders,omitempty"` // pagination defines an optional pagination for the response. Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QuerySellOrdersBySellerResponse is the Query/SellOrdersBySellerResponse response type.
func (*QuerySellOrdersBySellerResponse) Descriptor ¶
func (*QuerySellOrdersBySellerResponse) Descriptor() ([]byte, []int)
func (*QuerySellOrdersBySellerResponse) GetPagination ¶
func (m *QuerySellOrdersBySellerResponse) GetPagination() *query.PageResponse
func (*QuerySellOrdersBySellerResponse) GetSellOrders ¶
func (m *QuerySellOrdersBySellerResponse) GetSellOrders() []*SellOrderInfo
func (*QuerySellOrdersBySellerResponse) Marshal ¶
func (m *QuerySellOrdersBySellerResponse) Marshal() (dAtA []byte, err error)
func (*QuerySellOrdersBySellerResponse) MarshalTo ¶
func (m *QuerySellOrdersBySellerResponse) MarshalTo(dAtA []byte) (int, error)
func (*QuerySellOrdersBySellerResponse) MarshalToSizedBuffer ¶
func (m *QuerySellOrdersBySellerResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySellOrdersBySellerResponse) ProtoMessage ¶
func (*QuerySellOrdersBySellerResponse) ProtoMessage()
func (*QuerySellOrdersBySellerResponse) Reset ¶
func (m *QuerySellOrdersBySellerResponse) Reset()
func (*QuerySellOrdersBySellerResponse) Size ¶
func (m *QuerySellOrdersBySellerResponse) Size() (n int)
func (*QuerySellOrdersBySellerResponse) String ¶
func (m *QuerySellOrdersBySellerResponse) String() string
func (*QuerySellOrdersBySellerResponse) Unmarshal ¶
func (m *QuerySellOrdersBySellerResponse) Unmarshal(dAtA []byte) error
func (*QuerySellOrdersBySellerResponse) XXX_DiscardUnknown ¶
func (m *QuerySellOrdersBySellerResponse) XXX_DiscardUnknown()
func (*QuerySellOrdersBySellerResponse) XXX_Marshal ¶
func (m *QuerySellOrdersBySellerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySellOrdersBySellerResponse) XXX_Merge ¶
func (m *QuerySellOrdersBySellerResponse) XXX_Merge(src proto.Message)
func (*QuerySellOrdersBySellerResponse) XXX_Size ¶
func (m *QuerySellOrdersBySellerResponse) XXX_Size() int
func (*QuerySellOrdersBySellerResponse) XXX_Unmarshal ¶
func (m *QuerySellOrdersBySellerResponse) XXX_Unmarshal(b []byte) error
type QuerySellOrdersRequest ¶
type QuerySellOrdersRequest struct { // pagination defines an optional pagination for the request. Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QuerySellOrdersRequest is the Query/SellOrders request type.
func (*QuerySellOrdersRequest) Descriptor ¶
func (*QuerySellOrdersRequest) Descriptor() ([]byte, []int)
func (*QuerySellOrdersRequest) GetPagination ¶
func (m *QuerySellOrdersRequest) GetPagination() *query.PageRequest
func (*QuerySellOrdersRequest) Marshal ¶
func (m *QuerySellOrdersRequest) Marshal() (dAtA []byte, err error)
func (*QuerySellOrdersRequest) MarshalTo ¶
func (m *QuerySellOrdersRequest) MarshalTo(dAtA []byte) (int, error)
func (*QuerySellOrdersRequest) MarshalToSizedBuffer ¶
func (m *QuerySellOrdersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySellOrdersRequest) ProtoMessage ¶
func (*QuerySellOrdersRequest) ProtoMessage()
func (*QuerySellOrdersRequest) Reset ¶
func (m *QuerySellOrdersRequest) Reset()
func (*QuerySellOrdersRequest) Size ¶
func (m *QuerySellOrdersRequest) Size() (n int)
func (*QuerySellOrdersRequest) String ¶
func (m *QuerySellOrdersRequest) String() string
func (*QuerySellOrdersRequest) Unmarshal ¶
func (m *QuerySellOrdersRequest) Unmarshal(dAtA []byte) error
func (*QuerySellOrdersRequest) XXX_DiscardUnknown ¶
func (m *QuerySellOrdersRequest) XXX_DiscardUnknown()
func (*QuerySellOrdersRequest) XXX_Marshal ¶
func (m *QuerySellOrdersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySellOrdersRequest) XXX_Merge ¶
func (m *QuerySellOrdersRequest) XXX_Merge(src proto.Message)
func (*QuerySellOrdersRequest) XXX_Size ¶
func (m *QuerySellOrdersRequest) XXX_Size() int
func (*QuerySellOrdersRequest) XXX_Unmarshal ¶
func (m *QuerySellOrdersRequest) XXX_Unmarshal(b []byte) error
type QuerySellOrdersResponse ¶
type QuerySellOrdersResponse struct { // sell_orders is a list of sell orders. SellOrders []*SellOrderInfo `protobuf:"bytes,1,rep,name=sell_orders,json=sellOrders,proto3" json:"sell_orders,omitempty"` // pagination defines the pagination in the response. Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QuerySellOrdersResponse is the Query/SellOrders response type.
func (*QuerySellOrdersResponse) Descriptor ¶
func (*QuerySellOrdersResponse) Descriptor() ([]byte, []int)
func (*QuerySellOrdersResponse) GetPagination ¶
func (m *QuerySellOrdersResponse) GetPagination() *query.PageResponse
func (*QuerySellOrdersResponse) GetSellOrders ¶
func (m *QuerySellOrdersResponse) GetSellOrders() []*SellOrderInfo
func (*QuerySellOrdersResponse) Marshal ¶
func (m *QuerySellOrdersResponse) Marshal() (dAtA []byte, err error)
func (*QuerySellOrdersResponse) MarshalTo ¶
func (m *QuerySellOrdersResponse) MarshalTo(dAtA []byte) (int, error)
func (*QuerySellOrdersResponse) MarshalToSizedBuffer ¶
func (m *QuerySellOrdersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySellOrdersResponse) ProtoMessage ¶
func (*QuerySellOrdersResponse) ProtoMessage()
func (*QuerySellOrdersResponse) Reset ¶
func (m *QuerySellOrdersResponse) Reset()
func (*QuerySellOrdersResponse) Size ¶
func (m *QuerySellOrdersResponse) Size() (n int)
func (*QuerySellOrdersResponse) String ¶
func (m *QuerySellOrdersResponse) String() string
func (*QuerySellOrdersResponse) Unmarshal ¶
func (m *QuerySellOrdersResponse) Unmarshal(dAtA []byte) error
func (*QuerySellOrdersResponse) XXX_DiscardUnknown ¶
func (m *QuerySellOrdersResponse) XXX_DiscardUnknown()
func (*QuerySellOrdersResponse) XXX_Marshal ¶
func (m *QuerySellOrdersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySellOrdersResponse) XXX_Merge ¶
func (m *QuerySellOrdersResponse) XXX_Merge(src proto.Message)
func (*QuerySellOrdersResponse) XXX_Size ¶
func (m *QuerySellOrdersResponse) XXX_Size() int
func (*QuerySellOrdersResponse) XXX_Unmarshal ¶
func (m *QuerySellOrdersResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface { // SellOrder queries a sell order by its unique identifier. SellOrder(context.Context, *QuerySellOrderRequest) (*QuerySellOrderResponse, error) // SellOrders queries a paginated list of all sell orders. SellOrders(context.Context, *QuerySellOrdersRequest) (*QuerySellOrdersResponse, error) // SellOrdersByBatch queries a paginated list of all sell orders based on // the batch denom of the credits being sold. SellOrdersByBatch(context.Context, *QuerySellOrdersByBatchRequest) (*QuerySellOrdersByBatchResponse, error) // SellOrdersBySeller queries a paginated list of all sell orders based on the // account address of the seller. SellOrdersBySeller(context.Context, *QuerySellOrdersBySellerRequest) (*QuerySellOrdersBySellerResponse, error) // AllowedDenoms queries a paginated list of all bank denoms allowed to be // used in the marketplace. AllowedDenoms(context.Context, *QueryAllowedDenomsRequest) (*QueryAllowedDenomsResponse, error) }
QueryServer is the server API for Query service.
type SellOrder ¶
type SellOrder struct { // id is the unique ID of sell order. Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // seller is the address of the account that is selling credits. Seller []byte `protobuf:"bytes,2,opt,name=seller,proto3" json:"seller,omitempty"` // batch_key is the table row identifier of the credit batch used internally // for efficient lookups. This links a sell order to a credit batch. BatchKey uint64 `protobuf:"varint,3,opt,name=batch_key,json=batchKey,proto3" json:"batch_key,omitempty"` // quantity is the decimal quantity of credits being sold. Quantity string `protobuf:"bytes,4,opt,name=quantity,proto3" json:"quantity,omitempty"` // market_id is the market in which this sell order exists and specifies // the bank_denom that ask_amount corresponds to forming the ask_price. MarketId uint64 `protobuf:"varint,5,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` // ask_amount is the integer amount (encoded as a string) that the seller is // asking for each credit unit of the batch. Each credit unit of the batch // will be sold for at least the ask_amount. The ask_amount corresponds to the // Market.denom to form the ask price. AskAmount string `protobuf:"bytes,6,opt,name=ask_amount,json=askAmount,proto3" json:"ask_amount,omitempty"` // disable_auto_retire disables auto-retirement of credits which allows a // buyer to disable auto-retirement in their buy order enabling them to // resell the credits to another buyer. DisableAutoRetire bool `protobuf:"varint,7,opt,name=disable_auto_retire,json=disableAutoRetire,proto3" json:"disable_auto_retire,omitempty"` // expiration is an optional timestamp when the sell order expires. When the // expiration time is reached, the sell order is removed from state. Expiration *types.Timestamp `protobuf:"bytes,9,opt,name=expiration,proto3" json:"expiration,omitempty"` // maker indicates that this is a maker order, meaning that when it hit // the order book, there were no matching buy orders. Maker bool `protobuf:"varint,10,opt,name=maker,proto3" json:"maker,omitempty"` }
SellOrder represents the information for a sell order.
func (*SellOrder) Descriptor ¶
func (*SellOrder) GetAskAmount ¶
func (*SellOrder) GetBatchKey ¶
func (*SellOrder) GetDisableAutoRetire ¶
func (*SellOrder) GetExpiration ¶
func (*SellOrder) GetMarketId ¶
func (*SellOrder) GetQuantity ¶
func (*SellOrder) MarshalToSizedBuffer ¶
func (*SellOrder) ProtoMessage ¶
func (*SellOrder) ProtoMessage()
func (*SellOrder) XXX_DiscardUnknown ¶
func (m *SellOrder) XXX_DiscardUnknown()
func (*SellOrder) XXX_Marshal ¶
func (*SellOrder) XXX_Unmarshal ¶
type SellOrderInfo ¶
type SellOrderInfo struct { // id is the unique ID of sell order. Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // seller is the address of the account that is selling credits. Seller string `protobuf:"bytes,2,opt,name=seller,proto3" json:"seller,omitempty"` // batch_denom is denom of the credit batch being sold. BatchDenom string `protobuf:"bytes,3,opt,name=batch_denom,json=batchDenom,proto3" json:"batch_denom,omitempty"` // quantity is the decimal quantity of credits being sold. Quantity string `protobuf:"bytes,4,opt,name=quantity,proto3" json:"quantity,omitempty"` // ask_denom is the denom used in the ask price of the sell order. AskDenom string `protobuf:"bytes,5,opt,name=ask_denom,json=askDenom,proto3" json:"ask_denom,omitempty"` // ask_amount is the amount that the seller is asking for each credit unit of // the batch. Each credit unit of the batch will be sold for at least the // ask_amount. AskAmount string `protobuf:"bytes,6,opt,name=ask_amount,json=askAmount,proto3" json:"ask_amount,omitempty"` // disable_auto_retire disables auto-retirement of credits which allows a // buyer to disable auto-retirement in their buy order enabling them to // resell the credits to another buyer. DisableAutoRetire bool `protobuf:"varint,7,opt,name=disable_auto_retire,json=disableAutoRetire,proto3" json:"disable_auto_retire,omitempty"` // expiration is an optional timestamp when the sell order expires. When the // expiration time is reached, the sell order is removed from state. Expiration *types.Timestamp `protobuf:"bytes,9,opt,name=expiration,proto3" json:"expiration,omitempty"` }
SellOrderInfo is the human-readable sell order information.
func (*SellOrderInfo) Descriptor ¶
func (*SellOrderInfo) Descriptor() ([]byte, []int)
func (*SellOrderInfo) GetAskAmount ¶
func (m *SellOrderInfo) GetAskAmount() string
func (*SellOrderInfo) GetAskDenom ¶
func (m *SellOrderInfo) GetAskDenom() string
func (*SellOrderInfo) GetBatchDenom ¶
func (m *SellOrderInfo) GetBatchDenom() string
func (*SellOrderInfo) GetDisableAutoRetire ¶
func (m *SellOrderInfo) GetDisableAutoRetire() bool
func (*SellOrderInfo) GetExpiration ¶
func (m *SellOrderInfo) GetExpiration() *types.Timestamp
func (*SellOrderInfo) GetId ¶
func (m *SellOrderInfo) GetId() uint64
func (*SellOrderInfo) GetQuantity ¶
func (m *SellOrderInfo) GetQuantity() string
func (*SellOrderInfo) GetSeller ¶
func (m *SellOrderInfo) GetSeller() string
func (*SellOrderInfo) Marshal ¶
func (m *SellOrderInfo) Marshal() (dAtA []byte, err error)
func (*SellOrderInfo) MarshalToSizedBuffer ¶
func (m *SellOrderInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SellOrderInfo) ProtoMessage ¶
func (*SellOrderInfo) ProtoMessage()
func (*SellOrderInfo) Reset ¶
func (m *SellOrderInfo) Reset()
func (*SellOrderInfo) Size ¶
func (m *SellOrderInfo) Size() (n int)
func (*SellOrderInfo) String ¶
func (m *SellOrderInfo) String() string
func (*SellOrderInfo) Unmarshal ¶
func (m *SellOrderInfo) Unmarshal(dAtA []byte) error
func (*SellOrderInfo) XXX_DiscardUnknown ¶
func (m *SellOrderInfo) XXX_DiscardUnknown()
func (*SellOrderInfo) XXX_Marshal ¶
func (m *SellOrderInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SellOrderInfo) XXX_Merge ¶
func (m *SellOrderInfo) XXX_Merge(src proto.Message)
func (*SellOrderInfo) XXX_Size ¶
func (m *SellOrderInfo) XXX_Size() int
func (*SellOrderInfo) XXX_Unmarshal ¶
func (m *SellOrderInfo) XXX_Unmarshal(b []byte) error
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) BuyDirect ¶
func (*UnimplementedMsgServer) BuyDirect(ctx context.Context, req *MsgBuyDirect) (*MsgBuyDirectResponse, error)
func (*UnimplementedMsgServer) CancelSellOrder ¶
func (*UnimplementedMsgServer) CancelSellOrder(ctx context.Context, req *MsgCancelSellOrder) (*MsgCancelSellOrderResponse, error)
func (*UnimplementedMsgServer) Sell ¶
func (*UnimplementedMsgServer) Sell(ctx context.Context, req *MsgSell) (*MsgSellResponse, error)
func (*UnimplementedMsgServer) UpdateSellOrders ¶
func (*UnimplementedMsgServer) UpdateSellOrders(ctx context.Context, req *MsgUpdateSellOrders) (*MsgUpdateSellOrdersResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) AllowedDenoms ¶
func (*UnimplementedQueryServer) AllowedDenoms(ctx context.Context, req *QueryAllowedDenomsRequest) (*QueryAllowedDenomsResponse, error)
func (*UnimplementedQueryServer) SellOrder ¶
func (*UnimplementedQueryServer) SellOrder(ctx context.Context, req *QuerySellOrderRequest) (*QuerySellOrderResponse, error)
func (*UnimplementedQueryServer) SellOrders ¶
func (*UnimplementedQueryServer) SellOrders(ctx context.Context, req *QuerySellOrdersRequest) (*QuerySellOrdersResponse, error)
func (*UnimplementedQueryServer) SellOrdersByBatch ¶
func (*UnimplementedQueryServer) SellOrdersByBatch(ctx context.Context, req *QuerySellOrdersByBatchRequest) (*QuerySellOrdersByBatchResponse, error)
func (*UnimplementedQueryServer) SellOrdersBySeller ¶
func (*UnimplementedQueryServer) SellOrdersBySeller(ctx context.Context, req *QuerySellOrdersBySellerRequest) (*QuerySellOrdersBySellerResponse, error)