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

refactor: Refactor TxSearch #14758

Merged
merged 41 commits into from
Feb 24, 2023
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
ae3e190
updates
alexanderbez Jan 24, 2023
a47cfb7
updates
alexanderbez Jan 24, 2023
8df20c4
updates
alexanderbez Jan 24, 2023
82dc102
updates
alexanderbez Jan 25, 2023
f743d0b
updates
alexanderbez Jan 25, 2023
0df2abd
updates
alexanderbez Jan 25, 2023
20579ab
updates
alexanderbez Jan 25, 2023
3bdab1f
updates
alexanderbez Jan 25, 2023
756f722
updates
alexanderbez Jan 25, 2023
0afa78f
updates
alexanderbez Jan 25, 2023
97989b0
Merge branch 'main' into bez/14727-refactor-tx-search
alexanderbez Jan 25, 2023
bee3970
updates
alexanderbez Jan 25, 2023
a96463f
updates
alexanderbez Jan 26, 2023
a933e22
updates
alexanderbez Jan 26, 2023
62652ee
Merge branch 'main' into bez/14727-refactor-tx-search
alexanderbez Jan 26, 2023
ae2e900
Merge branch 'main' into bez/14727-refactor-tx-search
alexanderbez Jan 26, 2023
0f1025a
Merge branch 'main' into bez/14727-refactor-tx-search
tac0turtle Feb 20, 2023
76a2a03
fix merge
tac0turtle Feb 20, 2023
f938b7d
address comments
tac0turtle Feb 20, 2023
bcabf4b
Merge branch 'main' into bez/14727-refactor-tx-search
tac0turtle Feb 20, 2023
b88decb
revert internal flags
tac0turtle Feb 20, 2023
5ff6d30
delete extra lines
tac0turtle Feb 20, 2023
5c83612
Merge branch 'main' into bez/14727-refactor-tx-search
tac0turtle Feb 20, 2023
573fe32
Merge branch 'main' into bez/14727-refactor-tx-search
tac0turtle Feb 21, 2023
eb4de62
remove unneeded testcase
tac0turtle Feb 21, 2023
6c3c2d0
Merge branch 'main' into bez/14727-refactor-tx-search
tac0turtle Feb 21, 2023
7977997
Merge branch 'main' into bez/14727-refactor-tx-search
julienrbrt Feb 23, 2023
1b7d3b9
surface issue by remove cometbft replace
julienrbrt Feb 23, 2023
81c63c7
Merge branch 'main' into bez/14727-refactor-tx-search
alexanderbez Feb 23, 2023
2cab281
Merge branch 'main' into bez/14727-refactor-tx-search
alexanderbez Feb 23, 2023
3a6dc4d
updates
alexanderbez Feb 23, 2023
c08fdf0
Merge branch 'main' into bez/14727-refactor-tx-search
alexanderbez Feb 23, 2023
bf69105
updates
alexanderbez Feb 23, 2023
e86ea5e
Merge branch 'main' into bez/14727-refactor-tx-search
alexanderbez Feb 23, 2023
e4d15e6
Merge branch 'main' into bez/14727-refactor-tx-search
alexanderbez Feb 24, 2023
afbaf98
updates
julienrbrt Feb 24, 2023
ec5d9e1
Merge branch 'main' into bez/14727-refactor-tx-search
julienrbrt Feb 24, 2023
4187baf
updates
julienrbrt Feb 24, 2023
4180ed1
same pagination
julienrbrt Feb 24, 2023
7cdec41
updates
julienrbrt Feb 24, 2023
79a989a
Merge branch 'main' into bez/14727-refactor-tx-search
julienrbrt Feb 24, 2023
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
2 changes: 1 addition & 1 deletion api/cosmos/staking/v1beta1/tx.pulsar.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

495 changes: 288 additions & 207 deletions api/cosmos/tx/v1beta1/service.pulsar.go

Large diffs are not rendered by default.

32 changes: 23 additions & 9 deletions proto/cosmos/tx/v1beta1/service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ service Service {
// GetBlockWithTxs fetches a block with decoded txs.
//
// Since: cosmos-sdk 0.45.2
rpc GetBlockWithTxs(GetBlockWithTxsRequest) returns (GetBlockWithTxsResponse) {
rpc GetBlockWithTxs(GetBlockWithTxsRequest)
returns (GetBlockWithTxsResponse) {
option (google.api.http).get = "/cosmos/tx/v1beta1/txs/block/{height}";
}
// TxDecode decodes the transaction.
Expand Down Expand Up @@ -82,22 +83,33 @@ service Service {
// RPC method.
message GetTxsEventRequest {
// events is the list of transaction event type.
// Deprecated post v0.47.x: use query instead, which should contain a valid
// events query.
repeated string events = 1;
tac0turtle marked this conversation as resolved.
Show resolved Hide resolved

// pagination defines a pagination for the request.
// Deprecated post v0.46.x: use page and limit instead.
cosmos.base.query.v1beta1.PageRequest pagination = 2 [deprecated = true];

OrderBy order_by = 3;
// page is the page number to query, starts at 1. If not provided, will default to first page.

// page is the page number to query, starts at 1. If not provided, will
// default to first page.
uint64 page = 4;

// limit is the total number of results to be returned in the result page.
// If left empty it will default to a value to be set by each app.
uint64 limit = 5;

// query defines the transaction event query that is proxied to Tendermint's
// TxSearch RPC method. The query must be valid.
string query = 6;
tac0turtle marked this conversation as resolved.
Show resolved Hide resolved
}

// OrderBy defines the sorting order
enum OrderBy {
// ORDER_BY_UNSPECIFIED specifies an unknown sorting order. OrderBy defaults to ASC in this case.
// ORDER_BY_UNSPECIFIED specifies an unknown sorting order. OrderBy defaults
// to ASC in this case.
ORDER_BY_UNSPECIFIED = 0;
// ORDER_BY_ASC defines ascending order
ORDER_BY_ASC = 1;
Expand Down Expand Up @@ -127,18 +139,19 @@ message BroadcastTxRequest {
BroadcastMode mode = 2;
}

// BroadcastMode specifies the broadcast mode for the TxService.Broadcast RPC method.
// BroadcastMode specifies the broadcast mode for the TxService.Broadcast RPC
// method.
enum BroadcastMode {
// zero-value for mode ordering
BROADCAST_MODE_UNSPECIFIED = 0;
// DEPRECATED: use BROADCAST_MODE_SYNC instead,
// BROADCAST_MODE_BLOCK is not supported by the SDK from v0.47.x onwards.
BROADCAST_MODE_BLOCK = 1 [deprecated = true];
// BROADCAST_MODE_SYNC defines a tx broadcasting mode where the client waits for
// a CheckTx execution response only.
// BROADCAST_MODE_SYNC defines a tx broadcasting mode where the client waits
// for a CheckTx execution response only.
BROADCAST_MODE_SYNC = 2;
// BROADCAST_MODE_ASYNC defines a tx broadcasting mode where the client returns
// immediately.
// BROADCAST_MODE_ASYNC defines a tx broadcasting mode where the client
// returns immediately.
BROADCAST_MODE_ASYNC = 3;
}

Expand Down Expand Up @@ -196,7 +209,8 @@ message GetBlockWithTxsRequest {
cosmos.base.query.v1beta1.PageRequest pagination = 2;
}

// GetBlockWithTxsResponse is the response type for the Service.GetBlockWithTxs method.
// GetBlockWithTxsResponse is the response type for the Service.GetBlockWithTxs
// method.
//
// Since: cosmos-sdk 0.45.2
message GetBlockWithTxsResponse {
Expand Down
Loading