Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: implement ABCI Query via gRPC #11642

Merged
merged 38 commits into from
Apr 25, 2022
Merged
Changes from 1 commit
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
4c00b1f
updates
alexanderbez Apr 14, 2022
5f7dffb
updates
alexanderbez Apr 14, 2022
0f4e432
proto gen
alexanderbez Apr 15, 2022
1009f37
Merge branch 'master' into bez/grpc-abci-query
alexanderbez Apr 15, 2022
d145f20
updates
alexanderbez Apr 16, 2022
68aef98
updates
alexanderbez Apr 16, 2022
b1f80e3
updates
alexanderbez Apr 17, 2022
d5ee2bc
Merge branch 'master' into bez/grpc-abci-query
alexanderbez Apr 17, 2022
3958fd6
cl++
alexanderbez Apr 17, 2022
a6d242e
Merge branch 'master' into bez/grpc-abci-query
alexanderbez Apr 18, 2022
06f23f6
Merge branch 'master' into bez/grpc-abci-query
alexanderbez Apr 18, 2022
a551ca5
Update proto/cosmos/base/tendermint/v1beta1/query.proto
alexanderbez Apr 19, 2022
fdae2b8
cl++
alexanderbez Apr 19, 2022
3519291
updates
alexanderbez Apr 19, 2022
614ca7d
Merge branch 'bez/grpc-abci-query' of github.com:cosmos/cosmos-sdk in…
alexanderbez Apr 19, 2022
2ac3255
updates
alexanderbez Apr 19, 2022
dc2d795
Update client/grpc/tmservice/service_test.go
alexanderbez Apr 19, 2022
3d2e72f
Update client/grpc/tmservice/service_test.go
alexanderbez Apr 19, 2022
d9944c7
Merge branch 'master' into bez/grpc-abci-query
alexanderbez Apr 19, 2022
d653cf3
updates
alexanderbez Apr 19, 2022
8902935
Merge branch 'bez/grpc-abci-query' of github.com:cosmos/cosmos-sdk in…
alexanderbez Apr 19, 2022
ab61f4f
Merge branch 'master' into bez/grpc-abci-query
alexanderbez Apr 19, 2022
e50155a
Merge branch 'master' into bez/grpc-abci-query
alexanderbez Apr 19, 2022
dc4bc1a
updates
alexanderbez Apr 19, 2022
cbe8f23
Merge branch 'master' into bez/grpc-abci-query
alexanderbez Apr 19, 2022
2f0b84b
updates
alexanderbez Apr 20, 2022
0d4664b
Merge branch 'master' into bez/grpc-abci-query
alexanderbez Apr 20, 2022
60ea824
Merge branch 'master' into bez/grpc-abci-query
alexanderbez Apr 20, 2022
aee4a16
Merge branch 'master' into bez/grpc-abci-query
alexanderbez Apr 21, 2022
19a1a68
Merge branch 'master' into bez/grpc-abci-query
alexanderbez Apr 21, 2022
9f36a46
Merge branch 'master' into bez/grpc-abci-query
alexanderbez Apr 21, 2022
11f9bf9
updates
alexanderbez Apr 22, 2022
22c3d68
updates
alexanderbez Apr 22, 2022
b8fb75a
Merge branch 'main' into bez/grpc-abci-query
alexanderbez Apr 25, 2022
e0176f6
Merge branch 'main' into bez/grpc-abci-query
alexanderbez Apr 25, 2022
0b86641
Merge branch 'main' into bez/grpc-abci-query
alexanderbez Apr 25, 2022
a851151
updates
alexanderbez Apr 25, 2022
f5a5508
Merge branch 'main' into bez/grpc-abci-query
alexanderbez Apr 25, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
updates
  • Loading branch information
alexanderbez committed Apr 14, 2022
commit 4c00b1fc50ace476d0deb73a74cf55abdcd43c1a
48 changes: 48 additions & 0 deletions proto/cosmos/base/tendermint/v1beta1/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ service Service {
rpc GetValidatorSetByHeight(GetValidatorSetByHeightRequest) returns (GetValidatorSetByHeightResponse) {
option (google.api.http).get = "/cosmos/base/tendermint/v1beta1/validatorsets/{height}";
}
// ABCIQuery defines a query that proxies an ABCI query request to Tendermint.
alexanderbez marked this conversation as resolved.
Show resolved Hide resolved
rpc ABCIQuery(ABCIQueryRequest) returns (ABCIQueryResponse) {
option (google.api.http).get = "/cosmos/base/tendermint/v1beta1/abci_query";
}
}

// GetValidatorSetByHeightRequest is the request type for the Query/GetValidatorSetByHeight RPC method.
Expand Down Expand Up @@ -136,3 +140,47 @@ message Module {
// checksum
string sum = 3;
}

// ABCIQueryRequest defines the request structure for the ABCIQuery gRPC query.
message ABCIQueryRequest {
bytes data = 1;
string path = 2;
alexanderbez marked this conversation as resolved.
Show resolved Hide resolved
int64 height = 3;
bool prove = 4;
}

// ABCIQueryResponse defines the response structure for the ABCIQuery gRPC query.
//
// Note: This type is a duplicate of the ResponseQuery proto type defined in
// Tendermint.
message ABCIQueryResponse {
uint32 code = 1;
// DEPRECATED: use "value" instead
// bytes data = 2;
alexanderbez marked this conversation as resolved.
Show resolved Hide resolved
string log = 3; // nondeterministic
string info = 4; // nondeterministic
int64 index = 5;
bytes key = 6;
bytes value = 7;
ProofOps proof_ops = 8;
int64 height = 9;
string codespace = 10;
}

// ProofOp defines an operation used for calculating Merkle root. The data could
// be arbitrary format, providing nessecary data for example neighbouring node
// hash.
//
// Note: This type is a duplicate of the ProofOp proto type defined in Tendermint.
alexanderbez marked this conversation as resolved.
Show resolved Hide resolved
message ProofOp {
string type = 1;
bytes key = 2;
bytes data = 3;
}

// ProofOps is Merkle proof defined by the list of ProofOps.
//
// Note: This type is a duplicate of the ProofOps proto type defined in Tendermint.
message ProofOps {
repeated ProofOp ops = 1 [(gogoproto.nullable) = false];
}