Skip to content

Add TxsByEvent gRPC endpoint #7842

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

Merged
merged 27 commits into from
Nov 12, 2020
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
081369f
add service definition for TxsByEvents
aleem1314 Nov 6, 2020
3bee1ff
add TxsByEvent gRPC endpoint
aleem1314 Nov 6, 2020
1cda4ff
fix lint
aleem1314 Nov 6, 2020
ca102d8
fix test
aleem1314 Nov 6, 2020
7e18e49
Merge branch 'master' of https://github.com/cosmos/cosmos-sdk into al…
aleem1314 Nov 7, 2020
867f6eb
Merge branch 'master' into aleem/7355-grpc-endpoints
aleem1314 Nov 9, 2020
df5444e
Merge branch 'master' into aleem/7355-grpc-endpoints
aleem1314 Nov 9, 2020
8be084a
review changes
aleem1314 Nov 9, 2020
f6de842
Merge branch 'master' of https://github.com/cosmos/cosmos-sdk into al…
aleem1314 Nov 9, 2020
a46de40
Merge branch 'aleem/7355-grpc-endpoints' of https://github.com/cosmos…
aleem1314 Nov 9, 2020
44ccc1d
review changes
aleem1314 Nov 10, 2020
5869b49
Merge branch 'master' of https://github.com/cosmos/cosmos-sdk into al…
aleem1314 Nov 10, 2020
c422541
fix proto descriptions
aleem1314 Nov 10, 2020
efa1f45
Merge branch 'master' into aleem/7355-grpc-endpoints
alexanderbez Nov 10, 2020
94f7986
review changes
aleem1314 Nov 11, 2020
fb5bf71
Merge branch 'master' of https://github.com/cosmos/cosmos-sdk into al…
aleem1314 Nov 11, 2020
1e1bf06
fix lint
aleem1314 Nov 11, 2020
c43abaa
review changes
aleem1314 Nov 11, 2020
985b330
Update proto/cosmos/tx/v1beta1/service.proto
aleem1314 Nov 11, 2020
919d10e
Merge branch 'master' into aleem/7355-grpc-endpoints
aleem1314 Nov 11, 2020
d411845
Merge branch 'master' into aleem/7355-grpc-endpoints
mergify[bot] Nov 11, 2020
5d3307d
Merge branch 'master' into aleem/7355-grpc-endpoints
mergify[bot] Nov 11, 2020
846a677
Merge branch 'master' into aleem/7355-grpc-endpoints
mergify[bot] Nov 11, 2020
ff3b552
review changes
aleem1314 Nov 11, 2020
439dddf
Merge branch 'master' into aleem/7355-grpc-endpoints
mergify[bot] Nov 11, 2020
6d52e94
Merge branch 'master' into aleem/7355-grpc-endpoints
mergify[bot] Nov 12, 2020
cad1dd4
Merge branch 'master' into aleem/7355-grpc-endpoints
mergify[bot] Nov 12, 2020
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
26 changes: 26 additions & 0 deletions proto/cosmos/tx/v1beta1/service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,32 @@ service Service {
rpc GetTx(GetTxRequest) returns (GetTxResponse) {
option (google.api.http).get = "/cosmos/tx/v1beta1/tx/{hash}";
}

// TxsByEvents fetches txs by event.
rpc TxsByEvents(GetTxsEventRequest) returns (TxsByEventsResponse) {
option (google.api.http).get = "/cosmos/tx/v1beta1/txs";
}
}

// GetTxsEventRequest is the request type for the Service.TxsByEvents
// RPC method.
message GetTxsEventRequest {

// event is the transaction event type.
string event = 1;

// page is the page number
int64 page = 2;

// limit defines per page limit
int64 limit = 3;
}

// TxsByEventsResponse is the response type for the Service.TxsByEvents
// RPC method.
message TxsByEventsResponse {
// txs is the list of queried transactions.
repeated cosmos.tx.v1beta1.Tx txs = 1;
}

// SimulateRequest is the request type for the Service.Simulate
Expand Down
Loading