Documentation ¶
Index ¶
- func RegisterClientServiceServer(s *grpc.Server, srv ClientServiceServer)
- type ClientServiceClient
- type ClientServiceServer
- type FetchAccountStateRequest
- func (*FetchAccountStateRequest) Descriptor() ([]byte, []int)
- func (m *FetchAccountStateRequest) GetAddress() []byte
- func (*FetchAccountStateRequest) ProtoMessage()
- func (m *FetchAccountStateRequest) Reset()
- func (m *FetchAccountStateRequest) String() string
- func (m *FetchAccountStateRequest) XXX_DiscardUnknown()
- func (m *FetchAccountStateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FetchAccountStateRequest) XXX_Merge(src proto.Message)
- func (m *FetchAccountStateRequest) XXX_Size() int
- func (m *FetchAccountStateRequest) XXX_Unmarshal(b []byte) error
- type FetchAccountStateResponse
- func (*FetchAccountStateResponse) Descriptor() ([]byte, []int)
- func (m *FetchAccountStateResponse) GetBalance() []byte
- func (m *FetchAccountStateResponse) GetNonce() uint64
- func (*FetchAccountStateResponse) ProtoMessage()
- func (m *FetchAccountStateResponse) Reset()
- func (m *FetchAccountStateResponse) String() string
- func (m *FetchAccountStateResponse) XXX_DiscardUnknown()
- func (m *FetchAccountStateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FetchAccountStateResponse) XXX_Merge(src proto.Message)
- func (m *FetchAccountStateResponse) XXX_Size() int
- func (m *FetchAccountStateResponse) XXX_Unmarshal(b []byte) error
- type GetFreeTokenRequest
- func (*GetFreeTokenRequest) Descriptor() ([]byte, []int)
- func (m *GetFreeTokenRequest) GetAddress() []byte
- func (*GetFreeTokenRequest) ProtoMessage()
- func (m *GetFreeTokenRequest) Reset()
- func (m *GetFreeTokenRequest) String() string
- func (m *GetFreeTokenRequest) XXX_DiscardUnknown()
- func (m *GetFreeTokenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetFreeTokenRequest) XXX_Merge(src proto.Message)
- func (m *GetFreeTokenRequest) XXX_Size() int
- func (m *GetFreeTokenRequest) XXX_Unmarshal(b []byte) error
- type GetFreeTokenResponse
- func (*GetFreeTokenResponse) Descriptor() ([]byte, []int)
- func (m *GetFreeTokenResponse) GetTxId() []byte
- func (*GetFreeTokenResponse) ProtoMessage()
- func (m *GetFreeTokenResponse) Reset()
- func (m *GetFreeTokenResponse) String() string
- func (m *GetFreeTokenResponse) XXX_DiscardUnknown()
- func (m *GetFreeTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetFreeTokenResponse) XXX_Merge(src proto.Message)
- func (m *GetFreeTokenResponse) XXX_Size() int
- func (m *GetFreeTokenResponse) XXX_Unmarshal(b []byte) error
- type UnimplementedClientServiceServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterClientServiceServer ¶
func RegisterClientServiceServer(s *grpc.Server, srv ClientServiceServer)
Types ¶
type ClientServiceClient ¶
type ClientServiceClient interface { FetchAccountState(ctx context.Context, in *FetchAccountStateRequest, opts ...grpc.CallOption) (*FetchAccountStateResponse, error) GetFreeToken(ctx context.Context, in *GetFreeTokenRequest, opts ...grpc.CallOption) (*GetFreeTokenResponse, error) }
ClientServiceClient is the client API for ClientService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewClientServiceClient ¶
func NewClientServiceClient(cc *grpc.ClientConn) ClientServiceClient
type ClientServiceServer ¶
type ClientServiceServer interface { FetchAccountState(context.Context, *FetchAccountStateRequest) (*FetchAccountStateResponse, error) GetFreeToken(context.Context, *GetFreeTokenRequest) (*GetFreeTokenResponse, error) }
ClientServiceServer is the server API for ClientService service.
type FetchAccountStateRequest ¶
type FetchAccountStateRequest struct { // The account address Address []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
FetchAccountStateRequest is the request to fetch an account's balance and nonce.
func (*FetchAccountStateRequest) Descriptor ¶
func (*FetchAccountStateRequest) Descriptor() ([]byte, []int)
func (*FetchAccountStateRequest) GetAddress ¶
func (m *FetchAccountStateRequest) GetAddress() []byte
func (*FetchAccountStateRequest) ProtoMessage ¶
func (*FetchAccountStateRequest) ProtoMessage()
func (*FetchAccountStateRequest) Reset ¶
func (m *FetchAccountStateRequest) Reset()
func (*FetchAccountStateRequest) String ¶
func (m *FetchAccountStateRequest) String() string
func (*FetchAccountStateRequest) XXX_DiscardUnknown ¶
func (m *FetchAccountStateRequest) XXX_DiscardUnknown()
func (*FetchAccountStateRequest) XXX_Marshal ¶
func (m *FetchAccountStateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FetchAccountStateRequest) XXX_Merge ¶
func (m *FetchAccountStateRequest) XXX_Merge(src proto.Message)
func (*FetchAccountStateRequest) XXX_Size ¶
func (m *FetchAccountStateRequest) XXX_Size() int
func (*FetchAccountStateRequest) XXX_Unmarshal ¶
func (m *FetchAccountStateRequest) XXX_Unmarshal(b []byte) error
type FetchAccountStateResponse ¶
type FetchAccountStateResponse struct { // The balance of the account (big.Int) Balance []byte `protobuf:"bytes,1,opt,name=balance,proto3" json:"balance,omitempty"` // The nonce of the account Nonce uint64 `protobuf:"varint,2,opt,name=nonce,proto3" json:"nonce,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
FetchAccountStateResponse is the response of FetchAccountStateRequest.
func (*FetchAccountStateResponse) Descriptor ¶
func (*FetchAccountStateResponse) Descriptor() ([]byte, []int)
func (*FetchAccountStateResponse) GetBalance ¶
func (m *FetchAccountStateResponse) GetBalance() []byte
func (*FetchAccountStateResponse) GetNonce ¶
func (m *FetchAccountStateResponse) GetNonce() uint64
func (*FetchAccountStateResponse) ProtoMessage ¶
func (*FetchAccountStateResponse) ProtoMessage()
func (*FetchAccountStateResponse) Reset ¶
func (m *FetchAccountStateResponse) Reset()
func (*FetchAccountStateResponse) String ¶
func (m *FetchAccountStateResponse) String() string
func (*FetchAccountStateResponse) XXX_DiscardUnknown ¶
func (m *FetchAccountStateResponse) XXX_DiscardUnknown()
func (*FetchAccountStateResponse) XXX_Marshal ¶
func (m *FetchAccountStateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FetchAccountStateResponse) XXX_Merge ¶
func (m *FetchAccountStateResponse) XXX_Merge(src proto.Message)
func (*FetchAccountStateResponse) XXX_Size ¶
func (m *FetchAccountStateResponse) XXX_Size() int
func (*FetchAccountStateResponse) XXX_Unmarshal ¶
func (m *FetchAccountStateResponse) XXX_Unmarshal(b []byte) error
type GetFreeTokenRequest ¶
type GetFreeTokenRequest struct { // The account address to receive the free token Address []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
GetFreeTokenRequest is the request to get free token from the faucet smart contract.
func (*GetFreeTokenRequest) Descriptor ¶
func (*GetFreeTokenRequest) Descriptor() ([]byte, []int)
func (*GetFreeTokenRequest) GetAddress ¶
func (m *GetFreeTokenRequest) GetAddress() []byte
func (*GetFreeTokenRequest) ProtoMessage ¶
func (*GetFreeTokenRequest) ProtoMessage()
func (*GetFreeTokenRequest) Reset ¶
func (m *GetFreeTokenRequest) Reset()
func (*GetFreeTokenRequest) String ¶
func (m *GetFreeTokenRequest) String() string
func (*GetFreeTokenRequest) XXX_DiscardUnknown ¶
func (m *GetFreeTokenRequest) XXX_DiscardUnknown()
func (*GetFreeTokenRequest) XXX_Marshal ¶
func (m *GetFreeTokenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetFreeTokenRequest) XXX_Merge ¶
func (m *GetFreeTokenRequest) XXX_Merge(src proto.Message)
func (*GetFreeTokenRequest) XXX_Size ¶
func (m *GetFreeTokenRequest) XXX_Size() int
func (*GetFreeTokenRequest) XXX_Unmarshal ¶
func (m *GetFreeTokenRequest) XXX_Unmarshal(b []byte) error
type GetFreeTokenResponse ¶
type GetFreeTokenResponse struct { // The transaction Id that requests free token from the faucet. TxId []byte `protobuf:"bytes,1,opt,name=txId,proto3" json:"txId,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
GetFreeTokenResponse is the response of GetFreeTokenRequest.
func (*GetFreeTokenResponse) Descriptor ¶
func (*GetFreeTokenResponse) Descriptor() ([]byte, []int)
func (*GetFreeTokenResponse) GetTxId ¶
func (m *GetFreeTokenResponse) GetTxId() []byte
func (*GetFreeTokenResponse) ProtoMessage ¶
func (*GetFreeTokenResponse) ProtoMessage()
func (*GetFreeTokenResponse) Reset ¶
func (m *GetFreeTokenResponse) Reset()
func (*GetFreeTokenResponse) String ¶
func (m *GetFreeTokenResponse) String() string
func (*GetFreeTokenResponse) XXX_DiscardUnknown ¶
func (m *GetFreeTokenResponse) XXX_DiscardUnknown()
func (*GetFreeTokenResponse) XXX_Marshal ¶
func (m *GetFreeTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetFreeTokenResponse) XXX_Merge ¶
func (m *GetFreeTokenResponse) XXX_Merge(src proto.Message)
func (*GetFreeTokenResponse) XXX_Size ¶
func (m *GetFreeTokenResponse) XXX_Size() int
func (*GetFreeTokenResponse) XXX_Unmarshal ¶
func (m *GetFreeTokenResponse) XXX_Unmarshal(b []byte) error
type UnimplementedClientServiceServer ¶ added in v1.1.1
type UnimplementedClientServiceServer struct { }
UnimplementedClientServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedClientServiceServer) FetchAccountState ¶ added in v1.1.1
func (*UnimplementedClientServiceServer) FetchAccountState(ctx context.Context, req *FetchAccountStateRequest) (*FetchAccountStateResponse, error)
func (*UnimplementedClientServiceServer) GetFreeToken ¶ added in v1.1.1
func (*UnimplementedClientServiceServer) GetFreeToken(ctx context.Context, req *GetFreeTokenRequest) (*GetFreeTokenResponse, error)