crypto_service

package
v0.0.0-...-a2f44c0 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Package crypto_service is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	CryptoService_AcceptCrypto_FullMethodName     = "/crypto_service.CryptoService/AcceptCrypto"
	CryptoService_Transfer_FullMethodName         = "/crypto_service.CryptoService/Transfer"
	CryptoService_CreateWallet_FullMethodName     = "/crypto_service.CryptoService/CreateWallet"
	CryptoService_ListWallets_FullMethodName      = "/crypto_service.CryptoService/ListWallets"
	CryptoService_GetBalance_FullMethodName       = "/crypto_service.CryptoService/GetBalance"
	CryptoService_SuggestGasPrice_FullMethodName  = "/crypto_service.CryptoService/SuggestGasPrice"
	CryptoService_SuggestFee_FullMethodName       = "/crypto_service.CryptoService/SuggestFee"
	CryptoService_ListTransactions_FullMethodName = "/crypto_service.CryptoService/ListTransactions"
)

Variables

View Source
var CryptoService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "crypto_service.CryptoService",
	HandlerType: (*CryptoServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "AcceptCrypto",
			Handler:    _CryptoService_AcceptCrypto_Handler,
		},
		{
			MethodName: "Transfer",
			Handler:    _CryptoService_Transfer_Handler,
		},
		{
			MethodName: "CreateWallet",
			Handler:    _CryptoService_CreateWallet_Handler,
		},
		{
			MethodName: "ListWallets",
			Handler:    _CryptoService_ListWallets_Handler,
		},
		{
			MethodName: "GetBalance",
			Handler:    _CryptoService_GetBalance_Handler,
		},
		{
			MethodName: "SuggestGasPrice",
			Handler:    _CryptoService_SuggestGasPrice_Handler,
		},
		{
			MethodName: "SuggestFee",
			Handler:    _CryptoService_SuggestFee_Handler,
		},
		{
			MethodName: "ListTransactions",
			Handler:    _CryptoService_ListTransactions_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/crypto-service/crypto-service.proto",
}

CryptoService_ServiceDesc is the grpc.ServiceDesc for CryptoService 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_api_crypto_service_crypto_service_proto protoreflect.FileDescriptor

Functions

func RegisterCryptoServiceHandler

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

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

func RegisterCryptoServiceHandlerClient

func RegisterCryptoServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client CryptoServiceClient) error

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

func RegisterCryptoServiceHandlerFromEndpoint

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

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

func RegisterCryptoServiceHandlerServer

func RegisterCryptoServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server CryptoServiceServer) error

RegisterCryptoServiceHandlerServer registers the http handlers for service CryptoService to "mux". UnaryRPC :call CryptoServiceServer 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 RegisterCryptoServiceHandlerFromEndpoint instead.

func RegisterCryptoServiceServer

func RegisterCryptoServiceServer(s grpc.ServiceRegistrar, srv CryptoServiceServer)

Types

type AcceptCryptoRequest

type AcceptCryptoRequest struct {
	Chain     string `protobuf:"bytes,1,opt,name=chain,proto3" json:"chain,omitempty"`
	Token     string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
	InvoiceId string `protobuf:"bytes,3,opt,name=invoice_id,json=invoiceId,proto3" json:"invoice_id,omitempty"`
	// contains filtered or unexported fields
}

func (*AcceptCryptoRequest) Descriptor deprecated

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

Deprecated: Use AcceptCryptoRequest.ProtoReflect.Descriptor instead.

func (*AcceptCryptoRequest) GetChain

func (x *AcceptCryptoRequest) GetChain() string

func (*AcceptCryptoRequest) GetInvoiceId

func (x *AcceptCryptoRequest) GetInvoiceId() string

func (*AcceptCryptoRequest) GetToken

func (x *AcceptCryptoRequest) GetToken() string

func (*AcceptCryptoRequest) ProtoMessage

func (*AcceptCryptoRequest) ProtoMessage()

func (*AcceptCryptoRequest) ProtoReflect

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

func (*AcceptCryptoRequest) Reset

func (x *AcceptCryptoRequest) Reset()

func (*AcceptCryptoRequest) String

func (x *AcceptCryptoRequest) String() string

type AcceptCryptoResponse

type AcceptCryptoResponse struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

func (*AcceptCryptoResponse) Descriptor deprecated

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

Deprecated: Use AcceptCryptoResponse.ProtoReflect.Descriptor instead.

func (*AcceptCryptoResponse) GetAddress

func (x *AcceptCryptoResponse) GetAddress() string

func (*AcceptCryptoResponse) ProtoMessage

func (*AcceptCryptoResponse) ProtoMessage()

func (*AcceptCryptoResponse) ProtoReflect

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

func (*AcceptCryptoResponse) Reset

func (x *AcceptCryptoResponse) Reset()

func (*AcceptCryptoResponse) String

func (x *AcceptCryptoResponse) String() string

type CreateWalletRequest

type CreateWalletRequest struct {
	ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateWalletRequest) Descriptor deprecated

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

Deprecated: Use CreateWalletRequest.ProtoReflect.Descriptor instead.

func (*CreateWalletRequest) GetClientId

func (x *CreateWalletRequest) GetClientId() string

func (*CreateWalletRequest) ProtoMessage

func (*CreateWalletRequest) ProtoMessage()

func (*CreateWalletRequest) ProtoReflect

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

func (*CreateWalletRequest) Reset

func (x *CreateWalletRequest) Reset()

func (*CreateWalletRequest) String

func (x *CreateWalletRequest) String() string

type CryptoServiceClient

type CryptoServiceClient interface {
	AcceptCrypto(ctx context.Context, in *AcceptCryptoRequest, opts ...grpc.CallOption) (*AcceptCryptoResponse, error)
	Transfer(ctx context.Context, in *TransferRequest, opts ...grpc.CallOption) (*TransferResponse, error)
	CreateWallet(ctx context.Context, in *CreateWalletRequest, opts ...grpc.CallOption) (*Wallet, error)
	ListWallets(ctx context.Context, in *ListWalletsRequest, opts ...grpc.CallOption) (*ListWalletsResponse, error)
	GetBalance(ctx context.Context, in *GetBalanceRequest, opts ...grpc.CallOption) (*GetBalanceResponse, error)
	SuggestGasPrice(ctx context.Context, in *SuggestGasPriceRequest, opts ...grpc.CallOption) (*SuggestGasPriceResponse, error)
	SuggestFee(ctx context.Context, in *SuggestFeeRequest, opts ...grpc.CallOption) (*SuggestFeeResponse, error)
	ListTransactions(ctx context.Context, in *ListTransactionsRequest, opts ...grpc.CallOption) (*ListTransactionsResponse, error)
}

CryptoServiceClient is the client API for CryptoService 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.

type CryptoServiceServer

CryptoServiceServer is the server API for CryptoService service. All implementations must embed UnimplementedCryptoServiceServer for forward compatibility

type GetBalanceRequest

type GetBalanceRequest struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Chain   string `protobuf:"bytes,2,opt,name=chain,proto3" json:"chain,omitempty"`
	Token   string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"`
	// do not use cache to get price
	WithoutCache *bool `protobuf:"varint,4,opt,name=without_cache,json=withoutCache,proto3,oneof" json:"without_cache,omitempty"`
	// contains filtered or unexported fields
}

func (*GetBalanceRequest) Descriptor deprecated

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

Deprecated: Use GetBalanceRequest.ProtoReflect.Descriptor instead.

func (*GetBalanceRequest) GetAddress

func (x *GetBalanceRequest) GetAddress() string

func (*GetBalanceRequest) GetChain

func (x *GetBalanceRequest) GetChain() string

func (*GetBalanceRequest) GetToken

func (x *GetBalanceRequest) GetToken() string

func (*GetBalanceRequest) GetWithoutCache

func (x *GetBalanceRequest) GetWithoutCache() bool

func (*GetBalanceRequest) ProtoMessage

func (*GetBalanceRequest) ProtoMessage()

func (*GetBalanceRequest) ProtoReflect

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

func (*GetBalanceRequest) Reset

func (x *GetBalanceRequest) Reset()

func (*GetBalanceRequest) String

func (x *GetBalanceRequest) String() string

type GetBalanceResponse

type GetBalanceResponse struct {
	Balance float64 `protobuf:"fixed64,1,opt,name=balance,proto3" json:"balance,omitempty"`
	// contains filtered or unexported fields
}

func (*GetBalanceResponse) Descriptor deprecated

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

Deprecated: Use GetBalanceResponse.ProtoReflect.Descriptor instead.

func (*GetBalanceResponse) GetBalance

func (x *GetBalanceResponse) GetBalance() float64

func (*GetBalanceResponse) ProtoMessage

func (*GetBalanceResponse) ProtoMessage()

func (*GetBalanceResponse) ProtoReflect

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

func (*GetBalanceResponse) Reset

func (x *GetBalanceResponse) Reset()

func (*GetBalanceResponse) String

func (x *GetBalanceResponse) String() string

type ListTransactionsRequest

type ListTransactionsRequest struct {
	Filter  *ListTransactionsRequest_Filter `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"`
	Page    uint64                          `protobuf:"varint,2,opt,name=page,proto3" json:"page,omitempty"`
	PerPage uint64                          `protobuf:"varint,3,opt,name=per_page,json=perPage,proto3" json:"per_page,omitempty"`
	// contains filtered or unexported fields
}

func (*ListTransactionsRequest) Descriptor deprecated

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

Deprecated: Use ListTransactionsRequest.ProtoReflect.Descriptor instead.

func (*ListTransactionsRequest) GetFilter

func (*ListTransactionsRequest) GetPage

func (x *ListTransactionsRequest) GetPage() uint64

func (*ListTransactionsRequest) GetPerPage

func (x *ListTransactionsRequest) GetPerPage() uint64

func (*ListTransactionsRequest) ProtoMessage

func (*ListTransactionsRequest) ProtoMessage()

func (*ListTransactionsRequest) ProtoReflect

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

func (*ListTransactionsRequest) Reset

func (x *ListTransactionsRequest) Reset()

func (*ListTransactionsRequest) String

func (x *ListTransactionsRequest) String() string

type ListTransactionsRequest_Filter

type ListTransactionsRequest_Filter struct {
	AddressIn  []string `protobuf:"bytes,1,rep,name=address_in,json=addressIn,proto3" json:"address_in,omitempty"`
	ClientIdIn []string `protobuf:"bytes,2,rep,name=client_id_in,json=clientIdIn,proto3" json:"client_id_in,omitempty"`
	// contains filtered or unexported fields
}

func (*ListTransactionsRequest_Filter) Descriptor deprecated

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

Deprecated: Use ListTransactionsRequest_Filter.ProtoReflect.Descriptor instead.

func (*ListTransactionsRequest_Filter) GetAddressIn

func (x *ListTransactionsRequest_Filter) GetAddressIn() []string

func (*ListTransactionsRequest_Filter) GetClientIdIn

func (x *ListTransactionsRequest_Filter) GetClientIdIn() []string

func (*ListTransactionsRequest_Filter) ProtoMessage

func (*ListTransactionsRequest_Filter) ProtoMessage()

func (*ListTransactionsRequest_Filter) ProtoReflect

func (*ListTransactionsRequest_Filter) Reset

func (x *ListTransactionsRequest_Filter) Reset()

func (*ListTransactionsRequest_Filter) String

type ListTransactionsResponse

type ListTransactionsResponse struct {
	Transactions []*Transaction `protobuf:"bytes,1,rep,name=transactions,proto3" json:"transactions,omitempty"`
	// contains filtered or unexported fields
}

func (*ListTransactionsResponse) Descriptor deprecated

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

Deprecated: Use ListTransactionsResponse.ProtoReflect.Descriptor instead.

func (*ListTransactionsResponse) GetTransactions

func (x *ListTransactionsResponse) GetTransactions() []*Transaction

func (*ListTransactionsResponse) ProtoMessage

func (*ListTransactionsResponse) ProtoMessage()

func (*ListTransactionsResponse) ProtoReflect

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

func (*ListTransactionsResponse) Reset

func (x *ListTransactionsResponse) Reset()

func (*ListTransactionsResponse) String

func (x *ListTransactionsResponse) String() string

type ListWalletsRequest

type ListWalletsRequest struct {
	Filter *ListWalletsRequest_Filter `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"`
	// contains filtered or unexported fields
}

func (*ListWalletsRequest) Descriptor deprecated

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

Deprecated: Use ListWalletsRequest.ProtoReflect.Descriptor instead.

func (*ListWalletsRequest) GetFilter

func (*ListWalletsRequest) ProtoMessage

func (*ListWalletsRequest) ProtoMessage()

func (*ListWalletsRequest) ProtoReflect

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

func (*ListWalletsRequest) Reset

func (x *ListWalletsRequest) Reset()

func (*ListWalletsRequest) String

func (x *ListWalletsRequest) String() string

type ListWalletsRequest_Filter

type ListWalletsRequest_Filter struct {
	ClientIdIn []string `protobuf:"bytes,1,rep,name=client_id_in,json=clientIdIn,proto3" json:"client_id_in,omitempty"`
	AddressIn  []string `protobuf:"bytes,2,rep,name=address_in,json=addressIn,proto3" json:"address_in,omitempty"`
	// contains filtered or unexported fields
}

func (*ListWalletsRequest_Filter) Descriptor deprecated

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

Deprecated: Use ListWalletsRequest_Filter.ProtoReflect.Descriptor instead.

func (*ListWalletsRequest_Filter) GetAddressIn

func (x *ListWalletsRequest_Filter) GetAddressIn() []string

func (*ListWalletsRequest_Filter) GetClientIdIn

func (x *ListWalletsRequest_Filter) GetClientIdIn() []string

func (*ListWalletsRequest_Filter) ProtoMessage

func (*ListWalletsRequest_Filter) ProtoMessage()

func (*ListWalletsRequest_Filter) ProtoReflect

func (*ListWalletsRequest_Filter) Reset

func (x *ListWalletsRequest_Filter) Reset()

func (*ListWalletsRequest_Filter) String

func (x *ListWalletsRequest_Filter) String() string

type ListWalletsResponse

type ListWalletsResponse struct {
	Wallets []*Wallet `protobuf:"bytes,1,rep,name=wallets,proto3" json:"wallets,omitempty"`
	// contains filtered or unexported fields
}

func (*ListWalletsResponse) Descriptor deprecated

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

Deprecated: Use ListWalletsResponse.ProtoReflect.Descriptor instead.

func (*ListWalletsResponse) GetWallets

func (x *ListWalletsResponse) GetWallets() []*Wallet

func (*ListWalletsResponse) ProtoMessage

func (*ListWalletsResponse) ProtoMessage()

func (*ListWalletsResponse) ProtoReflect

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

func (*ListWalletsResponse) Reset

func (x *ListWalletsResponse) Reset()

func (*ListWalletsResponse) String

func (x *ListWalletsResponse) String() string

type SuggestFeeRequest

type SuggestFeeRequest struct {
	Chain    string  `protobuf:"bytes,1,opt,name=chain,proto3" json:"chain,omitempty"`
	GasLimit *uint64 `protobuf:"varint,2,opt,name=gas_limit,json=gasLimit,proto3,oneof" json:"gas_limit,omitempty"`
	// contains filtered or unexported fields
}

func (*SuggestFeeRequest) Descriptor deprecated

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

Deprecated: Use SuggestFeeRequest.ProtoReflect.Descriptor instead.

func (*SuggestFeeRequest) GetChain

func (x *SuggestFeeRequest) GetChain() string

func (*SuggestFeeRequest) GetGasLimit

func (x *SuggestFeeRequest) GetGasLimit() uint64

func (*SuggestFeeRequest) ProtoMessage

func (*SuggestFeeRequest) ProtoMessage()

func (*SuggestFeeRequest) ProtoReflect

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

func (*SuggestFeeRequest) Reset

func (x *SuggestFeeRequest) Reset()

func (*SuggestFeeRequest) String

func (x *SuggestFeeRequest) String() string

type SuggestFeeResponse

type SuggestFeeResponse struct {
	Fee uint64 `protobuf:"varint,1,opt,name=fee,proto3" json:"fee,omitempty"`
	// contains filtered or unexported fields
}

func (*SuggestFeeResponse) Descriptor deprecated

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

Deprecated: Use SuggestFeeResponse.ProtoReflect.Descriptor instead.

func (*SuggestFeeResponse) GetFee

func (x *SuggestFeeResponse) GetFee() uint64

func (*SuggestFeeResponse) ProtoMessage

func (*SuggestFeeResponse) ProtoMessage()

func (*SuggestFeeResponse) ProtoReflect

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

func (*SuggestFeeResponse) Reset

func (x *SuggestFeeResponse) Reset()

func (*SuggestFeeResponse) String

func (x *SuggestFeeResponse) String() string

type SuggestGasPriceRequest

type SuggestGasPriceRequest struct {
	Chain string `protobuf:"bytes,1,opt,name=chain,proto3" json:"chain,omitempty"`
	// contains filtered or unexported fields
}

func (*SuggestGasPriceRequest) Descriptor deprecated

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

Deprecated: Use SuggestGasPriceRequest.ProtoReflect.Descriptor instead.

func (*SuggestGasPriceRequest) GetChain

func (x *SuggestGasPriceRequest) GetChain() string

func (*SuggestGasPriceRequest) ProtoMessage

func (*SuggestGasPriceRequest) ProtoMessage()

func (*SuggestGasPriceRequest) ProtoReflect

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

func (*SuggestGasPriceRequest) Reset

func (x *SuggestGasPriceRequest) Reset()

func (*SuggestGasPriceRequest) String

func (x *SuggestGasPriceRequest) String() string

type SuggestGasPriceResponse

type SuggestGasPriceResponse struct {
	Price uint64 `protobuf:"varint,1,opt,name=price,proto3" json:"price,omitempty"`
	// contains filtered or unexported fields
}

func (*SuggestGasPriceResponse) Descriptor deprecated

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

Deprecated: Use SuggestGasPriceResponse.ProtoReflect.Descriptor instead.

func (*SuggestGasPriceResponse) GetPrice

func (x *SuggestGasPriceResponse) GetPrice() uint64

func (*SuggestGasPriceResponse) ProtoMessage

func (*SuggestGasPriceResponse) ProtoMessage()

func (*SuggestGasPriceResponse) ProtoReflect

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

func (*SuggestGasPriceResponse) Reset

func (x *SuggestGasPriceResponse) Reset()

func (*SuggestGasPriceResponse) String

func (x *SuggestGasPriceResponse) String() string

type Transaction

type Transaction struct {
	Id          string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	FromAddress string                 `protobuf:"bytes,2,opt,name=from_address,json=fromAddress,proto3" json:"from_address,omitempty"`
	ToAddress   string                 `protobuf:"bytes,3,opt,name=to_address,json=toAddress,proto3" json:"to_address,omitempty"`
	Amount      uint64                 `protobuf:"varint,4,opt,name=amount,proto3" json:"amount,omitempty"`
	Chain       string                 `protobuf:"bytes,5,opt,name=chain,proto3" json:"chain,omitempty"`
	Token       string                 `protobuf:"bytes,6,opt,name=token,proto3" json:"token,omitempty"`
	Hash        string                 `protobuf:"bytes,7,opt,name=hash,proto3" json:"hash,omitempty"`
	CreatedAt   *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// contains filtered or unexported fields
}

func (*Transaction) Descriptor deprecated

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

Deprecated: Use Transaction.ProtoReflect.Descriptor instead.

func (*Transaction) GetAmount

func (x *Transaction) GetAmount() uint64

func (*Transaction) GetChain

func (x *Transaction) GetChain() string

func (*Transaction) GetCreatedAt

func (x *Transaction) GetCreatedAt() *timestamppb.Timestamp

func (*Transaction) GetFromAddress

func (x *Transaction) GetFromAddress() string

func (*Transaction) GetHash

func (x *Transaction) GetHash() string

func (*Transaction) GetId

func (x *Transaction) GetId() string

func (*Transaction) GetToAddress

func (x *Transaction) GetToAddress() string

func (*Transaction) GetToken

func (x *Transaction) GetToken() string

func (*Transaction) ProtoMessage

func (*Transaction) ProtoMessage()

func (*Transaction) ProtoReflect

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

func (*Transaction) Reset

func (x *Transaction) Reset()

func (*Transaction) String

func (x *Transaction) String() string

type TransferRequest

type TransferRequest struct {
	ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
	// One of 3
	InvoiceId        *string `protobuf:"bytes,2,opt,name=invoice_id,json=invoiceId,proto3,oneof" json:"invoice_id,omitempty"`
	ReceiverAddress  *string `protobuf:"bytes,3,opt,name=receiver_address,json=receiverAddress,proto3,oneof" json:"receiver_address,omitempty"`
	ReceiverClientId *string `protobuf:"bytes,4,opt,name=receiver_client_id,json=receiverClientId,proto3,oneof" json:"receiver_client_id,omitempty"`
	GasLimit         *uint64 `protobuf:"varint,10,opt,name=gas_limit,json=gasLimit,proto3,oneof" json:"gas_limit,omitempty"`
	GasPrice         *uint64 `protobuf:"varint,11,opt,name=gas_price,json=gasPrice,proto3,oneof" json:"gas_price,omitempty"`
	Amount           float64 `protobuf:"fixed64,12,opt,name=amount,proto3" json:"amount,omitempty"`
	Chain            string  `protobuf:"bytes,13,opt,name=chain,proto3" json:"chain,omitempty"`
	// contains filtered or unexported fields
}

func (*TransferRequest) Descriptor deprecated

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

Deprecated: Use TransferRequest.ProtoReflect.Descriptor instead.

func (*TransferRequest) GetAmount

func (x *TransferRequest) GetAmount() float64

func (*TransferRequest) GetChain

func (x *TransferRequest) GetChain() string

func (*TransferRequest) GetClientId

func (x *TransferRequest) GetClientId() string

func (*TransferRequest) GetGasLimit

func (x *TransferRequest) GetGasLimit() uint64

func (*TransferRequest) GetGasPrice

func (x *TransferRequest) GetGasPrice() uint64

func (*TransferRequest) GetInvoiceId

func (x *TransferRequest) GetInvoiceId() string

func (*TransferRequest) GetReceiverAddress

func (x *TransferRequest) GetReceiverAddress() string

func (*TransferRequest) GetReceiverClientId

func (x *TransferRequest) GetReceiverClientId() string

func (*TransferRequest) ProtoMessage

func (*TransferRequest) ProtoMessage()

func (*TransferRequest) ProtoReflect

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

func (*TransferRequest) Reset

func (x *TransferRequest) Reset()

func (*TransferRequest) String

func (x *TransferRequest) String() string

type TransferResponse

type TransferResponse struct {
	TransactionHash string `protobuf:"bytes,1,opt,name=transaction_hash,json=transactionHash,proto3" json:"transaction_hash,omitempty"`
	// contains filtered or unexported fields
}

func (*TransferResponse) Descriptor deprecated

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

Deprecated: Use TransferResponse.ProtoReflect.Descriptor instead.

func (*TransferResponse) GetTransactionHash

func (x *TransferResponse) GetTransactionHash() string

func (*TransferResponse) ProtoMessage

func (*TransferResponse) ProtoMessage()

func (*TransferResponse) ProtoReflect

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

func (*TransferResponse) Reset

func (x *TransferResponse) Reset()

func (*TransferResponse) String

func (x *TransferResponse) String() string

type UnimplementedCryptoServiceServer

type UnimplementedCryptoServiceServer struct {
}

UnimplementedCryptoServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedCryptoServiceServer) AcceptCrypto

func (UnimplementedCryptoServiceServer) CreateWallet

func (UnimplementedCryptoServiceServer) GetBalance

func (UnimplementedCryptoServiceServer) ListTransactions

func (UnimplementedCryptoServiceServer) ListWallets

func (UnimplementedCryptoServiceServer) SuggestFee

func (UnimplementedCryptoServiceServer) SuggestGasPrice

func (UnimplementedCryptoServiceServer) Transfer

type UnsafeCryptoServiceServer

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

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

type Wallet

type Wallet struct {
	Address  string  `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Balance  float64 `protobuf:"fixed64,2,opt,name=balance,proto3" json:"balance,omitempty"`
	Chain    string  `protobuf:"bytes,3,opt,name=chain,proto3" json:"chain,omitempty"`
	ClientId string  `protobuf:"bytes,4,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
	// contains filtered or unexported fields
}

func (*Wallet) Descriptor deprecated

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

Deprecated: Use Wallet.ProtoReflect.Descriptor instead.

func (*Wallet) GetAddress

func (x *Wallet) GetAddress() string

func (*Wallet) GetBalance

func (x *Wallet) GetBalance() float64

func (*Wallet) GetChain

func (x *Wallet) GetChain() string

func (*Wallet) GetClientId

func (x *Wallet) GetClientId() string

func (*Wallet) ProtoMessage

func (*Wallet) ProtoMessage()

func (*Wallet) ProtoReflect

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

func (*Wallet) Reset

func (x *Wallet) Reset()

func (*Wallet) String

func (x *Wallet) String() string

Jump to

Keyboard shortcuts

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