mirror of
https://github.com/tendermint/tendermint.git
synced 2026-08-19 13:46:17 +00:00
1071 lines
38 KiB
Go
1071 lines
38 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.28.1
|
|
// protoc v3.21.7
|
|
// source: wire.proto
|
|
|
|
package orderbook
|
|
|
|
import (
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
reflect "reflect"
|
|
sync "sync"
|
|
)
|
|
|
|
const (
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
)
|
|
|
|
<<<<<<< Updated upstream
|
|
type Pair struct {
|
|
||||||| constructed merge base
|
|
type Order struct {
|
|
=======
|
|
type OrderAsk struct {
|
|
>>>>>>> Stashed changes
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
<<<<<<< Updated upstream
|
|
// the denomination that the buyer receives i.e. EUR
|
|
BuyersDenomination string `protobuf:"bytes,1,opt,name=buyers_denomination,json=buyersDenomination,proto3" json:"buyers_denomination,omitempty"`
|
|
// the denomination that the seller receives i.e. USD
|
|
SellersDenomination string `protobuf:"bytes,2,opt,name=sellers_denomination,json=sellersDenomination,proto3" json:"sellers_denomination,omitempty"`
|
|
||||||| constructed merge base
|
|
QuantityOutbound uint64 `protobuf:"varint,1,opt,name=quantity_outbound,json=quantityOutbound,proto3" json:"quantity_outbound,omitempty"`
|
|
MinPrice float64 `protobuf:"fixed64,2,opt,name=min_price,json=minPrice,proto3" json:"min_price,omitempty"`
|
|
Owner uint64 `protobuf:"varint,3,opt,name=owner,proto3" json:"owner,omitempty"`
|
|
=======
|
|
Quantity uint64 `protobuf:"varint,1,opt,name=quantity,proto3" json:"quantity,omitempty"`
|
|
AskPrice uint64 `protobuf:"varint,2,opt,name=ask_price,json=askPrice,proto3" json:"ask_price,omitempty"`
|
|
Owner *Account `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"`
|
|
>>>>>>> Stashed changes
|
|
}
|
|
|
|
<<<<<<< Updated upstream
|
|
func (x *Pair) Reset() {
|
|
*x = Pair{}
|
|
||||||| constructed merge base
|
|
func (x *Order) Reset() {
|
|
*x = Order{}
|
|
=======
|
|
func (x *OrderAsk) Reset() {
|
|
*x = OrderAsk{}
|
|
>>>>>>> Stashed changes
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_wire_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
<<<<<<< Updated upstream
|
|
func (x *Pair) String() string {
|
|
||||||| constructed merge base
|
|
func (x *Order) String() string {
|
|
=======
|
|
func (x *OrderAsk) String() string {
|
|
>>>>>>> Stashed changes
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
<<<<<<< Updated upstream
|
|
func (*Pair) ProtoMessage() {}
|
|
||||||| constructed merge base
|
|
func (*Order) ProtoMessage() {}
|
|
=======
|
|
func (*OrderAsk) ProtoMessage() {}
|
|
>>>>>>> Stashed changes
|
|
|
|
<<<<<<< Updated upstream
|
|
func (x *Pair) ProtoReflect() protoreflect.Message {
|
|
||||||| constructed merge base
|
|
func (x *Order) ProtoReflect() protoreflect.Message {
|
|
=======
|
|
func (x *OrderAsk) ProtoReflect() protoreflect.Message {
|
|
>>>>>>> Stashed changes
|
|
mi := &file_wire_proto_msgTypes[0]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
<<<<<<< Updated upstream
|
|
// Deprecated: Use Pair.ProtoReflect.Descriptor instead.
|
|
func (*Pair) Descriptor() ([]byte, []int) {
|
|
||||||| constructed merge base
|
|
// Deprecated: Use Order.ProtoReflect.Descriptor instead.
|
|
func (*Order) Descriptor() ([]byte, []int) {
|
|
=======
|
|
// Deprecated: Use OrderAsk.ProtoReflect.Descriptor instead.
|
|
func (*OrderAsk) Descriptor() ([]byte, []int) {
|
|
>>>>>>> Stashed changes
|
|
return file_wire_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
<<<<<<< Updated upstream
|
|
func (x *Pair) GetBuyersDenomination() string {
|
|
||||||| constructed merge base
|
|
func (x *Order) GetQuantityOutbound() uint64 {
|
|
=======
|
|
func (x *OrderAsk) GetQuantity() uint64 {
|
|
>>>>>>> Stashed changes
|
|
if x != nil {
|
|
<<<<<<< Updated upstream
|
|
return x.BuyersDenomination
|
|
||||||| constructed merge base
|
|
return x.QuantityOutbound
|
|
=======
|
|
return x.Quantity
|
|
>>>>>>> Stashed changes
|
|
}
|
|
<<<<<<< Updated upstream
|
|
return ""
|
|
||||||| constructed merge base
|
|
return 0
|
|
}
|
|
|
|
func (x *Order) GetMinPrice() float64 {
|
|
if x != nil {
|
|
return x.MinPrice
|
|
}
|
|
return 0
|
|
=======
|
|
return 0
|
|
}
|
|
|
|
func (x *OrderAsk) GetAskPrice() uint64 {
|
|
if x != nil {
|
|
return x.AskPrice
|
|
}
|
|
return 0
|
|
>>>>>>> Stashed changes
|
|
}
|
|
|
|
<<<<<<< Updated upstream
|
|
func (x *Pair) GetSellersDenomination() string {
|
|
||||||| constructed merge base
|
|
func (x *Order) GetOwner() uint64 {
|
|
=======
|
|
func (x *OrderAsk) GetOwner() *Account {
|
|
>>>>>>> Stashed changes
|
|
if x != nil {
|
|
return x.SellersDenomination
|
|
}
|
|
<<<<<<< Updated upstream
|
|
return ""
|
|
||||||| constructed merge base
|
|
return 0
|
|
=======
|
|
return nil
|
|
}
|
|
|
|
type OrderBid struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Quantity uint64 `protobuf:"varint,1,opt,name=quantity,proto3" json:"quantity,omitempty"`
|
|
MaxPrice uint64 `protobuf:"varint,2,opt,name=max_price,json=maxPrice,proto3" json:"max_price,omitempty"`
|
|
Owner *Account `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"`
|
|
}
|
|
|
|
func (x *OrderBid) Reset() {
|
|
*x = OrderBid{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_wire_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *OrderBid) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*OrderBid) ProtoMessage() {}
|
|
|
|
func (x *OrderBid) ProtoReflect() protoreflect.Message {
|
|
mi := &file_wire_proto_msgTypes[1]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use OrderBid.ProtoReflect.Descriptor instead.
|
|
func (*OrderBid) Descriptor() ([]byte, []int) {
|
|
return file_wire_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *OrderBid) GetQuantity() uint64 {
|
|
if x != nil {
|
|
return x.Quantity
|
|
}
|
|
return 0
|
|
>>>>>>> Stashed changes
|
|
}
|
|
|
|
<<<<<<< Updated upstream
|
|
type Commodity struct {
|
|
||||||| constructed merge base
|
|
type Pair struct {
|
|
=======
|
|
func (x *OrderBid) GetMaxPrice() uint64 {
|
|
if x != nil {
|
|
return x.MaxPrice
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *OrderBid) GetOwner() *Account {
|
|
if x != nil {
|
|
return x.Owner
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type Pair struct {
|
|
>>>>>>> Stashed changes
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
|
|
Quantity uint64 `protobuf:"varint,2,opt,name=quantity,proto3" json:"quantity,omitempty"`
|
|
}
|
|
|
|
func (x *Commodity) Reset() {
|
|
*x = Commodity{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_wire_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *Commodity) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Commodity) ProtoMessage() {}
|
|
|
|
<<<<<<< Updated upstream
|
|
func (x *Commodity) ProtoReflect() protoreflect.Message {
|
|
mi := &file_wire_proto_msgTypes[1]
|
|
||||||| constructed merge base
|
|
func (x *Pair) ProtoReflect() protoreflect.Message {
|
|
mi := &file_wire_proto_msgTypes[1]
|
|
=======
|
|
func (x *Pair) ProtoReflect() protoreflect.Message {
|
|
mi := &file_wire_proto_msgTypes[2]
|
|
>>>>>>> Stashed changes
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
<<<<<<< Updated upstream
|
|
// Deprecated: Use Commodity.ProtoReflect.Descriptor instead.
|
|
func (*Commodity) Descriptor() ([]byte, []int) {
|
|
return file_wire_proto_rawDescGZIP(), []int{1}
|
|
||||||| constructed merge base
|
|
// Deprecated: Use Pair.ProtoReflect.Descriptor instead.
|
|
func (*Pair) Descriptor() ([]byte, []int) {
|
|
return file_wire_proto_rawDescGZIP(), []int{1}
|
|
=======
|
|
// Deprecated: Use Pair.ProtoReflect.Descriptor instead.
|
|
func (*Pair) Descriptor() ([]byte, []int) {
|
|
return file_wire_proto_rawDescGZIP(), []int{2}
|
|
>>>>>>> Stashed changes
|
|
}
|
|
|
|
func (x *Commodity) GetDenom() string {
|
|
if x != nil {
|
|
return x.Denom
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Commodity) GetQuantity() uint64 {
|
|
if x != nil {
|
|
return x.Quantity
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type Account struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Index uint64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
|
|
PublicKey [][]byte `protobuf:"bytes,2,rep,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
|
|
// the set of commodities that the account has
|
|
Commodities []*Commodity `protobuf:"bytes,3,rep,name=commodities,proto3" json:"commodities,omitempty"`
|
|
}
|
|
|
|
func (x *Account) Reset() {
|
|
*x = Account{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_wire_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *Account) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Account) ProtoMessage() {}
|
|
|
|
<<<<<<< Updated upstream
|
|
func (x *Account) ProtoReflect() protoreflect.Message {
|
|
mi := &file_wire_proto_msgTypes[2]
|
|
||||||| constructed merge base
|
|
func (x *Commodity) ProtoReflect() protoreflect.Message {
|
|
mi := &file_wire_proto_msgTypes[2]
|
|
=======
|
|
func (x *Commodity) ProtoReflect() protoreflect.Message {
|
|
mi := &file_wire_proto_msgTypes[3]
|
|
>>>>>>> Stashed changes
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
<<<<<<< Updated upstream
|
|
// Deprecated: Use Account.ProtoReflect.Descriptor instead.
|
|
func (*Account) Descriptor() ([]byte, []int) {
|
|
return file_wire_proto_rawDescGZIP(), []int{2}
|
|
||||||| constructed merge base
|
|
// Deprecated: Use Commodity.ProtoReflect.Descriptor instead.
|
|
func (*Commodity) Descriptor() ([]byte, []int) {
|
|
return file_wire_proto_rawDescGZIP(), []int{2}
|
|
=======
|
|
// Deprecated: Use Commodity.ProtoReflect.Descriptor instead.
|
|
func (*Commodity) Descriptor() ([]byte, []int) {
|
|
return file_wire_proto_rawDescGZIP(), []int{3}
|
|
>>>>>>> Stashed changes
|
|
}
|
|
|
|
func (x *Account) GetIndex() uint64 {
|
|
if x != nil {
|
|
return x.Index
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Account) GetPublicKey() [][]byte {
|
|
if x != nil {
|
|
return x.PublicKey
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Account) GetCommodities() []*Commodity {
|
|
if x != nil {
|
|
return x.Commodities
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// TradeSet is the transaction that eventually is committed in a block
|
|
// It is derived from a group of MsgBid and MsgAsk's
|
|
type TradeSet struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Pair *Pair `protobuf:"bytes,1,opt,name=pair,proto3" json:"pair,omitempty"` // i.e. EUR/USD
|
|
// the set of matched trades for that peer
|
|
MatchedOrders []*MatchedOrder `protobuf:"bytes,2,rep,name=matched_orders,json=matchedOrders,proto3" json:"matched_orders,omitempty"`
|
|
}
|
|
|
|
func (x *TradeSet) Reset() {
|
|
*x = TradeSet{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_wire_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *TradeSet) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*TradeSet) ProtoMessage() {}
|
|
|
|
<<<<<<< Updated upstream
|
|
func (x *TradeSet) ProtoReflect() protoreflect.Message {
|
|
mi := &file_wire_proto_msgTypes[3]
|
|
||||||| constructed merge base
|
|
func (x *Account) ProtoReflect() protoreflect.Message {
|
|
mi := &file_wire_proto_msgTypes[3]
|
|
=======
|
|
func (x *Account) ProtoReflect() protoreflect.Message {
|
|
mi := &file_wire_proto_msgTypes[4]
|
|
>>>>>>> Stashed changes
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
<<<<<<< Updated upstream
|
|
// Deprecated: Use TradeSet.ProtoReflect.Descriptor instead.
|
|
func (*TradeSet) Descriptor() ([]byte, []int) {
|
|
return file_wire_proto_rawDescGZIP(), []int{3}
|
|
||||||| constructed merge base
|
|
// Deprecated: Use Account.ProtoReflect.Descriptor instead.
|
|
func (*Account) Descriptor() ([]byte, []int) {
|
|
return file_wire_proto_rawDescGZIP(), []int{3}
|
|
=======
|
|
// Deprecated: Use Account.ProtoReflect.Descriptor instead.
|
|
func (*Account) Descriptor() ([]byte, []int) {
|
|
return file_wire_proto_rawDescGZIP(), []int{4}
|
|
>>>>>>> Stashed changes
|
|
}
|
|
|
|
func (x *TradeSet) GetPair() *Pair {
|
|
if x != nil {
|
|
return x.Pair
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *TradeSet) GetMatchedOrders() []*MatchedOrder {
|
|
if x != nil {
|
|
return x.MatchedOrders
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type MatchedOrder struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
// the quantity the buyer receives and the seller gives
|
|
Quantity uint64 `protobuf:"varint,1,opt,name=quantity,proto3" json:"quantity,omitempty"`
|
|
// the price the buyer pays for the quantity. The seller receives
|
|
// price * quantity of the sellers denomination (i.e. USD)
|
|
Price float64 `protobuf:"fixed64,2,opt,name=price,proto3" json:"price,omitempty"`
|
|
BuyerId uint64 `protobuf:"varint,3,opt,name=buyer_id,json=buyerId,proto3" json:"buyer_id,omitempty"`
|
|
// the limit the buyer was willing to pay for. This must be more or
|
|
// equal to the price. We use this to prove with the signature that
|
|
// the buyer actually wanted to pay that much for the commodity
|
|
BuyerLimit float64 `protobuf:"fixed64,4,opt,name=buyer_limit,json=buyerLimit,proto3" json:"buyer_limit,omitempty"`
|
|
BuyerSignature [][]byte `protobuf:"bytes,5,rep,name=buyer_signature,json=buyerSignature,proto3" json:"buyer_signature,omitempty"`
|
|
SellerId uint64 `protobuf:"varint,6,opt,name=seller_id,json=sellerId,proto3" json:"seller_id,omitempty"`
|
|
SellerSignature [][]byte `protobuf:"bytes,7,rep,name=seller_signature,json=sellerSignature,proto3" json:"seller_signature,omitempty"`
|
|
}
|
|
|
|
func (x *MatchedOrder) Reset() {
|
|
*x = MatchedOrder{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_wire_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *MatchedOrder) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*MatchedOrder) ProtoMessage() {}
|
|
|
|
func (x *MatchedOrder) ProtoReflect() protoreflect.Message {
|
|
mi := &file_wire_proto_msgTypes[4]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use MatchedOrder.ProtoReflect.Descriptor instead.
|
|
func (*MatchedOrder) Descriptor() ([]byte, []int) {
|
|
return file_wire_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *MatchedOrder) GetQuantity() uint64 {
|
|
if x != nil {
|
|
return x.Quantity
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *MatchedOrder) GetPrice() float64 {
|
|
if x != nil {
|
|
return x.Price
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *MatchedOrder) GetBuyerId() uint64 {
|
|
if x != nil {
|
|
return x.BuyerId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *MatchedOrder) GetBuyerLimit() float64 {
|
|
if x != nil {
|
|
return x.BuyerLimit
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *MatchedOrder) GetBuyerSignature() [][]byte {
|
|
if x != nil {
|
|
return x.BuyerSignature
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *MatchedOrder) GetSellerId() uint64 {
|
|
if x != nil {
|
|
return x.SellerId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *MatchedOrder) GetSellerSignature() [][]byte {
|
|
if x != nil {
|
|
return x.SellerSignature
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type TradeSet struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Pair *Pair `protobuf:"bytes,1,opt,name=pair,proto3" json:"pair,omitempty"` // ATOM/USDC
|
|
MatchedOrders []*MatchedOrder `protobuf:"bytes,2,rep,name=matched_orders,json=matchedOrders,proto3" json:"matched_orders,omitempty"`
|
|
}
|
|
|
|
func (x *TradeSet) Reset() {
|
|
*x = TradeSet{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_wire_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *TradeSet) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*TradeSet) ProtoMessage() {}
|
|
|
|
func (x *TradeSet) ProtoReflect() protoreflect.Message {
|
|
mi := &file_wire_proto_msgTypes[5]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use TradeSet.ProtoReflect.Descriptor instead.
|
|
func (*TradeSet) Descriptor() ([]byte, []int) {
|
|
return file_wire_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *TradeSet) GetPair() *Pair {
|
|
if x != nil {
|
|
return x.Pair
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *TradeSet) GetMatchedOrders() []*MatchedOrder {
|
|
if x != nil {
|
|
return x.MatchedOrders
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type MatchedOrder struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
BuyOrder *OrderBid `protobuf:"bytes,1,opt,name=buy_order,json=buyOrder,proto3" json:"buy_order,omitempty"`
|
|
BuyerSignature [][]byte `protobuf:"bytes,2,rep,name=buyer_signature,json=buyerSignature,proto3" json:"buyer_signature,omitempty"`
|
|
SellOrder *OrderAsk `protobuf:"bytes,3,opt,name=sell_order,json=sellOrder,proto3" json:"sell_order,omitempty"`
|
|
SellerSignature [][]byte `protobuf:"bytes,4,rep,name=seller_signature,json=sellerSignature,proto3" json:"seller_signature,omitempty"`
|
|
}
|
|
|
|
func (x *MatchedOrder) Reset() {
|
|
*x = MatchedOrder{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_wire_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *MatchedOrder) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*MatchedOrder) ProtoMessage() {}
|
|
|
|
func (x *MatchedOrder) ProtoReflect() protoreflect.Message {
|
|
mi := &file_wire_proto_msgTypes[6]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use MatchedOrder.ProtoReflect.Descriptor instead.
|
|
func (*MatchedOrder) Descriptor() ([]byte, []int) {
|
|
return file_wire_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
func (x *MatchedOrder) GetBuyOrder() *OrderBid {
|
|
if x != nil {
|
|
return x.BuyOrder
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *MatchedOrder) GetBuyerSignature() [][]byte {
|
|
if x != nil {
|
|
return x.BuyerSignature
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *MatchedOrder) GetSellOrder() *OrderAsk {
|
|
if x != nil {
|
|
return x.SellOrder
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *MatchedOrder) GetSellerSignature() [][]byte {
|
|
if x != nil {
|
|
return x.SellerSignature
|
|
}
|
|
return nil
|
|
}
|
|
|
|
var File_wire_proto protoreflect.FileDescriptor
|
|
|
|
var file_wire_proto_rawDesc = []byte{
|
|
0x0a, 0x0a, 0x77, 0x69, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x09, 0x6f, 0x72,
|
|
<<<<<<< Updated upstream
|
|
0x64, 0x65, 0x72, 0x62, 0x6f, 0x6f, 0x6b, 0x22, 0x6a, 0x0a, 0x04, 0x50, 0x61, 0x69, 0x72, 0x12,
|
|
0x2f, 0x0a, 0x13, 0x62, 0x75, 0x79, 0x65, 0x72, 0x73, 0x5f, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x69,
|
|
0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x12, 0x62, 0x75,
|
|
0x79, 0x65, 0x72, 0x73, 0x44, 0x65, 0x6e, 0x6f, 0x6d, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e,
|
|
0x12, 0x31, 0x0a, 0x14, 0x73, 0x65, 0x6c, 0x6c, 0x65, 0x72, 0x73, 0x5f, 0x64, 0x65, 0x6e, 0x6f,
|
|
0x6d, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x13,
|
|
0x73, 0x65, 0x6c, 0x6c, 0x65, 0x72, 0x73, 0x44, 0x65, 0x6e, 0x6f, 0x6d, 0x69, 0x6e, 0x61, 0x74,
|
|
0x69, 0x6f, 0x6e, 0x22, 0x3d, 0x0a, 0x09, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x64, 0x69, 0x74, 0x79,
|
|
0x12, 0x14, 0x0a, 0x05, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
|
|
0x05, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x12, 0x1a, 0x0a, 0x08, 0x71, 0x75, 0x61, 0x6e, 0x74, 0x69,
|
|
0x74, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x71, 0x75, 0x61, 0x6e, 0x74, 0x69,
|
|
0x74, 0x79, 0x22, 0x76, 0x0a, 0x07, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x14, 0x0a,
|
|
0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x69, 0x6e,
|
|
0x64, 0x65, 0x78, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65,
|
|
0x79, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b,
|
|
0x65, 0x79, 0x12, 0x36, 0x0a, 0x0b, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x64, 0x69, 0x74, 0x69, 0x65,
|
|
0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x62,
|
|
0x6f, 0x6f, 0x6b, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x64, 0x69, 0x74, 0x79, 0x52, 0x0b, 0x63,
|
|
0x6f, 0x6d, 0x6d, 0x6f, 0x64, 0x69, 0x74, 0x69, 0x65, 0x73, 0x22, 0x6f, 0x0a, 0x08, 0x54, 0x72,
|
|
0x61, 0x64, 0x65, 0x53, 0x65, 0x74, 0x12, 0x23, 0x0a, 0x04, 0x70, 0x61, 0x69, 0x72, 0x18, 0x01,
|
|
0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x62, 0x6f, 0x6f, 0x6b,
|
|
0x2e, 0x50, 0x61, 0x69, 0x72, 0x52, 0x04, 0x70, 0x61, 0x69, 0x72, 0x12, 0x3e, 0x0a, 0x0e, 0x6d,
|
|
0x61, 0x74, 0x63, 0x68, 0x65, 0x64, 0x5f, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20,
|
|
0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x62, 0x6f, 0x6f, 0x6b, 0x2e,
|
|
0x4d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x64, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x0d, 0x6d, 0x61,
|
|
0x74, 0x63, 0x68, 0x65, 0x64, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x22, 0xed, 0x01, 0x0a, 0x0c,
|
|
0x4d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x64, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08,
|
|
0x71, 0x75, 0x61, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08,
|
|
0x71, 0x75, 0x61, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x72, 0x69, 0x63,
|
|
0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x01, 0x52, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x12, 0x19,
|
|
0x0a, 0x08, 0x62, 0x75, 0x79, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04,
|
|
0x52, 0x07, 0x62, 0x75, 0x79, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x62, 0x75, 0x79,
|
|
0x65, 0x72, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x01, 0x52, 0x0a,
|
|
0x62, 0x75, 0x79, 0x65, 0x72, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x62, 0x75,
|
|
0x79, 0x65, 0x72, 0x5f, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x05, 0x20,
|
|
0x03, 0x28, 0x0c, 0x52, 0x0e, 0x62, 0x75, 0x79, 0x65, 0x72, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74,
|
|
0x75, 0x72, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x65, 0x6c, 0x6c, 0x65, 0x72, 0x5f, 0x69, 0x64,
|
|
0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x73, 0x65, 0x6c, 0x6c, 0x65, 0x72, 0x49, 0x64,
|
|
0x12, 0x29, 0x0a, 0x10, 0x73, 0x65, 0x6c, 0x6c, 0x65, 0x72, 0x5f, 0x73, 0x69, 0x67, 0x6e, 0x61,
|
|
0x74, 0x75, 0x72, 0x65, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x0f, 0x73, 0x65, 0x6c, 0x6c,
|
|
0x65, 0x72, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x42, 0x39, 0x5a, 0x37, 0x67,
|
|
0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72,
|
|
0x6d, 0x69, 0x6e, 0x74, 0x2f, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2f,
|
|
0x61, 0x62, 0x63, 0x69, 0x2f, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x2f, 0x6f, 0x72, 0x64,
|
|
0x65, 0x72, 0x62, 0x6f, 0x6f, 0x6b, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
||||||| constructed merge base
|
|
0x64, 0x65, 0x72, 0x62, 0x6f, 0x6f, 0x6b, 0x22, 0x67, 0x0a, 0x05, 0x4f, 0x72, 0x64, 0x65, 0x72,
|
|
0x12, 0x2b, 0x0a, 0x11, 0x71, 0x75, 0x61, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x5f, 0x6f, 0x75, 0x74,
|
|
0x62, 0x6f, 0x75, 0x6e, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x10, 0x71, 0x75, 0x61,
|
|
0x6e, 0x74, 0x69, 0x74, 0x79, 0x4f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x12, 0x1b, 0x0a,
|
|
0x09, 0x6d, 0x69, 0x6e, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x01,
|
|
0x52, 0x08, 0x6d, 0x69, 0x6e, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77,
|
|
0x6e, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72,
|
|
0x22, 0x78, 0x0a, 0x04, 0x50, 0x61, 0x69, 0x72, 0x12, 0x36, 0x0a, 0x17, 0x69, 0x6e, 0x62, 0x6f,
|
|
0x75, 0x6e, 0x64, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x64, 0x69, 0x74, 0x79, 0x5f, 0x64, 0x65,
|
|
0x6e, 0x6f, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x15, 0x69, 0x6e, 0x62, 0x6f, 0x75,
|
|
0x6e, 0x64, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x64, 0x69, 0x74, 0x79, 0x44, 0x65, 0x6e, 0x6f, 0x6d,
|
|
0x12, 0x38, 0x0a, 0x18, 0x6f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x5f, 0x63, 0x6f, 0x6d,
|
|
0x6d, 0x6f, 0x64, 0x69, 0x74, 0x79, 0x5f, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x18, 0x02, 0x20, 0x01,
|
|
0x28, 0x09, 0x52, 0x16, 0x6f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x43, 0x6f, 0x6d, 0x6d,
|
|
0x6f, 0x64, 0x69, 0x74, 0x79, 0x44, 0x65, 0x6e, 0x6f, 0x6d, 0x22, 0x3d, 0x0a, 0x09, 0x43, 0x6f,
|
|
0x6d, 0x6d, 0x6f, 0x64, 0x69, 0x74, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x64, 0x65, 0x6e, 0x6f, 0x6d,
|
|
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x12, 0x1a, 0x0a,
|
|
0x08, 0x71, 0x75, 0x61, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52,
|
|
0x08, 0x71, 0x75, 0x61, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x22, 0x76, 0x0a, 0x07, 0x41, 0x63, 0x63,
|
|
0x6f, 0x75, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x01, 0x20,
|
|
0x01, 0x28, 0x04, 0x52, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x75,
|
|
0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x09,
|
|
0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x36, 0x0a, 0x0b, 0x63, 0x6f, 0x6d,
|
|
0x6d, 0x6f, 0x64, 0x69, 0x74, 0x69, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14,
|
|
0x2e, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x62, 0x6f, 0x6f, 0x6b, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f,
|
|
0x64, 0x69, 0x74, 0x79, 0x52, 0x0b, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x64, 0x69, 0x74, 0x69, 0x65,
|
|
0x73, 0x42, 0x39, 0x5a, 0x37, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
|
|
0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2f, 0x74, 0x65, 0x6e, 0x64, 0x65,
|
|
0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2f, 0x61, 0x62, 0x63, 0x69, 0x2f, 0x65, 0x78, 0x61, 0x6d, 0x70,
|
|
0x6c, 0x65, 0x2f, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x62, 0x6f, 0x6f, 0x6b, 0x62, 0x06, 0x70, 0x72,
|
|
0x6f, 0x74, 0x6f, 0x33,
|
|
=======
|
|
0x64, 0x65, 0x72, 0x62, 0x6f, 0x6f, 0x6b, 0x22, 0x6d, 0x0a, 0x08, 0x4f, 0x72, 0x64, 0x65, 0x72,
|
|
0x41, 0x73, 0x6b, 0x12, 0x1a, 0x0a, 0x08, 0x71, 0x75, 0x61, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18,
|
|
0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x71, 0x75, 0x61, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12,
|
|
0x1b, 0x0a, 0x09, 0x61, 0x73, 0x6b, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01,
|
|
0x28, 0x04, 0x52, 0x08, 0x61, 0x73, 0x6b, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x28, 0x0a, 0x05,
|
|
0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x6f, 0x72,
|
|
0x64, 0x65, 0x72, 0x62, 0x6f, 0x6f, 0x6b, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52,
|
|
0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x22, 0x6d, 0x0a, 0x08, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x42,
|
|
0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x71, 0x75, 0x61, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x01,
|
|
0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x71, 0x75, 0x61, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x1b,
|
|
0x0a, 0x09, 0x6d, 0x61, 0x78, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
|
|
0x04, 0x52, 0x08, 0x6d, 0x61, 0x78, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x28, 0x0a, 0x05, 0x6f,
|
|
0x77, 0x6e, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x6f, 0x72, 0x64,
|
|
0x65, 0x72, 0x62, 0x6f, 0x6f, 0x6b, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x05,
|
|
0x6f, 0x77, 0x6e, 0x65, 0x72, 0x22, 0x78, 0x0a, 0x04, 0x50, 0x61, 0x69, 0x72, 0x12, 0x36, 0x0a,
|
|
0x17, 0x69, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x64, 0x69,
|
|
0x74, 0x79, 0x5f, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x15,
|
|
0x69, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x64, 0x69, 0x74, 0x79,
|
|
0x44, 0x65, 0x6e, 0x6f, 0x6d, 0x12, 0x38, 0x0a, 0x18, 0x6f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e,
|
|
0x64, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x64, 0x69, 0x74, 0x79, 0x5f, 0x64, 0x65, 0x6e, 0x6f,
|
|
0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x16, 0x6f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e,
|
|
0x64, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x64, 0x69, 0x74, 0x79, 0x44, 0x65, 0x6e, 0x6f, 0x6d, 0x22,
|
|
0x3d, 0x0a, 0x09, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x64, 0x69, 0x74, 0x79, 0x12, 0x14, 0x0a, 0x05,
|
|
0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x64, 0x65, 0x6e,
|
|
0x6f, 0x6d, 0x12, 0x1a, 0x0a, 0x08, 0x71, 0x75, 0x61, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x02,
|
|
0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x71, 0x75, 0x61, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x22, 0x76,
|
|
0x0a, 0x07, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6e, 0x64,
|
|
0x65, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x12,
|
|
0x1d, 0x0a, 0x0a, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20,
|
|
0x03, 0x28, 0x0c, 0x52, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x36,
|
|
0x0a, 0x0b, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x64, 0x69, 0x74, 0x69, 0x65, 0x73, 0x18, 0x03, 0x20,
|
|
0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x62, 0x6f, 0x6f, 0x6b, 0x2e,
|
|
0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x64, 0x69, 0x74, 0x79, 0x52, 0x0b, 0x63, 0x6f, 0x6d, 0x6d, 0x6f,
|
|
0x64, 0x69, 0x74, 0x69, 0x65, 0x73, 0x22, 0x6f, 0x0a, 0x08, 0x54, 0x72, 0x61, 0x64, 0x65, 0x53,
|
|
0x65, 0x74, 0x12, 0x23, 0x0a, 0x04, 0x70, 0x61, 0x69, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,
|
|
0x32, 0x0f, 0x2e, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x62, 0x6f, 0x6f, 0x6b, 0x2e, 0x50, 0x61, 0x69,
|
|
0x72, 0x52, 0x04, 0x70, 0x61, 0x69, 0x72, 0x12, 0x3e, 0x0a, 0x0e, 0x6d, 0x61, 0x74, 0x63, 0x68,
|
|
0x65, 0x64, 0x5f, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32,
|
|
0x17, 0x2e, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x62, 0x6f, 0x6f, 0x6b, 0x2e, 0x4d, 0x61, 0x74, 0x63,
|
|
0x68, 0x65, 0x64, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x0d, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65,
|
|
0x64, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x22, 0xc8, 0x01, 0x0a, 0x0c, 0x4d, 0x61, 0x74, 0x63,
|
|
0x68, 0x65, 0x64, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x12, 0x30, 0x0a, 0x09, 0x62, 0x75, 0x79, 0x5f,
|
|
0x6f, 0x72, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x6f, 0x72,
|
|
0x64, 0x65, 0x72, 0x62, 0x6f, 0x6f, 0x6b, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x42, 0x69, 0x64,
|
|
0x52, 0x08, 0x62, 0x75, 0x79, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x12, 0x27, 0x0a, 0x0f, 0x62, 0x75,
|
|
0x79, 0x65, 0x72, 0x5f, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x02, 0x20,
|
|
0x03, 0x28, 0x0c, 0x52, 0x0e, 0x62, 0x75, 0x79, 0x65, 0x72, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74,
|
|
0x75, 0x72, 0x65, 0x12, 0x32, 0x0a, 0x0a, 0x73, 0x65, 0x6c, 0x6c, 0x5f, 0x6f, 0x72, 0x64, 0x65,
|
|
0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x62,
|
|
0x6f, 0x6f, 0x6b, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x41, 0x73, 0x6b, 0x52, 0x09, 0x73, 0x65,
|
|
0x6c, 0x6c, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x12, 0x29, 0x0a, 0x10, 0x73, 0x65, 0x6c, 0x6c, 0x65,
|
|
0x72, 0x5f, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x04, 0x20, 0x03, 0x28,
|
|
0x0c, 0x52, 0x0f, 0x73, 0x65, 0x6c, 0x6c, 0x65, 0x72, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75,
|
|
0x72, 0x65, 0x42, 0x39, 0x5a, 0x37, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d,
|
|
0x2f, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2f, 0x74, 0x65, 0x6e, 0x64,
|
|
0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2f, 0x61, 0x62, 0x63, 0x69, 0x2f, 0x65, 0x78, 0x61, 0x6d,
|
|
0x70, 0x6c, 0x65, 0x2f, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x62, 0x6f, 0x6f, 0x6b, 0x62, 0x06, 0x70,
|
|
0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
>>>>>>> Stashed changes
|
|
}
|
|
|
|
var (
|
|
file_wire_proto_rawDescOnce sync.Once
|
|
file_wire_proto_rawDescData = file_wire_proto_rawDesc
|
|
)
|
|
|
|
func file_wire_proto_rawDescGZIP() []byte {
|
|
file_wire_proto_rawDescOnce.Do(func() {
|
|
file_wire_proto_rawDescData = protoimpl.X.CompressGZIP(file_wire_proto_rawDescData)
|
|
})
|
|
return file_wire_proto_rawDescData
|
|
}
|
|
|
|
<<<<<<< Updated upstream
|
|
var file_wire_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
|
|
||||||| constructed merge base
|
|
var file_wire_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
|
|
=======
|
|
var file_wire_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
|
|
>>>>>>> Stashed changes
|
|
var file_wire_proto_goTypes = []interface{}{
|
|
<<<<<<< Updated upstream
|
|
(*Pair)(nil), // 0: orderbook.Pair
|
|
(*Commodity)(nil), // 1: orderbook.Commodity
|
|
(*Account)(nil), // 2: orderbook.Account
|
|
(*TradeSet)(nil), // 3: orderbook.TradeSet
|
|
(*MatchedOrder)(nil), // 4: orderbook.MatchedOrder
|
|
||||||| constructed merge base
|
|
(*Order)(nil), // 0: orderbook.Order
|
|
(*Pair)(nil), // 1: orderbook.Pair
|
|
(*Commodity)(nil), // 2: orderbook.Commodity
|
|
(*Account)(nil), // 3: orderbook.Account
|
|
=======
|
|
(*OrderAsk)(nil), // 0: orderbook.OrderAsk
|
|
(*OrderBid)(nil), // 1: orderbook.OrderBid
|
|
(*Pair)(nil), // 2: orderbook.Pair
|
|
(*Commodity)(nil), // 3: orderbook.Commodity
|
|
(*Account)(nil), // 4: orderbook.Account
|
|
(*TradeSet)(nil), // 5: orderbook.TradeSet
|
|
(*MatchedOrder)(nil), // 6: orderbook.MatchedOrder
|
|
>>>>>>> Stashed changes
|
|
}
|
|
var file_wire_proto_depIdxs = []int32{
|
|
<<<<<<< Updated upstream
|
|
1, // 0: orderbook.Account.commodities:type_name -> orderbook.Commodity
|
|
0, // 1: orderbook.TradeSet.pair:type_name -> orderbook.Pair
|
|
4, // 2: orderbook.TradeSet.matched_orders:type_name -> orderbook.MatchedOrder
|
|
3, // [3:3] is the sub-list for method output_type
|
|
3, // [3:3] is the sub-list for method input_type
|
|
3, // [3:3] is the sub-list for extension type_name
|
|
3, // [3:3] is the sub-list for extension extendee
|
|
0, // [0:3] is the sub-list for field type_name
|
|
||||||| constructed merge base
|
|
2, // 0: orderbook.Account.commodities:type_name -> orderbook.Commodity
|
|
1, // [1:1] is the sub-list for method output_type
|
|
1, // [1:1] is the sub-list for method input_type
|
|
1, // [1:1] is the sub-list for extension type_name
|
|
1, // [1:1] is the sub-list for extension extendee
|
|
0, // [0:1] is the sub-list for field type_name
|
|
=======
|
|
4, // 0: orderbook.OrderAsk.owner:type_name -> orderbook.Account
|
|
4, // 1: orderbook.OrderBid.owner:type_name -> orderbook.Account
|
|
3, // 2: orderbook.Account.commodities:type_name -> orderbook.Commodity
|
|
2, // 3: orderbook.TradeSet.pair:type_name -> orderbook.Pair
|
|
6, // 4: orderbook.TradeSet.matched_orders:type_name -> orderbook.MatchedOrder
|
|
1, // 5: orderbook.MatchedOrder.buy_order:type_name -> orderbook.OrderBid
|
|
0, // 6: orderbook.MatchedOrder.sell_order:type_name -> orderbook.OrderAsk
|
|
7, // [7:7] is the sub-list for method output_type
|
|
7, // [7:7] is the sub-list for method input_type
|
|
7, // [7:7] is the sub-list for extension type_name
|
|
7, // [7:7] is the sub-list for extension extendee
|
|
0, // [0:7] is the sub-list for field type_name
|
|
>>>>>>> Stashed changes
|
|
}
|
|
|
|
func init() { file_wire_proto_init() }
|
|
func file_wire_proto_init() {
|
|
if File_wire_proto != nil {
|
|
return
|
|
}
|
|
if !protoimpl.UnsafeEnabled {
|
|
file_wire_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
|
<<<<<<< Updated upstream
|
|
switch v := v.(*Pair); i {
|
|
||||||| constructed merge base
|
|
switch v := v.(*Order); i {
|
|
=======
|
|
switch v := v.(*OrderAsk); i {
|
|
>>>>>>> Stashed changes
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_wire_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
|
<<<<<<< Updated upstream
|
|
switch v := v.(*Commodity); i {
|
|
||||||| constructed merge base
|
|
switch v := v.(*Pair); i {
|
|
=======
|
|
switch v := v.(*OrderBid); i {
|
|
>>>>>>> Stashed changes
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_wire_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
|
<<<<<<< Updated upstream
|
|
switch v := v.(*Account); i {
|
|
||||||| constructed merge base
|
|
switch v := v.(*Commodity); i {
|
|
=======
|
|
switch v := v.(*Pair); i {
|
|
>>>>>>> Stashed changes
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_wire_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
|
<<<<<<< Updated upstream
|
|
switch v := v.(*TradeSet); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_wire_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*MatchedOrder); i {
|
|
||||||| constructed merge base
|
|
switch v := v.(*Account); i {
|
|
=======
|
|
switch v := v.(*Commodity); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_wire_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*Account); i {
|
|
>>>>>>> Stashed changes
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_wire_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*TradeSet); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_wire_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*MatchedOrder); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: file_wire_proto_rawDesc,
|
|
NumEnums: 0,
|
|
<<<<<<< Updated upstream
|
|
NumMessages: 5,
|
|
||||||| constructed merge base
|
|
NumMessages: 4,
|
|
=======
|
|
NumMessages: 7,
|
|
>>>>>>> Stashed changes
|
|
NumExtensions: 0,
|
|
NumServices: 0,
|
|
},
|
|
GoTypes: file_wire_proto_goTypes,
|
|
DependencyIndexes: file_wire_proto_depIdxs,
|
|
MessageInfos: file_wire_proto_msgTypes,
|
|
}.Build()
|
|
File_wire_proto = out.File
|
|
file_wire_proto_rawDesc = nil
|
|
file_wire_proto_goTypes = nil
|
|
file_wire_proto_depIdxs = nil
|
|
}
|