nautilus_dydx/proto/mod.rs
1// -------------------------------------------------------------------------------------------------
2// Copyright (C) 2015-2026 Nautech Systems Pty Ltd. All rights reserved.
3// https://nautechsystems.io
4//
5// Licensed under the GNU Lesser General Public License Version 3.0 (the "License");
6// You may not use this file except in compliance with the License.
7// You may obtain a copy of the License at https://www.gnu.org/licenses/lgpl-3.0.en.html
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14// -------------------------------------------------------------------------------------------------
15
16//! Protocol Buffer definitions for dYdX v4.
17//!
18//! Re-exports proto definitions from the `dydx_proto` crate which includes both
19//! Cosmos SDK and dYdX protocol-specific messages.
20
21pub use dydx_proto::{
22 ToAny, cosmos_sdk_proto,
23 cosmos_sdk_proto::cosmos::{
24 auth::v1beta1::{
25 BaseAccount, QueryAccountRequest, query_client::QueryClient as AuthClient,
26 },
27 bank::v1beta1::{
28 MsgSend, QueryAllBalancesRequest, query_client::QueryClient as BankClient,
29 },
30 base::{
31 tendermint::v1beta1::{
32 Block, GetLatestBlockRequest, GetNodeInfoRequest, GetNodeInfoResponse,
33 service_client::ServiceClient as BaseClient,
34 },
35 v1beta1::Coin,
36 },
37 tx::v1beta1::{
38 BroadcastMode, BroadcastTxRequest, GetTxRequest, SimulateRequest,
39 service_client::ServiceClient as TxClient,
40 },
41 },
42 dydxprotocol,
43 dydxprotocol::{
44 accountplus::TxExtension,
45 clob::{
46 ClobPair, MsgBatchCancel, MsgCancelOrder, MsgPlaceOrder, Order, OrderBatch, OrderId,
47 QueryAllClobPairRequest,
48 order::{
49 self as order_proto, ConditionType, Side as OrderSide,
50 TimeInForce as OrderTimeInForce,
51 },
52 query_client::QueryClient as ClobClient,
53 },
54 perpetuals::{
55 Perpetual, QueryAllPerpetualsRequest, query_client::QueryClient as PerpetualsClient,
56 },
57 sending::{MsgCreateTransfer, MsgDepositToSubaccount, MsgWithdrawFromSubaccount, Transfer},
58 subaccounts::{
59 QueryGetSubaccountRequest, Subaccount as SubaccountInfo, SubaccountId,
60 query_client::QueryClient as SubaccountsClient,
61 },
62 },
63};