Skip to main content

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::{
45            AccountAuthenticator, GetAuthenticatorsRequest, GetAuthenticatorsResponse, TxExtension,
46            query_client::QueryClient as AccountPlusClient,
47        },
48        clob::{
49            ClobPair, MsgBatchCancel, MsgCancelOrder, MsgPlaceOrder, Order, OrderBatch, OrderId,
50            QueryAllClobPairRequest,
51            order::{
52                self as order_proto, ConditionType, Side as OrderSide,
53                TimeInForce as OrderTimeInForce,
54            },
55            query_client::QueryClient as ClobClient,
56        },
57        perpetuals::{
58            Perpetual, QueryAllPerpetualsRequest, query_client::QueryClient as PerpetualsClient,
59        },
60        sending::{MsgCreateTransfer, MsgDepositToSubaccount, MsgWithdrawFromSubaccount, Transfer},
61        subaccounts::{
62            QueryGetSubaccountRequest, Subaccount as SubaccountInfo, SubaccountId,
63            query_client::QueryClient as SubaccountsClient,
64        },
65    },
66};