@@ -11,12 +11,22 @@ message BlockHeaderInfo {
11
11
bytes work = 4 ;
12
12
}
13
13
14
- message Deposit {
15
- uint64 sequence_number = 1 ;
14
+ message OutPoint {
15
+ bytes txid = 1 ;
16
+ uint32 vout = 2 ;
17
+ }
18
+
19
+ message Output {
16
20
bytes address = 2 ;
17
21
uint64 value = 3 ;
18
22
}
19
23
24
+ message Deposit {
25
+ uint64 sequence_number = 1 ;
26
+ OutPoint outpoint = 2 ;
27
+ Output output = 3 ;
28
+ }
29
+
20
30
enum WithdrawalBundleEventType {
21
31
WITHDRAWAL_BUNDLE_EVENT_TYPE_SUBMITTED_UNSPECIFIED = 0 ;
22
32
WITHDRAWAL_BUNDLE_EVENT_TYPE_FAILED = 1 ;
@@ -41,6 +51,8 @@ service Mainchain {
41
51
rpc GetBmmHStarCommitments (GetBmmHStarCommitmentsRequest )
42
52
returns (GetBmmHStarCommitmentsResponse );
43
53
rpc GetChainTip (GetChainTipRequest ) returns (GetChainTipResponse );
54
+ rpc GetTwoWayPegData (GetTwoWayPegDataRequest )
55
+ returns (GetTwoWayPegDataResponse );
44
56
rpc SubscribeEvents (SubscribeEventsRequest ) returns (stream EventResponse );
45
57
}
46
58
@@ -53,6 +65,7 @@ message GetBlockHeaderInfoResponse {
53
65
54
66
message GetBlockInfoRequest {
55
67
bytes block_hash = 1 ;
68
+ uint32 sidechain_id = 2 ;
56
69
}
57
70
message GetBlockInfoResponse {
58
71
BlockHeaderInfo header_info = 1 ;
@@ -73,7 +86,21 @@ message GetChainTipResponse {
73
86
BlockHeaderInfo block_header_info = 1 ;
74
87
}
75
88
89
+ message GetTwoWayPegDataRequest {
90
+ uint32 sidechain_id = 1 ;
91
+ optional bytes start_block_hash = 2 ;
92
+ bytes end_block_hash = 3 ;
93
+ }
94
+ message GetTwoWayPegDataResponse {
95
+ message ResponseItem {
96
+ BlockHeaderInfo block_header_info = 1 ;
97
+ BlockInfo block_info = 2 ;
98
+ }
99
+ repeated ResponseItem blocks = 1 ;
100
+ }
101
+
76
102
message SubscribeEventsRequest {
103
+ uint32 sidechain_id = 1 ;
77
104
}
78
105
message EventResponse {
79
106
message Event {
0 commit comments