rpcpb

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: May 25, 2019 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterAdminServiceServer

func RegisterAdminServiceServer(s *grpc.Server, srv AdminServiceServer)

func RegisterApiServiceServer

func RegisterApiServiceServer(s *grpc.Server, srv ApiServiceServer)

Types

type AccountsResponse

type AccountsResponse struct {
	// account address list
	Addresses            []string `protobuf:"bytes,1,rep,name=addresses,proto3" json:"addresses,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AccountsResponse) Descriptor

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

func (*AccountsResponse) GetAddresses

func (m *AccountsResponse) GetAddresses() []string

func (*AccountsResponse) ProtoMessage

func (*AccountsResponse) ProtoMessage()

func (*AccountsResponse) Reset

func (m *AccountsResponse) Reset()

func (*AccountsResponse) String

func (m *AccountsResponse) String() string

func (*AccountsResponse) XXX_DiscardUnknown

func (m *AccountsResponse) XXX_DiscardUnknown()

func (*AccountsResponse) XXX_Marshal

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

func (*AccountsResponse) XXX_Merge

func (dst *AccountsResponse) XXX_Merge(src proto.Message)

func (*AccountsResponse) XXX_Size

func (m *AccountsResponse) XXX_Size() int

func (*AccountsResponse) XXX_Unmarshal

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

type AdminServiceClient

type AdminServiceClient interface {
	Accounts(ctx context.Context, in *NonParamsRequest, opts ...grpc.CallOption) (*AccountsResponse, error)
	NewAccount(ctx context.Context, in *NewAccountRequest, opts ...grpc.CallOption) (*NewAccountResponse, error)
	UnlockAccount(ctx context.Context, in *UnlockAccountRequest, opts ...grpc.CallOption) (*UnlockAccountResponse, error)
	LockAccount(ctx context.Context, in *LockAccountRequest, opts ...grpc.CallOption) (*LockAccountResponse, error)
	SendTransaction(ctx context.Context, in *SendTransactionRequest, opts ...grpc.CallOption) (*SendTransactionResponse, error)
}

AdminServiceClient is the client API for AdminService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewAdminServiceClient

func NewAdminServiceClient(cc *grpc.ClientConn) AdminServiceClient

type AdminServiceServer

AdminServiceServer is the server API for AdminService service.

type ApiServiceClient

type ApiServiceClient interface {
	NodeInfo(ctx context.Context, in *NonParamsRequest, opts ...grpc.CallOption) (*NodeInfoResponse, error)
	GetBlockByHash(ctx context.Context, in *GetBlockByHashRequest, opts ...grpc.CallOption) (*BlockResponse, error)
	GetBlockByHeight(ctx context.Context, in *GetBlockByHeightRequest, opts ...grpc.CallOption) (*BlockResponse, error)
	GetLastBlock(ctx context.Context, in *GetLastBlockRequest, opts ...grpc.CallOption) (*GetLastBlockResponse, error)
	GetTxByHash(ctx context.Context, in *GetTxByHashRequest, opts ...grpc.CallOption) (*TransactionResponse, error)
	GetAccountState(ctx context.Context, in *GetAccountStateRequest, opts ...grpc.CallOption) (*GetAccountStateResponse, error)
}

ApiServiceClient is the client API for ApiService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewApiServiceClient

func NewApiServiceClient(cc *grpc.ClientConn) ApiServiceClient

type ApiServiceServer

ApiServiceServer is the server API for ApiService service.

type BlockResponse

type BlockResponse struct {
	// block hash hex string
	Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
	// block parent hash
	ParentHash string `protobuf:"bytes,2,opt,name=parent_hash,json=parentHash,proto3" json:"parent_hash,omitempty"`
	// block height
	Height uint64 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
	// block timestamp
	Timestamp uint64 `protobuf:"varint,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// block chain id
	ChainId uint32 `protobuf:"varint,5,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	// consensus root hex string
	ConsensusRoot string `protobuf:"bytes,6,opt,name=consensus_root,json=consensusRoot,proto3" json:"consensus_root,omitempty"`
	// state root hex string
	StateRoot string `protobuf:"bytes,7,opt,name=state_root,json=stateRoot,proto3" json:"state_root,omitempty"`
	// transactions root hex string
	TxsRoot string `protobuf:"bytes,8,opt,name=txs_root,json=txsRoot,proto3" json:"txs_root,omitempty"`
	// receipts root hex string
	ReceiptsRoot         string   `protobuf:"bytes,9,opt,name=receipts_root,json=receiptsRoot,proto3" json:"receipts_root,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*BlockResponse) Descriptor

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

func (*BlockResponse) GetChainId

func (m *BlockResponse) GetChainId() uint32

func (*BlockResponse) GetConsensusRoot

func (m *BlockResponse) GetConsensusRoot() string

func (*BlockResponse) GetHash

func (m *BlockResponse) GetHash() string

func (*BlockResponse) GetHeight

func (m *BlockResponse) GetHeight() uint64

func (*BlockResponse) GetParentHash

func (m *BlockResponse) GetParentHash() string

func (*BlockResponse) GetReceiptsRoot

func (m *BlockResponse) GetReceiptsRoot() string

func (*BlockResponse) GetStateRoot

func (m *BlockResponse) GetStateRoot() string

func (*BlockResponse) GetTimestamp

func (m *BlockResponse) GetTimestamp() uint64

func (*BlockResponse) GetTxsRoot

func (m *BlockResponse) GetTxsRoot() string

func (*BlockResponse) ProtoMessage

func (*BlockResponse) ProtoMessage()

func (*BlockResponse) Reset

func (m *BlockResponse) Reset()

func (*BlockResponse) String

func (m *BlockResponse) String() string

func (*BlockResponse) XXX_DiscardUnknown

func (m *BlockResponse) XXX_DiscardUnknown()

func (*BlockResponse) XXX_Marshal

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

func (*BlockResponse) XXX_Merge

func (dst *BlockResponse) XXX_Merge(src proto.Message)

func (*BlockResponse) XXX_Size

func (m *BlockResponse) XXX_Size() int

func (*BlockResponse) XXX_Unmarshal

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

type GetAccountStateRequest

type GetAccountStateRequest struct {
	// account address string
	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 (*GetAccountStateRequest) Descriptor

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

func (*GetAccountStateRequest) GetAddress

func (m *GetAccountStateRequest) GetAddress() string

func (*GetAccountStateRequest) ProtoMessage

func (*GetAccountStateRequest) ProtoMessage()

func (*GetAccountStateRequest) Reset

func (m *GetAccountStateRequest) Reset()

func (*GetAccountStateRequest) String

func (m *GetAccountStateRequest) String() string

func (*GetAccountStateRequest) XXX_DiscardUnknown

func (m *GetAccountStateRequest) XXX_DiscardUnknown()

func (*GetAccountStateRequest) XXX_Marshal

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

func (*GetAccountStateRequest) XXX_Merge

func (dst *GetAccountStateRequest) XXX_Merge(src proto.Message)

func (*GetAccountStateRequest) XXX_Size

func (m *GetAccountStateRequest) XXX_Size() int

func (*GetAccountStateRequest) XXX_Unmarshal

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

type GetAccountStateResponse

type GetAccountStateResponse struct {
	// account address string
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// account nonce
	Nonce uint64 `protobuf:"varint,2,opt,name=nonce,proto3" json:"nonce,omitempty"`
	// account balance decimal string
	Balance              string   `protobuf:"bytes,3,opt,name=balance,proto3" json:"balance,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetAccountStateResponse) Descriptor

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

func (*GetAccountStateResponse) GetAddress

func (m *GetAccountStateResponse) GetAddress() string

func (*GetAccountStateResponse) GetBalance

func (m *GetAccountStateResponse) GetBalance() string

func (*GetAccountStateResponse) GetNonce

func (m *GetAccountStateResponse) GetNonce() uint64

func (*GetAccountStateResponse) ProtoMessage

func (*GetAccountStateResponse) ProtoMessage()

func (*GetAccountStateResponse) Reset

func (m *GetAccountStateResponse) Reset()

func (*GetAccountStateResponse) String

func (m *GetAccountStateResponse) String() string

func (*GetAccountStateResponse) XXX_DiscardUnknown

func (m *GetAccountStateResponse) XXX_DiscardUnknown()

func (*GetAccountStateResponse) XXX_Marshal

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

func (*GetAccountStateResponse) XXX_Merge

func (dst *GetAccountStateResponse) XXX_Merge(src proto.Message)

func (*GetAccountStateResponse) XXX_Size

func (m *GetAccountStateResponse) XXX_Size() int

func (*GetAccountStateResponse) XXX_Unmarshal

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

type GetBlockByHashRequest

type GetBlockByHashRequest struct {
	// block hash hex string
	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 (*GetBlockByHashRequest) Descriptor

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

func (*GetBlockByHashRequest) GetHash

func (m *GetBlockByHashRequest) GetHash() string

func (*GetBlockByHashRequest) ProtoMessage

func (*GetBlockByHashRequest) ProtoMessage()

func (*GetBlockByHashRequest) Reset

func (m *GetBlockByHashRequest) Reset()

func (*GetBlockByHashRequest) String

func (m *GetBlockByHashRequest) String() string

func (*GetBlockByHashRequest) XXX_DiscardUnknown

func (m *GetBlockByHashRequest) XXX_DiscardUnknown()

func (*GetBlockByHashRequest) XXX_Marshal

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

func (*GetBlockByHashRequest) XXX_Merge

func (dst *GetBlockByHashRequest) XXX_Merge(src proto.Message)

func (*GetBlockByHashRequest) XXX_Size

func (m *GetBlockByHashRequest) XXX_Size() int

func (*GetBlockByHashRequest) XXX_Unmarshal

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

type GetBlockByHeightRequest

type GetBlockByHeightRequest struct {
	// block height
	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 (*GetBlockByHeightRequest) Descriptor

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

func (*GetBlockByHeightRequest) GetHeight

func (m *GetBlockByHeightRequest) GetHeight() uint64

func (*GetBlockByHeightRequest) ProtoMessage

func (*GetBlockByHeightRequest) ProtoMessage()

func (*GetBlockByHeightRequest) Reset

func (m *GetBlockByHeightRequest) Reset()

func (*GetBlockByHeightRequest) String

func (m *GetBlockByHeightRequest) String() string

func (*GetBlockByHeightRequest) XXX_DiscardUnknown

func (m *GetBlockByHeightRequest) XXX_DiscardUnknown()

func (*GetBlockByHeightRequest) XXX_Marshal

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

func (*GetBlockByHeightRequest) XXX_Merge

func (dst *GetBlockByHeightRequest) XXX_Merge(src proto.Message)

func (*GetBlockByHeightRequest) XXX_Size

func (m *GetBlockByHeightRequest) XXX_Size() int

func (*GetBlockByHeightRequest) XXX_Unmarshal

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

type GetLastBlockRequest

type GetLastBlockRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetLastBlockRequest) Descriptor

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

func (*GetLastBlockRequest) ProtoMessage

func (*GetLastBlockRequest) ProtoMessage()

func (*GetLastBlockRequest) Reset

func (m *GetLastBlockRequest) Reset()

func (*GetLastBlockRequest) String

func (m *GetLastBlockRequest) String() string

func (*GetLastBlockRequest) XXX_DiscardUnknown

func (m *GetLastBlockRequest) XXX_DiscardUnknown()

func (*GetLastBlockRequest) XXX_Marshal

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

func (*GetLastBlockRequest) XXX_Merge

func (dst *GetLastBlockRequest) XXX_Merge(src proto.Message)

func (*GetLastBlockRequest) XXX_Size

func (m *GetLastBlockRequest) XXX_Size() int

func (*GetLastBlockRequest) XXX_Unmarshal

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

type GetLastBlockResponse

type GetLastBlockResponse struct {
	// block hash hex string
	Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
	// block detail
	Block                *BlockResponse `protobuf:"bytes,2,opt,name=block,proto3" json:"block,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

func (*GetLastBlockResponse) Descriptor

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

func (*GetLastBlockResponse) GetBlock

func (m *GetLastBlockResponse) GetBlock() *BlockResponse

func (*GetLastBlockResponse) GetHash

func (m *GetLastBlockResponse) GetHash() string

func (*GetLastBlockResponse) ProtoMessage

func (*GetLastBlockResponse) ProtoMessage()

func (*GetLastBlockResponse) Reset

func (m *GetLastBlockResponse) Reset()

func (*GetLastBlockResponse) String

func (m *GetLastBlockResponse) String() string

func (*GetLastBlockResponse) XXX_DiscardUnknown

func (m *GetLastBlockResponse) XXX_DiscardUnknown()

func (*GetLastBlockResponse) XXX_Marshal

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

func (*GetLastBlockResponse) XXX_Merge

func (dst *GetLastBlockResponse) XXX_Merge(src proto.Message)

func (*GetLastBlockResponse) XXX_Size

func (m *GetLastBlockResponse) XXX_Size() int

func (*GetLastBlockResponse) XXX_Unmarshal

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

type GetTxByHashRequest

type GetTxByHashRequest struct {
	// tx hash hex string
	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 (*GetTxByHashRequest) Descriptor

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

func (*GetTxByHashRequest) GetHash

func (m *GetTxByHashRequest) GetHash() string

func (*GetTxByHashRequest) ProtoMessage

func (*GetTxByHashRequest) ProtoMessage()

func (*GetTxByHashRequest) Reset

func (m *GetTxByHashRequest) Reset()

func (*GetTxByHashRequest) String

func (m *GetTxByHashRequest) String() string

func (*GetTxByHashRequest) XXX_DiscardUnknown

func (m *GetTxByHashRequest) XXX_DiscardUnknown()

func (*GetTxByHashRequest) XXX_Marshal

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

func (*GetTxByHashRequest) XXX_Merge

func (dst *GetTxByHashRequest) XXX_Merge(src proto.Message)

func (*GetTxByHashRequest) XXX_Size

func (m *GetTxByHashRequest) XXX_Size() int

func (*GetTxByHashRequest) XXX_Unmarshal

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

type LockAccountRequest

type LockAccountRequest 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 (*LockAccountRequest) Descriptor

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

func (*LockAccountRequest) GetAddress

func (m *LockAccountRequest) GetAddress() string

func (*LockAccountRequest) ProtoMessage

func (*LockAccountRequest) ProtoMessage()

func (*LockAccountRequest) Reset

func (m *LockAccountRequest) Reset()

func (*LockAccountRequest) String

func (m *LockAccountRequest) String() string

func (*LockAccountRequest) XXX_DiscardUnknown

func (m *LockAccountRequest) XXX_DiscardUnknown()

func (*LockAccountRequest) XXX_Marshal

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

func (*LockAccountRequest) XXX_Merge

func (dst *LockAccountRequest) XXX_Merge(src proto.Message)

func (*LockAccountRequest) XXX_Size

func (m *LockAccountRequest) XXX_Size() int

func (*LockAccountRequest) XXX_Unmarshal

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

type LockAccountResponse

type LockAccountResponse struct {
	Result               bool     `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*LockAccountResponse) Descriptor

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

func (*LockAccountResponse) GetResult

func (m *LockAccountResponse) GetResult() bool

func (*LockAccountResponse) ProtoMessage

func (*LockAccountResponse) ProtoMessage()

func (*LockAccountResponse) Reset

func (m *LockAccountResponse) Reset()

func (*LockAccountResponse) String

func (m *LockAccountResponse) String() string

func (*LockAccountResponse) XXX_DiscardUnknown

func (m *LockAccountResponse) XXX_DiscardUnknown()

func (*LockAccountResponse) XXX_Marshal

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

func (*LockAccountResponse) XXX_Merge

func (dst *LockAccountResponse) XXX_Merge(src proto.Message)

func (*LockAccountResponse) XXX_Size

func (m *LockAccountResponse) XXX_Size() int

func (*LockAccountResponse) XXX_Unmarshal

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

type NewAccountRequest

type NewAccountRequest struct {
	Passphrase           string   `protobuf:"bytes,1,opt,name=passphrase,proto3" json:"passphrase,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*NewAccountRequest) Descriptor

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

func (*NewAccountRequest) GetPassphrase

func (m *NewAccountRequest) GetPassphrase() string

func (*NewAccountRequest) ProtoMessage

func (*NewAccountRequest) ProtoMessage()

func (*NewAccountRequest) Reset

func (m *NewAccountRequest) Reset()

func (*NewAccountRequest) String

func (m *NewAccountRequest) String() string

func (*NewAccountRequest) XXX_DiscardUnknown

func (m *NewAccountRequest) XXX_DiscardUnknown()

func (*NewAccountRequest) XXX_Marshal

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

func (*NewAccountRequest) XXX_Merge

func (dst *NewAccountRequest) XXX_Merge(src proto.Message)

func (*NewAccountRequest) XXX_Size

func (m *NewAccountRequest) XXX_Size() int

func (*NewAccountRequest) XXX_Unmarshal

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

type NewAccountResponse

type NewAccountResponse 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 (*NewAccountResponse) Descriptor

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

func (*NewAccountResponse) GetAddress

func (m *NewAccountResponse) GetAddress() string

func (*NewAccountResponse) ProtoMessage

func (*NewAccountResponse) ProtoMessage()

func (*NewAccountResponse) Reset

func (m *NewAccountResponse) Reset()

func (*NewAccountResponse) String

func (m *NewAccountResponse) String() string

func (*NewAccountResponse) XXX_DiscardUnknown

func (m *NewAccountResponse) XXX_DiscardUnknown()

func (*NewAccountResponse) XXX_Marshal

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

func (*NewAccountResponse) XXX_Merge

func (dst *NewAccountResponse) XXX_Merge(src proto.Message)

func (*NewAccountResponse) XXX_Size

func (m *NewAccountResponse) XXX_Size() int

func (*NewAccountResponse) XXX_Unmarshal

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

type NodeInfoResponse

type NodeInfoResponse struct {
	// the node ID.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// the node version.
	Version              uint32   `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Response message of node info.

func (*NodeInfoResponse) Descriptor

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

func (*NodeInfoResponse) GetId

func (m *NodeInfoResponse) GetId() string

func (*NodeInfoResponse) GetVersion

func (m *NodeInfoResponse) GetVersion() uint32

func (*NodeInfoResponse) ProtoMessage

func (*NodeInfoResponse) ProtoMessage()

func (*NodeInfoResponse) Reset

func (m *NodeInfoResponse) Reset()

func (*NodeInfoResponse) String

func (m *NodeInfoResponse) String() string

func (*NodeInfoResponse) XXX_DiscardUnknown

func (m *NodeInfoResponse) XXX_DiscardUnknown()

func (*NodeInfoResponse) XXX_Marshal

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

func (*NodeInfoResponse) XXX_Merge

func (dst *NodeInfoResponse) XXX_Merge(src proto.Message)

func (*NodeInfoResponse) XXX_Size

func (m *NodeInfoResponse) XXX_Size() int

func (*NodeInfoResponse) XXX_Unmarshal

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

type NonParamsRequest

type NonParamsRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Request message of non params.

func (*NonParamsRequest) Descriptor

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

func (*NonParamsRequest) ProtoMessage

func (*NonParamsRequest) ProtoMessage()

func (*NonParamsRequest) Reset

func (m *NonParamsRequest) Reset()

func (*NonParamsRequest) String

func (m *NonParamsRequest) String() string

func (*NonParamsRequest) XXX_DiscardUnknown

func (m *NonParamsRequest) XXX_DiscardUnknown()

func (*NonParamsRequest) XXX_Marshal

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

func (*NonParamsRequest) XXX_Merge

func (dst *NonParamsRequest) XXX_Merge(src proto.Message)

func (*NonParamsRequest) XXX_Size

func (m *NonParamsRequest) XXX_Size() int

func (*NonParamsRequest) XXX_Unmarshal

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

type SendTransactionRequest

type SendTransactionRequest struct {
	// tx from address hex string
	From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"`
	// tx to address hex string
	To string `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"`
	// tx amount decimal string
	Amount string `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"`
	// account nonce
	Nonce                uint64   `protobuf:"varint,15,opt,name=nonce,proto3" json:"nonce,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SendTransactionRequest) Descriptor

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

func (*SendTransactionRequest) GetAmount

func (m *SendTransactionRequest) GetAmount() string

func (*SendTransactionRequest) GetFrom

func (m *SendTransactionRequest) GetFrom() string

func (*SendTransactionRequest) GetNonce

func (m *SendTransactionRequest) GetNonce() uint64

func (*SendTransactionRequest) GetTo

func (m *SendTransactionRequest) GetTo() string

func (*SendTransactionRequest) ProtoMessage

func (*SendTransactionRequest) ProtoMessage()

func (*SendTransactionRequest) Reset

func (m *SendTransactionRequest) Reset()

func (*SendTransactionRequest) String

func (m *SendTransactionRequest) String() string

func (*SendTransactionRequest) XXX_DiscardUnknown

func (m *SendTransactionRequest) XXX_DiscardUnknown()

func (*SendTransactionRequest) XXX_Marshal

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

func (*SendTransactionRequest) XXX_Merge

func (dst *SendTransactionRequest) XXX_Merge(src proto.Message)

func (*SendTransactionRequest) XXX_Size

func (m *SendTransactionRequest) XXX_Size() int

func (*SendTransactionRequest) XXX_Unmarshal

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

type SendTransactionResponse

type SendTransactionResponse struct {
	// tx hash hex string
	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 (*SendTransactionResponse) Descriptor

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

func (*SendTransactionResponse) GetHash

func (m *SendTransactionResponse) GetHash() string

func (*SendTransactionResponse) ProtoMessage

func (*SendTransactionResponse) ProtoMessage()

func (*SendTransactionResponse) Reset

func (m *SendTransactionResponse) Reset()

func (*SendTransactionResponse) String

func (m *SendTransactionResponse) String() string

func (*SendTransactionResponse) XXX_DiscardUnknown

func (m *SendTransactionResponse) XXX_DiscardUnknown()

func (*SendTransactionResponse) XXX_Marshal

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

func (*SendTransactionResponse) XXX_Merge

func (dst *SendTransactionResponse) XXX_Merge(src proto.Message)

func (*SendTransactionResponse) XXX_Size

func (m *SendTransactionResponse) XXX_Size() int

func (*SendTransactionResponse) XXX_Unmarshal

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

type TransactionResponse

type TransactionResponse struct {
	// tx hash hex string
	Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
	// transaction nonce
	Nonce uint64 `protobuf:"varint,2,opt,name=nonce,proto3" json:"nonce,omitempty"`
	// tx from address
	From string `protobuf:"bytes,3,opt,name=from,proto3" json:"from,omitempty"`
	// tx recipient address
	Recipient string `protobuf:"bytes,4,opt,name=recipient,proto3" json:"recipient,omitempty"`
	// transaction amount decimal string
	Amount               string   `protobuf:"bytes,5,opt,name=amount,proto3" json:"amount,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*TransactionResponse) Descriptor

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

func (*TransactionResponse) GetAmount

func (m *TransactionResponse) GetAmount() string

func (*TransactionResponse) GetFrom

func (m *TransactionResponse) GetFrom() string

func (*TransactionResponse) GetHash

func (m *TransactionResponse) GetHash() string

func (*TransactionResponse) GetNonce

func (m *TransactionResponse) GetNonce() uint64

func (*TransactionResponse) GetRecipient

func (m *TransactionResponse) GetRecipient() string

func (*TransactionResponse) ProtoMessage

func (*TransactionResponse) ProtoMessage()

func (*TransactionResponse) Reset

func (m *TransactionResponse) Reset()

func (*TransactionResponse) String

func (m *TransactionResponse) String() string

func (*TransactionResponse) XXX_DiscardUnknown

func (m *TransactionResponse) XXX_DiscardUnknown()

func (*TransactionResponse) XXX_Marshal

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

func (*TransactionResponse) XXX_Merge

func (dst *TransactionResponse) XXX_Merge(src proto.Message)

func (*TransactionResponse) XXX_Size

func (m *TransactionResponse) XXX_Size() int

func (*TransactionResponse) XXX_Unmarshal

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

type UnlockAccountRequest

type UnlockAccountRequest struct {
	Address              string   `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Passphrase           string   `protobuf:"bytes,2,opt,name=passphrase,proto3" json:"passphrase,omitempty"`
	Duration             uint64   `protobuf:"varint,3,opt,name=duration,proto3" json:"duration,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*UnlockAccountRequest) Descriptor

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

func (*UnlockAccountRequest) GetAddress

func (m *UnlockAccountRequest) GetAddress() string

func (*UnlockAccountRequest) GetDuration

func (m *UnlockAccountRequest) GetDuration() uint64

func (*UnlockAccountRequest) GetPassphrase

func (m *UnlockAccountRequest) GetPassphrase() string

func (*UnlockAccountRequest) ProtoMessage

func (*UnlockAccountRequest) ProtoMessage()

func (*UnlockAccountRequest) Reset

func (m *UnlockAccountRequest) Reset()

func (*UnlockAccountRequest) String

func (m *UnlockAccountRequest) String() string

func (*UnlockAccountRequest) XXX_DiscardUnknown

func (m *UnlockAccountRequest) XXX_DiscardUnknown()

func (*UnlockAccountRequest) XXX_Marshal

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

func (*UnlockAccountRequest) XXX_Merge

func (dst *UnlockAccountRequest) XXX_Merge(src proto.Message)

func (*UnlockAccountRequest) XXX_Size

func (m *UnlockAccountRequest) XXX_Size() int

func (*UnlockAccountRequest) XXX_Unmarshal

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

type UnlockAccountResponse

type UnlockAccountResponse struct {
	Result               bool     `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*UnlockAccountResponse) Descriptor

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

func (*UnlockAccountResponse) GetResult

func (m *UnlockAccountResponse) GetResult() bool

func (*UnlockAccountResponse) ProtoMessage

func (*UnlockAccountResponse) ProtoMessage()

func (*UnlockAccountResponse) Reset

func (m *UnlockAccountResponse) Reset()

func (*UnlockAccountResponse) String

func (m *UnlockAccountResponse) String() string

func (*UnlockAccountResponse) XXX_DiscardUnknown

func (m *UnlockAccountResponse) XXX_DiscardUnknown()

func (*UnlockAccountResponse) XXX_Marshal

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

func (*UnlockAccountResponse) XXX_Merge

func (dst *UnlockAccountResponse) XXX_Merge(src proto.Message)

func (*UnlockAccountResponse) XXX_Size

func (m *UnlockAccountResponse) XXX_Size() int

func (*UnlockAccountResponse) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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