@@ -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
@@ -73,6 +85,19 @@ message GetChainTipResponse {
73
85
BlockHeaderInfo block_header_info = 1 ;
74
86
}
75
87
88
+ message GetTwoWayPegDataRequest {
89
+ uint32 sidechain_id = 1 ;
90
+ optional bytes start_block_hash = 2 ;
91
+ bytes end_block_hash = 3 ;
92
+ }
93
+ message GetTwoWayPegDataResponse {
94
+ message ResponseItem {
95
+ BlockHeaderInfo block_header_info = 1 ;
96
+ BlockInfo block_info = 2 ;
97
+ }
98
+ repeated ResponseItem blocks = 1 ;
99
+ }
100
+
76
101
message SubscribeEventsRequest {
77
102
}
78
103
message EventResponse {
0 commit comments