Documentation
¶
Overview ¶
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Index ¶
- Variables
- func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)
- func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)
- type AllowDenomProposal
- func (*AllowDenomProposal) Descriptor() ([]byte, []int)deprecated
- func (x *AllowDenomProposal) GetDenom() *AllowedDenom
- func (x *AllowDenomProposal) GetDescription() string
- func (x *AllowDenomProposal) GetTitle() string
- func (*AllowDenomProposal) ProtoMessage()
- func (x *AllowDenomProposal) ProtoReflect() protoreflect.Message
- func (x *AllowDenomProposal) Reset()
- func (x *AllowDenomProposal) String() string
- type AllowedDenom
- func (*AllowedDenom) Descriptor() ([]byte, []int)deprecated
- func (x *AllowedDenom) GetBankDenom() string
- func (x *AllowedDenom) GetDisplayDenom() string
- func (x *AllowedDenom) GetExponent() uint32
- func (*AllowedDenom) ProtoMessage()
- func (x *AllowedDenom) ProtoReflect() protoreflect.Message
- func (x *AllowedDenom) Reset()
- func (x *AllowedDenom) String() string
- type AllowedDenomBankDenomIndexKey
- type AllowedDenomDisplayDenomIndexKey
- type AllowedDenomIndexKey
- type AllowedDenomIterator
- type AllowedDenomPrimaryKey
- type AllowedDenomTable
- type EventAllowDenom
- type EventBuyDirect
- type EventCancelSellOrder
- func (*EventCancelSellOrder) Descriptor() ([]byte, []int)deprecated
- func (x *EventCancelSellOrder) GetSellOrderId() uint64
- func (*EventCancelSellOrder) ProtoMessage()
- func (x *EventCancelSellOrder) ProtoReflect() protoreflect.Message
- func (x *EventCancelSellOrder) Reset()
- func (x *EventCancelSellOrder) String() string
- type EventSell
- type EventUpdateSellOrder
- func (*EventUpdateSellOrder) Descriptor() ([]byte, []int)deprecated
- func (x *EventUpdateSellOrder) GetSellOrderId() uint64
- func (*EventUpdateSellOrder) ProtoMessage()
- func (x *EventUpdateSellOrder) ProtoReflect() protoreflect.Message
- func (x *EventUpdateSellOrder) Reset()
- func (x *EventUpdateSellOrder) String() string
- type Market
- func (*Market) Descriptor() ([]byte, []int)deprecated
- func (x *Market) GetBankDenom() string
- func (x *Market) GetCreditTypeAbbrev() string
- func (x *Market) GetId() uint64
- func (x *Market) GetPrecisionModifier() uint32
- func (*Market) ProtoMessage()
- func (x *Market) ProtoReflect() protoreflect.Message
- func (x *Market) Reset()
- func (x *Market) String() string
- type MarketCreditTypeAbbrevBankDenomIndexKey
- func (this MarketCreditTypeAbbrevBankDenomIndexKey) WithCreditTypeAbbrev(credit_type_abbrev string) MarketCreditTypeAbbrevBankDenomIndexKey
- func (this MarketCreditTypeAbbrevBankDenomIndexKey) WithCreditTypeAbbrevBankDenom(credit_type_abbrev string, bank_denom string) MarketCreditTypeAbbrevBankDenomIndexKey
- type MarketIdIndexKey
- type MarketIndexKey
- type MarketIterator
- type MarketPrimaryKey
- type MarketTable
- type MsgBuyDirect
- func (*MsgBuyDirect) Descriptor() ([]byte, []int)deprecated
- func (x *MsgBuyDirect) GetBuyer() string
- func (x *MsgBuyDirect) GetOrders() []*MsgBuyDirect_Order
- func (*MsgBuyDirect) ProtoMessage()
- func (x *MsgBuyDirect) ProtoReflect() protoreflect.Message
- func (x *MsgBuyDirect) Reset()
- func (x *MsgBuyDirect) String() string
- type MsgBuyDirectResponse
- type MsgBuyDirect_Order
- func (*MsgBuyDirect_Order) Descriptor() ([]byte, []int)deprecated
- func (x *MsgBuyDirect_Order) GetBidPrice() *v1beta1.Coin
- func (x *MsgBuyDirect_Order) GetDisableAutoRetire() bool
- func (x *MsgBuyDirect_Order) GetQuantity() string
- func (x *MsgBuyDirect_Order) GetRetirementJurisdiction() string
- func (x *MsgBuyDirect_Order) GetSellOrderId() uint64
- func (*MsgBuyDirect_Order) ProtoMessage()
- func (x *MsgBuyDirect_Order) ProtoReflect() protoreflect.Message
- func (x *MsgBuyDirect_Order) Reset()
- func (x *MsgBuyDirect_Order) String() string
- type MsgCancelSellOrder
- func (*MsgCancelSellOrder) Descriptor() ([]byte, []int)deprecated
- func (x *MsgCancelSellOrder) GetSellOrderId() uint64
- func (x *MsgCancelSellOrder) GetSeller() string
- func (*MsgCancelSellOrder) ProtoMessage()
- func (x *MsgCancelSellOrder) ProtoReflect() protoreflect.Message
- func (x *MsgCancelSellOrder) Reset()
- func (x *MsgCancelSellOrder) String() string
- type MsgCancelSellOrderResponse
- type MsgClient
- type MsgSell
- type MsgSellResponse
- type MsgSell_Order
- func (*MsgSell_Order) Descriptor() ([]byte, []int)deprecated
- func (x *MsgSell_Order) GetAskPrice() *v1beta1.Coin
- func (x *MsgSell_Order) GetBatchDenom() string
- func (x *MsgSell_Order) GetDisableAutoRetire() bool
- func (x *MsgSell_Order) GetExpiration() *timestamppb.Timestamp
- func (x *MsgSell_Order) GetQuantity() string
- func (*MsgSell_Order) ProtoMessage()
- func (x *MsgSell_Order) ProtoReflect() protoreflect.Message
- func (x *MsgSell_Order) Reset()
- func (x *MsgSell_Order) String() string
- type MsgServer
- type MsgUpdateSellOrders
- func (*MsgUpdateSellOrders) Descriptor() ([]byte, []int)deprecated
- func (x *MsgUpdateSellOrders) GetSeller() string
- func (x *MsgUpdateSellOrders) GetUpdates() []*MsgUpdateSellOrders_Update
- func (*MsgUpdateSellOrders) ProtoMessage()
- func (x *MsgUpdateSellOrders) ProtoReflect() protoreflect.Message
- func (x *MsgUpdateSellOrders) Reset()
- func (x *MsgUpdateSellOrders) String() string
- type MsgUpdateSellOrdersResponse
- type MsgUpdateSellOrders_Update
- func (*MsgUpdateSellOrders_Update) Descriptor() ([]byte, []int)deprecated
- func (x *MsgUpdateSellOrders_Update) GetDisableAutoRetire() bool
- func (x *MsgUpdateSellOrders_Update) GetNewAskPrice() *v1beta1.Coin
- func (x *MsgUpdateSellOrders_Update) GetNewExpiration() *timestamppb.Timestamp
- func (x *MsgUpdateSellOrders_Update) GetNewQuantity() string
- func (x *MsgUpdateSellOrders_Update) GetSellOrderId() uint64
- func (*MsgUpdateSellOrders_Update) ProtoMessage()
- func (x *MsgUpdateSellOrders_Update) ProtoReflect() protoreflect.Message
- func (x *MsgUpdateSellOrders_Update) Reset()
- func (x *MsgUpdateSellOrders_Update) String() string
- type QueryAllowedDenomsRequest
- func (*QueryAllowedDenomsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryAllowedDenomsRequest) GetPagination() *v1beta1.PageRequest
- func (*QueryAllowedDenomsRequest) ProtoMessage()
- func (x *QueryAllowedDenomsRequest) ProtoReflect() protoreflect.Message
- func (x *QueryAllowedDenomsRequest) Reset()
- func (x *QueryAllowedDenomsRequest) String() string
- type QueryAllowedDenomsResponse
- func (*QueryAllowedDenomsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryAllowedDenomsResponse) GetAllowedDenoms() []*AllowedDenom
- func (x *QueryAllowedDenomsResponse) GetPagination() *v1beta1.PageResponse
- func (*QueryAllowedDenomsResponse) ProtoMessage()
- func (x *QueryAllowedDenomsResponse) ProtoReflect() protoreflect.Message
- func (x *QueryAllowedDenomsResponse) Reset()
- func (x *QueryAllowedDenomsResponse) String() string
- type QueryClient
- type QuerySellOrderRequest
- func (*QuerySellOrderRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QuerySellOrderRequest) GetSellOrderId() uint64
- func (*QuerySellOrderRequest) ProtoMessage()
- func (x *QuerySellOrderRequest) ProtoReflect() protoreflect.Message
- func (x *QuerySellOrderRequest) Reset()
- func (x *QuerySellOrderRequest) String() string
- type QuerySellOrderResponse
- func (*QuerySellOrderResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QuerySellOrderResponse) GetSellOrder() *SellOrderInfo
- func (*QuerySellOrderResponse) ProtoMessage()
- func (x *QuerySellOrderResponse) ProtoReflect() protoreflect.Message
- func (x *QuerySellOrderResponse) Reset()
- func (x *QuerySellOrderResponse) String() string
- type QuerySellOrdersByBatchRequest
- func (*QuerySellOrdersByBatchRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QuerySellOrdersByBatchRequest) GetBatchDenom() string
- func (x *QuerySellOrdersByBatchRequest) GetPagination() *v1beta1.PageRequest
- func (*QuerySellOrdersByBatchRequest) ProtoMessage()
- func (x *QuerySellOrdersByBatchRequest) ProtoReflect() protoreflect.Message
- func (x *QuerySellOrdersByBatchRequest) Reset()
- func (x *QuerySellOrdersByBatchRequest) String() string
- type QuerySellOrdersByBatchResponse
- func (*QuerySellOrdersByBatchResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QuerySellOrdersByBatchResponse) GetPagination() *v1beta1.PageResponse
- func (x *QuerySellOrdersByBatchResponse) GetSellOrders() []*SellOrderInfo
- func (*QuerySellOrdersByBatchResponse) ProtoMessage()
- func (x *QuerySellOrdersByBatchResponse) ProtoReflect() protoreflect.Message
- func (x *QuerySellOrdersByBatchResponse) Reset()
- func (x *QuerySellOrdersByBatchResponse) String() string
- type QuerySellOrdersBySellerRequest
- func (*QuerySellOrdersBySellerRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QuerySellOrdersBySellerRequest) GetPagination() *v1beta1.PageRequest
- func (x *QuerySellOrdersBySellerRequest) GetSeller() string
- func (*QuerySellOrdersBySellerRequest) ProtoMessage()
- func (x *QuerySellOrdersBySellerRequest) ProtoReflect() protoreflect.Message
- func (x *QuerySellOrdersBySellerRequest) Reset()
- func (x *QuerySellOrdersBySellerRequest) String() string
- type QuerySellOrdersBySellerResponse
- func (*QuerySellOrdersBySellerResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QuerySellOrdersBySellerResponse) GetPagination() *v1beta1.PageResponse
- func (x *QuerySellOrdersBySellerResponse) GetSellOrders() []*SellOrderInfo
- func (*QuerySellOrdersBySellerResponse) ProtoMessage()
- func (x *QuerySellOrdersBySellerResponse) ProtoReflect() protoreflect.Message
- func (x *QuerySellOrdersBySellerResponse) Reset()
- func (x *QuerySellOrdersBySellerResponse) String() string
- type QuerySellOrdersRequest
- func (*QuerySellOrdersRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QuerySellOrdersRequest) GetPagination() *v1beta1.PageRequest
- func (*QuerySellOrdersRequest) ProtoMessage()
- func (x *QuerySellOrdersRequest) ProtoReflect() protoreflect.Message
- func (x *QuerySellOrdersRequest) Reset()
- func (x *QuerySellOrdersRequest) String() string
- type QuerySellOrdersResponse
- func (*QuerySellOrdersResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QuerySellOrdersResponse) GetPagination() *v1beta1.PageResponse
- func (x *QuerySellOrdersResponse) GetSellOrders() []*SellOrderInfo
- func (*QuerySellOrdersResponse) ProtoMessage()
- func (x *QuerySellOrdersResponse) ProtoReflect() protoreflect.Message
- func (x *QuerySellOrdersResponse) Reset()
- func (x *QuerySellOrdersResponse) String() string
- type QueryServer
- type SellOrder
- func (*SellOrder) Descriptor() ([]byte, []int)deprecated
- func (x *SellOrder) GetAskAmount() string
- func (x *SellOrder) GetBatchKey() uint64
- func (x *SellOrder) GetDisableAutoRetire() bool
- func (x *SellOrder) GetExpiration() *timestamppb.Timestamp
- func (x *SellOrder) GetId() uint64
- func (x *SellOrder) GetMaker() bool
- func (x *SellOrder) GetMarketId() uint64
- func (x *SellOrder) GetQuantity() string
- func (x *SellOrder) GetSeller() []byte
- func (*SellOrder) ProtoMessage()
- func (x *SellOrder) ProtoReflect() protoreflect.Message
- func (x *SellOrder) Reset()
- func (x *SellOrder) String() string
- type SellOrderBatchKeyIndexKey
- type SellOrderExpirationIndexKey
- type SellOrderIdIndexKey
- type SellOrderIndexKey
- type SellOrderInfo
- func (*SellOrderInfo) Descriptor() ([]byte, []int)deprecated
- func (x *SellOrderInfo) GetAskAmount() string
- func (x *SellOrderInfo) GetAskDenom() string
- func (x *SellOrderInfo) GetBatchDenom() string
- func (x *SellOrderInfo) GetDisableAutoRetire() bool
- func (x *SellOrderInfo) GetExpiration() *timestamppb.Timestamp
- func (x *SellOrderInfo) GetId() uint64
- func (x *SellOrderInfo) GetQuantity() string
- func (x *SellOrderInfo) GetSeller() string
- func (*SellOrderInfo) ProtoMessage()
- func (x *SellOrderInfo) ProtoReflect() protoreflect.Message
- func (x *SellOrderInfo) Reset()
- func (x *SellOrderInfo) String() string
- type SellOrderIterator
- type SellOrderPrimaryKey
- type SellOrderSellerIndexKey
- type SellOrderTable
- type StateStore
- type UnimplementedMsgServer
- func (UnimplementedMsgServer) BuyDirect(context.Context, *MsgBuyDirect) (*MsgBuyDirectResponse, error)
- func (UnimplementedMsgServer) CancelSellOrder(context.Context, *MsgCancelSellOrder) (*MsgCancelSellOrderResponse, error)
- func (UnimplementedMsgServer) Sell(context.Context, *MsgSell) (*MsgSellResponse, error)
- func (UnimplementedMsgServer) UpdateSellOrders(context.Context, *MsgUpdateSellOrders) (*MsgUpdateSellOrdersResponse, error)
- type UnimplementedQueryServer
- func (UnimplementedQueryServer) AllowedDenoms(context.Context, *QueryAllowedDenomsRequest) (*QueryAllowedDenomsResponse, error)
- func (UnimplementedQueryServer) SellOrder(context.Context, *QuerySellOrderRequest) (*QuerySellOrderResponse, error)
- func (UnimplementedQueryServer) SellOrders(context.Context, *QuerySellOrdersRequest) (*QuerySellOrdersResponse, error)
- func (UnimplementedQueryServer) SellOrdersByBatch(context.Context, *QuerySellOrdersByBatchRequest) (*QuerySellOrdersByBatchResponse, error)
- func (UnimplementedQueryServer) SellOrdersBySeller(context.Context, *QuerySellOrdersBySellerRequest) (*QuerySellOrdersBySellerResponse, error)
- type UnsafeMsgServer
- type UnsafeQueryServer
Constants ¶
This section is empty.
Variables ¶
var File_regen_ecocredit_marketplace_v1_events_proto protoreflect.FileDescriptor
var File_regen_ecocredit_marketplace_v1_query_proto protoreflect.FileDescriptor
var File_regen_ecocredit_marketplace_v1_state_proto protoreflect.FileDescriptor
var File_regen_ecocredit_marketplace_v1_tx_proto protoreflect.FileDescriptor
var File_regen_ecocredit_marketplace_v1_types_proto protoreflect.FileDescriptor
var Msg_ServiceDesc = grpc.ServiceDesc{ ServiceName: "regen.ecocredit.marketplace.v1.Msg", HandlerType: (*MsgServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Sell", Handler: _Msg_Sell_Handler, }, { MethodName: "UpdateSellOrders", Handler: _Msg_UpdateSellOrders_Handler, }, { MethodName: "CancelSellOrder", Handler: _Msg_CancelSellOrder_Handler, }, { MethodName: "BuyDirect", Handler: _Msg_BuyDirect_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "regen/ecocredit/marketplace/v1/tx.proto", }
Msg_ServiceDesc is the grpc.ServiceDesc for Msg service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var Query_ServiceDesc = grpc.ServiceDesc{ ServiceName: "regen.ecocredit.marketplace.v1.Query", HandlerType: (*QueryServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "SellOrder", Handler: _Query_SellOrder_Handler, }, { MethodName: "SellOrders", Handler: _Query_SellOrders_Handler, }, { MethodName: "SellOrdersByBatch", Handler: _Query_SellOrdersByBatch_Handler, }, { MethodName: "SellOrdersBySeller", Handler: _Query_SellOrdersBySeller_Handler, }, { MethodName: "AllowedDenoms", Handler: _Query_AllowedDenoms_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "regen/ecocredit/marketplace/v1/query.proto", }
Query_ServiceDesc is the grpc.ServiceDesc for Query service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterMsgServer ¶
func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)
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"` // contains filtered or unexported fields }
AllowDenomProposal is a gov Content type for approving a denom for use in the marketplace.
func (*AllowDenomProposal) Descriptor
deprecated
func (*AllowDenomProposal) Descriptor() ([]byte, []int)
Deprecated: Use AllowDenomProposal.ProtoReflect.Descriptor instead.
func (*AllowDenomProposal) GetDenom ¶
func (x *AllowDenomProposal) GetDenom() *AllowedDenom
func (*AllowDenomProposal) GetDescription ¶
func (x *AllowDenomProposal) GetDescription() string
func (*AllowDenomProposal) GetTitle ¶
func (x *AllowDenomProposal) GetTitle() string
func (*AllowDenomProposal) ProtoMessage ¶
func (*AllowDenomProposal) ProtoMessage()
func (*AllowDenomProposal) ProtoReflect ¶
func (x *AllowDenomProposal) ProtoReflect() protoreflect.Message
func (*AllowDenomProposal) Reset ¶
func (x *AllowDenomProposal) Reset()
func (*AllowDenomProposal) String ¶
func (x *AllowDenomProposal) String() string
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"` // contains filtered or unexported fields }
AllowedDenom represents the information for an allowed ask/bid denom.
func (*AllowedDenom) Descriptor
deprecated
func (*AllowedDenom) Descriptor() ([]byte, []int)
Deprecated: Use AllowedDenom.ProtoReflect.Descriptor instead.
func (*AllowedDenom) GetBankDenom ¶
func (x *AllowedDenom) GetBankDenom() string
func (*AllowedDenom) GetDisplayDenom ¶
func (x *AllowedDenom) GetDisplayDenom() string
func (*AllowedDenom) GetExponent ¶
func (x *AllowedDenom) GetExponent() uint32
func (*AllowedDenom) ProtoMessage ¶
func (*AllowedDenom) ProtoMessage()
func (*AllowedDenom) ProtoReflect ¶
func (x *AllowedDenom) ProtoReflect() protoreflect.Message
func (*AllowedDenom) Reset ¶
func (x *AllowedDenom) Reset()
func (*AllowedDenom) String ¶
func (x *AllowedDenom) String() string
type AllowedDenomBankDenomIndexKey ¶
type AllowedDenomBankDenomIndexKey struct {
// contains filtered or unexported fields
}
func (AllowedDenomBankDenomIndexKey) WithBankDenom ¶
func (this AllowedDenomBankDenomIndexKey) WithBankDenom(bank_denom string) AllowedDenomBankDenomIndexKey
type AllowedDenomDisplayDenomIndexKey ¶
type AllowedDenomDisplayDenomIndexKey struct {
// contains filtered or unexported fields
}
func (AllowedDenomDisplayDenomIndexKey) WithDisplayDenom ¶
func (this AllowedDenomDisplayDenomIndexKey) WithDisplayDenom(display_denom string) AllowedDenomDisplayDenomIndexKey
type AllowedDenomIndexKey ¶
type AllowedDenomIndexKey interface {
// contains filtered or unexported methods
}
type AllowedDenomIterator ¶
func (AllowedDenomIterator) Value ¶
func (i AllowedDenomIterator) Value() (*AllowedDenom, error)
type AllowedDenomPrimaryKey ¶
type AllowedDenomPrimaryKey = AllowedDenomBankDenomIndexKey
primary key starting index..
type AllowedDenomTable ¶
type AllowedDenomTable interface { Insert(ctx context.Context, allowedDenom *AllowedDenom) error Update(ctx context.Context, allowedDenom *AllowedDenom) error Save(ctx context.Context, allowedDenom *AllowedDenom) error Delete(ctx context.Context, allowedDenom *AllowedDenom) error Has(ctx context.Context, bank_denom string) (found bool, err error) // Get returns nil and an error which responds true to ormerrors.IsNotFound() if the record was not found. Get(ctx context.Context, bank_denom string) (*AllowedDenom, error) HasByDisplayDenom(ctx context.Context, display_denom string) (found bool, err error) // GetByDisplayDenom returns nil and an error which responds true to ormerrors.IsNotFound() if the record was not found. GetByDisplayDenom(ctx context.Context, display_denom string) (*AllowedDenom, error) List(ctx context.Context, prefixKey AllowedDenomIndexKey, opts ...ormlist.Option) (AllowedDenomIterator, error) ListRange(ctx context.Context, from, to AllowedDenomIndexKey, opts ...ormlist.Option) (AllowedDenomIterator, error) DeleteBy(ctx context.Context, prefixKey AllowedDenomIndexKey) error DeleteRange(ctx context.Context, from, to AllowedDenomIndexKey) error // contains filtered or unexported methods }
func NewAllowedDenomTable ¶
func NewAllowedDenomTable(db ormtable.Schema) (AllowedDenomTable, 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"` // contains filtered or unexported fields }
EventAllowDenom is an event emitted when a new denom is added for use in the marketplace.
func (*EventAllowDenom) Descriptor
deprecated
func (*EventAllowDenom) Descriptor() ([]byte, []int)
Deprecated: Use EventAllowDenom.ProtoReflect.Descriptor instead.
func (*EventAllowDenom) GetDenom ¶
func (x *EventAllowDenom) GetDenom() string
func (*EventAllowDenom) ProtoMessage ¶
func (*EventAllowDenom) ProtoMessage()
func (*EventAllowDenom) ProtoReflect ¶
func (x *EventAllowDenom) ProtoReflect() protoreflect.Message
func (*EventAllowDenom) Reset ¶
func (x *EventAllowDenom) Reset()
func (*EventAllowDenom) String ¶
func (x *EventAllowDenom) String() string
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"` // contains filtered or unexported fields }
EventBuyDirect is an event emitted when a direct buy order is processed.
func (*EventBuyDirect) Descriptor
deprecated
func (*EventBuyDirect) Descriptor() ([]byte, []int)
Deprecated: Use EventBuyDirect.ProtoReflect.Descriptor instead.
func (*EventBuyDirect) GetSellOrderId ¶
func (x *EventBuyDirect) GetSellOrderId() uint64
func (*EventBuyDirect) ProtoMessage ¶
func (*EventBuyDirect) ProtoMessage()
func (*EventBuyDirect) ProtoReflect ¶
func (x *EventBuyDirect) ProtoReflect() protoreflect.Message
func (*EventBuyDirect) Reset ¶
func (x *EventBuyDirect) Reset()
func (*EventBuyDirect) String ¶
func (x *EventBuyDirect) String() string
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"` // contains filtered or unexported fields }
EventCancelSellOrder is an event emitted when a sell order is cancelled.
func (*EventCancelSellOrder) Descriptor
deprecated
func (*EventCancelSellOrder) Descriptor() ([]byte, []int)
Deprecated: Use EventCancelSellOrder.ProtoReflect.Descriptor instead.
func (*EventCancelSellOrder) GetSellOrderId ¶
func (x *EventCancelSellOrder) GetSellOrderId() uint64
func (*EventCancelSellOrder) ProtoMessage ¶
func (*EventCancelSellOrder) ProtoMessage()
func (*EventCancelSellOrder) ProtoReflect ¶
func (x *EventCancelSellOrder) ProtoReflect() protoreflect.Message
func (*EventCancelSellOrder) Reset ¶
func (x *EventCancelSellOrder) Reset()
func (*EventCancelSellOrder) String ¶
func (x *EventCancelSellOrder) String() string
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"` // contains filtered or unexported fields }
EventSell is an event emitted when a sell order is created.
func (*EventSell) Descriptor
deprecated
func (*EventSell) GetSellOrderId ¶
func (*EventSell) ProtoMessage ¶
func (*EventSell) ProtoMessage()
func (*EventSell) ProtoReflect ¶
func (x *EventSell) ProtoReflect() protoreflect.Message
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"` // contains filtered or unexported fields }
EventUpdateSellOrder is an event emitted when a sell order is updated.
func (*EventUpdateSellOrder) Descriptor
deprecated
func (*EventUpdateSellOrder) Descriptor() ([]byte, []int)
Deprecated: Use EventUpdateSellOrder.ProtoReflect.Descriptor instead.
func (*EventUpdateSellOrder) GetSellOrderId ¶
func (x *EventUpdateSellOrder) GetSellOrderId() uint64
func (*EventUpdateSellOrder) ProtoMessage ¶
func (*EventUpdateSellOrder) ProtoMessage()
func (*EventUpdateSellOrder) ProtoReflect ¶
func (x *EventUpdateSellOrder) ProtoReflect() protoreflect.Message
func (*EventUpdateSellOrder) Reset ¶
func (x *EventUpdateSellOrder) Reset()
func (*EventUpdateSellOrder) String ¶
func (x *EventUpdateSellOrder) String() string
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"` // contains filtered or unexported fields }
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
deprecated
func (*Market) GetBankDenom ¶
func (*Market) GetCreditTypeAbbrev ¶
func (*Market) GetPrecisionModifier ¶
func (*Market) ProtoMessage ¶
func (*Market) ProtoMessage()
func (*Market) ProtoReflect ¶
func (x *Market) ProtoReflect() protoreflect.Message
type MarketCreditTypeAbbrevBankDenomIndexKey ¶
type MarketCreditTypeAbbrevBankDenomIndexKey struct {
// contains filtered or unexported fields
}
func (MarketCreditTypeAbbrevBankDenomIndexKey) WithCreditTypeAbbrev ¶
func (this MarketCreditTypeAbbrevBankDenomIndexKey) WithCreditTypeAbbrev(credit_type_abbrev string) MarketCreditTypeAbbrevBankDenomIndexKey
func (MarketCreditTypeAbbrevBankDenomIndexKey) WithCreditTypeAbbrevBankDenom ¶
func (this MarketCreditTypeAbbrevBankDenomIndexKey) WithCreditTypeAbbrevBankDenom(credit_type_abbrev string, bank_denom string) MarketCreditTypeAbbrevBankDenomIndexKey
type MarketIdIndexKey ¶
type MarketIdIndexKey struct {
// contains filtered or unexported fields
}
func (MarketIdIndexKey) WithId ¶
func (this MarketIdIndexKey) WithId(id uint64) MarketIdIndexKey
type MarketIndexKey ¶
type MarketIndexKey interface {
// contains filtered or unexported methods
}
type MarketIterator ¶
func (MarketIterator) Value ¶
func (i MarketIterator) Value() (*Market, error)
type MarketTable ¶
type MarketTable interface { Insert(ctx context.Context, market *Market) error InsertReturningID(ctx context.Context, market *Market) (uint64, error) Update(ctx context.Context, market *Market) error Save(ctx context.Context, market *Market) error Delete(ctx context.Context, market *Market) error Has(ctx context.Context, id uint64) (found bool, err error) // Get returns nil and an error which responds true to ormerrors.IsNotFound() if the record was not found. Get(ctx context.Context, id uint64) (*Market, error) HasByCreditTypeAbbrevBankDenom(ctx context.Context, credit_type_abbrev string, bank_denom string) (found bool, err error) // GetByCreditTypeAbbrevBankDenom returns nil and an error which responds true to ormerrors.IsNotFound() if the record was not found. GetByCreditTypeAbbrevBankDenom(ctx context.Context, credit_type_abbrev string, bank_denom string) (*Market, error) List(ctx context.Context, prefixKey MarketIndexKey, opts ...ormlist.Option) (MarketIterator, error) ListRange(ctx context.Context, from, to MarketIndexKey, opts ...ormlist.Option) (MarketIterator, error) DeleteBy(ctx context.Context, prefixKey MarketIndexKey) error DeleteRange(ctx context.Context, from, to MarketIndexKey) error // contains filtered or unexported methods }
func NewMarketTable ¶
func NewMarketTable(db ormtable.Schema) (MarketTable, error)
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"` // contains filtered or unexported fields }
MsgBuyDirect is the Msg/BuyDirect request type.
func (*MsgBuyDirect) Descriptor
deprecated
func (*MsgBuyDirect) Descriptor() ([]byte, []int)
Deprecated: Use MsgBuyDirect.ProtoReflect.Descriptor instead.
func (*MsgBuyDirect) GetBuyer ¶
func (x *MsgBuyDirect) GetBuyer() string
func (*MsgBuyDirect) GetOrders ¶
func (x *MsgBuyDirect) GetOrders() []*MsgBuyDirect_Order
func (*MsgBuyDirect) ProtoMessage ¶
func (*MsgBuyDirect) ProtoMessage()
func (*MsgBuyDirect) ProtoReflect ¶
func (x *MsgBuyDirect) ProtoReflect() protoreflect.Message
func (*MsgBuyDirect) Reset ¶
func (x *MsgBuyDirect) Reset()
func (*MsgBuyDirect) String ¶
func (x *MsgBuyDirect) String() string
type MsgBuyDirectResponse ¶
type MsgBuyDirectResponse struct {
// contains filtered or unexported fields
}
MsgBuyDirectResponse is the Msg/BuyDirect response type.
func (*MsgBuyDirectResponse) Descriptor
deprecated
func (*MsgBuyDirectResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgBuyDirectResponse.ProtoReflect.Descriptor instead.
func (*MsgBuyDirectResponse) ProtoMessage ¶
func (*MsgBuyDirectResponse) ProtoMessage()
func (*MsgBuyDirectResponse) ProtoReflect ¶
func (x *MsgBuyDirectResponse) ProtoReflect() protoreflect.Message
func (*MsgBuyDirectResponse) Reset ¶
func (x *MsgBuyDirectResponse) Reset()
func (*MsgBuyDirectResponse) String ¶
func (x *MsgBuyDirectResponse) String() string
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 *v1beta1.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 */ // contains filtered or unexported fields }
Order contains the information needed to purchase an ecocredit.
func (*MsgBuyDirect_Order) Descriptor
deprecated
func (*MsgBuyDirect_Order) Descriptor() ([]byte, []int)
Deprecated: Use MsgBuyDirect_Order.ProtoReflect.Descriptor instead.
func (*MsgBuyDirect_Order) GetBidPrice ¶
func (x *MsgBuyDirect_Order) GetBidPrice() *v1beta1.Coin
func (*MsgBuyDirect_Order) GetDisableAutoRetire ¶
func (x *MsgBuyDirect_Order) GetDisableAutoRetire() bool
func (*MsgBuyDirect_Order) GetQuantity ¶
func (x *MsgBuyDirect_Order) GetQuantity() string
func (*MsgBuyDirect_Order) GetRetirementJurisdiction ¶
func (x *MsgBuyDirect_Order) GetRetirementJurisdiction() string
func (*MsgBuyDirect_Order) GetSellOrderId ¶
func (x *MsgBuyDirect_Order) GetSellOrderId() uint64
func (*MsgBuyDirect_Order) ProtoMessage ¶
func (*MsgBuyDirect_Order) ProtoMessage()
func (*MsgBuyDirect_Order) ProtoReflect ¶
func (x *MsgBuyDirect_Order) ProtoReflect() protoreflect.Message
func (*MsgBuyDirect_Order) Reset ¶
func (x *MsgBuyDirect_Order) Reset()
func (*MsgBuyDirect_Order) String ¶
func (x *MsgBuyDirect_Order) String() string
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"` // contains filtered or unexported fields }
MsgCancelSellOrder is the Msg/CancelSellOrder request type.
func (*MsgCancelSellOrder) Descriptor
deprecated
func (*MsgCancelSellOrder) Descriptor() ([]byte, []int)
Deprecated: Use MsgCancelSellOrder.ProtoReflect.Descriptor instead.
func (*MsgCancelSellOrder) GetSellOrderId ¶
func (x *MsgCancelSellOrder) GetSellOrderId() uint64
func (*MsgCancelSellOrder) GetSeller ¶
func (x *MsgCancelSellOrder) GetSeller() string
func (*MsgCancelSellOrder) ProtoMessage ¶
func (*MsgCancelSellOrder) ProtoMessage()
func (*MsgCancelSellOrder) ProtoReflect ¶
func (x *MsgCancelSellOrder) ProtoReflect() protoreflect.Message
func (*MsgCancelSellOrder) Reset ¶
func (x *MsgCancelSellOrder) Reset()
func (*MsgCancelSellOrder) String ¶
func (x *MsgCancelSellOrder) String() string
type MsgCancelSellOrderResponse ¶
type MsgCancelSellOrderResponse struct {
// contains filtered or unexported fields
}
MsgCancelSellOrder is the Msg/CancelSellOrder response type.
func (*MsgCancelSellOrderResponse) Descriptor
deprecated
func (*MsgCancelSellOrderResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgCancelSellOrderResponse.ProtoReflect.Descriptor instead.
func (*MsgCancelSellOrderResponse) ProtoMessage ¶
func (*MsgCancelSellOrderResponse) ProtoMessage()
func (*MsgCancelSellOrderResponse) ProtoReflect ¶
func (x *MsgCancelSellOrderResponse) ProtoReflect() protoreflect.Message
func (*MsgCancelSellOrderResponse) Reset ¶
func (x *MsgCancelSellOrderResponse) Reset()
func (*MsgCancelSellOrderResponse) String ¶
func (x *MsgCancelSellOrderResponse) String() string
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://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewMsgClient ¶
func NewMsgClient(cc grpc.ClientConnInterface) 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"` // contains filtered or unexported fields }
MsgSell is the Msg/Sell request type.
func (*MsgSell) Descriptor
deprecated
func (*MsgSell) GetOrders ¶
func (x *MsgSell) GetOrders() []*MsgSell_Order
func (*MsgSell) ProtoMessage ¶
func (*MsgSell) ProtoMessage()
func (*MsgSell) ProtoReflect ¶
func (x *MsgSell) ProtoReflect() protoreflect.Message
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"` // contains filtered or unexported fields }
MsgSellResponse is the Msg/Sell response type.
func (*MsgSellResponse) Descriptor
deprecated
func (*MsgSellResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgSellResponse.ProtoReflect.Descriptor instead.
func (*MsgSellResponse) GetSellOrderIds ¶
func (x *MsgSellResponse) GetSellOrderIds() []uint64
func (*MsgSellResponse) ProtoMessage ¶
func (*MsgSellResponse) ProtoMessage()
func (*MsgSellResponse) ProtoReflect ¶
func (x *MsgSellResponse) ProtoReflect() protoreflect.Message
func (*MsgSellResponse) Reset ¶
func (x *MsgSellResponse) Reset()
func (*MsgSellResponse) String ¶
func (x *MsgSellResponse) String() string
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 *v1beta1.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 *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=expiration,proto3" json:"expiration,omitempty"` // contains filtered or unexported fields }
Order is the content of a new sell order.
func (*MsgSell_Order) Descriptor
deprecated
func (*MsgSell_Order) Descriptor() ([]byte, []int)
Deprecated: Use MsgSell_Order.ProtoReflect.Descriptor instead.
func (*MsgSell_Order) GetAskPrice ¶
func (x *MsgSell_Order) GetAskPrice() *v1beta1.Coin
func (*MsgSell_Order) GetBatchDenom ¶
func (x *MsgSell_Order) GetBatchDenom() string
func (*MsgSell_Order) GetDisableAutoRetire ¶
func (x *MsgSell_Order) GetDisableAutoRetire() bool
func (*MsgSell_Order) GetExpiration ¶
func (x *MsgSell_Order) GetExpiration() *timestamppb.Timestamp
func (*MsgSell_Order) GetQuantity ¶
func (x *MsgSell_Order) GetQuantity() string
func (*MsgSell_Order) ProtoMessage ¶
func (*MsgSell_Order) ProtoMessage()
func (*MsgSell_Order) ProtoReflect ¶
func (x *MsgSell_Order) ProtoReflect() protoreflect.Message
func (*MsgSell_Order) Reset ¶
func (x *MsgSell_Order) Reset()
func (*MsgSell_Order) String ¶
func (x *MsgSell_Order) String() string
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) // contains filtered or unexported methods }
MsgServer is the server API for Msg service. All implementations must embed UnimplementedMsgServer for forward compatibility
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"` // contains filtered or unexported fields }
MsgUpdateSellOrders is the Msg/UpdateSellOrders request type.
func (*MsgUpdateSellOrders) Descriptor
deprecated
func (*MsgUpdateSellOrders) Descriptor() ([]byte, []int)
Deprecated: Use MsgUpdateSellOrders.ProtoReflect.Descriptor instead.
func (*MsgUpdateSellOrders) GetSeller ¶
func (x *MsgUpdateSellOrders) GetSeller() string
func (*MsgUpdateSellOrders) GetUpdates ¶
func (x *MsgUpdateSellOrders) GetUpdates() []*MsgUpdateSellOrders_Update
func (*MsgUpdateSellOrders) ProtoMessage ¶
func (*MsgUpdateSellOrders) ProtoMessage()
func (*MsgUpdateSellOrders) ProtoReflect ¶
func (x *MsgUpdateSellOrders) ProtoReflect() protoreflect.Message
func (*MsgUpdateSellOrders) Reset ¶
func (x *MsgUpdateSellOrders) Reset()
func (*MsgUpdateSellOrders) String ¶
func (x *MsgUpdateSellOrders) String() string
type MsgUpdateSellOrdersResponse ¶
type MsgUpdateSellOrdersResponse struct {
// contains filtered or unexported fields
}
MsgUpdateSellOrdersResponse is the Msg/UpdateSellOrders response type.
func (*MsgUpdateSellOrdersResponse) Descriptor
deprecated
func (*MsgUpdateSellOrdersResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgUpdateSellOrdersResponse.ProtoReflect.Descriptor instead.
func (*MsgUpdateSellOrdersResponse) ProtoMessage ¶
func (*MsgUpdateSellOrdersResponse) ProtoMessage()
func (*MsgUpdateSellOrdersResponse) ProtoReflect ¶
func (x *MsgUpdateSellOrdersResponse) ProtoReflect() protoreflect.Message
func (*MsgUpdateSellOrdersResponse) Reset ¶
func (x *MsgUpdateSellOrdersResponse) Reset()
func (*MsgUpdateSellOrdersResponse) String ¶
func (x *MsgUpdateSellOrdersResponse) String() string
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 *v1beta1.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 *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=new_expiration,json=newExpiration,proto3" json:"new_expiration,omitempty"` // contains filtered or unexported fields }
Update is an update to an existing sell order.
func (*MsgUpdateSellOrders_Update) Descriptor
deprecated
func (*MsgUpdateSellOrders_Update) Descriptor() ([]byte, []int)
Deprecated: Use MsgUpdateSellOrders_Update.ProtoReflect.Descriptor instead.
func (*MsgUpdateSellOrders_Update) GetDisableAutoRetire ¶
func (x *MsgUpdateSellOrders_Update) GetDisableAutoRetire() bool
func (*MsgUpdateSellOrders_Update) GetNewAskPrice ¶
func (x *MsgUpdateSellOrders_Update) GetNewAskPrice() *v1beta1.Coin
func (*MsgUpdateSellOrders_Update) GetNewExpiration ¶
func (x *MsgUpdateSellOrders_Update) GetNewExpiration() *timestamppb.Timestamp
func (*MsgUpdateSellOrders_Update) GetNewQuantity ¶
func (x *MsgUpdateSellOrders_Update) GetNewQuantity() string
func (*MsgUpdateSellOrders_Update) GetSellOrderId ¶
func (x *MsgUpdateSellOrders_Update) GetSellOrderId() uint64
func (*MsgUpdateSellOrders_Update) ProtoMessage ¶
func (*MsgUpdateSellOrders_Update) ProtoMessage()
func (*MsgUpdateSellOrders_Update) ProtoReflect ¶
func (x *MsgUpdateSellOrders_Update) ProtoReflect() protoreflect.Message
func (*MsgUpdateSellOrders_Update) Reset ¶
func (x *MsgUpdateSellOrders_Update) Reset()
func (*MsgUpdateSellOrders_Update) String ¶
func (x *MsgUpdateSellOrders_Update) String() string
type QueryAllowedDenomsRequest ¶
type QueryAllowedDenomsRequest struct { // pagination defines an optional pagination for the request. Pagination *v1beta1.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
QueryAllowedDenomsRequest is the Query/AllowedDenoms request type.
func (*QueryAllowedDenomsRequest) Descriptor
deprecated
func (*QueryAllowedDenomsRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryAllowedDenomsRequest.ProtoReflect.Descriptor instead.
func (*QueryAllowedDenomsRequest) GetPagination ¶
func (x *QueryAllowedDenomsRequest) GetPagination() *v1beta1.PageRequest
func (*QueryAllowedDenomsRequest) ProtoMessage ¶
func (*QueryAllowedDenomsRequest) ProtoMessage()
func (*QueryAllowedDenomsRequest) ProtoReflect ¶
func (x *QueryAllowedDenomsRequest) ProtoReflect() protoreflect.Message
func (*QueryAllowedDenomsRequest) Reset ¶
func (x *QueryAllowedDenomsRequest) Reset()
func (*QueryAllowedDenomsRequest) String ¶
func (x *QueryAllowedDenomsRequest) String() string
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 *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
QueryAllowedDenomsResponse is the Query/AllowedDenoms response type.
func (*QueryAllowedDenomsResponse) Descriptor
deprecated
func (*QueryAllowedDenomsResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryAllowedDenomsResponse.ProtoReflect.Descriptor instead.
func (*QueryAllowedDenomsResponse) GetAllowedDenoms ¶
func (x *QueryAllowedDenomsResponse) GetAllowedDenoms() []*AllowedDenom
func (*QueryAllowedDenomsResponse) GetPagination ¶
func (x *QueryAllowedDenomsResponse) GetPagination() *v1beta1.PageResponse
func (*QueryAllowedDenomsResponse) ProtoMessage ¶
func (*QueryAllowedDenomsResponse) ProtoMessage()
func (*QueryAllowedDenomsResponse) ProtoReflect ¶
func (x *QueryAllowedDenomsResponse) ProtoReflect() protoreflect.Message
func (*QueryAllowedDenomsResponse) Reset ¶
func (x *QueryAllowedDenomsResponse) Reset()
func (*QueryAllowedDenomsResponse) String ¶
func (x *QueryAllowedDenomsResponse) String() string
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://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewQueryClient ¶
func NewQueryClient(cc grpc.ClientConnInterface) 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"` // contains filtered or unexported fields }
QuerySellOrderRequest is the Query/SellOrder request type.
func (*QuerySellOrderRequest) Descriptor
deprecated
func (*QuerySellOrderRequest) Descriptor() ([]byte, []int)
Deprecated: Use QuerySellOrderRequest.ProtoReflect.Descriptor instead.
func (*QuerySellOrderRequest) GetSellOrderId ¶
func (x *QuerySellOrderRequest) GetSellOrderId() uint64
func (*QuerySellOrderRequest) ProtoMessage ¶
func (*QuerySellOrderRequest) ProtoMessage()
func (*QuerySellOrderRequest) ProtoReflect ¶
func (x *QuerySellOrderRequest) ProtoReflect() protoreflect.Message
func (*QuerySellOrderRequest) Reset ¶
func (x *QuerySellOrderRequest) Reset()
func (*QuerySellOrderRequest) String ¶
func (x *QuerySellOrderRequest) String() string
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"` // contains filtered or unexported fields }
QuerySellOrderResponse is the Query/SellOrder response type.
func (*QuerySellOrderResponse) Descriptor
deprecated
func (*QuerySellOrderResponse) Descriptor() ([]byte, []int)
Deprecated: Use QuerySellOrderResponse.ProtoReflect.Descriptor instead.
func (*QuerySellOrderResponse) GetSellOrder ¶
func (x *QuerySellOrderResponse) GetSellOrder() *SellOrderInfo
func (*QuerySellOrderResponse) ProtoMessage ¶
func (*QuerySellOrderResponse) ProtoMessage()
func (*QuerySellOrderResponse) ProtoReflect ¶
func (x *QuerySellOrderResponse) ProtoReflect() protoreflect.Message
func (*QuerySellOrderResponse) Reset ¶
func (x *QuerySellOrderResponse) Reset()
func (*QuerySellOrderResponse) String ¶
func (x *QuerySellOrderResponse) String() string
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 *v1beta1.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
QuerySellOrdersByBatchRequest is the Query/SellOrdersByBatch request type.
func (*QuerySellOrdersByBatchRequest) Descriptor
deprecated
func (*QuerySellOrdersByBatchRequest) Descriptor() ([]byte, []int)
Deprecated: Use QuerySellOrdersByBatchRequest.ProtoReflect.Descriptor instead.
func (*QuerySellOrdersByBatchRequest) GetBatchDenom ¶
func (x *QuerySellOrdersByBatchRequest) GetBatchDenom() string
func (*QuerySellOrdersByBatchRequest) GetPagination ¶
func (x *QuerySellOrdersByBatchRequest) GetPagination() *v1beta1.PageRequest
func (*QuerySellOrdersByBatchRequest) ProtoMessage ¶
func (*QuerySellOrdersByBatchRequest) ProtoMessage()
func (*QuerySellOrdersByBatchRequest) ProtoReflect ¶
func (x *QuerySellOrdersByBatchRequest) ProtoReflect() protoreflect.Message
func (*QuerySellOrdersByBatchRequest) Reset ¶
func (x *QuerySellOrdersByBatchRequest) Reset()
func (*QuerySellOrdersByBatchRequest) String ¶
func (x *QuerySellOrdersByBatchRequest) String() string
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 *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
QuerySellOrdersByBatchResponse is the Query/SellOrdersByBatch response type.
func (*QuerySellOrdersByBatchResponse) Descriptor
deprecated
func (*QuerySellOrdersByBatchResponse) Descriptor() ([]byte, []int)
Deprecated: Use QuerySellOrdersByBatchResponse.ProtoReflect.Descriptor instead.
func (*QuerySellOrdersByBatchResponse) GetPagination ¶
func (x *QuerySellOrdersByBatchResponse) GetPagination() *v1beta1.PageResponse
func (*QuerySellOrdersByBatchResponse) GetSellOrders ¶
func (x *QuerySellOrdersByBatchResponse) GetSellOrders() []*SellOrderInfo
func (*QuerySellOrdersByBatchResponse) ProtoMessage ¶
func (*QuerySellOrdersByBatchResponse) ProtoMessage()
func (*QuerySellOrdersByBatchResponse) ProtoReflect ¶
func (x *QuerySellOrdersByBatchResponse) ProtoReflect() protoreflect.Message
func (*QuerySellOrdersByBatchResponse) Reset ¶
func (x *QuerySellOrdersByBatchResponse) Reset()
func (*QuerySellOrdersByBatchResponse) String ¶
func (x *QuerySellOrdersByBatchResponse) String() string
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 *v1beta1.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
QuerySellOrdersBySellerRequest is the Query/SellOrdersBySeller request type.
func (*QuerySellOrdersBySellerRequest) Descriptor
deprecated
func (*QuerySellOrdersBySellerRequest) Descriptor() ([]byte, []int)
Deprecated: Use QuerySellOrdersBySellerRequest.ProtoReflect.Descriptor instead.
func (*QuerySellOrdersBySellerRequest) GetPagination ¶
func (x *QuerySellOrdersBySellerRequest) GetPagination() *v1beta1.PageRequest
func (*QuerySellOrdersBySellerRequest) GetSeller ¶
func (x *QuerySellOrdersBySellerRequest) GetSeller() string
func (*QuerySellOrdersBySellerRequest) ProtoMessage ¶
func (*QuerySellOrdersBySellerRequest) ProtoMessage()
func (*QuerySellOrdersBySellerRequest) ProtoReflect ¶
func (x *QuerySellOrdersBySellerRequest) ProtoReflect() protoreflect.Message
func (*QuerySellOrdersBySellerRequest) Reset ¶
func (x *QuerySellOrdersBySellerRequest) Reset()
func (*QuerySellOrdersBySellerRequest) String ¶
func (x *QuerySellOrdersBySellerRequest) String() string
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 *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
QuerySellOrdersBySellerResponse is the Query/SellOrdersBySellerResponse response type.
func (*QuerySellOrdersBySellerResponse) Descriptor
deprecated
func (*QuerySellOrdersBySellerResponse) Descriptor() ([]byte, []int)
Deprecated: Use QuerySellOrdersBySellerResponse.ProtoReflect.Descriptor instead.
func (*QuerySellOrdersBySellerResponse) GetPagination ¶
func (x *QuerySellOrdersBySellerResponse) GetPagination() *v1beta1.PageResponse
func (*QuerySellOrdersBySellerResponse) GetSellOrders ¶
func (x *QuerySellOrdersBySellerResponse) GetSellOrders() []*SellOrderInfo
func (*QuerySellOrdersBySellerResponse) ProtoMessage ¶
func (*QuerySellOrdersBySellerResponse) ProtoMessage()
func (*QuerySellOrdersBySellerResponse) ProtoReflect ¶
func (x *QuerySellOrdersBySellerResponse) ProtoReflect() protoreflect.Message
func (*QuerySellOrdersBySellerResponse) Reset ¶
func (x *QuerySellOrdersBySellerResponse) Reset()
func (*QuerySellOrdersBySellerResponse) String ¶
func (x *QuerySellOrdersBySellerResponse) String() string
type QuerySellOrdersRequest ¶
type QuerySellOrdersRequest struct { // pagination defines an optional pagination for the request. Pagination *v1beta1.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
QuerySellOrdersRequest is the Query/SellOrders request type.
func (*QuerySellOrdersRequest) Descriptor
deprecated
func (*QuerySellOrdersRequest) Descriptor() ([]byte, []int)
Deprecated: Use QuerySellOrdersRequest.ProtoReflect.Descriptor instead.
func (*QuerySellOrdersRequest) GetPagination ¶
func (x *QuerySellOrdersRequest) GetPagination() *v1beta1.PageRequest
func (*QuerySellOrdersRequest) ProtoMessage ¶
func (*QuerySellOrdersRequest) ProtoMessage()
func (*QuerySellOrdersRequest) ProtoReflect ¶
func (x *QuerySellOrdersRequest) ProtoReflect() protoreflect.Message
func (*QuerySellOrdersRequest) Reset ¶
func (x *QuerySellOrdersRequest) Reset()
func (*QuerySellOrdersRequest) String ¶
func (x *QuerySellOrdersRequest) String() string
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 *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
QuerySellOrdersResponse is the Query/SellOrders response type.
func (*QuerySellOrdersResponse) Descriptor
deprecated
func (*QuerySellOrdersResponse) Descriptor() ([]byte, []int)
Deprecated: Use QuerySellOrdersResponse.ProtoReflect.Descriptor instead.
func (*QuerySellOrdersResponse) GetPagination ¶
func (x *QuerySellOrdersResponse) GetPagination() *v1beta1.PageResponse
func (*QuerySellOrdersResponse) GetSellOrders ¶
func (x *QuerySellOrdersResponse) GetSellOrders() []*SellOrderInfo
func (*QuerySellOrdersResponse) ProtoMessage ¶
func (*QuerySellOrdersResponse) ProtoMessage()
func (*QuerySellOrdersResponse) ProtoReflect ¶
func (x *QuerySellOrdersResponse) ProtoReflect() protoreflect.Message
func (*QuerySellOrdersResponse) Reset ¶
func (x *QuerySellOrdersResponse) Reset()
func (*QuerySellOrdersResponse) String ¶
func (x *QuerySellOrdersResponse) String() string
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) // contains filtered or unexported methods }
QueryServer is the server API for Query service. All implementations must embed UnimplementedQueryServer for forward compatibility
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 *timestamppb.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"` // contains filtered or unexported fields }
SellOrder represents the information for a sell order.
func (*SellOrder) Descriptor
deprecated
func (*SellOrder) GetAskAmount ¶
func (*SellOrder) GetBatchKey ¶
func (*SellOrder) GetDisableAutoRetire ¶
func (*SellOrder) GetExpiration ¶
func (x *SellOrder) GetExpiration() *timestamppb.Timestamp
func (*SellOrder) GetMarketId ¶
func (*SellOrder) GetQuantity ¶
func (*SellOrder) ProtoMessage ¶
func (*SellOrder) ProtoMessage()
func (*SellOrder) ProtoReflect ¶
func (x *SellOrder) ProtoReflect() protoreflect.Message
type SellOrderBatchKeyIndexKey ¶
type SellOrderBatchKeyIndexKey struct {
// contains filtered or unexported fields
}
func (SellOrderBatchKeyIndexKey) WithBatchKey ¶
func (this SellOrderBatchKeyIndexKey) WithBatchKey(batch_key uint64) SellOrderBatchKeyIndexKey
type SellOrderExpirationIndexKey ¶
type SellOrderExpirationIndexKey struct {
// contains filtered or unexported fields
}
func (SellOrderExpirationIndexKey) WithExpiration ¶
func (this SellOrderExpirationIndexKey) WithExpiration(expiration *timestamppb.Timestamp) SellOrderExpirationIndexKey
type SellOrderIdIndexKey ¶
type SellOrderIdIndexKey struct {
// contains filtered or unexported fields
}
func (SellOrderIdIndexKey) WithId ¶
func (this SellOrderIdIndexKey) WithId(id uint64) SellOrderIdIndexKey
type SellOrderIndexKey ¶
type SellOrderIndexKey interface {
// contains filtered or unexported methods
}
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 *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=expiration,proto3" json:"expiration,omitempty"` // contains filtered or unexported fields }
SellOrderInfo is the human-readable sell order information.
func (*SellOrderInfo) Descriptor
deprecated
func (*SellOrderInfo) Descriptor() ([]byte, []int)
Deprecated: Use SellOrderInfo.ProtoReflect.Descriptor instead.
func (*SellOrderInfo) GetAskAmount ¶
func (x *SellOrderInfo) GetAskAmount() string
func (*SellOrderInfo) GetAskDenom ¶
func (x *SellOrderInfo) GetAskDenom() string
func (*SellOrderInfo) GetBatchDenom ¶
func (x *SellOrderInfo) GetBatchDenom() string
func (*SellOrderInfo) GetDisableAutoRetire ¶
func (x *SellOrderInfo) GetDisableAutoRetire() bool
func (*SellOrderInfo) GetExpiration ¶
func (x *SellOrderInfo) GetExpiration() *timestamppb.Timestamp
func (*SellOrderInfo) GetId ¶
func (x *SellOrderInfo) GetId() uint64
func (*SellOrderInfo) GetQuantity ¶
func (x *SellOrderInfo) GetQuantity() string
func (*SellOrderInfo) GetSeller ¶
func (x *SellOrderInfo) GetSeller() string
func (*SellOrderInfo) ProtoMessage ¶
func (*SellOrderInfo) ProtoMessage()
func (*SellOrderInfo) ProtoReflect ¶
func (x *SellOrderInfo) ProtoReflect() protoreflect.Message
func (*SellOrderInfo) Reset ¶
func (x *SellOrderInfo) Reset()
func (*SellOrderInfo) String ¶
func (x *SellOrderInfo) String() string
type SellOrderIterator ¶
func (SellOrderIterator) Value ¶
func (i SellOrderIterator) Value() (*SellOrder, error)
type SellOrderPrimaryKey ¶
type SellOrderPrimaryKey = SellOrderIdIndexKey
primary key starting index..
type SellOrderSellerIndexKey ¶
type SellOrderSellerIndexKey struct {
// contains filtered or unexported fields
}
func (SellOrderSellerIndexKey) WithSeller ¶
func (this SellOrderSellerIndexKey) WithSeller(seller []byte) SellOrderSellerIndexKey
type SellOrderTable ¶
type SellOrderTable interface { Insert(ctx context.Context, sellOrder *SellOrder) error InsertReturningID(ctx context.Context, sellOrder *SellOrder) (uint64, error) Update(ctx context.Context, sellOrder *SellOrder) error Save(ctx context.Context, sellOrder *SellOrder) error Delete(ctx context.Context, sellOrder *SellOrder) error Has(ctx context.Context, id uint64) (found bool, err error) // Get returns nil and an error which responds true to ormerrors.IsNotFound() if the record was not found. Get(ctx context.Context, id uint64) (*SellOrder, error) List(ctx context.Context, prefixKey SellOrderIndexKey, opts ...ormlist.Option) (SellOrderIterator, error) ListRange(ctx context.Context, from, to SellOrderIndexKey, opts ...ormlist.Option) (SellOrderIterator, error) DeleteBy(ctx context.Context, prefixKey SellOrderIndexKey) error DeleteRange(ctx context.Context, from, to SellOrderIndexKey) error // contains filtered or unexported methods }
func NewSellOrderTable ¶
func NewSellOrderTable(db ormtable.Schema) (SellOrderTable, error)
type StateStore ¶
type StateStore interface { SellOrderTable() SellOrderTable AllowedDenomTable() AllowedDenomTable MarketTable() MarketTable // contains filtered or unexported methods }
func NewStateStore ¶
func NewStateStore(db ormtable.Schema) (StateStore, error)
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer must be embedded to have forward compatible implementations.
func (UnimplementedMsgServer) BuyDirect ¶
func (UnimplementedMsgServer) BuyDirect(context.Context, *MsgBuyDirect) (*MsgBuyDirectResponse, error)
func (UnimplementedMsgServer) CancelSellOrder ¶
func (UnimplementedMsgServer) CancelSellOrder(context.Context, *MsgCancelSellOrder) (*MsgCancelSellOrderResponse, error)
func (UnimplementedMsgServer) Sell ¶
func (UnimplementedMsgServer) Sell(context.Context, *MsgSell) (*MsgSellResponse, error)
func (UnimplementedMsgServer) UpdateSellOrders ¶
func (UnimplementedMsgServer) UpdateSellOrders(context.Context, *MsgUpdateSellOrders) (*MsgUpdateSellOrdersResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer must be embedded to have forward compatible implementations.
func (UnimplementedQueryServer) AllowedDenoms ¶
func (UnimplementedQueryServer) AllowedDenoms(context.Context, *QueryAllowedDenomsRequest) (*QueryAllowedDenomsResponse, error)
func (UnimplementedQueryServer) SellOrder ¶
func (UnimplementedQueryServer) SellOrder(context.Context, *QuerySellOrderRequest) (*QuerySellOrderResponse, error)
func (UnimplementedQueryServer) SellOrders ¶
func (UnimplementedQueryServer) SellOrders(context.Context, *QuerySellOrdersRequest) (*QuerySellOrdersResponse, error)
func (UnimplementedQueryServer) SellOrdersByBatch ¶
func (UnimplementedQueryServer) SellOrdersByBatch(context.Context, *QuerySellOrdersByBatchRequest) (*QuerySellOrdersByBatchResponse, error)
func (UnimplementedQueryServer) SellOrdersBySeller ¶
func (UnimplementedQueryServer) SellOrdersBySeller(context.Context, *QuerySellOrdersBySellerRequest) (*QuerySellOrdersBySellerResponse, error)
type UnsafeMsgServer ¶
type UnsafeMsgServer interface {
// contains filtered or unexported methods
}
UnsafeMsgServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MsgServer will result in compilation errors.
type UnsafeQueryServer ¶
type UnsafeQueryServer interface {
// contains filtered or unexported methods
}
UnsafeQueryServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to QueryServer will result in compilation errors.