message

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2020 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

func (*Block) GetHash added in v1.1.0

func (m *Block) GetHash() string

func (*Block) GetHeight added in v1.1.0

func (m *Block) GetHeight() uint64

func (*Block) GetMiner added in v1.1.0

func (m *Block) GetMiner() string

func (*Block) GetPrevBlockHash added in v1.1.0

func (m *Block) GetPrevBlockHash() string

func (*Block) GetRoot added in v1.1.0

func (m *Block) GetRoot() string

func (*Block) GetTimestamp added in v1.1.0

func (m *Block) GetTimestamp() int64

func (*Block) GetTxs added in v1.1.0

func (m *Block) GetTxs() []*Tx

func (*Block) GetVersion added in v1.1.0

func (m *Block) GetVersion() uint64

func (*Block) ProtoMessage added in v1.1.0

func (*Block) ProtoMessage()

func (*Block) Reset added in v1.1.0

func (m *Block) Reset()

func (*Block) String added in v1.1.0

func (m *Block) String() string

func (*Block) XXX_DiscardUnknown added in v1.1.0

func (m *Block) XXX_DiscardUnknown()

func (*Block) XXX_Marshal added in v1.1.0

func (m *Block) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Block) XXX_Merge added in v1.1.0

func (m *Block) XXX_Merge(src proto.Message)

func (*Block) XXX_Size added in v1.1.0

func (m *Block) XXX_Size() int

func (*Block) XXX_Unmarshal added in v1.1.0

func (m *Block) XXX_Unmarshal(b []byte) error

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

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) Descriptor() ([]byte, []int)

func (*HashMsg) GetCode added in v1.1.0

func (m *HashMsg) GetCode() int64

func (*HashMsg) GetHash added in v1.1.0

func (m *HashMsg) GetHash() string

func (*HashMsg) GetMessage added in v1.1.0

func (m *HashMsg) GetMessage() string

func (*HashMsg) ProtoMessage added in v1.1.0

func (*HashMsg) ProtoMessage()

func (*HashMsg) Reset added in v1.1.0

func (m *HashMsg) Reset()

func (*HashMsg) String added in v1.1.0

func (m *HashMsg) String() string

func (*HashMsg) XXX_DiscardUnknown added in v1.1.0

func (m *HashMsg) XXX_DiscardUnknown()

func (*HashMsg) XXX_Marshal added in v1.1.0

func (m *HashMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HashMsg) XXX_Merge added in v1.1.0

func (m *HashMsg) XXX_Merge(src proto.Message)

func (*HashMsg) XXX_Size added in v1.1.0

func (m *HashMsg) XXX_Size() int

func (*HashMsg) XXX_Unmarshal added in v1.1.0

func (m *HashMsg) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*ReqNonce) GetAddress

func (m *ReqNonce) GetAddress() string

func (*ReqNonce) ProtoMessage

func (*ReqNonce) ProtoMessage()

func (*ReqNonce) Reset

func (m *ReqNonce) Reset()

func (*ReqNonce) String

func (m *ReqNonce) String() string

func (*ReqNonce) XXX_DiscardUnknown

func (m *ReqNonce) XXX_DiscardUnknown()

func (*ReqNonce) XXX_Marshal

func (m *ReqNonce) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReqNonce) XXX_Merge

func (m *ReqNonce) XXX_Merge(src proto.Message)

func (*ReqNonce) XXX_Size

func (m *ReqNonce) XXX_Size() int

func (*ReqNonce) XXX_Unmarshal

func (m *ReqNonce) XXX_Unmarshal(b []byte) error

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 (*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 (*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) Descriptor() ([]byte, []int)

func (*RespBlock) GetCode added in v1.1.0

func (m *RespBlock) GetCode() int32

func (*RespBlock) GetData added in v1.1.0

func (m *RespBlock) GetData() *Block

func (*RespBlock) GetMessage added in v1.1.0

func (m *RespBlock) GetMessage() string

func (*RespBlock) ProtoMessage

func (*RespBlock) ProtoMessage()

func (*RespBlock) Reset

func (m *RespBlock) Reset()

func (*RespBlock) String

func (m *RespBlock) String() string

func (*RespBlock) XXX_DiscardUnknown

func (m *RespBlock) XXX_DiscardUnknown()

func (*RespBlock) XXX_Marshal

func (m *RespBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RespBlock) XXX_Merge

func (m *RespBlock) XXX_Merge(src proto.Message)

func (*RespBlock) XXX_Size

func (m *RespBlock) XXX_Size() int

func (*RespBlock) XXX_Unmarshal

func (m *RespBlock) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*Tx) GetAmount

func (m *Tx) GetAmount() uint64

func (*Tx) GetBlockNum added in v1.1.0

func (m *Tx) GetBlockNum() uint64

func (*Tx) GetFee added in v1.1.0

func (m *Tx) GetFee() uint64

func (*Tx) GetFrom

func (m *Tx) GetFrom() string

func (*Tx) GetHash

func (m *Tx) GetHash() string

func (*Tx) GetNonce

func (m *Tx) GetNonce() uint64

func (*Tx) GetRoot added in v1.1.0

func (m *Tx) GetRoot() []byte

func (*Tx) GetScript added in v1.1.0

func (m *Tx) GetScript() string

func (*Tx) GetSignature

func (m *Tx) GetSignature() string

func (*Tx) GetTag added in v1.1.0

func (m *Tx) GetTag() int32

func (*Tx) GetTime

func (m *Tx) GetTime() int64

func (*Tx) GetTo

func (m *Tx) GetTo() string

func (*Tx) ProtoMessage

func (*Tx) ProtoMessage()

func (*Tx) Reset

func (m *Tx) Reset()

func (*Tx) String

func (m *Tx) String() string

func (*Tx) XXX_DiscardUnknown

func (m *Tx) XXX_DiscardUnknown()

func (*Tx) XXX_Marshal

func (m *Tx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Tx) XXX_Merge

func (m *Tx) XXX_Merge(src proto.Message)

func (*Tx) XXX_Size

func (m *Tx) XXX_Size() int

func (*Tx) XXX_Unmarshal

func (m *Tx) XXX_Unmarshal(b []byte) error

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) GetBalanceToken added in v1.1.0

func (*UnimplementedGreeterServer) GetBlockByNum

func (*UnimplementedGreeterServer) GetMaxBlockNumber

func (*UnimplementedGreeterServer) GetTxByHash

func (*UnimplementedGreeterServer) SendSignedToken added in v1.1.0

func (*UnimplementedGreeterServer) SendSignedTransactions added in v1.1.0

func (*UnimplementedGreeterServer) SendTransactions added in v1.1.0

Jump to

Keyboard shortcuts

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