Skip to content

Commit 5b8f528

Browse files
committed
Fixes after review
1 parent f067afe commit 5b8f528

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

api-spec/protobuf/ark/v1/explorer.proto

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,24 @@ import "google/api/annotations.proto";
66
import "ark/v1/types.proto";
77

88
service ExplorerService {
9-
rpc GetBatchInfo(GetBatchInfoRequest) returns (GetBatchInfoResponse) {
9+
rpc GetCommitmentTxInfo(GetCommitmentTxInfoRequest) returns (GetCommitmentTxInfoResponse) {
1010
option (google.api.http) = {
11-
get: "/v1/batch/{txid}"
11+
get: "/v1/commitmentTx/{txid}"
1212
};
1313
};
1414
rpc GetVtxoTree(GetVtxoTreeRequest) returns (GetVtxoTreeResponse) {
1515
option (google.api.http) = {
16-
get: "/v1/batch/{txid}/tree"
16+
get: "/v1/batch/{batch_outpoint.txid}/{batch_outpoint.vout}/tree"
1717
};
1818
};
1919
rpc GetForfeitTxs(GetForfeitTxsRequest) returns (GetForfeitTxsResponse) {
2020
option (google.api.http) = {
21-
get: "/v1/batch/{txid}/forfeitTxs"
21+
get: "/v1/batch/{batch_outpoint.txid}/{batch_outpoint.vout}/forfeitTxs"
2222
};
2323
};
2424
rpc GetConnectors(GetConnectorsRequest) returns (GetConnectorsResponse) {
2525
option (google.api.http) = {
26-
get: "/v1/batch/{txid}/connectors"
26+
get: "/v1/batch/{batch_outpoint.txid}/{batch_outpoint.vout}/connectors"
2727
};
2828
};
2929
rpc GetSpendableVtxos(GetSpendableVtxosRequest) returns (GetSpendableVtxosResponse) {
@@ -43,15 +43,18 @@ service ExplorerService {
4343
}
4444
}
4545

46-
message GetBatchInfoRequest {
46+
message GetCommitmentTxInfoRequest {
4747
string txid = 1;
4848
}
49-
message GetBatchInfoResponse {
50-
Batch batch = 1;
49+
message GetCommitmentTxInfoResponse {
50+
string tx = 1;
51+
int64 started_at = 2;
52+
int64 ended_at = 3;
53+
map<uint32, Batch> batches = 4;
5154
}
5255

5356
message GetVtxoTreeRequest {
54-
string txid = 1;
57+
Outpoint batch_outpoint = 1;
5558
PageRequest page = 2;
5659
}
5760
message GetVtxoTreeResponse {
@@ -60,7 +63,7 @@ message GetVtxoTreeResponse {
6063
}
6164

6265
message GetForfeitTxsRequest {
63-
string txid = 1;
66+
Outpoint batch_outpoint = 1;
6467
PageRequest page = 2;
6568
}
6669
message GetForfeitTxsResponse {
@@ -69,7 +72,7 @@ message GetForfeitTxsResponse {
6972
}
7073

7174
message GetConnectorsRequest {
72-
string txid = 1;
75+
Outpoint batch_outpoint = 1;
7376
PageRequest page = 2;
7477
}
7578
message GetConnectorsResponse {

0 commit comments

Comments
 (0)