Skip to content

Commit 013bd79

Browse files
committed
add GetTwoWayPegData RPC
1 parent b23aca0 commit 013bd79

File tree

1 file changed

+27
-2
lines changed

1 file changed

+27
-2
lines changed

proto/mainchain.proto

+27-2
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,22 @@ message BlockHeaderInfo {
1111
bytes work = 4;
1212
}
1313

14-
message Deposit {
15-
uint64 sequence_number = 1;
14+
message OutPoint {
15+
bytes txid = 1;
16+
uint32 vout = 2;
17+
}
18+
19+
message Output {
1620
bytes address = 2;
1721
uint64 value = 3;
1822
}
1923

24+
message Deposit {
25+
uint64 sequence_number = 1;
26+
OutPoint outpoint = 2;
27+
Output output = 3;
28+
}
29+
2030
enum WithdrawalBundleEventType {
2131
WITHDRAWAL_BUNDLE_EVENT_TYPE_SUBMITTED_UNSPECIFIED = 0;
2232
WITHDRAWAL_BUNDLE_EVENT_TYPE_FAILED = 1;
@@ -41,6 +51,8 @@ service Mainchain {
4151
rpc GetBmmHStarCommitments(GetBmmHStarCommitmentsRequest)
4252
returns (GetBmmHStarCommitmentsResponse);
4353
rpc GetChainTip(GetChainTipRequest) returns (GetChainTipResponse);
54+
rpc GetTwoWayPegData(GetTwoWayPegDataRequest)
55+
returns (GetTwoWayPegDataResponse);
4456
rpc SubscribeEvents(SubscribeEventsRequest) returns (stream EventResponse);
4557
}
4658

@@ -73,6 +85,19 @@ message GetChainTipResponse {
7385
BlockHeaderInfo block_header_info = 1;
7486
}
7587

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+
76101
message SubscribeEventsRequest {
77102
}
78103
message EventResponse {

0 commit comments

Comments
 (0)