Documentation ¶
Overview ¶
Package api is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterDatabaseServer(s *grpc.Server, srv DatabaseServer)
- func RegisterNetworkServer(s *grpc.Server, srv NetworkServer)
- func RegisterWalletExtensionHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterWalletExtensionHandlerClient(ctx context.Context, mux *runtime.ServeMux, client WalletExtensionClient) error
- func RegisterWalletExtensionHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterWalletExtensionServer(s *grpc.Server, srv WalletExtensionServer)
- func RegisterWalletHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterWalletHandlerClient(ctx context.Context, mux *runtime.ServeMux, client WalletClient) error
- func RegisterWalletHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterWalletServer(s *grpc.Server, srv WalletServer)
- func RegisterWalletSolidityHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterWalletSolidityHandlerClient(ctx context.Context, mux *runtime.ServeMux, client WalletSolidityClient) error
- func RegisterWalletSolidityHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterWalletSolidityServer(s *grpc.Server, srv WalletSolidityServer)
- type AccountNetMessage
- func (*AccountNetMessage) Descriptor() ([]byte, []int)
- func (m *AccountNetMessage) GetAssetNetLimit() map[string]int64
- func (m *AccountNetMessage) GetAssetNetUsed() map[string]int64
- func (m *AccountNetMessage) GetFreeNetLimit() int64
- func (m *AccountNetMessage) GetFreeNetUsed() int64
- func (m *AccountNetMessage) GetNetLimit() int64
- func (m *AccountNetMessage) GetNetUsed() int64
- func (m *AccountNetMessage) GetTotalNetLimit() int64
- func (m *AccountNetMessage) GetTotalNetWeight() int64
- func (*AccountNetMessage) ProtoMessage()
- func (m *AccountNetMessage) Reset()
- func (m *AccountNetMessage) String() string
- func (m *AccountNetMessage) XXX_DiscardUnknown()
- func (m *AccountNetMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *AccountNetMessage) XXX_Merge(src proto.Message)
- func (m *AccountNetMessage) XXX_Size() int
- func (m *AccountNetMessage) XXX_Unmarshal(b []byte) error
- type AccountPaginated
- func (*AccountPaginated) Descriptor() ([]byte, []int)
- func (m *AccountPaginated) GetAccount() *core.Account
- func (m *AccountPaginated) GetLimit() int64
- func (m *AccountPaginated) GetOffset() int64
- func (*AccountPaginated) ProtoMessage()
- func (m *AccountPaginated) Reset()
- func (m *AccountPaginated) String() string
- func (m *AccountPaginated) XXX_DiscardUnknown()
- func (m *AccountPaginated) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *AccountPaginated) XXX_Merge(src proto.Message)
- func (m *AccountPaginated) XXX_Size() int
- func (m *AccountPaginated) XXX_Unmarshal(b []byte) error
- type Address
- func (*Address) Descriptor() ([]byte, []int)
- func (m *Address) GetHost() []byte
- func (m *Address) GetPort() int32
- func (*Address) ProtoMessage()
- func (m *Address) Reset()
- func (m *Address) String() string
- func (m *Address) XXX_DiscardUnknown()
- func (m *Address) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Address) XXX_Merge(src proto.Message)
- func (m *Address) XXX_Size() int
- func (m *Address) XXX_Unmarshal(b []byte) error
- type AddressPrKeyPairMessage
- func (*AddressPrKeyPairMessage) Descriptor() ([]byte, []int)
- func (m *AddressPrKeyPairMessage) GetAddress() string
- func (m *AddressPrKeyPairMessage) GetPrivateKey() string
- func (*AddressPrKeyPairMessage) ProtoMessage()
- func (m *AddressPrKeyPairMessage) Reset()
- func (m *AddressPrKeyPairMessage) String() string
- func (m *AddressPrKeyPairMessage) XXX_DiscardUnknown()
- func (m *AddressPrKeyPairMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *AddressPrKeyPairMessage) XXX_Merge(src proto.Message)
- func (m *AddressPrKeyPairMessage) XXX_Size() int
- func (m *AddressPrKeyPairMessage) XXX_Unmarshal(b []byte) error
- type AssetIssueList
- func (*AssetIssueList) Descriptor() ([]byte, []int)
- func (m *AssetIssueList) GetAssetIssue() []*core.AssetIssueContract
- func (*AssetIssueList) ProtoMessage()
- func (m *AssetIssueList) Reset()
- func (m *AssetIssueList) String() string
- func (m *AssetIssueList) XXX_DiscardUnknown()
- func (m *AssetIssueList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *AssetIssueList) XXX_Merge(src proto.Message)
- func (m *AssetIssueList) XXX_Size() int
- func (m *AssetIssueList) XXX_Unmarshal(b []byte) error
- type BlockLimit
- func (*BlockLimit) Descriptor() ([]byte, []int)
- func (m *BlockLimit) GetEndNum() int64
- func (m *BlockLimit) GetStartNum() int64
- func (*BlockLimit) ProtoMessage()
- func (m *BlockLimit) Reset()
- func (m *BlockLimit) String() string
- func (m *BlockLimit) XXX_DiscardUnknown()
- func (m *BlockLimit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *BlockLimit) XXX_Merge(src proto.Message)
- func (m *BlockLimit) XXX_Size() int
- func (m *BlockLimit) XXX_Unmarshal(b []byte) error
- type BlockList
- func (*BlockList) Descriptor() ([]byte, []int)
- func (m *BlockList) GetBlock() []*core.Block
- func (*BlockList) ProtoMessage()
- func (m *BlockList) Reset()
- func (m *BlockList) String() string
- func (m *BlockList) XXX_DiscardUnknown()
- func (m *BlockList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *BlockList) XXX_Merge(src proto.Message)
- func (m *BlockList) XXX_Size() int
- func (m *BlockList) XXX_Unmarshal(b []byte) error
- type BlockReference
- func (*BlockReference) Descriptor() ([]byte, []int)
- func (m *BlockReference) GetBlockHash() []byte
- func (m *BlockReference) GetBlockNum() int64
- func (*BlockReference) ProtoMessage()
- func (m *BlockReference) Reset()
- func (m *BlockReference) String() string
- func (m *BlockReference) XXX_DiscardUnknown()
- func (m *BlockReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *BlockReference) XXX_Merge(src proto.Message)
- func (m *BlockReference) XXX_Size() int
- func (m *BlockReference) XXX_Unmarshal(b []byte) error
- type BytesMessage
- func (*BytesMessage) Descriptor() ([]byte, []int)
- func (m *BytesMessage) GetValue() []byte
- func (*BytesMessage) ProtoMessage()
- func (m *BytesMessage) Reset()
- func (m *BytesMessage) String() string
- func (m *BytesMessage) XXX_DiscardUnknown()
- func (m *BytesMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *BytesMessage) XXX_Merge(src proto.Message)
- func (m *BytesMessage) XXX_Size() int
- func (m *BytesMessage) XXX_Unmarshal(b []byte) error
- type DatabaseClient
- type DatabaseServer
- type EasyTransferMessage
- func (*EasyTransferMessage) Descriptor() ([]byte, []int)
- func (m *EasyTransferMessage) GetAmount() int64
- func (m *EasyTransferMessage) GetPassPhrase() []byte
- func (m *EasyTransferMessage) GetToAddress() []byte
- func (*EasyTransferMessage) ProtoMessage()
- func (m *EasyTransferMessage) Reset()
- func (m *EasyTransferMessage) String() string
- func (m *EasyTransferMessage) XXX_DiscardUnknown()
- func (m *EasyTransferMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *EasyTransferMessage) XXX_Merge(src proto.Message)
- func (m *EasyTransferMessage) XXX_Size() int
- func (m *EasyTransferMessage) XXX_Unmarshal(b []byte) error
- type EasyTransferResponse
- func (*EasyTransferResponse) Descriptor() ([]byte, []int)
- func (m *EasyTransferResponse) GetResult() *Return
- func (m *EasyTransferResponse) GetTransaction() *core.Transaction
- func (*EasyTransferResponse) ProtoMessage()
- func (m *EasyTransferResponse) Reset()
- func (m *EasyTransferResponse) String() string
- func (m *EasyTransferResponse) XXX_DiscardUnknown()
- func (m *EasyTransferResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *EasyTransferResponse) XXX_Merge(src proto.Message)
- func (m *EasyTransferResponse) XXX_Size() int
- func (m *EasyTransferResponse) XXX_Unmarshal(b []byte) error
- type EmptyMessage
- func (*EmptyMessage) Descriptor() ([]byte, []int)
- func (*EmptyMessage) ProtoMessage()
- func (m *EmptyMessage) Reset()
- func (m *EmptyMessage) String() string
- func (m *EmptyMessage) XXX_DiscardUnknown()
- func (m *EmptyMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *EmptyMessage) XXX_Merge(src proto.Message)
- func (m *EmptyMessage) XXX_Size() int
- func (m *EmptyMessage) XXX_Unmarshal(b []byte) error
- type NetworkClient
- type NetworkServer
- type Node
- func (*Node) Descriptor() ([]byte, []int)
- func (m *Node) GetAddress() *Address
- func (*Node) ProtoMessage()
- func (m *Node) Reset()
- func (m *Node) String() string
- func (m *Node) XXX_DiscardUnknown()
- func (m *Node) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Node) XXX_Merge(src proto.Message)
- func (m *Node) XXX_Size() int
- func (m *Node) XXX_Unmarshal(b []byte) error
- type NodeList
- func (*NodeList) Descriptor() ([]byte, []int)
- func (m *NodeList) GetNodes() []*Node
- func (*NodeList) ProtoMessage()
- func (m *NodeList) Reset()
- func (m *NodeList) String() string
- func (m *NodeList) XXX_DiscardUnknown()
- func (m *NodeList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *NodeList) XXX_Merge(src proto.Message)
- func (m *NodeList) XXX_Size() int
- func (m *NodeList) XXX_Unmarshal(b []byte) error
- type NumberMessage
- func (*NumberMessage) Descriptor() ([]byte, []int)
- func (m *NumberMessage) GetNum() int64
- func (*NumberMessage) ProtoMessage()
- func (m *NumberMessage) Reset()
- func (m *NumberMessage) String() string
- func (m *NumberMessage) XXX_DiscardUnknown()
- func (m *NumberMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *NumberMessage) XXX_Merge(src proto.Message)
- func (m *NumberMessage) XXX_Size() int
- func (m *NumberMessage) XXX_Unmarshal(b []byte) error
- type PaginatedMessage
- func (*PaginatedMessage) Descriptor() ([]byte, []int)
- func (m *PaginatedMessage) GetLimit() int64
- func (m *PaginatedMessage) GetOffset() int64
- func (*PaginatedMessage) ProtoMessage()
- func (m *PaginatedMessage) Reset()
- func (m *PaginatedMessage) String() string
- func (m *PaginatedMessage) XXX_DiscardUnknown()
- func (m *PaginatedMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *PaginatedMessage) XXX_Merge(src proto.Message)
- func (m *PaginatedMessage) XXX_Size() int
- func (m *PaginatedMessage) XXX_Unmarshal(b []byte) error
- type Return
- func (*Return) Descriptor() ([]byte, []int)
- func (m *Return) GetCode() ReturnResponseCode
- func (m *Return) GetMessage() []byte
- func (m *Return) GetResult() bool
- func (*Return) ProtoMessage()
- func (m *Return) Reset()
- func (m *Return) String() string
- func (m *Return) XXX_DiscardUnknown()
- func (m *Return) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Return) XXX_Merge(src proto.Message)
- func (m *Return) XXX_Size() int
- func (m *Return) XXX_Unmarshal(b []byte) error
- type ReturnResponseCode
- type TimeMessage
- func (*TimeMessage) Descriptor() ([]byte, []int)
- func (m *TimeMessage) GetBeginInMilliseconds() int64
- func (m *TimeMessage) GetEndInMilliseconds() int64
- func (*TimeMessage) ProtoMessage()
- func (m *TimeMessage) Reset()
- func (m *TimeMessage) String() string
- func (m *TimeMessage) XXX_DiscardUnknown()
- func (m *TimeMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *TimeMessage) XXX_Merge(src proto.Message)
- func (m *TimeMessage) XXX_Size() int
- func (m *TimeMessage) XXX_Unmarshal(b []byte) error
- type TimePaginatedMessage
- func (*TimePaginatedMessage) Descriptor() ([]byte, []int)
- func (m *TimePaginatedMessage) GetLimit() int64
- func (m *TimePaginatedMessage) GetOffset() int64
- func (m *TimePaginatedMessage) GetTimeMessage() *TimeMessage
- func (*TimePaginatedMessage) ProtoMessage()
- func (m *TimePaginatedMessage) Reset()
- func (m *TimePaginatedMessage) String() string
- func (m *TimePaginatedMessage) XXX_DiscardUnknown()
- func (m *TimePaginatedMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *TimePaginatedMessage) XXX_Merge(src proto.Message)
- func (m *TimePaginatedMessage) XXX_Size() int
- func (m *TimePaginatedMessage) XXX_Unmarshal(b []byte) error
- type TransactionLimit
- func (*TransactionLimit) Descriptor() ([]byte, []int)
- func (m *TransactionLimit) GetLimitNum() int64
- func (m *TransactionLimit) GetTransactionId() []byte
- func (*TransactionLimit) ProtoMessage()
- func (m *TransactionLimit) Reset()
- func (m *TransactionLimit) String() string
- func (m *TransactionLimit) XXX_DiscardUnknown()
- func (m *TransactionLimit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *TransactionLimit) XXX_Merge(src proto.Message)
- func (m *TransactionLimit) XXX_Size() int
- func (m *TransactionLimit) XXX_Unmarshal(b []byte) error
- type TransactionList
- func (*TransactionList) Descriptor() ([]byte, []int)
- func (m *TransactionList) GetTransaction() []*core.Transaction
- func (*TransactionList) ProtoMessage()
- func (m *TransactionList) Reset()
- func (m *TransactionList) String() string
- func (m *TransactionList) XXX_DiscardUnknown()
- func (m *TransactionList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *TransactionList) XXX_Merge(src proto.Message)
- func (m *TransactionList) XXX_Size() int
- func (m *TransactionList) XXX_Unmarshal(b []byte) error
- type WalletClient
- type WalletExtensionClient
- type WalletExtensionServer
- type WalletServer
- type WalletSolidityClient
- type WalletSolidityServer
- type WitnessList
- func (*WitnessList) Descriptor() ([]byte, []int)
- func (m *WitnessList) GetWitnesses() []*core.Witness
- func (*WitnessList) ProtoMessage()
- func (m *WitnessList) Reset()
- func (m *WitnessList) String() string
- func (m *WitnessList) XXX_DiscardUnknown()
- func (m *WitnessList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *WitnessList) XXX_Merge(src proto.Message)
- func (m *WitnessList) XXX_Size() int
- func (m *WitnessList) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
var ReturnResponseCode_name = map[int32]string{
0: "SUCCESS",
1: "SIGERROR",
2: "CONTRACT_VALIDATE_ERROR",
3: "CONTRACT_EXE_ERROR",
4: "BANDWITH_ERROR",
5: "DUP_TRANSACTION_ERROR",
6: "TAPOS_ERROR",
7: "TOO_BIG_TRANSACTION_ERROR",
8: "TRANSACTION_EXPIRATION_ERROR",
9: "SERVER_BUSY",
20: "OTHER_ERROR",
}
var ReturnResponseCode_value = map[string]int32{
"SUCCESS": 0,
"SIGERROR": 1,
"CONTRACT_VALIDATE_ERROR": 2,
"CONTRACT_EXE_ERROR": 3,
"BANDWITH_ERROR": 4,
"DUP_TRANSACTION_ERROR": 5,
"TAPOS_ERROR": 6,
"TOO_BIG_TRANSACTION_ERROR": 7,
"TRANSACTION_EXPIRATION_ERROR": 8,
"SERVER_BUSY": 9,
"OTHER_ERROR": 20,
}
Functions ¶
func RegisterDatabaseServer ¶
func RegisterDatabaseServer(s *grpc.Server, srv DatabaseServer)
func RegisterNetworkServer ¶
func RegisterNetworkServer(s *grpc.Server, srv NetworkServer)
func RegisterWalletExtensionHandler ¶
func RegisterWalletExtensionHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterWalletExtensionHandler registers the http handlers for service WalletExtension to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterWalletExtensionHandlerClient ¶
func RegisterWalletExtensionHandlerClient(ctx context.Context, mux *runtime.ServeMux, client WalletExtensionClient) error
RegisterWalletExtensionHandlerClient registers the http handlers for service WalletExtension to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "WalletExtensionClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "WalletExtensionClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "WalletExtensionClient" to call the correct interceptors.
func RegisterWalletExtensionHandlerFromEndpoint ¶
func RegisterWalletExtensionHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterWalletExtensionHandlerFromEndpoint is same as RegisterWalletExtensionHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterWalletExtensionServer ¶
func RegisterWalletExtensionServer(s *grpc.Server, srv WalletExtensionServer)
func RegisterWalletHandler ¶
RegisterWalletHandler registers the http handlers for service Wallet to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterWalletHandlerClient ¶
func RegisterWalletHandlerClient(ctx context.Context, mux *runtime.ServeMux, client WalletClient) error
RegisterWalletHandlerClient registers the http handlers for service Wallet to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "WalletClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "WalletClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "WalletClient" to call the correct interceptors.
func RegisterWalletHandlerFromEndpoint ¶
func RegisterWalletHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterWalletHandlerFromEndpoint is same as RegisterWalletHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterWalletServer ¶
func RegisterWalletServer(s *grpc.Server, srv WalletServer)
func RegisterWalletSolidityHandler ¶
func RegisterWalletSolidityHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterWalletSolidityHandler registers the http handlers for service WalletSolidity to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterWalletSolidityHandlerClient ¶
func RegisterWalletSolidityHandlerClient(ctx context.Context, mux *runtime.ServeMux, client WalletSolidityClient) error
RegisterWalletSolidityHandlerClient registers the http handlers for service WalletSolidity to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "WalletSolidityClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "WalletSolidityClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "WalletSolidityClient" to call the correct interceptors.
func RegisterWalletSolidityHandlerFromEndpoint ¶
func RegisterWalletSolidityHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterWalletSolidityHandlerFromEndpoint is same as RegisterWalletSolidityHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterWalletSolidityServer ¶
func RegisterWalletSolidityServer(s *grpc.Server, srv WalletSolidityServer)
Types ¶
type AccountNetMessage ¶
type AccountNetMessage struct { FreeNetUsed int64 `protobuf:"varint,1,opt,name=freeNetUsed,proto3" json:"freeNetUsed,omitempty"` FreeNetLimit int64 `protobuf:"varint,2,opt,name=freeNetLimit,proto3" json:"freeNetLimit,omitempty"` NetUsed int64 `protobuf:"varint,3,opt,name=NetUsed,proto3" json:"NetUsed,omitempty"` NetLimit int64 `protobuf:"varint,4,opt,name=NetLimit,proto3" json:"NetLimit,omitempty"` AssetNetUsed map[string]int64 `` /* 166-byte string literal not displayed */ AssetNetLimit map[string]int64 `` /* 168-byte string literal not displayed */ TotalNetLimit int64 `protobuf:"varint,7,opt,name=TotalNetLimit,proto3" json:"TotalNetLimit,omitempty"` TotalNetWeight int64 `protobuf:"varint,8,opt,name=TotalNetWeight,proto3" json:"TotalNetWeight,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AccountNetMessage) Descriptor ¶
func (*AccountNetMessage) Descriptor() ([]byte, []int)
func (*AccountNetMessage) GetAssetNetLimit ¶
func (m *AccountNetMessage) GetAssetNetLimit() map[string]int64
func (*AccountNetMessage) GetAssetNetUsed ¶
func (m *AccountNetMessage) GetAssetNetUsed() map[string]int64
func (*AccountNetMessage) GetFreeNetLimit ¶
func (m *AccountNetMessage) GetFreeNetLimit() int64
func (*AccountNetMessage) GetFreeNetUsed ¶
func (m *AccountNetMessage) GetFreeNetUsed() int64
func (*AccountNetMessage) GetNetLimit ¶
func (m *AccountNetMessage) GetNetLimit() int64
func (*AccountNetMessage) GetNetUsed ¶
func (m *AccountNetMessage) GetNetUsed() int64
func (*AccountNetMessage) GetTotalNetLimit ¶
func (m *AccountNetMessage) GetTotalNetLimit() int64
func (*AccountNetMessage) GetTotalNetWeight ¶
func (m *AccountNetMessage) GetTotalNetWeight() int64
func (*AccountNetMessage) ProtoMessage ¶
func (*AccountNetMessage) ProtoMessage()
func (*AccountNetMessage) Reset ¶
func (m *AccountNetMessage) Reset()
func (*AccountNetMessage) String ¶
func (m *AccountNetMessage) String() string
func (*AccountNetMessage) XXX_DiscardUnknown ¶
func (m *AccountNetMessage) XXX_DiscardUnknown()
func (*AccountNetMessage) XXX_Marshal ¶
func (m *AccountNetMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AccountNetMessage) XXX_Merge ¶
func (dst *AccountNetMessage) XXX_Merge(src proto.Message)
func (*AccountNetMessage) XXX_Size ¶
func (m *AccountNetMessage) XXX_Size() int
func (*AccountNetMessage) XXX_Unmarshal ¶
func (m *AccountNetMessage) XXX_Unmarshal(b []byte) error
type AccountPaginated ¶
type AccountPaginated struct { Account *core.Account `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` Offset int64 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"` Limit int64 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AccountPaginated) Descriptor ¶
func (*AccountPaginated) Descriptor() ([]byte, []int)
func (*AccountPaginated) GetAccount ¶
func (m *AccountPaginated) GetAccount() *core.Account
func (*AccountPaginated) GetLimit ¶
func (m *AccountPaginated) GetLimit() int64
func (*AccountPaginated) GetOffset ¶
func (m *AccountPaginated) GetOffset() int64
func (*AccountPaginated) ProtoMessage ¶
func (*AccountPaginated) ProtoMessage()
func (*AccountPaginated) Reset ¶
func (m *AccountPaginated) Reset()
func (*AccountPaginated) String ¶
func (m *AccountPaginated) String() string
func (*AccountPaginated) XXX_DiscardUnknown ¶
func (m *AccountPaginated) XXX_DiscardUnknown()
func (*AccountPaginated) XXX_Marshal ¶
func (m *AccountPaginated) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AccountPaginated) XXX_Merge ¶
func (dst *AccountPaginated) XXX_Merge(src proto.Message)
func (*AccountPaginated) XXX_Size ¶
func (m *AccountPaginated) XXX_Size() int
func (*AccountPaginated) XXX_Unmarshal ¶
func (m *AccountPaginated) XXX_Unmarshal(b []byte) error
type Address ¶
type Address struct { Host []byte `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"` Port int32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Gossip node address
func (*Address) Descriptor ¶
func (*Address) ProtoMessage ¶
func (*Address) ProtoMessage()
func (*Address) XXX_DiscardUnknown ¶
func (m *Address) XXX_DiscardUnknown()
func (*Address) XXX_Marshal ¶
func (*Address) XXX_Unmarshal ¶
type AddressPrKeyPairMessage ¶
type AddressPrKeyPairMessage struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` PrivateKey string `protobuf:"bytes,2,opt,name=privateKey,proto3" json:"privateKey,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AddressPrKeyPairMessage) Descriptor ¶
func (*AddressPrKeyPairMessage) Descriptor() ([]byte, []int)
func (*AddressPrKeyPairMessage) GetAddress ¶
func (m *AddressPrKeyPairMessage) GetAddress() string
func (*AddressPrKeyPairMessage) GetPrivateKey ¶
func (m *AddressPrKeyPairMessage) GetPrivateKey() string
func (*AddressPrKeyPairMessage) ProtoMessage ¶
func (*AddressPrKeyPairMessage) ProtoMessage()
func (*AddressPrKeyPairMessage) Reset ¶
func (m *AddressPrKeyPairMessage) Reset()
func (*AddressPrKeyPairMessage) String ¶
func (m *AddressPrKeyPairMessage) String() string
func (*AddressPrKeyPairMessage) XXX_DiscardUnknown ¶
func (m *AddressPrKeyPairMessage) XXX_DiscardUnknown()
func (*AddressPrKeyPairMessage) XXX_Marshal ¶
func (m *AddressPrKeyPairMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AddressPrKeyPairMessage) XXX_Merge ¶
func (dst *AddressPrKeyPairMessage) XXX_Merge(src proto.Message)
func (*AddressPrKeyPairMessage) XXX_Size ¶
func (m *AddressPrKeyPairMessage) XXX_Size() int
func (*AddressPrKeyPairMessage) XXX_Unmarshal ¶
func (m *AddressPrKeyPairMessage) XXX_Unmarshal(b []byte) error
type AssetIssueList ¶
type AssetIssueList struct { AssetIssue []*core.AssetIssueContract `protobuf:"bytes,1,rep,name=assetIssue,proto3" json:"assetIssue,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AssetIssueList) Descriptor ¶
func (*AssetIssueList) Descriptor() ([]byte, []int)
func (*AssetIssueList) GetAssetIssue ¶
func (m *AssetIssueList) GetAssetIssue() []*core.AssetIssueContract
func (*AssetIssueList) ProtoMessage ¶
func (*AssetIssueList) ProtoMessage()
func (*AssetIssueList) Reset ¶
func (m *AssetIssueList) Reset()
func (*AssetIssueList) String ¶
func (m *AssetIssueList) String() string
func (*AssetIssueList) XXX_DiscardUnknown ¶
func (m *AssetIssueList) XXX_DiscardUnknown()
func (*AssetIssueList) XXX_Marshal ¶
func (m *AssetIssueList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AssetIssueList) XXX_Merge ¶
func (dst *AssetIssueList) XXX_Merge(src proto.Message)
func (*AssetIssueList) XXX_Size ¶
func (m *AssetIssueList) XXX_Size() int
func (*AssetIssueList) XXX_Unmarshal ¶
func (m *AssetIssueList) XXX_Unmarshal(b []byte) error
type BlockLimit ¶
type BlockLimit struct { StartNum int64 `protobuf:"varint,1,opt,name=startNum,proto3" json:"startNum,omitempty"` EndNum int64 `protobuf:"varint,2,opt,name=endNum,proto3" json:"endNum,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*BlockLimit) Descriptor ¶
func (*BlockLimit) Descriptor() ([]byte, []int)
func (*BlockLimit) GetEndNum ¶
func (m *BlockLimit) GetEndNum() int64
func (*BlockLimit) GetStartNum ¶
func (m *BlockLimit) GetStartNum() int64
func (*BlockLimit) ProtoMessage ¶
func (*BlockLimit) ProtoMessage()
func (*BlockLimit) Reset ¶
func (m *BlockLimit) Reset()
func (*BlockLimit) String ¶
func (m *BlockLimit) String() string
func (*BlockLimit) XXX_DiscardUnknown ¶
func (m *BlockLimit) XXX_DiscardUnknown()
func (*BlockLimit) XXX_Marshal ¶
func (m *BlockLimit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BlockLimit) XXX_Merge ¶
func (dst *BlockLimit) XXX_Merge(src proto.Message)
func (*BlockLimit) XXX_Size ¶
func (m *BlockLimit) XXX_Size() int
func (*BlockLimit) XXX_Unmarshal ¶
func (m *BlockLimit) XXX_Unmarshal(b []byte) error
type BlockList ¶
type BlockList struct { Block []*core.Block `protobuf:"bytes,1,rep,name=block,proto3" json:"block,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*BlockList) Descriptor ¶
func (*BlockList) ProtoMessage ¶
func (*BlockList) ProtoMessage()
func (*BlockList) XXX_DiscardUnknown ¶
func (m *BlockList) XXX_DiscardUnknown()
func (*BlockList) XXX_Marshal ¶
func (*BlockList) XXX_Unmarshal ¶
type BlockReference ¶
type BlockReference struct { BlockNum int64 `protobuf:"varint,1,opt,name=block_num,json=blockNum,proto3" json:"block_num,omitempty"` BlockHash []byte `protobuf:"bytes,2,opt,name=block_hash,json=blockHash,proto3" json:"block_hash,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*BlockReference) Descriptor ¶
func (*BlockReference) Descriptor() ([]byte, []int)
func (*BlockReference) GetBlockHash ¶
func (m *BlockReference) GetBlockHash() []byte
func (*BlockReference) GetBlockNum ¶
func (m *BlockReference) GetBlockNum() int64
func (*BlockReference) ProtoMessage ¶
func (*BlockReference) ProtoMessage()
func (*BlockReference) Reset ¶
func (m *BlockReference) Reset()
func (*BlockReference) String ¶
func (m *BlockReference) String() string
func (*BlockReference) XXX_DiscardUnknown ¶
func (m *BlockReference) XXX_DiscardUnknown()
func (*BlockReference) XXX_Marshal ¶
func (m *BlockReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BlockReference) XXX_Merge ¶
func (dst *BlockReference) XXX_Merge(src proto.Message)
func (*BlockReference) XXX_Size ¶
func (m *BlockReference) XXX_Size() int
func (*BlockReference) XXX_Unmarshal ¶
func (m *BlockReference) XXX_Unmarshal(b []byte) error
type BytesMessage ¶
type BytesMessage struct { Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*BytesMessage) Descriptor ¶
func (*BytesMessage) Descriptor() ([]byte, []int)
func (*BytesMessage) GetValue ¶
func (m *BytesMessage) GetValue() []byte
func (*BytesMessage) ProtoMessage ¶
func (*BytesMessage) ProtoMessage()
func (*BytesMessage) Reset ¶
func (m *BytesMessage) Reset()
func (*BytesMessage) String ¶
func (m *BytesMessage) String() string
func (*BytesMessage) XXX_DiscardUnknown ¶
func (m *BytesMessage) XXX_DiscardUnknown()
func (*BytesMessage) XXX_Marshal ¶
func (m *BytesMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BytesMessage) XXX_Merge ¶
func (dst *BytesMessage) XXX_Merge(src proto.Message)
func (*BytesMessage) XXX_Size ¶
func (m *BytesMessage) XXX_Size() int
func (*BytesMessage) XXX_Unmarshal ¶
func (m *BytesMessage) XXX_Unmarshal(b []byte) error
type DatabaseClient ¶
type DatabaseClient interface { // for tapos GetBlockReference(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*BlockReference, error) GetDynamicProperties(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*core.DynamicProperties, error) GetNowBlock(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*core.Block, error) GetBlockByNum(ctx context.Context, in *NumberMessage, opts ...grpc.CallOption) (*core.Block, error) }
DatabaseClient is the client API for Database service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewDatabaseClient ¶
func NewDatabaseClient(cc *grpc.ClientConn) DatabaseClient
type DatabaseServer ¶
type DatabaseServer interface { // for tapos GetBlockReference(context.Context, *EmptyMessage) (*BlockReference, error) GetDynamicProperties(context.Context, *EmptyMessage) (*core.DynamicProperties, error) GetNowBlock(context.Context, *EmptyMessage) (*core.Block, error) GetBlockByNum(context.Context, *NumberMessage) (*core.Block, error) }
DatabaseServer is the server API for Database service.
type EasyTransferMessage ¶
type EasyTransferMessage struct { PassPhrase []byte `protobuf:"bytes,1,opt,name=passPhrase,proto3" json:"passPhrase,omitempty"` ToAddress []byte `protobuf:"bytes,2,opt,name=toAddress,proto3" json:"toAddress,omitempty"` Amount int64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*EasyTransferMessage) Descriptor ¶
func (*EasyTransferMessage) Descriptor() ([]byte, []int)
func (*EasyTransferMessage) GetAmount ¶
func (m *EasyTransferMessage) GetAmount() int64
func (*EasyTransferMessage) GetPassPhrase ¶
func (m *EasyTransferMessage) GetPassPhrase() []byte
func (*EasyTransferMessage) GetToAddress ¶
func (m *EasyTransferMessage) GetToAddress() []byte
func (*EasyTransferMessage) ProtoMessage ¶
func (*EasyTransferMessage) ProtoMessage()
func (*EasyTransferMessage) Reset ¶
func (m *EasyTransferMessage) Reset()
func (*EasyTransferMessage) String ¶
func (m *EasyTransferMessage) String() string
func (*EasyTransferMessage) XXX_DiscardUnknown ¶
func (m *EasyTransferMessage) XXX_DiscardUnknown()
func (*EasyTransferMessage) XXX_Marshal ¶
func (m *EasyTransferMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EasyTransferMessage) XXX_Merge ¶
func (dst *EasyTransferMessage) XXX_Merge(src proto.Message)
func (*EasyTransferMessage) XXX_Size ¶
func (m *EasyTransferMessage) XXX_Size() int
func (*EasyTransferMessage) XXX_Unmarshal ¶
func (m *EasyTransferMessage) XXX_Unmarshal(b []byte) error
type EasyTransferResponse ¶
type EasyTransferResponse struct { Transaction *core.Transaction `protobuf:"bytes,1,opt,name=transaction,proto3" json:"transaction,omitempty"` Result *Return `protobuf:"bytes,2,opt,name=result,proto3" json:"result,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*EasyTransferResponse) Descriptor ¶
func (*EasyTransferResponse) Descriptor() ([]byte, []int)
func (*EasyTransferResponse) GetResult ¶
func (m *EasyTransferResponse) GetResult() *Return
func (*EasyTransferResponse) GetTransaction ¶
func (m *EasyTransferResponse) GetTransaction() *core.Transaction
func (*EasyTransferResponse) ProtoMessage ¶
func (*EasyTransferResponse) ProtoMessage()
func (*EasyTransferResponse) Reset ¶
func (m *EasyTransferResponse) Reset()
func (*EasyTransferResponse) String ¶
func (m *EasyTransferResponse) String() string
func (*EasyTransferResponse) XXX_DiscardUnknown ¶
func (m *EasyTransferResponse) XXX_DiscardUnknown()
func (*EasyTransferResponse) XXX_Marshal ¶
func (m *EasyTransferResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EasyTransferResponse) XXX_Merge ¶
func (dst *EasyTransferResponse) XXX_Merge(src proto.Message)
func (*EasyTransferResponse) XXX_Size ¶
func (m *EasyTransferResponse) XXX_Size() int
func (*EasyTransferResponse) XXX_Unmarshal ¶
func (m *EasyTransferResponse) XXX_Unmarshal(b []byte) error
type EmptyMessage ¶
type EmptyMessage struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*EmptyMessage) Descriptor ¶
func (*EmptyMessage) Descriptor() ([]byte, []int)
func (*EmptyMessage) ProtoMessage ¶
func (*EmptyMessage) ProtoMessage()
func (*EmptyMessage) Reset ¶
func (m *EmptyMessage) Reset()
func (*EmptyMessage) String ¶
func (m *EmptyMessage) String() string
func (*EmptyMessage) XXX_DiscardUnknown ¶
func (m *EmptyMessage) XXX_DiscardUnknown()
func (*EmptyMessage) XXX_Marshal ¶
func (m *EmptyMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EmptyMessage) XXX_Merge ¶
func (dst *EmptyMessage) XXX_Merge(src proto.Message)
func (*EmptyMessage) XXX_Size ¶
func (m *EmptyMessage) XXX_Size() int
func (*EmptyMessage) XXX_Unmarshal ¶
func (m *EmptyMessage) XXX_Unmarshal(b []byte) error
type NetworkClient ¶
type NetworkClient interface { }
NetworkClient is the client API for Network service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewNetworkClient ¶
func NewNetworkClient(cc *grpc.ClientConn) NetworkClient
type NetworkServer ¶
type NetworkServer interface { }
NetworkServer is the server API for Network service.
type Node ¶
type Node struct { Address *Address `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Gossip node
func (*Node) Descriptor ¶
func (*Node) GetAddress ¶
func (*Node) ProtoMessage ¶
func (*Node) ProtoMessage()
func (*Node) XXX_DiscardUnknown ¶
func (m *Node) XXX_DiscardUnknown()
func (*Node) XXX_Unmarshal ¶
type NodeList ¶
type NodeList struct { Nodes []*Node `protobuf:"bytes,1,rep,name=nodes,proto3" json:"nodes,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Gossip node list
func (*NodeList) Descriptor ¶
func (*NodeList) ProtoMessage ¶
func (*NodeList) ProtoMessage()
func (*NodeList) XXX_DiscardUnknown ¶
func (m *NodeList) XXX_DiscardUnknown()
func (*NodeList) XXX_Marshal ¶
func (*NodeList) XXX_Unmarshal ¶
type NumberMessage ¶
type NumberMessage struct { Num int64 `protobuf:"varint,1,opt,name=num,proto3" json:"num,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*NumberMessage) Descriptor ¶
func (*NumberMessage) Descriptor() ([]byte, []int)
func (*NumberMessage) GetNum ¶
func (m *NumberMessage) GetNum() int64
func (*NumberMessage) ProtoMessage ¶
func (*NumberMessage) ProtoMessage()
func (*NumberMessage) Reset ¶
func (m *NumberMessage) Reset()
func (*NumberMessage) String ¶
func (m *NumberMessage) String() string
func (*NumberMessage) XXX_DiscardUnknown ¶
func (m *NumberMessage) XXX_DiscardUnknown()
func (*NumberMessage) XXX_Marshal ¶
func (m *NumberMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*NumberMessage) XXX_Merge ¶
func (dst *NumberMessage) XXX_Merge(src proto.Message)
func (*NumberMessage) XXX_Size ¶
func (m *NumberMessage) XXX_Size() int
func (*NumberMessage) XXX_Unmarshal ¶
func (m *NumberMessage) XXX_Unmarshal(b []byte) error
type PaginatedMessage ¶
type PaginatedMessage struct { Offset int64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"` Limit int64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PaginatedMessage) Descriptor ¶
func (*PaginatedMessage) Descriptor() ([]byte, []int)
func (*PaginatedMessage) GetLimit ¶
func (m *PaginatedMessage) GetLimit() int64
func (*PaginatedMessage) GetOffset ¶
func (m *PaginatedMessage) GetOffset() int64
func (*PaginatedMessage) ProtoMessage ¶
func (*PaginatedMessage) ProtoMessage()
func (*PaginatedMessage) Reset ¶
func (m *PaginatedMessage) Reset()
func (*PaginatedMessage) String ¶
func (m *PaginatedMessage) String() string
func (*PaginatedMessage) XXX_DiscardUnknown ¶
func (m *PaginatedMessage) XXX_DiscardUnknown()
func (*PaginatedMessage) XXX_Marshal ¶
func (m *PaginatedMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PaginatedMessage) XXX_Merge ¶
func (dst *PaginatedMessage) XXX_Merge(src proto.Message)
func (*PaginatedMessage) XXX_Size ¶
func (m *PaginatedMessage) XXX_Size() int
func (*PaginatedMessage) XXX_Unmarshal ¶
func (m *PaginatedMessage) XXX_Unmarshal(b []byte) error
type Return ¶
type Return struct { Result bool `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"` Code ReturnResponseCode `protobuf:"varint,2,opt,name=code,proto3,enum=protocol.ReturnResponseCode" json:"code,omitempty"` Message []byte `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Return) Descriptor ¶
func (*Return) GetCode ¶
func (m *Return) GetCode() ReturnResponseCode
func (*Return) GetMessage ¶
func (*Return) ProtoMessage ¶
func (*Return) ProtoMessage()
func (*Return) XXX_DiscardUnknown ¶
func (m *Return) XXX_DiscardUnknown()
func (*Return) XXX_Marshal ¶
func (*Return) XXX_Unmarshal ¶
type ReturnResponseCode ¶
type ReturnResponseCode int32
const ( Return_SUCCESS ReturnResponseCode = 0 Return_SIGERROR ReturnResponseCode = 1 Return_CONTRACT_VALIDATE_ERROR ReturnResponseCode = 2 Return_CONTRACT_EXE_ERROR ReturnResponseCode = 3 Return_BANDWITH_ERROR ReturnResponseCode = 4 Return_DUP_TRANSACTION_ERROR ReturnResponseCode = 5 Return_TAPOS_ERROR ReturnResponseCode = 6 Return_TOO_BIG_TRANSACTION_ERROR ReturnResponseCode = 7 Return_TRANSACTION_EXPIRATION_ERROR ReturnResponseCode = 8 Return_SERVER_BUSY ReturnResponseCode = 9 Return_OTHER_ERROR ReturnResponseCode = 20 )
func (ReturnResponseCode) EnumDescriptor ¶
func (ReturnResponseCode) EnumDescriptor() ([]byte, []int)
func (ReturnResponseCode) String ¶
func (x ReturnResponseCode) String() string
type TimeMessage ¶
type TimeMessage struct { BeginInMilliseconds int64 `protobuf:"varint,1,opt,name=beginInMilliseconds,proto3" json:"beginInMilliseconds,omitempty"` EndInMilliseconds int64 `protobuf:"varint,2,opt,name=endInMilliseconds,proto3" json:"endInMilliseconds,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TimeMessage) Descriptor ¶
func (*TimeMessage) Descriptor() ([]byte, []int)
func (*TimeMessage) GetBeginInMilliseconds ¶
func (m *TimeMessage) GetBeginInMilliseconds() int64
func (*TimeMessage) GetEndInMilliseconds ¶
func (m *TimeMessage) GetEndInMilliseconds() int64
func (*TimeMessage) ProtoMessage ¶
func (*TimeMessage) ProtoMessage()
func (*TimeMessage) Reset ¶
func (m *TimeMessage) Reset()
func (*TimeMessage) String ¶
func (m *TimeMessage) String() string
func (*TimeMessage) XXX_DiscardUnknown ¶
func (m *TimeMessage) XXX_DiscardUnknown()
func (*TimeMessage) XXX_Marshal ¶
func (m *TimeMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TimeMessage) XXX_Merge ¶
func (dst *TimeMessage) XXX_Merge(src proto.Message)
func (*TimeMessage) XXX_Size ¶
func (m *TimeMessage) XXX_Size() int
func (*TimeMessage) XXX_Unmarshal ¶
func (m *TimeMessage) XXX_Unmarshal(b []byte) error
type TimePaginatedMessage ¶
type TimePaginatedMessage struct { TimeMessage *TimeMessage `protobuf:"bytes,1,opt,name=timeMessage,proto3" json:"timeMessage,omitempty"` Offset int64 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"` Limit int64 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TimePaginatedMessage) Descriptor ¶
func (*TimePaginatedMessage) Descriptor() ([]byte, []int)
func (*TimePaginatedMessage) GetLimit ¶
func (m *TimePaginatedMessage) GetLimit() int64
func (*TimePaginatedMessage) GetOffset ¶
func (m *TimePaginatedMessage) GetOffset() int64
func (*TimePaginatedMessage) GetTimeMessage ¶
func (m *TimePaginatedMessage) GetTimeMessage() *TimeMessage
func (*TimePaginatedMessage) ProtoMessage ¶
func (*TimePaginatedMessage) ProtoMessage()
func (*TimePaginatedMessage) Reset ¶
func (m *TimePaginatedMessage) Reset()
func (*TimePaginatedMessage) String ¶
func (m *TimePaginatedMessage) String() string
func (*TimePaginatedMessage) XXX_DiscardUnknown ¶
func (m *TimePaginatedMessage) XXX_DiscardUnknown()
func (*TimePaginatedMessage) XXX_Marshal ¶
func (m *TimePaginatedMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TimePaginatedMessage) XXX_Merge ¶
func (dst *TimePaginatedMessage) XXX_Merge(src proto.Message)
func (*TimePaginatedMessage) XXX_Size ¶
func (m *TimePaginatedMessage) XXX_Size() int
func (*TimePaginatedMessage) XXX_Unmarshal ¶
func (m *TimePaginatedMessage) XXX_Unmarshal(b []byte) error
type TransactionLimit ¶
type TransactionLimit struct { TransactionId []byte `protobuf:"bytes,1,opt,name=transactionId,proto3" json:"transactionId,omitempty"` LimitNum int64 `protobuf:"varint,2,opt,name=limitNum,proto3" json:"limitNum,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TransactionLimit) Descriptor ¶
func (*TransactionLimit) Descriptor() ([]byte, []int)
func (*TransactionLimit) GetLimitNum ¶
func (m *TransactionLimit) GetLimitNum() int64
func (*TransactionLimit) GetTransactionId ¶
func (m *TransactionLimit) GetTransactionId() []byte
func (*TransactionLimit) ProtoMessage ¶
func (*TransactionLimit) ProtoMessage()
func (*TransactionLimit) Reset ¶
func (m *TransactionLimit) Reset()
func (*TransactionLimit) String ¶
func (m *TransactionLimit) String() string
func (*TransactionLimit) XXX_DiscardUnknown ¶
func (m *TransactionLimit) XXX_DiscardUnknown()
func (*TransactionLimit) XXX_Marshal ¶
func (m *TransactionLimit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TransactionLimit) XXX_Merge ¶
func (dst *TransactionLimit) XXX_Merge(src proto.Message)
func (*TransactionLimit) XXX_Size ¶
func (m *TransactionLimit) XXX_Size() int
func (*TransactionLimit) XXX_Unmarshal ¶
func (m *TransactionLimit) XXX_Unmarshal(b []byte) error
type TransactionList ¶
type TransactionList struct { Transaction []*core.Transaction `protobuf:"bytes,1,rep,name=transaction,proto3" json:"transaction,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TransactionList) Descriptor ¶
func (*TransactionList) Descriptor() ([]byte, []int)
func (*TransactionList) GetTransaction ¶
func (m *TransactionList) GetTransaction() []*core.Transaction
func (*TransactionList) ProtoMessage ¶
func (*TransactionList) ProtoMessage()
func (*TransactionList) Reset ¶
func (m *TransactionList) Reset()
func (*TransactionList) String ¶
func (m *TransactionList) String() string
func (*TransactionList) XXX_DiscardUnknown ¶
func (m *TransactionList) XXX_DiscardUnknown()
func (*TransactionList) XXX_Marshal ¶
func (m *TransactionList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TransactionList) XXX_Merge ¶
func (dst *TransactionList) XXX_Merge(src proto.Message)
func (*TransactionList) XXX_Size ¶
func (m *TransactionList) XXX_Size() int
func (*TransactionList) XXX_Unmarshal ¶
func (m *TransactionList) XXX_Unmarshal(b []byte) error
type WalletClient ¶
type WalletClient interface { GetAccount(ctx context.Context, in *core.Account, opts ...grpc.CallOption) (*core.Account, error) CreateTransaction(ctx context.Context, in *core.TransferContract, opts ...grpc.CallOption) (*core.Transaction, error) BroadcastTransaction(ctx context.Context, in *core.Transaction, opts ...grpc.CallOption) (*Return, error) UpdateAccount(ctx context.Context, in *core.AccountUpdateContract, opts ...grpc.CallOption) (*core.Transaction, error) VoteWitnessAccount(ctx context.Context, in *core.VoteWitnessContract, opts ...grpc.CallOption) (*core.Transaction, error) CreateAssetIssue(ctx context.Context, in *core.AssetIssueContract, opts ...grpc.CallOption) (*core.Transaction, error) UpdateWitness(ctx context.Context, in *core.WitnessUpdateContract, opts ...grpc.CallOption) (*core.Transaction, error) CreateAccount(ctx context.Context, in *core.AccountCreateContract, opts ...grpc.CallOption) (*core.Transaction, error) CreateWitness(ctx context.Context, in *core.WitnessCreateContract, opts ...grpc.CallOption) (*core.Transaction, error) TransferAsset(ctx context.Context, in *core.TransferAssetContract, opts ...grpc.CallOption) (*core.Transaction, error) ParticipateAssetIssue(ctx context.Context, in *core.ParticipateAssetIssueContract, opts ...grpc.CallOption) (*core.Transaction, error) FreezeBalance(ctx context.Context, in *core.FreezeBalanceContract, opts ...grpc.CallOption) (*core.Transaction, error) UnfreezeBalance(ctx context.Context, in *core.UnfreezeBalanceContract, opts ...grpc.CallOption) (*core.Transaction, error) UnfreezeAsset(ctx context.Context, in *core.UnfreezeAssetContract, opts ...grpc.CallOption) (*core.Transaction, error) WithdrawBalance(ctx context.Context, in *core.WithdrawBalanceContract, opts ...grpc.CallOption) (*core.Transaction, error) UpdateAsset(ctx context.Context, in *core.UpdateAssetContract, opts ...grpc.CallOption) (*core.Transaction, error) ListNodes(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*NodeList, error) GetAssetIssueByAccount(ctx context.Context, in *core.Account, opts ...grpc.CallOption) (*AssetIssueList, error) GetAccountNet(ctx context.Context, in *core.Account, opts ...grpc.CallOption) (*AccountNetMessage, error) GetAssetIssueByName(ctx context.Context, in *BytesMessage, opts ...grpc.CallOption) (*core.AssetIssueContract, error) GetNowBlock(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*core.Block, error) GetBlockByNum(ctx context.Context, in *NumberMessage, opts ...grpc.CallOption) (*core.Block, error) GetBlockById(ctx context.Context, in *BytesMessage, opts ...grpc.CallOption) (*core.Block, error) GetBlockByLimitNext(ctx context.Context, in *BlockLimit, opts ...grpc.CallOption) (*BlockList, error) GetBlockByLatestNum(ctx context.Context, in *NumberMessage, opts ...grpc.CallOption) (*BlockList, error) GetTransactionById(ctx context.Context, in *BytesMessage, opts ...grpc.CallOption) (*core.Transaction, error) ListWitnesses(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*WitnessList, error) GetAssetIssueList(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*AssetIssueList, error) GetPaginatedAssetIssueList(ctx context.Context, in *PaginatedMessage, opts ...grpc.CallOption) (*AssetIssueList, error) TotalTransaction(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*NumberMessage, error) GetNextMaintenanceTime(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*NumberMessage, error) // Warning: do not invoke this interface provided by others. GetTransactionSign(ctx context.Context, in *core.TransactionSign, opts ...grpc.CallOption) (*core.Transaction, error) // Warning: do not invoke this interface provided by others. CreateAdresss(ctx context.Context, in *BytesMessage, opts ...grpc.CallOption) (*BytesMessage, error) // Warning: do not invoke this interface provided by others. EasyTransfer(ctx context.Context, in *EasyTransferMessage, opts ...grpc.CallOption) (*EasyTransferResponse, error) // Warning: do not invoke this interface provided by others. GenerateAddress(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*AddressPrKeyPairMessage, error) }
WalletClient is the client API for Wallet service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewWalletClient ¶
func NewWalletClient(cc *grpc.ClientConn) WalletClient
type WalletExtensionClient ¶
type WalletExtensionClient interface { GetTransactionsFromThis(ctx context.Context, in *AccountPaginated, opts ...grpc.CallOption) (*TransactionList, error) GetTransactionsToThis(ctx context.Context, in *AccountPaginated, opts ...grpc.CallOption) (*TransactionList, error) }
WalletExtensionClient is the client API for WalletExtension service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewWalletExtensionClient ¶
func NewWalletExtensionClient(cc *grpc.ClientConn) WalletExtensionClient
type WalletExtensionServer ¶
type WalletExtensionServer interface { GetTransactionsFromThis(context.Context, *AccountPaginated) (*TransactionList, error) GetTransactionsToThis(context.Context, *AccountPaginated) (*TransactionList, error) }
WalletExtensionServer is the server API for WalletExtension service.
type WalletServer ¶
type WalletServer interface { GetAccount(context.Context, *core.Account) (*core.Account, error) CreateTransaction(context.Context, *core.TransferContract) (*core.Transaction, error) BroadcastTransaction(context.Context, *core.Transaction) (*Return, error) UpdateAccount(context.Context, *core.AccountUpdateContract) (*core.Transaction, error) VoteWitnessAccount(context.Context, *core.VoteWitnessContract) (*core.Transaction, error) CreateAssetIssue(context.Context, *core.AssetIssueContract) (*core.Transaction, error) UpdateWitness(context.Context, *core.WitnessUpdateContract) (*core.Transaction, error) CreateAccount(context.Context, *core.AccountCreateContract) (*core.Transaction, error) CreateWitness(context.Context, *core.WitnessCreateContract) (*core.Transaction, error) TransferAsset(context.Context, *core.TransferAssetContract) (*core.Transaction, error) ParticipateAssetIssue(context.Context, *core.ParticipateAssetIssueContract) (*core.Transaction, error) FreezeBalance(context.Context, *core.FreezeBalanceContract) (*core.Transaction, error) UnfreezeBalance(context.Context, *core.UnfreezeBalanceContract) (*core.Transaction, error) UnfreezeAsset(context.Context, *core.UnfreezeAssetContract) (*core.Transaction, error) WithdrawBalance(context.Context, *core.WithdrawBalanceContract) (*core.Transaction, error) UpdateAsset(context.Context, *core.UpdateAssetContract) (*core.Transaction, error) ListNodes(context.Context, *EmptyMessage) (*NodeList, error) GetAssetIssueByAccount(context.Context, *core.Account) (*AssetIssueList, error) GetAccountNet(context.Context, *core.Account) (*AccountNetMessage, error) GetAssetIssueByName(context.Context, *BytesMessage) (*core.AssetIssueContract, error) GetNowBlock(context.Context, *EmptyMessage) (*core.Block, error) GetBlockByNum(context.Context, *NumberMessage) (*core.Block, error) GetBlockById(context.Context, *BytesMessage) (*core.Block, error) GetBlockByLimitNext(context.Context, *BlockLimit) (*BlockList, error) GetBlockByLatestNum(context.Context, *NumberMessage) (*BlockList, error) GetTransactionById(context.Context, *BytesMessage) (*core.Transaction, error) ListWitnesses(context.Context, *EmptyMessage) (*WitnessList, error) GetAssetIssueList(context.Context, *EmptyMessage) (*AssetIssueList, error) GetPaginatedAssetIssueList(context.Context, *PaginatedMessage) (*AssetIssueList, error) TotalTransaction(context.Context, *EmptyMessage) (*NumberMessage, error) GetNextMaintenanceTime(context.Context, *EmptyMessage) (*NumberMessage, error) // Warning: do not invoke this interface provided by others. GetTransactionSign(context.Context, *core.TransactionSign) (*core.Transaction, error) // Warning: do not invoke this interface provided by others. CreateAdresss(context.Context, *BytesMessage) (*BytesMessage, error) // Warning: do not invoke this interface provided by others. EasyTransfer(context.Context, *EasyTransferMessage) (*EasyTransferResponse, error) // Warning: do not invoke this interface provided by others. GenerateAddress(context.Context, *EmptyMessage) (*AddressPrKeyPairMessage, error) }
WalletServer is the server API for Wallet service.
type WalletSolidityClient ¶
type WalletSolidityClient interface { GetAccount(ctx context.Context, in *core.Account, opts ...grpc.CallOption) (*core.Account, error) ListWitnesses(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*WitnessList, error) GetAssetIssueList(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*AssetIssueList, error) GetPaginatedAssetIssueList(ctx context.Context, in *PaginatedMessage, opts ...grpc.CallOption) (*AssetIssueList, error) GetNowBlock(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*core.Block, error) GetBlockByNum(ctx context.Context, in *NumberMessage, opts ...grpc.CallOption) (*core.Block, error) GetTransactionById(ctx context.Context, in *BytesMessage, opts ...grpc.CallOption) (*core.Transaction, error) GetTransactionInfoById(ctx context.Context, in *BytesMessage, opts ...grpc.CallOption) (*core.TransactionInfo, error) // Warning: do not invoke this interface provided by others. GenerateAddress(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*AddressPrKeyPairMessage, error) }
WalletSolidityClient is the client API for WalletSolidity service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewWalletSolidityClient ¶
func NewWalletSolidityClient(cc *grpc.ClientConn) WalletSolidityClient
type WalletSolidityServer ¶
type WalletSolidityServer interface { GetAccount(context.Context, *core.Account) (*core.Account, error) ListWitnesses(context.Context, *EmptyMessage) (*WitnessList, error) GetAssetIssueList(context.Context, *EmptyMessage) (*AssetIssueList, error) GetPaginatedAssetIssueList(context.Context, *PaginatedMessage) (*AssetIssueList, error) GetNowBlock(context.Context, *EmptyMessage) (*core.Block, error) GetBlockByNum(context.Context, *NumberMessage) (*core.Block, error) GetTransactionById(context.Context, *BytesMessage) (*core.Transaction, error) GetTransactionInfoById(context.Context, *BytesMessage) (*core.TransactionInfo, error) // Warning: do not invoke this interface provided by others. GenerateAddress(context.Context, *EmptyMessage) (*AddressPrKeyPairMessage, error) }
WalletSolidityServer is the server API for WalletSolidity service.
type WitnessList ¶
type WitnessList struct { Witnesses []*core.Witness `protobuf:"bytes,1,rep,name=witnesses,proto3" json:"witnesses,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*WitnessList) Descriptor ¶
func (*WitnessList) Descriptor() ([]byte, []int)
func (*WitnessList) GetWitnesses ¶
func (m *WitnessList) GetWitnesses() []*core.Witness
func (*WitnessList) ProtoMessage ¶
func (*WitnessList) ProtoMessage()
func (*WitnessList) Reset ¶
func (m *WitnessList) Reset()
func (*WitnessList) String ¶
func (m *WitnessList) String() string
func (*WitnessList) XXX_DiscardUnknown ¶
func (m *WitnessList) XXX_DiscardUnknown()
func (*WitnessList) XXX_Marshal ¶
func (m *WitnessList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*WitnessList) XXX_Merge ¶
func (dst *WitnessList) XXX_Merge(src proto.Message)
func (*WitnessList) XXX_Size ¶
func (m *WitnessList) XXX_Size() int
func (*WitnessList) XXX_Unmarshal ¶
func (m *WitnessList) XXX_Unmarshal(b []byte) error