Documentation
¶
Index ¶
- Variables
- type BareTradingFunction
- func (*BareTradingFunction) Descriptor() ([]byte, []int)
- func (m *BareTradingFunction) GetFee() uint32
- func (m *BareTradingFunction) GetP() *v1alpha1.Amount
- func (m *BareTradingFunction) GetQ() *v1alpha1.Amount
- func (m *BareTradingFunction) Marshal() (dAtA []byte, err error)
- func (m *BareTradingFunction) MarshalTo(dAtA []byte) (int, error)
- func (m *BareTradingFunction) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*BareTradingFunction) ProtoMessage()
- func (m *BareTradingFunction) Reset()
- func (m *BareTradingFunction) Size() (n int)
- func (m *BareTradingFunction) String() string
- func (m *BareTradingFunction) Unmarshal(dAtA []byte) error
- func (m *BareTradingFunction) XXX_DiscardUnknown()
- func (m *BareTradingFunction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BareTradingFunction) XXX_Merge(src proto.Message)
- func (m *BareTradingFunction) XXX_Size() int
- func (m *BareTradingFunction) XXX_Unmarshal(b []byte) error
- type BatchSwapOutputData
- func (*BatchSwapOutputData) Descriptor() ([]byte, []int)
- func (m *BatchSwapOutputData) GetDelta_1() *v1alpha1.Amount
- func (m *BatchSwapOutputData) GetDelta_2() *v1alpha1.Amount
- func (m *BatchSwapOutputData) GetEpochStartingHeight() uint64
- func (m *BatchSwapOutputData) GetHeight() uint64
- func (m *BatchSwapOutputData) GetLambda_1() *v1alpha1.Amount
- func (m *BatchSwapOutputData) GetLambda_2() *v1alpha1.Amount
- func (m *BatchSwapOutputData) GetTradingPair() *TradingPair
- func (m *BatchSwapOutputData) GetUnfilled_1() *v1alpha1.Amount
- func (m *BatchSwapOutputData) GetUnfilled_2() *v1alpha1.Amount
- func (m *BatchSwapOutputData) Marshal() (dAtA []byte, err error)
- func (m *BatchSwapOutputData) MarshalTo(dAtA []byte) (int, error)
- func (m *BatchSwapOutputData) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*BatchSwapOutputData) ProtoMessage()
- func (m *BatchSwapOutputData) Reset()
- func (m *BatchSwapOutputData) Size() (n int)
- func (m *BatchSwapOutputData) String() string
- func (m *BatchSwapOutputData) Unmarshal(dAtA []byte) error
- func (m *BatchSwapOutputData) XXX_DiscardUnknown()
- func (m *BatchSwapOutputData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BatchSwapOutputData) XXX_Merge(src proto.Message)
- func (m *BatchSwapOutputData) XXX_Size() int
- func (m *BatchSwapOutputData) XXX_Unmarshal(b []byte) error
- type DirectedTradingPair
- func (*DirectedTradingPair) Descriptor() ([]byte, []int)
- func (m *DirectedTradingPair) GetEnd() *v1alpha1.AssetId
- func (m *DirectedTradingPair) GetStart() *v1alpha1.AssetId
- func (m *DirectedTradingPair) Marshal() (dAtA []byte, err error)
- func (m *DirectedTradingPair) MarshalTo(dAtA []byte) (int, error)
- func (m *DirectedTradingPair) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DirectedTradingPair) ProtoMessage()
- func (m *DirectedTradingPair) Reset()
- func (m *DirectedTradingPair) Size() (n int)
- func (m *DirectedTradingPair) String() string
- func (m *DirectedTradingPair) Unmarshal(dAtA []byte) error
- func (m *DirectedTradingPair) XXX_DiscardUnknown()
- func (m *DirectedTradingPair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DirectedTradingPair) XXX_Merge(src proto.Message)
- func (m *DirectedTradingPair) XXX_Size() int
- func (m *DirectedTradingPair) XXX_Unmarshal(b []byte) error
- type LpNft
- func (*LpNft) Descriptor() ([]byte, []int)
- func (m *LpNft) GetPositionId() *PositionId
- func (m *LpNft) GetState() *PositionState
- func (m *LpNft) Marshal() (dAtA []byte, err error)
- func (m *LpNft) MarshalTo(dAtA []byte) (int, error)
- func (m *LpNft) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*LpNft) ProtoMessage()
- func (m *LpNft) Reset()
- func (m *LpNft) Size() (n int)
- func (m *LpNft) String() string
- func (m *LpNft) Unmarshal(dAtA []byte) error
- func (m *LpNft) XXX_DiscardUnknown()
- func (m *LpNft) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LpNft) XXX_Merge(src proto.Message)
- func (m *LpNft) XXX_Size() int
- func (m *LpNft) XXX_Unmarshal(b []byte) error
- type Position
- func (*Position) Descriptor() ([]byte, []int)
- func (m *Position) GetCloseOnFill() bool
- func (m *Position) GetNonce() []byte
- func (m *Position) GetPhi() *TradingFunction
- func (m *Position) GetReserves() *Reserves
- func (m *Position) GetState() *PositionState
- func (m *Position) Marshal() (dAtA []byte, err error)
- func (m *Position) MarshalTo(dAtA []byte) (int, error)
- func (m *Position) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Position) ProtoMessage()
- func (m *Position) Reset()
- func (m *Position) Size() (n int)
- func (m *Position) String() string
- func (m *Position) Unmarshal(dAtA []byte) error
- func (m *Position) XXX_DiscardUnknown()
- func (m *Position) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Position) XXX_Merge(src proto.Message)
- func (m *Position) XXX_Size() int
- func (m *Position) XXX_Unmarshal(b []byte) error
- type PositionClose
- func (*PositionClose) Descriptor() ([]byte, []int)
- func (m *PositionClose) GetPositionId() *PositionId
- func (m *PositionClose) Marshal() (dAtA []byte, err error)
- func (m *PositionClose) MarshalTo(dAtA []byte) (int, error)
- func (m *PositionClose) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PositionClose) ProtoMessage()
- func (m *PositionClose) Reset()
- func (m *PositionClose) Size() (n int)
- func (m *PositionClose) String() string
- func (m *PositionClose) Unmarshal(dAtA []byte) error
- func (m *PositionClose) XXX_DiscardUnknown()
- func (m *PositionClose) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PositionClose) XXX_Merge(src proto.Message)
- func (m *PositionClose) XXX_Size() int
- func (m *PositionClose) XXX_Unmarshal(b []byte) error
- type PositionId
- func (*PositionId) Descriptor() ([]byte, []int)
- func (m *PositionId) GetAltBech32M() string
- func (m *PositionId) GetInner() []byte
- func (m *PositionId) Marshal() (dAtA []byte, err error)
- func (m *PositionId) MarshalTo(dAtA []byte) (int, error)
- func (m *PositionId) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PositionId) ProtoMessage()
- func (m *PositionId) Reset()
- func (m *PositionId) Size() (n int)
- func (m *PositionId) String() string
- func (m *PositionId) Unmarshal(dAtA []byte) error
- func (m *PositionId) XXX_DiscardUnknown()
- func (m *PositionId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PositionId) XXX_Merge(src proto.Message)
- func (m *PositionId) XXX_Size() int
- func (m *PositionId) XXX_Unmarshal(b []byte) error
- type PositionOpen
- func (*PositionOpen) Descriptor() ([]byte, []int)
- func (m *PositionOpen) GetPosition() *Position
- func (m *PositionOpen) Marshal() (dAtA []byte, err error)
- func (m *PositionOpen) MarshalTo(dAtA []byte) (int, error)
- func (m *PositionOpen) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PositionOpen) ProtoMessage()
- func (m *PositionOpen) Reset()
- func (m *PositionOpen) Size() (n int)
- func (m *PositionOpen) String() string
- func (m *PositionOpen) Unmarshal(dAtA []byte) error
- func (m *PositionOpen) XXX_DiscardUnknown()
- func (m *PositionOpen) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PositionOpen) XXX_Merge(src proto.Message)
- func (m *PositionOpen) XXX_Size() int
- func (m *PositionOpen) XXX_Unmarshal(b []byte) error
- type PositionRewardClaim
- func (*PositionRewardClaim) Descriptor() ([]byte, []int)
- func (m *PositionRewardClaim) GetPositionId() *PositionId
- func (m *PositionRewardClaim) GetRewardsCommitment() *v1alpha1.BalanceCommitment
- func (m *PositionRewardClaim) Marshal() (dAtA []byte, err error)
- func (m *PositionRewardClaim) MarshalTo(dAtA []byte) (int, error)
- func (m *PositionRewardClaim) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PositionRewardClaim) ProtoMessage()
- func (m *PositionRewardClaim) Reset()
- func (m *PositionRewardClaim) Size() (n int)
- func (m *PositionRewardClaim) String() string
- func (m *PositionRewardClaim) Unmarshal(dAtA []byte) error
- func (m *PositionRewardClaim) XXX_DiscardUnknown()
- func (m *PositionRewardClaim) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PositionRewardClaim) XXX_Merge(src proto.Message)
- func (m *PositionRewardClaim) XXX_Size() int
- func (m *PositionRewardClaim) XXX_Unmarshal(b []byte) error
- type PositionRewardClaimPlan
- func (*PositionRewardClaimPlan) Descriptor() ([]byte, []int)
- func (m *PositionRewardClaimPlan) GetReserves() *Reserves
- func (m *PositionRewardClaimPlan) Marshal() (dAtA []byte, err error)
- func (m *PositionRewardClaimPlan) MarshalTo(dAtA []byte) (int, error)
- func (m *PositionRewardClaimPlan) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PositionRewardClaimPlan) ProtoMessage()
- func (m *PositionRewardClaimPlan) Reset()
- func (m *PositionRewardClaimPlan) Size() (n int)
- func (m *PositionRewardClaimPlan) String() string
- func (m *PositionRewardClaimPlan) Unmarshal(dAtA []byte) error
- func (m *PositionRewardClaimPlan) XXX_DiscardUnknown()
- func (m *PositionRewardClaimPlan) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PositionRewardClaimPlan) XXX_Merge(src proto.Message)
- func (m *PositionRewardClaimPlan) XXX_Size() int
- func (m *PositionRewardClaimPlan) XXX_Unmarshal(b []byte) error
- type PositionState
- func (*PositionState) Descriptor() ([]byte, []int)
- func (m *PositionState) GetState() PositionState_PositionStateEnum
- func (m *PositionState) Marshal() (dAtA []byte, err error)
- func (m *PositionState) MarshalTo(dAtA []byte) (int, error)
- func (m *PositionState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PositionState) ProtoMessage()
- func (m *PositionState) Reset()
- func (m *PositionState) Size() (n int)
- func (m *PositionState) String() string
- func (m *PositionState) Unmarshal(dAtA []byte) error
- func (m *PositionState) XXX_DiscardUnknown()
- func (m *PositionState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PositionState) XXX_Merge(src proto.Message)
- func (m *PositionState) XXX_Size() int
- func (m *PositionState) XXX_Unmarshal(b []byte) error
- type PositionState_PositionStateEnum
- type PositionWithdraw
- func (*PositionWithdraw) Descriptor() ([]byte, []int)
- func (m *PositionWithdraw) GetPositionId() *PositionId
- func (m *PositionWithdraw) GetReservesCommitment() *v1alpha1.BalanceCommitment
- func (m *PositionWithdraw) Marshal() (dAtA []byte, err error)
- func (m *PositionWithdraw) MarshalTo(dAtA []byte) (int, error)
- func (m *PositionWithdraw) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PositionWithdraw) ProtoMessage()
- func (m *PositionWithdraw) Reset()
- func (m *PositionWithdraw) Size() (n int)
- func (m *PositionWithdraw) String() string
- func (m *PositionWithdraw) Unmarshal(dAtA []byte) error
- func (m *PositionWithdraw) XXX_DiscardUnknown()
- func (m *PositionWithdraw) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PositionWithdraw) XXX_Merge(src proto.Message)
- func (m *PositionWithdraw) XXX_Size() int
- func (m *PositionWithdraw) XXX_Unmarshal(b []byte) error
- type PositionWithdrawPlan
- func (*PositionWithdrawPlan) Descriptor() ([]byte, []int)
- func (m *PositionWithdrawPlan) GetPair() *TradingPair
- func (m *PositionWithdrawPlan) GetPositionId() *PositionId
- func (m *PositionWithdrawPlan) GetReserves() *Reserves
- func (m *PositionWithdrawPlan) Marshal() (dAtA []byte, err error)
- func (m *PositionWithdrawPlan) MarshalTo(dAtA []byte) (int, error)
- func (m *PositionWithdrawPlan) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PositionWithdrawPlan) ProtoMessage()
- func (m *PositionWithdrawPlan) Reset()
- func (m *PositionWithdrawPlan) Size() (n int)
- func (m *PositionWithdrawPlan) String() string
- func (m *PositionWithdrawPlan) Unmarshal(dAtA []byte) error
- func (m *PositionWithdrawPlan) XXX_DiscardUnknown()
- func (m *PositionWithdrawPlan) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PositionWithdrawPlan) XXX_Merge(src proto.Message)
- func (m *PositionWithdrawPlan) XXX_Size() int
- func (m *PositionWithdrawPlan) XXX_Unmarshal(b []byte) error
- type Reserves
- func (*Reserves) Descriptor() ([]byte, []int)
- func (m *Reserves) GetR1() *v1alpha1.Amount
- func (m *Reserves) GetR2() *v1alpha1.Amount
- func (m *Reserves) Marshal() (dAtA []byte, err error)
- func (m *Reserves) MarshalTo(dAtA []byte) (int, error)
- func (m *Reserves) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Reserves) ProtoMessage()
- func (m *Reserves) Reset()
- func (m *Reserves) Size() (n int)
- func (m *Reserves) String() string
- func (m *Reserves) Unmarshal(dAtA []byte) error
- func (m *Reserves) XXX_DiscardUnknown()
- func (m *Reserves) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Reserves) XXX_Merge(src proto.Message)
- func (m *Reserves) XXX_Size() int
- func (m *Reserves) XXX_Unmarshal(b []byte) error
- type Swap
- func (*Swap) Descriptor() ([]byte, []int)
- func (m *Swap) GetBody() *SwapBody
- func (m *Swap) GetProof() *v1alpha1.ZKSwapProof
- func (m *Swap) Marshal() (dAtA []byte, err error)
- func (m *Swap) MarshalTo(dAtA []byte) (int, error)
- func (m *Swap) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Swap) ProtoMessage()
- func (m *Swap) Reset()
- func (m *Swap) Size() (n int)
- func (m *Swap) String() string
- func (m *Swap) Unmarshal(dAtA []byte) error
- func (m *Swap) XXX_DiscardUnknown()
- func (m *Swap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Swap) XXX_Merge(src proto.Message)
- func (m *Swap) XXX_Size() int
- func (m *Swap) XXX_Unmarshal(b []byte) error
- type SwapBody
- func (*SwapBody) Descriptor() ([]byte, []int)
- func (m *SwapBody) GetDelta_1I() *v1alpha1.Amount
- func (m *SwapBody) GetDelta_2I() *v1alpha1.Amount
- func (m *SwapBody) GetFeeCommitment() *v1alpha1.BalanceCommitment
- func (m *SwapBody) GetPayload() *SwapPayload
- func (m *SwapBody) GetTradingPair() *TradingPair
- func (m *SwapBody) Marshal() (dAtA []byte, err error)
- func (m *SwapBody) MarshalTo(dAtA []byte) (int, error)
- func (m *SwapBody) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SwapBody) ProtoMessage()
- func (m *SwapBody) Reset()
- func (m *SwapBody) Size() (n int)
- func (m *SwapBody) String() string
- func (m *SwapBody) Unmarshal(dAtA []byte) error
- func (m *SwapBody) XXX_DiscardUnknown()
- func (m *SwapBody) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SwapBody) XXX_Merge(src proto.Message)
- func (m *SwapBody) XXX_Size() int
- func (m *SwapBody) XXX_Unmarshal(b []byte) error
- type SwapClaim
- func (*SwapClaim) Descriptor() ([]byte, []int)
- func (m *SwapClaim) GetBody() *SwapClaimBody
- func (m *SwapClaim) GetEpochDuration() uint64
- func (m *SwapClaim) GetProof() []byte
- func (m *SwapClaim) Marshal() (dAtA []byte, err error)
- func (m *SwapClaim) MarshalTo(dAtA []byte) (int, error)
- func (m *SwapClaim) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SwapClaim) ProtoMessage()
- func (m *SwapClaim) Reset()
- func (m *SwapClaim) Size() (n int)
- func (m *SwapClaim) String() string
- func (m *SwapClaim) Unmarshal(dAtA []byte) error
- func (m *SwapClaim) XXX_DiscardUnknown()
- func (m *SwapClaim) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SwapClaim) XXX_Merge(src proto.Message)
- func (m *SwapClaim) XXX_Size() int
- func (m *SwapClaim) XXX_Unmarshal(b []byte) error
- type SwapClaimBody
- func (*SwapClaimBody) Descriptor() ([]byte, []int)
- func (m *SwapClaimBody) GetFee() *v1alpha1.Fee
- func (m *SwapClaimBody) GetNullifier() *v1alpha1.Nullifier
- func (m *SwapClaimBody) GetOutputData() *BatchSwapOutputData
- func (m *SwapClaimBody) GetOutput_1Commitment() *v1alpha1.StateCommitment
- func (m *SwapClaimBody) GetOutput_2Commitment() *v1alpha1.StateCommitment
- func (m *SwapClaimBody) Marshal() (dAtA []byte, err error)
- func (m *SwapClaimBody) MarshalTo(dAtA []byte) (int, error)
- func (m *SwapClaimBody) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SwapClaimBody) ProtoMessage()
- func (m *SwapClaimBody) Reset()
- func (m *SwapClaimBody) Size() (n int)
- func (m *SwapClaimBody) String() string
- func (m *SwapClaimBody) Unmarshal(dAtA []byte) error
- func (m *SwapClaimBody) XXX_DiscardUnknown()
- func (m *SwapClaimBody) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SwapClaimBody) XXX_Merge(src proto.Message)
- func (m *SwapClaimBody) XXX_Size() int
- func (m *SwapClaimBody) XXX_Unmarshal(b []byte) error
- type SwapClaimPlan
- func (*SwapClaimPlan) Descriptor() ([]byte, []int)
- func (m *SwapClaimPlan) GetEpochDuration() uint64
- func (m *SwapClaimPlan) GetOutputData() *BatchSwapOutputData
- func (m *SwapClaimPlan) GetPosition() uint64
- func (m *SwapClaimPlan) GetProofBlindingR() []byte
- func (m *SwapClaimPlan) GetProofBlindingS() []byte
- func (m *SwapClaimPlan) GetSwapPlaintext() *SwapPlaintext
- func (m *SwapClaimPlan) Marshal() (dAtA []byte, err error)
- func (m *SwapClaimPlan) MarshalTo(dAtA []byte) (int, error)
- func (m *SwapClaimPlan) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SwapClaimPlan) ProtoMessage()
- func (m *SwapClaimPlan) Reset()
- func (m *SwapClaimPlan) Size() (n int)
- func (m *SwapClaimPlan) String() string
- func (m *SwapClaimPlan) Unmarshal(dAtA []byte) error
- func (m *SwapClaimPlan) XXX_DiscardUnknown()
- func (m *SwapClaimPlan) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SwapClaimPlan) XXX_Merge(src proto.Message)
- func (m *SwapClaimPlan) XXX_Size() int
- func (m *SwapClaimPlan) XXX_Unmarshal(b []byte) error
- type SwapClaimView
- func (*SwapClaimView) Descriptor() ([]byte, []int)
- func (m *SwapClaimView) GetOpaque() *SwapClaimView_Opaque
- func (m *SwapClaimView) GetSwapClaimView() isSwapClaimView_SwapClaimView
- func (m *SwapClaimView) GetVisible() *SwapClaimView_Visible
- func (m *SwapClaimView) Marshal() (dAtA []byte, err error)
- func (m *SwapClaimView) MarshalTo(dAtA []byte) (int, error)
- func (m *SwapClaimView) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SwapClaimView) ProtoMessage()
- func (m *SwapClaimView) Reset()
- func (m *SwapClaimView) Size() (n int)
- func (m *SwapClaimView) String() string
- func (m *SwapClaimView) Unmarshal(dAtA []byte) error
- func (m *SwapClaimView) XXX_DiscardUnknown()
- func (m *SwapClaimView) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SwapClaimView) XXX_Merge(src proto.Message)
- func (*SwapClaimView) XXX_OneofWrappers() []interface{}
- func (m *SwapClaimView) XXX_Size() int
- func (m *SwapClaimView) XXX_Unmarshal(b []byte) error
- type SwapClaimView_Opaque
- func (*SwapClaimView_Opaque) Descriptor() ([]byte, []int)
- func (m *SwapClaimView_Opaque) GetSwapClaim() *SwapClaim
- func (m *SwapClaimView_Opaque) Marshal() (dAtA []byte, err error)
- func (m *SwapClaimView_Opaque) MarshalTo(dAtA []byte) (int, error)
- func (m *SwapClaimView_Opaque) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SwapClaimView_Opaque) ProtoMessage()
- func (m *SwapClaimView_Opaque) Reset()
- func (m *SwapClaimView_Opaque) Size() (n int)
- func (m *SwapClaimView_Opaque) String() string
- func (m *SwapClaimView_Opaque) Unmarshal(dAtA []byte) error
- func (m *SwapClaimView_Opaque) XXX_DiscardUnknown()
- func (m *SwapClaimView_Opaque) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SwapClaimView_Opaque) XXX_Merge(src proto.Message)
- func (m *SwapClaimView_Opaque) XXX_Size() int
- func (m *SwapClaimView_Opaque) XXX_Unmarshal(b []byte) error
- type SwapClaimView_Opaque_
- type SwapClaimView_Visible
- func (*SwapClaimView_Visible) Descriptor() ([]byte, []int)
- func (m *SwapClaimView_Visible) GetOutput_1() *v1alpha1.NoteView
- func (m *SwapClaimView_Visible) GetOutput_2() *v1alpha1.NoteView
- func (m *SwapClaimView_Visible) GetSwapClaim() *SwapClaim
- func (m *SwapClaimView_Visible) Marshal() (dAtA []byte, err error)
- func (m *SwapClaimView_Visible) MarshalTo(dAtA []byte) (int, error)
- func (m *SwapClaimView_Visible) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SwapClaimView_Visible) ProtoMessage()
- func (m *SwapClaimView_Visible) Reset()
- func (m *SwapClaimView_Visible) Size() (n int)
- func (m *SwapClaimView_Visible) String() string
- func (m *SwapClaimView_Visible) Unmarshal(dAtA []byte) error
- func (m *SwapClaimView_Visible) XXX_DiscardUnknown()
- func (m *SwapClaimView_Visible) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SwapClaimView_Visible) XXX_Merge(src proto.Message)
- func (m *SwapClaimView_Visible) XXX_Size() int
- func (m *SwapClaimView_Visible) XXX_Unmarshal(b []byte) error
- type SwapClaimView_Visible_
- type SwapExecution
- func (*SwapExecution) Descriptor() ([]byte, []int)
- func (m *SwapExecution) GetInput() *v1alpha1.Value
- func (m *SwapExecution) GetOutput() *v1alpha1.Value
- func (m *SwapExecution) GetTraces() []*SwapExecution_Trace
- func (m *SwapExecution) Marshal() (dAtA []byte, err error)
- func (m *SwapExecution) MarshalTo(dAtA []byte) (int, error)
- func (m *SwapExecution) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SwapExecution) ProtoMessage()
- func (m *SwapExecution) Reset()
- func (m *SwapExecution) Size() (n int)
- func (m *SwapExecution) String() string
- func (m *SwapExecution) Unmarshal(dAtA []byte) error
- func (m *SwapExecution) XXX_DiscardUnknown()
- func (m *SwapExecution) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SwapExecution) XXX_Merge(src proto.Message)
- func (m *SwapExecution) XXX_Size() int
- func (m *SwapExecution) XXX_Unmarshal(b []byte) error
- type SwapExecution_Trace
- func (*SwapExecution_Trace) Descriptor() ([]byte, []int)
- func (m *SwapExecution_Trace) GetValue() []*v1alpha1.Value
- func (m *SwapExecution_Trace) Marshal() (dAtA []byte, err error)
- func (m *SwapExecution_Trace) MarshalTo(dAtA []byte) (int, error)
- func (m *SwapExecution_Trace) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SwapExecution_Trace) ProtoMessage()
- func (m *SwapExecution_Trace) Reset()
- func (m *SwapExecution_Trace) Size() (n int)
- func (m *SwapExecution_Trace) String() string
- func (m *SwapExecution_Trace) Unmarshal(dAtA []byte) error
- func (m *SwapExecution_Trace) XXX_DiscardUnknown()
- func (m *SwapExecution_Trace) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SwapExecution_Trace) XXX_Merge(src proto.Message)
- func (m *SwapExecution_Trace) XXX_Size() int
- func (m *SwapExecution_Trace) XXX_Unmarshal(b []byte) error
- type SwapPayload
- func (*SwapPayload) Descriptor() ([]byte, []int)
- func (m *SwapPayload) GetCommitment() *v1alpha1.StateCommitment
- func (m *SwapPayload) GetEncryptedSwap() []byte
- func (m *SwapPayload) Marshal() (dAtA []byte, err error)
- func (m *SwapPayload) MarshalTo(dAtA []byte) (int, error)
- func (m *SwapPayload) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SwapPayload) ProtoMessage()
- func (m *SwapPayload) Reset()
- func (m *SwapPayload) Size() (n int)
- func (m *SwapPayload) String() string
- func (m *SwapPayload) Unmarshal(dAtA []byte) error
- func (m *SwapPayload) XXX_DiscardUnknown()
- func (m *SwapPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SwapPayload) XXX_Merge(src proto.Message)
- func (m *SwapPayload) XXX_Size() int
- func (m *SwapPayload) XXX_Unmarshal(b []byte) error
- type SwapPlaintext
- func (*SwapPlaintext) Descriptor() ([]byte, []int)
- func (m *SwapPlaintext) GetClaimAddress() *v1alpha1.Address
- func (m *SwapPlaintext) GetClaimFee() *v1alpha1.Fee
- func (m *SwapPlaintext) GetDelta_1I() *v1alpha1.Amount
- func (m *SwapPlaintext) GetDelta_2I() *v1alpha1.Amount
- func (m *SwapPlaintext) GetRseed() []byte
- func (m *SwapPlaintext) GetTradingPair() *TradingPair
- func (m *SwapPlaintext) Marshal() (dAtA []byte, err error)
- func (m *SwapPlaintext) MarshalTo(dAtA []byte) (int, error)
- func (m *SwapPlaintext) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SwapPlaintext) ProtoMessage()
- func (m *SwapPlaintext) Reset()
- func (m *SwapPlaintext) Size() (n int)
- func (m *SwapPlaintext) String() string
- func (m *SwapPlaintext) Unmarshal(dAtA []byte) error
- func (m *SwapPlaintext) XXX_DiscardUnknown()
- func (m *SwapPlaintext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SwapPlaintext) XXX_Merge(src proto.Message)
- func (m *SwapPlaintext) XXX_Size() int
- func (m *SwapPlaintext) XXX_Unmarshal(b []byte) error
- type SwapPlan
- func (*SwapPlan) Descriptor() ([]byte, []int)
- func (m *SwapPlan) GetFeeBlinding() []byte
- func (m *SwapPlan) GetProofBlindingR() []byte
- func (m *SwapPlan) GetProofBlindingS() []byte
- func (m *SwapPlan) GetSwapPlaintext() *SwapPlaintext
- func (m *SwapPlan) Marshal() (dAtA []byte, err error)
- func (m *SwapPlan) MarshalTo(dAtA []byte) (int, error)
- func (m *SwapPlan) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SwapPlan) ProtoMessage()
- func (m *SwapPlan) Reset()
- func (m *SwapPlan) Size() (n int)
- func (m *SwapPlan) String() string
- func (m *SwapPlan) Unmarshal(dAtA []byte) error
- func (m *SwapPlan) XXX_DiscardUnknown()
- func (m *SwapPlan) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SwapPlan) XXX_Merge(src proto.Message)
- func (m *SwapPlan) XXX_Size() int
- func (m *SwapPlan) XXX_Unmarshal(b []byte) error
- type SwapView
- func (*SwapView) Descriptor() ([]byte, []int)
- func (m *SwapView) GetOpaque() *SwapView_Opaque
- func (m *SwapView) GetSwapView() isSwapView_SwapView
- func (m *SwapView) GetVisible() *SwapView_Visible
- func (m *SwapView) Marshal() (dAtA []byte, err error)
- func (m *SwapView) MarshalTo(dAtA []byte) (int, error)
- func (m *SwapView) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SwapView) ProtoMessage()
- func (m *SwapView) Reset()
- func (m *SwapView) Size() (n int)
- func (m *SwapView) String() string
- func (m *SwapView) Unmarshal(dAtA []byte) error
- func (m *SwapView) XXX_DiscardUnknown()
- func (m *SwapView) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SwapView) XXX_Merge(src proto.Message)
- func (*SwapView) XXX_OneofWrappers() []interface{}
- func (m *SwapView) XXX_Size() int
- func (m *SwapView) XXX_Unmarshal(b []byte) error
- type SwapView_Opaque
- func (*SwapView_Opaque) Descriptor() ([]byte, []int)
- func (m *SwapView_Opaque) GetSwap() *Swap
- func (m *SwapView_Opaque) Marshal() (dAtA []byte, err error)
- func (m *SwapView_Opaque) MarshalTo(dAtA []byte) (int, error)
- func (m *SwapView_Opaque) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SwapView_Opaque) ProtoMessage()
- func (m *SwapView_Opaque) Reset()
- func (m *SwapView_Opaque) Size() (n int)
- func (m *SwapView_Opaque) String() string
- func (m *SwapView_Opaque) Unmarshal(dAtA []byte) error
- func (m *SwapView_Opaque) XXX_DiscardUnknown()
- func (m *SwapView_Opaque) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SwapView_Opaque) XXX_Merge(src proto.Message)
- func (m *SwapView_Opaque) XXX_Size() int
- func (m *SwapView_Opaque) XXX_Unmarshal(b []byte) error
- type SwapView_Opaque_
- type SwapView_Visible
- func (*SwapView_Visible) Descriptor() ([]byte, []int)
- func (m *SwapView_Visible) GetSwap() *Swap
- func (m *SwapView_Visible) GetSwapPlaintext() *SwapPlaintext
- func (m *SwapView_Visible) Marshal() (dAtA []byte, err error)
- func (m *SwapView_Visible) MarshalTo(dAtA []byte) (int, error)
- func (m *SwapView_Visible) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SwapView_Visible) ProtoMessage()
- func (m *SwapView_Visible) Reset()
- func (m *SwapView_Visible) Size() (n int)
- func (m *SwapView_Visible) String() string
- func (m *SwapView_Visible) Unmarshal(dAtA []byte) error
- func (m *SwapView_Visible) XXX_DiscardUnknown()
- func (m *SwapView_Visible) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SwapView_Visible) XXX_Merge(src proto.Message)
- func (m *SwapView_Visible) XXX_Size() int
- func (m *SwapView_Visible) XXX_Unmarshal(b []byte) error
- type SwapView_Visible_
- type TradingFunction
- func (*TradingFunction) Descriptor() ([]byte, []int)
- func (m *TradingFunction) GetComponent() *BareTradingFunction
- func (m *TradingFunction) GetPair() *TradingPair
- func (m *TradingFunction) Marshal() (dAtA []byte, err error)
- func (m *TradingFunction) MarshalTo(dAtA []byte) (int, error)
- func (m *TradingFunction) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TradingFunction) ProtoMessage()
- func (m *TradingFunction) Reset()
- func (m *TradingFunction) Size() (n int)
- func (m *TradingFunction) String() string
- func (m *TradingFunction) Unmarshal(dAtA []byte) error
- func (m *TradingFunction) XXX_DiscardUnknown()
- func (m *TradingFunction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TradingFunction) XXX_Merge(src proto.Message)
- func (m *TradingFunction) XXX_Size() int
- func (m *TradingFunction) XXX_Unmarshal(b []byte) error
- type TradingPair
- func (*TradingPair) Descriptor() ([]byte, []int)
- func (m *TradingPair) GetAsset_1() *v1alpha1.AssetId
- func (m *TradingPair) GetAsset_2() *v1alpha1.AssetId
- func (m *TradingPair) Marshal() (dAtA []byte, err error)
- func (m *TradingPair) MarshalTo(dAtA []byte) (int, error)
- func (m *TradingPair) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TradingPair) ProtoMessage()
- func (m *TradingPair) Reset()
- func (m *TradingPair) Size() (n int)
- func (m *TradingPair) String() string
- func (m *TradingPair) Unmarshal(dAtA []byte) error
- func (m *TradingPair) XXX_DiscardUnknown()
- func (m *TradingPair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TradingPair) XXX_Merge(src proto.Message)
- func (m *TradingPair) XXX_Size() int
- func (m *TradingPair) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidLengthDex = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowDex = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupDex = fmt.Errorf("proto: unexpected end of group") )
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",
}
var 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,
}
Functions ¶
This section is empty.
Types ¶
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 *v1alpha1.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 *v1alpha1.Amount `protobuf:"bytes,3,opt,name=q,proto3" json:"q,omitempty"` }
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 ¶
func (*BareTradingFunction) Descriptor() ([]byte, []int)
func (*BareTradingFunction) GetFee ¶
func (m *BareTradingFunction) GetFee() uint32
func (*BareTradingFunction) GetP ¶
func (m *BareTradingFunction) GetP() *v1alpha1.Amount
func (*BareTradingFunction) GetQ ¶
func (m *BareTradingFunction) GetQ() *v1alpha1.Amount
func (*BareTradingFunction) Marshal ¶
func (m *BareTradingFunction) Marshal() (dAtA []byte, err error)
func (*BareTradingFunction) MarshalTo ¶
func (m *BareTradingFunction) MarshalTo(dAtA []byte) (int, error)
func (*BareTradingFunction) MarshalToSizedBuffer ¶
func (m *BareTradingFunction) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*BareTradingFunction) ProtoMessage ¶
func (*BareTradingFunction) ProtoMessage()
func (*BareTradingFunction) Reset ¶
func (m *BareTradingFunction) Reset()
func (*BareTradingFunction) Size ¶
func (m *BareTradingFunction) Size() (n int)
func (*BareTradingFunction) String ¶
func (m *BareTradingFunction) String() string
func (*BareTradingFunction) Unmarshal ¶
func (m *BareTradingFunction) Unmarshal(dAtA []byte) error
func (*BareTradingFunction) XXX_DiscardUnknown ¶
func (m *BareTradingFunction) XXX_DiscardUnknown()
func (*BareTradingFunction) XXX_Marshal ¶
func (m *BareTradingFunction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BareTradingFunction) XXX_Merge ¶
func (m *BareTradingFunction) XXX_Merge(src proto.Message)
func (*BareTradingFunction) XXX_Size ¶
func (m *BareTradingFunction) XXX_Size() int
func (*BareTradingFunction) XXX_Unmarshal ¶
func (m *BareTradingFunction) XXX_Unmarshal(b []byte) error
type BatchSwapOutputData ¶
type BatchSwapOutputData struct { // The total amount of asset 1 that was input to the batch swap. Delta_1 *v1alpha1.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 *v1alpha1.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 *v1alpha1.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 *v1alpha1.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 *v1alpha1.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 *v1alpha1.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"` }
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 ¶
func (*BatchSwapOutputData) Descriptor() ([]byte, []int)
func (*BatchSwapOutputData) GetDelta_1 ¶
func (m *BatchSwapOutputData) GetDelta_1() *v1alpha1.Amount
func (*BatchSwapOutputData) GetDelta_2 ¶
func (m *BatchSwapOutputData) GetDelta_2() *v1alpha1.Amount
func (*BatchSwapOutputData) GetEpochStartingHeight ¶
func (m *BatchSwapOutputData) GetEpochStartingHeight() uint64
func (*BatchSwapOutputData) GetHeight ¶
func (m *BatchSwapOutputData) GetHeight() uint64
func (*BatchSwapOutputData) GetLambda_1 ¶
func (m *BatchSwapOutputData) GetLambda_1() *v1alpha1.Amount
func (*BatchSwapOutputData) GetLambda_2 ¶
func (m *BatchSwapOutputData) GetLambda_2() *v1alpha1.Amount
func (*BatchSwapOutputData) GetTradingPair ¶
func (m *BatchSwapOutputData) GetTradingPair() *TradingPair
func (*BatchSwapOutputData) GetUnfilled_1 ¶
func (m *BatchSwapOutputData) GetUnfilled_1() *v1alpha1.Amount
func (*BatchSwapOutputData) GetUnfilled_2 ¶
func (m *BatchSwapOutputData) GetUnfilled_2() *v1alpha1.Amount
func (*BatchSwapOutputData) Marshal ¶
func (m *BatchSwapOutputData) Marshal() (dAtA []byte, err error)
func (*BatchSwapOutputData) MarshalTo ¶
func (m *BatchSwapOutputData) MarshalTo(dAtA []byte) (int, error)
func (*BatchSwapOutputData) MarshalToSizedBuffer ¶
func (m *BatchSwapOutputData) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*BatchSwapOutputData) ProtoMessage ¶
func (*BatchSwapOutputData) ProtoMessage()
func (*BatchSwapOutputData) Reset ¶
func (m *BatchSwapOutputData) Reset()
func (*BatchSwapOutputData) Size ¶
func (m *BatchSwapOutputData) Size() (n int)
func (*BatchSwapOutputData) String ¶
func (m *BatchSwapOutputData) String() string
func (*BatchSwapOutputData) Unmarshal ¶
func (m *BatchSwapOutputData) Unmarshal(dAtA []byte) error
func (*BatchSwapOutputData) XXX_DiscardUnknown ¶
func (m *BatchSwapOutputData) XXX_DiscardUnknown()
func (*BatchSwapOutputData) XXX_Marshal ¶
func (m *BatchSwapOutputData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BatchSwapOutputData) XXX_Merge ¶
func (m *BatchSwapOutputData) XXX_Merge(src proto.Message)
func (*BatchSwapOutputData) XXX_Size ¶
func (m *BatchSwapOutputData) XXX_Size() int
func (*BatchSwapOutputData) XXX_Unmarshal ¶
func (m *BatchSwapOutputData) XXX_Unmarshal(b []byte) error
type DirectedTradingPair ¶
type DirectedTradingPair struct { // The start asset of the pair. Start *v1alpha1.AssetId `protobuf:"bytes,1,opt,name=start,proto3" json:"start,omitempty"` // The end asset of the pair. End *v1alpha1.AssetId `protobuf:"bytes,2,opt,name=end,proto3" json:"end,omitempty"` }
Encodes a trading pair starting from asset `start` and ending on asset `end`.
func (*DirectedTradingPair) Descriptor ¶
func (*DirectedTradingPair) Descriptor() ([]byte, []int)
func (*DirectedTradingPair) GetEnd ¶
func (m *DirectedTradingPair) GetEnd() *v1alpha1.AssetId
func (*DirectedTradingPair) GetStart ¶
func (m *DirectedTradingPair) GetStart() *v1alpha1.AssetId
func (*DirectedTradingPair) Marshal ¶
func (m *DirectedTradingPair) Marshal() (dAtA []byte, err error)
func (*DirectedTradingPair) MarshalTo ¶
func (m *DirectedTradingPair) MarshalTo(dAtA []byte) (int, error)
func (*DirectedTradingPair) MarshalToSizedBuffer ¶
func (m *DirectedTradingPair) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DirectedTradingPair) ProtoMessage ¶
func (*DirectedTradingPair) ProtoMessage()
func (*DirectedTradingPair) Reset ¶
func (m *DirectedTradingPair) Reset()
func (*DirectedTradingPair) Size ¶
func (m *DirectedTradingPair) Size() (n int)
func (*DirectedTradingPair) String ¶
func (m *DirectedTradingPair) String() string
func (*DirectedTradingPair) Unmarshal ¶
func (m *DirectedTradingPair) Unmarshal(dAtA []byte) error
func (*DirectedTradingPair) XXX_DiscardUnknown ¶
func (m *DirectedTradingPair) XXX_DiscardUnknown()
func (*DirectedTradingPair) XXX_Marshal ¶
func (m *DirectedTradingPair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DirectedTradingPair) XXX_Merge ¶
func (m *DirectedTradingPair) XXX_Merge(src proto.Message)
func (*DirectedTradingPair) XXX_Size ¶
func (m *DirectedTradingPair) XXX_Size() int
func (*DirectedTradingPair) XXX_Unmarshal ¶
func (m *DirectedTradingPair) XXX_Unmarshal(b []byte) error
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"` }
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 ¶
func (*LpNft) GetPositionId ¶
func (m *LpNft) GetPositionId() *PositionId
func (*LpNft) GetState ¶
func (m *LpNft) GetState() *PositionState
func (*LpNft) ProtoMessage ¶
func (*LpNft) ProtoMessage()
func (*LpNft) XXX_DiscardUnknown ¶
func (m *LpNft) XXX_DiscardUnknown()
func (*LpNft) XXX_Marshal ¶
func (*LpNft) XXX_Unmarshal ¶
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"` }
Data identifying a position.
func (*Position) Descriptor ¶
func (*Position) GetCloseOnFill ¶
func (*Position) GetPhi ¶
func (m *Position) GetPhi() *TradingFunction
func (*Position) GetReserves ¶
func (*Position) GetState ¶
func (m *Position) GetState() *PositionState
func (*Position) MarshalToSizedBuffer ¶
func (*Position) ProtoMessage ¶
func (*Position) ProtoMessage()
func (*Position) XXX_DiscardUnknown ¶
func (m *Position) XXX_DiscardUnknown()
func (*Position) XXX_Marshal ¶
func (*Position) XXX_Unmarshal ¶
type PositionClose ¶
type PositionClose struct {
PositionId *PositionId `protobuf:"bytes,1,opt,name=position_id,json=positionId,proto3" json:"position_id,omitempty"`
}
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 ¶
func (*PositionClose) Descriptor() ([]byte, []int)
func (*PositionClose) GetPositionId ¶
func (m *PositionClose) GetPositionId() *PositionId
func (*PositionClose) Marshal ¶
func (m *PositionClose) Marshal() (dAtA []byte, err error)
func (*PositionClose) MarshalToSizedBuffer ¶
func (m *PositionClose) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PositionClose) ProtoMessage ¶
func (*PositionClose) ProtoMessage()
func (*PositionClose) Reset ¶
func (m *PositionClose) Reset()
func (*PositionClose) Size ¶
func (m *PositionClose) Size() (n int)
func (*PositionClose) String ¶
func (m *PositionClose) String() string
func (*PositionClose) Unmarshal ¶
func (m *PositionClose) Unmarshal(dAtA []byte) error
func (*PositionClose) XXX_DiscardUnknown ¶
func (m *PositionClose) XXX_DiscardUnknown()
func (*PositionClose) XXX_Marshal ¶
func (m *PositionClose) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PositionClose) XXX_Merge ¶
func (m *PositionClose) XXX_Merge(src proto.Message)
func (*PositionClose) XXX_Size ¶
func (m *PositionClose) XXX_Size() int
func (*PositionClose) XXX_Unmarshal ¶
func (m *PositionClose) XXX_Unmarshal(b []byte) error
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"` }
A hash of a `Position`.
func (*PositionId) Descriptor ¶
func (*PositionId) Descriptor() ([]byte, []int)
func (*PositionId) GetAltBech32M ¶
func (m *PositionId) GetAltBech32M() string
func (*PositionId) GetInner ¶
func (m *PositionId) GetInner() []byte
func (*PositionId) Marshal ¶
func (m *PositionId) Marshal() (dAtA []byte, err error)
func (*PositionId) MarshalToSizedBuffer ¶
func (m *PositionId) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PositionId) ProtoMessage ¶
func (*PositionId) ProtoMessage()
func (*PositionId) Reset ¶
func (m *PositionId) Reset()
func (*PositionId) Size ¶
func (m *PositionId) Size() (n int)
func (*PositionId) String ¶
func (m *PositionId) String() string
func (*PositionId) Unmarshal ¶
func (m *PositionId) Unmarshal(dAtA []byte) error
func (*PositionId) XXX_DiscardUnknown ¶
func (m *PositionId) XXX_DiscardUnknown()
func (*PositionId) XXX_Marshal ¶
func (m *PositionId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PositionId) XXX_Merge ¶
func (m *PositionId) XXX_Merge(src proto.Message)
func (*PositionId) XXX_Size ¶
func (m *PositionId) XXX_Size() int
func (*PositionId) XXX_Unmarshal ¶
func (m *PositionId) XXX_Unmarshal(b []byte) error
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"` }
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 ¶
func (*PositionOpen) Descriptor() ([]byte, []int)
func (*PositionOpen) GetPosition ¶
func (m *PositionOpen) GetPosition() *Position
func (*PositionOpen) Marshal ¶
func (m *PositionOpen) Marshal() (dAtA []byte, err error)
func (*PositionOpen) MarshalToSizedBuffer ¶
func (m *PositionOpen) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PositionOpen) ProtoMessage ¶
func (*PositionOpen) ProtoMessage()
func (*PositionOpen) Reset ¶
func (m *PositionOpen) Reset()
func (*PositionOpen) Size ¶
func (m *PositionOpen) Size() (n int)
func (*PositionOpen) String ¶
func (m *PositionOpen) String() string
func (*PositionOpen) Unmarshal ¶
func (m *PositionOpen) Unmarshal(dAtA []byte) error
func (*PositionOpen) XXX_DiscardUnknown ¶
func (m *PositionOpen) XXX_DiscardUnknown()
func (*PositionOpen) XXX_Marshal ¶
func (m *PositionOpen) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PositionOpen) XXX_Merge ¶
func (m *PositionOpen) XXX_Merge(src proto.Message)
func (*PositionOpen) XXX_Size ¶
func (m *PositionOpen) XXX_Size() int
func (*PositionOpen) XXX_Unmarshal ¶
func (m *PositionOpen) XXX_Unmarshal(b []byte) error
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 *v1alpha1.BalanceCommitment `protobuf:"bytes,2,opt,name=rewards_commitment,json=rewardsCommitment,proto3" json:"rewards_commitment,omitempty"` }
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 ¶
func (*PositionRewardClaim) Descriptor() ([]byte, []int)
func (*PositionRewardClaim) GetPositionId ¶
func (m *PositionRewardClaim) GetPositionId() *PositionId
func (*PositionRewardClaim) GetRewardsCommitment ¶
func (m *PositionRewardClaim) GetRewardsCommitment() *v1alpha1.BalanceCommitment
func (*PositionRewardClaim) Marshal ¶
func (m *PositionRewardClaim) Marshal() (dAtA []byte, err error)
func (*PositionRewardClaim) MarshalTo ¶
func (m *PositionRewardClaim) MarshalTo(dAtA []byte) (int, error)
func (*PositionRewardClaim) MarshalToSizedBuffer ¶
func (m *PositionRewardClaim) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PositionRewardClaim) ProtoMessage ¶
func (*PositionRewardClaim) ProtoMessage()
func (*PositionRewardClaim) Reset ¶
func (m *PositionRewardClaim) Reset()
func (*PositionRewardClaim) Size ¶
func (m *PositionRewardClaim) Size() (n int)
func (*PositionRewardClaim) String ¶
func (m *PositionRewardClaim) String() string
func (*PositionRewardClaim) Unmarshal ¶
func (m *PositionRewardClaim) Unmarshal(dAtA []byte) error
func (*PositionRewardClaim) XXX_DiscardUnknown ¶
func (m *PositionRewardClaim) XXX_DiscardUnknown()
func (*PositionRewardClaim) XXX_Marshal ¶
func (m *PositionRewardClaim) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PositionRewardClaim) XXX_Merge ¶
func (m *PositionRewardClaim) XXX_Merge(src proto.Message)
func (*PositionRewardClaim) XXX_Size ¶
func (m *PositionRewardClaim) XXX_Size() int
func (*PositionRewardClaim) XXX_Unmarshal ¶
func (m *PositionRewardClaim) XXX_Unmarshal(b []byte) error
type PositionRewardClaimPlan ¶
type PositionRewardClaimPlan struct {
Reserves *Reserves `protobuf:"bytes,1,opt,name=reserves,proto3" json:"reserves,omitempty"`
}
Contains private and public data for claiming rewards from a position.
func (*PositionRewardClaimPlan) Descriptor ¶
func (*PositionRewardClaimPlan) Descriptor() ([]byte, []int)
func (*PositionRewardClaimPlan) GetReserves ¶
func (m *PositionRewardClaimPlan) GetReserves() *Reserves
func (*PositionRewardClaimPlan) Marshal ¶
func (m *PositionRewardClaimPlan) Marshal() (dAtA []byte, err error)
func (*PositionRewardClaimPlan) MarshalTo ¶
func (m *PositionRewardClaimPlan) MarshalTo(dAtA []byte) (int, error)
func (*PositionRewardClaimPlan) MarshalToSizedBuffer ¶
func (m *PositionRewardClaimPlan) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PositionRewardClaimPlan) ProtoMessage ¶
func (*PositionRewardClaimPlan) ProtoMessage()
func (*PositionRewardClaimPlan) Reset ¶
func (m *PositionRewardClaimPlan) Reset()
func (*PositionRewardClaimPlan) Size ¶
func (m *PositionRewardClaimPlan) Size() (n int)
func (*PositionRewardClaimPlan) String ¶
func (m *PositionRewardClaimPlan) String() string
func (*PositionRewardClaimPlan) Unmarshal ¶
func (m *PositionRewardClaimPlan) Unmarshal(dAtA []byte) error
func (*PositionRewardClaimPlan) XXX_DiscardUnknown ¶
func (m *PositionRewardClaimPlan) XXX_DiscardUnknown()
func (*PositionRewardClaimPlan) XXX_Marshal ¶
func (m *PositionRewardClaimPlan) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PositionRewardClaimPlan) XXX_Merge ¶
func (m *PositionRewardClaimPlan) XXX_Merge(src proto.Message)
func (*PositionRewardClaimPlan) XXX_Size ¶
func (m *PositionRewardClaimPlan) XXX_Size() int
func (*PositionRewardClaimPlan) XXX_Unmarshal ¶
func (m *PositionRewardClaimPlan) XXX_Unmarshal(b []byte) error
type PositionState ¶
type PositionState struct {
State PositionState_PositionStateEnum `` /* 128-byte string literal not displayed */
}
The state of a position.
func (*PositionState) Descriptor ¶
func (*PositionState) Descriptor() ([]byte, []int)
func (*PositionState) GetState ¶
func (m *PositionState) GetState() PositionState_PositionStateEnum
func (*PositionState) Marshal ¶
func (m *PositionState) Marshal() (dAtA []byte, err error)
func (*PositionState) MarshalToSizedBuffer ¶
func (m *PositionState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PositionState) ProtoMessage ¶
func (*PositionState) ProtoMessage()
func (*PositionState) Reset ¶
func (m *PositionState) Reset()
func (*PositionState) Size ¶
func (m *PositionState) Size() (n int)
func (*PositionState) String ¶
func (m *PositionState) String() string
func (*PositionState) Unmarshal ¶
func (m *PositionState) Unmarshal(dAtA []byte) error
func (*PositionState) XXX_DiscardUnknown ¶
func (m *PositionState) XXX_DiscardUnknown()
func (*PositionState) XXX_Marshal ¶
func (m *PositionState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PositionState) XXX_Merge ¶
func (m *PositionState) XXX_Merge(src proto.Message)
func (*PositionState) XXX_Size ¶
func (m *PositionState) XXX_Size() int
func (*PositionState) XXX_Unmarshal ¶
func (m *PositionState) XXX_Unmarshal(b []byte) error
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) EnumDescriptor ¶
func (PositionState_PositionStateEnum) EnumDescriptor() ([]byte, []int)
func (PositionState_PositionStateEnum) String ¶
func (x PositionState_PositionStateEnum) String() string
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 *v1alpha1.BalanceCommitment `protobuf:"bytes,2,opt,name=reserves_commitment,json=reservesCommitment,proto3" json:"reserves_commitment,omitempty"` }
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 ¶
func (*PositionWithdraw) Descriptor() ([]byte, []int)
func (*PositionWithdraw) GetPositionId ¶
func (m *PositionWithdraw) GetPositionId() *PositionId
func (*PositionWithdraw) GetReservesCommitment ¶
func (m *PositionWithdraw) GetReservesCommitment() *v1alpha1.BalanceCommitment
func (*PositionWithdraw) Marshal ¶
func (m *PositionWithdraw) Marshal() (dAtA []byte, err error)
func (*PositionWithdraw) MarshalToSizedBuffer ¶
func (m *PositionWithdraw) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PositionWithdraw) ProtoMessage ¶
func (*PositionWithdraw) ProtoMessage()
func (*PositionWithdraw) Reset ¶
func (m *PositionWithdraw) Reset()
func (*PositionWithdraw) Size ¶
func (m *PositionWithdraw) Size() (n int)
func (*PositionWithdraw) String ¶
func (m *PositionWithdraw) String() string
func (*PositionWithdraw) Unmarshal ¶
func (m *PositionWithdraw) Unmarshal(dAtA []byte) error
func (*PositionWithdraw) XXX_DiscardUnknown ¶
func (m *PositionWithdraw) XXX_DiscardUnknown()
func (*PositionWithdraw) XXX_Marshal ¶
func (m *PositionWithdraw) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PositionWithdraw) XXX_Merge ¶
func (m *PositionWithdraw) XXX_Merge(src proto.Message)
func (*PositionWithdraw) XXX_Size ¶
func (m *PositionWithdraw) XXX_Size() int
func (*PositionWithdraw) XXX_Unmarshal ¶
func (m *PositionWithdraw) XXX_Unmarshal(b []byte) error
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 private and public data for withdrawing funds from a closed position.
func (*PositionWithdrawPlan) Descriptor ¶
func (*PositionWithdrawPlan) Descriptor() ([]byte, []int)
func (*PositionWithdrawPlan) GetPair ¶
func (m *PositionWithdrawPlan) GetPair() *TradingPair
func (*PositionWithdrawPlan) GetPositionId ¶
func (m *PositionWithdrawPlan) GetPositionId() *PositionId
func (*PositionWithdrawPlan) GetReserves ¶
func (m *PositionWithdrawPlan) GetReserves() *Reserves
func (*PositionWithdrawPlan) Marshal ¶
func (m *PositionWithdrawPlan) Marshal() (dAtA []byte, err error)
func (*PositionWithdrawPlan) MarshalTo ¶
func (m *PositionWithdrawPlan) MarshalTo(dAtA []byte) (int, error)
func (*PositionWithdrawPlan) MarshalToSizedBuffer ¶
func (m *PositionWithdrawPlan) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PositionWithdrawPlan) ProtoMessage ¶
func (*PositionWithdrawPlan) ProtoMessage()
func (*PositionWithdrawPlan) Reset ¶
func (m *PositionWithdrawPlan) Reset()
func (*PositionWithdrawPlan) Size ¶
func (m *PositionWithdrawPlan) Size() (n int)
func (*PositionWithdrawPlan) String ¶
func (m *PositionWithdrawPlan) String() string
func (*PositionWithdrawPlan) Unmarshal ¶
func (m *PositionWithdrawPlan) Unmarshal(dAtA []byte) error
func (*PositionWithdrawPlan) XXX_DiscardUnknown ¶
func (m *PositionWithdrawPlan) XXX_DiscardUnknown()
func (*PositionWithdrawPlan) XXX_Marshal ¶
func (m *PositionWithdrawPlan) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PositionWithdrawPlan) XXX_Merge ¶
func (m *PositionWithdrawPlan) XXX_Merge(src proto.Message)
func (*PositionWithdrawPlan) XXX_Size ¶
func (m *PositionWithdrawPlan) XXX_Size() int
func (*PositionWithdrawPlan) XXX_Unmarshal ¶
func (m *PositionWithdrawPlan) XXX_Unmarshal(b []byte) error
type Reserves ¶
type Reserves struct { R1 *v1alpha1.Amount `protobuf:"bytes,1,opt,name=r1,proto3" json:"r1,omitempty"` R2 *v1alpha1.Amount `protobuf:"bytes,2,opt,name=r2,proto3" json:"r2,omitempty"` }
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 ¶
func (*Reserves) MarshalToSizedBuffer ¶
func (*Reserves) ProtoMessage ¶
func (*Reserves) ProtoMessage()
func (*Reserves) XXX_DiscardUnknown ¶
func (m *Reserves) XXX_DiscardUnknown()
func (*Reserves) XXX_Marshal ¶
func (*Reserves) XXX_Unmarshal ¶
type Swap ¶
type Swap struct { // Contains the Swap proof. Proof *v1alpha1.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"` }
A transaction action that submits a swap to the dex.
func (*Swap) Descriptor ¶
func (*Swap) GetProof ¶
func (m *Swap) GetProof() *v1alpha1.ZKSwapProof
func (*Swap) ProtoMessage ¶
func (*Swap) ProtoMessage()
func (*Swap) XXX_DiscardUnknown ¶
func (m *Swap) XXX_DiscardUnknown()
func (*Swap) XXX_Unmarshal ¶
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 *v1alpha1.Amount `protobuf:"bytes,2,opt,name=delta_1_i,json=delta1I,proto3" json:"delta_1_i,omitempty"` // The amount for asset 2. Delta_2I *v1alpha1.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 *v1alpha1.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"` }
The authorized data of a Swap transaction.
func (*SwapBody) Descriptor ¶
func (*SwapBody) GetDelta_1I ¶
func (*SwapBody) GetDelta_2I ¶
func (*SwapBody) GetFeeCommitment ¶
func (m *SwapBody) GetFeeCommitment() *v1alpha1.BalanceCommitment
func (*SwapBody) GetPayload ¶
func (m *SwapBody) GetPayload() *SwapPayload
func (*SwapBody) GetTradingPair ¶
func (m *SwapBody) GetTradingPair() *TradingPair
func (*SwapBody) MarshalToSizedBuffer ¶
func (*SwapBody) ProtoMessage ¶
func (*SwapBody) ProtoMessage()
func (*SwapBody) XXX_DiscardUnknown ¶
func (m *SwapBody) XXX_DiscardUnknown()
func (*SwapBody) XXX_Marshal ¶
func (*SwapBody) XXX_Unmarshal ¶
type SwapClaim ¶
type SwapClaim struct { // Contains the SwapClaim proof. Proof []byte `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"` }
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 ¶
func (*SwapClaim) GetBody ¶
func (m *SwapClaim) GetBody() *SwapClaimBody
func (*SwapClaim) GetEpochDuration ¶
func (*SwapClaim) MarshalToSizedBuffer ¶
func (*SwapClaim) ProtoMessage ¶
func (*SwapClaim) ProtoMessage()
func (*SwapClaim) XXX_DiscardUnknown ¶
func (m *SwapClaim) XXX_DiscardUnknown()
func (*SwapClaim) XXX_Marshal ¶
func (*SwapClaim) XXX_Unmarshal ¶
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 *v1alpha1.Fee `protobuf:"bytes,2,opt,name=fee,proto3" json:"fee,omitempty"` // Note output for asset 1. Output_1Commitment *v1alpha1.StateCommitment `protobuf:"bytes,3,opt,name=output_1_commitment,json=output1Commitment,proto3" json:"output_1_commitment,omitempty"` // Note output for asset 2. Output_2Commitment *v1alpha1.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"` }
Encapsulates the authorized fields of the SwapClaim action, used in signing.
func (*SwapClaimBody) Descriptor ¶
func (*SwapClaimBody) Descriptor() ([]byte, []int)
func (*SwapClaimBody) GetFee ¶
func (m *SwapClaimBody) GetFee() *v1alpha1.Fee
func (*SwapClaimBody) GetNullifier ¶
func (m *SwapClaimBody) GetNullifier() *v1alpha1.Nullifier
func (*SwapClaimBody) GetOutputData ¶
func (m *SwapClaimBody) GetOutputData() *BatchSwapOutputData
func (*SwapClaimBody) GetOutput_1Commitment ¶
func (m *SwapClaimBody) GetOutput_1Commitment() *v1alpha1.StateCommitment
func (*SwapClaimBody) GetOutput_2Commitment ¶
func (m *SwapClaimBody) GetOutput_2Commitment() *v1alpha1.StateCommitment
func (*SwapClaimBody) Marshal ¶
func (m *SwapClaimBody) Marshal() (dAtA []byte, err error)
func (*SwapClaimBody) MarshalToSizedBuffer ¶
func (m *SwapClaimBody) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SwapClaimBody) ProtoMessage ¶
func (*SwapClaimBody) ProtoMessage()
func (*SwapClaimBody) Reset ¶
func (m *SwapClaimBody) Reset()
func (*SwapClaimBody) Size ¶
func (m *SwapClaimBody) Size() (n int)
func (*SwapClaimBody) String ¶
func (m *SwapClaimBody) String() string
func (*SwapClaimBody) Unmarshal ¶
func (m *SwapClaimBody) Unmarshal(dAtA []byte) error
func (*SwapClaimBody) XXX_DiscardUnknown ¶
func (m *SwapClaimBody) XXX_DiscardUnknown()
func (*SwapClaimBody) XXX_Marshal ¶
func (m *SwapClaimBody) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SwapClaimBody) XXX_Merge ¶
func (m *SwapClaimBody) XXX_Merge(src proto.Message)
func (*SwapClaimBody) XXX_Size ¶
func (m *SwapClaimBody) XXX_Size() int
func (*SwapClaimBody) XXX_Unmarshal ¶
func (m *SwapClaimBody) XXX_Unmarshal(b []byte) error
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"` }
func (*SwapClaimPlan) Descriptor ¶
func (*SwapClaimPlan) Descriptor() ([]byte, []int)
func (*SwapClaimPlan) GetEpochDuration ¶
func (m *SwapClaimPlan) GetEpochDuration() uint64
func (*SwapClaimPlan) GetOutputData ¶
func (m *SwapClaimPlan) GetOutputData() *BatchSwapOutputData
func (*SwapClaimPlan) GetPosition ¶
func (m *SwapClaimPlan) GetPosition() uint64
func (*SwapClaimPlan) GetProofBlindingR ¶
func (m *SwapClaimPlan) GetProofBlindingR() []byte
func (*SwapClaimPlan) GetProofBlindingS ¶
func (m *SwapClaimPlan) GetProofBlindingS() []byte
func (*SwapClaimPlan) GetSwapPlaintext ¶
func (m *SwapClaimPlan) GetSwapPlaintext() *SwapPlaintext
func (*SwapClaimPlan) Marshal ¶
func (m *SwapClaimPlan) Marshal() (dAtA []byte, err error)
func (*SwapClaimPlan) MarshalToSizedBuffer ¶
func (m *SwapClaimPlan) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SwapClaimPlan) ProtoMessage ¶
func (*SwapClaimPlan) ProtoMessage()
func (*SwapClaimPlan) Reset ¶
func (m *SwapClaimPlan) Reset()
func (*SwapClaimPlan) Size ¶
func (m *SwapClaimPlan) Size() (n int)
func (*SwapClaimPlan) String ¶
func (m *SwapClaimPlan) String() string
func (*SwapClaimPlan) Unmarshal ¶
func (m *SwapClaimPlan) Unmarshal(dAtA []byte) error
func (*SwapClaimPlan) XXX_DiscardUnknown ¶
func (m *SwapClaimPlan) XXX_DiscardUnknown()
func (*SwapClaimPlan) XXX_Marshal ¶
func (m *SwapClaimPlan) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SwapClaimPlan) XXX_Merge ¶
func (m *SwapClaimPlan) XXX_Merge(src proto.Message)
func (*SwapClaimPlan) XXX_Size ¶
func (m *SwapClaimPlan) XXX_Size() int
func (*SwapClaimPlan) XXX_Unmarshal ¶
func (m *SwapClaimPlan) XXX_Unmarshal(b []byte) error
type SwapClaimView ¶
type SwapClaimView struct { // Types that are valid to be assigned to SwapClaimView: // // *SwapClaimView_Visible_ // *SwapClaimView_Opaque_ SwapClaimView isSwapClaimView_SwapClaimView `protobuf_oneof:"swap_claim_view"` }
func (*SwapClaimView) Descriptor ¶
func (*SwapClaimView) Descriptor() ([]byte, []int)
func (*SwapClaimView) GetOpaque ¶
func (m *SwapClaimView) GetOpaque() *SwapClaimView_Opaque
func (*SwapClaimView) GetSwapClaimView ¶
func (m *SwapClaimView) GetSwapClaimView() isSwapClaimView_SwapClaimView
func (*SwapClaimView) GetVisible ¶
func (m *SwapClaimView) GetVisible() *SwapClaimView_Visible
func (*SwapClaimView) Marshal ¶
func (m *SwapClaimView) Marshal() (dAtA []byte, err error)
func (*SwapClaimView) MarshalToSizedBuffer ¶
func (m *SwapClaimView) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SwapClaimView) ProtoMessage ¶
func (*SwapClaimView) ProtoMessage()
func (*SwapClaimView) Reset ¶
func (m *SwapClaimView) Reset()
func (*SwapClaimView) Size ¶
func (m *SwapClaimView) Size() (n int)
func (*SwapClaimView) String ¶
func (m *SwapClaimView) String() string
func (*SwapClaimView) Unmarshal ¶
func (m *SwapClaimView) Unmarshal(dAtA []byte) error
func (*SwapClaimView) XXX_DiscardUnknown ¶
func (m *SwapClaimView) XXX_DiscardUnknown()
func (*SwapClaimView) XXX_Marshal ¶
func (m *SwapClaimView) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SwapClaimView) XXX_Merge ¶
func (m *SwapClaimView) XXX_Merge(src proto.Message)
func (*SwapClaimView) XXX_OneofWrappers ¶
func (*SwapClaimView) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*SwapClaimView) XXX_Size ¶
func (m *SwapClaimView) XXX_Size() int
func (*SwapClaimView) XXX_Unmarshal ¶
func (m *SwapClaimView) XXX_Unmarshal(b []byte) error
type SwapClaimView_Opaque ¶
type SwapClaimView_Opaque struct {
SwapClaim *SwapClaim `protobuf:"bytes,1,opt,name=swap_claim,json=swapClaim,proto3" json:"swap_claim,omitempty"`
}
func (*SwapClaimView_Opaque) Descriptor ¶
func (*SwapClaimView_Opaque) Descriptor() ([]byte, []int)
func (*SwapClaimView_Opaque) GetSwapClaim ¶
func (m *SwapClaimView_Opaque) GetSwapClaim() *SwapClaim
func (*SwapClaimView_Opaque) Marshal ¶
func (m *SwapClaimView_Opaque) Marshal() (dAtA []byte, err error)
func (*SwapClaimView_Opaque) MarshalTo ¶
func (m *SwapClaimView_Opaque) MarshalTo(dAtA []byte) (int, error)
func (*SwapClaimView_Opaque) MarshalToSizedBuffer ¶
func (m *SwapClaimView_Opaque) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SwapClaimView_Opaque) ProtoMessage ¶
func (*SwapClaimView_Opaque) ProtoMessage()
func (*SwapClaimView_Opaque) Reset ¶
func (m *SwapClaimView_Opaque) Reset()
func (*SwapClaimView_Opaque) Size ¶
func (m *SwapClaimView_Opaque) Size() (n int)
func (*SwapClaimView_Opaque) String ¶
func (m *SwapClaimView_Opaque) String() string
func (*SwapClaimView_Opaque) Unmarshal ¶
func (m *SwapClaimView_Opaque) Unmarshal(dAtA []byte) error
func (*SwapClaimView_Opaque) XXX_DiscardUnknown ¶
func (m *SwapClaimView_Opaque) XXX_DiscardUnknown()
func (*SwapClaimView_Opaque) XXX_Marshal ¶
func (m *SwapClaimView_Opaque) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SwapClaimView_Opaque) XXX_Merge ¶
func (m *SwapClaimView_Opaque) XXX_Merge(src proto.Message)
func (*SwapClaimView_Opaque) XXX_Size ¶
func (m *SwapClaimView_Opaque) XXX_Size() int
func (*SwapClaimView_Opaque) XXX_Unmarshal ¶
func (m *SwapClaimView_Opaque) XXX_Unmarshal(b []byte) error
type SwapClaimView_Opaque_ ¶
type SwapClaimView_Opaque_ struct {
Opaque *SwapClaimView_Opaque `protobuf:"bytes,2,opt,name=opaque,proto3,oneof" json:"opaque,omitempty"`
}
func (*SwapClaimView_Opaque_) MarshalTo ¶
func (m *SwapClaimView_Opaque_) MarshalTo(dAtA []byte) (int, error)
func (*SwapClaimView_Opaque_) MarshalToSizedBuffer ¶
func (m *SwapClaimView_Opaque_) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SwapClaimView_Opaque_) Size ¶
func (m *SwapClaimView_Opaque_) Size() (n int)
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 *v1alpha1.NoteView `protobuf:"bytes,2,opt,name=output_1,json=output1,proto3" json:"output_1,omitempty"` Output_2 *v1alpha1.NoteView `protobuf:"bytes,3,opt,name=output_2,json=output2,proto3" json:"output_2,omitempty"` }
func (*SwapClaimView_Visible) Descriptor ¶
func (*SwapClaimView_Visible) Descriptor() ([]byte, []int)
func (*SwapClaimView_Visible) GetOutput_1 ¶
func (m *SwapClaimView_Visible) GetOutput_1() *v1alpha1.NoteView
func (*SwapClaimView_Visible) GetOutput_2 ¶
func (m *SwapClaimView_Visible) GetOutput_2() *v1alpha1.NoteView
func (*SwapClaimView_Visible) GetSwapClaim ¶
func (m *SwapClaimView_Visible) GetSwapClaim() *SwapClaim
func (*SwapClaimView_Visible) Marshal ¶
func (m *SwapClaimView_Visible) Marshal() (dAtA []byte, err error)
func (*SwapClaimView_Visible) MarshalTo ¶
func (m *SwapClaimView_Visible) MarshalTo(dAtA []byte) (int, error)
func (*SwapClaimView_Visible) MarshalToSizedBuffer ¶
func (m *SwapClaimView_Visible) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SwapClaimView_Visible) ProtoMessage ¶
func (*SwapClaimView_Visible) ProtoMessage()
func (*SwapClaimView_Visible) Reset ¶
func (m *SwapClaimView_Visible) Reset()
func (*SwapClaimView_Visible) Size ¶
func (m *SwapClaimView_Visible) Size() (n int)
func (*SwapClaimView_Visible) String ¶
func (m *SwapClaimView_Visible) String() string
func (*SwapClaimView_Visible) Unmarshal ¶
func (m *SwapClaimView_Visible) Unmarshal(dAtA []byte) error
func (*SwapClaimView_Visible) XXX_DiscardUnknown ¶
func (m *SwapClaimView_Visible) XXX_DiscardUnknown()
func (*SwapClaimView_Visible) XXX_Marshal ¶
func (m *SwapClaimView_Visible) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SwapClaimView_Visible) XXX_Merge ¶
func (m *SwapClaimView_Visible) XXX_Merge(src proto.Message)
func (*SwapClaimView_Visible) XXX_Size ¶
func (m *SwapClaimView_Visible) XXX_Size() int
func (*SwapClaimView_Visible) XXX_Unmarshal ¶
func (m *SwapClaimView_Visible) XXX_Unmarshal(b []byte) error
type SwapClaimView_Visible_ ¶
type SwapClaimView_Visible_ struct {
Visible *SwapClaimView_Visible `protobuf:"bytes,1,opt,name=visible,proto3,oneof" json:"visible,omitempty"`
}
func (*SwapClaimView_Visible_) MarshalTo ¶
func (m *SwapClaimView_Visible_) MarshalTo(dAtA []byte) (int, error)
func (*SwapClaimView_Visible_) MarshalToSizedBuffer ¶
func (m *SwapClaimView_Visible_) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SwapClaimView_Visible_) Size ¶
func (m *SwapClaimView_Visible_) Size() (n int)
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 *v1alpha1.Value `protobuf:"bytes,2,opt,name=input,proto3" json:"input,omitempty"` // The total output amount for this execution. Output *v1alpha1.Value `protobuf:"bytes,3,opt,name=output,proto3" json:"output,omitempty"` }
Contains the entire execution of a particular swap.
func (*SwapExecution) Descriptor ¶
func (*SwapExecution) Descriptor() ([]byte, []int)
func (*SwapExecution) GetInput ¶
func (m *SwapExecution) GetInput() *v1alpha1.Value
func (*SwapExecution) GetOutput ¶
func (m *SwapExecution) GetOutput() *v1alpha1.Value
func (*SwapExecution) GetTraces ¶
func (m *SwapExecution) GetTraces() []*SwapExecution_Trace
func (*SwapExecution) Marshal ¶
func (m *SwapExecution) Marshal() (dAtA []byte, err error)
func (*SwapExecution) MarshalToSizedBuffer ¶
func (m *SwapExecution) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SwapExecution) ProtoMessage ¶
func (*SwapExecution) ProtoMessage()
func (*SwapExecution) Reset ¶
func (m *SwapExecution) Reset()
func (*SwapExecution) Size ¶
func (m *SwapExecution) Size() (n int)
func (*SwapExecution) String ¶
func (m *SwapExecution) String() string
func (*SwapExecution) Unmarshal ¶
func (m *SwapExecution) Unmarshal(dAtA []byte) error
func (*SwapExecution) XXX_DiscardUnknown ¶
func (m *SwapExecution) XXX_DiscardUnknown()
func (*SwapExecution) XXX_Marshal ¶
func (m *SwapExecution) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SwapExecution) XXX_Merge ¶
func (m *SwapExecution) XXX_Merge(src proto.Message)
func (*SwapExecution) XXX_Size ¶
func (m *SwapExecution) XXX_Size() int
func (*SwapExecution) XXX_Unmarshal ¶
func (m *SwapExecution) XXX_Unmarshal(b []byte) error
type SwapExecution_Trace ¶
type SwapExecution_Trace struct { // Each step in the trade trace. Value []*v1alpha1.Value `protobuf:"bytes,1,rep,name=value,proto3" json:"value,omitempty"` }
Contains all individual steps consisting of a trade trace.
func (*SwapExecution_Trace) Descriptor ¶
func (*SwapExecution_Trace) Descriptor() ([]byte, []int)
func (*SwapExecution_Trace) GetValue ¶
func (m *SwapExecution_Trace) GetValue() []*v1alpha1.Value
func (*SwapExecution_Trace) Marshal ¶
func (m *SwapExecution_Trace) Marshal() (dAtA []byte, err error)
func (*SwapExecution_Trace) MarshalTo ¶
func (m *SwapExecution_Trace) MarshalTo(dAtA []byte) (int, error)
func (*SwapExecution_Trace) MarshalToSizedBuffer ¶
func (m *SwapExecution_Trace) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SwapExecution_Trace) ProtoMessage ¶
func (*SwapExecution_Trace) ProtoMessage()
func (*SwapExecution_Trace) Reset ¶
func (m *SwapExecution_Trace) Reset()
func (*SwapExecution_Trace) Size ¶
func (m *SwapExecution_Trace) Size() (n int)
func (*SwapExecution_Trace) String ¶
func (m *SwapExecution_Trace) String() string
func (*SwapExecution_Trace) Unmarshal ¶
func (m *SwapExecution_Trace) Unmarshal(dAtA []byte) error
func (*SwapExecution_Trace) XXX_DiscardUnknown ¶
func (m *SwapExecution_Trace) XXX_DiscardUnknown()
func (*SwapExecution_Trace) XXX_Marshal ¶
func (m *SwapExecution_Trace) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SwapExecution_Trace) XXX_Merge ¶
func (m *SwapExecution_Trace) XXX_Merge(src proto.Message)
func (*SwapExecution_Trace) XXX_Size ¶
func (m *SwapExecution_Trace) XXX_Size() int
func (*SwapExecution_Trace) XXX_Unmarshal ¶
func (m *SwapExecution_Trace) XXX_Unmarshal(b []byte) error
type SwapPayload ¶
type SwapPayload struct { Commitment *v1alpha1.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"` }
func (*SwapPayload) Descriptor ¶
func (*SwapPayload) Descriptor() ([]byte, []int)
func (*SwapPayload) GetCommitment ¶
func (m *SwapPayload) GetCommitment() *v1alpha1.StateCommitment
func (*SwapPayload) GetEncryptedSwap ¶
func (m *SwapPayload) GetEncryptedSwap() []byte
func (*SwapPayload) Marshal ¶
func (m *SwapPayload) Marshal() (dAtA []byte, err error)
func (*SwapPayload) MarshalToSizedBuffer ¶
func (m *SwapPayload) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SwapPayload) ProtoMessage ¶
func (*SwapPayload) ProtoMessage()
func (*SwapPayload) Reset ¶
func (m *SwapPayload) Reset()
func (*SwapPayload) Size ¶
func (m *SwapPayload) Size() (n int)
func (*SwapPayload) String ¶
func (m *SwapPayload) String() string
func (*SwapPayload) Unmarshal ¶
func (m *SwapPayload) Unmarshal(dAtA []byte) error
func (*SwapPayload) XXX_DiscardUnknown ¶
func (m *SwapPayload) XXX_DiscardUnknown()
func (*SwapPayload) XXX_Marshal ¶
func (m *SwapPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SwapPayload) XXX_Merge ¶
func (m *SwapPayload) XXX_Merge(src proto.Message)
func (*SwapPayload) XXX_Size ¶
func (m *SwapPayload) XXX_Size() int
func (*SwapPayload) XXX_Unmarshal ¶
func (m *SwapPayload) XXX_Unmarshal(b []byte) error
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 *v1alpha1.Amount `protobuf:"bytes,2,opt,name=delta_1_i,json=delta1I,proto3" json:"delta_1_i,omitempty"` // Input amount of asset 2 Delta_2I *v1alpha1.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 *v1alpha1.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 *v1alpha1.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"` }
func (*SwapPlaintext) Descriptor ¶
func (*SwapPlaintext) Descriptor() ([]byte, []int)
func (*SwapPlaintext) GetClaimAddress ¶
func (m *SwapPlaintext) GetClaimAddress() *v1alpha1.Address
func (*SwapPlaintext) GetClaimFee ¶
func (m *SwapPlaintext) GetClaimFee() *v1alpha1.Fee
func (*SwapPlaintext) GetDelta_1I ¶
func (m *SwapPlaintext) GetDelta_1I() *v1alpha1.Amount
func (*SwapPlaintext) GetDelta_2I ¶
func (m *SwapPlaintext) GetDelta_2I() *v1alpha1.Amount
func (*SwapPlaintext) GetRseed ¶
func (m *SwapPlaintext) GetRseed() []byte
func (*SwapPlaintext) GetTradingPair ¶
func (m *SwapPlaintext) GetTradingPair() *TradingPair
func (*SwapPlaintext) Marshal ¶
func (m *SwapPlaintext) Marshal() (dAtA []byte, err error)
func (*SwapPlaintext) MarshalToSizedBuffer ¶
func (m *SwapPlaintext) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SwapPlaintext) ProtoMessage ¶
func (*SwapPlaintext) ProtoMessage()
func (*SwapPlaintext) Reset ¶
func (m *SwapPlaintext) Reset()
func (*SwapPlaintext) Size ¶
func (m *SwapPlaintext) Size() (n int)
func (*SwapPlaintext) String ¶
func (m *SwapPlaintext) String() string
func (*SwapPlaintext) Unmarshal ¶
func (m *SwapPlaintext) Unmarshal(dAtA []byte) error
func (*SwapPlaintext) XXX_DiscardUnknown ¶
func (m *SwapPlaintext) XXX_DiscardUnknown()
func (*SwapPlaintext) XXX_Marshal ¶
func (m *SwapPlaintext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SwapPlaintext) XXX_Merge ¶
func (m *SwapPlaintext) XXX_Merge(src proto.Message)
func (*SwapPlaintext) XXX_Size ¶
func (m *SwapPlaintext) XXX_Size() int
func (*SwapPlaintext) XXX_Unmarshal ¶
func (m *SwapPlaintext) XXX_Unmarshal(b []byte) error
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"` }
func (*SwapPlan) Descriptor ¶
func (*SwapPlan) GetFeeBlinding ¶
func (*SwapPlan) GetProofBlindingR ¶
func (*SwapPlan) GetProofBlindingS ¶
func (*SwapPlan) GetSwapPlaintext ¶
func (m *SwapPlan) GetSwapPlaintext() *SwapPlaintext
func (*SwapPlan) MarshalToSizedBuffer ¶
func (*SwapPlan) ProtoMessage ¶
func (*SwapPlan) ProtoMessage()
func (*SwapPlan) XXX_DiscardUnknown ¶
func (m *SwapPlan) XXX_DiscardUnknown()
func (*SwapPlan) XXX_Marshal ¶
func (*SwapPlan) XXX_Unmarshal ¶
type SwapView ¶
type SwapView struct { // Types that are valid to be assigned to SwapView: // // *SwapView_Visible_ // *SwapView_Opaque_ SwapView isSwapView_SwapView `protobuf_oneof:"swap_view"` }
func (*SwapView) Descriptor ¶
func (*SwapView) GetOpaque ¶
func (m *SwapView) GetOpaque() *SwapView_Opaque
func (*SwapView) GetSwapView ¶
func (m *SwapView) GetSwapView() isSwapView_SwapView
func (*SwapView) GetVisible ¶
func (m *SwapView) GetVisible() *SwapView_Visible
func (*SwapView) MarshalToSizedBuffer ¶
func (*SwapView) ProtoMessage ¶
func (*SwapView) ProtoMessage()
func (*SwapView) XXX_DiscardUnknown ¶
func (m *SwapView) XXX_DiscardUnknown()
func (*SwapView) XXX_Marshal ¶
func (*SwapView) XXX_OneofWrappers ¶
func (*SwapView) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*SwapView) XXX_Unmarshal ¶
type SwapView_Opaque ¶
type SwapView_Opaque struct {
Swap *Swap `protobuf:"bytes,1,opt,name=swap,proto3" json:"swap,omitempty"`
}
func (*SwapView_Opaque) Descriptor ¶
func (*SwapView_Opaque) Descriptor() ([]byte, []int)
func (*SwapView_Opaque) GetSwap ¶
func (m *SwapView_Opaque) GetSwap() *Swap
func (*SwapView_Opaque) Marshal ¶
func (m *SwapView_Opaque) Marshal() (dAtA []byte, err error)
func (*SwapView_Opaque) MarshalToSizedBuffer ¶
func (m *SwapView_Opaque) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SwapView_Opaque) ProtoMessage ¶
func (*SwapView_Opaque) ProtoMessage()
func (*SwapView_Opaque) Reset ¶
func (m *SwapView_Opaque) Reset()
func (*SwapView_Opaque) Size ¶
func (m *SwapView_Opaque) Size() (n int)
func (*SwapView_Opaque) String ¶
func (m *SwapView_Opaque) String() string
func (*SwapView_Opaque) Unmarshal ¶
func (m *SwapView_Opaque) Unmarshal(dAtA []byte) error
func (*SwapView_Opaque) XXX_DiscardUnknown ¶
func (m *SwapView_Opaque) XXX_DiscardUnknown()
func (*SwapView_Opaque) XXX_Marshal ¶
func (m *SwapView_Opaque) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SwapView_Opaque) XXX_Merge ¶
func (m *SwapView_Opaque) XXX_Merge(src proto.Message)
func (*SwapView_Opaque) XXX_Size ¶
func (m *SwapView_Opaque) XXX_Size() int
func (*SwapView_Opaque) XXX_Unmarshal ¶
func (m *SwapView_Opaque) XXX_Unmarshal(b []byte) error
type SwapView_Opaque_ ¶
type SwapView_Opaque_ struct {
Opaque *SwapView_Opaque `protobuf:"bytes,2,opt,name=opaque,proto3,oneof" json:"opaque,omitempty"`
}
func (*SwapView_Opaque_) MarshalToSizedBuffer ¶
func (m *SwapView_Opaque_) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SwapView_Opaque_) Size ¶
func (m *SwapView_Opaque_) Size() (n int)
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"` }
func (*SwapView_Visible) Descriptor ¶
func (*SwapView_Visible) Descriptor() ([]byte, []int)
func (*SwapView_Visible) GetSwap ¶
func (m *SwapView_Visible) GetSwap() *Swap
func (*SwapView_Visible) GetSwapPlaintext ¶
func (m *SwapView_Visible) GetSwapPlaintext() *SwapPlaintext
func (*SwapView_Visible) Marshal ¶
func (m *SwapView_Visible) Marshal() (dAtA []byte, err error)
func (*SwapView_Visible) MarshalToSizedBuffer ¶
func (m *SwapView_Visible) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SwapView_Visible) ProtoMessage ¶
func (*SwapView_Visible) ProtoMessage()
func (*SwapView_Visible) Reset ¶
func (m *SwapView_Visible) Reset()
func (*SwapView_Visible) Size ¶
func (m *SwapView_Visible) Size() (n int)
func (*SwapView_Visible) String ¶
func (m *SwapView_Visible) String() string
func (*SwapView_Visible) Unmarshal ¶
func (m *SwapView_Visible) Unmarshal(dAtA []byte) error
func (*SwapView_Visible) XXX_DiscardUnknown ¶
func (m *SwapView_Visible) XXX_DiscardUnknown()
func (*SwapView_Visible) XXX_Marshal ¶
func (m *SwapView_Visible) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SwapView_Visible) XXX_Merge ¶
func (m *SwapView_Visible) XXX_Merge(src proto.Message)
func (*SwapView_Visible) XXX_Size ¶
func (m *SwapView_Visible) XXX_Size() int
func (*SwapView_Visible) XXX_Unmarshal ¶
func (m *SwapView_Visible) XXX_Unmarshal(b []byte) error
type SwapView_Visible_ ¶
type SwapView_Visible_ struct {
Visible *SwapView_Visible `protobuf:"bytes,1,opt,name=visible,proto3,oneof" json:"visible,omitempty"`
}
func (*SwapView_Visible_) MarshalTo ¶
func (m *SwapView_Visible_) MarshalTo(dAtA []byte) (int, error)
func (*SwapView_Visible_) MarshalToSizedBuffer ¶
func (m *SwapView_Visible_) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SwapView_Visible_) Size ¶
func (m *SwapView_Visible_) Size() (n int)
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"` }
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 ¶
func (*TradingFunction) Descriptor() ([]byte, []int)
func (*TradingFunction) GetComponent ¶
func (m *TradingFunction) GetComponent() *BareTradingFunction
func (*TradingFunction) GetPair ¶
func (m *TradingFunction) GetPair() *TradingPair
func (*TradingFunction) Marshal ¶
func (m *TradingFunction) Marshal() (dAtA []byte, err error)
func (*TradingFunction) MarshalToSizedBuffer ¶
func (m *TradingFunction) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*TradingFunction) ProtoMessage ¶
func (*TradingFunction) ProtoMessage()
func (*TradingFunction) Reset ¶
func (m *TradingFunction) Reset()
func (*TradingFunction) Size ¶
func (m *TradingFunction) Size() (n int)
func (*TradingFunction) String ¶
func (m *TradingFunction) String() string
func (*TradingFunction) Unmarshal ¶
func (m *TradingFunction) Unmarshal(dAtA []byte) error
func (*TradingFunction) XXX_DiscardUnknown ¶
func (m *TradingFunction) XXX_DiscardUnknown()
func (*TradingFunction) XXX_Marshal ¶
func (m *TradingFunction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TradingFunction) XXX_Merge ¶
func (m *TradingFunction) XXX_Merge(src proto.Message)
func (*TradingFunction) XXX_Size ¶
func (m *TradingFunction) XXX_Size() int
func (*TradingFunction) XXX_Unmarshal ¶
func (m *TradingFunction) XXX_Unmarshal(b []byte) error
type TradingPair ¶
type TradingPair struct { // The first asset of the pair. Asset_1 *v1alpha1.AssetId `protobuf:"bytes,1,opt,name=asset_1,json=asset1,proto3" json:"asset_1,omitempty"` // The second asset of the pair. Asset_2 *v1alpha1.AssetId `protobuf:"bytes,2,opt,name=asset_2,json=asset2,proto3" json:"asset_2,omitempty"` }
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 ¶
func (*TradingPair) Descriptor() ([]byte, []int)
func (*TradingPair) GetAsset_1 ¶
func (m *TradingPair) GetAsset_1() *v1alpha1.AssetId
func (*TradingPair) GetAsset_2 ¶
func (m *TradingPair) GetAsset_2() *v1alpha1.AssetId
func (*TradingPair) Marshal ¶
func (m *TradingPair) Marshal() (dAtA []byte, err error)
func (*TradingPair) MarshalToSizedBuffer ¶
func (m *TradingPair) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*TradingPair) ProtoMessage ¶
func (*TradingPair) ProtoMessage()
func (*TradingPair) Reset ¶
func (m *TradingPair) Reset()
func (*TradingPair) Size ¶
func (m *TradingPair) Size() (n int)
func (*TradingPair) String ¶
func (m *TradingPair) String() string
func (*TradingPair) Unmarshal ¶
func (m *TradingPair) Unmarshal(dAtA []byte) error
func (*TradingPair) XXX_DiscardUnknown ¶
func (m *TradingPair) XXX_DiscardUnknown()
func (*TradingPair) XXX_Marshal ¶
func (m *TradingPair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TradingPair) XXX_Merge ¶
func (m *TradingPair) XXX_Merge(src proto.Message)
func (*TradingPair) XXX_Size ¶
func (m *TradingPair) XXX_Size() int
func (*TradingPair) XXX_Unmarshal ¶
func (m *TradingPair) XXX_Unmarshal(b []byte) error