Modules§
- position_
state - Nested message and enum types in
PositionState
. - query_
service_ client rpc
- Generated client implementations.
- query_
service_ server rpc
- Generated server implementations.
- simulate_
trade_ request - Nested message and enum types in
SimulateTradeRequest
. - simulation_
service_ client rpc
- Generated client implementations.
- simulation_
service_ server rpc
- Generated server implementations.
- swap_
claim_ view - Nested message and enum types in
SwapClaimView
. - swap_
execution - Nested message and enum types in
SwapExecution
. - swap_
view - Nested message and enum types in
SwapView
.
Structs§
- ArbExecution
Request - ArbExecution
Response - ArbExecutions
Request - ArbExecutions
Response - Bare
Trading Function - The minimum amount of data describing a trading function.
- Batch
Swap Output Data - Records the result of a batch swap on-chain.
- Batch
Swap Output Data Request - Requests batch swap data associated with a given height and trading pair from the view service.
- Batch
Swap Output Data Response - Candlestick
Data - Candlestick
Data Request - Candlestick
Data Response - Candlestick
Data Stream Request - Candlestick
Data Stream Response - DexParameters
- Directed
Trading Pair - Encodes a trading pair starting from asset
start
and ending on assetend
. - Event
ArbExecution - Event
Batch Swap - Event
Candlestick Data - Emitted whenever there’s non-empty candlestick data for a particular pair.
- Event
Position Close - Event
Position Execution - Event
Position Open - Event
Position Withdraw - Event
Queue Position Close - Event
Swap - Event
Swap Claim - Event
Value Circuit Breaker Credit - Indicates that value was added to the DEX.
- Event
Value Circuit Breaker Debit - Indicates that value is leaving the DEX.
- Genesis
Content - Liquidity
Position ById Request - Liquidity
Position ById Response - Liquidity
Positions ById Request - Liquidity
Positions ById Response - Liquidity
Positions ByPrice Request - Liquidity
Positions ByPrice Response - Liquidity
Positions Request - Liquidity
Positions Response - LpNft
- An LPNFT tracking both ownership and state of a position.
- Position
- Data identifying a position.
- Position
Close - A transaction action that closes a position.
- Position
Id - A hash of a
Position
. - Position
Open - A transaction action that opens a new position.
- Position
Reward Claim - Deprecated.
- Position
Reward Claim Plan - Deprecated.
- Position
State - The state of a position.
- Position
Withdraw - A transaction action that withdraws funds from a closed position.
- Position
Withdraw Plan - Contains private and public data for withdrawing funds from a closed position.
- Reserves
- The reserves of a position.
- Simulate
Trade Request - Simulate
Trade Response - Spread
Request - Spread
Response - Swap
- A transaction action that submits a swap to the dex.
- Swap
Body - The authorized data of a Swap transaction.
- Swap
Claim - A transaction action that obtains assets previously confirmed via a Swap transaction. Does not include a spend authorization signature, as it is only capable of consuming the NFT from a Swap transaction.
- Swap
Claim Body - Encapsulates the authorized fields of the SwapClaim action, used in signing.
- Swap
Claim Plan - Swap
Claim View - Swap
Execution - Contains the entire execution of a particular swap.
- Swap
Execution Request - Swap
Execution Response - Swap
Executions Request - Swap
Executions Response - Swap
Payload - Swap
Plaintext - Swap
Plan - Swap
View - Trading
Function - The trading function for a specific pair.
For a pair (asset_1, asset_2), a trading function is defined by:
phi(R) = p*R_1 + q*R_2
andgamma = 1 - fee
. The trading function is frequently referred to as “phi”. - Trading
Pair - Holds two asset IDs. Ordering doesn’t reflect trading direction. Instead, we
require
asset_1 < asset_2
as field elements, to ensure a canonical representation of an unordered pair. - ZkSwap
Claim Proof - A Penumbra ZK swap claim proof.
- ZkSwap
Proof - A Penumbra ZK swap proof.