Versions in this module Expand all Collapse all v0 v0.2.0 Apr 27, 2024 v0.1.0 Apr 27, 2024 Changes in this version + const TransferLib_GetAccount_FullMethodName + const TransferLib_GetBalance_FullMethodName + const TransferLib_GetTranscation_FullMethodName + const TransferLib_Transfer_FullMethodName + var File_transfer_lib_proto protoreflect.FileDescriptor + var TransferLib_ServiceDesc = grpc.ServiceDesc + func RegisterTransferLibServer(s grpc.ServiceRegistrar, srv TransferLibServer) + type Account struct + Address string + PrivateKey string + func (*Account) Descriptor() ([]byte, []int) + func (*Account) ProtoMessage() + func (x *Account) GetAddress() string + func (x *Account) GetPrivateKey() string + func (x *Account) ProtoReflect() protoreflect.Message + func (x *Account) Reset() + func (x *Account) String() string + type GetAccountRequest struct + AddressTypes []string + Index int64 + Mnemonic string + Password string + func (*GetAccountRequest) Descriptor() ([]byte, []int) + func (*GetAccountRequest) ProtoMessage() + func (x *GetAccountRequest) GetAddressTypes() []string + func (x *GetAccountRequest) GetIndex() int64 + func (x *GetAccountRequest) GetMnemonic() string + func (x *GetAccountRequest) GetPassword() string + func (x *GetAccountRequest) ProtoReflect() protoreflect.Message + func (x *GetAccountRequest) Reset() + func (x *GetAccountRequest) String() string + type GetAccountResponse struct + Accounts map[string]*Account + func (*GetAccountResponse) Descriptor() ([]byte, []int) + func (*GetAccountResponse) ProtoMessage() + func (x *GetAccountResponse) GetAccounts() map[string]*Account + func (x *GetAccountResponse) ProtoReflect() protoreflect.Message + func (x *GetAccountResponse) Reset() + func (x *GetAccountResponse) String() string + type GetBalanceRequest struct + Address string + AddressType string + Currencies []string + func (*GetBalanceRequest) Descriptor() ([]byte, []int) + func (*GetBalanceRequest) ProtoMessage() + func (x *GetBalanceRequest) GetAddress() string + func (x *GetBalanceRequest) GetAddressType() string + func (x *GetBalanceRequest) GetCurrencies() []string + func (x *GetBalanceRequest) ProtoReflect() protoreflect.Message + func (x *GetBalanceRequest) Reset() + func (x *GetBalanceRequest) String() string + type GetBalanceResponse struct + Balances map[string]float64 + func (*GetBalanceResponse) Descriptor() ([]byte, []int) + func (*GetBalanceResponse) ProtoMessage() + func (x *GetBalanceResponse) GetBalances() map[string]float64 + func (x *GetBalanceResponse) ProtoReflect() protoreflect.Message + func (x *GetBalanceResponse) Reset() + func (x *GetBalanceResponse) String() string + type GetTranscationRequest struct + Chain string + TranscationHash string + func (*GetTranscationRequest) Descriptor() ([]byte, []int) + func (*GetTranscationRequest) ProtoMessage() + func (x *GetTranscationRequest) GetChain() string + func (x *GetTranscationRequest) GetTranscationHash() string + func (x *GetTranscationRequest) ProtoReflect() protoreflect.Message + func (x *GetTranscationRequest) Reset() + func (x *GetTranscationRequest) String() string + type GetTranscationResponse struct + Confirms uint64 + Currency string + From string + Height uint64 + Result bool + Timestamp uint64 + To string + Value float64 + func (*GetTranscationResponse) Descriptor() ([]byte, []int) + func (*GetTranscationResponse) ProtoMessage() + func (x *GetTranscationResponse) GetConfirms() uint64 + func (x *GetTranscationResponse) GetCurrency() string + func (x *GetTranscationResponse) GetFrom() string + func (x *GetTranscationResponse) GetHeight() uint64 + func (x *GetTranscationResponse) GetResult() bool + func (x *GetTranscationResponse) GetTimestamp() uint64 + func (x *GetTranscationResponse) GetTo() string + func (x *GetTranscationResponse) GetValue() float64 + func (x *GetTranscationResponse) ProtoReflect() protoreflect.Message + func (x *GetTranscationResponse) Reset() + func (x *GetTranscationResponse) String() string + type TransferLibClient interface + GetAccount func(ctx context.Context, in *GetAccountRequest, opts ...grpc.CallOption) (*GetAccountResponse, error) + GetBalance func(ctx context.Context, in *GetBalanceRequest, opts ...grpc.CallOption) (*GetBalanceResponse, error) + GetTranscation func(ctx context.Context, in *GetTranscationRequest, opts ...grpc.CallOption) (*GetTranscationResponse, error) + Transfer func(ctx context.Context, in *TransferRequest, opts ...grpc.CallOption) (*TransferResponse, error) + func NewTransferLibClient(cc grpc.ClientConnInterface) TransferLibClient + type TransferLibServer interface + GetAccount func(context.Context, *GetAccountRequest) (*GetAccountResponse, error) + GetBalance func(context.Context, *GetBalanceRequest) (*GetBalanceResponse, error) + GetTranscation func(context.Context, *GetTranscationRequest) (*GetTranscationResponse, error) + Transfer func(context.Context, *TransferRequest) (*TransferResponse, error) + type TransferRequest struct + Chain string + Currency string + PrivateKey string + To string + Value float64 + func (*TransferRequest) Descriptor() ([]byte, []int) + func (*TransferRequest) ProtoMessage() + func (x *TransferRequest) GetChain() string + func (x *TransferRequest) GetCurrency() string + func (x *TransferRequest) GetPrivateKey() string + func (x *TransferRequest) GetTo() string + func (x *TransferRequest) GetValue() float64 + func (x *TransferRequest) ProtoReflect() protoreflect.Message + func (x *TransferRequest) Reset() + func (x *TransferRequest) String() string + type TransferResponse struct + TranscationHash string + func (*TransferResponse) Descriptor() ([]byte, []int) + func (*TransferResponse) ProtoMessage() + func (x *TransferResponse) GetTranscationHash() string + func (x *TransferResponse) ProtoReflect() protoreflect.Message + func (x *TransferResponse) Reset() + func (x *TransferResponse) String() string + type UnimplementedTransferLibServer struct + func (UnimplementedTransferLibServer) GetAccount(context.Context, *GetAccountRequest) (*GetAccountResponse, error) + func (UnimplementedTransferLibServer) GetBalance(context.Context, *GetBalanceRequest) (*GetBalanceResponse, error) + func (UnimplementedTransferLibServer) GetTranscation(context.Context, *GetTranscationRequest) (*GetTranscationResponse, error) + func (UnimplementedTransferLibServer) Transfer(context.Context, *TransferRequest) (*TransferResponse, error) + type UnsafeTransferLibServer interface