Skip to content

Commit eacb40c

Browse files
committed
add GetTwoWayPegData RPC
1 parent b23aca0 commit eacb40c

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

proto/mainchain.proto

+15
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ service Mainchain {
4141
rpc GetBmmHStarCommitments(GetBmmHStarCommitmentsRequest)
4242
returns (GetBmmHStarCommitmentsResponse);
4343
rpc GetChainTip(GetChainTipRequest) returns (GetChainTipResponse);
44+
rpc GetTwoWayPegData(GetTwoWayPegDataRequest)
45+
returns (GetTwoWayPegDataResponse);
4446
rpc SubscribeEvents(SubscribeEventsRequest) returns (stream EventResponse);
4547
}
4648

@@ -73,6 +75,19 @@ message GetChainTipResponse {
7375
BlockHeaderInfo block_header_info = 1;
7476
}
7577

78+
message GetTwoWayPegDataRequest {
79+
uint32 sidechain_id = 1;
80+
bytes start_block_hash = 2;
81+
bytes end_block_hash = 3;
82+
}
83+
message GetTwoWayPegDataResponse {
84+
message ResponseItem {
85+
BlockHeaderInfo block_header_info = 1;
86+
BlockInfo block_info = 2;
87+
}
88+
repeated ResponseItem blocks = 1;
89+
}
90+
7691
message SubscribeEventsRequest {
7792
}
7893
message EventResponse {

0 commit comments

Comments
 (0)