Documentation ¶
Index ¶
- Variables
- type ArbExecutionRequest
- func (*ArbExecutionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ArbExecutionRequest) GetChainId() string
- func (x *ArbExecutionRequest) GetHeight() uint64
- func (*ArbExecutionRequest) ProtoMessage()
- func (x *ArbExecutionRequest) ProtoReflect() protoreflect.Message
- func (x *ArbExecutionRequest) Reset()
- func (x *ArbExecutionRequest) String() string
- type ArbExecutionResponse
- func (*ArbExecutionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ArbExecutionResponse) GetHeight() uint64
- func (x *ArbExecutionResponse) GetSwapExecution() *SwapExecution
- func (*ArbExecutionResponse) ProtoMessage()
- func (x *ArbExecutionResponse) ProtoReflect() protoreflect.Message
- func (x *ArbExecutionResponse) Reset()
- func (x *ArbExecutionResponse) String() string
- type ArbExecutionsRequest
- func (*ArbExecutionsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ArbExecutionsRequest) GetChainId() string
- func (x *ArbExecutionsRequest) GetEndHeight() uint64
- func (x *ArbExecutionsRequest) GetStartHeight() uint64
- func (*ArbExecutionsRequest) ProtoMessage()
- func (x *ArbExecutionsRequest) ProtoReflect() protoreflect.Message
- func (x *ArbExecutionsRequest) Reset()
- func (x *ArbExecutionsRequest) String() string
- type ArbExecutionsResponse
- func (*ArbExecutionsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ArbExecutionsResponse) GetHeight() uint64
- func (x *ArbExecutionsResponse) GetSwapExecution() *SwapExecution
- func (*ArbExecutionsResponse) ProtoMessage()
- func (x *ArbExecutionsResponse) ProtoReflect() protoreflect.Message
- func (x *ArbExecutionsResponse) Reset()
- func (x *ArbExecutionsResponse) String() string
- type BareTradingFunction
- func (*BareTradingFunction) Descriptor() ([]byte, []int)deprecated
- func (x *BareTradingFunction) GetFee() uint32
- func (x *BareTradingFunction) GetP() *v1alpha13.Amount
- func (x *BareTradingFunction) GetQ() *v1alpha13.Amount
- func (*BareTradingFunction) ProtoMessage()
- func (x *BareTradingFunction) ProtoReflect() protoreflect.Message
- func (x *BareTradingFunction) Reset()
- func (x *BareTradingFunction) String() string
- type BatchSwapOutputData
- func (*BatchSwapOutputData) Descriptor() ([]byte, []int)deprecated
- func (x *BatchSwapOutputData) GetDelta_1() *v1alpha13.Amount
- func (x *BatchSwapOutputData) GetDelta_2() *v1alpha13.Amount
- func (x *BatchSwapOutputData) GetEpochStartingHeight() uint64
- func (x *BatchSwapOutputData) GetHeight() uint64
- func (x *BatchSwapOutputData) GetLambda_1() *v1alpha13.Amount
- func (x *BatchSwapOutputData) GetLambda_2() *v1alpha13.Amount
- func (x *BatchSwapOutputData) GetTradingPair() *TradingPair
- func (x *BatchSwapOutputData) GetUnfilled_1() *v1alpha13.Amount
- func (x *BatchSwapOutputData) GetUnfilled_2() *v1alpha13.Amount
- func (*BatchSwapOutputData) ProtoMessage()
- func (x *BatchSwapOutputData) ProtoReflect() protoreflect.Message
- func (x *BatchSwapOutputData) Reset()
- func (x *BatchSwapOutputData) String() string
- type BatchSwapOutputDataRequest
- func (*BatchSwapOutputDataRequest) Descriptor() ([]byte, []int)deprecated
- func (x *BatchSwapOutputDataRequest) GetChainId() string
- func (x *BatchSwapOutputDataRequest) GetHeight() uint64
- func (x *BatchSwapOutputDataRequest) GetTradingPair() *TradingPair
- func (*BatchSwapOutputDataRequest) ProtoMessage()
- func (x *BatchSwapOutputDataRequest) ProtoReflect() protoreflect.Message
- func (x *BatchSwapOutputDataRequest) Reset()
- func (x *BatchSwapOutputDataRequest) String() string
- type BatchSwapOutputDataResponse
- func (*BatchSwapOutputDataResponse) Descriptor() ([]byte, []int)deprecated
- func (x *BatchSwapOutputDataResponse) GetData() *BatchSwapOutputData
- func (*BatchSwapOutputDataResponse) ProtoMessage()
- func (x *BatchSwapOutputDataResponse) ProtoReflect() protoreflect.Message
- func (x *BatchSwapOutputDataResponse) Reset()
- func (x *BatchSwapOutputDataResponse) String() string
- type DirectedTradingPair
- func (*DirectedTradingPair) Descriptor() ([]byte, []int)deprecated
- func (x *DirectedTradingPair) GetEnd() *v1alpha14.AssetId
- func (x *DirectedTradingPair) GetStart() *v1alpha14.AssetId
- func (*DirectedTradingPair) ProtoMessage()
- func (x *DirectedTradingPair) ProtoReflect() protoreflect.Message
- func (x *DirectedTradingPair) Reset()
- func (x *DirectedTradingPair) String() string
- type LiquidityPositionByIdRequest
- func (*LiquidityPositionByIdRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LiquidityPositionByIdRequest) GetChainId() string
- func (x *LiquidityPositionByIdRequest) GetPositionId() *PositionId
- func (*LiquidityPositionByIdRequest) ProtoMessage()
- func (x *LiquidityPositionByIdRequest) ProtoReflect() protoreflect.Message
- func (x *LiquidityPositionByIdRequest) Reset()
- func (x *LiquidityPositionByIdRequest) String() string
- type LiquidityPositionByIdResponse
- func (*LiquidityPositionByIdResponse) Descriptor() ([]byte, []int)deprecated
- func (x *LiquidityPositionByIdResponse) GetData() *Position
- func (*LiquidityPositionByIdResponse) ProtoMessage()
- func (x *LiquidityPositionByIdResponse) ProtoReflect() protoreflect.Message
- func (x *LiquidityPositionByIdResponse) Reset()
- func (x *LiquidityPositionByIdResponse) String() string
- type LiquidityPositionsByIdRequest
- func (*LiquidityPositionsByIdRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LiquidityPositionsByIdRequest) GetChainId() string
- func (x *LiquidityPositionsByIdRequest) GetPositionId() []*PositionId
- func (*LiquidityPositionsByIdRequest) ProtoMessage()
- func (x *LiquidityPositionsByIdRequest) ProtoReflect() protoreflect.Message
- func (x *LiquidityPositionsByIdRequest) Reset()
- func (x *LiquidityPositionsByIdRequest) String() string
- type LiquidityPositionsByIdResponse
- func (*LiquidityPositionsByIdResponse) Descriptor() ([]byte, []int)deprecated
- func (x *LiquidityPositionsByIdResponse) GetData() *Position
- func (*LiquidityPositionsByIdResponse) ProtoMessage()
- func (x *LiquidityPositionsByIdResponse) ProtoReflect() protoreflect.Message
- func (x *LiquidityPositionsByIdResponse) Reset()
- func (x *LiquidityPositionsByIdResponse) String() string
- type LiquidityPositionsByPriceRequest
- func (*LiquidityPositionsByPriceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LiquidityPositionsByPriceRequest) GetChainId() string
- func (x *LiquidityPositionsByPriceRequest) GetLimit() uint64
- func (x *LiquidityPositionsByPriceRequest) GetTradingPair() *DirectedTradingPair
- func (*LiquidityPositionsByPriceRequest) ProtoMessage()
- func (x *LiquidityPositionsByPriceRequest) ProtoReflect() protoreflect.Message
- func (x *LiquidityPositionsByPriceRequest) Reset()
- func (x *LiquidityPositionsByPriceRequest) String() string
- type LiquidityPositionsByPriceResponse
- func (*LiquidityPositionsByPriceResponse) Descriptor() ([]byte, []int)deprecated
- func (x *LiquidityPositionsByPriceResponse) GetData() *Position
- func (*LiquidityPositionsByPriceResponse) ProtoMessage()
- func (x *LiquidityPositionsByPriceResponse) ProtoReflect() protoreflect.Message
- func (x *LiquidityPositionsByPriceResponse) Reset()
- func (x *LiquidityPositionsByPriceResponse) String() string
- type LiquidityPositionsRequest
- func (*LiquidityPositionsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LiquidityPositionsRequest) GetChainId() string
- func (x *LiquidityPositionsRequest) GetIncludeClosed() bool
- func (*LiquidityPositionsRequest) ProtoMessage()
- func (x *LiquidityPositionsRequest) ProtoReflect() protoreflect.Message
- func (x *LiquidityPositionsRequest) Reset()
- func (x *LiquidityPositionsRequest) String() string
- type LiquidityPositionsResponse
- func (*LiquidityPositionsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *LiquidityPositionsResponse) GetData() *Position
- func (*LiquidityPositionsResponse) ProtoMessage()
- func (x *LiquidityPositionsResponse) ProtoReflect() protoreflect.Message
- func (x *LiquidityPositionsResponse) Reset()
- func (x *LiquidityPositionsResponse) String() string
- type LpNft
- type Position
- func (*Position) Descriptor() ([]byte, []int)deprecated
- func (x *Position) GetCloseOnFill() bool
- func (x *Position) GetNonce() []byte
- func (x *Position) GetPhi() *TradingFunction
- func (x *Position) GetReserves() *Reserves
- func (x *Position) GetState() *PositionState
- func (*Position) ProtoMessage()
- func (x *Position) ProtoReflect() protoreflect.Message
- func (x *Position) Reset()
- func (x *Position) String() string
- type PositionClose
- type PositionId
- type PositionOpen
- type PositionRewardClaim
- func (*PositionRewardClaim) Descriptor() ([]byte, []int)deprecated
- func (x *PositionRewardClaim) GetPositionId() *PositionId
- func (x *PositionRewardClaim) GetRewardsCommitment() *v1alpha14.BalanceCommitment
- func (*PositionRewardClaim) ProtoMessage()
- func (x *PositionRewardClaim) ProtoReflect() protoreflect.Message
- func (x *PositionRewardClaim) Reset()
- func (x *PositionRewardClaim) String() string
- type PositionRewardClaimPlan
- func (*PositionRewardClaimPlan) Descriptor() ([]byte, []int)deprecated
- func (x *PositionRewardClaimPlan) GetReserves() *Reserves
- func (*PositionRewardClaimPlan) ProtoMessage()
- func (x *PositionRewardClaimPlan) ProtoReflect() protoreflect.Message
- func (x *PositionRewardClaimPlan) Reset()
- func (x *PositionRewardClaimPlan) String() string
- type PositionState
- type PositionState_PositionStateEnum
- func (PositionState_PositionStateEnum) Descriptor() protoreflect.EnumDescriptor
- func (x PositionState_PositionStateEnum) Enum() *PositionState_PositionStateEnum
- func (PositionState_PositionStateEnum) EnumDescriptor() ([]byte, []int)deprecated
- func (x PositionState_PositionStateEnum) Number() protoreflect.EnumNumber
- func (x PositionState_PositionStateEnum) String() string
- func (PositionState_PositionStateEnum) Type() protoreflect.EnumType
- type PositionWithdraw
- func (*PositionWithdraw) Descriptor() ([]byte, []int)deprecated
- func (x *PositionWithdraw) GetPositionId() *PositionId
- func (x *PositionWithdraw) GetReservesCommitment() *v1alpha14.BalanceCommitment
- func (*PositionWithdraw) ProtoMessage()
- func (x *PositionWithdraw) ProtoReflect() protoreflect.Message
- func (x *PositionWithdraw) Reset()
- func (x *PositionWithdraw) String() string
- type PositionWithdrawPlan
- func (*PositionWithdrawPlan) Descriptor() ([]byte, []int)deprecated
- func (x *PositionWithdrawPlan) GetPair() *TradingPair
- func (x *PositionWithdrawPlan) GetPositionId() *PositionId
- func (x *PositionWithdrawPlan) GetReserves() *Reserves
- func (*PositionWithdrawPlan) ProtoMessage()
- func (x *PositionWithdrawPlan) ProtoReflect() protoreflect.Message
- func (x *PositionWithdrawPlan) Reset()
- func (x *PositionWithdrawPlan) String() string
- type Reserves
- type SimulateTradeRequest
- func (*SimulateTradeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SimulateTradeRequest) GetInput() *v1alpha14.Value
- func (x *SimulateTradeRequest) GetOutput() *v1alpha14.AssetId
- func (x *SimulateTradeRequest) GetRouting() *SimulateTradeRequest_Routing
- func (*SimulateTradeRequest) ProtoMessage()
- func (x *SimulateTradeRequest) ProtoReflect() protoreflect.Message
- func (x *SimulateTradeRequest) Reset()
- func (x *SimulateTradeRequest) String() string
- type SimulateTradeRequest_Routing
- func (*SimulateTradeRequest_Routing) Descriptor() ([]byte, []int)deprecated
- func (x *SimulateTradeRequest_Routing) GetDefault() *SimulateTradeRequest_Routing_Default
- func (m *SimulateTradeRequest_Routing) GetSetting() isSimulateTradeRequest_Routing_Setting
- func (x *SimulateTradeRequest_Routing) GetSingleHop() *SimulateTradeRequest_Routing_SingleHop
- func (*SimulateTradeRequest_Routing) ProtoMessage()
- func (x *SimulateTradeRequest_Routing) ProtoReflect() protoreflect.Message
- func (x *SimulateTradeRequest_Routing) Reset()
- func (x *SimulateTradeRequest_Routing) String() string
- type SimulateTradeRequest_Routing_Default
- func (*SimulateTradeRequest_Routing_Default) Descriptor() ([]byte, []int)deprecated
- func (*SimulateTradeRequest_Routing_Default) ProtoMessage()
- func (x *SimulateTradeRequest_Routing_Default) ProtoReflect() protoreflect.Message
- func (x *SimulateTradeRequest_Routing_Default) Reset()
- func (x *SimulateTradeRequest_Routing_Default) String() string
- type SimulateTradeRequest_Routing_Default_
- type SimulateTradeRequest_Routing_SingleHop
- func (*SimulateTradeRequest_Routing_SingleHop) Descriptor() ([]byte, []int)deprecated
- func (*SimulateTradeRequest_Routing_SingleHop) ProtoMessage()
- func (x *SimulateTradeRequest_Routing_SingleHop) ProtoReflect() protoreflect.Message
- func (x *SimulateTradeRequest_Routing_SingleHop) Reset()
- func (x *SimulateTradeRequest_Routing_SingleHop) String() string
- type SimulateTradeRequest_Routing_SingleHop_
- type SimulateTradeResponse
- func (*SimulateTradeResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SimulateTradeResponse) GetOutput() *SwapExecution
- func (*SimulateTradeResponse) ProtoMessage()
- func (x *SimulateTradeResponse) ProtoReflect() protoreflect.Message
- func (x *SimulateTradeResponse) Reset()
- func (x *SimulateTradeResponse) String() string
- type SpreadRequest
- func (*SpreadRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SpreadRequest) GetChainId() string
- func (x *SpreadRequest) GetTradingPair() *TradingPair
- func (*SpreadRequest) ProtoMessage()
- func (x *SpreadRequest) ProtoReflect() protoreflect.Message
- func (x *SpreadRequest) Reset()
- func (x *SpreadRequest) String() string
- type SpreadResponse
- func (*SpreadResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SpreadResponse) GetApproxEffectivePrice_1To_2() float64
- func (x *SpreadResponse) GetApproxEffectivePrice_2To_1() float64
- func (x *SpreadResponse) GetBest_1To_2Position() *Position
- func (x *SpreadResponse) GetBest_2To_1Position() *Position
- func (*SpreadResponse) ProtoMessage()
- func (x *SpreadResponse) ProtoReflect() protoreflect.Message
- func (x *SpreadResponse) Reset()
- func (x *SpreadResponse) String() string
- type Swap
- type SwapBody
- func (*SwapBody) Descriptor() ([]byte, []int)deprecated
- func (x *SwapBody) GetDelta_1I() *v1alpha13.Amount
- func (x *SwapBody) GetDelta_2I() *v1alpha13.Amount
- func (x *SwapBody) GetFeeCommitment() *v1alpha14.BalanceCommitment
- func (x *SwapBody) GetPayload() *SwapPayload
- func (x *SwapBody) GetTradingPair() *TradingPair
- func (*SwapBody) ProtoMessage()
- func (x *SwapBody) ProtoReflect() protoreflect.Message
- func (x *SwapBody) Reset()
- func (x *SwapBody) String() string
- type SwapClaim
- func (*SwapClaim) Descriptor() ([]byte, []int)deprecated
- func (x *SwapClaim) GetBody() *SwapClaimBody
- func (x *SwapClaim) GetEpochDuration() uint64
- func (x *SwapClaim) GetProof() *ZKSwapClaimProof
- func (*SwapClaim) ProtoMessage()
- func (x *SwapClaim) ProtoReflect() protoreflect.Message
- func (x *SwapClaim) Reset()
- func (x *SwapClaim) String() string
- type SwapClaimBody
- func (*SwapClaimBody) Descriptor() ([]byte, []int)deprecated
- func (x *SwapClaimBody) GetFee() *v1alpha11.Fee
- func (x *SwapClaimBody) GetNullifier() *v1alpha1.Nullifier
- func (x *SwapClaimBody) GetOutputData() *BatchSwapOutputData
- func (x *SwapClaimBody) GetOutput_1Commitment() *v1alpha12.StateCommitment
- func (x *SwapClaimBody) GetOutput_2Commitment() *v1alpha12.StateCommitment
- func (*SwapClaimBody) ProtoMessage()
- func (x *SwapClaimBody) ProtoReflect() protoreflect.Message
- func (x *SwapClaimBody) Reset()
- func (x *SwapClaimBody) String() string
- type SwapClaimPlan
- func (*SwapClaimPlan) Descriptor() ([]byte, []int)deprecated
- func (x *SwapClaimPlan) GetEpochDuration() uint64
- func (x *SwapClaimPlan) GetOutputData() *BatchSwapOutputData
- func (x *SwapClaimPlan) GetPosition() uint64
- func (x *SwapClaimPlan) GetProofBlindingR() []byte
- func (x *SwapClaimPlan) GetProofBlindingS() []byte
- func (x *SwapClaimPlan) GetSwapPlaintext() *SwapPlaintext
- func (*SwapClaimPlan) ProtoMessage()
- func (x *SwapClaimPlan) ProtoReflect() protoreflect.Message
- func (x *SwapClaimPlan) Reset()
- func (x *SwapClaimPlan) String() string
- type SwapClaimView
- func (*SwapClaimView) Descriptor() ([]byte, []int)deprecated
- func (x *SwapClaimView) GetOpaque() *SwapClaimView_Opaque
- func (m *SwapClaimView) GetSwapClaimView() isSwapClaimView_SwapClaimView
- func (x *SwapClaimView) GetVisible() *SwapClaimView_Visible
- func (*SwapClaimView) ProtoMessage()
- func (x *SwapClaimView) ProtoReflect() protoreflect.Message
- func (x *SwapClaimView) Reset()
- func (x *SwapClaimView) String() string
- type SwapClaimView_Opaque
- func (*SwapClaimView_Opaque) Descriptor() ([]byte, []int)deprecated
- func (x *SwapClaimView_Opaque) GetSwapClaim() *SwapClaim
- func (*SwapClaimView_Opaque) ProtoMessage()
- func (x *SwapClaimView_Opaque) ProtoReflect() protoreflect.Message
- func (x *SwapClaimView_Opaque) Reset()
- func (x *SwapClaimView_Opaque) String() string
- type SwapClaimView_Opaque_
- type SwapClaimView_Visible
- func (*SwapClaimView_Visible) Descriptor() ([]byte, []int)deprecated
- func (x *SwapClaimView_Visible) GetOutput_1() *v1alpha16.NoteView
- func (x *SwapClaimView_Visible) GetOutput_2() *v1alpha16.NoteView
- func (x *SwapClaimView_Visible) GetSwapClaim() *SwapClaim
- func (*SwapClaimView_Visible) ProtoMessage()
- func (x *SwapClaimView_Visible) ProtoReflect() protoreflect.Message
- func (x *SwapClaimView_Visible) Reset()
- func (x *SwapClaimView_Visible) String() string
- type SwapClaimView_Visible_
- type SwapExecution
- func (*SwapExecution) Descriptor() ([]byte, []int)deprecated
- func (x *SwapExecution) GetInput() *v1alpha14.Value
- func (x *SwapExecution) GetOutput() *v1alpha14.Value
- func (x *SwapExecution) GetTraces() []*SwapExecution_Trace
- func (*SwapExecution) ProtoMessage()
- func (x *SwapExecution) ProtoReflect() protoreflect.Message
- func (x *SwapExecution) Reset()
- func (x *SwapExecution) String() string
- type SwapExecutionRequest
- func (*SwapExecutionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SwapExecutionRequest) GetChainId() string
- func (x *SwapExecutionRequest) GetHeight() uint64
- func (x *SwapExecutionRequest) GetTradingPair() *DirectedTradingPair
- func (*SwapExecutionRequest) ProtoMessage()
- func (x *SwapExecutionRequest) ProtoReflect() protoreflect.Message
- func (x *SwapExecutionRequest) Reset()
- func (x *SwapExecutionRequest) String() string
- type SwapExecutionResponse
- func (*SwapExecutionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SwapExecutionResponse) GetSwapExecution() *SwapExecution
- func (*SwapExecutionResponse) ProtoMessage()
- func (x *SwapExecutionResponse) ProtoReflect() protoreflect.Message
- func (x *SwapExecutionResponse) Reset()
- func (x *SwapExecutionResponse) String() string
- type SwapExecution_Trace
- func (*SwapExecution_Trace) Descriptor() ([]byte, []int)deprecated
- func (x *SwapExecution_Trace) GetValue() []*v1alpha14.Value
- func (*SwapExecution_Trace) ProtoMessage()
- func (x *SwapExecution_Trace) ProtoReflect() protoreflect.Message
- func (x *SwapExecution_Trace) Reset()
- func (x *SwapExecution_Trace) String() string
- type SwapExecutionsRequest
- func (*SwapExecutionsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SwapExecutionsRequest) GetChainId() string
- func (x *SwapExecutionsRequest) GetEndHeight() uint64
- func (x *SwapExecutionsRequest) GetStartHeight() uint64
- func (x *SwapExecutionsRequest) GetTradingPair() *DirectedTradingPair
- func (*SwapExecutionsRequest) ProtoMessage()
- func (x *SwapExecutionsRequest) ProtoReflect() protoreflect.Message
- func (x *SwapExecutionsRequest) Reset()
- func (x *SwapExecutionsRequest) String() string
- type SwapExecutionsResponse
- func (*SwapExecutionsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SwapExecutionsResponse) GetHeight() uint64
- func (x *SwapExecutionsResponse) GetSwapExecution() *SwapExecution
- func (x *SwapExecutionsResponse) GetTradingPair() *DirectedTradingPair
- func (*SwapExecutionsResponse) ProtoMessage()
- func (x *SwapExecutionsResponse) ProtoReflect() protoreflect.Message
- func (x *SwapExecutionsResponse) Reset()
- func (x *SwapExecutionsResponse) String() string
- type SwapPayload
- func (*SwapPayload) Descriptor() ([]byte, []int)deprecated
- func (x *SwapPayload) GetCommitment() *v1alpha12.StateCommitment
- func (x *SwapPayload) GetEncryptedSwap() []byte
- func (*SwapPayload) ProtoMessage()
- func (x *SwapPayload) ProtoReflect() protoreflect.Message
- func (x *SwapPayload) Reset()
- func (x *SwapPayload) String() string
- type SwapPlaintext
- func (*SwapPlaintext) Descriptor() ([]byte, []int)deprecated
- func (x *SwapPlaintext) GetClaimAddress() *v1alpha15.Address
- func (x *SwapPlaintext) GetClaimFee() *v1alpha11.Fee
- func (x *SwapPlaintext) GetDelta_1I() *v1alpha13.Amount
- func (x *SwapPlaintext) GetDelta_2I() *v1alpha13.Amount
- func (x *SwapPlaintext) GetRseed() []byte
- func (x *SwapPlaintext) GetTradingPair() *TradingPair
- func (*SwapPlaintext) ProtoMessage()
- func (x *SwapPlaintext) ProtoReflect() protoreflect.Message
- func (x *SwapPlaintext) Reset()
- func (x *SwapPlaintext) String() string
- type SwapPlan
- func (*SwapPlan) Descriptor() ([]byte, []int)deprecated
- func (x *SwapPlan) GetFeeBlinding() []byte
- func (x *SwapPlan) GetProofBlindingR() []byte
- func (x *SwapPlan) GetProofBlindingS() []byte
- func (x *SwapPlan) GetSwapPlaintext() *SwapPlaintext
- func (*SwapPlan) ProtoMessage()
- func (x *SwapPlan) ProtoReflect() protoreflect.Message
- func (x *SwapPlan) Reset()
- func (x *SwapPlan) String() string
- type SwapView
- func (*SwapView) Descriptor() ([]byte, []int)deprecated
- func (x *SwapView) GetOpaque() *SwapView_Opaque
- func (m *SwapView) GetSwapView() isSwapView_SwapView
- func (x *SwapView) GetVisible() *SwapView_Visible
- func (*SwapView) ProtoMessage()
- func (x *SwapView) ProtoReflect() protoreflect.Message
- func (x *SwapView) Reset()
- func (x *SwapView) String() string
- type SwapView_Opaque
- type SwapView_Opaque_
- type SwapView_Visible
- func (*SwapView_Visible) Descriptor() ([]byte, []int)deprecated
- func (x *SwapView_Visible) GetSwap() *Swap
- func (x *SwapView_Visible) GetSwapPlaintext() *SwapPlaintext
- func (*SwapView_Visible) ProtoMessage()
- func (x *SwapView_Visible) ProtoReflect() protoreflect.Message
- func (x *SwapView_Visible) Reset()
- func (x *SwapView_Visible) String() string
- type SwapView_Visible_
- type TradingFunction
- func (*TradingFunction) Descriptor() ([]byte, []int)deprecated
- func (x *TradingFunction) GetComponent() *BareTradingFunction
- func (x *TradingFunction) GetPair() *TradingPair
- func (*TradingFunction) ProtoMessage()
- func (x *TradingFunction) ProtoReflect() protoreflect.Message
- func (x *TradingFunction) Reset()
- func (x *TradingFunction) String() string
- type TradingPair
- func (*TradingPair) Descriptor() ([]byte, []int)deprecated
- func (x *TradingPair) GetAsset_1() *v1alpha14.AssetId
- func (x *TradingPair) GetAsset_2() *v1alpha14.AssetId
- func (*TradingPair) ProtoMessage()
- func (x *TradingPair) ProtoReflect() protoreflect.Message
- func (x *TradingPair) Reset()
- func (x *TradingPair) String() string
- type ZKSwapClaimProof
- type ZKSwapProof
Constants ¶
This section is empty.
Variables ¶
var ( PositionState_PositionStateEnum_name = map[int32]string{ 0: "POSITION_STATE_ENUM_UNSPECIFIED", 1: "POSITION_STATE_ENUM_OPENED", 2: "POSITION_STATE_ENUM_CLOSED", 3: "POSITION_STATE_ENUM_WITHDRAWN", 4: "POSITION_STATE_ENUM_CLAIMED", } PositionState_PositionStateEnum_value = map[string]int32{ "POSITION_STATE_ENUM_UNSPECIFIED": 0, "POSITION_STATE_ENUM_OPENED": 1, "POSITION_STATE_ENUM_CLOSED": 2, "POSITION_STATE_ENUM_WITHDRAWN": 3, "POSITION_STATE_ENUM_CLAIMED": 4, } )
Enum value maps for PositionState_PositionStateEnum.
var File_penumbra_core_component_dex_v1alpha1_dex_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type ArbExecutionRequest ¶
type ArbExecutionRequest struct { // The expected chain id (empty string if no expectation). ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` Height uint64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` // contains filtered or unexported fields }
func (*ArbExecutionRequest) Descriptor
deprecated
func (*ArbExecutionRequest) Descriptor() ([]byte, []int)
Deprecated: Use ArbExecutionRequest.ProtoReflect.Descriptor instead.
func (*ArbExecutionRequest) GetChainId ¶
func (x *ArbExecutionRequest) GetChainId() string
func (*ArbExecutionRequest) GetHeight ¶
func (x *ArbExecutionRequest) GetHeight() uint64
func (*ArbExecutionRequest) ProtoMessage ¶
func (*ArbExecutionRequest) ProtoMessage()
func (*ArbExecutionRequest) ProtoReflect ¶
func (x *ArbExecutionRequest) ProtoReflect() protoreflect.Message
func (*ArbExecutionRequest) Reset ¶
func (x *ArbExecutionRequest) Reset()
func (*ArbExecutionRequest) String ¶
func (x *ArbExecutionRequest) String() string
type ArbExecutionResponse ¶
type ArbExecutionResponse struct { SwapExecution *SwapExecution `protobuf:"bytes,1,opt,name=swap_execution,json=swapExecution,proto3" json:"swap_execution,omitempty"` Height uint64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` // contains filtered or unexported fields }
func (*ArbExecutionResponse) Descriptor
deprecated
func (*ArbExecutionResponse) Descriptor() ([]byte, []int)
Deprecated: Use ArbExecutionResponse.ProtoReflect.Descriptor instead.
func (*ArbExecutionResponse) GetHeight ¶
func (x *ArbExecutionResponse) GetHeight() uint64
func (*ArbExecutionResponse) GetSwapExecution ¶
func (x *ArbExecutionResponse) GetSwapExecution() *SwapExecution
func (*ArbExecutionResponse) ProtoMessage ¶
func (*ArbExecutionResponse) ProtoMessage()
func (*ArbExecutionResponse) ProtoReflect ¶
func (x *ArbExecutionResponse) ProtoReflect() protoreflect.Message
func (*ArbExecutionResponse) Reset ¶
func (x *ArbExecutionResponse) Reset()
func (*ArbExecutionResponse) String ¶
func (x *ArbExecutionResponse) String() string
type ArbExecutionsRequest ¶
type ArbExecutionsRequest struct { // The expected chain id (empty string if no expectation). ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` // If present, only return arb executions occurring after the given height. StartHeight uint64 `protobuf:"varint,2,opt,name=start_height,json=startHeight,proto3" json:"start_height,omitempty"` // If present, only return arb executions occurring before the given height. EndHeight uint64 `protobuf:"varint,3,opt,name=end_height,json=endHeight,proto3" json:"end_height,omitempty"` // contains filtered or unexported fields }
func (*ArbExecutionsRequest) Descriptor
deprecated
func (*ArbExecutionsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ArbExecutionsRequest.ProtoReflect.Descriptor instead.
func (*ArbExecutionsRequest) GetChainId ¶
func (x *ArbExecutionsRequest) GetChainId() string
func (*ArbExecutionsRequest) GetEndHeight ¶
func (x *ArbExecutionsRequest) GetEndHeight() uint64
func (*ArbExecutionsRequest) GetStartHeight ¶
func (x *ArbExecutionsRequest) GetStartHeight() uint64
func (*ArbExecutionsRequest) ProtoMessage ¶
func (*ArbExecutionsRequest) ProtoMessage()
func (*ArbExecutionsRequest) ProtoReflect ¶
func (x *ArbExecutionsRequest) ProtoReflect() protoreflect.Message
func (*ArbExecutionsRequest) Reset ¶
func (x *ArbExecutionsRequest) Reset()
func (*ArbExecutionsRequest) String ¶
func (x *ArbExecutionsRequest) String() string
type ArbExecutionsResponse ¶
type ArbExecutionsResponse struct { SwapExecution *SwapExecution `protobuf:"bytes,1,opt,name=swap_execution,json=swapExecution,proto3" json:"swap_execution,omitempty"` Height uint64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` // contains filtered or unexported fields }
func (*ArbExecutionsResponse) Descriptor
deprecated
func (*ArbExecutionsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ArbExecutionsResponse.ProtoReflect.Descriptor instead.
func (*ArbExecutionsResponse) GetHeight ¶
func (x *ArbExecutionsResponse) GetHeight() uint64
func (*ArbExecutionsResponse) GetSwapExecution ¶
func (x *ArbExecutionsResponse) GetSwapExecution() *SwapExecution
func (*ArbExecutionsResponse) ProtoMessage ¶
func (*ArbExecutionsResponse) ProtoMessage()
func (*ArbExecutionsResponse) ProtoReflect ¶
func (x *ArbExecutionsResponse) ProtoReflect() protoreflect.Message
func (*ArbExecutionsResponse) Reset ¶
func (x *ArbExecutionsResponse) Reset()
func (*ArbExecutionsResponse) String ¶
func (x *ArbExecutionsResponse) String() string
type BareTradingFunction ¶
type BareTradingFunction struct { Fee uint32 `protobuf:"varint,1,opt,name=fee,proto3" json:"fee,omitempty"` // This is not actually an amount, it's an integer the same width as an amount P *v1alpha13.Amount `protobuf:"bytes,2,opt,name=p,proto3" json:"p,omitempty"` // This is not actually an amount, it's an integer the same width as an amount Q *v1alpha13.Amount `protobuf:"bytes,3,opt,name=q,proto3" json:"q,omitempty"` // contains filtered or unexported fields }
The minimum amount of data describing a trading function.
This implicitly treats the trading function as being between assets 1 and 2, without specifying what those assets are, to avoid duplicating data (each asset ID alone is twice the size of the trading function).
func (*BareTradingFunction) Descriptor
deprecated
func (*BareTradingFunction) Descriptor() ([]byte, []int)
Deprecated: Use BareTradingFunction.ProtoReflect.Descriptor instead.
func (*BareTradingFunction) GetFee ¶
func (x *BareTradingFunction) GetFee() uint32
func (*BareTradingFunction) GetP ¶
func (x *BareTradingFunction) GetP() *v1alpha13.Amount
func (*BareTradingFunction) GetQ ¶
func (x *BareTradingFunction) GetQ() *v1alpha13.Amount
func (*BareTradingFunction) ProtoMessage ¶
func (*BareTradingFunction) ProtoMessage()
func (*BareTradingFunction) ProtoReflect ¶
func (x *BareTradingFunction) ProtoReflect() protoreflect.Message
func (*BareTradingFunction) Reset ¶
func (x *BareTradingFunction) Reset()
func (*BareTradingFunction) String ¶
func (x *BareTradingFunction) String() string
type BatchSwapOutputData ¶
type BatchSwapOutputData struct { // The total amount of asset 1 that was input to the batch swap. Delta_1 *v1alpha13.Amount `protobuf:"bytes,1,opt,name=delta_1,json=delta1,proto3" json:"delta_1,omitempty"` // The total amount of asset 2 that was input to the batch swap. Delta_2 *v1alpha13.Amount `protobuf:"bytes,2,opt,name=delta_2,json=delta2,proto3" json:"delta_2,omitempty"` // The total amount of asset 1 that was output from the batch swap for 2=>1 trades. Lambda_1 *v1alpha13.Amount `protobuf:"bytes,3,opt,name=lambda_1,json=lambda1,proto3" json:"lambda_1,omitempty"` // The total amount of asset 2 that was output from the batch swap for 1=>2 trades. Lambda_2 *v1alpha13.Amount `protobuf:"bytes,4,opt,name=lambda_2,json=lambda2,proto3" json:"lambda_2,omitempty"` // The total amount of asset 1 that was returned unfilled from the batch swap for 1=>2 trades. Unfilled_1 *v1alpha13.Amount `protobuf:"bytes,5,opt,name=unfilled_1,json=unfilled1,proto3" json:"unfilled_1,omitempty"` // The total amount of asset 2 that was returned unfilled from the batch swap for 2=>1 trades. Unfilled_2 *v1alpha13.Amount `protobuf:"bytes,6,opt,name=unfilled_2,json=unfilled2,proto3" json:"unfilled_2,omitempty"` // The height for which the batch swap data is valid. Height uint64 `protobuf:"varint,7,opt,name=height,proto3" json:"height,omitempty"` // The trading pair associated with the batch swap. TradingPair *TradingPair `protobuf:"bytes,8,opt,name=trading_pair,json=tradingPair,proto3" json:"trading_pair,omitempty"` // The starting block height of the epoch for which the batch swap data is valid. EpochStartingHeight uint64 `protobuf:"varint,9,opt,name=epoch_starting_height,json=epochStartingHeight,proto3" json:"epoch_starting_height,omitempty"` // contains filtered or unexported fields }
Records the result of a batch swap on-chain.
Used as a public input to a swap claim proof, as it implies the effective clearing price for the batch.
func (*BatchSwapOutputData) Descriptor
deprecated
func (*BatchSwapOutputData) Descriptor() ([]byte, []int)
Deprecated: Use BatchSwapOutputData.ProtoReflect.Descriptor instead.
func (*BatchSwapOutputData) GetDelta_1 ¶
func (x *BatchSwapOutputData) GetDelta_1() *v1alpha13.Amount
func (*BatchSwapOutputData) GetDelta_2 ¶
func (x *BatchSwapOutputData) GetDelta_2() *v1alpha13.Amount
func (*BatchSwapOutputData) GetEpochStartingHeight ¶
func (x *BatchSwapOutputData) GetEpochStartingHeight() uint64
func (*BatchSwapOutputData) GetHeight ¶
func (x *BatchSwapOutputData) GetHeight() uint64
func (*BatchSwapOutputData) GetLambda_1 ¶
func (x *BatchSwapOutputData) GetLambda_1() *v1alpha13.Amount
func (*BatchSwapOutputData) GetLambda_2 ¶
func (x *BatchSwapOutputData) GetLambda_2() *v1alpha13.Amount
func (*BatchSwapOutputData) GetTradingPair ¶
func (x *BatchSwapOutputData) GetTradingPair() *TradingPair
func (*BatchSwapOutputData) GetUnfilled_1 ¶
func (x *BatchSwapOutputData) GetUnfilled_1() *v1alpha13.Amount
func (*BatchSwapOutputData) GetUnfilled_2 ¶
func (x *BatchSwapOutputData) GetUnfilled_2() *v1alpha13.Amount
func (*BatchSwapOutputData) ProtoMessage ¶
func (*BatchSwapOutputData) ProtoMessage()
func (*BatchSwapOutputData) ProtoReflect ¶
func (x *BatchSwapOutputData) ProtoReflect() protoreflect.Message
func (*BatchSwapOutputData) Reset ¶
func (x *BatchSwapOutputData) Reset()
func (*BatchSwapOutputData) String ¶
func (x *BatchSwapOutputData) String() string
type BatchSwapOutputDataRequest ¶
type BatchSwapOutputDataRequest struct { // The expected chain id (empty string if no expectation). ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` Height uint64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` TradingPair *TradingPair `protobuf:"bytes,3,opt,name=trading_pair,json=tradingPair,proto3" json:"trading_pair,omitempty"` // contains filtered or unexported fields }
Requests batch swap data associated with a given height and trading pair from the view service.
func (*BatchSwapOutputDataRequest) Descriptor
deprecated
func (*BatchSwapOutputDataRequest) Descriptor() ([]byte, []int)
Deprecated: Use BatchSwapOutputDataRequest.ProtoReflect.Descriptor instead.
func (*BatchSwapOutputDataRequest) GetChainId ¶
func (x *BatchSwapOutputDataRequest) GetChainId() string
func (*BatchSwapOutputDataRequest) GetHeight ¶
func (x *BatchSwapOutputDataRequest) GetHeight() uint64
func (*BatchSwapOutputDataRequest) GetTradingPair ¶
func (x *BatchSwapOutputDataRequest) GetTradingPair() *TradingPair
func (*BatchSwapOutputDataRequest) ProtoMessage ¶
func (*BatchSwapOutputDataRequest) ProtoMessage()
func (*BatchSwapOutputDataRequest) ProtoReflect ¶
func (x *BatchSwapOutputDataRequest) ProtoReflect() protoreflect.Message
func (*BatchSwapOutputDataRequest) Reset ¶
func (x *BatchSwapOutputDataRequest) Reset()
func (*BatchSwapOutputDataRequest) String ¶
func (x *BatchSwapOutputDataRequest) String() string
type BatchSwapOutputDataResponse ¶
type BatchSwapOutputDataResponse struct { Data *BatchSwapOutputData `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*BatchSwapOutputDataResponse) Descriptor
deprecated
func (*BatchSwapOutputDataResponse) Descriptor() ([]byte, []int)
Deprecated: Use BatchSwapOutputDataResponse.ProtoReflect.Descriptor instead.
func (*BatchSwapOutputDataResponse) GetData ¶
func (x *BatchSwapOutputDataResponse) GetData() *BatchSwapOutputData
func (*BatchSwapOutputDataResponse) ProtoMessage ¶
func (*BatchSwapOutputDataResponse) ProtoMessage()
func (*BatchSwapOutputDataResponse) ProtoReflect ¶
func (x *BatchSwapOutputDataResponse) ProtoReflect() protoreflect.Message
func (*BatchSwapOutputDataResponse) Reset ¶
func (x *BatchSwapOutputDataResponse) Reset()
func (*BatchSwapOutputDataResponse) String ¶
func (x *BatchSwapOutputDataResponse) String() string
type DirectedTradingPair ¶
type DirectedTradingPair struct { // The start asset of the pair. Start *v1alpha14.AssetId `protobuf:"bytes,1,opt,name=start,proto3" json:"start,omitempty"` // The end asset of the pair. End *v1alpha14.AssetId `protobuf:"bytes,2,opt,name=end,proto3" json:"end,omitempty"` // contains filtered or unexported fields }
Encodes a trading pair starting from asset `start` and ending on asset `end`.
func (*DirectedTradingPair) Descriptor
deprecated
func (*DirectedTradingPair) Descriptor() ([]byte, []int)
Deprecated: Use DirectedTradingPair.ProtoReflect.Descriptor instead.
func (*DirectedTradingPair) GetEnd ¶
func (x *DirectedTradingPair) GetEnd() *v1alpha14.AssetId
func (*DirectedTradingPair) GetStart ¶
func (x *DirectedTradingPair) GetStart() *v1alpha14.AssetId
func (*DirectedTradingPair) ProtoMessage ¶
func (*DirectedTradingPair) ProtoMessage()
func (*DirectedTradingPair) ProtoReflect ¶
func (x *DirectedTradingPair) ProtoReflect() protoreflect.Message
func (*DirectedTradingPair) Reset ¶
func (x *DirectedTradingPair) Reset()
func (*DirectedTradingPair) String ¶
func (x *DirectedTradingPair) String() string
type LiquidityPositionByIdRequest ¶
type LiquidityPositionByIdRequest struct { // The expected chain id (empty string if no expectation). ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` PositionId *PositionId `protobuf:"bytes,2,opt,name=position_id,json=positionId,proto3" json:"position_id,omitempty"` // contains filtered or unexported fields }
func (*LiquidityPositionByIdRequest) Descriptor
deprecated
func (*LiquidityPositionByIdRequest) Descriptor() ([]byte, []int)
Deprecated: Use LiquidityPositionByIdRequest.ProtoReflect.Descriptor instead.
func (*LiquidityPositionByIdRequest) GetChainId ¶
func (x *LiquidityPositionByIdRequest) GetChainId() string
func (*LiquidityPositionByIdRequest) GetPositionId ¶
func (x *LiquidityPositionByIdRequest) GetPositionId() *PositionId
func (*LiquidityPositionByIdRequest) ProtoMessage ¶
func (*LiquidityPositionByIdRequest) ProtoMessage()
func (*LiquidityPositionByIdRequest) ProtoReflect ¶
func (x *LiquidityPositionByIdRequest) ProtoReflect() protoreflect.Message
func (*LiquidityPositionByIdRequest) Reset ¶
func (x *LiquidityPositionByIdRequest) Reset()
func (*LiquidityPositionByIdRequest) String ¶
func (x *LiquidityPositionByIdRequest) String() string
type LiquidityPositionByIdResponse ¶
type LiquidityPositionByIdResponse struct { Data *Position `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*LiquidityPositionByIdResponse) Descriptor
deprecated
func (*LiquidityPositionByIdResponse) Descriptor() ([]byte, []int)
Deprecated: Use LiquidityPositionByIdResponse.ProtoReflect.Descriptor instead.
func (*LiquidityPositionByIdResponse) GetData ¶
func (x *LiquidityPositionByIdResponse) GetData() *Position
func (*LiquidityPositionByIdResponse) ProtoMessage ¶
func (*LiquidityPositionByIdResponse) ProtoMessage()
func (*LiquidityPositionByIdResponse) ProtoReflect ¶
func (x *LiquidityPositionByIdResponse) ProtoReflect() protoreflect.Message
func (*LiquidityPositionByIdResponse) Reset ¶
func (x *LiquidityPositionByIdResponse) Reset()
func (*LiquidityPositionByIdResponse) String ¶
func (x *LiquidityPositionByIdResponse) String() string
type LiquidityPositionsByIdRequest ¶
type LiquidityPositionsByIdRequest struct { // The expected chain id (empty string if no expectation). ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` PositionId []*PositionId `protobuf:"bytes,2,rep,name=position_id,json=positionId,proto3" json:"position_id,omitempty"` // contains filtered or unexported fields }
func (*LiquidityPositionsByIdRequest) Descriptor
deprecated
func (*LiquidityPositionsByIdRequest) Descriptor() ([]byte, []int)
Deprecated: Use LiquidityPositionsByIdRequest.ProtoReflect.Descriptor instead.
func (*LiquidityPositionsByIdRequest) GetChainId ¶
func (x *LiquidityPositionsByIdRequest) GetChainId() string
func (*LiquidityPositionsByIdRequest) GetPositionId ¶
func (x *LiquidityPositionsByIdRequest) GetPositionId() []*PositionId
func (*LiquidityPositionsByIdRequest) ProtoMessage ¶
func (*LiquidityPositionsByIdRequest) ProtoMessage()
func (*LiquidityPositionsByIdRequest) ProtoReflect ¶
func (x *LiquidityPositionsByIdRequest) ProtoReflect() protoreflect.Message
func (*LiquidityPositionsByIdRequest) Reset ¶
func (x *LiquidityPositionsByIdRequest) Reset()
func (*LiquidityPositionsByIdRequest) String ¶
func (x *LiquidityPositionsByIdRequest) String() string
type LiquidityPositionsByIdResponse ¶
type LiquidityPositionsByIdResponse struct { Data *Position `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*LiquidityPositionsByIdResponse) Descriptor
deprecated
func (*LiquidityPositionsByIdResponse) Descriptor() ([]byte, []int)
Deprecated: Use LiquidityPositionsByIdResponse.ProtoReflect.Descriptor instead.
func (*LiquidityPositionsByIdResponse) GetData ¶
func (x *LiquidityPositionsByIdResponse) GetData() *Position
func (*LiquidityPositionsByIdResponse) ProtoMessage ¶
func (*LiquidityPositionsByIdResponse) ProtoMessage()
func (*LiquidityPositionsByIdResponse) ProtoReflect ¶
func (x *LiquidityPositionsByIdResponse) ProtoReflect() protoreflect.Message
func (*LiquidityPositionsByIdResponse) Reset ¶
func (x *LiquidityPositionsByIdResponse) Reset()
func (*LiquidityPositionsByIdResponse) String ¶
func (x *LiquidityPositionsByIdResponse) String() string
type LiquidityPositionsByPriceRequest ¶
type LiquidityPositionsByPriceRequest struct { // The expected chain id (empty string if no expectation). ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` // The directed trading pair to request positions for TradingPair *DirectedTradingPair `protobuf:"bytes,2,opt,name=trading_pair,json=tradingPair,proto3" json:"trading_pair,omitempty"` // The maximum number of positions to return. Limit uint64 `protobuf:"varint,5,opt,name=limit,proto3" json:"limit,omitempty"` // contains filtered or unexported fields }
func (*LiquidityPositionsByPriceRequest) Descriptor
deprecated
func (*LiquidityPositionsByPriceRequest) Descriptor() ([]byte, []int)
Deprecated: Use LiquidityPositionsByPriceRequest.ProtoReflect.Descriptor instead.
func (*LiquidityPositionsByPriceRequest) GetChainId ¶
func (x *LiquidityPositionsByPriceRequest) GetChainId() string
func (*LiquidityPositionsByPriceRequest) GetLimit ¶
func (x *LiquidityPositionsByPriceRequest) GetLimit() uint64
func (*LiquidityPositionsByPriceRequest) GetTradingPair ¶
func (x *LiquidityPositionsByPriceRequest) GetTradingPair() *DirectedTradingPair
func (*LiquidityPositionsByPriceRequest) ProtoMessage ¶
func (*LiquidityPositionsByPriceRequest) ProtoMessage()
func (*LiquidityPositionsByPriceRequest) ProtoReflect ¶
func (x *LiquidityPositionsByPriceRequest) ProtoReflect() protoreflect.Message
func (*LiquidityPositionsByPriceRequest) Reset ¶
func (x *LiquidityPositionsByPriceRequest) Reset()
func (*LiquidityPositionsByPriceRequest) String ¶
func (x *LiquidityPositionsByPriceRequest) String() string
type LiquidityPositionsByPriceResponse ¶
type LiquidityPositionsByPriceResponse struct { Data *Position `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*LiquidityPositionsByPriceResponse) Descriptor
deprecated
func (*LiquidityPositionsByPriceResponse) Descriptor() ([]byte, []int)
Deprecated: Use LiquidityPositionsByPriceResponse.ProtoReflect.Descriptor instead.
func (*LiquidityPositionsByPriceResponse) GetData ¶
func (x *LiquidityPositionsByPriceResponse) GetData() *Position
func (*LiquidityPositionsByPriceResponse) ProtoMessage ¶
func (*LiquidityPositionsByPriceResponse) ProtoMessage()
func (*LiquidityPositionsByPriceResponse) ProtoReflect ¶
func (x *LiquidityPositionsByPriceResponse) ProtoReflect() protoreflect.Message
func (*LiquidityPositionsByPriceResponse) Reset ¶
func (x *LiquidityPositionsByPriceResponse) Reset()
func (*LiquidityPositionsByPriceResponse) String ¶
func (x *LiquidityPositionsByPriceResponse) String() string
type LiquidityPositionsRequest ¶
type LiquidityPositionsRequest struct { // The expected chain id (empty string if no expectation). ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` // If true, include closed and withdrawn positions. IncludeClosed bool `protobuf:"varint,4,opt,name=include_closed,json=includeClosed,proto3" json:"include_closed,omitempty"` // contains filtered or unexported fields }
func (*LiquidityPositionsRequest) Descriptor
deprecated
func (*LiquidityPositionsRequest) Descriptor() ([]byte, []int)
Deprecated: Use LiquidityPositionsRequest.ProtoReflect.Descriptor instead.
func (*LiquidityPositionsRequest) GetChainId ¶
func (x *LiquidityPositionsRequest) GetChainId() string
func (*LiquidityPositionsRequest) GetIncludeClosed ¶
func (x *LiquidityPositionsRequest) GetIncludeClosed() bool
func (*LiquidityPositionsRequest) ProtoMessage ¶
func (*LiquidityPositionsRequest) ProtoMessage()
func (*LiquidityPositionsRequest) ProtoReflect ¶
func (x *LiquidityPositionsRequest) ProtoReflect() protoreflect.Message
func (*LiquidityPositionsRequest) Reset ¶
func (x *LiquidityPositionsRequest) Reset()
func (*LiquidityPositionsRequest) String ¶
func (x *LiquidityPositionsRequest) String() string
type LiquidityPositionsResponse ¶
type LiquidityPositionsResponse struct { Data *Position `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*LiquidityPositionsResponse) Descriptor
deprecated
func (*LiquidityPositionsResponse) Descriptor() ([]byte, []int)
Deprecated: Use LiquidityPositionsResponse.ProtoReflect.Descriptor instead.
func (*LiquidityPositionsResponse) GetData ¶
func (x *LiquidityPositionsResponse) GetData() *Position
func (*LiquidityPositionsResponse) ProtoMessage ¶
func (*LiquidityPositionsResponse) ProtoMessage()
func (*LiquidityPositionsResponse) ProtoReflect ¶
func (x *LiquidityPositionsResponse) ProtoReflect() protoreflect.Message
func (*LiquidityPositionsResponse) Reset ¶
func (x *LiquidityPositionsResponse) Reset()
func (*LiquidityPositionsResponse) String ¶
func (x *LiquidityPositionsResponse) String() string
type LpNft ¶
type LpNft struct { PositionId *PositionId `protobuf:"bytes,1,opt,name=position_id,json=positionId,proto3" json:"position_id,omitempty"` State *PositionState `protobuf:"bytes,2,opt,name=state,proto3" json:"state,omitempty"` // contains filtered or unexported fields }
An LPNFT tracking both ownership and state of a position.
Tracking the state as part of the LPNFT means that all LP-related actions can be authorized by spending funds: a state transition (e.g., closing a position) is modeled as spending an "open position LPNFT" and minting a "closed position LPNFT" for the same (globally unique) position ID.
This means that the LP mechanics can be agnostic to the mechanism used to record custody and spend authorization. For instance, they can be recorded in the shielded pool, where custody is based on off-chain keys, or they could be recorded in a programmatic on-chain account (in the future, e.g., to support interchain accounts). This also means that LP-related actions don't require any cryptographic implementation (proofs, signatures, etc), other than hooking into the value commitment mechanism used for transaction balances.
func (*LpNft) Descriptor
deprecated
func (*LpNft) GetPositionId ¶
func (x *LpNft) GetPositionId() *PositionId
func (*LpNft) GetState ¶
func (x *LpNft) GetState() *PositionState
func (*LpNft) ProtoMessage ¶
func (*LpNft) ProtoMessage()
func (*LpNft) ProtoReflect ¶
func (x *LpNft) ProtoReflect() protoreflect.Message
type Position ¶
type Position struct { Phi *TradingFunction `protobuf:"bytes,1,opt,name=phi,proto3" json:"phi,omitempty"` // A random value used to disambiguate different positions with the exact same // trading function. The chain should reject newly created positions with the // same nonce as an existing position. This ensures that `PositionId`s will // be unique, and allows us to track position ownership with a // sequence of stateful NFTs based on the `PositionId`. Nonce []byte `protobuf:"bytes,2,opt,name=nonce,proto3" json:"nonce,omitempty"` State *PositionState `protobuf:"bytes,3,opt,name=state,proto3" json:"state,omitempty"` Reserves *Reserves `protobuf:"bytes,4,opt,name=reserves,proto3" json:"reserves,omitempty"` // / If set to true, the position is a limit-order and will be closed // / immediately after being filled. CloseOnFill bool `protobuf:"varint,5,opt,name=close_on_fill,json=closeOnFill,proto3" json:"close_on_fill,omitempty"` // contains filtered or unexported fields }
Data identifying a position.
func (*Position) Descriptor
deprecated
func (*Position) GetCloseOnFill ¶
func (*Position) GetPhi ¶
func (x *Position) GetPhi() *TradingFunction
func (*Position) GetReserves ¶
func (*Position) GetState ¶
func (x *Position) GetState() *PositionState
func (*Position) ProtoMessage ¶
func (*Position) ProtoMessage()
func (*Position) ProtoReflect ¶
func (x *Position) ProtoReflect() protoreflect.Message
type PositionClose ¶
type PositionClose struct { PositionId *PositionId `protobuf:"bytes,1,opt,name=position_id,json=positionId,proto3" json:"position_id,omitempty"` // contains filtered or unexported fields }
A transaction action that closes a position.
This action's contribution to the transaction's value balance is to consume an opened position NFT and contribute a closed position NFT.
Closing a position does not immediately withdraw funds, because Penumbra transactions (like any ZK transaction model) are early-binding: the prover must know the state transition they prove knowledge of, and they cannot know the final reserves with certainty until after the position has been deactivated.
func (*PositionClose) Descriptor
deprecated
func (*PositionClose) Descriptor() ([]byte, []int)
Deprecated: Use PositionClose.ProtoReflect.Descriptor instead.
func (*PositionClose) GetPositionId ¶
func (x *PositionClose) GetPositionId() *PositionId
func (*PositionClose) ProtoMessage ¶
func (*PositionClose) ProtoMessage()
func (*PositionClose) ProtoReflect ¶
func (x *PositionClose) ProtoReflect() protoreflect.Message
func (*PositionClose) Reset ¶
func (x *PositionClose) Reset()
func (*PositionClose) String ¶
func (x *PositionClose) String() string
type PositionId ¶
type PositionId struct { // The bytes of the position ID. Inner []byte `protobuf:"bytes,1,opt,name=inner,proto3" json:"inner,omitempty"` // Alternatively, a Bech32m-encoded string representation of the `inner` // bytes. // // NOTE: implementations are not required to support parsing this field. // Implementations should prefer to encode the bytes in all messages they // produce. Implementations must not accept messages with both `inner` and // `alt_bech32m` set. AltBech32M string `protobuf:"bytes,2,opt,name=alt_bech32m,json=altBech32m,proto3" json:"alt_bech32m,omitempty"` // contains filtered or unexported fields }
A hash of a `Position`.
func (*PositionId) Descriptor
deprecated
func (*PositionId) Descriptor() ([]byte, []int)
Deprecated: Use PositionId.ProtoReflect.Descriptor instead.
func (*PositionId) GetAltBech32M ¶
func (x *PositionId) GetAltBech32M() string
func (*PositionId) GetInner ¶
func (x *PositionId) GetInner() []byte
func (*PositionId) ProtoMessage ¶
func (*PositionId) ProtoMessage()
func (*PositionId) ProtoReflect ¶
func (x *PositionId) ProtoReflect() protoreflect.Message
func (*PositionId) Reset ¶
func (x *PositionId) Reset()
func (*PositionId) String ¶
func (x *PositionId) String() string
type PositionOpen ¶
type PositionOpen struct { // Contains the data defining the position, sufficient to compute its `PositionId`. // // Positions are immutable, so the `PositionData` (and hence the `PositionId`) // are unchanged over the entire lifetime of the position. Position *Position `protobuf:"bytes,1,opt,name=position,proto3" json:"position,omitempty"` // contains filtered or unexported fields }
A transaction action that opens a new position.
This action's contribution to the transaction's value balance is to consume the initial reserves and contribute an opened position NFT.
func (*PositionOpen) Descriptor
deprecated
func (*PositionOpen) Descriptor() ([]byte, []int)
Deprecated: Use PositionOpen.ProtoReflect.Descriptor instead.
func (*PositionOpen) GetPosition ¶
func (x *PositionOpen) GetPosition() *Position
func (*PositionOpen) ProtoMessage ¶
func (*PositionOpen) ProtoMessage()
func (*PositionOpen) ProtoReflect ¶
func (x *PositionOpen) ProtoReflect() protoreflect.Message
func (*PositionOpen) Reset ¶
func (x *PositionOpen) Reset()
func (*PositionOpen) String ¶
func (x *PositionOpen) String() string
type PositionRewardClaim ¶
type PositionRewardClaim struct { PositionId *PositionId `protobuf:"bytes,1,opt,name=position_id,json=positionId,proto3" json:"position_id,omitempty"` // A transparent (zero blinding factor) commitment to the position's accumulated rewards. // // The chain will check this commitment by recomputing it with the on-chain state. RewardsCommitment *v1alpha14.BalanceCommitment `protobuf:"bytes,2,opt,name=rewards_commitment,json=rewardsCommitment,proto3" json:"rewards_commitment,omitempty"` // contains filtered or unexported fields }
A transaction action that claims retroactive rewards for a historical position.
This action's contribution to the transaction's value balance is to consume a withdrawn position NFT and contribute its reward balance.
func (*PositionRewardClaim) Descriptor
deprecated
func (*PositionRewardClaim) Descriptor() ([]byte, []int)
Deprecated: Use PositionRewardClaim.ProtoReflect.Descriptor instead.
func (*PositionRewardClaim) GetPositionId ¶
func (x *PositionRewardClaim) GetPositionId() *PositionId
func (*PositionRewardClaim) GetRewardsCommitment ¶
func (x *PositionRewardClaim) GetRewardsCommitment() *v1alpha14.BalanceCommitment
func (*PositionRewardClaim) ProtoMessage ¶
func (*PositionRewardClaim) ProtoMessage()
func (*PositionRewardClaim) ProtoReflect ¶
func (x *PositionRewardClaim) ProtoReflect() protoreflect.Message
func (*PositionRewardClaim) Reset ¶
func (x *PositionRewardClaim) Reset()
func (*PositionRewardClaim) String ¶
func (x *PositionRewardClaim) String() string
type PositionRewardClaimPlan ¶
type PositionRewardClaimPlan struct { Reserves *Reserves `protobuf:"bytes,1,opt,name=reserves,proto3" json:"reserves,omitempty"` // contains filtered or unexported fields }
Contains private and public data for claiming rewards from a position.
func (*PositionRewardClaimPlan) Descriptor
deprecated
func (*PositionRewardClaimPlan) Descriptor() ([]byte, []int)
Deprecated: Use PositionRewardClaimPlan.ProtoReflect.Descriptor instead.
func (*PositionRewardClaimPlan) GetReserves ¶
func (x *PositionRewardClaimPlan) GetReserves() *Reserves
func (*PositionRewardClaimPlan) ProtoMessage ¶
func (*PositionRewardClaimPlan) ProtoMessage()
func (*PositionRewardClaimPlan) ProtoReflect ¶
func (x *PositionRewardClaimPlan) ProtoReflect() protoreflect.Message
func (*PositionRewardClaimPlan) Reset ¶
func (x *PositionRewardClaimPlan) Reset()
func (*PositionRewardClaimPlan) String ¶
func (x *PositionRewardClaimPlan) String() string
type PositionState ¶
type PositionState struct { State PositionState_PositionStateEnum `` /* 138-byte string literal not displayed */ // contains filtered or unexported fields }
The state of a position.
func (*PositionState) Descriptor
deprecated
func (*PositionState) Descriptor() ([]byte, []int)
Deprecated: Use PositionState.ProtoReflect.Descriptor instead.
func (*PositionState) GetState ¶
func (x *PositionState) GetState() PositionState_PositionStateEnum
func (*PositionState) ProtoMessage ¶
func (*PositionState) ProtoMessage()
func (*PositionState) ProtoReflect ¶
func (x *PositionState) ProtoReflect() protoreflect.Message
func (*PositionState) Reset ¶
func (x *PositionState) Reset()
func (*PositionState) String ¶
func (x *PositionState) String() string
type PositionState_PositionStateEnum ¶
type PositionState_PositionStateEnum int32
const ( PositionState_POSITION_STATE_ENUM_UNSPECIFIED PositionState_PositionStateEnum = 0 // The position has been opened, is active, has reserves and accumulated // fees, and can be traded against. PositionState_POSITION_STATE_ENUM_OPENED PositionState_PositionStateEnum = 1 // The position has been closed, is inactive and can no longer be traded // against, but still has reserves and accumulated fees. PositionState_POSITION_STATE_ENUM_CLOSED PositionState_PositionStateEnum = 2 // The final reserves and accumulated fees have been withdrawn, leaving an // empty, inactive position awaiting (possible) retroactive rewards. PositionState_POSITION_STATE_ENUM_WITHDRAWN PositionState_PositionStateEnum = 3 // Any retroactive rewards have been claimed. The position is now an inert, // historical artefact. PositionState_POSITION_STATE_ENUM_CLAIMED PositionState_PositionStateEnum = 4 )
func (PositionState_PositionStateEnum) Descriptor ¶
func (PositionState_PositionStateEnum) Descriptor() protoreflect.EnumDescriptor
func (PositionState_PositionStateEnum) Enum ¶
func (x PositionState_PositionStateEnum) Enum() *PositionState_PositionStateEnum
func (PositionState_PositionStateEnum) EnumDescriptor
deprecated
func (PositionState_PositionStateEnum) EnumDescriptor() ([]byte, []int)
Deprecated: Use PositionState_PositionStateEnum.Descriptor instead.
func (PositionState_PositionStateEnum) Number ¶
func (x PositionState_PositionStateEnum) Number() protoreflect.EnumNumber
func (PositionState_PositionStateEnum) String ¶
func (x PositionState_PositionStateEnum) String() string
func (PositionState_PositionStateEnum) Type ¶
func (PositionState_PositionStateEnum) Type() protoreflect.EnumType
type PositionWithdraw ¶
type PositionWithdraw struct { PositionId *PositionId `protobuf:"bytes,1,opt,name=position_id,json=positionId,proto3" json:"position_id,omitempty"` // A transparent (zero blinding factor) commitment to the position's final reserves and fees. // // The chain will check this commitment by recomputing it with the on-chain state. ReservesCommitment *v1alpha14.BalanceCommitment `protobuf:"bytes,2,opt,name=reserves_commitment,json=reservesCommitment,proto3" json:"reserves_commitment,omitempty"` // contains filtered or unexported fields }
A transaction action that withdraws funds from a closed position.
This action's contribution to the transaction's value balance is to consume a closed position NFT and contribute a withdrawn position NFT, as well as all of the funds that were in the position at the time of closing.
func (*PositionWithdraw) Descriptor
deprecated
func (*PositionWithdraw) Descriptor() ([]byte, []int)
Deprecated: Use PositionWithdraw.ProtoReflect.Descriptor instead.
func (*PositionWithdraw) GetPositionId ¶
func (x *PositionWithdraw) GetPositionId() *PositionId
func (*PositionWithdraw) GetReservesCommitment ¶
func (x *PositionWithdraw) GetReservesCommitment() *v1alpha14.BalanceCommitment
func (*PositionWithdraw) ProtoMessage ¶
func (*PositionWithdraw) ProtoMessage()
func (*PositionWithdraw) ProtoReflect ¶
func (x *PositionWithdraw) ProtoReflect() protoreflect.Message
func (*PositionWithdraw) Reset ¶
func (x *PositionWithdraw) Reset()
func (*PositionWithdraw) String ¶
func (x *PositionWithdraw) String() string
type PositionWithdrawPlan ¶
type PositionWithdrawPlan struct { Reserves *Reserves `protobuf:"bytes,1,opt,name=reserves,proto3" json:"reserves,omitempty"` PositionId *PositionId `protobuf:"bytes,2,opt,name=position_id,json=positionId,proto3" json:"position_id,omitempty"` Pair *TradingPair `protobuf:"bytes,3,opt,name=pair,proto3" json:"pair,omitempty"` // contains filtered or unexported fields }
Contains private and public data for withdrawing funds from a closed position.
func (*PositionWithdrawPlan) Descriptor
deprecated
func (*PositionWithdrawPlan) Descriptor() ([]byte, []int)
Deprecated: Use PositionWithdrawPlan.ProtoReflect.Descriptor instead.
func (*PositionWithdrawPlan) GetPair ¶
func (x *PositionWithdrawPlan) GetPair() *TradingPair
func (*PositionWithdrawPlan) GetPositionId ¶
func (x *PositionWithdrawPlan) GetPositionId() *PositionId
func (*PositionWithdrawPlan) GetReserves ¶
func (x *PositionWithdrawPlan) GetReserves() *Reserves
func (*PositionWithdrawPlan) ProtoMessage ¶
func (*PositionWithdrawPlan) ProtoMessage()
func (*PositionWithdrawPlan) ProtoReflect ¶
func (x *PositionWithdrawPlan) ProtoReflect() protoreflect.Message
func (*PositionWithdrawPlan) Reset ¶
func (x *PositionWithdrawPlan) Reset()
func (*PositionWithdrawPlan) String ¶
func (x *PositionWithdrawPlan) String() string
type Reserves ¶
type Reserves struct { R1 *v1alpha13.Amount `protobuf:"bytes,1,opt,name=r1,proto3" json:"r1,omitempty"` R2 *v1alpha13.Amount `protobuf:"bytes,2,opt,name=r2,proto3" json:"r2,omitempty"` // contains filtered or unexported fields }
The reserves of a position.
Like a position, this implicitly treats the trading function as being between assets 1 and 2, without specifying what those assets are, to avoid duplicating data (each asset ID alone is four times the size of the reserves).
func (*Reserves) Descriptor
deprecated
func (*Reserves) ProtoMessage ¶
func (*Reserves) ProtoMessage()
func (*Reserves) ProtoReflect ¶
func (x *Reserves) ProtoReflect() protoreflect.Message
type SimulateTradeRequest ¶
type SimulateTradeRequest struct { Input *v1alpha14.Value `protobuf:"bytes,1,opt,name=input,proto3" json:"input,omitempty"` Output *v1alpha14.AssetId `protobuf:"bytes,2,opt,name=output,proto3" json:"output,omitempty"` Routing *SimulateTradeRequest_Routing `protobuf:"bytes,3,opt,name=routing,proto3" json:"routing,omitempty"` // contains filtered or unexported fields }
func (*SimulateTradeRequest) Descriptor
deprecated
func (*SimulateTradeRequest) Descriptor() ([]byte, []int)
Deprecated: Use SimulateTradeRequest.ProtoReflect.Descriptor instead.
func (*SimulateTradeRequest) GetInput ¶
func (x *SimulateTradeRequest) GetInput() *v1alpha14.Value
func (*SimulateTradeRequest) GetOutput ¶
func (x *SimulateTradeRequest) GetOutput() *v1alpha14.AssetId
func (*SimulateTradeRequest) GetRouting ¶
func (x *SimulateTradeRequest) GetRouting() *SimulateTradeRequest_Routing
func (*SimulateTradeRequest) ProtoMessage ¶
func (*SimulateTradeRequest) ProtoMessage()
func (*SimulateTradeRequest) ProtoReflect ¶
func (x *SimulateTradeRequest) ProtoReflect() protoreflect.Message
func (*SimulateTradeRequest) Reset ¶
func (x *SimulateTradeRequest) Reset()
func (*SimulateTradeRequest) String ¶
func (x *SimulateTradeRequest) String() string
type SimulateTradeRequest_Routing ¶
type SimulateTradeRequest_Routing struct { // Types that are assignable to Setting: // // *SimulateTradeRequest_Routing_Default_ // *SimulateTradeRequest_Routing_SingleHop_ Setting isSimulateTradeRequest_Routing_Setting `protobuf_oneof:"setting"` // contains filtered or unexported fields }
func (*SimulateTradeRequest_Routing) Descriptor
deprecated
func (*SimulateTradeRequest_Routing) Descriptor() ([]byte, []int)
Deprecated: Use SimulateTradeRequest_Routing.ProtoReflect.Descriptor instead.
func (*SimulateTradeRequest_Routing) GetDefault ¶
func (x *SimulateTradeRequest_Routing) GetDefault() *SimulateTradeRequest_Routing_Default
func (*SimulateTradeRequest_Routing) GetSetting ¶
func (m *SimulateTradeRequest_Routing) GetSetting() isSimulateTradeRequest_Routing_Setting
func (*SimulateTradeRequest_Routing) GetSingleHop ¶
func (x *SimulateTradeRequest_Routing) GetSingleHop() *SimulateTradeRequest_Routing_SingleHop
func (*SimulateTradeRequest_Routing) ProtoMessage ¶
func (*SimulateTradeRequest_Routing) ProtoMessage()
func (*SimulateTradeRequest_Routing) ProtoReflect ¶
func (x *SimulateTradeRequest_Routing) ProtoReflect() protoreflect.Message
func (*SimulateTradeRequest_Routing) Reset ¶
func (x *SimulateTradeRequest_Routing) Reset()
func (*SimulateTradeRequest_Routing) String ¶
func (x *SimulateTradeRequest_Routing) String() string
type SimulateTradeRequest_Routing_Default ¶
type SimulateTradeRequest_Routing_Default struct {
// contains filtered or unexported fields
}
func (*SimulateTradeRequest_Routing_Default) Descriptor
deprecated
func (*SimulateTradeRequest_Routing_Default) Descriptor() ([]byte, []int)
Deprecated: Use SimulateTradeRequest_Routing_Default.ProtoReflect.Descriptor instead.
func (*SimulateTradeRequest_Routing_Default) ProtoMessage ¶
func (*SimulateTradeRequest_Routing_Default) ProtoMessage()
func (*SimulateTradeRequest_Routing_Default) ProtoReflect ¶
func (x *SimulateTradeRequest_Routing_Default) ProtoReflect() protoreflect.Message
func (*SimulateTradeRequest_Routing_Default) Reset ¶
func (x *SimulateTradeRequest_Routing_Default) Reset()
func (*SimulateTradeRequest_Routing_Default) String ¶
func (x *SimulateTradeRequest_Routing_Default) String() string
type SimulateTradeRequest_Routing_Default_ ¶
type SimulateTradeRequest_Routing_Default_ struct {
Default *SimulateTradeRequest_Routing_Default `protobuf:"bytes,1,opt,name=default,proto3,oneof"`
}
type SimulateTradeRequest_Routing_SingleHop ¶
type SimulateTradeRequest_Routing_SingleHop struct {
// contains filtered or unexported fields
}
func (*SimulateTradeRequest_Routing_SingleHop) Descriptor
deprecated
func (*SimulateTradeRequest_Routing_SingleHop) Descriptor() ([]byte, []int)
Deprecated: Use SimulateTradeRequest_Routing_SingleHop.ProtoReflect.Descriptor instead.
func (*SimulateTradeRequest_Routing_SingleHop) ProtoMessage ¶
func (*SimulateTradeRequest_Routing_SingleHop) ProtoMessage()
func (*SimulateTradeRequest_Routing_SingleHop) ProtoReflect ¶
func (x *SimulateTradeRequest_Routing_SingleHop) ProtoReflect() protoreflect.Message
func (*SimulateTradeRequest_Routing_SingleHop) Reset ¶
func (x *SimulateTradeRequest_Routing_SingleHop) Reset()
func (*SimulateTradeRequest_Routing_SingleHop) String ¶
func (x *SimulateTradeRequest_Routing_SingleHop) String() string
type SimulateTradeRequest_Routing_SingleHop_ ¶
type SimulateTradeRequest_Routing_SingleHop_ struct {
SingleHop *SimulateTradeRequest_Routing_SingleHop `protobuf:"bytes,2,opt,name=single_hop,json=singleHop,proto3,oneof"`
}
type SimulateTradeResponse ¶
type SimulateTradeResponse struct { Output *SwapExecution `protobuf:"bytes,1,opt,name=output,proto3" json:"output,omitempty"` // contains filtered or unexported fields }
func (*SimulateTradeResponse) Descriptor
deprecated
func (*SimulateTradeResponse) Descriptor() ([]byte, []int)
Deprecated: Use SimulateTradeResponse.ProtoReflect.Descriptor instead.
func (*SimulateTradeResponse) GetOutput ¶
func (x *SimulateTradeResponse) GetOutput() *SwapExecution
func (*SimulateTradeResponse) ProtoMessage ¶
func (*SimulateTradeResponse) ProtoMessage()
func (*SimulateTradeResponse) ProtoReflect ¶
func (x *SimulateTradeResponse) ProtoReflect() protoreflect.Message
func (*SimulateTradeResponse) Reset ¶
func (x *SimulateTradeResponse) Reset()
func (*SimulateTradeResponse) String ¶
func (x *SimulateTradeResponse) String() string
type SpreadRequest ¶
type SpreadRequest struct { // The expected chain id (empty string if no expectation). ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` TradingPair *TradingPair `protobuf:"bytes,2,opt,name=trading_pair,json=tradingPair,proto3" json:"trading_pair,omitempty"` // contains filtered or unexported fields }
func (*SpreadRequest) Descriptor
deprecated
func (*SpreadRequest) Descriptor() ([]byte, []int)
Deprecated: Use SpreadRequest.ProtoReflect.Descriptor instead.
func (*SpreadRequest) GetChainId ¶
func (x *SpreadRequest) GetChainId() string
func (*SpreadRequest) GetTradingPair ¶
func (x *SpreadRequest) GetTradingPair() *TradingPair
func (*SpreadRequest) ProtoMessage ¶
func (*SpreadRequest) ProtoMessage()
func (*SpreadRequest) ProtoReflect ¶
func (x *SpreadRequest) ProtoReflect() protoreflect.Message
func (*SpreadRequest) Reset ¶
func (x *SpreadRequest) Reset()
func (*SpreadRequest) String ¶
func (x *SpreadRequest) String() string
type SpreadResponse ¶
type SpreadResponse struct { // The best position when trading 1 => 2. Best_1To_2Position *Position `protobuf:"bytes,1,opt,name=best_1_to_2_position,json=best1To2Position,proto3" json:"best_1_to_2_position,omitempty"` // The best position when trading 2 => 1. Best_2To_1Position *Position `protobuf:"bytes,2,opt,name=best_2_to_1_position,json=best2To1Position,proto3" json:"best_2_to_1_position,omitempty"` // An approximation of the effective price when trading 1 => 2. ApproxEffectivePrice_1To_2 float64 `` /* 143-byte string literal not displayed */ // An approximation of the effective price when trading 2 => 1. ApproxEffectivePrice_2To_1 float64 `` /* 143-byte string literal not displayed */ // contains filtered or unexported fields }
func (*SpreadResponse) Descriptor
deprecated
func (*SpreadResponse) Descriptor() ([]byte, []int)
Deprecated: Use SpreadResponse.ProtoReflect.Descriptor instead.
func (*SpreadResponse) GetApproxEffectivePrice_1To_2 ¶
func (x *SpreadResponse) GetApproxEffectivePrice_1To_2() float64
func (*SpreadResponse) GetApproxEffectivePrice_2To_1 ¶
func (x *SpreadResponse) GetApproxEffectivePrice_2To_1() float64
func (*SpreadResponse) GetBest_1To_2Position ¶
func (x *SpreadResponse) GetBest_1To_2Position() *Position
func (*SpreadResponse) GetBest_2To_1Position ¶
func (x *SpreadResponse) GetBest_2To_1Position() *Position
func (*SpreadResponse) ProtoMessage ¶
func (*SpreadResponse) ProtoMessage()
func (*SpreadResponse) ProtoReflect ¶
func (x *SpreadResponse) ProtoReflect() protoreflect.Message
func (*SpreadResponse) Reset ¶
func (x *SpreadResponse) Reset()
func (*SpreadResponse) String ¶
func (x *SpreadResponse) String() string
type Swap ¶
type Swap struct { // Contains the Swap proof. Proof *ZKSwapProof `protobuf:"bytes,1,opt,name=proof,proto3" json:"proof,omitempty"` // Encapsulates the authorized fields of the Swap action, used in signing. Body *SwapBody `protobuf:"bytes,4,opt,name=body,proto3" json:"body,omitempty"` // contains filtered or unexported fields }
A transaction action that submits a swap to the dex.
func (*Swap) Descriptor
deprecated
func (*Swap) GetProof ¶
func (x *Swap) GetProof() *ZKSwapProof
func (*Swap) ProtoMessage ¶
func (*Swap) ProtoMessage()
func (*Swap) ProtoReflect ¶
func (x *Swap) ProtoReflect() protoreflect.Message
type SwapBody ¶
type SwapBody struct { // The trading pair to swap. TradingPair *TradingPair `protobuf:"bytes,1,opt,name=trading_pair,json=tradingPair,proto3" json:"trading_pair,omitempty"` // The amount for asset 1. Delta_1I *v1alpha13.Amount `protobuf:"bytes,2,opt,name=delta_1_i,json=delta1I,proto3" json:"delta_1_i,omitempty"` // The amount for asset 2. Delta_2I *v1alpha13.Amount `protobuf:"bytes,3,opt,name=delta_2_i,json=delta2I,proto3" json:"delta_2_i,omitempty"` // A commitment to a prepaid fee for the future SwapClaim. // This is recorded separately from delta_j_i because it's shielded; // in the future we'll want separate commitments to each delta_j_i // anyways in order to prove consistency with flow encryption. FeeCommitment *v1alpha14.BalanceCommitment `protobuf:"bytes,4,opt,name=fee_commitment,json=feeCommitment,proto3" json:"fee_commitment,omitempty"` // The swap commitment and encryption of the swap data. Payload *SwapPayload `protobuf:"bytes,5,opt,name=payload,proto3" json:"payload,omitempty"` // contains filtered or unexported fields }
The authorized data of a Swap transaction.
func (*SwapBody) Descriptor
deprecated
func (*SwapBody) GetDelta_1I ¶
func (*SwapBody) GetDelta_2I ¶
func (*SwapBody) GetFeeCommitment ¶
func (x *SwapBody) GetFeeCommitment() *v1alpha14.BalanceCommitment
func (*SwapBody) GetPayload ¶
func (x *SwapBody) GetPayload() *SwapPayload
func (*SwapBody) GetTradingPair ¶
func (x *SwapBody) GetTradingPair() *TradingPair
func (*SwapBody) ProtoMessage ¶
func (*SwapBody) ProtoMessage()
func (*SwapBody) ProtoReflect ¶
func (x *SwapBody) ProtoReflect() protoreflect.Message
type SwapClaim ¶
type SwapClaim struct { // Contains the SwapClaim proof. Proof *ZKSwapClaimProof `protobuf:"bytes,1,opt,name=proof,proto3" json:"proof,omitempty"` // Encapsulates the authorized fields of the SwapClaim action, used in signing. Body *SwapClaimBody `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"` // The epoch duration of the chain when the swap claim took place. EpochDuration uint64 `protobuf:"varint,7,opt,name=epoch_duration,json=epochDuration,proto3" json:"epoch_duration,omitempty"` // contains filtered or unexported fields }
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.
func (*SwapClaim) Descriptor
deprecated
func (*SwapClaim) GetBody ¶
func (x *SwapClaim) GetBody() *SwapClaimBody
func (*SwapClaim) GetEpochDuration ¶
func (*SwapClaim) GetProof ¶
func (x *SwapClaim) GetProof() *ZKSwapClaimProof
func (*SwapClaim) ProtoMessage ¶
func (*SwapClaim) ProtoMessage()
func (*SwapClaim) ProtoReflect ¶
func (x *SwapClaim) ProtoReflect() protoreflect.Message
type SwapClaimBody ¶
type SwapClaimBody struct { // The nullifier for the Swap commitment to be consumed. Nullifier *v1alpha1.Nullifier `protobuf:"bytes,1,opt,name=nullifier,proto3" json:"nullifier,omitempty"` // The fee allows `SwapClaim` without an additional `Spend`. Fee *v1alpha11.Fee `protobuf:"bytes,2,opt,name=fee,proto3" json:"fee,omitempty"` // Note output for asset 1. Output_1Commitment *v1alpha12.StateCommitment `protobuf:"bytes,3,opt,name=output_1_commitment,json=output1Commitment,proto3" json:"output_1_commitment,omitempty"` // Note output for asset 2. Output_2Commitment *v1alpha12.StateCommitment `protobuf:"bytes,4,opt,name=output_2_commitment,json=output2Commitment,proto3" json:"output_2_commitment,omitempty"` // Input and output amounts, and asset IDs for the assets in the swap. OutputData *BatchSwapOutputData `protobuf:"bytes,6,opt,name=output_data,json=outputData,proto3" json:"output_data,omitempty"` // contains filtered or unexported fields }
Encapsulates the authorized fields of the SwapClaim action, used in signing.
func (*SwapClaimBody) Descriptor
deprecated
func (*SwapClaimBody) Descriptor() ([]byte, []int)
Deprecated: Use SwapClaimBody.ProtoReflect.Descriptor instead.
func (*SwapClaimBody) GetFee ¶
func (x *SwapClaimBody) GetFee() *v1alpha11.Fee
func (*SwapClaimBody) GetNullifier ¶
func (x *SwapClaimBody) GetNullifier() *v1alpha1.Nullifier
func (*SwapClaimBody) GetOutputData ¶
func (x *SwapClaimBody) GetOutputData() *BatchSwapOutputData
func (*SwapClaimBody) GetOutput_1Commitment ¶
func (x *SwapClaimBody) GetOutput_1Commitment() *v1alpha12.StateCommitment
func (*SwapClaimBody) GetOutput_2Commitment ¶
func (x *SwapClaimBody) GetOutput_2Commitment() *v1alpha12.StateCommitment
func (*SwapClaimBody) ProtoMessage ¶
func (*SwapClaimBody) ProtoMessage()
func (*SwapClaimBody) ProtoReflect ¶
func (x *SwapClaimBody) ProtoReflect() protoreflect.Message
func (*SwapClaimBody) Reset ¶
func (x *SwapClaimBody) Reset()
func (*SwapClaimBody) String ¶
func (x *SwapClaimBody) String() string
type SwapClaimPlan ¶
type SwapClaimPlan struct { // The plaintext version of the swap to be performed. SwapPlaintext *SwapPlaintext `protobuf:"bytes,1,opt,name=swap_plaintext,json=swapPlaintext,proto3" json:"swap_plaintext,omitempty"` // The position of the swap commitment. Position uint64 `protobuf:"varint,2,opt,name=position,proto3" json:"position,omitempty"` // Input and output amounts for the Swap. OutputData *BatchSwapOutputData `protobuf:"bytes,3,opt,name=output_data,json=outputData,proto3" json:"output_data,omitempty"` // The epoch duration, used in proving. EpochDuration uint64 `protobuf:"varint,4,opt,name=epoch_duration,json=epochDuration,proto3" json:"epoch_duration,omitempty"` // The first blinding factor to use for the ZK swap claim proof. ProofBlindingR []byte `protobuf:"bytes,5,opt,name=proof_blinding_r,json=proofBlindingR,proto3" json:"proof_blinding_r,omitempty"` // The second blinding factor to use for the ZK swap claim proof. ProofBlindingS []byte `protobuf:"bytes,6,opt,name=proof_blinding_s,json=proofBlindingS,proto3" json:"proof_blinding_s,omitempty"` // contains filtered or unexported fields }
func (*SwapClaimPlan) Descriptor
deprecated
func (*SwapClaimPlan) Descriptor() ([]byte, []int)
Deprecated: Use SwapClaimPlan.ProtoReflect.Descriptor instead.
func (*SwapClaimPlan) GetEpochDuration ¶
func (x *SwapClaimPlan) GetEpochDuration() uint64
func (*SwapClaimPlan) GetOutputData ¶
func (x *SwapClaimPlan) GetOutputData() *BatchSwapOutputData
func (*SwapClaimPlan) GetPosition ¶
func (x *SwapClaimPlan) GetPosition() uint64
func (*SwapClaimPlan) GetProofBlindingR ¶
func (x *SwapClaimPlan) GetProofBlindingR() []byte
func (*SwapClaimPlan) GetProofBlindingS ¶
func (x *SwapClaimPlan) GetProofBlindingS() []byte
func (*SwapClaimPlan) GetSwapPlaintext ¶
func (x *SwapClaimPlan) GetSwapPlaintext() *SwapPlaintext
func (*SwapClaimPlan) ProtoMessage ¶
func (*SwapClaimPlan) ProtoMessage()
func (*SwapClaimPlan) ProtoReflect ¶
func (x *SwapClaimPlan) ProtoReflect() protoreflect.Message
func (*SwapClaimPlan) Reset ¶
func (x *SwapClaimPlan) Reset()
func (*SwapClaimPlan) String ¶
func (x *SwapClaimPlan) String() string
type SwapClaimView ¶
type SwapClaimView struct { // Types that are assignable to SwapClaimView: // // *SwapClaimView_Visible_ // *SwapClaimView_Opaque_ SwapClaimView isSwapClaimView_SwapClaimView `protobuf_oneof:"swap_claim_view"` // contains filtered or unexported fields }
func (*SwapClaimView) Descriptor
deprecated
func (*SwapClaimView) Descriptor() ([]byte, []int)
Deprecated: Use SwapClaimView.ProtoReflect.Descriptor instead.
func (*SwapClaimView) GetOpaque ¶
func (x *SwapClaimView) GetOpaque() *SwapClaimView_Opaque
func (*SwapClaimView) GetSwapClaimView ¶
func (m *SwapClaimView) GetSwapClaimView() isSwapClaimView_SwapClaimView
func (*SwapClaimView) GetVisible ¶
func (x *SwapClaimView) GetVisible() *SwapClaimView_Visible
func (*SwapClaimView) ProtoMessage ¶
func (*SwapClaimView) ProtoMessage()
func (*SwapClaimView) ProtoReflect ¶
func (x *SwapClaimView) ProtoReflect() protoreflect.Message
func (*SwapClaimView) Reset ¶
func (x *SwapClaimView) Reset()
func (*SwapClaimView) String ¶
func (x *SwapClaimView) String() string
type SwapClaimView_Opaque ¶
type SwapClaimView_Opaque struct { SwapClaim *SwapClaim `protobuf:"bytes,1,opt,name=swap_claim,json=swapClaim,proto3" json:"swap_claim,omitempty"` // contains filtered or unexported fields }
func (*SwapClaimView_Opaque) Descriptor
deprecated
func (*SwapClaimView_Opaque) Descriptor() ([]byte, []int)
Deprecated: Use SwapClaimView_Opaque.ProtoReflect.Descriptor instead.
func (*SwapClaimView_Opaque) GetSwapClaim ¶
func (x *SwapClaimView_Opaque) GetSwapClaim() *SwapClaim
func (*SwapClaimView_Opaque) ProtoMessage ¶
func (*SwapClaimView_Opaque) ProtoMessage()
func (*SwapClaimView_Opaque) ProtoReflect ¶
func (x *SwapClaimView_Opaque) ProtoReflect() protoreflect.Message
func (*SwapClaimView_Opaque) Reset ¶
func (x *SwapClaimView_Opaque) Reset()
func (*SwapClaimView_Opaque) String ¶
func (x *SwapClaimView_Opaque) String() string
type SwapClaimView_Opaque_ ¶
type SwapClaimView_Opaque_ struct {
Opaque *SwapClaimView_Opaque `protobuf:"bytes,2,opt,name=opaque,proto3,oneof"`
}
type SwapClaimView_Visible ¶
type SwapClaimView_Visible struct { SwapClaim *SwapClaim `protobuf:"bytes,1,opt,name=swap_claim,json=swapClaim,proto3" json:"swap_claim,omitempty"` Output_1 *v1alpha16.NoteView `protobuf:"bytes,2,opt,name=output_1,json=output1,proto3" json:"output_1,omitempty"` Output_2 *v1alpha16.NoteView `protobuf:"bytes,3,opt,name=output_2,json=output2,proto3" json:"output_2,omitempty"` // contains filtered or unexported fields }
func (*SwapClaimView_Visible) Descriptor
deprecated
func (*SwapClaimView_Visible) Descriptor() ([]byte, []int)
Deprecated: Use SwapClaimView_Visible.ProtoReflect.Descriptor instead.
func (*SwapClaimView_Visible) GetOutput_1 ¶
func (x *SwapClaimView_Visible) GetOutput_1() *v1alpha16.NoteView
func (*SwapClaimView_Visible) GetOutput_2 ¶
func (x *SwapClaimView_Visible) GetOutput_2() *v1alpha16.NoteView
func (*SwapClaimView_Visible) GetSwapClaim ¶
func (x *SwapClaimView_Visible) GetSwapClaim() *SwapClaim
func (*SwapClaimView_Visible) ProtoMessage ¶
func (*SwapClaimView_Visible) ProtoMessage()
func (*SwapClaimView_Visible) ProtoReflect ¶
func (x *SwapClaimView_Visible) ProtoReflect() protoreflect.Message
func (*SwapClaimView_Visible) Reset ¶
func (x *SwapClaimView_Visible) Reset()
func (*SwapClaimView_Visible) String ¶
func (x *SwapClaimView_Visible) String() string
type SwapClaimView_Visible_ ¶
type SwapClaimView_Visible_ struct {
Visible *SwapClaimView_Visible `protobuf:"bytes,1,opt,name=visible,proto3,oneof"`
}
type SwapExecution ¶
type SwapExecution struct { Traces []*SwapExecution_Trace `protobuf:"bytes,1,rep,name=traces,proto3" json:"traces,omitempty"` // The total input amount for this execution. Input *v1alpha14.Value `protobuf:"bytes,2,opt,name=input,proto3" json:"input,omitempty"` // The total output amount for this execution. Output *v1alpha14.Value `protobuf:"bytes,3,opt,name=output,proto3" json:"output,omitempty"` // contains filtered or unexported fields }
Contains the entire execution of a particular swap.
func (*SwapExecution) Descriptor
deprecated
func (*SwapExecution) Descriptor() ([]byte, []int)
Deprecated: Use SwapExecution.ProtoReflect.Descriptor instead.
func (*SwapExecution) GetInput ¶
func (x *SwapExecution) GetInput() *v1alpha14.Value
func (*SwapExecution) GetOutput ¶
func (x *SwapExecution) GetOutput() *v1alpha14.Value
func (*SwapExecution) GetTraces ¶
func (x *SwapExecution) GetTraces() []*SwapExecution_Trace
func (*SwapExecution) ProtoMessage ¶
func (*SwapExecution) ProtoMessage()
func (*SwapExecution) ProtoReflect ¶
func (x *SwapExecution) ProtoReflect() protoreflect.Message
func (*SwapExecution) Reset ¶
func (x *SwapExecution) Reset()
func (*SwapExecution) String ¶
func (x *SwapExecution) String() string
type SwapExecutionRequest ¶
type SwapExecutionRequest struct { // The expected chain id (empty string if no expectation). ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` Height uint64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` TradingPair *DirectedTradingPair `protobuf:"bytes,3,opt,name=trading_pair,json=tradingPair,proto3" json:"trading_pair,omitempty"` // contains filtered or unexported fields }
func (*SwapExecutionRequest) Descriptor
deprecated
func (*SwapExecutionRequest) Descriptor() ([]byte, []int)
Deprecated: Use SwapExecutionRequest.ProtoReflect.Descriptor instead.
func (*SwapExecutionRequest) GetChainId ¶
func (x *SwapExecutionRequest) GetChainId() string
func (*SwapExecutionRequest) GetHeight ¶
func (x *SwapExecutionRequest) GetHeight() uint64
func (*SwapExecutionRequest) GetTradingPair ¶
func (x *SwapExecutionRequest) GetTradingPair() *DirectedTradingPair
func (*SwapExecutionRequest) ProtoMessage ¶
func (*SwapExecutionRequest) ProtoMessage()
func (*SwapExecutionRequest) ProtoReflect ¶
func (x *SwapExecutionRequest) ProtoReflect() protoreflect.Message
func (*SwapExecutionRequest) Reset ¶
func (x *SwapExecutionRequest) Reset()
func (*SwapExecutionRequest) String ¶
func (x *SwapExecutionRequest) String() string
type SwapExecutionResponse ¶
type SwapExecutionResponse struct { SwapExecution *SwapExecution `protobuf:"bytes,1,opt,name=swap_execution,json=swapExecution,proto3" json:"swap_execution,omitempty"` // contains filtered or unexported fields }
func (*SwapExecutionResponse) Descriptor
deprecated
func (*SwapExecutionResponse) Descriptor() ([]byte, []int)
Deprecated: Use SwapExecutionResponse.ProtoReflect.Descriptor instead.
func (*SwapExecutionResponse) GetSwapExecution ¶
func (x *SwapExecutionResponse) GetSwapExecution() *SwapExecution
func (*SwapExecutionResponse) ProtoMessage ¶
func (*SwapExecutionResponse) ProtoMessage()
func (*SwapExecutionResponse) ProtoReflect ¶
func (x *SwapExecutionResponse) ProtoReflect() protoreflect.Message
func (*SwapExecutionResponse) Reset ¶
func (x *SwapExecutionResponse) Reset()
func (*SwapExecutionResponse) String ¶
func (x *SwapExecutionResponse) String() string
type SwapExecution_Trace ¶
type SwapExecution_Trace struct { // Each step in the trade trace. Value []*v1alpha14.Value `protobuf:"bytes,1,rep,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
Contains all individual steps consisting of a trade trace.
func (*SwapExecution_Trace) Descriptor
deprecated
func (*SwapExecution_Trace) Descriptor() ([]byte, []int)
Deprecated: Use SwapExecution_Trace.ProtoReflect.Descriptor instead.
func (*SwapExecution_Trace) GetValue ¶
func (x *SwapExecution_Trace) GetValue() []*v1alpha14.Value
func (*SwapExecution_Trace) ProtoMessage ¶
func (*SwapExecution_Trace) ProtoMessage()
func (*SwapExecution_Trace) ProtoReflect ¶
func (x *SwapExecution_Trace) ProtoReflect() protoreflect.Message
func (*SwapExecution_Trace) Reset ¶
func (x *SwapExecution_Trace) Reset()
func (*SwapExecution_Trace) String ¶
func (x *SwapExecution_Trace) String() string
type SwapExecutionsRequest ¶
type SwapExecutionsRequest struct { // The expected chain id (empty string if no expectation). ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` // If present, only return swap executions occurring after the given height. StartHeight uint64 `protobuf:"varint,2,opt,name=start_height,json=startHeight,proto3" json:"start_height,omitempty"` // If present, only return swap executions occurring before the given height. EndHeight uint64 `protobuf:"varint,3,opt,name=end_height,json=endHeight,proto3" json:"end_height,omitempty"` // If present, filter swap executions by the given trading pair. TradingPair *DirectedTradingPair `protobuf:"bytes,4,opt,name=trading_pair,json=tradingPair,proto3" json:"trading_pair,omitempty"` // contains filtered or unexported fields }
func (*SwapExecutionsRequest) Descriptor
deprecated
func (*SwapExecutionsRequest) Descriptor() ([]byte, []int)
Deprecated: Use SwapExecutionsRequest.ProtoReflect.Descriptor instead.
func (*SwapExecutionsRequest) GetChainId ¶
func (x *SwapExecutionsRequest) GetChainId() string
func (*SwapExecutionsRequest) GetEndHeight ¶
func (x *SwapExecutionsRequest) GetEndHeight() uint64
func (*SwapExecutionsRequest) GetStartHeight ¶
func (x *SwapExecutionsRequest) GetStartHeight() uint64
func (*SwapExecutionsRequest) GetTradingPair ¶
func (x *SwapExecutionsRequest) GetTradingPair() *DirectedTradingPair
func (*SwapExecutionsRequest) ProtoMessage ¶
func (*SwapExecutionsRequest) ProtoMessage()
func (*SwapExecutionsRequest) ProtoReflect ¶
func (x *SwapExecutionsRequest) ProtoReflect() protoreflect.Message
func (*SwapExecutionsRequest) Reset ¶
func (x *SwapExecutionsRequest) Reset()
func (*SwapExecutionsRequest) String ¶
func (x *SwapExecutionsRequest) String() string
type SwapExecutionsResponse ¶
type SwapExecutionsResponse struct { SwapExecution *SwapExecution `protobuf:"bytes,1,opt,name=swap_execution,json=swapExecution,proto3" json:"swap_execution,omitempty"` Height uint64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` TradingPair *DirectedTradingPair `protobuf:"bytes,3,opt,name=trading_pair,json=tradingPair,proto3" json:"trading_pair,omitempty"` // contains filtered or unexported fields }
func (*SwapExecutionsResponse) Descriptor
deprecated
func (*SwapExecutionsResponse) Descriptor() ([]byte, []int)
Deprecated: Use SwapExecutionsResponse.ProtoReflect.Descriptor instead.
func (*SwapExecutionsResponse) GetHeight ¶
func (x *SwapExecutionsResponse) GetHeight() uint64
func (*SwapExecutionsResponse) GetSwapExecution ¶
func (x *SwapExecutionsResponse) GetSwapExecution() *SwapExecution
func (*SwapExecutionsResponse) GetTradingPair ¶
func (x *SwapExecutionsResponse) GetTradingPair() *DirectedTradingPair
func (*SwapExecutionsResponse) ProtoMessage ¶
func (*SwapExecutionsResponse) ProtoMessage()
func (*SwapExecutionsResponse) ProtoReflect ¶
func (x *SwapExecutionsResponse) ProtoReflect() protoreflect.Message
func (*SwapExecutionsResponse) Reset ¶
func (x *SwapExecutionsResponse) Reset()
func (*SwapExecutionsResponse) String ¶
func (x *SwapExecutionsResponse) String() string
type SwapPayload ¶
type SwapPayload struct { Commitment *v1alpha12.StateCommitment `protobuf:"bytes,1,opt,name=commitment,proto3" json:"commitment,omitempty"` EncryptedSwap []byte `protobuf:"bytes,2,opt,name=encrypted_swap,json=encryptedSwap,proto3" json:"encrypted_swap,omitempty"` // contains filtered or unexported fields }
func (*SwapPayload) Descriptor
deprecated
func (*SwapPayload) Descriptor() ([]byte, []int)
Deprecated: Use SwapPayload.ProtoReflect.Descriptor instead.
func (*SwapPayload) GetCommitment ¶
func (x *SwapPayload) GetCommitment() *v1alpha12.StateCommitment
func (*SwapPayload) GetEncryptedSwap ¶
func (x *SwapPayload) GetEncryptedSwap() []byte
func (*SwapPayload) ProtoMessage ¶
func (*SwapPayload) ProtoMessage()
func (*SwapPayload) ProtoReflect ¶
func (x *SwapPayload) ProtoReflect() protoreflect.Message
func (*SwapPayload) Reset ¶
func (x *SwapPayload) Reset()
func (*SwapPayload) String ¶
func (x *SwapPayload) String() string
type SwapPlaintext ¶
type SwapPlaintext struct { // The trading pair to swap. TradingPair *TradingPair `protobuf:"bytes,1,opt,name=trading_pair,json=tradingPair,proto3" json:"trading_pair,omitempty"` // Input amount of asset 1 Delta_1I *v1alpha13.Amount `protobuf:"bytes,2,opt,name=delta_1_i,json=delta1I,proto3" json:"delta_1_i,omitempty"` // Input amount of asset 2 Delta_2I *v1alpha13.Amount `protobuf:"bytes,3,opt,name=delta_2_i,json=delta2I,proto3" json:"delta_2_i,omitempty"` // Pre-paid fee to claim the swap ClaimFee *v1alpha11.Fee `protobuf:"bytes,4,opt,name=claim_fee,json=claimFee,proto3" json:"claim_fee,omitempty"` // Address that will claim the swap outputs via SwapClaim. ClaimAddress *v1alpha15.Address `protobuf:"bytes,5,opt,name=claim_address,json=claimAddress,proto3" json:"claim_address,omitempty"` // Swap rseed (blinding factors are derived from this) Rseed []byte `protobuf:"bytes,6,opt,name=rseed,proto3" json:"rseed,omitempty"` // contains filtered or unexported fields }
func (*SwapPlaintext) Descriptor
deprecated
func (*SwapPlaintext) Descriptor() ([]byte, []int)
Deprecated: Use SwapPlaintext.ProtoReflect.Descriptor instead.
func (*SwapPlaintext) GetClaimAddress ¶
func (x *SwapPlaintext) GetClaimAddress() *v1alpha15.Address
func (*SwapPlaintext) GetClaimFee ¶
func (x *SwapPlaintext) GetClaimFee() *v1alpha11.Fee
func (*SwapPlaintext) GetDelta_1I ¶
func (x *SwapPlaintext) GetDelta_1I() *v1alpha13.Amount
func (*SwapPlaintext) GetDelta_2I ¶
func (x *SwapPlaintext) GetDelta_2I() *v1alpha13.Amount
func (*SwapPlaintext) GetRseed ¶
func (x *SwapPlaintext) GetRseed() []byte
func (*SwapPlaintext) GetTradingPair ¶
func (x *SwapPlaintext) GetTradingPair() *TradingPair
func (*SwapPlaintext) ProtoMessage ¶
func (*SwapPlaintext) ProtoMessage()
func (*SwapPlaintext) ProtoReflect ¶
func (x *SwapPlaintext) ProtoReflect() protoreflect.Message
func (*SwapPlaintext) Reset ¶
func (x *SwapPlaintext) Reset()
func (*SwapPlaintext) String ¶
func (x *SwapPlaintext) String() string
type SwapPlan ¶
type SwapPlan struct { // The plaintext version of the swap to be performed. SwapPlaintext *SwapPlaintext `protobuf:"bytes,1,opt,name=swap_plaintext,json=swapPlaintext,proto3" json:"swap_plaintext,omitempty"` // The blinding factor for the fee commitment. The fee in the SwapPlan is private to prevent linkability with the SwapClaim. FeeBlinding []byte `protobuf:"bytes,2,opt,name=fee_blinding,json=feeBlinding,proto3" json:"fee_blinding,omitempty"` // The first blinding factor to use for the ZK swap proof. ProofBlindingR []byte `protobuf:"bytes,3,opt,name=proof_blinding_r,json=proofBlindingR,proto3" json:"proof_blinding_r,omitempty"` // The second blinding factor to use for the ZK swap proof. ProofBlindingS []byte `protobuf:"bytes,4,opt,name=proof_blinding_s,json=proofBlindingS,proto3" json:"proof_blinding_s,omitempty"` // contains filtered or unexported fields }
func (*SwapPlan) Descriptor
deprecated
func (*SwapPlan) GetFeeBlinding ¶
func (*SwapPlan) GetProofBlindingR ¶
func (*SwapPlan) GetProofBlindingS ¶
func (*SwapPlan) GetSwapPlaintext ¶
func (x *SwapPlan) GetSwapPlaintext() *SwapPlaintext
func (*SwapPlan) ProtoMessage ¶
func (*SwapPlan) ProtoMessage()
func (*SwapPlan) ProtoReflect ¶
func (x *SwapPlan) ProtoReflect() protoreflect.Message
type SwapView ¶
type SwapView struct { // Types that are assignable to SwapView: // // *SwapView_Visible_ // *SwapView_Opaque_ SwapView isSwapView_SwapView `protobuf_oneof:"swap_view"` // contains filtered or unexported fields }
func (*SwapView) Descriptor
deprecated
func (*SwapView) GetOpaque ¶
func (x *SwapView) GetOpaque() *SwapView_Opaque
func (*SwapView) GetSwapView ¶
func (m *SwapView) GetSwapView() isSwapView_SwapView
func (*SwapView) GetVisible ¶
func (x *SwapView) GetVisible() *SwapView_Visible
func (*SwapView) ProtoMessage ¶
func (*SwapView) ProtoMessage()
func (*SwapView) ProtoReflect ¶
func (x *SwapView) ProtoReflect() protoreflect.Message
type SwapView_Opaque ¶
type SwapView_Opaque struct { Swap *Swap `protobuf:"bytes,1,opt,name=swap,proto3" json:"swap,omitempty"` // contains filtered or unexported fields }
func (*SwapView_Opaque) Descriptor
deprecated
func (*SwapView_Opaque) Descriptor() ([]byte, []int)
Deprecated: Use SwapView_Opaque.ProtoReflect.Descriptor instead.
func (*SwapView_Opaque) GetSwap ¶
func (x *SwapView_Opaque) GetSwap() *Swap
func (*SwapView_Opaque) ProtoMessage ¶
func (*SwapView_Opaque) ProtoMessage()
func (*SwapView_Opaque) ProtoReflect ¶
func (x *SwapView_Opaque) ProtoReflect() protoreflect.Message
func (*SwapView_Opaque) Reset ¶
func (x *SwapView_Opaque) Reset()
func (*SwapView_Opaque) String ¶
func (x *SwapView_Opaque) String() string
type SwapView_Opaque_ ¶
type SwapView_Opaque_ struct {
Opaque *SwapView_Opaque `protobuf:"bytes,2,opt,name=opaque,proto3,oneof"`
}
type SwapView_Visible ¶
type SwapView_Visible struct { Swap *Swap `protobuf:"bytes,1,opt,name=swap,proto3" json:"swap,omitempty"` SwapPlaintext *SwapPlaintext `protobuf:"bytes,3,opt,name=swap_plaintext,json=swapPlaintext,proto3" json:"swap_plaintext,omitempty"` // contains filtered or unexported fields }
func (*SwapView_Visible) Descriptor
deprecated
func (*SwapView_Visible) Descriptor() ([]byte, []int)
Deprecated: Use SwapView_Visible.ProtoReflect.Descriptor instead.
func (*SwapView_Visible) GetSwap ¶
func (x *SwapView_Visible) GetSwap() *Swap
func (*SwapView_Visible) GetSwapPlaintext ¶
func (x *SwapView_Visible) GetSwapPlaintext() *SwapPlaintext
func (*SwapView_Visible) ProtoMessage ¶
func (*SwapView_Visible) ProtoMessage()
func (*SwapView_Visible) ProtoReflect ¶
func (x *SwapView_Visible) ProtoReflect() protoreflect.Message
func (*SwapView_Visible) Reset ¶
func (x *SwapView_Visible) Reset()
func (*SwapView_Visible) String ¶
func (x *SwapView_Visible) String() string
type SwapView_Visible_ ¶
type SwapView_Visible_ struct {
Visible *SwapView_Visible `protobuf:"bytes,1,opt,name=visible,proto3,oneof"`
}
type TradingFunction ¶
type TradingFunction struct { Component *BareTradingFunction `protobuf:"bytes,1,opt,name=component,proto3" json:"component,omitempty"` Pair *TradingPair `protobuf:"bytes,2,opt,name=pair,proto3" json:"pair,omitempty"` // contains filtered or unexported fields }
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` and `gamma = 1 - fee`. The trading function is frequently referred to as "phi".
func (*TradingFunction) Descriptor
deprecated
func (*TradingFunction) Descriptor() ([]byte, []int)
Deprecated: Use TradingFunction.ProtoReflect.Descriptor instead.
func (*TradingFunction) GetComponent ¶
func (x *TradingFunction) GetComponent() *BareTradingFunction
func (*TradingFunction) GetPair ¶
func (x *TradingFunction) GetPair() *TradingPair
func (*TradingFunction) ProtoMessage ¶
func (*TradingFunction) ProtoMessage()
func (*TradingFunction) ProtoReflect ¶
func (x *TradingFunction) ProtoReflect() protoreflect.Message
func (*TradingFunction) Reset ¶
func (x *TradingFunction) Reset()
func (*TradingFunction) String ¶
func (x *TradingFunction) String() string
type TradingPair ¶
type TradingPair struct { // The first asset of the pair. Asset_1 *v1alpha14.AssetId `protobuf:"bytes,1,opt,name=asset_1,json=asset1,proto3" json:"asset_1,omitempty"` // The second asset of the pair. Asset_2 *v1alpha14.AssetId `protobuf:"bytes,2,opt,name=asset_2,json=asset2,proto3" json:"asset_2,omitempty"` // contains filtered or unexported fields }
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.
func (*TradingPair) Descriptor
deprecated
func (*TradingPair) Descriptor() ([]byte, []int)
Deprecated: Use TradingPair.ProtoReflect.Descriptor instead.
func (*TradingPair) GetAsset_1 ¶
func (x *TradingPair) GetAsset_1() *v1alpha14.AssetId
func (*TradingPair) GetAsset_2 ¶
func (x *TradingPair) GetAsset_2() *v1alpha14.AssetId
func (*TradingPair) ProtoMessage ¶
func (*TradingPair) ProtoMessage()
func (*TradingPair) ProtoReflect ¶
func (x *TradingPair) ProtoReflect() protoreflect.Message
func (*TradingPair) Reset ¶
func (x *TradingPair) Reset()
func (*TradingPair) String ¶
func (x *TradingPair) String() string
type ZKSwapClaimProof ¶
type ZKSwapClaimProof struct { Inner []byte `protobuf:"bytes,1,opt,name=inner,proto3" json:"inner,omitempty"` // contains filtered or unexported fields }
A Penumbra ZK swap claim proof.
func (*ZKSwapClaimProof) Descriptor
deprecated
func (*ZKSwapClaimProof) Descriptor() ([]byte, []int)
Deprecated: Use ZKSwapClaimProof.ProtoReflect.Descriptor instead.
func (*ZKSwapClaimProof) GetInner ¶
func (x *ZKSwapClaimProof) GetInner() []byte
func (*ZKSwapClaimProof) ProtoMessage ¶
func (*ZKSwapClaimProof) ProtoMessage()
func (*ZKSwapClaimProof) ProtoReflect ¶
func (x *ZKSwapClaimProof) ProtoReflect() protoreflect.Message
func (*ZKSwapClaimProof) Reset ¶
func (x *ZKSwapClaimProof) Reset()
func (*ZKSwapClaimProof) String ¶
func (x *ZKSwapClaimProof) String() string
type ZKSwapProof ¶
type ZKSwapProof struct { Inner []byte `protobuf:"bytes,1,opt,name=inner,proto3" json:"inner,omitempty"` // contains filtered or unexported fields }
A Penumbra ZK swap proof.
func (*ZKSwapProof) Descriptor
deprecated
func (*ZKSwapProof) Descriptor() ([]byte, []int)
Deprecated: Use ZKSwapProof.ProtoReflect.Descriptor instead.
func (*ZKSwapProof) GetInner ¶
func (x *ZKSwapProof) GetInner() []byte
func (*ZKSwapProof) ProtoMessage ¶
func (*ZKSwapProof) ProtoMessage()
func (*ZKSwapProof) ProtoReflect ¶
func (x *ZKSwapProof) ProtoReflect() protoreflect.Message
func (*ZKSwapProof) Reset ¶
func (x *ZKSwapProof) Reset()
func (*ZKSwapProof) String ¶
func (x *ZKSwapProof) String() string