Documentation ¶
Overview ¶
Package proto is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterApiHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterApiHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ApiClient) error
- func RegisterApiHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterApiHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ApiServer) error
- func RegisterApiServer(s grpc.ServiceRegistrar, srv ApiServer)
- type ApiClient
- type ApiServer
- type Config
- type Err
- type ErrCode
- type Price
- func (*Price) Descriptor() ([]byte, []int)deprecated
- func (p *Price) EncodeSignData() []byte
- func (x *Price) GetDstAmount() string
- func (p *Price) GetDstAmt() *big.Int
- func (p *Price) GetDstChainId() uint64
- func (x *Price) GetDstToken() *common.Token
- func (x *Price) GetDstTransferPeriod() int64
- func (x *Price) GetFeeAmount() string
- func (q *Price) GetMMAddr() eth.Addr
- func (x *Price) GetMmAddr() string
- func (x *Price) GetSig() string
- func (p *Price) GetSigBytes() []byte
- func (x *Price) GetSrcAmount() string
- func (p *Price) GetSrcAmt() *big.Int
- func (p *Price) GetSrcChainId() uint64
- func (x *Price) GetSrcDepositPeriod() int64
- func (x *Price) GetSrcReleaseAmount() string
- func (p *Price) GetSrcReleaseAmt() *big.Int
- func (x *Price) GetSrcToken() *common.Token
- func (x *Price) GetValidThru() int64
- func (*Price) ProtoMessage()
- func (x *Price) ProtoReflect() protoreflect.Message
- func (x *Price) Reset()
- func (x *Price) String() string
- type PriceRequest
- func (*PriceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PriceRequest) GetBaseFee() string
- func (x *PriceRequest) GetDstAmount() string
- func (x *PriceRequest) GetDstNative() bool
- func (x *PriceRequest) GetDstToken() *common.Token
- func (x *PriceRequest) GetSrcAmount() string
- func (x *PriceRequest) GetSrcToken() *common.Token
- func (*PriceRequest) ProtoMessage()
- func (x *PriceRequest) ProtoReflect() protoreflect.Message
- func (x *PriceRequest) Reset()
- func (x *PriceRequest) String() string
- type PriceResponse
- func (*PriceResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PriceResponse) GetErr() *common.Err
- func (x *PriceResponse) GetPrice() *Price
- func (*PriceResponse) ProtoMessage()
- func (x *PriceResponse) ProtoReflect() protoreflect.Message
- func (x *PriceResponse) Reset()
- func (x *PriceResponse) String() string
- type Quote
- func (*Quote) Descriptor() ([]byte, []int)deprecated
- func (q *Quote) EncodeQuoteHash() eth.Hash
- func (x *Quote) GetDstAmount() string
- func (q *Quote) GetDstAmt() *big.Int
- func (q *Quote) GetDstChainId() uint64
- func (x *Quote) GetDstDeadline() int64
- func (x *Quote) GetDstToken() *common.Token
- func (x *Quote) GetHash() string
- func (q *Quote) GetMMAddr() eth.Addr
- func (x *Quote) GetMmAddr() string
- func (x *Quote) GetNonce() uint64
- func (q *Quote) GetQuoteHash() eth.Hash
- func (x *Quote) GetReceiver() string
- func (q *Quote) GetReceiverAddr() eth.Addr
- func (x *Quote) GetRefundTo() string
- func (q *Quote) GetRefundToAddr() eth.Addr
- func (x *Quote) GetSender() string
- func (q *Quote) GetSenderAddr() eth.Addr
- func (x *Quote) GetSrcAmount() string
- func (q *Quote) GetSrcAmt() *big.Int
- func (q *Quote) GetSrcChainId() uint64
- func (x *Quote) GetSrcDeadline() int64
- func (x *Quote) GetSrcReleaseAmount() string
- func (q *Quote) GetSrcReleaseAmt() *big.Int
- func (x *Quote) GetSrcToken() *common.Token
- func (*Quote) ProtoMessage()
- func (x *Quote) ProtoReflect() protoreflect.Message
- func (x *Quote) Reset()
- func (x *Quote) String() string
- func (q *Quote) ToQuoteOnChain() rfq.RFQQuote
- func (q *Quote) ValidateQuoteHash() bool
- type QuoteRequest
- func (*QuoteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QuoteRequest) GetDstNative() bool
- func (x *QuoteRequest) GetPrice() *Price
- func (x *QuoteRequest) GetQuote() *Quote
- func (*QuoteRequest) ProtoMessage()
- func (x *QuoteRequest) ProtoReflect() protoreflect.Message
- func (x *QuoteRequest) Reset()
- func (x *QuoteRequest) String() string
- type QuoteResponse
- func (*QuoteResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QuoteResponse) GetErr() *common.Err
- func (x *QuoteResponse) GetQuoteSig() string
- func (*QuoteResponse) ProtoMessage()
- func (x *QuoteResponse) ProtoReflect() protoreflect.Message
- func (x *QuoteResponse) Reset()
- func (x *QuoteResponse) String() string
- type SignQuoteHashRequest
- func (*SignQuoteHashRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SignQuoteHashRequest) GetQuote() *Quote
- func (x *SignQuoteHashRequest) GetQuoteSig() string
- func (x *SignQuoteHashRequest) GetSrcDepositTxHash() string
- func (*SignQuoteHashRequest) ProtoMessage()
- func (x *SignQuoteHashRequest) ProtoReflect() protoreflect.Message
- func (x *SignQuoteHashRequest) Reset()
- func (x *SignQuoteHashRequest) String() string
- type SignQuoteHashResponse
- func (*SignQuoteHashResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SignQuoteHashResponse) GetErr() *common.Err
- func (x *SignQuoteHashResponse) GetSig() []byte
- func (*SignQuoteHashResponse) ProtoMessage()
- func (x *SignQuoteHashResponse) ProtoReflect() protoreflect.Message
- func (x *SignQuoteHashResponse) Reset()
- func (x *SignQuoteHashResponse) String() string
- type TokensRequest
- type TokensResponse
- func (*TokensResponse) Descriptor() ([]byte, []int)deprecated
- func (x *TokensResponse) GetErr() *common.Err
- func (x *TokensResponse) GetTokens() []*common.Token
- func (*TokensResponse) ProtoMessage()
- func (x *TokensResponse) ProtoReflect() protoreflect.Message
- func (x *TokensResponse) Reset()
- func (x *TokensResponse) String() string
- type UnimplementedApiServer
- func (UnimplementedApiServer) Price(context.Context, *PriceRequest) (*PriceResponse, error)
- func (UnimplementedApiServer) Quote(context.Context, *QuoteRequest) (*QuoteResponse, error)
- func (UnimplementedApiServer) SignQuoteHash(context.Context, *SignQuoteHashRequest) (*SignQuoteHashResponse, error)
- func (UnimplementedApiServer) Tokens(context.Context, *TokensRequest) (*TokensResponse, error)
- type UnsafeApiServer
Constants ¶
This section is empty.
Variables ¶
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.
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)
var File_service_rfqmm_api_proto protoreflect.FileDescriptor
Functions ¶
func RegisterApiHandler ¶
RegisterApiHandler registers the http handlers for service Api to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterApiHandlerClient ¶
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 ¶
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 ¶
type ApiServer interface { Price(context.Context, *PriceRequest) (*PriceResponse, error) Quote(context.Context, *QuoteRequest) (*QuoteResponse, error) SignQuoteHash(context.Context, *SignQuoteHashRequest) (*SignQuoteHashResponse, error) Tokens(context.Context, *TokensRequest) (*TokensResponse, error) }
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) ProtoMessage ¶
func (*Config) ProtoMessage()
func (*Config) ProtoReflect ¶
func (x *Config) ProtoReflect() protoreflect.Message
type Err ¶
func (*Err) ToCommonErr ¶
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) EnumDescriptor
deprecated
func (ErrCode) Number ¶
func (x ErrCode) Number() protoreflect.EnumNumber
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) EncodeSignData ¶
func (*Price) GetDstAmount ¶
func (*Price) GetDstChainId ¶
func (*Price) GetDstToken ¶
func (*Price) GetDstTransferPeriod ¶
func (*Price) GetFeeAmount ¶
func (*Price) GetSigBytes ¶
func (*Price) GetSrcAmount ¶
func (*Price) GetSrcChainId ¶
func (*Price) GetSrcDepositPeriod ¶
func (*Price) GetSrcReleaseAmount ¶
func (*Price) GetSrcReleaseAmt ¶
func (*Price) GetSrcToken ¶
func (*Price) GetValidThru ¶
func (*Price) ProtoMessage ¶
func (*Price) ProtoMessage()
func (*Price) ProtoReflect ¶
func (x *Price) ProtoReflect() protoreflect.Message
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) EncodeQuoteHash ¶
func (*Quote) GetDstAmount ¶
func (*Quote) GetDstChainId ¶
func (*Quote) GetDstDeadline ¶
func (*Quote) GetDstToken ¶
func (*Quote) GetQuoteHash ¶
func (*Quote) GetReceiver ¶
func (*Quote) GetReceiverAddr ¶
func (*Quote) GetRefundTo ¶
func (*Quote) GetRefundToAddr ¶
func (*Quote) GetSenderAddr ¶
func (*Quote) GetSrcAmount ¶
func (*Quote) GetSrcChainId ¶
func (*Quote) GetSrcDeadline ¶
func (*Quote) GetSrcReleaseAmount ¶
func (*Quote) GetSrcReleaseAmt ¶
func (*Quote) GetSrcToken ¶
func (*Quote) ProtoMessage ¶
func (*Quote) ProtoMessage()
func (*Quote) ProtoReflect ¶
func (x *Quote) ProtoReflect() protoreflect.Message
func (*Quote) ToQuoteOnChain ¶
func (*Quote) ValidateQuoteHash ¶
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) Price(context.Context, *PriceRequest) (*PriceResponse, error)
func (UnimplementedApiServer) Quote ¶
func (UnimplementedApiServer) Quote(context.Context, *QuoteRequest) (*QuoteResponse, error)
func (UnimplementedApiServer) SignQuoteHash ¶
func (UnimplementedApiServer) SignQuoteHash(context.Context, *SignQuoteHashRequest) (*SignQuoteHashResponse, error)
func (UnimplementedApiServer) Tokens ¶
func (UnimplementedApiServer) Tokens(context.Context, *TokensRequest) (*TokensResponse, error)
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.