Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterNodeServer(s grpc.ServiceRegistrar, srv NodeServer)
- type NodeClient
- type NodeServer
- type RpcAccountAt
- func (*RpcAccountAt) Descriptor() ([]byte, []int)deprecated
- func (x *RpcAccountAt) GetAddress() []byte
- func (x *RpcAccountAt) GetChainid() uint32
- func (x *RpcAccountAt) GetHeight() uint64
- func (*RpcAccountAt) ProtoMessage()
- func (x *RpcAccountAt) ProtoReflect() protoreflect.Message
- func (x *RpcAccountAt) Reset()
- func (x *RpcAccountAt) String() string
- type RpcAddress
- func (*RpcAddress) Descriptor() ([]byte, []int)deprecated
- func (x *RpcAddress) GetAddress() []byte
- func (x *RpcAddress) GetChainid() uint32
- func (x *RpcAddress) MarshalJSON() ([]byte, error)
- func (x *RpcAddress) PrintString() string
- func (*RpcAddress) ProtoMessage()
- func (x *RpcAddress) ProtoReflect() protoreflect.Message
- func (x *RpcAddress) Reset()
- func (x *RpcAddress) String() string
- type RpcBlockHeight
- func (*RpcBlockHeight) Descriptor() ([]byte, []int)deprecated
- func (x *RpcBlockHeight) GetChainid() uint32
- func (x *RpcBlockHeight) GetHeight() uint64
- func (*RpcBlockHeight) ProtoMessage()
- func (x *RpcBlockHeight) ProtoReflect() protoreflect.Message
- func (x *RpcBlockHeight) Reset()
- func (x *RpcBlockHeight) String() string
- type RpcBlockTxsReq
- func (*RpcBlockTxsReq) Descriptor() ([]byte, []int)deprecated
- func (x *RpcBlockTxsReq) GetChainid() uint32
- func (x *RpcBlockTxsReq) GetHeight() uint64
- func (x *RpcBlockTxsReq) GetPage() int32
- func (x *RpcBlockTxsReq) GetSize() int32
- func (*RpcBlockTxsReq) ProtoMessage()
- func (x *RpcBlockTxsReq) ProtoReflect() protoreflect.Message
- func (x *RpcBlockTxsReq) Reset()
- func (x *RpcBlockTxsReq) String() string
- type RpcBridgeToAt
- func (*RpcBridgeToAt) Descriptor() ([]byte, []int)deprecated
- func (x *RpcBridgeToAt) GetAtHeight() uint64
- func (x *RpcBridgeToAt) GetCurrentChain() uint32
- func (x *RpcBridgeToAt) GetReqHeight() uint64
- func (x *RpcBridgeToAt) GetToChain() uint32
- func (*RpcBridgeToAt) ProtoMessage()
- func (x *RpcBridgeToAt) ProtoReflect() protoreflect.Message
- func (x *RpcBridgeToAt) Reset()
- func (x *RpcBridgeToAt) String() string
- type RpcCashCheck
- func (*RpcCashCheck) Descriptor() ([]byte, []int)deprecated
- func (x *RpcCashCheck) FromCashCheck(vcc *models.CashCheck) error
- func (x *RpcCashCheck) GetAmount() string
- func (x *RpcCashCheck) GetChainid() uint32
- func (x *RpcCashCheck) GetCurrencyId() int32
- func (x *RpcCashCheck) GetExpireHeight() uint64
- func (x *RpcCashCheck) GetFrom() *RpcAddress
- func (x *RpcCashCheck) GetIsShard() bool
- func (x *RpcCashCheck) GetNonce() uint64
- func (x *RpcCashCheck) GetParentChain() uint32
- func (x *RpcCashCheck) GetTo() *RpcAddress
- func (x *RpcCashCheck) GetUselocal() bool
- func (*RpcCashCheck) ProtoMessage()
- func (x *RpcCashCheck) ProtoReflect() protoreflect.Message
- func (x *RpcCashCheck) Reset()
- func (x *RpcCashCheck) String() string
- func (x *RpcCashCheck) ToCashCheck() (*models.CashCheck, error)
- type RpcChainEpoch
- func (*RpcChainEpoch) Descriptor() ([]byte, []int)deprecated
- func (x *RpcChainEpoch) GetChainid() uint32
- func (x *RpcChainEpoch) GetEpoch() uint64
- func (*RpcChainEpoch) ProtoMessage()
- func (x *RpcChainEpoch) ProtoReflect() protoreflect.Message
- func (x *RpcChainEpoch) Reset()
- func (x *RpcChainEpoch) String() string
- type RpcChainInfoReq
- type RpcChainRequest
- type RpcGetRRInfoReq
- func (*RpcGetRRInfoReq) Descriptor() ([]byte, []int)deprecated
- func (x *RpcGetRRInfoReq) GetEra() int64
- func (x *RpcGetRRInfoReq) GetNodeId() []byte
- func (x *RpcGetRRInfoReq) GetRoot() []byte
- func (*RpcGetRRInfoReq) ProtoMessage()
- func (x *RpcGetRRInfoReq) ProtoReflect() protoreflect.Message
- func (x *RpcGetRRInfoReq) Reset()
- func (x *RpcGetRRInfoReq) String() string
- type RpcMsgReq
- type RpcRRChangesReq
- type RpcRRProofReq
- func (*RpcRRProofReq) Descriptor() ([]byte, []int)deprecated
- func (x *RpcRRProofReq) GetChainId() uint32
- func (x *RpcRRProofReq) GetNodeHash() []byte
- func (x *RpcRRProofReq) GetPub() []byte
- func (x *RpcRRProofReq) GetRootHash() []byte
- func (x *RpcRRProofReq) GetSig() []byte
- func (x *RpcRRProofReq) HashSerialize(w io.Writer) (int, error)
- func (x *RpcRRProofReq) HashValue() ([]byte, error)
- func (*RpcRRProofReq) ProtoMessage()
- func (x *RpcRRProofReq) ProtoReflect() protoreflect.Message
- func (x *RpcRRProofReq) Reset()
- func (x *RpcRRProofReq) String() string
- func (x *RpcRRProofReq) Verify() error
- type RpcReboot
- func (*RpcReboot) Descriptor() ([]byte, []int)deprecated
- func (x *RpcReboot) GetComm() [][]byte
- func (x *RpcReboot) GetLastHash() []byte
- func (x *RpcReboot) GetLastHeight() uint64
- func (x *RpcReboot) GetPubs() [][]byte
- func (x *RpcReboot) GetSigs() [][]byte
- func (*RpcReboot) ProtoMessage()
- func (x *RpcReboot) ProtoReflect() protoreflect.Message
- func (x *RpcReboot) Reset()
- func (x *RpcReboot) String() string
- func (x *RpcReboot) ToMessage() (*models.RebootMainChainMessage, error)
- type RpcRequest
- type RpcResponse
- func (*RpcResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RpcResponse) GetCode() int32
- func (x *RpcResponse) GetData() string
- func (x *RpcResponse) GetDetail() string
- func (*RpcResponse) ProtoMessage()
- func (x *RpcResponse) ProtoReflect() protoreflect.Message
- func (x *RpcResponse) Reset()
- func (x *RpcResponse) String() string
- func (x *RpcResponse) Success() bool
- type RpcResponseStream
- func (*RpcResponseStream) Descriptor() ([]byte, []int)deprecated
- func (x *RpcResponseStream) GetCode() int32
- func (x *RpcResponseStream) GetMsg() string
- func (x *RpcResponseStream) GetStream() []byte
- func (*RpcResponseStream) ProtoMessage()
- func (x *RpcResponseStream) ProtoReflect() protoreflect.Message
- func (x *RpcResponseStream) Reset()
- func (x *RpcResponseStream) String() string
- func (x *RpcResponseStream) Success() bool
- type RpcStatsReq
- type RpcTXHash
- type RpcTx
- func (*RpcTx) Descriptor() ([]byte, []int)deprecated
- func (x *RpcTx) FromTx(tx *models.Transaction, pas ...*models.PubAndSig) (rtx *RpcTx, err error)
- func (x *RpcTx) GetChainid() uint32
- func (x *RpcTx) GetExtra() []byte
- func (x *RpcTx) GetFrom() *RpcAddress
- func (x *RpcTx) GetInput() []byte
- func (x *RpcTx) GetMultipubs() [][]byte
- func (x *RpcTx) GetMultisigs() [][]byte
- func (x *RpcTx) GetNonce() uint64
- func (x *RpcTx) GetPub() []byte
- func (x *RpcTx) GetSig() []byte
- func (x *RpcTx) GetSignature() *models.PubAndSig
- func (x *RpcTx) GetTo() *RpcAddress
- func (x *RpcTx) GetUselocal() bool
- func (x *RpcTx) GetVal() string
- func (x *RpcTx) HashValue() ([]byte, error)
- func (x *RpcTx) InfoString(level common.IndentLevel) string
- func (x *RpcTx) PrintString() string
- func (*RpcTx) ProtoMessage()
- func (x *RpcTx) ProtoReflect() protoreflect.Message
- func (x *RpcTx) Reset()
- func (x *RpcTx) String() string
- func (x *RpcTx) ToTx() (*models.Transaction, error)
- type RpcTxFilter
- func (*RpcTxFilter) Descriptor() ([]byte, []int)deprecated
- func (x *RpcTxFilter) GetAddress() *RpcAddress
- func (x *RpcTxFilter) GetChainid() uint32
- func (x *RpcTxFilter) GetEndHeight() uint64
- func (x *RpcTxFilter) GetStartHeight() uint64
- func (*RpcTxFilter) ProtoMessage()
- func (x *RpcTxFilter) ProtoReflect() protoreflect.Message
- func (x *RpcTxFilter) Reset()
- func (x *RpcTxFilter) String() string
- type RpcTxList
- func (*RpcTxList) Descriptor() ([]byte, []int)deprecated
- func (x *RpcTxList) GetAddress() *RpcAddress
- func (x *RpcTxList) GetChainid() uint32
- func (x *RpcTxList) GetEndHeight() uint32
- func (x *RpcTxList) GetStartHeight() uint32
- func (*RpcTxList) ProtoMessage()
- func (x *RpcTxList) ProtoReflect() protoreflect.Message
- func (x *RpcTxList) Reset()
- func (x *RpcTxList) String() string
- type RpcTxProofReq
- func (*RpcTxProofReq) Descriptor() ([]byte, []int)deprecated
- func (x *RpcTxProofReq) GetChainid() uint32
- func (x *RpcTxProofReq) GetHash() []byte
- func (x *RpcTxProofReq) GetProofedMainHeight() uint64
- func (*RpcTxProofReq) ProtoMessage()
- func (x *RpcTxProofReq) ProtoReflect() protoreflect.Message
- func (x *RpcTxProofReq) Reset()
- func (x *RpcTxProofReq) String() string
- type UnimplementedNodeServer
- func (UnimplementedNodeServer) CallTransaction(context.Context, *RpcTx) (*RpcResponse, error)
- func (UnimplementedNodeServer) Estimate(context.Context, *RpcTx) (*RpcResponse, error)
- func (UnimplementedNodeServer) GetAccount(context.Context, *RpcAddress) (*RpcResponse, error)
- func (UnimplementedNodeServer) GetAccountAtHeight(context.Context, *RpcAccountAt) (*RpcResponse, error)
- func (UnimplementedNodeServer) GetAccountWithChainHeight(context.Context, *RpcAddress) (*RpcResponse, error)
- func (UnimplementedNodeServer) GetBTransactions(context.Context, *RpcTxFilter) (*RpcResponseStream, error)
- func (UnimplementedNodeServer) GetBlock(context.Context, *RpcBlockHeight) (*RpcResponseStream, error)
- func (UnimplementedNodeServer) GetBlockHeader(context.Context, *RpcBlockHeight) (*RpcResponse, error)
- func (UnimplementedNodeServer) GetBlockHeaders(context.Context, *RpcBlockHeight) (*RpcResponse, error)
- func (UnimplementedNodeServer) GetBlockTxs(context.Context, *RpcBlockTxsReq) (*RpcResponse, error)
- func (UnimplementedNodeServer) GetBlocks(context.Context, *RpcBlockHeight) (*RpcResponseStream, error)
- func (UnimplementedNodeServer) GetCCCRelativeTx(context.Context, *RpcCashCheck) (*RpcResponse, error)
- func (UnimplementedNodeServer) GetChainInfo(context.Context, *RpcChainInfoReq) (*RpcResponse, error)
- func (UnimplementedNodeServer) GetCommWithProof(context.Context, *RpcChainEpoch) (*RpcResponseStream, error)
- func (UnimplementedNodeServer) GetCommittee(context.Context, *RpcChainEpoch) (*RpcResponse, error)
- func (UnimplementedNodeServer) GetConfirmeds(context.Context, *RpcBlockHeight) (*RpcResponseStream, error)
- func (UnimplementedNodeServer) GetRRCurrent(context.Context, *RpcChainRequest) (*RpcResponse, error)
- func (UnimplementedNodeServer) GetRRInfo(context.Context, *RpcGetRRInfoReq) (*RpcResponseStream, error)
- func (UnimplementedNodeServer) GetRRProofs(context.Context, *RpcRRProofReq) (*RpcResponse, error)
- func (UnimplementedNodeServer) GetRRTxByHash(context.Context, *RpcTXHash) (*RpcResponseStream, error)
- func (UnimplementedNodeServer) GetStats(context.Context, *RpcStatsReq) (*RpcResponse, error)
- func (UnimplementedNodeServer) GetTransactionByHash(context.Context, *RpcTXHash) (*RpcResponse, error)
- func (UnimplementedNodeServer) GetTransactions(context.Context, *RpcTxList) (*RpcResponse, error)
- func (UnimplementedNodeServer) GetTxFinalProof(context.Context, *RpcTxProofReq) (*RpcResponseStream, error)
- func (UnimplementedNodeServer) GetTxLocalProof(context.Context, *RpcTXHash) (*RpcResponseStream, error)
- func (UnimplementedNodeServer) GetTxProof(context.Context, *RpcTXHash) (*RpcResponse, error)
- func (UnimplementedNodeServer) ListBridgeSessionsToAt(context.Context, *RpcBridgeToAt) (*RpcResponseStream, error)
- func (UnimplementedNodeServer) ListRRChanges(context.Context, *RpcRRChangesReq) (*RpcResponseStream, error)
- func (UnimplementedNodeServer) ListRRInfos(context.Context, *RpcBlockTxsReq) (*RpcResponseStream, error)
- func (UnimplementedNodeServer) MakeCCCExistenceProof(context.Context, *RpcCashCheck) (*RpcResponse, error)
- func (UnimplementedNodeServer) MakeVccProof(context.Context, *RpcCashCheck) (*RpcResponse, error)
- func (UnimplementedNodeServer) Ping(context.Context, *RpcRequest) (*RpcResponse, error)
- func (UnimplementedNodeServer) RebootMainChain(context.Context, *RpcReboot) (*RpcResponse, error)
- func (UnimplementedNodeServer) SendBlock(context.Context, *RpcMsgReq) (*RpcResponse, error)
- func (UnimplementedNodeServer) SendTx(context.Context, *RpcTx) (*RpcResponse, error)
- func (UnimplementedNodeServer) TryCrypto(context.Context, *RpcMsgReq) (*RpcResponse, error)
- type UnsafeNodeServer
Constants ¶
const ( Node_Ping_FullMethodName = "/tkmrpc.node/Ping" Node_GetAccount_FullMethodName = "/tkmrpc.node/GetAccount" Node_GetTransactionByHash_FullMethodName = "/tkmrpc.node/GetTransactionByHash" Node_GetTxProof_FullMethodName = "/tkmrpc.node/GetTxProof" Node_GetTxLocalProof_FullMethodName = "/tkmrpc.node/GetTxLocalProof" Node_GetTxFinalProof_FullMethodName = "/tkmrpc.node/GetTxFinalProof" Node_GetTransactions_FullMethodName = "/tkmrpc.node/GetTransactions" Node_SendTx_FullMethodName = "/tkmrpc.node/SendTx" Node_GetStats_FullMethodName = "/tkmrpc.node/GetStats" Node_GetBlockHeader_FullMethodName = "/tkmrpc.node/GetBlockHeader" Node_GetBlock_FullMethodName = "/tkmrpc.node/GetBlock" Node_GetBlocks_FullMethodName = "/tkmrpc.node/GetBlocks" Node_GetBlockHeaders_FullMethodName = "/tkmrpc.node/GetBlockHeaders" Node_GetBlockTxs_FullMethodName = "/tkmrpc.node/GetBlockTxs" Node_CallTransaction_FullMethodName = "/tkmrpc.node/CallTransaction" Node_GetChainInfo_FullMethodName = "/tkmrpc.node/GetChainInfo" Node_GetCommittee_FullMethodName = "/tkmrpc.node/GetCommittee" Node_MakeVccProof_FullMethodName = "/tkmrpc.node/MakeVccProof" Node_MakeCCCExistenceProof_FullMethodName = "/tkmrpc.node/MakeCCCExistenceProof" Node_GetCCCRelativeTx_FullMethodName = "/tkmrpc.node/GetCCCRelativeTx" Node_GetAccountWithChainHeight_FullMethodName = "/tkmrpc.node/GetAccountWithChainHeight" Node_GetRRProofs_FullMethodName = "/tkmrpc.node/GetRRProofs" Node_GetRRCurrent_FullMethodName = "/tkmrpc.node/GetRRCurrent" Node_SendBlock_FullMethodName = "/tkmrpc.node/SendBlock" Node_TryCrypto_FullMethodName = "/tkmrpc.node/TryCrypto" Node_GetRRInfo_FullMethodName = "/tkmrpc.node/GetRRInfo" Node_GetBTransactions_FullMethodName = "/tkmrpc.node/GetBTransactions" Node_GetRRTxByHash_FullMethodName = "/tkmrpc.node/GetRRTxByHash" Node_Estimate_FullMethodName = "/tkmrpc.node/Estimate" Node_GetAccountAtHeight_FullMethodName = "/tkmrpc.node/GetAccountAtHeight" Node_GetCommWithProof_FullMethodName = "/tkmrpc.node/GetCommWithProof" Node_ListRRChanges_FullMethodName = "/tkmrpc.node/ListRRChanges" Node_GetConfirmeds_FullMethodName = "/tkmrpc.node/GetConfirmeds" Node_RebootMainChain_FullMethodName = "/tkmrpc.node/RebootMainChain" Node_ListBridgeSessionsToAt_FullMethodName = "/tkmrpc.node/ListBridgeSessionsToAt" Node_ListRRInfos_FullMethodName = "/tkmrpc.node/ListRRInfos" )
const (
SuccessCode = 0
)
Variables ¶
var File_server_proto protoreflect.FileDescriptor
var Node_ServiceDesc = grpc.ServiceDesc{ ServiceName: "tkmrpc.node", HandlerType: (*NodeServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Ping", Handler: _Node_Ping_Handler, }, { MethodName: "GetAccount", Handler: _Node_GetAccount_Handler, }, { MethodName: "GetTransactionByHash", Handler: _Node_GetTransactionByHash_Handler, }, { MethodName: "GetTxProof", Handler: _Node_GetTxProof_Handler, }, { MethodName: "GetTxLocalProof", Handler: _Node_GetTxLocalProof_Handler, }, { MethodName: "GetTxFinalProof", Handler: _Node_GetTxFinalProof_Handler, }, { MethodName: "GetTransactions", Handler: _Node_GetTransactions_Handler, }, { MethodName: "SendTx", Handler: _Node_SendTx_Handler, }, { MethodName: "GetStats", Handler: _Node_GetStats_Handler, }, { MethodName: "GetBlockHeader", Handler: _Node_GetBlockHeader_Handler, }, { MethodName: "GetBlock", Handler: _Node_GetBlock_Handler, }, { MethodName: "GetBlocks", Handler: _Node_GetBlocks_Handler, }, { MethodName: "GetBlockHeaders", Handler: _Node_GetBlockHeaders_Handler, }, { MethodName: "GetBlockTxs", Handler: _Node_GetBlockTxs_Handler, }, { MethodName: "CallTransaction", Handler: _Node_CallTransaction_Handler, }, { MethodName: "GetChainInfo", Handler: _Node_GetChainInfo_Handler, }, { MethodName: "GetCommittee", Handler: _Node_GetCommittee_Handler, }, { MethodName: "MakeVccProof", Handler: _Node_MakeVccProof_Handler, }, { MethodName: "MakeCCCExistenceProof", Handler: _Node_MakeCCCExistenceProof_Handler, }, { MethodName: "GetCCCRelativeTx", Handler: _Node_GetCCCRelativeTx_Handler, }, { MethodName: "GetAccountWithChainHeight", Handler: _Node_GetAccountWithChainHeight_Handler, }, { MethodName: "GetRRProofs", Handler: _Node_GetRRProofs_Handler, }, { MethodName: "GetRRCurrent", Handler: _Node_GetRRCurrent_Handler, }, { MethodName: "SendBlock", Handler: _Node_SendBlock_Handler, }, { MethodName: "TryCrypto", Handler: _Node_TryCrypto_Handler, }, { MethodName: "GetRRInfo", Handler: _Node_GetRRInfo_Handler, }, { MethodName: "GetBTransactions", Handler: _Node_GetBTransactions_Handler, }, { MethodName: "GetRRTxByHash", Handler: _Node_GetRRTxByHash_Handler, }, { MethodName: "Estimate", Handler: _Node_Estimate_Handler, }, { MethodName: "GetAccountAtHeight", Handler: _Node_GetAccountAtHeight_Handler, }, { MethodName: "GetCommWithProof", Handler: _Node_GetCommWithProof_Handler, }, { MethodName: "ListRRChanges", Handler: _Node_ListRRChanges_Handler, }, { MethodName: "GetConfirmeds", Handler: _Node_GetConfirmeds_Handler, }, { MethodName: "RebootMainChain", Handler: _Node_RebootMainChain_Handler, }, { MethodName: "ListBridgeSessionsToAt", Handler: _Node_ListBridgeSessionsToAt_Handler, }, { MethodName: "ListRRInfos", Handler: _Node_ListRRInfos_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "server.proto", }
Node_ServiceDesc is the grpc.ServiceDesc for Node service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterNodeServer ¶
func RegisterNodeServer(s grpc.ServiceRegistrar, srv NodeServer)
Types ¶
type NodeClient ¶
type NodeClient interface {
Ping(ctx context.Context, in *RpcRequest, opts ...grpc.CallOption) (*RpcResponse, error)
GetAccount(ctx context.Context, in *RpcAddress, opts ...grpc.CallOption) (*RpcResponse, error)
GetTransactionByHash(ctx context.Context, in *RpcTXHash, opts ...grpc.CallOption) (*RpcResponse, error)
GetTxProof(ctx context.Context, in *RpcTXHash, opts ...grpc.CallOption) (*RpcResponse, error)
GetTxLocalProof(ctx context.Context, in *RpcTXHash, opts ...grpc.CallOption) (*RpcResponseStream, error)
GetTxFinalProof(ctx context.Context, in *RpcTxProofReq, opts ...grpc.CallOption) (*RpcResponseStream, error)
GetTransactions(ctx context.Context, in *RpcTxList, opts ...grpc.CallOption) (*RpcResponse, error)
SendTx(ctx context.Context, in *RpcTx, opts ...grpc.CallOption) (*RpcResponse, error)
GetStats(ctx context.Context, in *RpcStatsReq, opts ...grpc.CallOption) (*RpcResponse, error)
GetBlockHeader(ctx context.Context, in *RpcBlockHeight, opts ...grpc.CallOption) (*RpcResponse, error)
GetBlock(ctx context.Context, in *RpcBlockHeight, opts ...grpc.CallOption) (*RpcResponseStream, error)
GetBlocks(ctx context.Context, in *RpcBlockHeight, opts ...grpc.CallOption) (*RpcResponseStream, error)
GetBlockHeaders(ctx context.Context, in *RpcBlockHeight, opts ...grpc.CallOption) (*RpcResponse, error)
GetBlockTxs(ctx context.Context, in *RpcBlockTxsReq, opts ...grpc.CallOption) (*RpcResponse, error)
CallTransaction(ctx context.Context, in *RpcTx, opts ...grpc.CallOption) (*RpcResponse, error)
GetChainInfo(ctx context.Context, in *RpcChainInfoReq, opts ...grpc.CallOption) (*RpcResponse, error)
GetCommittee(ctx context.Context, in *RpcChainEpoch, opts ...grpc.CallOption) (*RpcResponse, error)
MakeVccProof(ctx context.Context, in *RpcCashCheck, opts ...grpc.CallOption) (*RpcResponse, error)
MakeCCCExistenceProof(ctx context.Context, in *RpcCashCheck, opts ...grpc.CallOption) (*RpcResponse, error)
GetCCCRelativeTx(ctx context.Context, in *RpcCashCheck, opts ...grpc.CallOption) (*RpcResponse, error)
GetAccountWithChainHeight(ctx context.Context, in *RpcAddress, opts ...grpc.CallOption) (*RpcResponse, error)
GetRRProofs(ctx context.Context, in *RpcRRProofReq, opts ...grpc.CallOption) (*RpcResponse, error)
GetRRCurrent(ctx context.Context, in *RpcChainRequest, opts ...grpc.CallOption) (*RpcResponse, error)
SendBlock(ctx context.Context, in *RpcMsgReq, opts ...grpc.CallOption) (*RpcResponse, error)
TryCrypto(ctx context.Context, in *RpcMsgReq, opts ...grpc.CallOption) (*RpcResponse, error)
GetRRInfo(ctx context.Context, in *RpcGetRRInfoReq, opts ...grpc.CallOption) (*RpcResponseStream, error)
GetBTransactions(ctx context.Context, in *RpcTxFilter, opts ...grpc.CallOption) (*RpcResponseStream, error)
GetRRTxByHash(ctx context.Context, in *RpcTXHash, opts ...grpc.CallOption) (*RpcResponseStream, error)
Estimate(ctx context.Context, in *RpcTx, opts ...grpc.CallOption) (*RpcResponse, error)
GetAccountAtHeight(ctx context.Context, in *RpcAccountAt, opts ...grpc.CallOption) (*RpcResponse, error)
GetCommWithProof(ctx context.Context, in *RpcChainEpoch, opts ...grpc.CallOption) (*RpcResponseStream, error)
ListRRChanges(ctx context.Context, in *RpcRRChangesReq, opts ...grpc.CallOption) (*RpcResponseStream, error)
GetConfirmeds(ctx context.Context, in *RpcBlockHeight, opts ...grpc.CallOption) (*RpcResponseStream, error)
RebootMainChain(ctx context.Context, in *RpcReboot, opts ...grpc.CallOption) (*RpcResponse, error)
ListBridgeSessionsToAt(ctx context.Context, in *RpcBridgeToAt, opts ...grpc.CallOption) (*RpcResponseStream, error)
ListRRInfos(ctx context.Context, in *RpcBlockTxsReq, opts ...grpc.CallOption) (*RpcResponseStream, error)
}
NodeClient is the client API for Node service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewNodeClient ¶
func NewNodeClient(cc grpc.ClientConnInterface) NodeClient
type NodeServer ¶
type NodeServer interface {
Ping(context.Context, *RpcRequest) (*RpcResponse, error)
GetAccount(context.Context, *RpcAddress) (*RpcResponse, error)
GetTransactionByHash(context.Context, *RpcTXHash) (*RpcResponse, error)
GetTxProof(context.Context, *RpcTXHash) (*RpcResponse, error)
GetTxLocalProof(context.Context, *RpcTXHash) (*RpcResponseStream, error)
GetTxFinalProof(context.Context, *RpcTxProofReq) (*RpcResponseStream, error)
GetTransactions(context.Context, *RpcTxList) (*RpcResponse, error)
SendTx(context.Context, *RpcTx) (*RpcResponse, error)
GetStats(context.Context, *RpcStatsReq) (*RpcResponse, error)
GetBlockHeader(context.Context, *RpcBlockHeight) (*RpcResponse, error)
GetBlock(context.Context, *RpcBlockHeight) (*RpcResponseStream, error)
GetBlocks(context.Context, *RpcBlockHeight) (*RpcResponseStream, error)
GetBlockHeaders(context.Context, *RpcBlockHeight) (*RpcResponse, error)
GetBlockTxs(context.Context, *RpcBlockTxsReq) (*RpcResponse, error)
CallTransaction(context.Context, *RpcTx) (*RpcResponse, error)
GetChainInfo(context.Context, *RpcChainInfoReq) (*RpcResponse, error)
GetCommittee(context.Context, *RpcChainEpoch) (*RpcResponse, error)
MakeVccProof(context.Context, *RpcCashCheck) (*RpcResponse, error)
MakeCCCExistenceProof(context.Context, *RpcCashCheck) (*RpcResponse, error)
GetCCCRelativeTx(context.Context, *RpcCashCheck) (*RpcResponse, error)
GetAccountWithChainHeight(context.Context, *RpcAddress) (*RpcResponse, error)
GetRRProofs(context.Context, *RpcRRProofReq) (*RpcResponse, error)
GetRRCurrent(context.Context, *RpcChainRequest) (*RpcResponse, error)
SendBlock(context.Context, *RpcMsgReq) (*RpcResponse, error)
TryCrypto(context.Context, *RpcMsgReq) (*RpcResponse, error)
GetRRInfo(context.Context, *RpcGetRRInfoReq) (*RpcResponseStream, error)
GetBTransactions(context.Context, *RpcTxFilter) (*RpcResponseStream, error)
GetRRTxByHash(context.Context, *RpcTXHash) (*RpcResponseStream, error)
Estimate(context.Context, *RpcTx) (*RpcResponse, error)
GetAccountAtHeight(context.Context, *RpcAccountAt) (*RpcResponse, error)
GetCommWithProof(context.Context, *RpcChainEpoch) (*RpcResponseStream, error)
ListRRChanges(context.Context, *RpcRRChangesReq) (*RpcResponseStream, error)
GetConfirmeds(context.Context, *RpcBlockHeight) (*RpcResponseStream, error)
RebootMainChain(context.Context, *RpcReboot) (*RpcResponse, error)
ListBridgeSessionsToAt(context.Context, *RpcBridgeToAt) (*RpcResponseStream, error)
ListRRInfos(context.Context, *RpcBlockTxsReq) (*RpcResponseStream, error)
// contains filtered or unexported methods
}
NodeServer is the server API for Node service. All implementations must embed UnimplementedNodeServer for forward compatibility
type RpcAccountAt ¶
type RpcAccountAt struct {
Chainid uint32 `protobuf:"varint,1,opt,name=chainid,proto3" json:"chainid,omitempty"`
Height uint64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
Address []byte `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"`
// contains filtered or unexported fields
}
func (*RpcAccountAt) Descriptor
deprecated
func (*RpcAccountAt) Descriptor() ([]byte, []int)
Deprecated: Use RpcAccountAt.ProtoReflect.Descriptor instead.
func (*RpcAccountAt) GetAddress ¶
func (x *RpcAccountAt) GetAddress() []byte
func (*RpcAccountAt) GetChainid ¶
func (x *RpcAccountAt) GetChainid() uint32
func (*RpcAccountAt) GetHeight ¶
func (x *RpcAccountAt) GetHeight() uint64
func (*RpcAccountAt) ProtoMessage ¶
func (*RpcAccountAt) ProtoMessage()
func (*RpcAccountAt) ProtoReflect ¶
func (x *RpcAccountAt) ProtoReflect() protoreflect.Message
func (*RpcAccountAt) Reset ¶
func (x *RpcAccountAt) Reset()
func (*RpcAccountAt) String ¶
func (x *RpcAccountAt) String() string
type RpcAddress ¶
type RpcAddress struct {
Chainid uint32 `protobuf:"varint,1,opt,name=chainid,proto3" json:"chainid,omitempty"`
Address []byte `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
// contains filtered or unexported fields
}
func (*RpcAddress) Descriptor
deprecated
func (*RpcAddress) Descriptor() ([]byte, []int)
Deprecated: Use RpcAddress.ProtoReflect.Descriptor instead.
func (*RpcAddress) GetAddress ¶
func (x *RpcAddress) GetAddress() []byte
func (*RpcAddress) GetChainid ¶
func (x *RpcAddress) GetChainid() uint32
func (*RpcAddress) MarshalJSON ¶
func (x *RpcAddress) MarshalJSON() ([]byte, error)
func (*RpcAddress) PrintString ¶
func (x *RpcAddress) PrintString() string
func (*RpcAddress) ProtoMessage ¶
func (*RpcAddress) ProtoMessage()
func (*RpcAddress) ProtoReflect ¶
func (x *RpcAddress) ProtoReflect() protoreflect.Message
func (*RpcAddress) Reset ¶
func (x *RpcAddress) Reset()
func (*RpcAddress) String ¶
func (x *RpcAddress) String() string
type RpcBlockHeight ¶
type RpcBlockHeight struct {
Chainid uint32 `protobuf:"varint,1,opt,name=chainid,proto3" json:"chainid,omitempty"`
Height uint64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
// contains filtered or unexported fields
}
func (*RpcBlockHeight) Descriptor
deprecated
func (*RpcBlockHeight) Descriptor() ([]byte, []int)
Deprecated: Use RpcBlockHeight.ProtoReflect.Descriptor instead.
func (*RpcBlockHeight) GetChainid ¶
func (x *RpcBlockHeight) GetChainid() uint32
func (*RpcBlockHeight) GetHeight ¶
func (x *RpcBlockHeight) GetHeight() uint64
func (*RpcBlockHeight) ProtoMessage ¶
func (*RpcBlockHeight) ProtoMessage()
func (*RpcBlockHeight) ProtoReflect ¶
func (x *RpcBlockHeight) ProtoReflect() protoreflect.Message
func (*RpcBlockHeight) Reset ¶
func (x *RpcBlockHeight) Reset()
func (*RpcBlockHeight) String ¶
func (x *RpcBlockHeight) String() string
type RpcBlockTxsReq ¶
type RpcBlockTxsReq struct {
Chainid uint32 `protobuf:"varint,1,opt,name=chainid,proto3" json:"chainid,omitempty"`
Height uint64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
Page int32 `protobuf:"varint,3,opt,name=page,proto3" json:"page,omitempty"`
Size int32 `protobuf:"varint,4,opt,name=size,proto3" json:"size,omitempty"`
// contains filtered or unexported fields
}
func (*RpcBlockTxsReq) Descriptor
deprecated
func (*RpcBlockTxsReq) Descriptor() ([]byte, []int)
Deprecated: Use RpcBlockTxsReq.ProtoReflect.Descriptor instead.
func (*RpcBlockTxsReq) GetChainid ¶
func (x *RpcBlockTxsReq) GetChainid() uint32
func (*RpcBlockTxsReq) GetHeight ¶
func (x *RpcBlockTxsReq) GetHeight() uint64
func (*RpcBlockTxsReq) GetPage ¶
func (x *RpcBlockTxsReq) GetPage() int32
func (*RpcBlockTxsReq) GetSize ¶
func (x *RpcBlockTxsReq) GetSize() int32
func (*RpcBlockTxsReq) ProtoMessage ¶
func (*RpcBlockTxsReq) ProtoMessage()
func (*RpcBlockTxsReq) ProtoReflect ¶
func (x *RpcBlockTxsReq) ProtoReflect() protoreflect.Message
func (*RpcBlockTxsReq) Reset ¶
func (x *RpcBlockTxsReq) Reset()
func (*RpcBlockTxsReq) String ¶
func (x *RpcBlockTxsReq) String() string
type RpcBridgeToAt ¶ added in v0.4.0
type RpcBridgeToAt struct {
CurrentChain uint32 `protobuf:"varint,1,opt,name=currentChain,proto3" json:"currentChain,omitempty"`
AtHeight uint64 `protobuf:"varint,2,opt,name=atHeight,proto3" json:"atHeight,omitempty"`
ToChain uint32 `protobuf:"varint,3,opt,name=toChain,proto3" json:"toChain,omitempty"`
ReqHeight uint64 `protobuf:"varint,4,opt,name=reqHeight,proto3" json:"reqHeight,omitempty"`
// contains filtered or unexported fields
}
func (*RpcBridgeToAt) Descriptor
deprecated
added in
v0.4.0
func (*RpcBridgeToAt) Descriptor() ([]byte, []int)
Deprecated: Use RpcBridgeToAt.ProtoReflect.Descriptor instead.
func (*RpcBridgeToAt) GetAtHeight ¶ added in v0.4.0
func (x *RpcBridgeToAt) GetAtHeight() uint64
func (*RpcBridgeToAt) GetCurrentChain ¶ added in v0.4.0
func (x *RpcBridgeToAt) GetCurrentChain() uint32
func (*RpcBridgeToAt) GetReqHeight ¶ added in v0.4.0
func (x *RpcBridgeToAt) GetReqHeight() uint64
func (*RpcBridgeToAt) GetToChain ¶ added in v0.4.0
func (x *RpcBridgeToAt) GetToChain() uint32
func (*RpcBridgeToAt) ProtoMessage ¶ added in v0.4.0
func (*RpcBridgeToAt) ProtoMessage()
func (*RpcBridgeToAt) ProtoReflect ¶ added in v0.4.0
func (x *RpcBridgeToAt) ProtoReflect() protoreflect.Message
func (*RpcBridgeToAt) Reset ¶ added in v0.4.0
func (x *RpcBridgeToAt) Reset()
func (*RpcBridgeToAt) String ¶ added in v0.4.0
func (x *RpcBridgeToAt) String() string
type RpcCashCheck ¶
type RpcCashCheck struct {
Chainid uint32 `protobuf:"varint,1,opt,name=chainid,proto3" json:"chainid,omitempty"`
From *RpcAddress `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"`
To *RpcAddress `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"`
Nonce uint64 `protobuf:"varint,4,opt,name=nonce,proto3" json:"nonce,omitempty"`
ExpireHeight uint64 `protobuf:"varint,5,opt,name=expireHeight,proto3" json:"expireHeight,omitempty"`
Amount string `protobuf:"bytes,6,opt,name=amount,proto3" json:"amount,omitempty"`
Uselocal bool `protobuf:"varint,7,opt,name=uselocal,proto3" json:"uselocal,omitempty"`
ParentChain uint32 `protobuf:"varint,8,opt,name=parentChain,proto3" json:"parentChain,omitempty"`
IsShard bool `protobuf:"varint,9,opt,name=isShard,proto3" json:"isShard,omitempty"`
CurrencyId int32 `protobuf:"varint,10,opt,name=currencyId,proto3" json:"currencyId,omitempty"`
// contains filtered or unexported fields
}
func (*RpcCashCheck) Descriptor
deprecated
func (*RpcCashCheck) Descriptor() ([]byte, []int)
Deprecated: Use RpcCashCheck.ProtoReflect.Descriptor instead.
func (*RpcCashCheck) FromCashCheck ¶
func (x *RpcCashCheck) FromCashCheck(vcc *models.CashCheck) error
func (*RpcCashCheck) GetAmount ¶
func (x *RpcCashCheck) GetAmount() string
func (*RpcCashCheck) GetChainid ¶
func (x *RpcCashCheck) GetChainid() uint32
func (*RpcCashCheck) GetCurrencyId ¶
func (x *RpcCashCheck) GetCurrencyId() int32
func (*RpcCashCheck) GetExpireHeight ¶
func (x *RpcCashCheck) GetExpireHeight() uint64
func (*RpcCashCheck) GetFrom ¶
func (x *RpcCashCheck) GetFrom() *RpcAddress
func (*RpcCashCheck) GetIsShard ¶
func (x *RpcCashCheck) GetIsShard() bool
func (*RpcCashCheck) GetNonce ¶
func (x *RpcCashCheck) GetNonce() uint64
func (*RpcCashCheck) GetParentChain ¶
func (x *RpcCashCheck) GetParentChain() uint32
func (*RpcCashCheck) GetTo ¶
func (x *RpcCashCheck) GetTo() *RpcAddress
func (*RpcCashCheck) GetUselocal ¶
func (x *RpcCashCheck) GetUselocal() bool
func (*RpcCashCheck) ProtoMessage ¶
func (*RpcCashCheck) ProtoMessage()
func (*RpcCashCheck) ProtoReflect ¶
func (x *RpcCashCheck) ProtoReflect() protoreflect.Message
func (*RpcCashCheck) Reset ¶
func (x *RpcCashCheck) Reset()
func (*RpcCashCheck) String ¶
func (x *RpcCashCheck) String() string
func (*RpcCashCheck) ToCashCheck ¶
func (x *RpcCashCheck) ToCashCheck() (*models.CashCheck, error)
type RpcChainEpoch ¶
type RpcChainEpoch struct {
Chainid uint32 `protobuf:"varint,1,opt,name=chainid,proto3" json:"chainid,omitempty"`
Epoch uint64 `protobuf:"varint,2,opt,name=epoch,proto3" json:"epoch,omitempty"`
// contains filtered or unexported fields
}
func (*RpcChainEpoch) Descriptor
deprecated
func (*RpcChainEpoch) Descriptor() ([]byte, []int)
Deprecated: Use RpcChainEpoch.ProtoReflect.Descriptor instead.
func (*RpcChainEpoch) GetChainid ¶
func (x *RpcChainEpoch) GetChainid() uint32
func (*RpcChainEpoch) GetEpoch ¶
func (x *RpcChainEpoch) GetEpoch() uint64
func (*RpcChainEpoch) ProtoMessage ¶
func (*RpcChainEpoch) ProtoMessage()
func (*RpcChainEpoch) ProtoReflect ¶
func (x *RpcChainEpoch) ProtoReflect() protoreflect.Message
func (*RpcChainEpoch) Reset ¶
func (x *RpcChainEpoch) Reset()
func (*RpcChainEpoch) String ¶
func (x *RpcChainEpoch) String() string
type RpcChainInfoReq ¶
type RpcChainInfoReq struct {
Chainid []uint32 `protobuf:"varint,1,rep,packed,name=chainid,proto3" json:"chainid,omitempty"`
// contains filtered or unexported fields
}
func (*RpcChainInfoReq) Descriptor
deprecated
func (*RpcChainInfoReq) Descriptor() ([]byte, []int)
Deprecated: Use RpcChainInfoReq.ProtoReflect.Descriptor instead.
func (*RpcChainInfoReq) GetChainid ¶
func (x *RpcChainInfoReq) GetChainid() []uint32
func (*RpcChainInfoReq) ProtoMessage ¶
func (*RpcChainInfoReq) ProtoMessage()
func (*RpcChainInfoReq) ProtoReflect ¶
func (x *RpcChainInfoReq) ProtoReflect() protoreflect.Message
func (*RpcChainInfoReq) Reset ¶
func (x *RpcChainInfoReq) Reset()
func (*RpcChainInfoReq) String ¶
func (x *RpcChainInfoReq) String() string
type RpcChainRequest ¶
type RpcChainRequest struct {
Chainid uint32 `protobuf:"varint,1,opt,name=chainid,proto3" json:"chainid,omitempty"`
// contains filtered or unexported fields
}
func (*RpcChainRequest) Descriptor
deprecated
func (*RpcChainRequest) Descriptor() ([]byte, []int)
Deprecated: Use RpcChainRequest.ProtoReflect.Descriptor instead.
func (*RpcChainRequest) GetChainid ¶
func (x *RpcChainRequest) GetChainid() uint32
func (*RpcChainRequest) ProtoMessage ¶
func (*RpcChainRequest) ProtoMessage()
func (*RpcChainRequest) ProtoReflect ¶
func (x *RpcChainRequest) ProtoReflect() protoreflect.Message
func (*RpcChainRequest) Reset ¶
func (x *RpcChainRequest) Reset()
func (*RpcChainRequest) String ¶
func (x *RpcChainRequest) String() string
type RpcGetRRInfoReq ¶
type RpcGetRRInfoReq struct {
NodeId []byte `protobuf:"bytes,1,opt,name=nodeId,proto3" json:"nodeId,omitempty"`
Era int64 `protobuf:"varint,2,opt,name=era,proto3" json:"era,omitempty"`
Root []byte `protobuf:"bytes,3,opt,name=root,proto3" json:"root,omitempty"`
// contains filtered or unexported fields
}
func (*RpcGetRRInfoReq) Descriptor
deprecated
func (*RpcGetRRInfoReq) Descriptor() ([]byte, []int)
Deprecated: Use RpcGetRRInfoReq.ProtoReflect.Descriptor instead.
func (*RpcGetRRInfoReq) GetEra ¶
func (x *RpcGetRRInfoReq) GetEra() int64
func (*RpcGetRRInfoReq) GetNodeId ¶
func (x *RpcGetRRInfoReq) GetNodeId() []byte
func (*RpcGetRRInfoReq) GetRoot ¶
func (x *RpcGetRRInfoReq) GetRoot() []byte
func (*RpcGetRRInfoReq) ProtoMessage ¶
func (*RpcGetRRInfoReq) ProtoMessage()
func (*RpcGetRRInfoReq) ProtoReflect ¶
func (x *RpcGetRRInfoReq) ProtoReflect() protoreflect.Message
func (*RpcGetRRInfoReq) Reset ¶
func (x *RpcGetRRInfoReq) Reset()
func (*RpcGetRRInfoReq) String ¶
func (x *RpcGetRRInfoReq) String() string
type RpcMsgReq ¶
type RpcMsgReq struct {
Type uint32 `protobuf:"varint,1,opt,name=type,proto3" json:"type,omitempty"`
Msg []byte `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
// contains filtered or unexported fields
}
func (*RpcMsgReq) Descriptor
deprecated
func (*RpcMsgReq) ProtoMessage ¶
func (*RpcMsgReq) ProtoMessage()
func (*RpcMsgReq) ProtoReflect ¶
func (x *RpcMsgReq) ProtoReflect() protoreflect.Message
type RpcRRChangesReq ¶
type RpcRRChangesReq struct {
Root []byte `protobuf:"bytes,1,opt,name=root,proto3" json:"root,omitempty"`
// contains filtered or unexported fields
}
func (*RpcRRChangesReq) Descriptor
deprecated
func (*RpcRRChangesReq) Descriptor() ([]byte, []int)
Deprecated: Use RpcRRChangesReq.ProtoReflect.Descriptor instead.
func (*RpcRRChangesReq) GetRoot ¶
func (x *RpcRRChangesReq) GetRoot() []byte
func (*RpcRRChangesReq) ProtoMessage ¶
func (*RpcRRChangesReq) ProtoMessage()
func (*RpcRRChangesReq) ProtoReflect ¶
func (x *RpcRRChangesReq) ProtoReflect() protoreflect.Message
func (*RpcRRChangesReq) Reset ¶
func (x *RpcRRChangesReq) Reset()
func (*RpcRRChangesReq) String ¶
func (x *RpcRRChangesReq) String() string
type RpcRRProofReq ¶
type RpcRRProofReq struct {
ChainId uint32 `protobuf:"varint,1,opt,name=chainId,proto3" json:"chainId,omitempty"`
RootHash []byte `protobuf:"bytes,3,opt,name=rootHash,proto3" json:"rootHash,omitempty"`
NodeHash []byte `protobuf:"bytes,4,opt,name=nodeHash,proto3" json:"nodeHash,omitempty"`
Pub []byte `protobuf:"bytes,5,opt,name=pub,proto3" json:"pub,omitempty"`
Sig []byte `protobuf:"bytes,6,opt,name=sig,proto3" json:"sig,omitempty"`
// contains filtered or unexported fields
}
func (*RpcRRProofReq) Descriptor
deprecated
func (*RpcRRProofReq) Descriptor() ([]byte, []int)
Deprecated: Use RpcRRProofReq.ProtoReflect.Descriptor instead.
func (*RpcRRProofReq) GetChainId ¶
func (x *RpcRRProofReq) GetChainId() uint32
func (*RpcRRProofReq) GetNodeHash ¶
func (x *RpcRRProofReq) GetNodeHash() []byte
func (*RpcRRProofReq) GetPub ¶
func (x *RpcRRProofReq) GetPub() []byte
func (*RpcRRProofReq) GetRootHash ¶
func (x *RpcRRProofReq) GetRootHash() []byte
func (*RpcRRProofReq) GetSig ¶
func (x *RpcRRProofReq) GetSig() []byte
func (*RpcRRProofReq) HashSerialize ¶
func (x *RpcRRProofReq) HashSerialize(w io.Writer) (int, error)
func (*RpcRRProofReq) HashValue ¶
func (x *RpcRRProofReq) HashValue() ([]byte, error)
func (*RpcRRProofReq) ProtoMessage ¶
func (*RpcRRProofReq) ProtoMessage()
func (*RpcRRProofReq) ProtoReflect ¶
func (x *RpcRRProofReq) ProtoReflect() protoreflect.Message
func (*RpcRRProofReq) Reset ¶
func (x *RpcRRProofReq) Reset()
func (*RpcRRProofReq) String ¶
func (x *RpcRRProofReq) String() string
func (*RpcRRProofReq) Verify ¶
func (x *RpcRRProofReq) Verify() error
type RpcReboot ¶
type RpcReboot struct {
LastHeight uint64 `protobuf:"varint,1,opt,name=lastHeight,proto3" json:"lastHeight,omitempty"`
LastHash []byte `protobuf:"bytes,2,opt,name=lastHash,proto3" json:"lastHash,omitempty"`
Comm [][]byte `protobuf:"bytes,3,rep,name=comm,proto3" json:"comm,omitempty"`
Pubs [][]byte `protobuf:"bytes,4,rep,name=pubs,proto3" json:"pubs,omitempty"`
Sigs [][]byte `protobuf:"bytes,5,rep,name=sigs,proto3" json:"sigs,omitempty"`
// contains filtered or unexported fields
}
func (*RpcReboot) Descriptor
deprecated
func (*RpcReboot) GetLastHash ¶
func (*RpcReboot) GetLastHeight ¶
func (*RpcReboot) ProtoMessage ¶
func (*RpcReboot) ProtoMessage()
func (*RpcReboot) ProtoReflect ¶
func (x *RpcReboot) ProtoReflect() protoreflect.Message
type RpcRequest ¶
type RpcRequest struct {
Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
// contains filtered or unexported fields
}
func (*RpcRequest) Descriptor
deprecated
func (*RpcRequest) Descriptor() ([]byte, []int)
Deprecated: Use RpcRequest.ProtoReflect.Descriptor instead.
func (*RpcRequest) GetData ¶
func (x *RpcRequest) GetData() string
func (*RpcRequest) ProtoMessage ¶
func (*RpcRequest) ProtoMessage()
func (*RpcRequest) ProtoReflect ¶
func (x *RpcRequest) ProtoReflect() protoreflect.Message
func (*RpcRequest) Reset ¶
func (x *RpcRequest) Reset()
func (*RpcRequest) String ¶
func (x *RpcRequest) String() string
type RpcResponse ¶
type RpcResponse struct {
Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
Data string `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
Detail string `protobuf:"bytes,3,opt,name=detail,proto3" json:"detail,omitempty"`
// contains filtered or unexported fields
}
func (*RpcResponse) Descriptor
deprecated
func (*RpcResponse) Descriptor() ([]byte, []int)
Deprecated: Use RpcResponse.ProtoReflect.Descriptor instead.
func (*RpcResponse) GetCode ¶
func (x *RpcResponse) GetCode() int32
func (*RpcResponse) GetData ¶
func (x *RpcResponse) GetData() string
func (*RpcResponse) GetDetail ¶
func (x *RpcResponse) GetDetail() string
func (*RpcResponse) ProtoMessage ¶
func (*RpcResponse) ProtoMessage()
func (*RpcResponse) ProtoReflect ¶
func (x *RpcResponse) ProtoReflect() protoreflect.Message
func (*RpcResponse) Reset ¶
func (x *RpcResponse) Reset()
func (*RpcResponse) String ¶
func (x *RpcResponse) String() string
func (*RpcResponse) Success ¶
func (x *RpcResponse) Success() bool
type RpcResponseStream ¶
type RpcResponseStream struct {
Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
Stream []byte `protobuf:"bytes,3,opt,name=stream,proto3" json:"stream,omitempty"`
// contains filtered or unexported fields
}
func (*RpcResponseStream) Descriptor
deprecated
func (*RpcResponseStream) Descriptor() ([]byte, []int)
Deprecated: Use RpcResponseStream.ProtoReflect.Descriptor instead.
func (*RpcResponseStream) GetCode ¶
func (x *RpcResponseStream) GetCode() int32
func (*RpcResponseStream) GetMsg ¶
func (x *RpcResponseStream) GetMsg() string
func (*RpcResponseStream) GetStream ¶
func (x *RpcResponseStream) GetStream() []byte
func (*RpcResponseStream) ProtoMessage ¶
func (*RpcResponseStream) ProtoMessage()
func (*RpcResponseStream) ProtoReflect ¶
func (x *RpcResponseStream) ProtoReflect() protoreflect.Message
func (*RpcResponseStream) Reset ¶
func (x *RpcResponseStream) Reset()
func (*RpcResponseStream) String ¶
func (x *RpcResponseStream) String() string
func (*RpcResponseStream) Success ¶
func (x *RpcResponseStream) Success() bool
type RpcStatsReq ¶
type RpcStatsReq struct {
Chainid uint32 `protobuf:"varint,1,opt,name=chainid,proto3" json:"chainid,omitempty"`
// contains filtered or unexported fields
}
func (*RpcStatsReq) Descriptor
deprecated
func (*RpcStatsReq) Descriptor() ([]byte, []int)
Deprecated: Use RpcStatsReq.ProtoReflect.Descriptor instead.
func (*RpcStatsReq) GetChainid ¶
func (x *RpcStatsReq) GetChainid() uint32
func (*RpcStatsReq) ProtoMessage ¶
func (*RpcStatsReq) ProtoMessage()
func (*RpcStatsReq) ProtoReflect ¶
func (x *RpcStatsReq) ProtoReflect() protoreflect.Message
func (*RpcStatsReq) Reset ¶
func (x *RpcStatsReq) Reset()
func (*RpcStatsReq) String ¶
func (x *RpcStatsReq) String() string
type RpcTXHash ¶
type RpcTXHash struct {
Chainid uint32 `protobuf:"varint,1,opt,name=chainid,proto3" json:"chainid,omitempty"`
Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"`
// contains filtered or unexported fields
}
func (*RpcTXHash) Descriptor
deprecated
func (*RpcTXHash) GetChainid ¶
func (*RpcTXHash) ProtoMessage ¶
func (*RpcTXHash) ProtoMessage()
func (*RpcTXHash) ProtoReflect ¶
func (x *RpcTXHash) ProtoReflect() protoreflect.Message
type RpcTx ¶
type RpcTx struct {
Chainid uint32 `protobuf:"varint,1,opt,name=chainid,proto3" json:"chainid,omitempty"`
From *RpcAddress `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"`
To *RpcAddress `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"`
Nonce uint64 `protobuf:"varint,4,opt,name=nonce,proto3" json:"nonce,omitempty"`
Val string `protobuf:"bytes,5,opt,name=val,proto3" json:"val,omitempty"`
Input []byte `protobuf:"bytes,6,opt,name=input,proto3" json:"input,omitempty"`
Pub []byte `protobuf:"bytes,7,opt,name=pub,proto3" json:"pub,omitempty"`
Sig []byte `protobuf:"bytes,8,opt,name=sig,proto3" json:"sig,omitempty"`
Uselocal bool `protobuf:"varint,9,opt,name=uselocal,proto3" json:"uselocal,omitempty"`
Extra []byte `protobuf:"bytes,10,opt,name=extra,proto3" json:"extra,omitempty"`
Multipubs [][]byte `protobuf:"bytes,11,rep,name=multipubs,proto3" json:"multipubs,omitempty"`
Multisigs [][]byte `protobuf:"bytes,12,rep,name=multisigs,proto3" json:"multisigs,omitempty"`
// contains filtered or unexported fields
}
func (*RpcTx) Descriptor
deprecated
func (*RpcTx) GetChainid ¶
func (*RpcTx) GetFrom ¶
func (x *RpcTx) GetFrom() *RpcAddress
func (*RpcTx) GetMultipubs ¶
func (*RpcTx) GetMultisigs ¶
func (*RpcTx) GetSignature ¶
func (*RpcTx) GetTo ¶
func (x *RpcTx) GetTo() *RpcAddress
func (*RpcTx) GetUselocal ¶
func (*RpcTx) InfoString ¶
func (x *RpcTx) InfoString(level common.IndentLevel) string
func (*RpcTx) PrintString ¶
func (*RpcTx) ProtoMessage ¶
func (*RpcTx) ProtoMessage()
func (*RpcTx) ProtoReflect ¶
func (x *RpcTx) ProtoReflect() protoreflect.Message
type RpcTxFilter ¶
type RpcTxFilter struct {
Chainid uint32 `protobuf:"varint,1,opt,name=chainid,proto3" json:"chainid,omitempty"`
Address *RpcAddress `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
StartHeight uint64 `protobuf:"varint,3,opt,name=startHeight,proto3" json:"startHeight,omitempty"` // include
EndHeight uint64 `protobuf:"varint,4,opt,name=endHeight,proto3" json:"endHeight,omitempty"` // exclude
// contains filtered or unexported fields
}
func (*RpcTxFilter) Descriptor
deprecated
func (*RpcTxFilter) Descriptor() ([]byte, []int)
Deprecated: Use RpcTxFilter.ProtoReflect.Descriptor instead.
func (*RpcTxFilter) GetAddress ¶
func (x *RpcTxFilter) GetAddress() *RpcAddress
func (*RpcTxFilter) GetChainid ¶
func (x *RpcTxFilter) GetChainid() uint32
func (*RpcTxFilter) GetEndHeight ¶
func (x *RpcTxFilter) GetEndHeight() uint64
func (*RpcTxFilter) GetStartHeight ¶
func (x *RpcTxFilter) GetStartHeight() uint64
func (*RpcTxFilter) ProtoMessage ¶
func (*RpcTxFilter) ProtoMessage()
func (*RpcTxFilter) ProtoReflect ¶
func (x *RpcTxFilter) ProtoReflect() protoreflect.Message
func (*RpcTxFilter) Reset ¶
func (x *RpcTxFilter) Reset()
func (*RpcTxFilter) String ¶
func (x *RpcTxFilter) String() string
type RpcTxList ¶
type RpcTxList struct {
Chainid uint32 `protobuf:"varint,1,opt,name=chainid,proto3" json:"chainid,omitempty"`
Address *RpcAddress `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
StartHeight uint32 `protobuf:"varint,3,opt,name=startHeight,proto3" json:"startHeight,omitempty"` // include
EndHeight uint32 `protobuf:"varint,4,opt,name=endHeight,proto3" json:"endHeight,omitempty"` // exclude
// contains filtered or unexported fields
}
func (*RpcTxList) Descriptor
deprecated
func (*RpcTxList) GetAddress ¶
func (x *RpcTxList) GetAddress() *RpcAddress
func (*RpcTxList) GetChainid ¶
func (*RpcTxList) GetEndHeight ¶
func (*RpcTxList) GetStartHeight ¶
func (*RpcTxList) ProtoMessage ¶
func (*RpcTxList) ProtoMessage()
func (*RpcTxList) ProtoReflect ¶
func (x *RpcTxList) ProtoReflect() protoreflect.Message
type RpcTxProofReq ¶ added in v0.2.3
type RpcTxProofReq struct {
Chainid uint32 `protobuf:"varint,1,opt,name=chainid,proto3" json:"chainid,omitempty"`
Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"`
ProofedMainHeight uint64 `protobuf:"varint,3,opt,name=proofedMainHeight,proto3" json:"proofedMainHeight,omitempty"`
// contains filtered or unexported fields
}
func (*RpcTxProofReq) Descriptor
deprecated
added in
v0.2.3
func (*RpcTxProofReq) Descriptor() ([]byte, []int)
Deprecated: Use RpcTxProofReq.ProtoReflect.Descriptor instead.
func (*RpcTxProofReq) GetChainid ¶ added in v0.2.3
func (x *RpcTxProofReq) GetChainid() uint32
func (*RpcTxProofReq) GetHash ¶ added in v0.2.3
func (x *RpcTxProofReq) GetHash() []byte
func (*RpcTxProofReq) GetProofedMainHeight ¶ added in v0.2.3
func (x *RpcTxProofReq) GetProofedMainHeight() uint64
func (*RpcTxProofReq) ProtoMessage ¶ added in v0.2.3
func (*RpcTxProofReq) ProtoMessage()
func (*RpcTxProofReq) ProtoReflect ¶ added in v0.2.3
func (x *RpcTxProofReq) ProtoReflect() protoreflect.Message
func (*RpcTxProofReq) Reset ¶ added in v0.2.3
func (x *RpcTxProofReq) Reset()
func (*RpcTxProofReq) String ¶ added in v0.2.3
func (x *RpcTxProofReq) String() string
type UnimplementedNodeServer ¶
type UnimplementedNodeServer struct {
}
UnimplementedNodeServer must be embedded to have forward compatible implementations.
func (UnimplementedNodeServer) CallTransaction ¶
func (UnimplementedNodeServer) CallTransaction(context.Context, *RpcTx) (*RpcResponse, error)
func (UnimplementedNodeServer) Estimate ¶
func (UnimplementedNodeServer) Estimate(context.Context, *RpcTx) (*RpcResponse, error)
func (UnimplementedNodeServer) GetAccount ¶
func (UnimplementedNodeServer) GetAccount(context.Context, *RpcAddress) (*RpcResponse, error)
func (UnimplementedNodeServer) GetAccountAtHeight ¶
func (UnimplementedNodeServer) GetAccountAtHeight(context.Context, *RpcAccountAt) (*RpcResponse, error)
func (UnimplementedNodeServer) GetAccountWithChainHeight ¶
func (UnimplementedNodeServer) GetAccountWithChainHeight(context.Context, *RpcAddress) (*RpcResponse, error)
func (UnimplementedNodeServer) GetBTransactions ¶
func (UnimplementedNodeServer) GetBTransactions(context.Context, *RpcTxFilter) (*RpcResponseStream, error)
func (UnimplementedNodeServer) GetBlock ¶
func (UnimplementedNodeServer) GetBlock(context.Context, *RpcBlockHeight) (*RpcResponseStream, error)
func (UnimplementedNodeServer) GetBlockHeader ¶
func (UnimplementedNodeServer) GetBlockHeader(context.Context, *RpcBlockHeight) (*RpcResponse, error)
func (UnimplementedNodeServer) GetBlockHeaders ¶
func (UnimplementedNodeServer) GetBlockHeaders(context.Context, *RpcBlockHeight) (*RpcResponse, error)
func (UnimplementedNodeServer) GetBlockTxs ¶
func (UnimplementedNodeServer) GetBlockTxs(context.Context, *RpcBlockTxsReq) (*RpcResponse, error)
func (UnimplementedNodeServer) GetBlocks ¶
func (UnimplementedNodeServer) GetBlocks(context.Context, *RpcBlockHeight) (*RpcResponseStream, error)
func (UnimplementedNodeServer) GetCCCRelativeTx ¶
func (UnimplementedNodeServer) GetCCCRelativeTx(context.Context, *RpcCashCheck) (*RpcResponse, error)
func (UnimplementedNodeServer) GetChainInfo ¶
func (UnimplementedNodeServer) GetChainInfo(context.Context, *RpcChainInfoReq) (*RpcResponse, error)
func (UnimplementedNodeServer) GetCommWithProof ¶
func (UnimplementedNodeServer) GetCommWithProof(context.Context, *RpcChainEpoch) (*RpcResponseStream, error)
func (UnimplementedNodeServer) GetCommittee ¶
func (UnimplementedNodeServer) GetCommittee(context.Context, *RpcChainEpoch) (*RpcResponse, error)
func (UnimplementedNodeServer) GetConfirmeds ¶
func (UnimplementedNodeServer) GetConfirmeds(context.Context, *RpcBlockHeight) (*RpcResponseStream, error)
func (UnimplementedNodeServer) GetRRCurrent ¶
func (UnimplementedNodeServer) GetRRCurrent(context.Context, *RpcChainRequest) (*RpcResponse, error)
func (UnimplementedNodeServer) GetRRInfo ¶
func (UnimplementedNodeServer) GetRRInfo(context.Context, *RpcGetRRInfoReq) (*RpcResponseStream, error)
func (UnimplementedNodeServer) GetRRProofs ¶
func (UnimplementedNodeServer) GetRRProofs(context.Context, *RpcRRProofReq) (*RpcResponse, error)
func (UnimplementedNodeServer) GetRRTxByHash ¶
func (UnimplementedNodeServer) GetRRTxByHash(context.Context, *RpcTXHash) (*RpcResponseStream, error)
func (UnimplementedNodeServer) GetStats ¶
func (UnimplementedNodeServer) GetStats(context.Context, *RpcStatsReq) (*RpcResponse, error)
func (UnimplementedNodeServer) GetTransactionByHash ¶
func (UnimplementedNodeServer) GetTransactionByHash(context.Context, *RpcTXHash) (*RpcResponse, error)
func (UnimplementedNodeServer) GetTransactions ¶
func (UnimplementedNodeServer) GetTransactions(context.Context, *RpcTxList) (*RpcResponse, error)
func (UnimplementedNodeServer) GetTxFinalProof ¶
func (UnimplementedNodeServer) GetTxFinalProof(context.Context, *RpcTxProofReq) (*RpcResponseStream, error)
func (UnimplementedNodeServer) GetTxLocalProof ¶ added in v0.2.4
func (UnimplementedNodeServer) GetTxLocalProof(context.Context, *RpcTXHash) (*RpcResponseStream, error)
func (UnimplementedNodeServer) GetTxProof ¶
func (UnimplementedNodeServer) GetTxProof(context.Context, *RpcTXHash) (*RpcResponse, error)
func (UnimplementedNodeServer) ListBridgeSessionsToAt ¶ added in v0.4.0
func (UnimplementedNodeServer) ListBridgeSessionsToAt(context.Context, *RpcBridgeToAt) (*RpcResponseStream, error)
func (UnimplementedNodeServer) ListRRChanges ¶
func (UnimplementedNodeServer) ListRRChanges(context.Context, *RpcRRChangesReq) (*RpcResponseStream, error)
func (UnimplementedNodeServer) ListRRInfos ¶ added in v0.4.0
func (UnimplementedNodeServer) ListRRInfos(context.Context, *RpcBlockTxsReq) (*RpcResponseStream, error)
func (UnimplementedNodeServer) MakeCCCExistenceProof ¶
func (UnimplementedNodeServer) MakeCCCExistenceProof(context.Context, *RpcCashCheck) (*RpcResponse, error)
func (UnimplementedNodeServer) MakeVccProof ¶
func (UnimplementedNodeServer) MakeVccProof(context.Context, *RpcCashCheck) (*RpcResponse, error)
func (UnimplementedNodeServer) Ping ¶
func (UnimplementedNodeServer) Ping(context.Context, *RpcRequest) (*RpcResponse, error)
func (UnimplementedNodeServer) RebootMainChain ¶
func (UnimplementedNodeServer) RebootMainChain(context.Context, *RpcReboot) (*RpcResponse, error)
func (UnimplementedNodeServer) SendBlock ¶
func (UnimplementedNodeServer) SendBlock(context.Context, *RpcMsgReq) (*RpcResponse, error)
func (UnimplementedNodeServer) SendTx ¶
func (UnimplementedNodeServer) SendTx(context.Context, *RpcTx) (*RpcResponse, error)
func (UnimplementedNodeServer) TryCrypto ¶
func (UnimplementedNodeServer) TryCrypto(context.Context, *RpcMsgReq) (*RpcResponse, error)
type UnsafeNodeServer ¶
type UnsafeNodeServer interface {
// contains filtered or unexported methods
}
UnsafeNodeServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to NodeServer will result in compilation errors.