From 499d4b5c501f7a67a8e915b5fcde554bdc5ab59f Mon Sep 17 00:00:00 2001 From: Taehoon Lee <19664986+ttl33@users.noreply.github.com> Date: Tue, 24 Oct 2023 11:34:48 -0400 Subject: [PATCH] proto gen --- protocol/indexer/events/events.pb.go | 24 +++++++++---------- protocol/indexer/indexer_manager/event.pb.go | 2 +- .../off_chain_updates/off_chain_updates.pb.go | 24 +++++++++---------- 3 files changed, 25 insertions(+), 25 deletions(-) diff --git a/protocol/indexer/events/events.pb.go b/protocol/indexer/events/events.pb.go index f69141e7a5..bf3ac37677 100644 --- a/protocol/indexer/events/events.pb.go +++ b/protocol/indexer/events/events.pb.go @@ -191,7 +191,7 @@ func (m *FundingEventV1) GetType() FundingEventV1_Type { } // MarketEvent message contains all the information about a market event on -// the V4 chain. +// the dYdX chain. type MarketEventV1 struct { // market id. MarketId uint32 `protobuf:"varint,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` @@ -302,7 +302,7 @@ func (*MarketEventV1) XXX_OneofWrappers() []interface{} { } // MarketPriceUpdateEvent message contains all the information about a price -// update on the V4 chain. +// update on the dYdX chain. type MarketPriceUpdateEventV1 struct { // price_with_exponent. Multiply by 10 ^ Exponent to get the human readable // price in dollars. For example if `Exponent == -5` then a `exponent_price` @@ -407,7 +407,7 @@ func (m *MarketBaseEventV1) GetMinPriceChangePpm() uint32 { } // MarketCreateEvent message contains all the information about a new market on -// the V4 chain. +// the dYdX chain. type MarketCreateEventV1 struct { Base *MarketBaseEventV1 `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` // Static value. The exponent of the price. @@ -465,7 +465,7 @@ func (m *MarketCreateEventV1) GetExponent() int32 { } // MarketModifyEvent message contains all the information about a market update -// on the V4 chain +// on the dYdX chain type MarketModifyEventV1 struct { Base *MarketBaseEventV1 `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` } @@ -603,7 +603,7 @@ func (*SourceOfFunds) XXX_OneofWrappers() []interface{} { } // TransferEvent message contains all the information about a transfer, -// deposit-to-subaccount, or withdraw-from-subaccount on the V4 chain. +// deposit-to-subaccount, or withdraw-from-subaccount on the dYdX chain. // When a subaccount is involved, a SubaccountUpdateEvent message will // be produced with the updated asset positions. type TransferEventV1 struct { @@ -699,7 +699,7 @@ func (m *TransferEventV1) GetRecipient() *SourceOfFunds { } // OrderFillEvent message contains all the information from an order match in -// the V4 chain. This includes the maker/taker orders that matched and the +// the dYdX chain. This includes the maker/taker orders that matched and the // amount filled. type OrderFillEventV1 struct { MakerOrder v1.IndexerOrder `protobuf:"bytes,1,opt,name=maker_order,json=makerOrder,proto3" json:"maker_order"` @@ -941,7 +941,7 @@ func (m *LiquidationOrderV1) GetSubticks() uint64 { } // SubaccountUpdateEvent message contains information about an update to a -// subaccount in the V4 chain. This includes the list of updated perpetual +// subaccount in the dYdX chain. This includes the list of updated perpetual // and asset positions for the subaccount. // Note: This event message will contain all the updates to a subaccount // at the end of a block which is why multiple asset/perpetual position @@ -1396,7 +1396,7 @@ func (m *StatefulOrderEventV1_LongTermOrderPlacementV1) GetOrder() *v1.IndexerOr } // AssetCreateEventV1 message contains all the information about an new Asset on -// the v4 chain. +// the dYdX chain. type AssetCreateEventV1 struct { // Unique, sequentially-generated. Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` @@ -1486,7 +1486,7 @@ func (m *AssetCreateEventV1) GetAtomicResolution() int32 { } // PerpetualMarketCreateEventV1 message contains all the information about a -// new Perpetual Market on the v4 chain. +// new Perpetual Market on the dYdX chain. type PerpetualMarketCreateEventV1 struct { // Unique Perpetual id. // Defined in perpetuals.perpetual @@ -1630,7 +1630,7 @@ func (m *PerpetualMarketCreateEventV1) GetLiquidityTier() uint32 { } // LiquidityTierUpsertEventV1 message contains all the information to -// create/update a Liquidity Tier on the v4 chain. +// create/update a Liquidity Tier on the dYdX chain. type LiquidityTierUpsertEventV1 struct { // Unique id. Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` @@ -1717,7 +1717,7 @@ func (m *LiquidityTierUpsertEventV1) GetBasePositionNotional() uint64 { } // UpdateClobPairEventV1 message contains all the information about an update to -// a clob pair on the v4 chain. +// a clob pair on the dYdX chain. type UpdateClobPairEventV1 struct { // Unique clob pair Id associated with this perpetual market // Defined in clob.clob_pair @@ -1808,7 +1808,7 @@ func (m *UpdateClobPairEventV1) GetStepBaseQuantums() uint64 { } // UpdatePerpetualEventV1 message contains all the information about an update -// to a perpetual on the v4 chain. +// to a perpetual on the dYdX chain. type UpdatePerpetualEventV1 struct { // Unique Perpetual id. // Defined in perpetuals.perpetual diff --git a/protocol/indexer/indexer_manager/event.pb.go b/protocol/indexer/indexer_manager/event.pb.go index 9dfba5da9e..87f38cc74b 100644 --- a/protocol/indexer/indexer_manager/event.pb.go +++ b/protocol/indexer/indexer_manager/event.pb.go @@ -162,7 +162,7 @@ func (m *IndexerEventsStoreValue) GetEvents() []*IndexerTendermintEventWrapper { } // IndexerTendermintEvent contains the base64 encoded event proto emitted from -// the V4 application as well as additional metadata to determine the ordering +// the dYdX application as well as additional metadata to determine the ordering // of the event within the block and the subtype of the event. type IndexerTendermintEvent struct { // Subtype of the event e.g. "order_fill", "subaccount_update", etc. diff --git a/protocol/indexer/off_chain_updates/off_chain_updates.pb.go b/protocol/indexer/off_chain_updates/off_chain_updates.pb.go index 8d8b1e02c9..91edbecf6b 100644 --- a/protocol/indexer/off_chain_updates/off_chain_updates.pb.go +++ b/protocol/indexer/off_chain_updates/off_chain_updates.pb.go @@ -32,16 +32,16 @@ const ( // Default value, this is invalid and unused. OrderPlaceV1_ORDER_PLACEMENT_STATUS_UNSPECIFIED OrderPlaceV1_OrderPlacementStatus = 0 // A best effort opened order is one that has only been confirmed to be - // placed on the V4 node sending the off-chain update message. + // placed on the dYdX node sending the off-chain update message. // The cases where this happens includes: - // - The V4 node places an order in it's in-memory orderbook during the + // - The dYdX node places an order in it's in-memory orderbook during the // CheckTx flow. - // A best effort placed order may not have been placed on other V4 - // nodes including other V4 validator nodes and may still be excluded in + // A best effort placed order may not have been placed on other dYdX + // nodes including other dYdX validator nodes and may still be excluded in // future order matches. OrderPlaceV1_ORDER_PLACEMENT_STATUS_BEST_EFFORT_OPENED OrderPlaceV1_OrderPlacementStatus = 1 - // An opened order is one that is confirmed to be placed on all V4 nodes - // (discounting dishonest V4 nodes) and will be included in any future + // An opened order is one that is confirmed to be placed on all dYdX nodes + // (discounting dishonest dYdX nodes) and will be included in any future // order matches. // This status is used internally by the indexer and will not be sent // out by protocol. @@ -76,18 +76,18 @@ const ( // Default value, this is invalid and unused. OrderRemoveV1_ORDER_REMOVAL_STATUS_UNSPECIFIED OrderRemoveV1_OrderRemovalStatus = 0 // A best effort canceled order is one that has only been confirmed to be - // removed on the V4 node sending the off-chain update message. + // removed on the dYdX node sending the off-chain update message. // The cases where this happens includes: - // - the order was removed due to the V4 node receiving a CancelOrder + // - the order was removed due to the dYdX node receiving a CancelOrder // transaction for the order. // - the order was removed due to being undercollateralized during // optimistic matching. - // A best effort canceled order may not have been removed on other V4 - // nodes including other V4 validator nodes and may still be included in + // A best effort canceled order may not have been removed on other dYdX + // nodes including other dYdX validator nodes and may still be included in // future order matches. OrderRemoveV1_ORDER_REMOVAL_STATUS_BEST_EFFORT_CANCELED OrderRemoveV1_OrderRemovalStatus = 1 - // A canceled order is one that is confirmed to be removed on all V4 nodes - // (discounting dishonest V4 nodes) and will not be included in any future + // A canceled order is one that is confirmed to be removed on all dYdX nodes + // (discounting dishonest dYdX nodes) and will not be included in any future // order matches. // The cases where this happens includes: // - the order is expired.