Expand description
Protocol Buffer definitions for dYdX v4.
Re-exports proto definitions from the dydx_proto crate which includes both
Cosmos SDK and dYdX protocol-specific messages.
Re-exports§
pub use dydx_proto::cosmos_sdk_proto;
Modules§
- dydxprotocol
- order_
proto - Nested message and enum types in
Order.
Structs§
- Auth
Client - Bank
Client - Base
Account - BaseAccount defines a base account type. It contains all the necessary fields for basic account functionality. Any custom account type should extend this type for additional functionality (e.g. vesting).
- Base
Client - Block
- Block is tendermint type Block, with the Header proposer address field converted to bech32 string.
- Broadcast
TxRequest - BroadcastTxRequest is the request type for the Service.BroadcastTxRequest RPC method.
- Clob
Client - Query defines the gRPC querier service.
- Clob
Pair - ClobPair represents a single CLOB pair for a given product in state.
- Coin
- Coin defines a token with a denomination and an amount.
- GetLatest
Block Request - GetLatestBlockRequest is the request type for the Query/GetLatestBlock RPC method.
- GetNode
Info Request - GetNodeInfoRequest is the request type for the Query/GetNodeInfo RPC method.
- GetNode
Info Response - GetNodeInfoResponse is the response type for the Query/GetNodeInfo RPC method.
- GetTx
Request - GetTxRequest is the request type for the Service.GetTx RPC method.
- MsgBatch
Cancel - MsgBatchCancel is a request type used for batch canceling orders. This msg is not atomic. Cancels will be performed optimistically even if some cancels are invalid or fail.
- MsgCancel
Order - MsgCancelOrder is a request type used for canceling orders.
- MsgCreate
Transfer - MsgCreateTransfer is a request type used for initiating new transfers.
- MsgDeposit
ToSubaccount - MsgDepositToSubaccount represents a single transfer from an
x/bankaccount to anx/subaccountssubaccount. - MsgPlace
Order - MsgPlaceOrder is a request type used for placing orders.
- MsgSend
- MsgSend represents a message to send coins from one account to another.
- MsgWithdraw
From Subaccount - MsgWithdrawFromSubaccount represents a single transfer from an
x/subaccountssubaccount to anx/bankaccount. - Order
- Order represents a single order belonging to a
Subaccountfor a particularClobPair. - Order
Batch - OrderBatch represents a batch of orders all belonging to a single clob pair id. Along with a subaccount id and an order flag, is used to represent a batch of orders that share the same subaccount, order flag, and clob pair id.
- OrderId
- OrderId refers to a single order belonging to a Subaccount.
- Perpetual
- Perpetual represents a perpetual on the dYdX exchange.
- Perpetuals
Client - Query defines the gRPC querier service.
- Query
Account Request - QueryAccountRequest is the request type for the Query/Account RPC method.
- Query
AllBalances Request - QueryBalanceRequest is the request type for the Query/AllBalances RPC method.
- Query
AllClob Pair Request - QueryAllClobPairRequest is request type for the ClobPairAll method.
- Query
AllPerpetuals Request - Queries a list of Perpetual items.
- Query
GetSubaccount Request - QueryGetSubaccountRequest is request type for the Query RPC method.
- Simulate
Request - SimulateRequest is the request type for the Service.Simulate RPC method.
- Subaccount
Id - SubaccountId defines a unique identifier for a Subaccount.
- Subaccount
Info - Subaccount defines a single sub-account for a given address. Subaccounts are uniquely indexed by a subaccountNumber/owner pair.
- Subaccounts
Client - Query defines the gRPC querier service.
- Transfer
- Transfer represents a single transfer between two subaccounts.
- TxClient
- TxExtension
- TxExtension allows for additional authenticator-specific data in transactions.
Enums§
- Broadcast
Mode - BroadcastMode specifies the broadcast mode for the TxService.Broadcast RPC method.
- Condition
Type - Order
Side - Represents the side of the orderbook the order will be placed on. Note that Side.SIDE_UNSPECIFIED is an invalid order and cannot be placed on the orderbook.
- Order
Time InForce - TimeInForce indicates how long an order will remain active before it is executed or expires.