File tree 6 files changed +841
-0
lines changed
6 files changed +841
-0
lines changed Original file line number Diff line number Diff line change
1
+ syntax = "proto3" ;
2
+
3
+ message InitBranch {
4
+ uint32 balance = 1 ;
5
+
6
+ message Branch {
7
+ string name = 1 ;
8
+ string ip = 2 ;
9
+ uint32 port = 3 ;
10
+ }
11
+
12
+ repeated Branch all_branches = 2 ;
13
+ }
14
+
15
+ message Transfer {
16
+ uint32 money = 1 ;
17
+ }
18
+
19
+ message InitSnapshot {
20
+ uint32 snapshot_id = 1 ;
21
+ }
22
+
23
+ message Marker {
24
+ uint32 snapshot_id = 1 ;
25
+ }
26
+
27
+ message RetrieveSnapshot {
28
+ uint32 snapshot_id = 1 ;
29
+ }
30
+
31
+ message ReturnSnapshot {
32
+ message LocalSnapshot {
33
+ uint32 snapshot_id = 1 ;
34
+ uint32 balance = 2 ;
35
+ repeated uint32 channel_state = 3 ;
36
+ }
37
+
38
+ LocalSnapshot local_snapshot = 1 ;
39
+ }
40
+
41
+ message BranchMessage {
42
+ oneof branch_message {
43
+ InitBranch init_branch = 1 ;
44
+ Transfer transfer = 2 ;
45
+ InitSnapshot init_snapshot = 3 ;
46
+ Marker marker = 4 ;
47
+ RetrieveSnapshot retrieve_snapshot = 5 ;
48
+ ReturnSnapshot return_snapshot = 6 ;
49
+ }
50
+ }
51
+
You can’t perform that action at this time.
0 commit comments