-
Notifications
You must be signed in to change notification settings - Fork 39
/
rpc.proto
executable file
·110 lines (105 loc) · 2.98 KB
/
rpc.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
syntax = "proto3";
package rpc;
// master operation
service MasterServerSideOp {
rpc AddMinorBlockHeader (Request) returns (Response) {
}
rpc AddMinorBlockHeaderList (Request) returns (Response) {
}
// p2p apis
rpc BroadcastNewTip (Request) returns (Response) {
}
rpc BroadcastTransactions (Request) returns (Response) {
}
rpc BroadcastNewMinorBlock (Request) returns (Response) {
}
rpc GetMinorBlockList (Request) returns (Response) {
}
rpc GetMinorBlockHeaderList (Request) returns (Response) {
}
rpc GetMinorBlockHeaderListWithSkip (Request) returns (Response) {
}
}
// slave operation
service SlaveServerSideOp {
rpc heartBeat (Request) returns (Response) {
}
rpc MasterInfo (Request) returns (Response) {
}
// APIs for master
rpc Ping (Request) returns (Response) {
}
rpc GenTx (Request) returns (Response) {
}
rpc AddRootBlock (Request) returns (Response) {
}
rpc GetUnconfirmedHeaderList (Request) returns (Response) {
}
rpc GetAccountData (Request) returns (Response) {
}
rpc AddTransaction (Request) returns (Response) {
}
rpc GetMinorBlock (Request) returns (Response) {
}
rpc GetTransaction (Request) returns (Response) {
}
rpc ExecuteTransaction (Request) returns (Response) {
}
rpc GetTransactionReceipt (Request) returns (Response) {
}
rpc GetTransactionListByAddress (Request) returns (Response) {
}
rpc GetAllTx (Request) returns (Response) {
}
rpc GetLogs (Request) returns (Response) {
}
rpc EstimateGas (Request) returns (Response) {
}
rpc GetStorageAt (Request) returns (Response) {
}
rpc GetCode (Request) returns (Response) {
}
rpc GasPrice (Request) returns (Response) {
}
rpc GetWork (Request) returns (Response) {
}
rpc SubmitWork (Request) returns (Response) {
}
rpc GetRootChainStakes (Request) returns (Response) {
}
// APIs for neighbor slaves
rpc AddXshardTxList (Request) returns (Response) {
}
rpc BatchAddXshardTxList (Request) returns (Response) {
}
rpc AddMinorBlockListForSync (Request) returns (Response) {
}
rpc SetMining (Request) returns (Response) {
}
rpc CheckMinorBlocksInRoot (Request) returns (Response) {
}
// p2p apis
rpc GetMinorBlockList (Request) returns (Response) {
}
rpc GetMinorBlockHeaderList (Request) returns (Response) {
}
rpc GetMinorBlockHeaderListWithSkip (Request) returns (Response) {
}
rpc HandleNewTip (Request) returns (Response) {
}
rpc AddTransactions (Request) returns (Response) {
}
rpc HandleNewMinorBlock (Request) returns (Response) {
}
}
// request data
message Request {
uint32 op = 1;
int64 rpc_id = 2;
bytes data = 5;
}
// response data
message Response {
bytes data = 1;
int64 rpc_id = 2;
}