Documentation ¶
Index ¶
- func RegisterGreeterServer(s *grpc.Server, srv GreeterServer)
- type Block
- func (*Block) Descriptor() ([]byte, []int)
- func (m *Block) GetHash() string
- func (m *Block) GetHeight() uint64
- func (m *Block) GetMiner() string
- func (m *Block) GetPrevBlockHash() string
- func (m *Block) GetRoot() string
- func (m *Block) GetTimestamp() int64
- func (m *Block) GetTxs() []*Tx
- func (m *Block) GetVersion() uint64
- func (*Block) ProtoMessage()
- func (m *Block) Reset()
- func (m *Block) String() string
- func (m *Block) XXX_DiscardUnknown()
- func (m *Block) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Block) XXX_Merge(src proto.Message)
- func (m *Block) XXX_Size() int
- func (m *Block) XXX_Unmarshal(b []byte) error
- type GreeterClient
- type GreeterServer
- type HashMsg
- func (*HashMsg) Descriptor() ([]byte, []int)
- func (m *HashMsg) GetCode() int64
- func (m *HashMsg) GetHash() string
- func (m *HashMsg) GetMessage() string
- func (*HashMsg) ProtoMessage()
- func (m *HashMsg) Reset()
- func (m *HashMsg) String() string
- func (m *HashMsg) XXX_DiscardUnknown()
- func (m *HashMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HashMsg) XXX_Merge(src proto.Message)
- func (m *HashMsg) XXX_Size() int
- func (m *HashMsg) XXX_Unmarshal(b []byte) error
- type ReqBalance
- func (*ReqBalance) Descriptor() ([]byte, []int)
- func (m *ReqBalance) GetAddress() string
- func (*ReqBalance) ProtoMessage()
- func (m *ReqBalance) Reset()
- func (m *ReqBalance) String() string
- func (m *ReqBalance) XXX_DiscardUnknown()
- func (m *ReqBalance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReqBalance) XXX_Merge(src proto.Message)
- func (m *ReqBalance) XXX_Size() int
- func (m *ReqBalance) XXX_Unmarshal(b []byte) error
- type ReqBlockByNumber
- func (*ReqBlockByNumber) Descriptor() ([]byte, []int)
- func (m *ReqBlockByNumber) GetHeight() uint64
- func (*ReqBlockByNumber) ProtoMessage()
- func (m *ReqBlockByNumber) Reset()
- func (m *ReqBlockByNumber) String() string
- func (m *ReqBlockByNumber) XXX_DiscardUnknown()
- func (m *ReqBlockByNumber) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReqBlockByNumber) XXX_Merge(src proto.Message)
- func (m *ReqBlockByNumber) XXX_Size() int
- func (m *ReqBlockByNumber) XXX_Unmarshal(b []byte) error
- type ReqMaxBlockNumber
- func (*ReqMaxBlockNumber) Descriptor() ([]byte, []int)
- func (*ReqMaxBlockNumber) ProtoMessage()
- func (m *ReqMaxBlockNumber) Reset()
- func (m *ReqMaxBlockNumber) String() string
- func (m *ReqMaxBlockNumber) XXX_DiscardUnknown()
- func (m *ReqMaxBlockNumber) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReqMaxBlockNumber) XXX_Merge(src proto.Message)
- func (m *ReqMaxBlockNumber) XXX_Size() int
- func (m *ReqMaxBlockNumber) XXX_Unmarshal(b []byte) error
- type ReqNonce
- func (*ReqNonce) Descriptor() ([]byte, []int)
- func (m *ReqNonce) GetAddress() string
- func (*ReqNonce) ProtoMessage()
- func (m *ReqNonce) Reset()
- func (m *ReqNonce) String() string
- func (m *ReqNonce) XXX_DiscardUnknown()
- func (m *ReqNonce) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReqNonce) XXX_Merge(src proto.Message)
- func (m *ReqNonce) XXX_Size() int
- func (m *ReqNonce) XXX_Unmarshal(b []byte) error
- type ReqSignedTransaction
- func (*ReqSignedTransaction) Descriptor() ([]byte, []int)
- func (m *ReqSignedTransaction) GetAmount() uint64
- func (m *ReqSignedTransaction) GetFrom() string
- func (m *ReqSignedTransaction) GetHash() []byte
- func (m *ReqSignedTransaction) GetNonce() uint64
- func (m *ReqSignedTransaction) GetSignature() []byte
- func (m *ReqSignedTransaction) GetTime() int64
- func (m *ReqSignedTransaction) GetTo() string
- func (*ReqSignedTransaction) ProtoMessage()
- func (m *ReqSignedTransaction) Reset()
- func (m *ReqSignedTransaction) String() string
- func (m *ReqSignedTransaction) XXX_DiscardUnknown()
- func (m *ReqSignedTransaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReqSignedTransaction) XXX_Merge(src proto.Message)
- func (m *ReqSignedTransaction) XXX_Size() int
- func (m *ReqSignedTransaction) XXX_Unmarshal(b []byte) error
- type ReqSignedTransactions
- func (*ReqSignedTransactions) Descriptor() ([]byte, []int)
- func (m *ReqSignedTransactions) GetTxs() []*ReqSignedTransaction
- func (*ReqSignedTransactions) ProtoMessage()
- func (m *ReqSignedTransactions) Reset()
- func (m *ReqSignedTransactions) String() string
- func (m *ReqSignedTransactions) XXX_DiscardUnknown()
- func (m *ReqSignedTransactions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReqSignedTransactions) XXX_Merge(src proto.Message)
- func (m *ReqSignedTransactions) XXX_Size() int
- func (m *ReqSignedTransactions) XXX_Unmarshal(b []byte) error
- type ReqTokenBalance
- func (*ReqTokenBalance) Descriptor() ([]byte, []int)
- func (m *ReqTokenBalance) GetAddress() string
- func (m *ReqTokenBalance) GetSymbol() string
- func (*ReqTokenBalance) ProtoMessage()
- func (m *ReqTokenBalance) Reset()
- func (m *ReqTokenBalance) String() string
- func (m *ReqTokenBalance) XXX_DiscardUnknown()
- func (m *ReqTokenBalance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReqTokenBalance) XXX_Merge(src proto.Message)
- func (m *ReqTokenBalance) XXX_Size() int
- func (m *ReqTokenBalance) XXX_Unmarshal(b []byte) error
- type ReqTokenTransaction
- func (*ReqTokenTransaction) Descriptor() ([]byte, []int)
- func (m *ReqTokenTransaction) GetAmount() uint64
- func (m *ReqTokenTransaction) GetFee() uint64
- func (m *ReqTokenTransaction) GetFrom() string
- func (m *ReqTokenTransaction) GetHash() []byte
- func (m *ReqTokenTransaction) GetNonce() uint64
- func (m *ReqTokenTransaction) GetPriv() string
- func (m *ReqTokenTransaction) GetSignature() []byte
- func (m *ReqTokenTransaction) GetSymbol() string
- func (m *ReqTokenTransaction) GetTime() int64
- func (m *ReqTokenTransaction) GetTo() string
- func (m *ReqTokenTransaction) GetTokenAmount() uint64
- func (*ReqTokenTransaction) ProtoMessage()
- func (m *ReqTokenTransaction) Reset()
- func (m *ReqTokenTransaction) String() string
- func (m *ReqTokenTransaction) XXX_DiscardUnknown()
- func (m *ReqTokenTransaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReqTokenTransaction) XXX_Merge(src proto.Message)
- func (m *ReqTokenTransaction) XXX_Size() int
- func (m *ReqTokenTransaction) XXX_Unmarshal(b []byte) error
- type ReqTokenTransactions
- func (*ReqTokenTransactions) Descriptor() ([]byte, []int)
- func (m *ReqTokenTransactions) GetTxs() []*ReqTokenTransaction
- func (*ReqTokenTransactions) ProtoMessage()
- func (m *ReqTokenTransactions) Reset()
- func (m *ReqTokenTransactions) String() string
- func (m *ReqTokenTransactions) XXX_DiscardUnknown()
- func (m *ReqTokenTransactions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReqTokenTransactions) XXX_Merge(src proto.Message)
- func (m *ReqTokenTransactions) XXX_Size() int
- func (m *ReqTokenTransactions) XXX_Unmarshal(b []byte) error
- type ReqTransaction
- func (*ReqTransaction) Descriptor() ([]byte, []int)
- func (m *ReqTransaction) GetAmount() uint64
- func (m *ReqTransaction) GetFrom() string
- func (m *ReqTransaction) GetNonce() uint64
- func (m *ReqTransaction) GetPriv() string
- func (m *ReqTransaction) GetTo() string
- func (*ReqTransaction) ProtoMessage()
- func (m *ReqTransaction) Reset()
- func (m *ReqTransaction) String() string
- func (m *ReqTransaction) XXX_DiscardUnknown()
- func (m *ReqTransaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReqTransaction) XXX_Merge(src proto.Message)
- func (m *ReqTransaction) XXX_Size() int
- func (m *ReqTransaction) XXX_Unmarshal(b []byte) error
- type ReqTransactions
- func (*ReqTransactions) Descriptor() ([]byte, []int)
- func (m *ReqTransactions) GetTxs() []*ReqTransaction
- func (*ReqTransactions) ProtoMessage()
- func (m *ReqTransactions) Reset()
- func (m *ReqTransactions) String() string
- func (m *ReqTransactions) XXX_DiscardUnknown()
- func (m *ReqTransactions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReqTransactions) XXX_Merge(src proto.Message)
- func (m *ReqTransactions) XXX_Size() int
- func (m *ReqTransactions) XXX_Unmarshal(b []byte) error
- type ReqTxByHash
- func (*ReqTxByHash) Descriptor() ([]byte, []int)
- func (m *ReqTxByHash) GetHash() string
- func (*ReqTxByHash) ProtoMessage()
- func (m *ReqTxByHash) Reset()
- func (m *ReqTxByHash) String() string
- func (m *ReqTxByHash) XXX_DiscardUnknown()
- func (m *ReqTxByHash) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReqTxByHash) XXX_Merge(src proto.Message)
- func (m *ReqTxByHash) XXX_Size() int
- func (m *ReqTxByHash) XXX_Unmarshal(b []byte) error
- type ResBalance
- func (*ResBalance) Descriptor() ([]byte, []int)
- func (m *ResBalance) GetBalnce() uint64
- func (*ResBalance) ProtoMessage()
- func (m *ResBalance) Reset()
- func (m *ResBalance) String() string
- func (m *ResBalance) XXX_DiscardUnknown()
- func (m *ResBalance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ResBalance) XXX_Merge(src proto.Message)
- func (m *ResBalance) XXX_Size() int
- func (m *ResBalance) XXX_Unmarshal(b []byte) error
- type RespBlock
- func (*RespBlock) Descriptor() ([]byte, []int)
- func (m *RespBlock) GetCode() int32
- func (m *RespBlock) GetData() *Block
- func (m *RespBlock) GetMessage() string
- func (*RespBlock) ProtoMessage()
- func (m *RespBlock) Reset()
- func (m *RespBlock) String() string
- func (m *RespBlock) XXX_DiscardUnknown()
- func (m *RespBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RespBlock) XXX_Merge(src proto.Message)
- func (m *RespBlock) XXX_Size() int
- func (m *RespBlock) XXX_Unmarshal(b []byte) error
- type RespMaxBlockNumber
- func (*RespMaxBlockNumber) Descriptor() ([]byte, []int)
- func (m *RespMaxBlockNumber) GetMaxNumber() uint64
- func (*RespMaxBlockNumber) ProtoMessage()
- func (m *RespMaxBlockNumber) Reset()
- func (m *RespMaxBlockNumber) String() string
- func (m *RespMaxBlockNumber) XXX_DiscardUnknown()
- func (m *RespMaxBlockNumber) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RespMaxBlockNumber) XXX_Merge(src proto.Message)
- func (m *RespMaxBlockNumber) XXX_Size() int
- func (m *RespMaxBlockNumber) XXX_Unmarshal(b []byte) error
- type RespSignedTransactions
- func (*RespSignedTransactions) Descriptor() ([]byte, []int)
- func (m *RespSignedTransactions) GetHashList() []*HashMsg
- func (*RespSignedTransactions) ProtoMessage()
- func (m *RespSignedTransactions) Reset()
- func (m *RespSignedTransactions) String() string
- func (m *RespSignedTransactions) XXX_DiscardUnknown()
- func (m *RespSignedTransactions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RespSignedTransactions) XXX_Merge(src proto.Message)
- func (m *RespSignedTransactions) XXX_Size() int
- func (m *RespSignedTransactions) XXX_Unmarshal(b []byte) error
- type RespTokenBalance
- func (*RespTokenBalance) Descriptor() ([]byte, []int)
- func (m *RespTokenBalance) GetBalnce() uint64
- func (m *RespTokenBalance) GetDemic() uint64
- func (*RespTokenBalance) ProtoMessage()
- func (m *RespTokenBalance) Reset()
- func (m *RespTokenBalance) String() string
- func (m *RespTokenBalance) XXX_DiscardUnknown()
- func (m *RespTokenBalance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RespTokenBalance) XXX_Merge(src proto.Message)
- func (m *RespTokenBalance) XXX_Size() int
- func (m *RespTokenBalance) XXX_Unmarshal(b []byte) error
- type RespTransactions
- func (*RespTransactions) Descriptor() ([]byte, []int)
- func (m *RespTransactions) GetHashList() []*HashMsg
- func (*RespTransactions) ProtoMessage()
- func (m *RespTransactions) Reset()
- func (m *RespTransactions) String() string
- func (m *RespTransactions) XXX_DiscardUnknown()
- func (m *RespTransactions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RespTransactions) XXX_Merge(src proto.Message)
- func (m *RespTransactions) XXX_Size() int
- func (m *RespTransactions) XXX_Unmarshal(b []byte) error
- type RespTxByHash
- func (*RespTxByHash) Descriptor() ([]byte, []int)
- func (m *RespTxByHash) GetCode() int32
- func (m *RespTxByHash) GetData() *Tx
- func (m *RespTxByHash) GetMessage() string
- func (*RespTxByHash) ProtoMessage()
- func (m *RespTxByHash) Reset()
- func (m *RespTxByHash) String() string
- func (m *RespTxByHash) XXX_DiscardUnknown()
- func (m *RespTxByHash) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RespTxByHash) XXX_Merge(src proto.Message)
- func (m *RespTxByHash) XXX_Size() int
- func (m *RespTxByHash) XXX_Unmarshal(b []byte) error
- type ResposeNonce
- func (*ResposeNonce) Descriptor() ([]byte, []int)
- func (m *ResposeNonce) GetNonce() uint64
- func (*ResposeNonce) ProtoMessage()
- func (m *ResposeNonce) Reset()
- func (m *ResposeNonce) String() string
- func (m *ResposeNonce) XXX_DiscardUnknown()
- func (m *ResposeNonce) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ResposeNonce) XXX_Merge(src proto.Message)
- func (m *ResposeNonce) XXX_Size() int
- func (m *ResposeNonce) XXX_Unmarshal(b []byte) error
- type Tx
- func (*Tx) Descriptor() ([]byte, []int)
- func (m *Tx) GetAmount() uint64
- func (m *Tx) GetBlockNum() uint64
- func (m *Tx) GetFee() uint64
- func (m *Tx) GetFrom() string
- func (m *Tx) GetHash() string
- func (m *Tx) GetNonce() uint64
- func (m *Tx) GetRoot() []byte
- func (m *Tx) GetScript() string
- func (m *Tx) GetSignature() string
- func (m *Tx) GetTag() int32
- func (m *Tx) GetTime() int64
- func (m *Tx) GetTo() string
- func (*Tx) ProtoMessage()
- func (m *Tx) Reset()
- func (m *Tx) String() string
- func (m *Tx) XXX_DiscardUnknown()
- func (m *Tx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Tx) XXX_Merge(src proto.Message)
- func (m *Tx) XXX_Size() int
- func (m *Tx) XXX_Unmarshal(b []byte) error
- type UnimplementedGreeterServer
- func (*UnimplementedGreeterServer) GetAddressNonceAt(ctx context.Context, req *ReqNonce) (*ResposeNonce, error)
- func (*UnimplementedGreeterServer) GetBalance(ctx context.Context, req *ReqBalance) (*ResBalance, error)
- func (*UnimplementedGreeterServer) GetBalanceToken(ctx context.Context, req *ReqTokenBalance) (*RespTokenBalance, error)
- func (*UnimplementedGreeterServer) GetBlockByNum(ctx context.Context, req *ReqBlockByNumber) (*RespBlock, error)
- func (*UnimplementedGreeterServer) GetMaxBlockNumber(ctx context.Context, req *ReqMaxBlockNumber) (*RespMaxBlockNumber, error)
- func (*UnimplementedGreeterServer) GetTxByHash(ctx context.Context, req *ReqTxByHash) (*RespTxByHash, error)
- func (*UnimplementedGreeterServer) SendSignedToken(ctx context.Context, req *ReqTokenTransactions) (*RespSignedTransactions, error)
- func (*UnimplementedGreeterServer) SendSignedTransactions(ctx context.Context, req *ReqSignedTransactions) (*RespSignedTransactions, error)
- func (*UnimplementedGreeterServer) SendTransactions(ctx context.Context, req *ReqTransactions) (*RespTransactions, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterGreeterServer ¶
func RegisterGreeterServer(s *grpc.Server, srv GreeterServer)
Types ¶
type Block ¶ added in v1.1.0
type Block struct { Height uint64 `protobuf:"varint,1,opt,name=Height,proto3" json:"Height,omitempty"` PrevBlockHash string `protobuf:"bytes,2,opt,name=PrevBlockHash,proto3" json:"PrevBlockHash,omitempty"` Txs []*Tx `protobuf:"bytes,3,rep,name=Txs,proto3" json:"Txs,omitempty"` Root string `protobuf:"bytes,4,opt,name=Root,proto3" json:"Root,omitempty"` Version uint64 `protobuf:"varint,5,opt,name=Version,proto3" json:"Version,omitempty"` Timestamp int64 `protobuf:"varint,6,opt,name=Timestamp,proto3" json:"Timestamp,omitempty"` Hash string `protobuf:"bytes,7,opt,name=Hash,proto3" json:"Hash,omitempty"` Miner string `protobuf:"bytes,8,opt,name=Miner,proto3" json:"Miner,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Block) Descriptor ¶ added in v1.1.0
func (*Block) GetPrevBlockHash ¶ added in v1.1.0
func (*Block) GetTimestamp ¶ added in v1.1.0
func (*Block) GetVersion ¶ added in v1.1.0
func (*Block) ProtoMessage ¶ added in v1.1.0
func (*Block) ProtoMessage()
func (*Block) XXX_DiscardUnknown ¶ added in v1.1.0
func (m *Block) XXX_DiscardUnknown()
func (*Block) XXX_Marshal ¶ added in v1.1.0
func (*Block) XXX_Unmarshal ¶ added in v1.1.0
type GreeterClient ¶
type GreeterClient interface { GetBalance(ctx context.Context, in *ReqBalance, opts ...grpc.CallOption) (*ResBalance, error) GetBalanceToken(ctx context.Context, in *ReqTokenBalance, opts ...grpc.CallOption) (*RespTokenBalance, error) GetAddressNonceAt(ctx context.Context, in *ReqNonce, opts ...grpc.CallOption) (*ResposeNonce, error) GetTxByHash(ctx context.Context, in *ReqTxByHash, opts ...grpc.CallOption) (*RespTxByHash, error) GetMaxBlockNumber(ctx context.Context, in *ReqMaxBlockNumber, opts ...grpc.CallOption) (*RespMaxBlockNumber, error) GetBlockByNum(ctx context.Context, in *ReqBlockByNumber, opts ...grpc.CallOption) (*RespBlock, error) SendSignedTransactions(ctx context.Context, in *ReqSignedTransactions, opts ...grpc.CallOption) (*RespSignedTransactions, error) SendSignedToken(ctx context.Context, in *ReqTokenTransactions, opts ...grpc.CallOption) (*RespSignedTransactions, error) SendTransactions(ctx context.Context, in *ReqTransactions, opts ...grpc.CallOption) (*RespTransactions, error) }
GreeterClient is the client API for Greeter service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewGreeterClient ¶
func NewGreeterClient(cc grpc.ClientConnInterface) GreeterClient
type GreeterServer ¶
type GreeterServer interface { GetBalance(context.Context, *ReqBalance) (*ResBalance, error) GetBalanceToken(context.Context, *ReqTokenBalance) (*RespTokenBalance, error) GetAddressNonceAt(context.Context, *ReqNonce) (*ResposeNonce, error) GetTxByHash(context.Context, *ReqTxByHash) (*RespTxByHash, error) GetMaxBlockNumber(context.Context, *ReqMaxBlockNumber) (*RespMaxBlockNumber, error) GetBlockByNum(context.Context, *ReqBlockByNumber) (*RespBlock, error) SendSignedTransactions(context.Context, *ReqSignedTransactions) (*RespSignedTransactions, error) SendSignedToken(context.Context, *ReqTokenTransactions) (*RespSignedTransactions, error) SendTransactions(context.Context, *ReqTransactions) (*RespTransactions, error) }
GreeterServer is the server API for Greeter service.
type HashMsg ¶ added in v1.1.0
type HashMsg struct { Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` Hash string `protobuf:"bytes,3,opt,name=hash,proto3" json:"hash,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*HashMsg) Descriptor ¶ added in v1.1.0
func (*HashMsg) GetMessage ¶ added in v1.1.0
func (*HashMsg) ProtoMessage ¶ added in v1.1.0
func (*HashMsg) ProtoMessage()
func (*HashMsg) XXX_DiscardUnknown ¶ added in v1.1.0
func (m *HashMsg) XXX_DiscardUnknown()
func (*HashMsg) XXX_Marshal ¶ added in v1.1.0
func (*HashMsg) XXX_Unmarshal ¶ added in v1.1.0
type ReqBalance ¶
type ReqBalance struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ReqBalance) Descriptor ¶
func (*ReqBalance) Descriptor() ([]byte, []int)
func (*ReqBalance) GetAddress ¶
func (m *ReqBalance) GetAddress() string
func (*ReqBalance) ProtoMessage ¶
func (*ReqBalance) ProtoMessage()
func (*ReqBalance) Reset ¶
func (m *ReqBalance) Reset()
func (*ReqBalance) String ¶
func (m *ReqBalance) String() string
func (*ReqBalance) XXX_DiscardUnknown ¶
func (m *ReqBalance) XXX_DiscardUnknown()
func (*ReqBalance) XXX_Marshal ¶
func (m *ReqBalance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReqBalance) XXX_Merge ¶
func (m *ReqBalance) XXX_Merge(src proto.Message)
func (*ReqBalance) XXX_Size ¶
func (m *ReqBalance) XXX_Size() int
func (*ReqBalance) XXX_Unmarshal ¶
func (m *ReqBalance) XXX_Unmarshal(b []byte) error
type ReqBlockByNumber ¶
type ReqBlockByNumber struct { Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ReqBlockByNumber) Descriptor ¶
func (*ReqBlockByNumber) Descriptor() ([]byte, []int)
func (*ReqBlockByNumber) GetHeight ¶
func (m *ReqBlockByNumber) GetHeight() uint64
func (*ReqBlockByNumber) ProtoMessage ¶
func (*ReqBlockByNumber) ProtoMessage()
func (*ReqBlockByNumber) Reset ¶
func (m *ReqBlockByNumber) Reset()
func (*ReqBlockByNumber) String ¶
func (m *ReqBlockByNumber) String() string
func (*ReqBlockByNumber) XXX_DiscardUnknown ¶
func (m *ReqBlockByNumber) XXX_DiscardUnknown()
func (*ReqBlockByNumber) XXX_Marshal ¶
func (m *ReqBlockByNumber) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReqBlockByNumber) XXX_Merge ¶
func (m *ReqBlockByNumber) XXX_Merge(src proto.Message)
func (*ReqBlockByNumber) XXX_Size ¶
func (m *ReqBlockByNumber) XXX_Size() int
func (*ReqBlockByNumber) XXX_Unmarshal ¶
func (m *ReqBlockByNumber) XXX_Unmarshal(b []byte) error
type ReqMaxBlockNumber ¶
type ReqMaxBlockNumber struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ReqMaxBlockNumber) Descriptor ¶
func (*ReqMaxBlockNumber) Descriptor() ([]byte, []int)
func (*ReqMaxBlockNumber) ProtoMessage ¶
func (*ReqMaxBlockNumber) ProtoMessage()
func (*ReqMaxBlockNumber) Reset ¶
func (m *ReqMaxBlockNumber) Reset()
func (*ReqMaxBlockNumber) String ¶
func (m *ReqMaxBlockNumber) String() string
func (*ReqMaxBlockNumber) XXX_DiscardUnknown ¶
func (m *ReqMaxBlockNumber) XXX_DiscardUnknown()
func (*ReqMaxBlockNumber) XXX_Marshal ¶
func (m *ReqMaxBlockNumber) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReqMaxBlockNumber) XXX_Merge ¶
func (m *ReqMaxBlockNumber) XXX_Merge(src proto.Message)
func (*ReqMaxBlockNumber) XXX_Size ¶
func (m *ReqMaxBlockNumber) XXX_Size() int
func (*ReqMaxBlockNumber) XXX_Unmarshal ¶
func (m *ReqMaxBlockNumber) XXX_Unmarshal(b []byte) error
type ReqNonce ¶
type ReqNonce struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ReqNonce) Descriptor ¶
func (*ReqNonce) GetAddress ¶
func (*ReqNonce) ProtoMessage ¶
func (*ReqNonce) ProtoMessage()
func (*ReqNonce) XXX_DiscardUnknown ¶
func (m *ReqNonce) XXX_DiscardUnknown()
func (*ReqNonce) XXX_Marshal ¶
func (*ReqNonce) XXX_Unmarshal ¶
type ReqSignedTransaction ¶
type ReqSignedTransaction struct { From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` To string `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"` Amount uint64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"` Nonce uint64 `protobuf:"varint,4,opt,name=nonce,proto3" json:"nonce,omitempty"` Time int64 `protobuf:"varint,5,opt,name=time,proto3" json:"time,omitempty"` Hash []byte `protobuf:"bytes,6,opt,name=hash,proto3" json:"hash,omitempty"` Signature []byte `protobuf:"bytes,7,opt,name=signature,proto3" json:"signature,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ReqSignedTransaction) Descriptor ¶
func (*ReqSignedTransaction) Descriptor() ([]byte, []int)
func (*ReqSignedTransaction) GetAmount ¶
func (m *ReqSignedTransaction) GetAmount() uint64
func (*ReqSignedTransaction) GetFrom ¶
func (m *ReqSignedTransaction) GetFrom() string
func (*ReqSignedTransaction) GetHash ¶
func (m *ReqSignedTransaction) GetHash() []byte
func (*ReqSignedTransaction) GetNonce ¶
func (m *ReqSignedTransaction) GetNonce() uint64
func (*ReqSignedTransaction) GetSignature ¶
func (m *ReqSignedTransaction) GetSignature() []byte
func (*ReqSignedTransaction) GetTime ¶
func (m *ReqSignedTransaction) GetTime() int64
func (*ReqSignedTransaction) GetTo ¶
func (m *ReqSignedTransaction) GetTo() string
func (*ReqSignedTransaction) ProtoMessage ¶
func (*ReqSignedTransaction) ProtoMessage()
func (*ReqSignedTransaction) Reset ¶
func (m *ReqSignedTransaction) Reset()
func (*ReqSignedTransaction) String ¶
func (m *ReqSignedTransaction) String() string
func (*ReqSignedTransaction) XXX_DiscardUnknown ¶
func (m *ReqSignedTransaction) XXX_DiscardUnknown()
func (*ReqSignedTransaction) XXX_Marshal ¶
func (m *ReqSignedTransaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReqSignedTransaction) XXX_Merge ¶
func (m *ReqSignedTransaction) XXX_Merge(src proto.Message)
func (*ReqSignedTransaction) XXX_Size ¶
func (m *ReqSignedTransaction) XXX_Size() int
func (*ReqSignedTransaction) XXX_Unmarshal ¶
func (m *ReqSignedTransaction) XXX_Unmarshal(b []byte) error
type ReqSignedTransactions ¶ added in v1.1.0
type ReqSignedTransactions struct { Txs []*ReqSignedTransaction `protobuf:"bytes,1,rep,name=txs,proto3" json:"txs,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ReqSignedTransactions) Descriptor ¶ added in v1.1.0
func (*ReqSignedTransactions) Descriptor() ([]byte, []int)
func (*ReqSignedTransactions) GetTxs ¶ added in v1.1.0
func (m *ReqSignedTransactions) GetTxs() []*ReqSignedTransaction
func (*ReqSignedTransactions) ProtoMessage ¶ added in v1.1.0
func (*ReqSignedTransactions) ProtoMessage()
func (*ReqSignedTransactions) Reset ¶ added in v1.1.0
func (m *ReqSignedTransactions) Reset()
func (*ReqSignedTransactions) String ¶ added in v1.1.0
func (m *ReqSignedTransactions) String() string
func (*ReqSignedTransactions) XXX_DiscardUnknown ¶ added in v1.1.0
func (m *ReqSignedTransactions) XXX_DiscardUnknown()
func (*ReqSignedTransactions) XXX_Marshal ¶ added in v1.1.0
func (m *ReqSignedTransactions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReqSignedTransactions) XXX_Merge ¶ added in v1.1.0
func (m *ReqSignedTransactions) XXX_Merge(src proto.Message)
func (*ReqSignedTransactions) XXX_Size ¶ added in v1.1.0
func (m *ReqSignedTransactions) XXX_Size() int
func (*ReqSignedTransactions) XXX_Unmarshal ¶ added in v1.1.0
func (m *ReqSignedTransactions) XXX_Unmarshal(b []byte) error
type ReqTokenBalance ¶ added in v1.1.0
type ReqTokenBalance struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Symbol string `protobuf:"bytes,2,opt,name=symbol,proto3" json:"symbol,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ReqTokenBalance) Descriptor ¶ added in v1.1.0
func (*ReqTokenBalance) Descriptor() ([]byte, []int)
func (*ReqTokenBalance) GetAddress ¶ added in v1.1.0
func (m *ReqTokenBalance) GetAddress() string
func (*ReqTokenBalance) GetSymbol ¶ added in v1.1.0
func (m *ReqTokenBalance) GetSymbol() string
func (*ReqTokenBalance) ProtoMessage ¶ added in v1.1.0
func (*ReqTokenBalance) ProtoMessage()
func (*ReqTokenBalance) Reset ¶ added in v1.1.0
func (m *ReqTokenBalance) Reset()
func (*ReqTokenBalance) String ¶ added in v1.1.0
func (m *ReqTokenBalance) String() string
func (*ReqTokenBalance) XXX_DiscardUnknown ¶ added in v1.1.0
func (m *ReqTokenBalance) XXX_DiscardUnknown()
func (*ReqTokenBalance) XXX_Marshal ¶ added in v1.1.0
func (m *ReqTokenBalance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReqTokenBalance) XXX_Merge ¶ added in v1.1.0
func (m *ReqTokenBalance) XXX_Merge(src proto.Message)
func (*ReqTokenBalance) XXX_Size ¶ added in v1.1.0
func (m *ReqTokenBalance) XXX_Size() int
func (*ReqTokenBalance) XXX_Unmarshal ¶ added in v1.1.0
func (m *ReqTokenBalance) XXX_Unmarshal(b []byte) error
type ReqTokenTransaction ¶ added in v1.1.0
type ReqTokenTransaction struct { From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` To string `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"` Amount uint64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"` Nonce uint64 `protobuf:"varint,4,opt,name=nonce,proto3" json:"nonce,omitempty"` Priv string `protobuf:"bytes,5,opt,name=priv,proto3" json:"priv,omitempty"` TokenAmount uint64 `protobuf:"varint,6,opt,name=tokenAmount,proto3" json:"tokenAmount,omitempty"` Symbol string `protobuf:"bytes,7,opt,name=symbol,proto3" json:"symbol,omitempty"` Fee uint64 `protobuf:"varint,8,opt,name=fee,proto3" json:"fee,omitempty"` Time int64 `protobuf:"varint,9,opt,name=time,proto3" json:"time,omitempty"` Hash []byte `protobuf:"bytes,10,opt,name=hash,proto3" json:"hash,omitempty"` Signature []byte `protobuf:"bytes,11,opt,name=signature,proto3" json:"signature,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ReqTokenTransaction) Descriptor ¶ added in v1.1.0
func (*ReqTokenTransaction) Descriptor() ([]byte, []int)
func (*ReqTokenTransaction) GetAmount ¶ added in v1.1.0
func (m *ReqTokenTransaction) GetAmount() uint64
func (*ReqTokenTransaction) GetFee ¶ added in v1.1.0
func (m *ReqTokenTransaction) GetFee() uint64
func (*ReqTokenTransaction) GetFrom ¶ added in v1.1.0
func (m *ReqTokenTransaction) GetFrom() string
func (*ReqTokenTransaction) GetHash ¶ added in v1.1.0
func (m *ReqTokenTransaction) GetHash() []byte
func (*ReqTokenTransaction) GetNonce ¶ added in v1.1.0
func (m *ReqTokenTransaction) GetNonce() uint64
func (*ReqTokenTransaction) GetPriv ¶ added in v1.1.0
func (m *ReqTokenTransaction) GetPriv() string
func (*ReqTokenTransaction) GetSignature ¶ added in v1.1.0
func (m *ReqTokenTransaction) GetSignature() []byte
func (*ReqTokenTransaction) GetSymbol ¶ added in v1.1.0
func (m *ReqTokenTransaction) GetSymbol() string
func (*ReqTokenTransaction) GetTime ¶ added in v1.1.0
func (m *ReqTokenTransaction) GetTime() int64
func (*ReqTokenTransaction) GetTo ¶ added in v1.1.0
func (m *ReqTokenTransaction) GetTo() string
func (*ReqTokenTransaction) GetTokenAmount ¶ added in v1.1.0
func (m *ReqTokenTransaction) GetTokenAmount() uint64
func (*ReqTokenTransaction) ProtoMessage ¶ added in v1.1.0
func (*ReqTokenTransaction) ProtoMessage()
func (*ReqTokenTransaction) Reset ¶ added in v1.1.0
func (m *ReqTokenTransaction) Reset()
func (*ReqTokenTransaction) String ¶ added in v1.1.0
func (m *ReqTokenTransaction) String() string
func (*ReqTokenTransaction) XXX_DiscardUnknown ¶ added in v1.1.0
func (m *ReqTokenTransaction) XXX_DiscardUnknown()
func (*ReqTokenTransaction) XXX_Marshal ¶ added in v1.1.0
func (m *ReqTokenTransaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReqTokenTransaction) XXX_Merge ¶ added in v1.1.0
func (m *ReqTokenTransaction) XXX_Merge(src proto.Message)
func (*ReqTokenTransaction) XXX_Size ¶ added in v1.1.0
func (m *ReqTokenTransaction) XXX_Size() int
func (*ReqTokenTransaction) XXX_Unmarshal ¶ added in v1.1.0
func (m *ReqTokenTransaction) XXX_Unmarshal(b []byte) error
type ReqTokenTransactions ¶ added in v1.1.0
type ReqTokenTransactions struct { Txs []*ReqTokenTransaction `protobuf:"bytes,1,rep,name=txs,proto3" json:"txs,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ReqTokenTransactions) Descriptor ¶ added in v1.1.0
func (*ReqTokenTransactions) Descriptor() ([]byte, []int)
func (*ReqTokenTransactions) GetTxs ¶ added in v1.1.0
func (m *ReqTokenTransactions) GetTxs() []*ReqTokenTransaction
func (*ReqTokenTransactions) ProtoMessage ¶ added in v1.1.0
func (*ReqTokenTransactions) ProtoMessage()
func (*ReqTokenTransactions) Reset ¶ added in v1.1.0
func (m *ReqTokenTransactions) Reset()
func (*ReqTokenTransactions) String ¶ added in v1.1.0
func (m *ReqTokenTransactions) String() string
func (*ReqTokenTransactions) XXX_DiscardUnknown ¶ added in v1.1.0
func (m *ReqTokenTransactions) XXX_DiscardUnknown()
func (*ReqTokenTransactions) XXX_Marshal ¶ added in v1.1.0
func (m *ReqTokenTransactions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReqTokenTransactions) XXX_Merge ¶ added in v1.1.0
func (m *ReqTokenTransactions) XXX_Merge(src proto.Message)
func (*ReqTokenTransactions) XXX_Size ¶ added in v1.1.0
func (m *ReqTokenTransactions) XXX_Size() int
func (*ReqTokenTransactions) XXX_Unmarshal ¶ added in v1.1.0
func (m *ReqTokenTransactions) XXX_Unmarshal(b []byte) error
type ReqTransaction ¶
type ReqTransaction struct { From string `protobuf:"bytes,1,opt,name=From,proto3" json:"From,omitempty"` To string `protobuf:"bytes,2,opt,name=To,proto3" json:"To,omitempty"` Amount uint64 `protobuf:"varint,3,opt,name=Amount,proto3" json:"Amount,omitempty"` Nonce uint64 `protobuf:"varint,4,opt,name=Nonce,proto3" json:"Nonce,omitempty"` Priv string `protobuf:"bytes,5,opt,name=Priv,proto3" json:"Priv,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ReqTransaction) Descriptor ¶
func (*ReqTransaction) Descriptor() ([]byte, []int)
func (*ReqTransaction) GetAmount ¶
func (m *ReqTransaction) GetAmount() uint64
func (*ReqTransaction) GetFrom ¶
func (m *ReqTransaction) GetFrom() string
func (*ReqTransaction) GetNonce ¶
func (m *ReqTransaction) GetNonce() uint64
func (*ReqTransaction) GetPriv ¶
func (m *ReqTransaction) GetPriv() string
func (*ReqTransaction) GetTo ¶
func (m *ReqTransaction) GetTo() string
func (*ReqTransaction) ProtoMessage ¶
func (*ReqTransaction) ProtoMessage()
func (*ReqTransaction) Reset ¶
func (m *ReqTransaction) Reset()
func (*ReqTransaction) String ¶
func (m *ReqTransaction) String() string
func (*ReqTransaction) XXX_DiscardUnknown ¶
func (m *ReqTransaction) XXX_DiscardUnknown()
func (*ReqTransaction) XXX_Marshal ¶
func (m *ReqTransaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReqTransaction) XXX_Merge ¶
func (m *ReqTransaction) XXX_Merge(src proto.Message)
func (*ReqTransaction) XXX_Size ¶
func (m *ReqTransaction) XXX_Size() int
func (*ReqTransaction) XXX_Unmarshal ¶
func (m *ReqTransaction) XXX_Unmarshal(b []byte) error
type ReqTransactions ¶ added in v1.1.0
type ReqTransactions struct { Txs []*ReqTransaction `protobuf:"bytes,1,rep,name=txs,proto3" json:"txs,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ReqTransactions) Descriptor ¶ added in v1.1.0
func (*ReqTransactions) Descriptor() ([]byte, []int)
func (*ReqTransactions) GetTxs ¶ added in v1.1.0
func (m *ReqTransactions) GetTxs() []*ReqTransaction
func (*ReqTransactions) ProtoMessage ¶ added in v1.1.0
func (*ReqTransactions) ProtoMessage()
func (*ReqTransactions) Reset ¶ added in v1.1.0
func (m *ReqTransactions) Reset()
func (*ReqTransactions) String ¶ added in v1.1.0
func (m *ReqTransactions) String() string
func (*ReqTransactions) XXX_DiscardUnknown ¶ added in v1.1.0
func (m *ReqTransactions) XXX_DiscardUnknown()
func (*ReqTransactions) XXX_Marshal ¶ added in v1.1.0
func (m *ReqTransactions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReqTransactions) XXX_Merge ¶ added in v1.1.0
func (m *ReqTransactions) XXX_Merge(src proto.Message)
func (*ReqTransactions) XXX_Size ¶ added in v1.1.0
func (m *ReqTransactions) XXX_Size() int
func (*ReqTransactions) XXX_Unmarshal ¶ added in v1.1.0
func (m *ReqTransactions) XXX_Unmarshal(b []byte) error
type ReqTxByHash ¶
type ReqTxByHash struct { Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ReqTxByHash) Descriptor ¶
func (*ReqTxByHash) Descriptor() ([]byte, []int)
func (*ReqTxByHash) GetHash ¶
func (m *ReqTxByHash) GetHash() string
func (*ReqTxByHash) ProtoMessage ¶
func (*ReqTxByHash) ProtoMessage()
func (*ReqTxByHash) Reset ¶
func (m *ReqTxByHash) Reset()
func (*ReqTxByHash) String ¶
func (m *ReqTxByHash) String() string
func (*ReqTxByHash) XXX_DiscardUnknown ¶
func (m *ReqTxByHash) XXX_DiscardUnknown()
func (*ReqTxByHash) XXX_Marshal ¶
func (m *ReqTxByHash) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReqTxByHash) XXX_Merge ¶
func (m *ReqTxByHash) XXX_Merge(src proto.Message)
func (*ReqTxByHash) XXX_Size ¶
func (m *ReqTxByHash) XXX_Size() int
func (*ReqTxByHash) XXX_Unmarshal ¶
func (m *ReqTxByHash) XXX_Unmarshal(b []byte) error
type ResBalance ¶
type ResBalance struct { Balnce uint64 `protobuf:"varint,1,opt,name=balnce,proto3" json:"balnce,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ResBalance) Descriptor ¶
func (*ResBalance) Descriptor() ([]byte, []int)
func (*ResBalance) GetBalnce ¶
func (m *ResBalance) GetBalnce() uint64
func (*ResBalance) ProtoMessage ¶
func (*ResBalance) ProtoMessage()
func (*ResBalance) Reset ¶
func (m *ResBalance) Reset()
func (*ResBalance) String ¶
func (m *ResBalance) String() string
func (*ResBalance) XXX_DiscardUnknown ¶
func (m *ResBalance) XXX_DiscardUnknown()
func (*ResBalance) XXX_Marshal ¶
func (m *ResBalance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ResBalance) XXX_Merge ¶
func (m *ResBalance) XXX_Merge(src proto.Message)
func (*ResBalance) XXX_Size ¶
func (m *ResBalance) XXX_Size() int
func (*ResBalance) XXX_Unmarshal ¶
func (m *ResBalance) XXX_Unmarshal(b []byte) error
type RespBlock ¶
type RespBlock struct { Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` Data *Block `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RespBlock) Descriptor ¶
func (*RespBlock) GetMessage ¶ added in v1.1.0
func (*RespBlock) ProtoMessage ¶
func (*RespBlock) ProtoMessage()
func (*RespBlock) XXX_DiscardUnknown ¶
func (m *RespBlock) XXX_DiscardUnknown()
func (*RespBlock) XXX_Marshal ¶
func (*RespBlock) XXX_Unmarshal ¶
type RespMaxBlockNumber ¶
type RespMaxBlockNumber struct { MaxNumber uint64 `protobuf:"varint,1,opt,name=maxNumber,proto3" json:"maxNumber,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RespMaxBlockNumber) Descriptor ¶
func (*RespMaxBlockNumber) Descriptor() ([]byte, []int)
func (*RespMaxBlockNumber) GetMaxNumber ¶
func (m *RespMaxBlockNumber) GetMaxNumber() uint64
func (*RespMaxBlockNumber) ProtoMessage ¶
func (*RespMaxBlockNumber) ProtoMessage()
func (*RespMaxBlockNumber) Reset ¶
func (m *RespMaxBlockNumber) Reset()
func (*RespMaxBlockNumber) String ¶
func (m *RespMaxBlockNumber) String() string
func (*RespMaxBlockNumber) XXX_DiscardUnknown ¶
func (m *RespMaxBlockNumber) XXX_DiscardUnknown()
func (*RespMaxBlockNumber) XXX_Marshal ¶
func (m *RespMaxBlockNumber) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RespMaxBlockNumber) XXX_Merge ¶
func (m *RespMaxBlockNumber) XXX_Merge(src proto.Message)
func (*RespMaxBlockNumber) XXX_Size ¶
func (m *RespMaxBlockNumber) XXX_Size() int
func (*RespMaxBlockNumber) XXX_Unmarshal ¶
func (m *RespMaxBlockNumber) XXX_Unmarshal(b []byte) error
type RespSignedTransactions ¶ added in v1.1.0
type RespSignedTransactions struct { HashList []*HashMsg `protobuf:"bytes,1,rep,name=hashList,proto3" json:"hashList,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RespSignedTransactions) Descriptor ¶ added in v1.1.0
func (*RespSignedTransactions) Descriptor() ([]byte, []int)
func (*RespSignedTransactions) GetHashList ¶ added in v1.1.0
func (m *RespSignedTransactions) GetHashList() []*HashMsg
func (*RespSignedTransactions) ProtoMessage ¶ added in v1.1.0
func (*RespSignedTransactions) ProtoMessage()
func (*RespSignedTransactions) Reset ¶ added in v1.1.0
func (m *RespSignedTransactions) Reset()
func (*RespSignedTransactions) String ¶ added in v1.1.0
func (m *RespSignedTransactions) String() string
func (*RespSignedTransactions) XXX_DiscardUnknown ¶ added in v1.1.0
func (m *RespSignedTransactions) XXX_DiscardUnknown()
func (*RespSignedTransactions) XXX_Marshal ¶ added in v1.1.0
func (m *RespSignedTransactions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RespSignedTransactions) XXX_Merge ¶ added in v1.1.0
func (m *RespSignedTransactions) XXX_Merge(src proto.Message)
func (*RespSignedTransactions) XXX_Size ¶ added in v1.1.0
func (m *RespSignedTransactions) XXX_Size() int
func (*RespSignedTransactions) XXX_Unmarshal ¶ added in v1.1.0
func (m *RespSignedTransactions) XXX_Unmarshal(b []byte) error
type RespTokenBalance ¶ added in v1.1.0
type RespTokenBalance struct { Balnce uint64 `protobuf:"varint,1,opt,name=balnce,proto3" json:"balnce,omitempty"` Demic uint64 `protobuf:"varint,2,opt,name=demic,proto3" json:"demic,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RespTokenBalance) Descriptor ¶ added in v1.1.0
func (*RespTokenBalance) Descriptor() ([]byte, []int)
func (*RespTokenBalance) GetBalnce ¶ added in v1.1.0
func (m *RespTokenBalance) GetBalnce() uint64
func (*RespTokenBalance) GetDemic ¶ added in v1.1.0
func (m *RespTokenBalance) GetDemic() uint64
func (*RespTokenBalance) ProtoMessage ¶ added in v1.1.0
func (*RespTokenBalance) ProtoMessage()
func (*RespTokenBalance) Reset ¶ added in v1.1.0
func (m *RespTokenBalance) Reset()
func (*RespTokenBalance) String ¶ added in v1.1.0
func (m *RespTokenBalance) String() string
func (*RespTokenBalance) XXX_DiscardUnknown ¶ added in v1.1.0
func (m *RespTokenBalance) XXX_DiscardUnknown()
func (*RespTokenBalance) XXX_Marshal ¶ added in v1.1.0
func (m *RespTokenBalance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RespTokenBalance) XXX_Merge ¶ added in v1.1.0
func (m *RespTokenBalance) XXX_Merge(src proto.Message)
func (*RespTokenBalance) XXX_Size ¶ added in v1.1.0
func (m *RespTokenBalance) XXX_Size() int
func (*RespTokenBalance) XXX_Unmarshal ¶ added in v1.1.0
func (m *RespTokenBalance) XXX_Unmarshal(b []byte) error
type RespTransactions ¶ added in v1.1.0
type RespTransactions struct { HashList []*HashMsg `protobuf:"bytes,1,rep,name=hashList,proto3" json:"hashList,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RespTransactions) Descriptor ¶ added in v1.1.0
func (*RespTransactions) Descriptor() ([]byte, []int)
func (*RespTransactions) GetHashList ¶ added in v1.1.0
func (m *RespTransactions) GetHashList() []*HashMsg
func (*RespTransactions) ProtoMessage ¶ added in v1.1.0
func (*RespTransactions) ProtoMessage()
func (*RespTransactions) Reset ¶ added in v1.1.0
func (m *RespTransactions) Reset()
func (*RespTransactions) String ¶ added in v1.1.0
func (m *RespTransactions) String() string
func (*RespTransactions) XXX_DiscardUnknown ¶ added in v1.1.0
func (m *RespTransactions) XXX_DiscardUnknown()
func (*RespTransactions) XXX_Marshal ¶ added in v1.1.0
func (m *RespTransactions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RespTransactions) XXX_Merge ¶ added in v1.1.0
func (m *RespTransactions) XXX_Merge(src proto.Message)
func (*RespTransactions) XXX_Size ¶ added in v1.1.0
func (m *RespTransactions) XXX_Size() int
func (*RespTransactions) XXX_Unmarshal ¶ added in v1.1.0
func (m *RespTransactions) XXX_Unmarshal(b []byte) error
type RespTxByHash ¶ added in v1.1.0
type RespTxByHash struct { Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` Data *Tx `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RespTxByHash) Descriptor ¶ added in v1.1.0
func (*RespTxByHash) Descriptor() ([]byte, []int)
func (*RespTxByHash) GetCode ¶ added in v1.1.0
func (m *RespTxByHash) GetCode() int32
func (*RespTxByHash) GetData ¶ added in v1.1.0
func (m *RespTxByHash) GetData() *Tx
func (*RespTxByHash) GetMessage ¶ added in v1.1.0
func (m *RespTxByHash) GetMessage() string
func (*RespTxByHash) ProtoMessage ¶ added in v1.1.0
func (*RespTxByHash) ProtoMessage()
func (*RespTxByHash) Reset ¶ added in v1.1.0
func (m *RespTxByHash) Reset()
func (*RespTxByHash) String ¶ added in v1.1.0
func (m *RespTxByHash) String() string
func (*RespTxByHash) XXX_DiscardUnknown ¶ added in v1.1.0
func (m *RespTxByHash) XXX_DiscardUnknown()
func (*RespTxByHash) XXX_Marshal ¶ added in v1.1.0
func (m *RespTxByHash) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RespTxByHash) XXX_Merge ¶ added in v1.1.0
func (m *RespTxByHash) XXX_Merge(src proto.Message)
func (*RespTxByHash) XXX_Size ¶ added in v1.1.0
func (m *RespTxByHash) XXX_Size() int
func (*RespTxByHash) XXX_Unmarshal ¶ added in v1.1.0
func (m *RespTxByHash) XXX_Unmarshal(b []byte) error
type ResposeNonce ¶
type ResposeNonce struct { Nonce uint64 `protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ResposeNonce) Descriptor ¶
func (*ResposeNonce) Descriptor() ([]byte, []int)
func (*ResposeNonce) GetNonce ¶
func (m *ResposeNonce) GetNonce() uint64
func (*ResposeNonce) ProtoMessage ¶
func (*ResposeNonce) ProtoMessage()
func (*ResposeNonce) Reset ¶
func (m *ResposeNonce) Reset()
func (*ResposeNonce) String ¶
func (m *ResposeNonce) String() string
func (*ResposeNonce) XXX_DiscardUnknown ¶
func (m *ResposeNonce) XXX_DiscardUnknown()
func (*ResposeNonce) XXX_Marshal ¶
func (m *ResposeNonce) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ResposeNonce) XXX_Merge ¶
func (m *ResposeNonce) XXX_Merge(src proto.Message)
func (*ResposeNonce) XXX_Size ¶
func (m *ResposeNonce) XXX_Size() int
func (*ResposeNonce) XXX_Unmarshal ¶
func (m *ResposeNonce) XXX_Unmarshal(b []byte) error
type Tx ¶
type Tx struct { Nonce uint64 `protobuf:"varint,1,opt,name=Nonce,proto3" json:"Nonce,omitempty"` BlockNum uint64 `protobuf:"varint,2,opt,name=BlockNum,proto3" json:"BlockNum,omitempty"` Amount uint64 `protobuf:"varint,3,opt,name=Amount,proto3" json:"Amount,omitempty"` From string `protobuf:"bytes,4,opt,name=From,proto3" json:"From,omitempty"` To string `protobuf:"bytes,5,opt,name=To,proto3" json:"To,omitempty"` Hash string `protobuf:"bytes,6,opt,name=Hash,proto3" json:"Hash,omitempty"` Signature string `protobuf:"bytes,7,opt,name=Signature,proto3" json:"Signature,omitempty"` Time int64 `protobuf:"varint,8,opt,name=Time,proto3" json:"Time,omitempty"` Script string `protobuf:"bytes,9,opt,name=Script,proto3" json:"Script,omitempty"` Fee uint64 `protobuf:"varint,10,opt,name=Fee,proto3" json:"Fee,omitempty"` Root []byte `protobuf:"bytes,11,opt,name=Root,proto3" json:"Root,omitempty"` Tag int32 `protobuf:"varint,12,opt,name=Tag,proto3" json:"Tag,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Tx) Descriptor ¶
func (*Tx) GetBlockNum ¶ added in v1.1.0
func (*Tx) GetSignature ¶
func (*Tx) ProtoMessage ¶
func (*Tx) ProtoMessage()
func (*Tx) XXX_DiscardUnknown ¶
func (m *Tx) XXX_DiscardUnknown()
func (*Tx) XXX_Unmarshal ¶
type UnimplementedGreeterServer ¶
type UnimplementedGreeterServer struct { }
UnimplementedGreeterServer can be embedded to have forward compatible implementations.
func (*UnimplementedGreeterServer) GetAddressNonceAt ¶
func (*UnimplementedGreeterServer) GetAddressNonceAt(ctx context.Context, req *ReqNonce) (*ResposeNonce, error)
func (*UnimplementedGreeterServer) GetBalance ¶
func (*UnimplementedGreeterServer) GetBalance(ctx context.Context, req *ReqBalance) (*ResBalance, error)
func (*UnimplementedGreeterServer) GetBalanceToken ¶ added in v1.1.0
func (*UnimplementedGreeterServer) GetBalanceToken(ctx context.Context, req *ReqTokenBalance) (*RespTokenBalance, error)
func (*UnimplementedGreeterServer) GetBlockByNum ¶
func (*UnimplementedGreeterServer) GetBlockByNum(ctx context.Context, req *ReqBlockByNumber) (*RespBlock, error)
func (*UnimplementedGreeterServer) GetMaxBlockNumber ¶
func (*UnimplementedGreeterServer) GetMaxBlockNumber(ctx context.Context, req *ReqMaxBlockNumber) (*RespMaxBlockNumber, error)
func (*UnimplementedGreeterServer) GetTxByHash ¶
func (*UnimplementedGreeterServer) GetTxByHash(ctx context.Context, req *ReqTxByHash) (*RespTxByHash, error)
func (*UnimplementedGreeterServer) SendSignedToken ¶ added in v1.1.0
func (*UnimplementedGreeterServer) SendSignedToken(ctx context.Context, req *ReqTokenTransactions) (*RespSignedTransactions, error)
func (*UnimplementedGreeterServer) SendSignedTransactions ¶ added in v1.1.0
func (*UnimplementedGreeterServer) SendSignedTransactions(ctx context.Context, req *ReqSignedTransactions) (*RespSignedTransactions, error)
func (*UnimplementedGreeterServer) SendTransactions ¶ added in v1.1.0
func (*UnimplementedGreeterServer) SendTransactions(ctx context.Context, req *ReqTransactions) (*RespTransactions, error)
Click to show internal directories.
Click to hide internal directories.