dexv1

package
v8.7.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 18, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthDex        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowDex          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupDex = fmt.Errorf("proto: unexpected end of group")
)
View Source
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",
}
View Source
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

func RegisterQueryServiceServer

func RegisterQueryServiceServer(s grpc1.Server, srv QueryServiceServer)

func RegisterSimulationServiceServer

func RegisterSimulationServiceServer(s grpc1.Server, srv SimulationServiceServer)

Types

type ArbExecutionRequest

type ArbExecutionRequest struct {
	Height uint64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
}

func (*ArbExecutionRequest) Descriptor

func (*ArbExecutionRequest) Descriptor() ([]byte, []int)

func (*ArbExecutionRequest) GetHeight

func (m *ArbExecutionRequest) GetHeight() uint64

func (*ArbExecutionRequest) Marshal

func (m *ArbExecutionRequest) Marshal() (dAtA []byte, err error)

func (*ArbExecutionRequest) MarshalTo

func (m *ArbExecutionRequest) MarshalTo(dAtA []byte) (int, error)

func (*ArbExecutionRequest) MarshalToSizedBuffer

func (m *ArbExecutionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ArbExecutionRequest) ProtoMessage

func (*ArbExecutionRequest) ProtoMessage()

func (*ArbExecutionRequest) Reset

func (m *ArbExecutionRequest) Reset()

func (*ArbExecutionRequest) Size

func (m *ArbExecutionRequest) Size() (n int)

func (*ArbExecutionRequest) String

func (m *ArbExecutionRequest) String() string

func (*ArbExecutionRequest) Unmarshal

func (m *ArbExecutionRequest) Unmarshal(dAtA []byte) error

func (*ArbExecutionRequest) XXX_DiscardUnknown

func (m *ArbExecutionRequest) XXX_DiscardUnknown()

func (*ArbExecutionRequest) XXX_Marshal

func (m *ArbExecutionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ArbExecutionRequest) XXX_Merge

func (m *ArbExecutionRequest) XXX_Merge(src proto.Message)

func (*ArbExecutionRequest) XXX_Size

func (m *ArbExecutionRequest) XXX_Size() int

func (*ArbExecutionRequest) XXX_Unmarshal

func (m *ArbExecutionRequest) XXX_Unmarshal(b []byte) error

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"`
}

func (*ArbExecutionResponse) Descriptor

func (*ArbExecutionResponse) Descriptor() ([]byte, []int)

func (*ArbExecutionResponse) GetHeight

func (m *ArbExecutionResponse) GetHeight() uint64

func (*ArbExecutionResponse) GetSwapExecution

func (m *ArbExecutionResponse) GetSwapExecution() *SwapExecution

func (*ArbExecutionResponse) Marshal

func (m *ArbExecutionResponse) Marshal() (dAtA []byte, err error)

func (*ArbExecutionResponse) MarshalTo

func (m *ArbExecutionResponse) MarshalTo(dAtA []byte) (int, error)

func (*ArbExecutionResponse) MarshalToSizedBuffer

func (m *ArbExecutionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ArbExecutionResponse) ProtoMessage

func (*ArbExecutionResponse) ProtoMessage()

func (*ArbExecutionResponse) Reset

func (m *ArbExecutionResponse) Reset()

func (*ArbExecutionResponse) Size

func (m *ArbExecutionResponse) Size() (n int)

func (*ArbExecutionResponse) String

func (m *ArbExecutionResponse) String() string

func (*ArbExecutionResponse) Unmarshal

func (m *ArbExecutionResponse) Unmarshal(dAtA []byte) error

func (*ArbExecutionResponse) XXX_DiscardUnknown

func (m *ArbExecutionResponse) XXX_DiscardUnknown()

func (*ArbExecutionResponse) XXX_Marshal

func (m *ArbExecutionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ArbExecutionResponse) XXX_Merge

func (m *ArbExecutionResponse) XXX_Merge(src proto.Message)

func (*ArbExecutionResponse) XXX_Size

func (m *ArbExecutionResponse) XXX_Size() int

func (*ArbExecutionResponse) XXX_Unmarshal

func (m *ArbExecutionResponse) XXX_Unmarshal(b []byte) error

type ArbExecutionsRequest

type ArbExecutionsRequest struct {
	// 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"`
}

func (*ArbExecutionsRequest) Descriptor

func (*ArbExecutionsRequest) Descriptor() ([]byte, []int)

func (*ArbExecutionsRequest) GetEndHeight

func (m *ArbExecutionsRequest) GetEndHeight() uint64

func (*ArbExecutionsRequest) GetStartHeight

func (m *ArbExecutionsRequest) GetStartHeight() uint64

func (*ArbExecutionsRequest) Marshal

func (m *ArbExecutionsRequest) Marshal() (dAtA []byte, err error)

func (*ArbExecutionsRequest) MarshalTo

func (m *ArbExecutionsRequest) MarshalTo(dAtA []byte) (int, error)

func (*ArbExecutionsRequest) MarshalToSizedBuffer

func (m *ArbExecutionsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ArbExecutionsRequest) ProtoMessage

func (*ArbExecutionsRequest) ProtoMessage()

func (*ArbExecutionsRequest) Reset

func (m *ArbExecutionsRequest) Reset()

func (*ArbExecutionsRequest) Size

func (m *ArbExecutionsRequest) Size() (n int)

func (*ArbExecutionsRequest) String

func (m *ArbExecutionsRequest) String() string

func (*ArbExecutionsRequest) Unmarshal

func (m *ArbExecutionsRequest) Unmarshal(dAtA []byte) error

func (*ArbExecutionsRequest) XXX_DiscardUnknown

func (m *ArbExecutionsRequest) XXX_DiscardUnknown()

func (*ArbExecutionsRequest) XXX_Marshal

func (m *ArbExecutionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ArbExecutionsRequest) XXX_Merge

func (m *ArbExecutionsRequest) XXX_Merge(src proto.Message)

func (*ArbExecutionsRequest) XXX_Size

func (m *ArbExecutionsRequest) XXX_Size() int

func (*ArbExecutionsRequest) XXX_Unmarshal

func (m *ArbExecutionsRequest) XXX_Unmarshal(b []byte) error

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"`
}

func (*ArbExecutionsResponse) Descriptor

func (*ArbExecutionsResponse) Descriptor() ([]byte, []int)

func (*ArbExecutionsResponse) GetHeight

func (m *ArbExecutionsResponse) GetHeight() uint64

func (*ArbExecutionsResponse) GetSwapExecution

func (m *ArbExecutionsResponse) GetSwapExecution() *SwapExecution

func (*ArbExecutionsResponse) Marshal

func (m *ArbExecutionsResponse) Marshal() (dAtA []byte, err error)

func (*ArbExecutionsResponse) MarshalTo

func (m *ArbExecutionsResponse) MarshalTo(dAtA []byte) (int, error)

func (*ArbExecutionsResponse) MarshalToSizedBuffer

func (m *ArbExecutionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ArbExecutionsResponse) ProtoMessage

func (*ArbExecutionsResponse) ProtoMessage()

func (*ArbExecutionsResponse) Reset

func (m *ArbExecutionsResponse) Reset()

func (*ArbExecutionsResponse) Size

func (m *ArbExecutionsResponse) Size() (n int)

func (*ArbExecutionsResponse) String

func (m *ArbExecutionsResponse) String() string

func (*ArbExecutionsResponse) Unmarshal

func (m *ArbExecutionsResponse) Unmarshal(dAtA []byte) error

func (*ArbExecutionsResponse) XXX_DiscardUnknown

func (m *ArbExecutionsResponse) XXX_DiscardUnknown()

func (*ArbExecutionsResponse) XXX_Marshal

func (m *ArbExecutionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ArbExecutionsResponse) XXX_Merge

func (m *ArbExecutionsResponse) XXX_Merge(src proto.Message)

func (*ArbExecutionsResponse) XXX_Size

func (m *ArbExecutionsResponse) XXX_Size() int

func (*ArbExecutionsResponse) XXX_Unmarshal

func (m *ArbExecutionsResponse) XXX_Unmarshal(b []byte) error

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 *v13.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 *v13.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() *v13.Amount

func (*BareTradingFunction) GetQ

func (m *BareTradingFunction) GetQ() *v13.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 *v13.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 *v13.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 *v13.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 *v13.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 *v13.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 *v13.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"` // Deprecated: Do not use.
	// The prefix (epoch, block) of the position where this batch swap occurred.
	SctPositionPrefix uint64 `protobuf:"varint,10,opt,name=sct_position_prefix,json=sctPositionPrefix,proto3" json:"sct_position_prefix,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() *v13.Amount

func (*BatchSwapOutputData) GetDelta_2

func (m *BatchSwapOutputData) GetDelta_2() *v13.Amount

func (*BatchSwapOutputData) GetEpochStartingHeight deprecated

func (m *BatchSwapOutputData) GetEpochStartingHeight() uint64

Deprecated: Do not use.

func (*BatchSwapOutputData) GetHeight

func (m *BatchSwapOutputData) GetHeight() uint64

func (*BatchSwapOutputData) GetLambda_1

func (m *BatchSwapOutputData) GetLambda_1() *v13.Amount

func (*BatchSwapOutputData) GetLambda_2

func (m *BatchSwapOutputData) GetLambda_2() *v13.Amount

func (*BatchSwapOutputData) GetSctPositionPrefix

func (m *BatchSwapOutputData) GetSctPositionPrefix() uint64

func (*BatchSwapOutputData) GetTradingPair

func (m *BatchSwapOutputData) GetTradingPair() *TradingPair

func (*BatchSwapOutputData) GetUnfilled_1

func (m *BatchSwapOutputData) GetUnfilled_1() *v13.Amount

func (*BatchSwapOutputData) GetUnfilled_2

func (m *BatchSwapOutputData) GetUnfilled_2() *v13.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 BatchSwapOutputDataRequest

type BatchSwapOutputDataRequest struct {
	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"`
}

Requests batch swap data associated with a given height and trading pair from the view service.

func (*BatchSwapOutputDataRequest) Descriptor

func (*BatchSwapOutputDataRequest) Descriptor() ([]byte, []int)

func (*BatchSwapOutputDataRequest) GetHeight

func (m *BatchSwapOutputDataRequest) GetHeight() uint64

func (*BatchSwapOutputDataRequest) GetTradingPair

func (m *BatchSwapOutputDataRequest) GetTradingPair() *TradingPair

func (*BatchSwapOutputDataRequest) Marshal

func (m *BatchSwapOutputDataRequest) Marshal() (dAtA []byte, err error)

func (*BatchSwapOutputDataRequest) MarshalTo

func (m *BatchSwapOutputDataRequest) MarshalTo(dAtA []byte) (int, error)

func (*BatchSwapOutputDataRequest) MarshalToSizedBuffer

func (m *BatchSwapOutputDataRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*BatchSwapOutputDataRequest) ProtoMessage

func (*BatchSwapOutputDataRequest) ProtoMessage()

func (*BatchSwapOutputDataRequest) Reset

func (m *BatchSwapOutputDataRequest) Reset()

func (*BatchSwapOutputDataRequest) Size

func (m *BatchSwapOutputDataRequest) Size() (n int)

func (*BatchSwapOutputDataRequest) String

func (m *BatchSwapOutputDataRequest) String() string

func (*BatchSwapOutputDataRequest) Unmarshal

func (m *BatchSwapOutputDataRequest) Unmarshal(dAtA []byte) error

func (*BatchSwapOutputDataRequest) XXX_DiscardUnknown

func (m *BatchSwapOutputDataRequest) XXX_DiscardUnknown()

func (*BatchSwapOutputDataRequest) XXX_Marshal

func (m *BatchSwapOutputDataRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BatchSwapOutputDataRequest) XXX_Merge

func (m *BatchSwapOutputDataRequest) XXX_Merge(src proto.Message)

func (*BatchSwapOutputDataRequest) XXX_Size

func (m *BatchSwapOutputDataRequest) XXX_Size() int

func (*BatchSwapOutputDataRequest) XXX_Unmarshal

func (m *BatchSwapOutputDataRequest) XXX_Unmarshal(b []byte) error

type BatchSwapOutputDataResponse

type BatchSwapOutputDataResponse struct {
	Data *BatchSwapOutputData `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
}

func (*BatchSwapOutputDataResponse) Descriptor

func (*BatchSwapOutputDataResponse) Descriptor() ([]byte, []int)

func (*BatchSwapOutputDataResponse) GetData

func (*BatchSwapOutputDataResponse) Marshal

func (m *BatchSwapOutputDataResponse) Marshal() (dAtA []byte, err error)

func (*BatchSwapOutputDataResponse) MarshalTo

func (m *BatchSwapOutputDataResponse) MarshalTo(dAtA []byte) (int, error)

func (*BatchSwapOutputDataResponse) MarshalToSizedBuffer

func (m *BatchSwapOutputDataResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*BatchSwapOutputDataResponse) ProtoMessage

func (*BatchSwapOutputDataResponse) ProtoMessage()

func (*BatchSwapOutputDataResponse) Reset

func (m *BatchSwapOutputDataResponse) Reset()

func (*BatchSwapOutputDataResponse) Size

func (m *BatchSwapOutputDataResponse) Size() (n int)

func (*BatchSwapOutputDataResponse) String

func (m *BatchSwapOutputDataResponse) String() string

func (*BatchSwapOutputDataResponse) Unmarshal

func (m *BatchSwapOutputDataResponse) Unmarshal(dAtA []byte) error

func (*BatchSwapOutputDataResponse) XXX_DiscardUnknown

func (m *BatchSwapOutputDataResponse) XXX_DiscardUnknown()

func (*BatchSwapOutputDataResponse) XXX_Marshal

func (m *BatchSwapOutputDataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BatchSwapOutputDataResponse) XXX_Merge

func (m *BatchSwapOutputDataResponse) XXX_Merge(src proto.Message)

func (*BatchSwapOutputDataResponse) XXX_Size

func (m *BatchSwapOutputDataResponse) XXX_Size() int

func (*BatchSwapOutputDataResponse) XXX_Unmarshal

func (m *BatchSwapOutputDataResponse) XXX_Unmarshal(b []byte) error

type CandlestickData

type CandlestickData struct {
	// The height of the candlestick data.
	Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
	// The first observed price during the block execution.
	Open float64 `protobuf:"fixed64,2,opt,name=open,proto3" json:"open,omitempty"`
	// The last observed price during the block execution.
	Close float64 `protobuf:"fixed64,3,opt,name=close,proto3" json:"close,omitempty"`
	// The highest observed price during the block execution.
	High float64 `protobuf:"fixed64,4,opt,name=high,proto3" json:"high,omitempty"`
	// The lowest observed price during the block execution.
	Low float64 `protobuf:"fixed64,5,opt,name=low,proto3" json:"low,omitempty"`
	// The volume that traded "directly", during individual position executions.
	DirectVolume float64 `protobuf:"fixed64,6,opt,name=direct_volume,json=directVolume,proto3" json:"direct_volume,omitempty"`
	// The volume that traded as part of swaps, which could have traversed multiple routes.
	SwapVolume float64 `protobuf:"fixed64,7,opt,name=swap_volume,json=swapVolume,proto3" json:"swap_volume,omitempty"`
}

func (*CandlestickData) Descriptor

func (*CandlestickData) Descriptor() ([]byte, []int)

func (*CandlestickData) GetClose

func (m *CandlestickData) GetClose() float64

func (*CandlestickData) GetDirectVolume

func (m *CandlestickData) GetDirectVolume() float64

func (*CandlestickData) GetHeight

func (m *CandlestickData) GetHeight() uint64

func (*CandlestickData) GetHigh

func (m *CandlestickData) GetHigh() float64

func (*CandlestickData) GetLow

func (m *CandlestickData) GetLow() float64

func (*CandlestickData) GetOpen

func (m *CandlestickData) GetOpen() float64

func (*CandlestickData) GetSwapVolume

func (m *CandlestickData) GetSwapVolume() float64

func (*CandlestickData) Marshal

func (m *CandlestickData) Marshal() (dAtA []byte, err error)

func (*CandlestickData) MarshalTo

func (m *CandlestickData) MarshalTo(dAtA []byte) (int, error)

func (*CandlestickData) MarshalToSizedBuffer

func (m *CandlestickData) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CandlestickData) ProtoMessage

func (*CandlestickData) ProtoMessage()

func (*CandlestickData) Reset

func (m *CandlestickData) Reset()

func (*CandlestickData) Size

func (m *CandlestickData) Size() (n int)

func (*CandlestickData) String

func (m *CandlestickData) String() string

func (*CandlestickData) Unmarshal

func (m *CandlestickData) Unmarshal(dAtA []byte) error

func (*CandlestickData) XXX_DiscardUnknown

func (m *CandlestickData) XXX_DiscardUnknown()

func (*CandlestickData) XXX_Marshal

func (m *CandlestickData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CandlestickData) XXX_Merge

func (m *CandlestickData) XXX_Merge(src proto.Message)

func (*CandlestickData) XXX_Size

func (m *CandlestickData) XXX_Size() int

func (*CandlestickData) XXX_Unmarshal

func (m *CandlestickData) XXX_Unmarshal(b []byte) error

type CandlestickDataRequest

type CandlestickDataRequest struct {
	// The directed trading pair to request candlestick data for.
	//
	// NOTE: the returned data will only have trades from the SOURCE asset to the
	// DEST asset, not the other direction. Make another request if you want both
	// sets of data.
	Pair *DirectedTradingPair `protobuf:"bytes,1,opt,name=pair,proto3" json:"pair,omitempty"`
	// The maximum number of candlestick data points to return.
	//
	// The server may clamp this limit to a maximum value.
	Limit uint64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
	// The height to start the query from.
	//
	// If this is unset (= 0), the server will return the most recent data points.
	StartHeight uint64 `protobuf:"varint,3,opt,name=start_height,json=startHeight,proto3" json:"start_height,omitempty"`
}

func (*CandlestickDataRequest) Descriptor

func (*CandlestickDataRequest) Descriptor() ([]byte, []int)

func (*CandlestickDataRequest) GetLimit

func (m *CandlestickDataRequest) GetLimit() uint64

func (*CandlestickDataRequest) GetPair

func (*CandlestickDataRequest) GetStartHeight

func (m *CandlestickDataRequest) GetStartHeight() uint64

func (*CandlestickDataRequest) Marshal

func (m *CandlestickDataRequest) Marshal() (dAtA []byte, err error)

func (*CandlestickDataRequest) MarshalTo

func (m *CandlestickDataRequest) MarshalTo(dAtA []byte) (int, error)

func (*CandlestickDataRequest) MarshalToSizedBuffer

func (m *CandlestickDataRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CandlestickDataRequest) ProtoMessage

func (*CandlestickDataRequest) ProtoMessage()

func (*CandlestickDataRequest) Reset

func (m *CandlestickDataRequest) Reset()

func (*CandlestickDataRequest) Size

func (m *CandlestickDataRequest) Size() (n int)

func (*CandlestickDataRequest) String

func (m *CandlestickDataRequest) String() string

func (*CandlestickDataRequest) Unmarshal

func (m *CandlestickDataRequest) Unmarshal(dAtA []byte) error

func (*CandlestickDataRequest) XXX_DiscardUnknown

func (m *CandlestickDataRequest) XXX_DiscardUnknown()

func (*CandlestickDataRequest) XXX_Marshal

func (m *CandlestickDataRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CandlestickDataRequest) XXX_Merge

func (m *CandlestickDataRequest) XXX_Merge(src proto.Message)

func (*CandlestickDataRequest) XXX_Size

func (m *CandlestickDataRequest) XXX_Size() int

func (*CandlestickDataRequest) XXX_Unmarshal

func (m *CandlestickDataRequest) XXX_Unmarshal(b []byte) error

type CandlestickDataResponse

type CandlestickDataResponse struct {
	// The candlestick data points.
	Data []*CandlestickData `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"`
}

func (*CandlestickDataResponse) Descriptor

func (*CandlestickDataResponse) Descriptor() ([]byte, []int)

func (*CandlestickDataResponse) GetData

func (m *CandlestickDataResponse) GetData() []*CandlestickData

func (*CandlestickDataResponse) Marshal

func (m *CandlestickDataResponse) Marshal() (dAtA []byte, err error)

func (*CandlestickDataResponse) MarshalTo

func (m *CandlestickDataResponse) MarshalTo(dAtA []byte) (int, error)

func (*CandlestickDataResponse) MarshalToSizedBuffer

func (m *CandlestickDataResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CandlestickDataResponse) ProtoMessage

func (*CandlestickDataResponse) ProtoMessage()

func (*CandlestickDataResponse) Reset

func (m *CandlestickDataResponse) Reset()

func (*CandlestickDataResponse) Size

func (m *CandlestickDataResponse) Size() (n int)

func (*CandlestickDataResponse) String

func (m *CandlestickDataResponse) String() string

func (*CandlestickDataResponse) Unmarshal

func (m *CandlestickDataResponse) Unmarshal(dAtA []byte) error

func (*CandlestickDataResponse) XXX_DiscardUnknown

func (m *CandlestickDataResponse) XXX_DiscardUnknown()

func (*CandlestickDataResponse) XXX_Marshal

func (m *CandlestickDataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CandlestickDataResponse) XXX_Merge

func (m *CandlestickDataResponse) XXX_Merge(src proto.Message)

func (*CandlestickDataResponse) XXX_Size

func (m *CandlestickDataResponse) XXX_Size() int

func (*CandlestickDataResponse) XXX_Unmarshal

func (m *CandlestickDataResponse) XXX_Unmarshal(b []byte) error

type CandlestickDataStreamRequest

type CandlestickDataStreamRequest struct {
	// The directed trading pair to subscribe to.
	Pair *DirectedTradingPair `protobuf:"bytes,1,opt,name=pair,proto3" json:"pair,omitempty"`
}

func (*CandlestickDataStreamRequest) Descriptor

func (*CandlestickDataStreamRequest) Descriptor() ([]byte, []int)

func (*CandlestickDataStreamRequest) GetPair

func (*CandlestickDataStreamRequest) Marshal

func (m *CandlestickDataStreamRequest) Marshal() (dAtA []byte, err error)

func (*CandlestickDataStreamRequest) MarshalTo

func (m *CandlestickDataStreamRequest) MarshalTo(dAtA []byte) (int, error)

func (*CandlestickDataStreamRequest) MarshalToSizedBuffer

func (m *CandlestickDataStreamRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CandlestickDataStreamRequest) ProtoMessage

func (*CandlestickDataStreamRequest) ProtoMessage()

func (*CandlestickDataStreamRequest) Reset

func (m *CandlestickDataStreamRequest) Reset()

func (*CandlestickDataStreamRequest) Size

func (m *CandlestickDataStreamRequest) Size() (n int)

func (*CandlestickDataStreamRequest) String

func (*CandlestickDataStreamRequest) Unmarshal

func (m *CandlestickDataStreamRequest) Unmarshal(dAtA []byte) error

func (*CandlestickDataStreamRequest) XXX_DiscardUnknown

func (m *CandlestickDataStreamRequest) XXX_DiscardUnknown()

func (*CandlestickDataStreamRequest) XXX_Marshal

func (m *CandlestickDataStreamRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CandlestickDataStreamRequest) XXX_Merge

func (m *CandlestickDataStreamRequest) XXX_Merge(src proto.Message)

func (*CandlestickDataStreamRequest) XXX_Size

func (m *CandlestickDataStreamRequest) XXX_Size() int

func (*CandlestickDataStreamRequest) XXX_Unmarshal

func (m *CandlestickDataStreamRequest) XXX_Unmarshal(b []byte) error

type CandlestickDataStreamResponse

type CandlestickDataStreamResponse struct {
	// The candlestick data point.
	Data *CandlestickData `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
}

func (*CandlestickDataStreamResponse) Descriptor

func (*CandlestickDataStreamResponse) Descriptor() ([]byte, []int)

func (*CandlestickDataStreamResponse) GetData

func (*CandlestickDataStreamResponse) Marshal

func (m *CandlestickDataStreamResponse) Marshal() (dAtA []byte, err error)

func (*CandlestickDataStreamResponse) MarshalTo

func (m *CandlestickDataStreamResponse) MarshalTo(dAtA []byte) (int, error)

func (*CandlestickDataStreamResponse) MarshalToSizedBuffer

func (m *CandlestickDataStreamResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CandlestickDataStreamResponse) ProtoMessage

func (*CandlestickDataStreamResponse) ProtoMessage()

func (*CandlestickDataStreamResponse) Reset

func (m *CandlestickDataStreamResponse) Reset()

func (*CandlestickDataStreamResponse) Size

func (m *CandlestickDataStreamResponse) Size() (n int)

func (*CandlestickDataStreamResponse) String

func (*CandlestickDataStreamResponse) Unmarshal

func (m *CandlestickDataStreamResponse) Unmarshal(dAtA []byte) error

func (*CandlestickDataStreamResponse) XXX_DiscardUnknown

func (m *CandlestickDataStreamResponse) XXX_DiscardUnknown()

func (*CandlestickDataStreamResponse) XXX_Marshal

func (m *CandlestickDataStreamResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CandlestickDataStreamResponse) XXX_Merge

func (m *CandlestickDataStreamResponse) XXX_Merge(src proto.Message)

func (*CandlestickDataStreamResponse) XXX_Size

func (m *CandlestickDataStreamResponse) XXX_Size() int

func (*CandlestickDataStreamResponse) XXX_Unmarshal

func (m *CandlestickDataStreamResponse) XXX_Unmarshal(b []byte) error

type DexParameters

type DexParameters struct {
	// Whether or not the DEX is enabled.
	IsEnabled bool `protobuf:"varint,1,opt,name=is_enabled,json=isEnabled,proto3" json:"is_enabled,omitempty"`
	// The list of fixed candidates for routing.
	FixedCandidates []*v14.AssetId `protobuf:"bytes,2,rep,name=fixed_candidates,json=fixedCandidates,proto3" json:"fixed_candidates,omitempty"`
	// The number of hops to traverse while routing from A to B.
	MaxHops uint32 `protobuf:"varint,3,opt,name=max_hops,json=maxHops,proto3" json:"max_hops,omitempty"`
	// The maximum number of positions per trading pair.
	// If this number is exceeded, positions with the least
	// inventory get evicted from the DEX.
	MaxPositionsPerPair uint32 `protobuf:"varint,4,opt,name=max_positions_per_pair,json=maxPositionsPerPair,proto3" json:"max_positions_per_pair,omitempty"`
	// The maximum number of routing and execution steps to be performed
	// for a single pair
	MaxExecutionBudget uint32 `protobuf:"varint,5,opt,name=max_execution_budget,json=maxExecutionBudget,proto3" json:"max_execution_budget,omitempty"`
}

func (*DexParameters) Descriptor

func (*DexParameters) Descriptor() ([]byte, []int)

func (*DexParameters) GetFixedCandidates

func (m *DexParameters) GetFixedCandidates() []*v14.AssetId

func (*DexParameters) GetIsEnabled

func (m *DexParameters) GetIsEnabled() bool

func (*DexParameters) GetMaxExecutionBudget

func (m *DexParameters) GetMaxExecutionBudget() uint32

func (*DexParameters) GetMaxHops

func (m *DexParameters) GetMaxHops() uint32

func (*DexParameters) GetMaxPositionsPerPair

func (m *DexParameters) GetMaxPositionsPerPair() uint32

func (*DexParameters) Marshal

func (m *DexParameters) Marshal() (dAtA []byte, err error)

func (*DexParameters) MarshalTo

func (m *DexParameters) MarshalTo(dAtA []byte) (int, error)

func (*DexParameters) MarshalToSizedBuffer

func (m *DexParameters) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DexParameters) ProtoMessage

func (*DexParameters) ProtoMessage()

func (*DexParameters) Reset

func (m *DexParameters) Reset()

func (*DexParameters) Size

func (m *DexParameters) Size() (n int)

func (*DexParameters) String

func (m *DexParameters) String() string

func (*DexParameters) Unmarshal

func (m *DexParameters) Unmarshal(dAtA []byte) error

func (*DexParameters) XXX_DiscardUnknown

func (m *DexParameters) XXX_DiscardUnknown()

func (*DexParameters) XXX_Marshal

func (m *DexParameters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DexParameters) XXX_Merge

func (m *DexParameters) XXX_Merge(src proto.Message)

func (*DexParameters) XXX_Size

func (m *DexParameters) XXX_Size() int

func (*DexParameters) XXX_Unmarshal

func (m *DexParameters) XXX_Unmarshal(b []byte) error

type DirectedTradingPair

type DirectedTradingPair struct {
	// The start asset of the pair.
	Start *v14.AssetId `protobuf:"bytes,1,opt,name=start,proto3" json:"start,omitempty"`
	// The end asset of the pair.
	End *v14.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() *v14.AssetId

func (*DirectedTradingPair) GetStart

func (m *DirectedTradingPair) GetStart() *v14.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 EventArbExecution

type EventArbExecution struct {
	// The height at which the arb execution occurred.
	Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
	// The record of execution for the arb execution.
	SwapExecution *SwapExecution `protobuf:"bytes,2,opt,name=swap_execution,json=swapExecution,proto3" json:"swap_execution,omitempty"`
}

func (*EventArbExecution) Descriptor

func (*EventArbExecution) Descriptor() ([]byte, []int)

func (*EventArbExecution) GetHeight

func (m *EventArbExecution) GetHeight() uint64

func (*EventArbExecution) GetSwapExecution

func (m *EventArbExecution) GetSwapExecution() *SwapExecution

func (*EventArbExecution) Marshal

func (m *EventArbExecution) Marshal() (dAtA []byte, err error)

func (*EventArbExecution) MarshalTo

func (m *EventArbExecution) MarshalTo(dAtA []byte) (int, error)

func (*EventArbExecution) MarshalToSizedBuffer

func (m *EventArbExecution) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EventArbExecution) ProtoMessage

func (*EventArbExecution) ProtoMessage()

func (*EventArbExecution) Reset

func (m *EventArbExecution) Reset()

func (*EventArbExecution) Size

func (m *EventArbExecution) Size() (n int)

func (*EventArbExecution) String

func (m *EventArbExecution) String() string

func (*EventArbExecution) Unmarshal

func (m *EventArbExecution) Unmarshal(dAtA []byte) error

func (*EventArbExecution) XXX_DiscardUnknown

func (m *EventArbExecution) XXX_DiscardUnknown()

func (*EventArbExecution) XXX_Marshal

func (m *EventArbExecution) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EventArbExecution) XXX_Merge

func (m *EventArbExecution) XXX_Merge(src proto.Message)

func (*EventArbExecution) XXX_Size

func (m *EventArbExecution) XXX_Size() int

func (*EventArbExecution) XXX_Unmarshal

func (m *EventArbExecution) XXX_Unmarshal(b []byte) error

type EventBatchSwap

type EventBatchSwap struct {
	// The BatchSwapOutputData containing the results of the batch swap.
	BatchSwapOutputData *BatchSwapOutputData `protobuf:"bytes,1,opt,name=batch_swap_output_data,json=batchSwapOutputData,proto3" json:"batch_swap_output_data,omitempty"`
	// The record of execution for the batch swap in the 1 -> 2 direction.
	SwapExecution_1For_2 *SwapExecution `protobuf:"bytes,2,opt,name=swap_execution_1_for_2,json=swapExecution1For2,proto3" json:"swap_execution_1_for_2,omitempty"`
	// The record of execution for the batch swap in the 2 -> 1 direction.
	SwapExecution_2For_1 *SwapExecution `protobuf:"bytes,3,opt,name=swap_execution_2_for_1,json=swapExecution2For1,proto3" json:"swap_execution_2_for_1,omitempty"`
}

func (*EventBatchSwap) Descriptor

func (*EventBatchSwap) Descriptor() ([]byte, []int)

func (*EventBatchSwap) GetBatchSwapOutputData

func (m *EventBatchSwap) GetBatchSwapOutputData() *BatchSwapOutputData

func (*EventBatchSwap) GetSwapExecution_1For_2

func (m *EventBatchSwap) GetSwapExecution_1For_2() *SwapExecution

func (*EventBatchSwap) GetSwapExecution_2For_1

func (m *EventBatchSwap) GetSwapExecution_2For_1() *SwapExecution

func (*EventBatchSwap) Marshal

func (m *EventBatchSwap) Marshal() (dAtA []byte, err error)

func (*EventBatchSwap) MarshalTo

func (m *EventBatchSwap) MarshalTo(dAtA []byte) (int, error)

func (*EventBatchSwap) MarshalToSizedBuffer

func (m *EventBatchSwap) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EventBatchSwap) ProtoMessage

func (*EventBatchSwap) ProtoMessage()

func (*EventBatchSwap) Reset

func (m *EventBatchSwap) Reset()

func (*EventBatchSwap) Size

func (m *EventBatchSwap) Size() (n int)

func (*EventBatchSwap) String

func (m *EventBatchSwap) String() string

func (*EventBatchSwap) Unmarshal

func (m *EventBatchSwap) Unmarshal(dAtA []byte) error

func (*EventBatchSwap) XXX_DiscardUnknown

func (m *EventBatchSwap) XXX_DiscardUnknown()

func (*EventBatchSwap) XXX_Marshal

func (m *EventBatchSwap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EventBatchSwap) XXX_Merge

func (m *EventBatchSwap) XXX_Merge(src proto.Message)

func (*EventBatchSwap) XXX_Size

func (m *EventBatchSwap) XXX_Size() int

func (*EventBatchSwap) XXX_Unmarshal

func (m *EventBatchSwap) XXX_Unmarshal(b []byte) error

type EventPositionClose

type EventPositionClose struct {
	// The ID of the closed position
	PositionId *PositionId `protobuf:"bytes,1,opt,name=position_id,json=positionId,proto3" json:"position_id,omitempty"`
}

func (*EventPositionClose) Descriptor

func (*EventPositionClose) Descriptor() ([]byte, []int)

func (*EventPositionClose) GetPositionId

func (m *EventPositionClose) GetPositionId() *PositionId

func (*EventPositionClose) Marshal

func (m *EventPositionClose) Marshal() (dAtA []byte, err error)

func (*EventPositionClose) MarshalTo

func (m *EventPositionClose) MarshalTo(dAtA []byte) (int, error)

func (*EventPositionClose) MarshalToSizedBuffer

func (m *EventPositionClose) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EventPositionClose) ProtoMessage

func (*EventPositionClose) ProtoMessage()

func (*EventPositionClose) Reset

func (m *EventPositionClose) Reset()

func (*EventPositionClose) Size

func (m *EventPositionClose) Size() (n int)

func (*EventPositionClose) String

func (m *EventPositionClose) String() string

func (*EventPositionClose) Unmarshal

func (m *EventPositionClose) Unmarshal(dAtA []byte) error

func (*EventPositionClose) XXX_DiscardUnknown

func (m *EventPositionClose) XXX_DiscardUnknown()

func (*EventPositionClose) XXX_Marshal

func (m *EventPositionClose) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EventPositionClose) XXX_Merge

func (m *EventPositionClose) XXX_Merge(src proto.Message)

func (*EventPositionClose) XXX_Size

func (m *EventPositionClose) XXX_Size() int

func (*EventPositionClose) XXX_Unmarshal

func (m *EventPositionClose) XXX_Unmarshal(b []byte) error

type EventPositionExecution

type EventPositionExecution struct {
	// The ID of the position executed against.
	PositionId *PositionId `protobuf:"bytes,1,opt,name=position_id,json=positionId,proto3" json:"position_id,omitempty"`
	// The trading pair of the position executed against.
	TradingPair *TradingPair `protobuf:"bytes,2,opt,name=trading_pair,json=tradingPair,proto3" json:"trading_pair,omitempty"`
	// The reserves of asset 1 of the position after execution.
	Reserves_1 *v13.Amount `protobuf:"bytes,3,opt,name=reserves_1,json=reserves1,proto3" json:"reserves_1,omitempty"`
	// The reserves of asset 2 of the position after execution.
	Reserves_2 *v13.Amount `protobuf:"bytes,4,opt,name=reserves_2,json=reserves2,proto3" json:"reserves_2,omitempty"`
	// The reserves of asset 1 of the position before execution.
	PrevReserves_1 *v13.Amount `protobuf:"bytes,5,opt,name=prev_reserves_1,json=prevReserves1,proto3" json:"prev_reserves_1,omitempty"`
	// The reserves of asset 2 of the position before execution.
	PrevReserves_2 *v13.Amount `protobuf:"bytes,6,opt,name=prev_reserves_2,json=prevReserves2,proto3" json:"prev_reserves_2,omitempty"`
	// Context: the end-to-end route that was being traversed during execution.
	Context *DirectedTradingPair `protobuf:"bytes,7,opt,name=context,proto3" json:"context,omitempty"`
}

func (*EventPositionExecution) Descriptor

func (*EventPositionExecution) Descriptor() ([]byte, []int)

func (*EventPositionExecution) GetContext

func (*EventPositionExecution) GetPositionId

func (m *EventPositionExecution) GetPositionId() *PositionId

func (*EventPositionExecution) GetPrevReserves_1

func (m *EventPositionExecution) GetPrevReserves_1() *v13.Amount

func (*EventPositionExecution) GetPrevReserves_2

func (m *EventPositionExecution) GetPrevReserves_2() *v13.Amount

func (*EventPositionExecution) GetReserves_1

func (m *EventPositionExecution) GetReserves_1() *v13.Amount

func (*EventPositionExecution) GetReserves_2

func (m *EventPositionExecution) GetReserves_2() *v13.Amount

func (*EventPositionExecution) GetTradingPair

func (m *EventPositionExecution) GetTradingPair() *TradingPair

func (*EventPositionExecution) Marshal

func (m *EventPositionExecution) Marshal() (dAtA []byte, err error)

func (*EventPositionExecution) MarshalTo

func (m *EventPositionExecution) MarshalTo(dAtA []byte) (int, error)

func (*EventPositionExecution) MarshalToSizedBuffer

func (m *EventPositionExecution) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EventPositionExecution) ProtoMessage

func (*EventPositionExecution) ProtoMessage()

func (*EventPositionExecution) Reset

func (m *EventPositionExecution) Reset()

func (*EventPositionExecution) Size

func (m *EventPositionExecution) Size() (n int)

func (*EventPositionExecution) String

func (m *EventPositionExecution) String() string

func (*EventPositionExecution) Unmarshal

func (m *EventPositionExecution) Unmarshal(dAtA []byte) error

func (*EventPositionExecution) XXX_DiscardUnknown

func (m *EventPositionExecution) XXX_DiscardUnknown()

func (*EventPositionExecution) XXX_Marshal

func (m *EventPositionExecution) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EventPositionExecution) XXX_Merge

func (m *EventPositionExecution) XXX_Merge(src proto.Message)

func (*EventPositionExecution) XXX_Size

func (m *EventPositionExecution) XXX_Size() int

func (*EventPositionExecution) XXX_Unmarshal

func (m *EventPositionExecution) XXX_Unmarshal(b []byte) error

type EventPositionOpen

type EventPositionOpen struct {
	// Position ID.
	PositionId *PositionId `protobuf:"bytes,1,opt,name=position_id,json=positionId,proto3" json:"position_id,omitempty"`
	// The trading pair to open.
	TradingPair *TradingPair `protobuf:"bytes,2,opt,name=trading_pair,json=tradingPair,proto3" json:"trading_pair,omitempty"`
	// The amount for asset 1.
	Reserves_1 *v13.Amount `protobuf:"bytes,3,opt,name=reserves_1,json=reserves1,proto3" json:"reserves_1,omitempty"`
	// The amount for asset 2.
	Reserves_2 *v13.Amount `protobuf:"bytes,4,opt,name=reserves_2,json=reserves2,proto3" json:"reserves_2,omitempty"`
	// The trading fee for the position, expressed in basis points.
	// e.g. 2% fee is expressed as 200, 100% fee is expressed as 10000;
	TradingFee uint32 `protobuf:"varint,5,opt,name=trading_fee,json=tradingFee,proto3" json:"trading_fee,omitempty"`
}

func (*EventPositionOpen) Descriptor

func (*EventPositionOpen) Descriptor() ([]byte, []int)

func (*EventPositionOpen) GetPositionId

func (m *EventPositionOpen) GetPositionId() *PositionId

func (*EventPositionOpen) GetReserves_1

func (m *EventPositionOpen) GetReserves_1() *v13.Amount

func (*EventPositionOpen) GetReserves_2

func (m *EventPositionOpen) GetReserves_2() *v13.Amount

func (*EventPositionOpen) GetTradingFee

func (m *EventPositionOpen) GetTradingFee() uint32

func (*EventPositionOpen) GetTradingPair

func (m *EventPositionOpen) GetTradingPair() *TradingPair

func (*EventPositionOpen) Marshal

func (m *EventPositionOpen) Marshal() (dAtA []byte, err error)

func (*EventPositionOpen) MarshalTo

func (m *EventPositionOpen) MarshalTo(dAtA []byte) (int, error)

func (*EventPositionOpen) MarshalToSizedBuffer

func (m *EventPositionOpen) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EventPositionOpen) ProtoMessage

func (*EventPositionOpen) ProtoMessage()

func (*EventPositionOpen) Reset

func (m *EventPositionOpen) Reset()

func (*EventPositionOpen) Size

func (m *EventPositionOpen) Size() (n int)

func (*EventPositionOpen) String

func (m *EventPositionOpen) String() string

func (*EventPositionOpen) Unmarshal

func (m *EventPositionOpen) Unmarshal(dAtA []byte) error

func (*EventPositionOpen) XXX_DiscardUnknown

func (m *EventPositionOpen) XXX_DiscardUnknown()

func (*EventPositionOpen) XXX_Marshal

func (m *EventPositionOpen) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EventPositionOpen) XXX_Merge

func (m *EventPositionOpen) XXX_Merge(src proto.Message)

func (*EventPositionOpen) XXX_Size

func (m *EventPositionOpen) XXX_Size() int

func (*EventPositionOpen) XXX_Unmarshal

func (m *EventPositionOpen) XXX_Unmarshal(b []byte) error

type EventPositionWithdraw

type EventPositionWithdraw struct {
	// The ID of the withdrawn position.
	PositionId *PositionId `protobuf:"bytes,1,opt,name=position_id,json=positionId,proto3" json:"position_id,omitempty"`
	// The trading pair of the withdrawn position.
	TradingPair *TradingPair `protobuf:"bytes,2,opt,name=trading_pair,json=tradingPair,proto3" json:"trading_pair,omitempty"`
	// The reserves of asset 1 of the withdrawn position.
	Reserves_1 *v13.Amount `protobuf:"bytes,3,opt,name=reserves_1,json=reserves1,proto3" json:"reserves_1,omitempty"`
	// The reserves of asset 2 of the withdrawn position.
	Reserves_2 *v13.Amount `protobuf:"bytes,4,opt,name=reserves_2,json=reserves2,proto3" json:"reserves_2,omitempty"`
	// The sequence number of the withdrawal.
	Sequence uint64 `protobuf:"varint,5,opt,name=sequence,proto3" json:"sequence,omitempty"`
}

func (*EventPositionWithdraw) Descriptor

func (*EventPositionWithdraw) Descriptor() ([]byte, []int)

func (*EventPositionWithdraw) GetPositionId

func (m *EventPositionWithdraw) GetPositionId() *PositionId

func (*EventPositionWithdraw) GetReserves_1

func (m *EventPositionWithdraw) GetReserves_1() *v13.Amount

func (*EventPositionWithdraw) GetReserves_2

func (m *EventPositionWithdraw) GetReserves_2() *v13.Amount

func (*EventPositionWithdraw) GetSequence

func (m *EventPositionWithdraw) GetSequence() uint64

func (*EventPositionWithdraw) GetTradingPair

func (m *EventPositionWithdraw) GetTradingPair() *TradingPair

func (*EventPositionWithdraw) Marshal

func (m *EventPositionWithdraw) Marshal() (dAtA []byte, err error)

func (*EventPositionWithdraw) MarshalTo

func (m *EventPositionWithdraw) MarshalTo(dAtA []byte) (int, error)

func (*EventPositionWithdraw) MarshalToSizedBuffer

func (m *EventPositionWithdraw) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EventPositionWithdraw) ProtoMessage

func (*EventPositionWithdraw) ProtoMessage()

func (*EventPositionWithdraw) Reset

func (m *EventPositionWithdraw) Reset()

func (*EventPositionWithdraw) Size

func (m *EventPositionWithdraw) Size() (n int)

func (*EventPositionWithdraw) String

func (m *EventPositionWithdraw) String() string

func (*EventPositionWithdraw) Unmarshal

func (m *EventPositionWithdraw) Unmarshal(dAtA []byte) error

func (*EventPositionWithdraw) XXX_DiscardUnknown

func (m *EventPositionWithdraw) XXX_DiscardUnknown()

func (*EventPositionWithdraw) XXX_Marshal

func (m *EventPositionWithdraw) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EventPositionWithdraw) XXX_Merge

func (m *EventPositionWithdraw) XXX_Merge(src proto.Message)

func (*EventPositionWithdraw) XXX_Size

func (m *EventPositionWithdraw) XXX_Size() int

func (*EventPositionWithdraw) XXX_Unmarshal

func (m *EventPositionWithdraw) XXX_Unmarshal(b []byte) error

type EventQueuePositionClose

type EventQueuePositionClose struct {
	// The ID of the position queued that is closed for closure.
	PositionId *PositionId `protobuf:"bytes,1,opt,name=position_id,json=positionId,proto3" json:"position_id,omitempty"`
}

func (*EventQueuePositionClose) Descriptor

func (*EventQueuePositionClose) Descriptor() ([]byte, []int)

func (*EventQueuePositionClose) GetPositionId

func (m *EventQueuePositionClose) GetPositionId() *PositionId

func (*EventQueuePositionClose) Marshal

func (m *EventQueuePositionClose) Marshal() (dAtA []byte, err error)

func (*EventQueuePositionClose) MarshalTo

func (m *EventQueuePositionClose) MarshalTo(dAtA []byte) (int, error)

func (*EventQueuePositionClose) MarshalToSizedBuffer

func (m *EventQueuePositionClose) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EventQueuePositionClose) ProtoMessage

func (*EventQueuePositionClose) ProtoMessage()

func (*EventQueuePositionClose) Reset

func (m *EventQueuePositionClose) Reset()

func (*EventQueuePositionClose) Size

func (m *EventQueuePositionClose) Size() (n int)

func (*EventQueuePositionClose) String

func (m *EventQueuePositionClose) String() string

func (*EventQueuePositionClose) Unmarshal

func (m *EventQueuePositionClose) Unmarshal(dAtA []byte) error

func (*EventQueuePositionClose) XXX_DiscardUnknown

func (m *EventQueuePositionClose) XXX_DiscardUnknown()

func (*EventQueuePositionClose) XXX_Marshal

func (m *EventQueuePositionClose) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EventQueuePositionClose) XXX_Merge

func (m *EventQueuePositionClose) XXX_Merge(src proto.Message)

func (*EventQueuePositionClose) XXX_Size

func (m *EventQueuePositionClose) XXX_Size() int

func (*EventQueuePositionClose) XXX_Unmarshal

func (m *EventQueuePositionClose) XXX_Unmarshal(b []byte) error

type EventSwap

type EventSwap 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 *v13.Amount `protobuf:"bytes,2,opt,name=delta_1_i,json=delta1I,proto3" json:"delta_1_i,omitempty"`
	// The amount for asset 2.
	Delta_2I *v13.Amount `protobuf:"bytes,3,opt,name=delta_2_i,json=delta2I,proto3" json:"delta_2_i,omitempty"`
	// The swap commitment.
	SwapCommitment *v12.StateCommitment `protobuf:"bytes,4,opt,name=swap_commitment,json=swapCommitment,proto3" json:"swap_commitment,omitempty"`
}

func (*EventSwap) Descriptor

func (*EventSwap) Descriptor() ([]byte, []int)

func (*EventSwap) GetDelta_1I

func (m *EventSwap) GetDelta_1I() *v13.Amount

func (*EventSwap) GetDelta_2I

func (m *EventSwap) GetDelta_2I() *v13.Amount

func (*EventSwap) GetSwapCommitment

func (m *EventSwap) GetSwapCommitment() *v12.StateCommitment

func (*EventSwap) GetTradingPair

func (m *EventSwap) GetTradingPair() *TradingPair

func (*EventSwap) Marshal

func (m *EventSwap) Marshal() (dAtA []byte, err error)

func (*EventSwap) MarshalTo

func (m *EventSwap) MarshalTo(dAtA []byte) (int, error)

func (*EventSwap) MarshalToSizedBuffer

func (m *EventSwap) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EventSwap) ProtoMessage

func (*EventSwap) ProtoMessage()

func (*EventSwap) Reset

func (m *EventSwap) Reset()

func (*EventSwap) Size

func (m *EventSwap) Size() (n int)

func (*EventSwap) String

func (m *EventSwap) String() string

func (*EventSwap) Unmarshal

func (m *EventSwap) Unmarshal(dAtA []byte) error

func (*EventSwap) XXX_DiscardUnknown

func (m *EventSwap) XXX_DiscardUnknown()

func (*EventSwap) XXX_Marshal

func (m *EventSwap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EventSwap) XXX_Merge

func (m *EventSwap) XXX_Merge(src proto.Message)

func (*EventSwap) XXX_Size

func (m *EventSwap) XXX_Size() int

func (*EventSwap) XXX_Unmarshal

func (m *EventSwap) XXX_Unmarshal(b []byte) error

type EventSwapClaim

type EventSwapClaim struct {
	// The trading pair that is subject of the swap claim.
	TradingPair *TradingPair `protobuf:"bytes,1,opt,name=trading_pair,json=tradingPair,proto3" json:"trading_pair,omitempty"`
	// Note commitment for the first asset.
	Output_1Commitment *v12.StateCommitment `protobuf:"bytes,2,opt,name=output_1_commitment,json=output1Commitment,proto3" json:"output_1_commitment,omitempty"`
	// Note commitment for the second asset.
	Output_2Commitment *v12.StateCommitment `protobuf:"bytes,3,opt,name=output_2_commitment,json=output2Commitment,proto3" json:"output_2_commitment,omitempty"`
	// The nullifier for the swap commitment.
	Nullifier *v1.Nullifier `protobuf:"bytes,4,opt,name=nullifier,proto3" json:"nullifier,omitempty"`
}

func (*EventSwapClaim) Descriptor

func (*EventSwapClaim) Descriptor() ([]byte, []int)

func (*EventSwapClaim) GetNullifier

func (m *EventSwapClaim) GetNullifier() *v1.Nullifier

func (*EventSwapClaim) GetOutput_1Commitment

func (m *EventSwapClaim) GetOutput_1Commitment() *v12.StateCommitment

func (*EventSwapClaim) GetOutput_2Commitment

func (m *EventSwapClaim) GetOutput_2Commitment() *v12.StateCommitment

func (*EventSwapClaim) GetTradingPair

func (m *EventSwapClaim) GetTradingPair() *TradingPair

func (*EventSwapClaim) Marshal

func (m *EventSwapClaim) Marshal() (dAtA []byte, err error)

func (*EventSwapClaim) MarshalTo

func (m *EventSwapClaim) MarshalTo(dAtA []byte) (int, error)

func (*EventSwapClaim) MarshalToSizedBuffer

func (m *EventSwapClaim) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EventSwapClaim) ProtoMessage

func (*EventSwapClaim) ProtoMessage()

func (*EventSwapClaim) Reset

func (m *EventSwapClaim) Reset()

func (*EventSwapClaim) Size

func (m *EventSwapClaim) Size() (n int)

func (*EventSwapClaim) String

func (m *EventSwapClaim) String() string

func (*EventSwapClaim) Unmarshal

func (m *EventSwapClaim) Unmarshal(dAtA []byte) error

func (*EventSwapClaim) XXX_DiscardUnknown

func (m *EventSwapClaim) XXX_DiscardUnknown()

func (*EventSwapClaim) XXX_Marshal

func (m *EventSwapClaim) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EventSwapClaim) XXX_Merge

func (m *EventSwapClaim) XXX_Merge(src proto.Message)

func (*EventSwapClaim) XXX_Size

func (m *EventSwapClaim) XXX_Size() int

func (*EventSwapClaim) XXX_Unmarshal

func (m *EventSwapClaim) XXX_Unmarshal(b []byte) error

type EventValueCircuitBreakerCredit

type EventValueCircuitBreakerCredit struct {
	// The asset ID being deposited into the DEX.
	AssetId *v14.AssetId `protobuf:"bytes,1,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"`
	// The previous balance of the asset in the DEX.
	PreviousBalance *v13.Amount `protobuf:"bytes,2,opt,name=previous_balance,json=previousBalance,proto3" json:"previous_balance,omitempty"`
	// The new balance of the asset in the DEX.
	NewBalance *v13.Amount `protobuf:"bytes,3,opt,name=new_balance,json=newBalance,proto3" json:"new_balance,omitempty"`
}

Indicates that value was added to the DEX.

func (*EventValueCircuitBreakerCredit) Descriptor

func (*EventValueCircuitBreakerCredit) Descriptor() ([]byte, []int)

func (*EventValueCircuitBreakerCredit) GetAssetId

func (m *EventValueCircuitBreakerCredit) GetAssetId() *v14.AssetId

func (*EventValueCircuitBreakerCredit) GetNewBalance

func (m *EventValueCircuitBreakerCredit) GetNewBalance() *v13.Amount

func (*EventValueCircuitBreakerCredit) GetPreviousBalance

func (m *EventValueCircuitBreakerCredit) GetPreviousBalance() *v13.Amount

func (*EventValueCircuitBreakerCredit) Marshal

func (m *EventValueCircuitBreakerCredit) Marshal() (dAtA []byte, err error)

func (*EventValueCircuitBreakerCredit) MarshalTo

func (m *EventValueCircuitBreakerCredit) MarshalTo(dAtA []byte) (int, error)

func (*EventValueCircuitBreakerCredit) MarshalToSizedBuffer

func (m *EventValueCircuitBreakerCredit) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EventValueCircuitBreakerCredit) ProtoMessage

func (*EventValueCircuitBreakerCredit) ProtoMessage()

func (*EventValueCircuitBreakerCredit) Reset

func (m *EventValueCircuitBreakerCredit) Reset()

func (*EventValueCircuitBreakerCredit) Size

func (m *EventValueCircuitBreakerCredit) Size() (n int)

func (*EventValueCircuitBreakerCredit) String

func (*EventValueCircuitBreakerCredit) Unmarshal

func (m *EventValueCircuitBreakerCredit) Unmarshal(dAtA []byte) error

func (*EventValueCircuitBreakerCredit) XXX_DiscardUnknown

func (m *EventValueCircuitBreakerCredit) XXX_DiscardUnknown()

func (*EventValueCircuitBreakerCredit) XXX_Marshal

func (m *EventValueCircuitBreakerCredit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EventValueCircuitBreakerCredit) XXX_Merge

func (m *EventValueCircuitBreakerCredit) XXX_Merge(src proto.Message)

func (*EventValueCircuitBreakerCredit) XXX_Size

func (m *EventValueCircuitBreakerCredit) XXX_Size() int

func (*EventValueCircuitBreakerCredit) XXX_Unmarshal

func (m *EventValueCircuitBreakerCredit) XXX_Unmarshal(b []byte) error

type EventValueCircuitBreakerDebit

type EventValueCircuitBreakerDebit struct {
	// The asset ID being deposited into the DEX.
	AssetId *v14.AssetId `protobuf:"bytes,1,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"`
	// The previous balance of the asset in the DEX.
	PreviousBalance *v13.Amount `protobuf:"bytes,2,opt,name=previous_balance,json=previousBalance,proto3" json:"previous_balance,omitempty"`
	// The new balance of the asset in the DEX.
	NewBalance *v13.Amount `protobuf:"bytes,3,opt,name=new_balance,json=newBalance,proto3" json:"new_balance,omitempty"`
}

Indicates that value is leaving the DEX.

func (*EventValueCircuitBreakerDebit) Descriptor

func (*EventValueCircuitBreakerDebit) Descriptor() ([]byte, []int)

func (*EventValueCircuitBreakerDebit) GetAssetId

func (m *EventValueCircuitBreakerDebit) GetAssetId() *v14.AssetId

func (*EventValueCircuitBreakerDebit) GetNewBalance

func (m *EventValueCircuitBreakerDebit) GetNewBalance() *v13.Amount

func (*EventValueCircuitBreakerDebit) GetPreviousBalance

func (m *EventValueCircuitBreakerDebit) GetPreviousBalance() *v13.Amount

func (*EventValueCircuitBreakerDebit) Marshal

func (m *EventValueCircuitBreakerDebit) Marshal() (dAtA []byte, err error)

func (*EventValueCircuitBreakerDebit) MarshalTo

func (m *EventValueCircuitBreakerDebit) MarshalTo(dAtA []byte) (int, error)

func (*EventValueCircuitBreakerDebit) MarshalToSizedBuffer

func (m *EventValueCircuitBreakerDebit) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EventValueCircuitBreakerDebit) ProtoMessage

func (*EventValueCircuitBreakerDebit) ProtoMessage()

func (*EventValueCircuitBreakerDebit) Reset

func (m *EventValueCircuitBreakerDebit) Reset()

func (*EventValueCircuitBreakerDebit) Size

func (m *EventValueCircuitBreakerDebit) Size() (n int)

func (*EventValueCircuitBreakerDebit) String

func (*EventValueCircuitBreakerDebit) Unmarshal

func (m *EventValueCircuitBreakerDebit) Unmarshal(dAtA []byte) error

func (*EventValueCircuitBreakerDebit) XXX_DiscardUnknown

func (m *EventValueCircuitBreakerDebit) XXX_DiscardUnknown()

func (*EventValueCircuitBreakerDebit) XXX_Marshal

func (m *EventValueCircuitBreakerDebit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EventValueCircuitBreakerDebit) XXX_Merge

func (m *EventValueCircuitBreakerDebit) XXX_Merge(src proto.Message)

func (*EventValueCircuitBreakerDebit) XXX_Size

func (m *EventValueCircuitBreakerDebit) XXX_Size() int

func (*EventValueCircuitBreakerDebit) XXX_Unmarshal

func (m *EventValueCircuitBreakerDebit) XXX_Unmarshal(b []byte) error

type GenesisContent

type GenesisContent struct {
	// The initial parameters for the DEX.
	DexParams *DexParameters `protobuf:"bytes,1,opt,name=dex_params,json=dexParams,proto3" json:"dex_params,omitempty"`
}

func (*GenesisContent) Descriptor

func (*GenesisContent) Descriptor() ([]byte, []int)

func (*GenesisContent) GetDexParams

func (m *GenesisContent) GetDexParams() *DexParameters

func (*GenesisContent) Marshal

func (m *GenesisContent) Marshal() (dAtA []byte, err error)

func (*GenesisContent) MarshalTo

func (m *GenesisContent) MarshalTo(dAtA []byte) (int, error)

func (*GenesisContent) MarshalToSizedBuffer

func (m *GenesisContent) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GenesisContent) ProtoMessage

func (*GenesisContent) ProtoMessage()

func (*GenesisContent) Reset

func (m *GenesisContent) Reset()

func (*GenesisContent) Size

func (m *GenesisContent) Size() (n int)

func (*GenesisContent) String

func (m *GenesisContent) String() string

func (*GenesisContent) Unmarshal

func (m *GenesisContent) Unmarshal(dAtA []byte) error

func (*GenesisContent) XXX_DiscardUnknown

func (m *GenesisContent) XXX_DiscardUnknown()

func (*GenesisContent) XXX_Marshal

func (m *GenesisContent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GenesisContent) XXX_Merge

func (m *GenesisContent) XXX_Merge(src proto.Message)

func (*GenesisContent) XXX_Size

func (m *GenesisContent) XXX_Size() int

func (*GenesisContent) XXX_Unmarshal

func (m *GenesisContent) XXX_Unmarshal(b []byte) error

type LiquidityPositionByIdRequest

type LiquidityPositionByIdRequest struct {
	PositionId *PositionId `protobuf:"bytes,2,opt,name=position_id,json=positionId,proto3" json:"position_id,omitempty"`
}

func (*LiquidityPositionByIdRequest) Descriptor

func (*LiquidityPositionByIdRequest) Descriptor() ([]byte, []int)

func (*LiquidityPositionByIdRequest) GetPositionId

func (m *LiquidityPositionByIdRequest) GetPositionId() *PositionId

func (*LiquidityPositionByIdRequest) Marshal

func (m *LiquidityPositionByIdRequest) Marshal() (dAtA []byte, err error)

func (*LiquidityPositionByIdRequest) MarshalTo

func (m *LiquidityPositionByIdRequest) MarshalTo(dAtA []byte) (int, error)

func (*LiquidityPositionByIdRequest) MarshalToSizedBuffer

func (m *LiquidityPositionByIdRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*LiquidityPositionByIdRequest) ProtoMessage

func (*LiquidityPositionByIdRequest) ProtoMessage()

func (*LiquidityPositionByIdRequest) Reset

func (m *LiquidityPositionByIdRequest) Reset()

func (*LiquidityPositionByIdRequest) Size

func (m *LiquidityPositionByIdRequest) Size() (n int)

func (*LiquidityPositionByIdRequest) String

func (*LiquidityPositionByIdRequest) Unmarshal

func (m *LiquidityPositionByIdRequest) Unmarshal(dAtA []byte) error

func (*LiquidityPositionByIdRequest) XXX_DiscardUnknown

func (m *LiquidityPositionByIdRequest) XXX_DiscardUnknown()

func (*LiquidityPositionByIdRequest) XXX_Marshal

func (m *LiquidityPositionByIdRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LiquidityPositionByIdRequest) XXX_Merge

func (m *LiquidityPositionByIdRequest) XXX_Merge(src proto.Message)

func (*LiquidityPositionByIdRequest) XXX_Size

func (m *LiquidityPositionByIdRequest) XXX_Size() int

func (*LiquidityPositionByIdRequest) XXX_Unmarshal

func (m *LiquidityPositionByIdRequest) XXX_Unmarshal(b []byte) error

type LiquidityPositionByIdResponse

type LiquidityPositionByIdResponse struct {
	Data *Position `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
}

func (*LiquidityPositionByIdResponse) Descriptor

func (*LiquidityPositionByIdResponse) Descriptor() ([]byte, []int)

func (*LiquidityPositionByIdResponse) GetData

func (*LiquidityPositionByIdResponse) Marshal

func (m *LiquidityPositionByIdResponse) Marshal() (dAtA []byte, err error)

func (*LiquidityPositionByIdResponse) MarshalTo

func (m *LiquidityPositionByIdResponse) MarshalTo(dAtA []byte) (int, error)

func (*LiquidityPositionByIdResponse) MarshalToSizedBuffer

func (m *LiquidityPositionByIdResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*LiquidityPositionByIdResponse) ProtoMessage

func (*LiquidityPositionByIdResponse) ProtoMessage()

func (*LiquidityPositionByIdResponse) Reset

func (m *LiquidityPositionByIdResponse) Reset()

func (*LiquidityPositionByIdResponse) Size

func (m *LiquidityPositionByIdResponse) Size() (n int)

func (*LiquidityPositionByIdResponse) String

func (*LiquidityPositionByIdResponse) Unmarshal

func (m *LiquidityPositionByIdResponse) Unmarshal(dAtA []byte) error

func (*LiquidityPositionByIdResponse) XXX_DiscardUnknown

func (m *LiquidityPositionByIdResponse) XXX_DiscardUnknown()

func (*LiquidityPositionByIdResponse) XXX_Marshal

func (m *LiquidityPositionByIdResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LiquidityPositionByIdResponse) XXX_Merge

func (m *LiquidityPositionByIdResponse) XXX_Merge(src proto.Message)

func (*LiquidityPositionByIdResponse) XXX_Size

func (m *LiquidityPositionByIdResponse) XXX_Size() int

func (*LiquidityPositionByIdResponse) XXX_Unmarshal

func (m *LiquidityPositionByIdResponse) XXX_Unmarshal(b []byte) error

type LiquidityPositionsByIdRequest

type LiquidityPositionsByIdRequest struct {
	PositionId []*PositionId `protobuf:"bytes,2,rep,name=position_id,json=positionId,proto3" json:"position_id,omitempty"`
}

func (*LiquidityPositionsByIdRequest) Descriptor

func (*LiquidityPositionsByIdRequest) Descriptor() ([]byte, []int)

func (*LiquidityPositionsByIdRequest) GetPositionId

func (m *LiquidityPositionsByIdRequest) GetPositionId() []*PositionId

func (*LiquidityPositionsByIdRequest) Marshal

func (m *LiquidityPositionsByIdRequest) Marshal() (dAtA []byte, err error)

func (*LiquidityPositionsByIdRequest) MarshalTo

func (m *LiquidityPositionsByIdRequest) MarshalTo(dAtA []byte) (int, error)

func (*LiquidityPositionsByIdRequest) MarshalToSizedBuffer

func (m *LiquidityPositionsByIdRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*LiquidityPositionsByIdRequest) ProtoMessage

func (*LiquidityPositionsByIdRequest) ProtoMessage()

func (*LiquidityPositionsByIdRequest) Reset

func (m *LiquidityPositionsByIdRequest) Reset()

func (*LiquidityPositionsByIdRequest) Size

func (m *LiquidityPositionsByIdRequest) Size() (n int)

func (*LiquidityPositionsByIdRequest) String

func (*LiquidityPositionsByIdRequest) Unmarshal

func (m *LiquidityPositionsByIdRequest) Unmarshal(dAtA []byte) error

func (*LiquidityPositionsByIdRequest) XXX_DiscardUnknown

func (m *LiquidityPositionsByIdRequest) XXX_DiscardUnknown()

func (*LiquidityPositionsByIdRequest) XXX_Marshal

func (m *LiquidityPositionsByIdRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LiquidityPositionsByIdRequest) XXX_Merge

func (m *LiquidityPositionsByIdRequest) XXX_Merge(src proto.Message)

func (*LiquidityPositionsByIdRequest) XXX_Size

func (m *LiquidityPositionsByIdRequest) XXX_Size() int

func (*LiquidityPositionsByIdRequest) XXX_Unmarshal

func (m *LiquidityPositionsByIdRequest) XXX_Unmarshal(b []byte) error

type LiquidityPositionsByIdResponse

type LiquidityPositionsByIdResponse struct {
	Data *Position `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
}

func (*LiquidityPositionsByIdResponse) Descriptor

func (*LiquidityPositionsByIdResponse) Descriptor() ([]byte, []int)

func (*LiquidityPositionsByIdResponse) GetData

func (*LiquidityPositionsByIdResponse) Marshal

func (m *LiquidityPositionsByIdResponse) Marshal() (dAtA []byte, err error)

func (*LiquidityPositionsByIdResponse) MarshalTo

func (m *LiquidityPositionsByIdResponse) MarshalTo(dAtA []byte) (int, error)

func (*LiquidityPositionsByIdResponse) MarshalToSizedBuffer

func (m *LiquidityPositionsByIdResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*LiquidityPositionsByIdResponse) ProtoMessage

func (*LiquidityPositionsByIdResponse) ProtoMessage()

func (*LiquidityPositionsByIdResponse) Reset

func (m *LiquidityPositionsByIdResponse) Reset()

func (*LiquidityPositionsByIdResponse) Size

func (m *LiquidityPositionsByIdResponse) Size() (n int)

func (*LiquidityPositionsByIdResponse) String

func (*LiquidityPositionsByIdResponse) Unmarshal

func (m *LiquidityPositionsByIdResponse) Unmarshal(dAtA []byte) error

func (*LiquidityPositionsByIdResponse) XXX_DiscardUnknown

func (m *LiquidityPositionsByIdResponse) XXX_DiscardUnknown()

func (*LiquidityPositionsByIdResponse) XXX_Marshal

func (m *LiquidityPositionsByIdResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LiquidityPositionsByIdResponse) XXX_Merge

func (m *LiquidityPositionsByIdResponse) XXX_Merge(src proto.Message)

func (*LiquidityPositionsByIdResponse) XXX_Size

func (m *LiquidityPositionsByIdResponse) XXX_Size() int

func (*LiquidityPositionsByIdResponse) XXX_Unmarshal

func (m *LiquidityPositionsByIdResponse) XXX_Unmarshal(b []byte) error

type LiquidityPositionsByPriceRequest

type LiquidityPositionsByPriceRequest struct {
	// 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"`
}

func (*LiquidityPositionsByPriceRequest) Descriptor

func (*LiquidityPositionsByPriceRequest) Descriptor() ([]byte, []int)

func (*LiquidityPositionsByPriceRequest) GetLimit

func (*LiquidityPositionsByPriceRequest) GetTradingPair

func (*LiquidityPositionsByPriceRequest) Marshal

func (m *LiquidityPositionsByPriceRequest) Marshal() (dAtA []byte, err error)

func (*LiquidityPositionsByPriceRequest) MarshalTo

func (m *LiquidityPositionsByPriceRequest) MarshalTo(dAtA []byte) (int, error)

func (*LiquidityPositionsByPriceRequest) MarshalToSizedBuffer

func (m *LiquidityPositionsByPriceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*LiquidityPositionsByPriceRequest) ProtoMessage

func (*LiquidityPositionsByPriceRequest) ProtoMessage()

func (*LiquidityPositionsByPriceRequest) Reset

func (*LiquidityPositionsByPriceRequest) Size

func (m *LiquidityPositionsByPriceRequest) Size() (n int)

func (*LiquidityPositionsByPriceRequest) String

func (*LiquidityPositionsByPriceRequest) Unmarshal

func (m *LiquidityPositionsByPriceRequest) Unmarshal(dAtA []byte) error

func (*LiquidityPositionsByPriceRequest) XXX_DiscardUnknown

func (m *LiquidityPositionsByPriceRequest) XXX_DiscardUnknown()

func (*LiquidityPositionsByPriceRequest) XXX_Marshal

func (m *LiquidityPositionsByPriceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LiquidityPositionsByPriceRequest) XXX_Merge

func (*LiquidityPositionsByPriceRequest) XXX_Size

func (m *LiquidityPositionsByPriceRequest) XXX_Size() int

func (*LiquidityPositionsByPriceRequest) XXX_Unmarshal

func (m *LiquidityPositionsByPriceRequest) XXX_Unmarshal(b []byte) error

type LiquidityPositionsByPriceResponse

type LiquidityPositionsByPriceResponse struct {
	Data *Position   `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	Id   *PositionId `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
}

func (*LiquidityPositionsByPriceResponse) Descriptor

func (*LiquidityPositionsByPriceResponse) Descriptor() ([]byte, []int)

func (*LiquidityPositionsByPriceResponse) GetData

func (*LiquidityPositionsByPriceResponse) GetId

func (*LiquidityPositionsByPriceResponse) Marshal

func (m *LiquidityPositionsByPriceResponse) Marshal() (dAtA []byte, err error)

func (*LiquidityPositionsByPriceResponse) MarshalTo

func (m *LiquidityPositionsByPriceResponse) MarshalTo(dAtA []byte) (int, error)

func (*LiquidityPositionsByPriceResponse) MarshalToSizedBuffer

func (m *LiquidityPositionsByPriceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*LiquidityPositionsByPriceResponse) ProtoMessage

func (*LiquidityPositionsByPriceResponse) ProtoMessage()

func (*LiquidityPositionsByPriceResponse) Reset

func (*LiquidityPositionsByPriceResponse) Size

func (m *LiquidityPositionsByPriceResponse) Size() (n int)

func (*LiquidityPositionsByPriceResponse) String

func (*LiquidityPositionsByPriceResponse) Unmarshal

func (m *LiquidityPositionsByPriceResponse) Unmarshal(dAtA []byte) error

func (*LiquidityPositionsByPriceResponse) XXX_DiscardUnknown

func (m *LiquidityPositionsByPriceResponse) XXX_DiscardUnknown()

func (*LiquidityPositionsByPriceResponse) XXX_Marshal

func (m *LiquidityPositionsByPriceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LiquidityPositionsByPriceResponse) XXX_Merge

func (*LiquidityPositionsByPriceResponse) XXX_Size

func (m *LiquidityPositionsByPriceResponse) XXX_Size() int

func (*LiquidityPositionsByPriceResponse) XXX_Unmarshal

func (m *LiquidityPositionsByPriceResponse) XXX_Unmarshal(b []byte) error

type LiquidityPositionsRequest

type LiquidityPositionsRequest struct {
	// If true, include closed and withdrawn positions.
	IncludeClosed bool `protobuf:"varint,4,opt,name=include_closed,json=includeClosed,proto3" json:"include_closed,omitempty"`
}

func (*LiquidityPositionsRequest) Descriptor

func (*LiquidityPositionsRequest) Descriptor() ([]byte, []int)

func (*LiquidityPositionsRequest) GetIncludeClosed

func (m *LiquidityPositionsRequest) GetIncludeClosed() bool

func (*LiquidityPositionsRequest) Marshal

func (m *LiquidityPositionsRequest) Marshal() (dAtA []byte, err error)

func (*LiquidityPositionsRequest) MarshalTo

func (m *LiquidityPositionsRequest) MarshalTo(dAtA []byte) (int, error)

func (*LiquidityPositionsRequest) MarshalToSizedBuffer

func (m *LiquidityPositionsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*LiquidityPositionsRequest) ProtoMessage

func (*LiquidityPositionsRequest) ProtoMessage()

func (*LiquidityPositionsRequest) Reset

func (m *LiquidityPositionsRequest) Reset()

func (*LiquidityPositionsRequest) Size

func (m *LiquidityPositionsRequest) Size() (n int)

func (*LiquidityPositionsRequest) String

func (m *LiquidityPositionsRequest) String() string

func (*LiquidityPositionsRequest) Unmarshal

func (m *LiquidityPositionsRequest) Unmarshal(dAtA []byte) error

func (*LiquidityPositionsRequest) XXX_DiscardUnknown

func (m *LiquidityPositionsRequest) XXX_DiscardUnknown()

func (*LiquidityPositionsRequest) XXX_Marshal

func (m *LiquidityPositionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LiquidityPositionsRequest) XXX_Merge

func (m *LiquidityPositionsRequest) XXX_Merge(src proto.Message)

func (*LiquidityPositionsRequest) XXX_Size

func (m *LiquidityPositionsRequest) XXX_Size() int

func (*LiquidityPositionsRequest) XXX_Unmarshal

func (m *LiquidityPositionsRequest) XXX_Unmarshal(b []byte) error

type LiquidityPositionsResponse

type LiquidityPositionsResponse struct {
	Data *Position `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
}

func (*LiquidityPositionsResponse) Descriptor

func (*LiquidityPositionsResponse) Descriptor() ([]byte, []int)

func (*LiquidityPositionsResponse) GetData

func (m *LiquidityPositionsResponse) GetData() *Position

func (*LiquidityPositionsResponse) Marshal

func (m *LiquidityPositionsResponse) Marshal() (dAtA []byte, err error)

func (*LiquidityPositionsResponse) MarshalTo

func (m *LiquidityPositionsResponse) MarshalTo(dAtA []byte) (int, error)

func (*LiquidityPositionsResponse) MarshalToSizedBuffer

func (m *LiquidityPositionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*LiquidityPositionsResponse) ProtoMessage

func (*LiquidityPositionsResponse) ProtoMessage()

func (*LiquidityPositionsResponse) Reset

func (m *LiquidityPositionsResponse) Reset()

func (*LiquidityPositionsResponse) Size

func (m *LiquidityPositionsResponse) Size() (n int)

func (*LiquidityPositionsResponse) String

func (m *LiquidityPositionsResponse) String() string

func (*LiquidityPositionsResponse) Unmarshal

func (m *LiquidityPositionsResponse) Unmarshal(dAtA []byte) error

func (*LiquidityPositionsResponse) XXX_DiscardUnknown

func (m *LiquidityPositionsResponse) XXX_DiscardUnknown()

func (*LiquidityPositionsResponse) XXX_Marshal

func (m *LiquidityPositionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LiquidityPositionsResponse) XXX_Merge

func (m *LiquidityPositionsResponse) XXX_Merge(src proto.Message)

func (*LiquidityPositionsResponse) XXX_Size

func (m *LiquidityPositionsResponse) XXX_Size() int

func (*LiquidityPositionsResponse) XXX_Unmarshal

func (m *LiquidityPositionsResponse) 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) Descriptor() ([]byte, []int)

func (*LpNft) GetPositionId

func (m *LpNft) GetPositionId() *PositionId

func (*LpNft) GetState

func (m *LpNft) GetState() *PositionState

func (*LpNft) Marshal

func (m *LpNft) Marshal() (dAtA []byte, err error)

func (*LpNft) MarshalTo

func (m *LpNft) MarshalTo(dAtA []byte) (int, error)

func (*LpNft) MarshalToSizedBuffer

func (m *LpNft) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*LpNft) ProtoMessage

func (*LpNft) ProtoMessage()

func (*LpNft) Reset

func (m *LpNft) Reset()

func (*LpNft) Size

func (m *LpNft) Size() (n int)

func (*LpNft) String

func (m *LpNft) String() string

func (*LpNft) Unmarshal

func (m *LpNft) Unmarshal(dAtA []byte) error

func (*LpNft) XXX_DiscardUnknown

func (m *LpNft) XXX_DiscardUnknown()

func (*LpNft) XXX_Marshal

func (m *LpNft) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LpNft) XXX_Merge

func (m *LpNft) XXX_Merge(src proto.Message)

func (*LpNft) XXX_Size

func (m *LpNft) XXX_Size() int

func (*LpNft) XXX_Unmarshal

func (m *LpNft) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*Position) GetCloseOnFill

func (m *Position) GetCloseOnFill() bool

func (*Position) GetNonce

func (m *Position) GetNonce() []byte

func (*Position) GetPhi

func (m *Position) GetPhi() *TradingFunction

func (*Position) GetReserves

func (m *Position) GetReserves() *Reserves

func (*Position) GetState

func (m *Position) GetState() *PositionState

func (*Position) Marshal

func (m *Position) Marshal() (dAtA []byte, err error)

func (*Position) MarshalTo

func (m *Position) MarshalTo(dAtA []byte) (int, error)

func (*Position) MarshalToSizedBuffer

func (m *Position) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Position) ProtoMessage

func (*Position) ProtoMessage()

func (*Position) Reset

func (m *Position) Reset()

func (*Position) Size

func (m *Position) Size() (n int)

func (*Position) String

func (m *Position) String() string

func (*Position) Unmarshal

func (m *Position) Unmarshal(dAtA []byte) error

func (*Position) XXX_DiscardUnknown

func (m *Position) XXX_DiscardUnknown()

func (*Position) XXX_Marshal

func (m *Position) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Position) XXX_Merge

func (m *Position) XXX_Merge(src proto.Message)

func (*Position) XXX_Size

func (m *Position) XXX_Size() int

func (*Position) XXX_Unmarshal

func (m *Position) XXX_Unmarshal(b []byte) error

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) MarshalTo

func (m *PositionClose) MarshalTo(dAtA []byte) (int, 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) MarshalTo

func (m *PositionId) MarshalTo(dAtA []byte) (int, 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) MarshalTo

func (m *PositionOpen) MarshalTo(dAtA []byte) (int, 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"`
	RewardsCommitment *v14.BalanceCommitment `protobuf:"bytes,2,opt,name=rewards_commitment,json=rewardsCommitment,proto3" json:"rewards_commitment,omitempty"`
}

Deprecated.

func (*PositionRewardClaim) Descriptor

func (*PositionRewardClaim) Descriptor() ([]byte, []int)

func (*PositionRewardClaim) GetPositionId

func (m *PositionRewardClaim) GetPositionId() *PositionId

func (*PositionRewardClaim) GetRewardsCommitment

func (m *PositionRewardClaim) GetRewardsCommitment() *v14.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"`
}

Deprecated.

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 `` /* 132-byte string literal not displayed */
	// Only meaningful if `state` is `POSITION_STATE_ENUM_WITHDRAWN`.
	//
	// The sequence number allows multiple withdrawals from the same position.
	Sequence uint64 `protobuf:"varint,2,opt,name=sequence,proto3" json:"sequence,omitempty"`
}

The state of a position.

func (*PositionState) Descriptor

func (*PositionState) Descriptor() ([]byte, []int)

func (*PositionState) GetSequence

func (m *PositionState) GetSequence() uint64

func (*PositionState) GetState

func (*PositionState) Marshal

func (m *PositionState) Marshal() (dAtA []byte, err error)

func (*PositionState) MarshalTo

func (m *PositionState) MarshalTo(dAtA []byte) (int, 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.
	//
	// Positions can be withdrawn from multiple times, incrementing a sequence
	// number each time.
	PositionState_POSITION_STATE_ENUM_WITHDRAWN PositionState_PositionStateEnum = 3
	// Deprecated.
	PositionState_POSITION_STATE_ENUM_CLAIMED PositionState_PositionStateEnum = 4 // Deprecated: Do not use.
)

func (PositionState_PositionStateEnum) EnumDescriptor

func (PositionState_PositionStateEnum) EnumDescriptor() ([]byte, []int)

func (PositionState_PositionStateEnum) 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 *v14.BalanceCommitment `protobuf:"bytes,2,opt,name=reserves_commitment,json=reservesCommitment,proto3" json:"reserves_commitment,omitempty"`
	// The sequence number of the withdrawal.
	//
	// This allows multiple withdrawals from the same position, rather than a single reward claim.
	Sequence uint64 `protobuf:"varint,3,opt,name=sequence,proto3" json:"sequence,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() *v14.BalanceCommitment

func (*PositionWithdraw) GetSequence

func (m *PositionWithdraw) GetSequence() uint64

func (*PositionWithdraw) Marshal

func (m *PositionWithdraw) Marshal() (dAtA []byte, err error)

func (*PositionWithdraw) MarshalTo

func (m *PositionWithdraw) MarshalTo(dAtA []byte) (int, 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"`
	// The sequence number of the withdrawal.
	Sequence uint64 `protobuf:"varint,4,opt,name=sequence,proto3" json:"sequence,omitempty"`
	// Any accumulated rewards assigned to this position.
	Rewards []*v14.Value `protobuf:"bytes,5,rep,name=rewards,proto3" json:"rewards,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) GetRewards

func (m *PositionWithdrawPlan) GetRewards() []*v14.Value

func (*PositionWithdrawPlan) GetSequence

func (m *PositionWithdrawPlan) GetSequence() uint64

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 QueryServiceClient

type QueryServiceClient interface {
	// Get the batch clearing prices for a specific block height and trading pair.
	BatchSwapOutputData(ctx context.Context, in *BatchSwapOutputDataRequest, opts ...grpc.CallOption) (*BatchSwapOutputDataResponse, error)
	// Get the precise swap execution used for a specific batch swap.
	SwapExecution(ctx context.Context, in *SwapExecutionRequest, opts ...grpc.CallOption) (*SwapExecutionResponse, error)
	// Get the precise execution used to perform on-chain arbitrage.
	ArbExecution(ctx context.Context, in *ArbExecutionRequest, opts ...grpc.CallOption) (*ArbExecutionResponse, error)
	// Stream all swap executions over a range of heights, optionally subscribing to future executions.
	SwapExecutions(ctx context.Context, in *SwapExecutionsRequest, opts ...grpc.CallOption) (QueryService_SwapExecutionsClient, error)
	// Stream all arbitrage executions over a range of heights, optionally subscribing to future executions.
	ArbExecutions(ctx context.Context, in *ArbExecutionsRequest, opts ...grpc.CallOption) (QueryService_ArbExecutionsClient, error)
	// Query all liquidity positions on the DEX.
	LiquidityPositions(ctx context.Context, in *LiquidityPositionsRequest, opts ...grpc.CallOption) (QueryService_LiquidityPositionsClient, error)
	// Query liquidity positions by ID.
	//
	// To get multiple positions, use `LiquidityPositionsById`.
	LiquidityPositionById(ctx context.Context, in *LiquidityPositionByIdRequest, opts ...grpc.CallOption) (*LiquidityPositionByIdResponse, error)
	// Query multiple liquidity positions by ID.
	LiquidityPositionsById(ctx context.Context, in *LiquidityPositionsByIdRequest, opts ...grpc.CallOption) (QueryService_LiquidityPositionsByIdClient, error)
	// Query liquidity positions on a specific pair, sorted by effective price.
	LiquidityPositionsByPrice(ctx context.Context, in *LiquidityPositionsByPriceRequest, opts ...grpc.CallOption) (QueryService_LiquidityPositionsByPriceClient, error)
	// Get the current (direct) spread on a trading pair.
	//
	// This method doesn't do simulation, so actually executing might result in a
	// better price (if the chain takes a different route to the target asset).
	Spread(ctx context.Context, in *SpreadRequest, opts ...grpc.CallOption) (*SpreadResponse, error)
	// Get historical candlestick data for a given trading pair.
	//
	// Note that this RPC is directional, to get data for both directions, make a second request.
	CandlestickData(ctx context.Context, in *CandlestickDataRequest, opts ...grpc.CallOption) (*CandlestickDataResponse, error)
	// Subscribe to candlestick data updates.
	CandlestickDataStream(ctx context.Context, in *CandlestickDataStreamRequest, opts ...grpc.CallOption) (QueryService_CandlestickDataStreamClient, error)
}

QueryServiceClient is the client API for QueryService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewQueryServiceClient

func NewQueryServiceClient(cc grpc1.ClientConn) QueryServiceClient

type QueryServiceServer

type QueryServiceServer interface {
	// Get the batch clearing prices for a specific block height and trading pair.
	BatchSwapOutputData(context.Context, *BatchSwapOutputDataRequest) (*BatchSwapOutputDataResponse, error)
	// Get the precise swap execution used for a specific batch swap.
	SwapExecution(context.Context, *SwapExecutionRequest) (*SwapExecutionResponse, error)
	// Get the precise execution used to perform on-chain arbitrage.
	ArbExecution(context.Context, *ArbExecutionRequest) (*ArbExecutionResponse, error)
	// Stream all swap executions over a range of heights, optionally subscribing to future executions.
	SwapExecutions(*SwapExecutionsRequest, QueryService_SwapExecutionsServer) error
	// Stream all arbitrage executions over a range of heights, optionally subscribing to future executions.
	ArbExecutions(*ArbExecutionsRequest, QueryService_ArbExecutionsServer) error
	// Query all liquidity positions on the DEX.
	LiquidityPositions(*LiquidityPositionsRequest, QueryService_LiquidityPositionsServer) error
	// Query liquidity positions by ID.
	//
	// To get multiple positions, use `LiquidityPositionsById`.
	LiquidityPositionById(context.Context, *LiquidityPositionByIdRequest) (*LiquidityPositionByIdResponse, error)
	// Query multiple liquidity positions by ID.
	LiquidityPositionsById(*LiquidityPositionsByIdRequest, QueryService_LiquidityPositionsByIdServer) error
	// Query liquidity positions on a specific pair, sorted by effective price.
	LiquidityPositionsByPrice(*LiquidityPositionsByPriceRequest, QueryService_LiquidityPositionsByPriceServer) error
	// Get the current (direct) spread on a trading pair.
	//
	// This method doesn't do simulation, so actually executing might result in a
	// better price (if the chain takes a different route to the target asset).
	Spread(context.Context, *SpreadRequest) (*SpreadResponse, error)
	// Get historical candlestick data for a given trading pair.
	//
	// Note that this RPC is directional, to get data for both directions, make a second request.
	CandlestickData(context.Context, *CandlestickDataRequest) (*CandlestickDataResponse, error)
	// Subscribe to candlestick data updates.
	CandlestickDataStream(*CandlestickDataStreamRequest, QueryService_CandlestickDataStreamServer) error
}

QueryServiceServer is the server API for QueryService service.

type QueryService_ArbExecutionsClient

type QueryService_ArbExecutionsClient interface {
	Recv() (*ArbExecutionsResponse, error)
	grpc.ClientStream
}

type QueryService_ArbExecutionsServer

type QueryService_ArbExecutionsServer interface {
	Send(*ArbExecutionsResponse) error
	grpc.ServerStream
}

type QueryService_CandlestickDataStreamClient

type QueryService_CandlestickDataStreamClient interface {
	Recv() (*CandlestickDataStreamResponse, error)
	grpc.ClientStream
}

type QueryService_CandlestickDataStreamServer

type QueryService_CandlestickDataStreamServer interface {
	Send(*CandlestickDataStreamResponse) error
	grpc.ServerStream
}

type QueryService_LiquidityPositionsByIdClient

type QueryService_LiquidityPositionsByIdClient interface {
	Recv() (*LiquidityPositionsByIdResponse, error)
	grpc.ClientStream
}

type QueryService_LiquidityPositionsByIdServer

type QueryService_LiquidityPositionsByIdServer interface {
	Send(*LiquidityPositionsByIdResponse) error
	grpc.ServerStream
}

type QueryService_LiquidityPositionsByPriceClient

type QueryService_LiquidityPositionsByPriceClient interface {
	Recv() (*LiquidityPositionsByPriceResponse, error)
	grpc.ClientStream
}

type QueryService_LiquidityPositionsByPriceServer

type QueryService_LiquidityPositionsByPriceServer interface {
	Send(*LiquidityPositionsByPriceResponse) error
	grpc.ServerStream
}

type QueryService_LiquidityPositionsClient

type QueryService_LiquidityPositionsClient interface {
	Recv() (*LiquidityPositionsResponse, error)
	grpc.ClientStream
}

type QueryService_LiquidityPositionsServer

type QueryService_LiquidityPositionsServer interface {
	Send(*LiquidityPositionsResponse) error
	grpc.ServerStream
}

type QueryService_SwapExecutionsClient

type QueryService_SwapExecutionsClient interface {
	Recv() (*SwapExecutionsResponse, error)
	grpc.ClientStream
}

type QueryService_SwapExecutionsServer

type QueryService_SwapExecutionsServer interface {
	Send(*SwapExecutionsResponse) error
	grpc.ServerStream
}

type Reserves

type Reserves struct {
	R1 *v13.Amount `protobuf:"bytes,1,opt,name=r1,proto3" json:"r1,omitempty"`
	R2 *v13.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) Descriptor() ([]byte, []int)

func (*Reserves) GetR1

func (m *Reserves) GetR1() *v13.Amount

func (*Reserves) GetR2

func (m *Reserves) GetR2() *v13.Amount

func (*Reserves) Marshal

func (m *Reserves) Marshal() (dAtA []byte, err error)

func (*Reserves) MarshalTo

func (m *Reserves) MarshalTo(dAtA []byte) (int, error)

func (*Reserves) MarshalToSizedBuffer

func (m *Reserves) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Reserves) ProtoMessage

func (*Reserves) ProtoMessage()

func (*Reserves) Reset

func (m *Reserves) Reset()

func (*Reserves) Size

func (m *Reserves) Size() (n int)

func (*Reserves) String

func (m *Reserves) String() string

func (*Reserves) Unmarshal

func (m *Reserves) Unmarshal(dAtA []byte) error

func (*Reserves) XXX_DiscardUnknown

func (m *Reserves) XXX_DiscardUnknown()

func (*Reserves) XXX_Marshal

func (m *Reserves) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Reserves) XXX_Merge

func (m *Reserves) XXX_Merge(src proto.Message)

func (*Reserves) XXX_Size

func (m *Reserves) XXX_Size() int

func (*Reserves) XXX_Unmarshal

func (m *Reserves) XXX_Unmarshal(b []byte) error

type SimulateTradeRequest

type SimulateTradeRequest struct {
	Input   *v14.Value                    `protobuf:"bytes,1,opt,name=input,proto3" json:"input,omitempty"`
	Output  *v14.AssetId                  `protobuf:"bytes,2,opt,name=output,proto3" json:"output,omitempty"`
	Routing *SimulateTradeRequest_Routing `protobuf:"bytes,3,opt,name=routing,proto3" json:"routing,omitempty"`
}

func (*SimulateTradeRequest) Descriptor

func (*SimulateTradeRequest) Descriptor() ([]byte, []int)

func (*SimulateTradeRequest) GetInput

func (m *SimulateTradeRequest) GetInput() *v14.Value

func (*SimulateTradeRequest) GetOutput

func (m *SimulateTradeRequest) GetOutput() *v14.AssetId

func (*SimulateTradeRequest) GetRouting

func (*SimulateTradeRequest) Marshal

func (m *SimulateTradeRequest) Marshal() (dAtA []byte, err error)

func (*SimulateTradeRequest) MarshalTo

func (m *SimulateTradeRequest) MarshalTo(dAtA []byte) (int, error)

func (*SimulateTradeRequest) MarshalToSizedBuffer

func (m *SimulateTradeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SimulateTradeRequest) ProtoMessage

func (*SimulateTradeRequest) ProtoMessage()

func (*SimulateTradeRequest) Reset

func (m *SimulateTradeRequest) Reset()

func (*SimulateTradeRequest) Size

func (m *SimulateTradeRequest) Size() (n int)

func (*SimulateTradeRequest) String

func (m *SimulateTradeRequest) String() string

func (*SimulateTradeRequest) Unmarshal

func (m *SimulateTradeRequest) Unmarshal(dAtA []byte) error

func (*SimulateTradeRequest) XXX_DiscardUnknown

func (m *SimulateTradeRequest) XXX_DiscardUnknown()

func (*SimulateTradeRequest) XXX_Marshal

func (m *SimulateTradeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SimulateTradeRequest) XXX_Merge

func (m *SimulateTradeRequest) XXX_Merge(src proto.Message)

func (*SimulateTradeRequest) XXX_Size

func (m *SimulateTradeRequest) XXX_Size() int

func (*SimulateTradeRequest) XXX_Unmarshal

func (m *SimulateTradeRequest) XXX_Unmarshal(b []byte) error

type SimulateTradeRequest_Routing

type SimulateTradeRequest_Routing struct {
	// Types that are valid to be assigned to Setting:
	//
	//	*SimulateTradeRequest_Routing_Default_
	//	*SimulateTradeRequest_Routing_SingleHop_
	Setting isSimulateTradeRequest_Routing_Setting `protobuf_oneof:"setting"`
}

func (*SimulateTradeRequest_Routing) Descriptor

func (*SimulateTradeRequest_Routing) Descriptor() ([]byte, []int)

func (*SimulateTradeRequest_Routing) GetDefault

func (*SimulateTradeRequest_Routing) GetSetting

func (m *SimulateTradeRequest_Routing) GetSetting() isSimulateTradeRequest_Routing_Setting

func (*SimulateTradeRequest_Routing) GetSingleHop

func (*SimulateTradeRequest_Routing) Marshal

func (m *SimulateTradeRequest_Routing) Marshal() (dAtA []byte, err error)

func (*SimulateTradeRequest_Routing) MarshalTo

func (m *SimulateTradeRequest_Routing) MarshalTo(dAtA []byte) (int, error)

func (*SimulateTradeRequest_Routing) MarshalToSizedBuffer

func (m *SimulateTradeRequest_Routing) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SimulateTradeRequest_Routing) ProtoMessage

func (*SimulateTradeRequest_Routing) ProtoMessage()

func (*SimulateTradeRequest_Routing) Reset

func (m *SimulateTradeRequest_Routing) Reset()

func (*SimulateTradeRequest_Routing) Size

func (m *SimulateTradeRequest_Routing) Size() (n int)

func (*SimulateTradeRequest_Routing) String

func (*SimulateTradeRequest_Routing) Unmarshal

func (m *SimulateTradeRequest_Routing) Unmarshal(dAtA []byte) error

func (*SimulateTradeRequest_Routing) XXX_DiscardUnknown

func (m *SimulateTradeRequest_Routing) XXX_DiscardUnknown()

func (*SimulateTradeRequest_Routing) XXX_Marshal

func (m *SimulateTradeRequest_Routing) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SimulateTradeRequest_Routing) XXX_Merge

func (m *SimulateTradeRequest_Routing) XXX_Merge(src proto.Message)

func (*SimulateTradeRequest_Routing) XXX_OneofWrappers

func (*SimulateTradeRequest_Routing) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*SimulateTradeRequest_Routing) XXX_Size

func (m *SimulateTradeRequest_Routing) XXX_Size() int

func (*SimulateTradeRequest_Routing) XXX_Unmarshal

func (m *SimulateTradeRequest_Routing) XXX_Unmarshal(b []byte) error

type SimulateTradeRequest_Routing_Default

type SimulateTradeRequest_Routing_Default struct {
}

func (*SimulateTradeRequest_Routing_Default) Descriptor

func (*SimulateTradeRequest_Routing_Default) Descriptor() ([]byte, []int)

func (*SimulateTradeRequest_Routing_Default) Marshal

func (m *SimulateTradeRequest_Routing_Default) Marshal() (dAtA []byte, err error)

func (*SimulateTradeRequest_Routing_Default) MarshalTo

func (m *SimulateTradeRequest_Routing_Default) MarshalTo(dAtA []byte) (int, error)

func (*SimulateTradeRequest_Routing_Default) MarshalToSizedBuffer

func (m *SimulateTradeRequest_Routing_Default) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SimulateTradeRequest_Routing_Default) ProtoMessage

func (*SimulateTradeRequest_Routing_Default) ProtoMessage()

func (*SimulateTradeRequest_Routing_Default) Reset

func (*SimulateTradeRequest_Routing_Default) Size

func (*SimulateTradeRequest_Routing_Default) String

func (*SimulateTradeRequest_Routing_Default) Unmarshal

func (m *SimulateTradeRequest_Routing_Default) Unmarshal(dAtA []byte) error

func (*SimulateTradeRequest_Routing_Default) XXX_DiscardUnknown

func (m *SimulateTradeRequest_Routing_Default) XXX_DiscardUnknown()

func (*SimulateTradeRequest_Routing_Default) XXX_Marshal

func (m *SimulateTradeRequest_Routing_Default) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SimulateTradeRequest_Routing_Default) XXX_Merge

func (*SimulateTradeRequest_Routing_Default) XXX_Size

func (*SimulateTradeRequest_Routing_Default) XXX_Unmarshal

func (m *SimulateTradeRequest_Routing_Default) XXX_Unmarshal(b []byte) error

type SimulateTradeRequest_Routing_Default_

type SimulateTradeRequest_Routing_Default_ struct {
	Default *SimulateTradeRequest_Routing_Default `protobuf:"bytes,1,opt,name=default,proto3,oneof" json:"default,omitempty"`
}

func (*SimulateTradeRequest_Routing_Default_) MarshalTo

func (m *SimulateTradeRequest_Routing_Default_) MarshalTo(dAtA []byte) (int, error)

func (*SimulateTradeRequest_Routing_Default_) MarshalToSizedBuffer

func (m *SimulateTradeRequest_Routing_Default_) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SimulateTradeRequest_Routing_Default_) Size

type SimulateTradeRequest_Routing_SingleHop

type SimulateTradeRequest_Routing_SingleHop struct {
}

func (*SimulateTradeRequest_Routing_SingleHop) Descriptor

func (*SimulateTradeRequest_Routing_SingleHop) Descriptor() ([]byte, []int)

func (*SimulateTradeRequest_Routing_SingleHop) Marshal

func (m *SimulateTradeRequest_Routing_SingleHop) Marshal() (dAtA []byte, err error)

func (*SimulateTradeRequest_Routing_SingleHop) MarshalTo

func (m *SimulateTradeRequest_Routing_SingleHop) MarshalTo(dAtA []byte) (int, error)

func (*SimulateTradeRequest_Routing_SingleHop) MarshalToSizedBuffer

func (m *SimulateTradeRequest_Routing_SingleHop) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SimulateTradeRequest_Routing_SingleHop) ProtoMessage

func (*SimulateTradeRequest_Routing_SingleHop) Reset

func (*SimulateTradeRequest_Routing_SingleHop) Size

func (*SimulateTradeRequest_Routing_SingleHop) String

func (*SimulateTradeRequest_Routing_SingleHop) Unmarshal

func (m *SimulateTradeRequest_Routing_SingleHop) Unmarshal(dAtA []byte) error

func (*SimulateTradeRequest_Routing_SingleHop) XXX_DiscardUnknown

func (m *SimulateTradeRequest_Routing_SingleHop) XXX_DiscardUnknown()

func (*SimulateTradeRequest_Routing_SingleHop) XXX_Marshal

func (m *SimulateTradeRequest_Routing_SingleHop) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SimulateTradeRequest_Routing_SingleHop) XXX_Merge

func (*SimulateTradeRequest_Routing_SingleHop) XXX_Size

func (*SimulateTradeRequest_Routing_SingleHop) XXX_Unmarshal

func (m *SimulateTradeRequest_Routing_SingleHop) XXX_Unmarshal(b []byte) error

type SimulateTradeRequest_Routing_SingleHop_

type SimulateTradeRequest_Routing_SingleHop_ struct {
	SingleHop *SimulateTradeRequest_Routing_SingleHop `protobuf:"bytes,2,opt,name=single_hop,json=singleHop,proto3,oneof" json:"single_hop,omitempty"`
}

func (*SimulateTradeRequest_Routing_SingleHop_) MarshalTo

func (m *SimulateTradeRequest_Routing_SingleHop_) MarshalTo(dAtA []byte) (int, error)

func (*SimulateTradeRequest_Routing_SingleHop_) MarshalToSizedBuffer

func (m *SimulateTradeRequest_Routing_SingleHop_) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SimulateTradeRequest_Routing_SingleHop_) Size

type SimulateTradeResponse

type SimulateTradeResponse struct {
	Output *SwapExecution `protobuf:"bytes,1,opt,name=output,proto3" json:"output,omitempty"`
	// Estimated input amount that will not be swapped due to liquidity
	Unfilled *v14.Value `protobuf:"bytes,2,opt,name=unfilled,proto3" json:"unfilled,omitempty"`
}

func (*SimulateTradeResponse) Descriptor

func (*SimulateTradeResponse) Descriptor() ([]byte, []int)

func (*SimulateTradeResponse) GetOutput

func (m *SimulateTradeResponse) GetOutput() *SwapExecution

func (*SimulateTradeResponse) GetUnfilled

func (m *SimulateTradeResponse) GetUnfilled() *v14.Value

func (*SimulateTradeResponse) Marshal

func (m *SimulateTradeResponse) Marshal() (dAtA []byte, err error)

func (*SimulateTradeResponse) MarshalTo

func (m *SimulateTradeResponse) MarshalTo(dAtA []byte) (int, error)

func (*SimulateTradeResponse) MarshalToSizedBuffer

func (m *SimulateTradeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SimulateTradeResponse) ProtoMessage

func (*SimulateTradeResponse) ProtoMessage()

func (*SimulateTradeResponse) Reset

func (m *SimulateTradeResponse) Reset()

func (*SimulateTradeResponse) Size

func (m *SimulateTradeResponse) Size() (n int)

func (*SimulateTradeResponse) String

func (m *SimulateTradeResponse) String() string

func (*SimulateTradeResponse) Unmarshal

func (m *SimulateTradeResponse) Unmarshal(dAtA []byte) error

func (*SimulateTradeResponse) XXX_DiscardUnknown

func (m *SimulateTradeResponse) XXX_DiscardUnknown()

func (*SimulateTradeResponse) XXX_Marshal

func (m *SimulateTradeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SimulateTradeResponse) XXX_Merge

func (m *SimulateTradeResponse) XXX_Merge(src proto.Message)

func (*SimulateTradeResponse) XXX_Size

func (m *SimulateTradeResponse) XXX_Size() int

func (*SimulateTradeResponse) XXX_Unmarshal

func (m *SimulateTradeResponse) XXX_Unmarshal(b []byte) error

type SimulationServiceClient

type SimulationServiceClient interface {
	// Simulate routing and trade execution.
	SimulateTrade(ctx context.Context, in *SimulateTradeRequest, opts ...grpc.CallOption) (*SimulateTradeResponse, error)
}

SimulationServiceClient is the client API for SimulationService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewSimulationServiceClient

func NewSimulationServiceClient(cc grpc1.ClientConn) SimulationServiceClient

type SimulationServiceServer

type SimulationServiceServer interface {
	// Simulate routing and trade execution.
	SimulateTrade(context.Context, *SimulateTradeRequest) (*SimulateTradeResponse, error)
}

SimulationServiceServer is the server API for SimulationService service.

type SpreadRequest

type SpreadRequest struct {
	TradingPair *TradingPair `protobuf:"bytes,2,opt,name=trading_pair,json=tradingPair,proto3" json:"trading_pair,omitempty"`
}

func (*SpreadRequest) Descriptor

func (*SpreadRequest) Descriptor() ([]byte, []int)

func (*SpreadRequest) GetTradingPair

func (m *SpreadRequest) GetTradingPair() *TradingPair

func (*SpreadRequest) Marshal

func (m *SpreadRequest) Marshal() (dAtA []byte, err error)

func (*SpreadRequest) MarshalTo

func (m *SpreadRequest) MarshalTo(dAtA []byte) (int, error)

func (*SpreadRequest) MarshalToSizedBuffer

func (m *SpreadRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SpreadRequest) ProtoMessage

func (*SpreadRequest) ProtoMessage()

func (*SpreadRequest) Reset

func (m *SpreadRequest) Reset()

func (*SpreadRequest) Size

func (m *SpreadRequest) Size() (n int)

func (*SpreadRequest) String

func (m *SpreadRequest) String() string

func (*SpreadRequest) Unmarshal

func (m *SpreadRequest) Unmarshal(dAtA []byte) error

func (*SpreadRequest) XXX_DiscardUnknown

func (m *SpreadRequest) XXX_DiscardUnknown()

func (*SpreadRequest) XXX_Marshal

func (m *SpreadRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SpreadRequest) XXX_Merge

func (m *SpreadRequest) XXX_Merge(src proto.Message)

func (*SpreadRequest) XXX_Size

func (m *SpreadRequest) XXX_Size() int

func (*SpreadRequest) XXX_Unmarshal

func (m *SpreadRequest) XXX_Unmarshal(b []byte) error

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 */
}

func (*SpreadResponse) Descriptor

func (*SpreadResponse) Descriptor() ([]byte, []int)

func (*SpreadResponse) GetApproxEffectivePrice_1To_2

func (m *SpreadResponse) GetApproxEffectivePrice_1To_2() float64

func (*SpreadResponse) GetApproxEffectivePrice_2To_1

func (m *SpreadResponse) GetApproxEffectivePrice_2To_1() float64

func (*SpreadResponse) GetBest_1To_2Position

func (m *SpreadResponse) GetBest_1To_2Position() *Position

func (*SpreadResponse) GetBest_2To_1Position

func (m *SpreadResponse) GetBest_2To_1Position() *Position

func (*SpreadResponse) Marshal

func (m *SpreadResponse) Marshal() (dAtA []byte, err error)

func (*SpreadResponse) MarshalTo

func (m *SpreadResponse) MarshalTo(dAtA []byte) (int, error)

func (*SpreadResponse) MarshalToSizedBuffer

func (m *SpreadResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SpreadResponse) ProtoMessage

func (*SpreadResponse) ProtoMessage()

func (*SpreadResponse) Reset

func (m *SpreadResponse) Reset()

func (*SpreadResponse) Size

func (m *SpreadResponse) Size() (n int)

func (*SpreadResponse) String

func (m *SpreadResponse) String() string

func (*SpreadResponse) Unmarshal

func (m *SpreadResponse) Unmarshal(dAtA []byte) error

func (*SpreadResponse) XXX_DiscardUnknown

func (m *SpreadResponse) XXX_DiscardUnknown()

func (*SpreadResponse) XXX_Marshal

func (m *SpreadResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SpreadResponse) XXX_Merge

func (m *SpreadResponse) XXX_Merge(src proto.Message)

func (*SpreadResponse) XXX_Size

func (m *SpreadResponse) XXX_Size() int

func (*SpreadResponse) XXX_Unmarshal

func (m *SpreadResponse) XXX_Unmarshal(b []byte) error

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"`
}

A transaction action that submits a swap to the dex.

func (*Swap) Descriptor

func (*Swap) Descriptor() ([]byte, []int)

func (*Swap) GetBody

func (m *Swap) GetBody() *SwapBody

func (*Swap) GetProof

func (m *Swap) GetProof() *ZKSwapProof

func (*Swap) Marshal

func (m *Swap) Marshal() (dAtA []byte, err error)

func (*Swap) MarshalTo

func (m *Swap) MarshalTo(dAtA []byte) (int, error)

func (*Swap) MarshalToSizedBuffer

func (m *Swap) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Swap) ProtoMessage

func (*Swap) ProtoMessage()

func (*Swap) Reset

func (m *Swap) Reset()

func (*Swap) Size

func (m *Swap) Size() (n int)

func (*Swap) String

func (m *Swap) String() string

func (*Swap) Unmarshal

func (m *Swap) Unmarshal(dAtA []byte) error

func (*Swap) XXX_DiscardUnknown

func (m *Swap) XXX_DiscardUnknown()

func (*Swap) XXX_Marshal

func (m *Swap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Swap) XXX_Merge

func (m *Swap) XXX_Merge(src proto.Message)

func (*Swap) XXX_Size

func (m *Swap) XXX_Size() int

func (*Swap) XXX_Unmarshal

func (m *Swap) XXX_Unmarshal(b []byte) error

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 *v13.Amount `protobuf:"bytes,2,opt,name=delta_1_i,json=delta1I,proto3" json:"delta_1_i,omitempty"`
	// The amount for asset 2.
	Delta_2I *v13.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 *v14.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) Descriptor() ([]byte, []int)

func (*SwapBody) GetDelta_1I

func (m *SwapBody) GetDelta_1I() *v13.Amount

func (*SwapBody) GetDelta_2I

func (m *SwapBody) GetDelta_2I() *v13.Amount

func (*SwapBody) GetFeeCommitment

func (m *SwapBody) GetFeeCommitment() *v14.BalanceCommitment

func (*SwapBody) GetPayload

func (m *SwapBody) GetPayload() *SwapPayload

func (*SwapBody) GetTradingPair

func (m *SwapBody) GetTradingPair() *TradingPair

func (*SwapBody) Marshal

func (m *SwapBody) Marshal() (dAtA []byte, err error)

func (*SwapBody) MarshalTo

func (m *SwapBody) MarshalTo(dAtA []byte) (int, error)

func (*SwapBody) MarshalToSizedBuffer

func (m *SwapBody) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SwapBody) ProtoMessage

func (*SwapBody) ProtoMessage()

func (*SwapBody) Reset

func (m *SwapBody) Reset()

func (*SwapBody) Size

func (m *SwapBody) Size() (n int)

func (*SwapBody) String

func (m *SwapBody) String() string

func (*SwapBody) Unmarshal

func (m *SwapBody) Unmarshal(dAtA []byte) error

func (*SwapBody) XXX_DiscardUnknown

func (m *SwapBody) XXX_DiscardUnknown()

func (*SwapBody) XXX_Marshal

func (m *SwapBody) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SwapBody) XXX_Merge

func (m *SwapBody) XXX_Merge(src proto.Message)

func (*SwapBody) XXX_Size

func (m *SwapBody) XXX_Size() int

func (*SwapBody) XXX_Unmarshal

func (m *SwapBody) XXX_Unmarshal(b []byte) error

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"`
}

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) Descriptor() ([]byte, []int)

func (*SwapClaim) GetBody

func (m *SwapClaim) GetBody() *SwapClaimBody

func (*SwapClaim) GetEpochDuration

func (m *SwapClaim) GetEpochDuration() uint64

func (*SwapClaim) GetProof

func (m *SwapClaim) GetProof() *ZKSwapClaimProof

func (*SwapClaim) Marshal

func (m *SwapClaim) Marshal() (dAtA []byte, err error)

func (*SwapClaim) MarshalTo

func (m *SwapClaim) MarshalTo(dAtA []byte) (int, error)

func (*SwapClaim) MarshalToSizedBuffer

func (m *SwapClaim) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SwapClaim) ProtoMessage

func (*SwapClaim) ProtoMessage()

func (*SwapClaim) Reset

func (m *SwapClaim) Reset()

func (*SwapClaim) Size

func (m *SwapClaim) Size() (n int)

func (*SwapClaim) String

func (m *SwapClaim) String() string

func (*SwapClaim) Unmarshal

func (m *SwapClaim) Unmarshal(dAtA []byte) error

func (*SwapClaim) XXX_DiscardUnknown

func (m *SwapClaim) XXX_DiscardUnknown()

func (*SwapClaim) XXX_Marshal

func (m *SwapClaim) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SwapClaim) XXX_Merge

func (m *SwapClaim) XXX_Merge(src proto.Message)

func (*SwapClaim) XXX_Size

func (m *SwapClaim) XXX_Size() int

func (*SwapClaim) XXX_Unmarshal

func (m *SwapClaim) XXX_Unmarshal(b []byte) error

type SwapClaimBody

type SwapClaimBody struct {
	// The nullifier for the Swap commitment to be consumed.
	Nullifier *v1.Nullifier `protobuf:"bytes,1,opt,name=nullifier,proto3" json:"nullifier,omitempty"`
	// The fee allows `SwapClaim` without an additional `Spend`.
	Fee *v11.Fee `protobuf:"bytes,2,opt,name=fee,proto3" json:"fee,omitempty"`
	// Note output for asset 1.
	Output_1Commitment *v12.StateCommitment `protobuf:"bytes,3,opt,name=output_1_commitment,json=output1Commitment,proto3" json:"output_1_commitment,omitempty"`
	// Note output for asset 2.
	Output_2Commitment *v12.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() *v11.Fee

func (*SwapClaimBody) GetNullifier

func (m *SwapClaimBody) GetNullifier() *v1.Nullifier

func (*SwapClaimBody) GetOutputData

func (m *SwapClaimBody) GetOutputData() *BatchSwapOutputData

func (*SwapClaimBody) GetOutput_1Commitment

func (m *SwapClaimBody) GetOutput_1Commitment() *v12.StateCommitment

func (*SwapClaimBody) GetOutput_2Commitment

func (m *SwapClaimBody) GetOutput_2Commitment() *v12.StateCommitment

func (*SwapClaimBody) Marshal

func (m *SwapClaimBody) Marshal() (dAtA []byte, err error)

func (*SwapClaimBody) MarshalTo

func (m *SwapClaimBody) MarshalTo(dAtA []byte) (int, 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) MarshalTo

func (m *SwapClaimPlan) MarshalTo(dAtA []byte) (int, 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) MarshalTo

func (m *SwapClaimView) MarshalTo(dAtA []byte) (int, 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  *v17.NoteView `protobuf:"bytes,2,opt,name=output_1,json=output1,proto3" json:"output_1,omitempty"`
	Output_2  *v17.NoteView `protobuf:"bytes,3,opt,name=output_2,json=output2,proto3" json:"output_2,omitempty"`
	// Optionally, a transaction hash for the transaction that created the swap
	// this action claims.
	//
	// This field allows frontends to more easily crossreference the sequence of
	// Swap/SwapClaim actions.
	SwapTx *v16.TransactionId `protobuf:"bytes,4,opt,name=swap_tx,json=swapTx,proto3" json:"swap_tx,omitempty"`
}

func (*SwapClaimView_Visible) Descriptor

func (*SwapClaimView_Visible) Descriptor() ([]byte, []int)

func (*SwapClaimView_Visible) GetOutput_1

func (m *SwapClaimView_Visible) GetOutput_1() *v17.NoteView

func (*SwapClaimView_Visible) GetOutput_2

func (m *SwapClaimView_Visible) GetOutput_2() *v17.NoteView

func (*SwapClaimView_Visible) GetSwapClaim

func (m *SwapClaimView_Visible) GetSwapClaim() *SwapClaim

func (*SwapClaimView_Visible) GetSwapTx

func (m *SwapClaimView_Visible) GetSwapTx() *v16.TransactionId

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 *v14.Value `protobuf:"bytes,2,opt,name=input,proto3" json:"input,omitempty"`
	// The total output amount for this execution.
	Output *v14.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() *v14.Value

func (*SwapExecution) GetOutput

func (m *SwapExecution) GetOutput() *v14.Value

func (*SwapExecution) GetTraces

func (m *SwapExecution) GetTraces() []*SwapExecution_Trace

func (*SwapExecution) Marshal

func (m *SwapExecution) Marshal() (dAtA []byte, err error)

func (*SwapExecution) MarshalTo

func (m *SwapExecution) MarshalTo(dAtA []byte) (int, 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 SwapExecutionRequest

type SwapExecutionRequest struct {
	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"`
}

func (*SwapExecutionRequest) Descriptor

func (*SwapExecutionRequest) Descriptor() ([]byte, []int)

func (*SwapExecutionRequest) GetHeight

func (m *SwapExecutionRequest) GetHeight() uint64

func (*SwapExecutionRequest) GetTradingPair

func (m *SwapExecutionRequest) GetTradingPair() *DirectedTradingPair

func (*SwapExecutionRequest) Marshal

func (m *SwapExecutionRequest) Marshal() (dAtA []byte, err error)

func (*SwapExecutionRequest) MarshalTo

func (m *SwapExecutionRequest) MarshalTo(dAtA []byte) (int, error)

func (*SwapExecutionRequest) MarshalToSizedBuffer

func (m *SwapExecutionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SwapExecutionRequest) ProtoMessage

func (*SwapExecutionRequest) ProtoMessage()

func (*SwapExecutionRequest) Reset

func (m *SwapExecutionRequest) Reset()

func (*SwapExecutionRequest) Size

func (m *SwapExecutionRequest) Size() (n int)

func (*SwapExecutionRequest) String

func (m *SwapExecutionRequest) String() string

func (*SwapExecutionRequest) Unmarshal

func (m *SwapExecutionRequest) Unmarshal(dAtA []byte) error

func (*SwapExecutionRequest) XXX_DiscardUnknown

func (m *SwapExecutionRequest) XXX_DiscardUnknown()

func (*SwapExecutionRequest) XXX_Marshal

func (m *SwapExecutionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SwapExecutionRequest) XXX_Merge

func (m *SwapExecutionRequest) XXX_Merge(src proto.Message)

func (*SwapExecutionRequest) XXX_Size

func (m *SwapExecutionRequest) XXX_Size() int

func (*SwapExecutionRequest) XXX_Unmarshal

func (m *SwapExecutionRequest) XXX_Unmarshal(b []byte) error

type SwapExecutionResponse

type SwapExecutionResponse struct {
	SwapExecution *SwapExecution `protobuf:"bytes,1,opt,name=swap_execution,json=swapExecution,proto3" json:"swap_execution,omitempty"`
}

func (*SwapExecutionResponse) Descriptor

func (*SwapExecutionResponse) Descriptor() ([]byte, []int)

func (*SwapExecutionResponse) GetSwapExecution

func (m *SwapExecutionResponse) GetSwapExecution() *SwapExecution

func (*SwapExecutionResponse) Marshal

func (m *SwapExecutionResponse) Marshal() (dAtA []byte, err error)

func (*SwapExecutionResponse) MarshalTo

func (m *SwapExecutionResponse) MarshalTo(dAtA []byte) (int, error)

func (*SwapExecutionResponse) MarshalToSizedBuffer

func (m *SwapExecutionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SwapExecutionResponse) ProtoMessage

func (*SwapExecutionResponse) ProtoMessage()

func (*SwapExecutionResponse) Reset

func (m *SwapExecutionResponse) Reset()

func (*SwapExecutionResponse) Size

func (m *SwapExecutionResponse) Size() (n int)

func (*SwapExecutionResponse) String

func (m *SwapExecutionResponse) String() string

func (*SwapExecutionResponse) Unmarshal

func (m *SwapExecutionResponse) Unmarshal(dAtA []byte) error

func (*SwapExecutionResponse) XXX_DiscardUnknown

func (m *SwapExecutionResponse) XXX_DiscardUnknown()

func (*SwapExecutionResponse) XXX_Marshal

func (m *SwapExecutionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SwapExecutionResponse) XXX_Merge

func (m *SwapExecutionResponse) XXX_Merge(src proto.Message)

func (*SwapExecutionResponse) XXX_Size

func (m *SwapExecutionResponse) XXX_Size() int

func (*SwapExecutionResponse) XXX_Unmarshal

func (m *SwapExecutionResponse) XXX_Unmarshal(b []byte) error

type SwapExecution_Trace

type SwapExecution_Trace struct {
	// Each step in the trade trace.
	Value []*v14.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() []*v14.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 SwapExecutionsRequest

type SwapExecutionsRequest struct {
	// 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"`
}

func (*SwapExecutionsRequest) Descriptor

func (*SwapExecutionsRequest) Descriptor() ([]byte, []int)

func (*SwapExecutionsRequest) GetEndHeight

func (m *SwapExecutionsRequest) GetEndHeight() uint64

func (*SwapExecutionsRequest) GetStartHeight

func (m *SwapExecutionsRequest) GetStartHeight() uint64

func (*SwapExecutionsRequest) GetTradingPair

func (m *SwapExecutionsRequest) GetTradingPair() *DirectedTradingPair

func (*SwapExecutionsRequest) Marshal

func (m *SwapExecutionsRequest) Marshal() (dAtA []byte, err error)

func (*SwapExecutionsRequest) MarshalTo

func (m *SwapExecutionsRequest) MarshalTo(dAtA []byte) (int, error)

func (*SwapExecutionsRequest) MarshalToSizedBuffer

func (m *SwapExecutionsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SwapExecutionsRequest) ProtoMessage

func (*SwapExecutionsRequest) ProtoMessage()

func (*SwapExecutionsRequest) Reset

func (m *SwapExecutionsRequest) Reset()

func (*SwapExecutionsRequest) Size

func (m *SwapExecutionsRequest) Size() (n int)

func (*SwapExecutionsRequest) String

func (m *SwapExecutionsRequest) String() string

func (*SwapExecutionsRequest) Unmarshal

func (m *SwapExecutionsRequest) Unmarshal(dAtA []byte) error

func (*SwapExecutionsRequest) XXX_DiscardUnknown

func (m *SwapExecutionsRequest) XXX_DiscardUnknown()

func (*SwapExecutionsRequest) XXX_Marshal

func (m *SwapExecutionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SwapExecutionsRequest) XXX_Merge

func (m *SwapExecutionsRequest) XXX_Merge(src proto.Message)

func (*SwapExecutionsRequest) XXX_Size

func (m *SwapExecutionsRequest) XXX_Size() int

func (*SwapExecutionsRequest) XXX_Unmarshal

func (m *SwapExecutionsRequest) XXX_Unmarshal(b []byte) error

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"`
}

func (*SwapExecutionsResponse) Descriptor

func (*SwapExecutionsResponse) Descriptor() ([]byte, []int)

func (*SwapExecutionsResponse) GetHeight

func (m *SwapExecutionsResponse) GetHeight() uint64

func (*SwapExecutionsResponse) GetSwapExecution

func (m *SwapExecutionsResponse) GetSwapExecution() *SwapExecution

func (*SwapExecutionsResponse) GetTradingPair

func (m *SwapExecutionsResponse) GetTradingPair() *DirectedTradingPair

func (*SwapExecutionsResponse) Marshal

func (m *SwapExecutionsResponse) Marshal() (dAtA []byte, err error)

func (*SwapExecutionsResponse) MarshalTo

func (m *SwapExecutionsResponse) MarshalTo(dAtA []byte) (int, error)

func (*SwapExecutionsResponse) MarshalToSizedBuffer

func (m *SwapExecutionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SwapExecutionsResponse) ProtoMessage

func (*SwapExecutionsResponse) ProtoMessage()

func (*SwapExecutionsResponse) Reset

func (m *SwapExecutionsResponse) Reset()

func (*SwapExecutionsResponse) Size

func (m *SwapExecutionsResponse) Size() (n int)

func (*SwapExecutionsResponse) String

func (m *SwapExecutionsResponse) String() string

func (*SwapExecutionsResponse) Unmarshal

func (m *SwapExecutionsResponse) Unmarshal(dAtA []byte) error

func (*SwapExecutionsResponse) XXX_DiscardUnknown

func (m *SwapExecutionsResponse) XXX_DiscardUnknown()

func (*SwapExecutionsResponse) XXX_Marshal

func (m *SwapExecutionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SwapExecutionsResponse) XXX_Merge

func (m *SwapExecutionsResponse) XXX_Merge(src proto.Message)

func (*SwapExecutionsResponse) XXX_Size

func (m *SwapExecutionsResponse) XXX_Size() int

func (*SwapExecutionsResponse) XXX_Unmarshal

func (m *SwapExecutionsResponse) XXX_Unmarshal(b []byte) error

type SwapPayload

type SwapPayload struct {
	Commitment    *v12.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() *v12.StateCommitment

func (*SwapPayload) GetEncryptedSwap

func (m *SwapPayload) GetEncryptedSwap() []byte

func (*SwapPayload) Marshal

func (m *SwapPayload) Marshal() (dAtA []byte, err error)

func (*SwapPayload) MarshalTo

func (m *SwapPayload) MarshalTo(dAtA []byte) (int, 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 *v13.Amount `protobuf:"bytes,2,opt,name=delta_1_i,json=delta1I,proto3" json:"delta_1_i,omitempty"`
	// Input amount of asset 2
	Delta_2I *v13.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 *v11.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 *v15.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() *v15.Address

func (*SwapPlaintext) GetClaimFee

func (m *SwapPlaintext) GetClaimFee() *v11.Fee

func (*SwapPlaintext) GetDelta_1I

func (m *SwapPlaintext) GetDelta_1I() *v13.Amount

func (*SwapPlaintext) GetDelta_2I

func (m *SwapPlaintext) GetDelta_2I() *v13.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) MarshalTo

func (m *SwapPlaintext) MarshalTo(dAtA []byte) (int, 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) Descriptor() ([]byte, []int)

func (*SwapPlan) GetFeeBlinding

func (m *SwapPlan) GetFeeBlinding() []byte

func (*SwapPlan) GetProofBlindingR

func (m *SwapPlan) GetProofBlindingR() []byte

func (*SwapPlan) GetProofBlindingS

func (m *SwapPlan) GetProofBlindingS() []byte

func (*SwapPlan) GetSwapPlaintext

func (m *SwapPlan) GetSwapPlaintext() *SwapPlaintext

func (*SwapPlan) Marshal

func (m *SwapPlan) Marshal() (dAtA []byte, err error)

func (*SwapPlan) MarshalTo

func (m *SwapPlan) MarshalTo(dAtA []byte) (int, error)

func (*SwapPlan) MarshalToSizedBuffer

func (m *SwapPlan) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SwapPlan) ProtoMessage

func (*SwapPlan) ProtoMessage()

func (*SwapPlan) Reset

func (m *SwapPlan) Reset()

func (*SwapPlan) Size

func (m *SwapPlan) Size() (n int)

func (*SwapPlan) String

func (m *SwapPlan) String() string

func (*SwapPlan) Unmarshal

func (m *SwapPlan) Unmarshal(dAtA []byte) error

func (*SwapPlan) XXX_DiscardUnknown

func (m *SwapPlan) XXX_DiscardUnknown()

func (*SwapPlan) XXX_Marshal

func (m *SwapPlan) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SwapPlan) XXX_Merge

func (m *SwapPlan) XXX_Merge(src proto.Message)

func (*SwapPlan) XXX_Size

func (m *SwapPlan) XXX_Size() int

func (*SwapPlan) XXX_Unmarshal

func (m *SwapPlan) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

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) Marshal

func (m *SwapView) Marshal() (dAtA []byte, err error)

func (*SwapView) MarshalTo

func (m *SwapView) MarshalTo(dAtA []byte) (int, error)

func (*SwapView) MarshalToSizedBuffer

func (m *SwapView) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SwapView) ProtoMessage

func (*SwapView) ProtoMessage()

func (*SwapView) Reset

func (m *SwapView) Reset()

func (*SwapView) Size

func (m *SwapView) Size() (n int)

func (*SwapView) String

func (m *SwapView) String() string

func (*SwapView) Unmarshal

func (m *SwapView) Unmarshal(dAtA []byte) error

func (*SwapView) XXX_DiscardUnknown

func (m *SwapView) XXX_DiscardUnknown()

func (*SwapView) XXX_Marshal

func (m *SwapView) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SwapView) XXX_Merge

func (m *SwapView) XXX_Merge(src proto.Message)

func (*SwapView) XXX_OneofWrappers

func (*SwapView) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*SwapView) XXX_Size

func (m *SwapView) XXX_Size() int

func (*SwapView) XXX_Unmarshal

func (m *SwapView) XXX_Unmarshal(b []byte) error

type SwapView_Opaque

type SwapView_Opaque struct {
	Swap *Swap `protobuf:"bytes,1,opt,name=swap,proto3" json:"swap,omitempty"`
	// Optionally, if the swap has been confirmed, the batch price it received.
	//
	// As soon as the swap is detected, the view server can in principle record
	// the relevant BSOD and provide it as part of the view.  This allows providing
	// info about the execution of the swap.
	BatchSwapOutputData *BatchSwapOutputData `protobuf:"bytes,20,opt,name=batch_swap_output_data,json=batchSwapOutputData,proto3" json:"batch_swap_output_data,omitempty"`
	// Optionally, if the swap has been confirmed, the output value of asset 1.
	//
	// This is the value of the note that will be minted by the SwapClaim action.
	// Note that unlike the `Visible` variant, this is only a `ValueView` since
	// the details of the note (in particular the claim address) are not publicly known.
	Output_1Value *v14.ValueView `protobuf:"bytes,30,opt,name=output_1_value,json=output1Value,proto3" json:"output_1_value,omitempty"`
	// Optionally, if the swap has been confirmed, the output value of asset 2.
	//
	// This is the note that will be minted by the SwapClaim action.
	// Note that unlike the `Visible` variant, this is only a `ValueView` since
	// the details of the note (in particular the claim address) are not publicly known.
	Output_2Value *v14.ValueView `protobuf:"bytes,31,opt,name=output_2_value,json=output2Value,proto3" json:"output_2_value,omitempty"`
	// Optionally, metadata about asset 1 in the `swap`'s trading pair.
	Asset_1Metadata *v14.Metadata `protobuf:"bytes,40,opt,name=asset_1_metadata,json=asset1Metadata,proto3" json:"asset_1_metadata,omitempty"`
	// Optionally, metadata about asset 2 in the `swap`'s trading pair.
	Asset_2Metadata *v14.Metadata `protobuf:"bytes,41,opt,name=asset_2_metadata,json=asset2Metadata,proto3" json:"asset_2_metadata,omitempty"`
}

func (*SwapView_Opaque) Descriptor

func (*SwapView_Opaque) Descriptor() ([]byte, []int)

func (*SwapView_Opaque) GetAsset_1Metadata

func (m *SwapView_Opaque) GetAsset_1Metadata() *v14.Metadata

func (*SwapView_Opaque) GetAsset_2Metadata

func (m *SwapView_Opaque) GetAsset_2Metadata() *v14.Metadata

func (*SwapView_Opaque) GetBatchSwapOutputData

func (m *SwapView_Opaque) GetBatchSwapOutputData() *BatchSwapOutputData

func (*SwapView_Opaque) GetOutput_1Value

func (m *SwapView_Opaque) GetOutput_1Value() *v14.ValueView

func (*SwapView_Opaque) GetOutput_2Value

func (m *SwapView_Opaque) GetOutput_2Value() *v14.ValueView

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) MarshalTo

func (m *SwapView_Opaque) MarshalTo(dAtA []byte) (int, 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_) MarshalTo

func (m *SwapView_Opaque_) MarshalTo(dAtA []byte) (int, error)

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 {
	// The underlying Swap action being viewed.
	Swap *Swap `protobuf:"bytes,1,opt,name=swap,proto3" json:"swap,omitempty"`
	// The plaintext of the encrypted swap.
	SwapPlaintext *SwapPlaintext `protobuf:"bytes,3,opt,name=swap_plaintext,json=swapPlaintext,proto3" json:"swap_plaintext,omitempty"`
	// Optionally, a transaction hash for the transaction that claimed this
	// swap.
	//
	// Presence of this field signals that the swap outputs have been claimed
	// and that the claim transaction is known to the view server.  Absence of
	// this field does not indicate anything about the state of the swap.
	//
	// This field allows frontends to more easily crossreference the sequence of
	// Swap/SwapClaim actions.
	ClaimTx *v16.TransactionId `protobuf:"bytes,4,opt,name=claim_tx,json=claimTx,proto3" json:"claim_tx,omitempty"`
	// Optionally, if the swap has been confirmed, the batch price it received.
	//
	// As soon as the swap is detected, the view server can in principle record
	// the relevant BSOD and provide it as part of the view.  This allows providing
	// info about the execution of the swap.
	BatchSwapOutputData *BatchSwapOutputData `protobuf:"bytes,20,opt,name=batch_swap_output_data,json=batchSwapOutputData,proto3" json:"batch_swap_output_data,omitempty"`
	// Optionally, if the swap has been confirmed, the output note of asset 1.
	//
	// This is the note that will be minted by the SwapClaim action.
	Output_1 *v17.NoteView `protobuf:"bytes,30,opt,name=output_1,json=output1,proto3" json:"output_1,omitempty"`
	// Optionally, if the swap has been confirmed, the output note of asset 2.
	//
	// This is the note that will be minted by the SwapClaim action.
	Output_2 *v17.NoteView `protobuf:"bytes,31,opt,name=output_2,json=output2,proto3" json:"output_2,omitempty"`
	// Optionally, metadata about asset 1 in the `swap`'s trading pair.
	Asset_1Metadata *v14.Metadata `protobuf:"bytes,40,opt,name=asset_1_metadata,json=asset1Metadata,proto3" json:"asset_1_metadata,omitempty"`
	// Optionally, metadata about asset 2 in the `swap`'s trading pair.
	Asset_2Metadata *v14.Metadata `protobuf:"bytes,41,opt,name=asset_2_metadata,json=asset2Metadata,proto3" json:"asset_2_metadata,omitempty"`
}

func (*SwapView_Visible) Descriptor

func (*SwapView_Visible) Descriptor() ([]byte, []int)

func (*SwapView_Visible) GetAsset_1Metadata

func (m *SwapView_Visible) GetAsset_1Metadata() *v14.Metadata

func (*SwapView_Visible) GetAsset_2Metadata

func (m *SwapView_Visible) GetAsset_2Metadata() *v14.Metadata

func (*SwapView_Visible) GetBatchSwapOutputData

func (m *SwapView_Visible) GetBatchSwapOutputData() *BatchSwapOutputData

func (*SwapView_Visible) GetClaimTx

func (m *SwapView_Visible) GetClaimTx() *v16.TransactionId

func (*SwapView_Visible) GetOutput_1

func (m *SwapView_Visible) GetOutput_1() *v17.NoteView

func (*SwapView_Visible) GetOutput_2

func (m *SwapView_Visible) GetOutput_2() *v17.NoteView

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) 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) 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) MarshalTo

func (m *TradingFunction) MarshalTo(dAtA []byte) (int, 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 *v14.AssetId `protobuf:"bytes,1,opt,name=asset_1,json=asset1,proto3" json:"asset_1,omitempty"`
	// The second asset of the pair.
	Asset_2 *v14.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() *v14.AssetId

func (*TradingPair) GetAsset_2

func (m *TradingPair) GetAsset_2() *v14.AssetId

func (*TradingPair) Marshal

func (m *TradingPair) Marshal() (dAtA []byte, err error)

func (*TradingPair) MarshalTo

func (m *TradingPair) MarshalTo(dAtA []byte) (int, 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

type UnimplementedQueryServiceServer

type UnimplementedQueryServiceServer struct {
}

UnimplementedQueryServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServiceServer) ArbExecution

func (*UnimplementedQueryServiceServer) ArbExecutions

func (*UnimplementedQueryServiceServer) BatchSwapOutputData

func (*UnimplementedQueryServiceServer) CandlestickData

func (*UnimplementedQueryServiceServer) CandlestickDataStream

func (*UnimplementedQueryServiceServer) LiquidityPositionById

func (*UnimplementedQueryServiceServer) LiquidityPositions

func (*UnimplementedQueryServiceServer) LiquidityPositionsById

func (*UnimplementedQueryServiceServer) Spread

func (*UnimplementedQueryServiceServer) SwapExecution

func (*UnimplementedQueryServiceServer) SwapExecutions

type UnimplementedSimulationServiceServer

type UnimplementedSimulationServiceServer struct {
}

UnimplementedSimulationServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedSimulationServiceServer) SimulateTrade

type ZKSwapClaimProof

type ZKSwapClaimProof struct {
	Inner []byte `protobuf:"bytes,1,opt,name=inner,proto3" json:"inner,omitempty"`
}

A Penumbra ZK swap claim proof.

func (*ZKSwapClaimProof) Descriptor

func (*ZKSwapClaimProof) Descriptor() ([]byte, []int)

func (*ZKSwapClaimProof) GetInner

func (m *ZKSwapClaimProof) GetInner() []byte

func (*ZKSwapClaimProof) Marshal

func (m *ZKSwapClaimProof) Marshal() (dAtA []byte, err error)

func (*ZKSwapClaimProof) MarshalTo

func (m *ZKSwapClaimProof) MarshalTo(dAtA []byte) (int, error)

func (*ZKSwapClaimProof) MarshalToSizedBuffer

func (m *ZKSwapClaimProof) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ZKSwapClaimProof) ProtoMessage

func (*ZKSwapClaimProof) ProtoMessage()

func (*ZKSwapClaimProof) Reset

func (m *ZKSwapClaimProof) Reset()

func (*ZKSwapClaimProof) Size

func (m *ZKSwapClaimProof) Size() (n int)

func (*ZKSwapClaimProof) String

func (m *ZKSwapClaimProof) String() string

func (*ZKSwapClaimProof) Unmarshal

func (m *ZKSwapClaimProof) Unmarshal(dAtA []byte) error

func (*ZKSwapClaimProof) XXX_DiscardUnknown

func (m *ZKSwapClaimProof) XXX_DiscardUnknown()

func (*ZKSwapClaimProof) XXX_Marshal

func (m *ZKSwapClaimProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ZKSwapClaimProof) XXX_Merge

func (m *ZKSwapClaimProof) XXX_Merge(src proto.Message)

func (*ZKSwapClaimProof) XXX_Size

func (m *ZKSwapClaimProof) XXX_Size() int

func (*ZKSwapClaimProof) XXX_Unmarshal

func (m *ZKSwapClaimProof) XXX_Unmarshal(b []byte) error

type ZKSwapProof

type ZKSwapProof struct {
	Inner []byte `protobuf:"bytes,1,opt,name=inner,proto3" json:"inner,omitempty"`
}

A Penumbra ZK swap proof.

func (*ZKSwapProof) Descriptor

func (*ZKSwapProof) Descriptor() ([]byte, []int)

func (*ZKSwapProof) GetInner

func (m *ZKSwapProof) GetInner() []byte

func (*ZKSwapProof) Marshal

func (m *ZKSwapProof) Marshal() (dAtA []byte, err error)

func (*ZKSwapProof) MarshalTo

func (m *ZKSwapProof) MarshalTo(dAtA []byte) (int, error)

func (*ZKSwapProof) MarshalToSizedBuffer

func (m *ZKSwapProof) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ZKSwapProof) ProtoMessage

func (*ZKSwapProof) ProtoMessage()

func (*ZKSwapProof) Reset

func (m *ZKSwapProof) Reset()

func (*ZKSwapProof) Size

func (m *ZKSwapProof) Size() (n int)

func (*ZKSwapProof) String

func (m *ZKSwapProof) String() string

func (*ZKSwapProof) Unmarshal

func (m *ZKSwapProof) Unmarshal(dAtA []byte) error

func (*ZKSwapProof) XXX_DiscardUnknown

func (m *ZKSwapProof) XXX_DiscardUnknown()

func (*ZKSwapProof) XXX_Marshal

func (m *ZKSwapProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ZKSwapProof) XXX_Merge

func (m *ZKSwapProof) XXX_Merge(src proto.Message)

func (*ZKSwapProof) XXX_Size

func (m *ZKSwapProof) XXX_Size() int

func (*ZKSwapProof) XXX_Unmarshal

func (m *ZKSwapProof) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL