proto

package
v0.0.0-...-6adf9c3 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2023 License: MIT Imports: 23 Imported by: 0

Documentation

Overview

Package proto is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrCode_name = map[int32]string{
		0: "ERROR_UNDEFINED",
		1: "ERROR_INVALID_ARGUMENTS",
		2: "ERROR_LIQUIDITY_PROVIDER",
		3: "ERROR_PRICE_PROVIDER",
		4: "ERROR_AMOUNT_CALCULATOR",
		5: "ERROR_REQUEST_SIGNER",
		6: "ERROR_LIQUIDITY_MANAGER",
		7: "ERROR_CHAIN_MANAGER",
	}
	ErrCode_value = map[string]int32{
		"ERROR_UNDEFINED":          0,
		"ERROR_INVALID_ARGUMENTS":  1,
		"ERROR_LIQUIDITY_PROVIDER": 2,
		"ERROR_PRICE_PROVIDER":     3,
		"ERROR_AMOUNT_CALCULATOR":  4,
		"ERROR_REQUEST_SIGNER":     5,
		"ERROR_LIQUIDITY_MANAGER":  6,
		"ERROR_CHAIN_MANAGER":      7,
	}
)

Enum value maps for ErrCode.

View Source
var Api_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "service.rfqmm.api",
	HandlerType: (*ApiServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Price",
			Handler:    _Api_Price_Handler,
		},
		{
			MethodName: "Quote",
			Handler:    _Api_Quote_Handler,
		},
		{
			MethodName: "SignQuoteHash",
			Handler:    _Api_SignQuoteHash_Handler,
		},
		{
			MethodName: "Tokens",
			Handler:    _Api_Tokens_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "service/rfqmm/api.proto",
}

Api_ServiceDesc is the grpc.ServiceDesc for Api service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_service_rfqmm_api_proto protoreflect.FileDescriptor

Functions

func RegisterApiHandler

func RegisterApiHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterApiHandler registers the http handlers for service Api to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterApiHandlerClient

func RegisterApiHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ApiClient) error

RegisterApiHandlerClient registers the http handlers for service Api to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ApiClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ApiClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ApiClient" to call the correct interceptors.

func RegisterApiHandlerFromEndpoint

func RegisterApiHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterApiHandlerFromEndpoint is same as RegisterApiHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterApiHandlerServer

func RegisterApiHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ApiServer) error

RegisterApiHandlerServer registers the http handlers for service Api to "mux". UnaryRPC :call ApiServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterApiHandlerFromEndpoint instead.

func RegisterApiServer

func RegisterApiServer(s grpc.ServiceRegistrar, srv ApiServer)

Types

type ApiClient

type ApiClient interface {
	Price(ctx context.Context, in *PriceRequest, opts ...grpc.CallOption) (*PriceResponse, error)
	Quote(ctx context.Context, in *QuoteRequest, opts ...grpc.CallOption) (*QuoteResponse, error)
	SignQuoteHash(ctx context.Context, in *SignQuoteHashRequest, opts ...grpc.CallOption) (*SignQuoteHashResponse, error)
	Tokens(ctx context.Context, in *TokensRequest, opts ...grpc.CallOption) (*TokensResponse, error)
}

ApiClient is the client API for Api service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewApiClient

func NewApiClient(cc grpc.ClientConnInterface) ApiClient

type ApiServer

ApiServer is the server API for Api service. All implementations should embed UnimplementedApiServer for forward compatibility

type Config

type Config struct {
	Tokens []*common.Token `protobuf:"bytes,2,rep,name=tokens,proto3" json:"tokens,omitempty"`
	// contains filtered or unexported fields
}

func (*Config) Descriptor deprecated

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

Deprecated: Use Config.ProtoReflect.Descriptor instead.

func (*Config) GetTokens

func (x *Config) GetTokens() []*common.Token

func (*Config) ProtoMessage

func (*Config) ProtoMessage()

func (*Config) ProtoReflect

func (x *Config) ProtoReflect() protoreflect.Message

func (*Config) Reset

func (x *Config) Reset()

func (*Config) String

func (x *Config) String() string

type Err

type Err struct {
	Code ErrCode
	Msg  string
}

func NewErr

func NewErr(code ErrCode, msg string) *Err

func (Err) Error

func (e Err) Error() string

func (*Err) ToCommonErr

func (e *Err) ToCommonErr() *common.Err

type ErrCode

type ErrCode int32
const (
	ErrCode_ERROR_UNDEFINED          ErrCode = 0
	ErrCode_ERROR_INVALID_ARGUMENTS  ErrCode = 1
	ErrCode_ERROR_LIQUIDITY_PROVIDER ErrCode = 2
	ErrCode_ERROR_PRICE_PROVIDER     ErrCode = 3
	ErrCode_ERROR_AMOUNT_CALCULATOR  ErrCode = 4
	ErrCode_ERROR_REQUEST_SIGNER     ErrCode = 5
	ErrCode_ERROR_LIQUIDITY_MANAGER  ErrCode = 6
	ErrCode_ERROR_CHAIN_MANAGER      ErrCode = 7
)

func (ErrCode) Descriptor

func (ErrCode) Descriptor() protoreflect.EnumDescriptor

func (ErrCode) Enum

func (x ErrCode) Enum() *ErrCode

func (ErrCode) EnumDescriptor deprecated

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

Deprecated: Use ErrCode.Descriptor instead.

func (ErrCode) Number

func (x ErrCode) Number() protoreflect.EnumNumber

func (ErrCode) String

func (x ErrCode) String() string

func (ErrCode) Type

func (ErrCode) Type() protoreflect.EnumType

type Price

type Price struct {
	SrcToken *common.Token `protobuf:"bytes,1,opt,name=src_token,json=srcToken,proto3" json:"src_token,omitempty"`
	// src_amount reflects the total amount of src_token the user should deposit in the contract on
	// the src chain it should include rfq protocol fee + msg fee + mm charged fee
	SrcAmount        string        `protobuf:"bytes,2,opt,name=src_amount,json=srcAmount,proto3" json:"src_amount,omitempty"`
	DstToken         *common.Token `protobuf:"bytes,3,opt,name=dst_token,json=dstToken,proto3" json:"dst_token,omitempty"`
	SrcReleaseAmount string        `protobuf:"bytes,4,opt,name=src_release_amount,json=srcReleaseAmount,proto3" json:"src_release_amount,omitempty"`
	DstAmount        string        `protobuf:"bytes,5,opt,name=dst_amount,json=dstAmount,proto3" json:"dst_amount,omitempty"`
	// fee = mm fee + msg fee + src tx gas cost + dst tx gas cost
	FeeAmount string `protobuf:"bytes,6,opt,name=fee_amount,json=feeAmount,proto3" json:"fee_amount,omitempty"`
	// unix epoch milliseconds. the time before which the price response is valid for Quote
	ValidThru int64  `protobuf:"varint,7,opt,name=valid_thru,json=validThru,proto3" json:"valid_thru,omitempty"`
	MmAddr    string `protobuf:"bytes,8,opt,name=mm_addr,json=mmAddr,proto3" json:"mm_addr,omitempty"`
	// sig(hash('rfq price', mm_addr, valid_thru, src_chain_id, token_in, amount_in, dst_chain_id, token_out, amount_out))
	// when calling Quote(), mm uses this signature to verify the price content is agreed by them previously
	// and is not beyond deadline.
	Sig string `protobuf:"bytes,9,opt,name=sig,proto3" json:"sig,omitempty"`
	// the maximum src deposit period that is expected by mm, will be started from the time when mm receives the quote request
	SrcDepositPeriod int64 `protobuf:"varint,10,opt,name=src_deposit_period,json=srcDepositPeriod,proto3" json:"src_deposit_period,omitempty"`
	// the minimum dst transfer period that is expected by mm, will be started from the time when mm receives the quote request
	DstTransferPeriod int64 `protobuf:"varint,11,opt,name=dst_transfer_period,json=dstTransferPeriod,proto3" json:"dst_transfer_period,omitempty"`
	// contains filtered or unexported fields
}

func (*Price) Descriptor deprecated

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

Deprecated: Use Price.ProtoReflect.Descriptor instead.

func (*Price) EncodeSignData

func (p *Price) EncodeSignData() []byte

func (*Price) GetDstAmount

func (x *Price) GetDstAmount() string

func (*Price) GetDstAmt

func (p *Price) GetDstAmt() *big.Int

func (*Price) GetDstChainId

func (p *Price) GetDstChainId() uint64

func (*Price) GetDstToken

func (x *Price) GetDstToken() *common.Token

func (*Price) GetDstTransferPeriod

func (x *Price) GetDstTransferPeriod() int64

func (*Price) GetFeeAmount

func (x *Price) GetFeeAmount() string

func (*Price) GetMMAddr

func (q *Price) GetMMAddr() eth.Addr

func (*Price) GetMmAddr

func (x *Price) GetMmAddr() string

func (*Price) GetSig

func (x *Price) GetSig() string

func (*Price) GetSigBytes

func (p *Price) GetSigBytes() []byte

func (*Price) GetSrcAmount

func (x *Price) GetSrcAmount() string

func (*Price) GetSrcAmt

func (p *Price) GetSrcAmt() *big.Int

func (*Price) GetSrcChainId

func (p *Price) GetSrcChainId() uint64

func (*Price) GetSrcDepositPeriod

func (x *Price) GetSrcDepositPeriod() int64

func (*Price) GetSrcReleaseAmount

func (x *Price) GetSrcReleaseAmount() string

func (*Price) GetSrcReleaseAmt

func (p *Price) GetSrcReleaseAmt() *big.Int

func (*Price) GetSrcToken

func (x *Price) GetSrcToken() *common.Token

func (*Price) GetValidThru

func (x *Price) GetValidThru() int64

func (*Price) ProtoMessage

func (*Price) ProtoMessage()

func (*Price) ProtoReflect

func (x *Price) ProtoReflect() protoreflect.Message

func (*Price) Reset

func (x *Price) Reset()

func (*Price) String

func (x *Price) String() string

type PriceRequest

type PriceRequest struct {
	SrcToken  *common.Token `protobuf:"bytes,1,opt,name=src_token,json=srcToken,proto3" json:"src_token,omitempty"`
	DstToken  *common.Token `protobuf:"bytes,2,opt,name=dst_token,json=dstToken,proto3" json:"dst_token,omitempty"`
	SrcAmount string        `protobuf:"bytes,3,opt,name=src_amount,json=srcAmount,proto3" json:"src_amount,omitempty"`
	DstAmount string        `protobuf:"bytes,4,opt,name=dst_amount,json=dstAmount,proto3" json:"dst_amount,omitempty"`
	// indicates whether the user wants native token on the dst chain (only applicable if the dst token is a native wrap)
	DstNative bool `protobuf:"varint,5,opt,name=dst_native,json=dstNative,proto3" json:"dst_native,omitempty"`
	// replace fixed_fee in configuration
	BaseFee string `protobuf:"bytes,6,opt,name=base_fee,json=baseFee,proto3" json:"base_fee,omitempty"`
	// contains filtered or unexported fields
}

func (*PriceRequest) Descriptor deprecated

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

Deprecated: Use PriceRequest.ProtoReflect.Descriptor instead.

func (*PriceRequest) GetBaseFee

func (x *PriceRequest) GetBaseFee() string

func (*PriceRequest) GetDstAmount

func (x *PriceRequest) GetDstAmount() string

func (*PriceRequest) GetDstNative

func (x *PriceRequest) GetDstNative() bool

func (*PriceRequest) GetDstToken

func (x *PriceRequest) GetDstToken() *common.Token

func (*PriceRequest) GetSrcAmount

func (x *PriceRequest) GetSrcAmount() string

func (*PriceRequest) GetSrcToken

func (x *PriceRequest) GetSrcToken() *common.Token

func (*PriceRequest) ProtoMessage

func (*PriceRequest) ProtoMessage()

func (*PriceRequest) ProtoReflect

func (x *PriceRequest) ProtoReflect() protoreflect.Message

func (*PriceRequest) Reset

func (x *PriceRequest) Reset()

func (*PriceRequest) String

func (x *PriceRequest) String() string

type PriceResponse

type PriceResponse struct {
	Err *common.Err `protobuf:"bytes,1,opt,name=err,proto3" json:"err,omitempty"`
	// if receiveAmount is specified in the request, it would be the price of receiveToken in sendToken and vice versa.
	Price *Price `protobuf:"bytes,2,opt,name=price,proto3" json:"price,omitempty"`
	// contains filtered or unexported fields
}

func (*PriceResponse) Descriptor deprecated

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

Deprecated: Use PriceResponse.ProtoReflect.Descriptor instead.

func (*PriceResponse) GetErr

func (x *PriceResponse) GetErr() *common.Err

func (*PriceResponse) GetPrice

func (x *PriceResponse) GetPrice() *Price

func (*PriceResponse) ProtoMessage

func (*PriceResponse) ProtoMessage()

func (*PriceResponse) ProtoReflect

func (x *PriceResponse) ProtoReflect() protoreflect.Message

func (*PriceResponse) Reset

func (x *PriceResponse) Reset()

func (*PriceResponse) String

func (x *PriceResponse) String() string

type Quote

type Quote struct {

	// the quote hash
	Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
	// the input token amount on the src chain
	SrcToken  *common.Token `protobuf:"bytes,2,opt,name=src_token,json=srcToken,proto3" json:"src_token,omitempty"`
	SrcAmount string        `protobuf:"bytes,3,opt,name=src_amount,json=srcAmount,proto3" json:"src_amount,omitempty"`
	// the token amount (same token as src_token) that the market maker will receive by filling this quote
	SrcReleaseAmount string `protobuf:"bytes,4,opt,name=src_release_amount,json=srcReleaseAmount,proto3" json:"src_release_amount,omitempty"`
	// the token amount out on the dst chain to be received by the user
	DstToken  *common.Token `protobuf:"bytes,5,opt,name=dst_token,json=dstToken,proto3" json:"dst_token,omitempty"`
	DstAmount string        `protobuf:"bytes,6,opt,name=dst_amount,json=dstAmount,proto3" json:"dst_amount,omitempty"`
	// the deadline before which the user can submit on the src chain
	SrcDeadline int64 `protobuf:"varint,7,opt,name=src_deadline,json=srcDeadline,proto3" json:"src_deadline,omitempty"`
	// the time after which the order is eligible for refund
	DstDeadline int64 `protobuf:"varint,8,opt,name=dst_deadline,json=dstDeadline,proto3" json:"dst_deadline,omitempty"`
	// nonce that is determined by the server that is used to dedup quotes
	Nonce uint64 `protobuf:"varint,9,opt,name=nonce,proto3" json:"nonce,omitempty"`
	// sender of the src tx (msg.sender). it's also the user who deposits the src fund
	Sender string `protobuf:"bytes,10,opt,name=sender,proto3" json:"sender,omitempty"`
	// the receiver of the token on the dst chain
	Receiver string `protobuf:"bytes,11,opt,name=receiver,proto3" json:"receiver,omitempty"`
	// the receiver of the refund (if any) on the src chain
	RefundTo string `protobuf:"bytes,12,opt,name=refund_to,json=refundTo,proto3" json:"refund_to,omitempty"`
	// the address of the liquidity provider who's going to transfer fund to the user on the dst chain
	MmAddr string `protobuf:"bytes,13,opt,name=mm_addr,json=mmAddr,proto3" json:"mm_addr,omitempty"`
	// contains filtered or unexported fields
}

some of the fields map to the Quote struct in the RFQ contract

func (*Quote) Descriptor deprecated

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

Deprecated: Use Quote.ProtoReflect.Descriptor instead.

func (*Quote) EncodeQuoteHash

func (q *Quote) EncodeQuoteHash() eth.Hash

func (*Quote) GetDstAmount

func (x *Quote) GetDstAmount() string

func (*Quote) GetDstAmt

func (q *Quote) GetDstAmt() *big.Int

func (*Quote) GetDstChainId

func (q *Quote) GetDstChainId() uint64

func (*Quote) GetDstDeadline

func (x *Quote) GetDstDeadline() int64

func (*Quote) GetDstToken

func (x *Quote) GetDstToken() *common.Token

func (*Quote) GetHash

func (x *Quote) GetHash() string

func (*Quote) GetMMAddr

func (q *Quote) GetMMAddr() eth.Addr

func (*Quote) GetMmAddr

func (x *Quote) GetMmAddr() string

func (*Quote) GetNonce

func (x *Quote) GetNonce() uint64

func (*Quote) GetQuoteHash

func (q *Quote) GetQuoteHash() eth.Hash

func (*Quote) GetReceiver

func (x *Quote) GetReceiver() string

func (*Quote) GetReceiverAddr

func (q *Quote) GetReceiverAddr() eth.Addr

func (*Quote) GetRefundTo

func (x *Quote) GetRefundTo() string

func (*Quote) GetRefundToAddr

func (q *Quote) GetRefundToAddr() eth.Addr

func (*Quote) GetSender

func (x *Quote) GetSender() string

func (*Quote) GetSenderAddr

func (q *Quote) GetSenderAddr() eth.Addr

func (*Quote) GetSrcAmount

func (x *Quote) GetSrcAmount() string

func (*Quote) GetSrcAmt

func (q *Quote) GetSrcAmt() *big.Int

func (*Quote) GetSrcChainId

func (q *Quote) GetSrcChainId() uint64

func (*Quote) GetSrcDeadline

func (x *Quote) GetSrcDeadline() int64

func (*Quote) GetSrcReleaseAmount

func (x *Quote) GetSrcReleaseAmount() string

func (*Quote) GetSrcReleaseAmt

func (q *Quote) GetSrcReleaseAmt() *big.Int

func (*Quote) GetSrcToken

func (x *Quote) GetSrcToken() *common.Token

func (*Quote) ProtoMessage

func (*Quote) ProtoMessage()

func (*Quote) ProtoReflect

func (x *Quote) ProtoReflect() protoreflect.Message

func (*Quote) Reset

func (x *Quote) Reset()

func (*Quote) String

func (x *Quote) String() string

func (*Quote) ToQuoteOnChain

func (q *Quote) ToQuoteOnChain() rfq.RFQQuote

func (*Quote) ValidateQuoteHash

func (q *Quote) ValidateQuoteHash() bool

type QuoteRequest

type QuoteRequest struct {
	Price *Price `protobuf:"bytes,1,opt,name=price,proto3" json:"price,omitempty"`
	Quote *Quote `protobuf:"bytes,2,opt,name=quote,proto3" json:"quote,omitempty"`
	// indicates whether the user wants native token on the dst chain (only applicable if the dst token is a native wrap)
	DstNative bool `protobuf:"varint,3,opt,name=dst_native,json=dstNative,proto3" json:"dst_native,omitempty"`
	// contains filtered or unexported fields
}

func (*QuoteRequest) Descriptor deprecated

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

Deprecated: Use QuoteRequest.ProtoReflect.Descriptor instead.

func (*QuoteRequest) GetDstNative

func (x *QuoteRequest) GetDstNative() bool

func (*QuoteRequest) GetPrice

func (x *QuoteRequest) GetPrice() *Price

func (*QuoteRequest) GetQuote

func (x *QuoteRequest) GetQuote() *Quote

func (*QuoteRequest) ProtoMessage

func (*QuoteRequest) ProtoMessage()

func (*QuoteRequest) ProtoReflect

func (x *QuoteRequest) ProtoReflect() protoreflect.Message

func (*QuoteRequest) Reset

func (x *QuoteRequest) Reset()

func (*QuoteRequest) String

func (x *QuoteRequest) String() string

type QuoteResponse

type QuoteResponse struct {
	Err      *common.Err `protobuf:"bytes,1,opt,name=err,proto3" json:"err,omitempty"`
	QuoteSig string      `protobuf:"bytes,2,opt,name=quote_sig,json=quoteSig,proto3" json:"quote_sig,omitempty"`
	// contains filtered or unexported fields
}

func (*QuoteResponse) Descriptor deprecated

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

Deprecated: Use QuoteResponse.ProtoReflect.Descriptor instead.

func (*QuoteResponse) GetErr

func (x *QuoteResponse) GetErr() *common.Err

func (*QuoteResponse) GetQuoteSig

func (x *QuoteResponse) GetQuoteSig() string

func (*QuoteResponse) ProtoMessage

func (*QuoteResponse) ProtoMessage()

func (*QuoteResponse) ProtoReflect

func (x *QuoteResponse) ProtoReflect() protoreflect.Message

func (*QuoteResponse) Reset

func (x *QuoteResponse) Reset()

func (*QuoteResponse) String

func (x *QuoteResponse) String() string

type SignQuoteHashRequest

type SignQuoteHashRequest struct {
	Quote            *Quote `protobuf:"bytes,1,opt,name=quote,proto3" json:"quote,omitempty"`
	SrcDepositTxHash string `protobuf:"bytes,2,opt,name=src_deposit_tx_hash,json=srcDepositTxHash,proto3" json:"src_deposit_tx_hash,omitempty"`
	QuoteSig         string `protobuf:"bytes,3,opt,name=quote_sig,json=quoteSig,proto3" json:"quote_sig,omitempty"`
	// contains filtered or unexported fields
}

func (*SignQuoteHashRequest) Descriptor deprecated

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

Deprecated: Use SignQuoteHashRequest.ProtoReflect.Descriptor instead.

func (*SignQuoteHashRequest) GetQuote

func (x *SignQuoteHashRequest) GetQuote() *Quote

func (*SignQuoteHashRequest) GetQuoteSig

func (x *SignQuoteHashRequest) GetQuoteSig() string

func (*SignQuoteHashRequest) GetSrcDepositTxHash

func (x *SignQuoteHashRequest) GetSrcDepositTxHash() string

func (*SignQuoteHashRequest) ProtoMessage

func (*SignQuoteHashRequest) ProtoMessage()

func (*SignQuoteHashRequest) ProtoReflect

func (x *SignQuoteHashRequest) ProtoReflect() protoreflect.Message

func (*SignQuoteHashRequest) Reset

func (x *SignQuoteHashRequest) Reset()

func (*SignQuoteHashRequest) String

func (x *SignQuoteHashRequest) String() string

type SignQuoteHashResponse

type SignQuoteHashResponse struct {
	Err *common.Err `protobuf:"bytes,1,opt,name=err,proto3" json:"err,omitempty"`
	Sig []byte      `protobuf:"bytes,2,opt,name=sig,proto3" json:"sig,omitempty"`
	// contains filtered or unexported fields
}

func (*SignQuoteHashResponse) Descriptor deprecated

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

Deprecated: Use SignQuoteHashResponse.ProtoReflect.Descriptor instead.

func (*SignQuoteHashResponse) GetErr

func (x *SignQuoteHashResponse) GetErr() *common.Err

func (*SignQuoteHashResponse) GetSig

func (x *SignQuoteHashResponse) GetSig() []byte

func (*SignQuoteHashResponse) ProtoMessage

func (*SignQuoteHashResponse) ProtoMessage()

func (*SignQuoteHashResponse) ProtoReflect

func (x *SignQuoteHashResponse) ProtoReflect() protoreflect.Message

func (*SignQuoteHashResponse) Reset

func (x *SignQuoteHashResponse) Reset()

func (*SignQuoteHashResponse) String

func (x *SignQuoteHashResponse) String() string

type TokensRequest

type TokensRequest struct {
	// contains filtered or unexported fields
}

func (*TokensRequest) Descriptor deprecated

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

Deprecated: Use TokensRequest.ProtoReflect.Descriptor instead.

func (*TokensRequest) ProtoMessage

func (*TokensRequest) ProtoMessage()

func (*TokensRequest) ProtoReflect

func (x *TokensRequest) ProtoReflect() protoreflect.Message

func (*TokensRequest) Reset

func (x *TokensRequest) Reset()

func (*TokensRequest) String

func (x *TokensRequest) String() string

type TokensResponse

type TokensResponse struct {
	Err    *common.Err     `protobuf:"bytes,1,opt,name=err,proto3" json:"err,omitempty"`
	Tokens []*common.Token `protobuf:"bytes,2,rep,name=tokens,proto3" json:"tokens,omitempty"`
	// contains filtered or unexported fields
}

func (*TokensResponse) Descriptor deprecated

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

Deprecated: Use TokensResponse.ProtoReflect.Descriptor instead.

func (*TokensResponse) GetErr

func (x *TokensResponse) GetErr() *common.Err

func (*TokensResponse) GetTokens

func (x *TokensResponse) GetTokens() []*common.Token

func (*TokensResponse) ProtoMessage

func (*TokensResponse) ProtoMessage()

func (*TokensResponse) ProtoReflect

func (x *TokensResponse) ProtoReflect() protoreflect.Message

func (*TokensResponse) Reset

func (x *TokensResponse) Reset()

func (*TokensResponse) String

func (x *TokensResponse) String() string

type UnimplementedApiServer

type UnimplementedApiServer struct {
}

UnimplementedApiServer should be embedded to have forward compatible implementations.

func (UnimplementedApiServer) Price

func (UnimplementedApiServer) Quote

func (UnimplementedApiServer) SignQuoteHash

func (UnimplementedApiServer) Tokens

type UnsafeApiServer

type UnsafeApiServer interface {
	// contains filtered or unexported methods
}

UnsafeApiServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ApiServer will result in compilation errors.

Jump to

Keyboard shortcuts

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