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

fix descriptions and comments #41

Merged
merged 1 commit into from
May 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 2 additions & 2 deletions pair/types/query.pb.go

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

9 changes: 4 additions & 5 deletions proto/indexer/block/v1/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ service Query {
}
}

// BlockRequest defines the request for the Blocks RPC.
// BlockRequest defines the request for the Block RPC.
message BlockRequest { int64 height = 1; }

// BlockResponse defines the response for the Blocks RPC.
// BlockResponse defines the response for the Block RPC.
message BlockResponse { Block block = 1; }

// BlocksRequest defines the request for the Blocks RPC.
Expand All @@ -53,9 +53,8 @@ message BlocksResponse {
cosmos.base.query.v1beta1.PageResponse pagination = 2;
}

// AvgBlockTimeRequest defines the request for the AvgBlockTime RPC: no params
// for now.
// AvgBlockTimeRequest defines the request for the AvgBlockTime RPC.
message AvgBlockTimeRequest {}

// AvgBlockTimeResponse defines the response for the AvgBlockTime RPC.
message AvgBlockTimeResponse { double avg_block_time = 1; }
message AvgBlockTimeResponse { double avg_block_time = 1; }
4 changes: 2 additions & 2 deletions proto/indexer/block/v1/types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ message Block {
Proposer proposer = 10;
}

// Proposer represents the proposer of a block: for minitia, its the L2 operator
// Proposer represents the proposer of a block: for minitia, it is the L2 operator
message Proposer {
string moniker = 1;
// actually minitias have no identity because they haven't MsgCreateValidator,
// but we decided to keep this field for compatibility with L1
string identity = 2;
string operator_address =
3; // [(cosmos_proto.scalar) = "cosmos.AddressString"];
}
}
5 changes: 3 additions & 2 deletions proto/indexer/info/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,16 @@ import "indexer/info/types.proto";

option go_package = "github.com/initia-labs/kvindexer/x/kvindexer/types";

// Query provides the service definition for the Token Version
// Query provides defines the gRPC querier service.
service Query {
// Version queries all the collections of an account
// Version queries all the versions of the submodules
rpc Versions(QueryVersionRequest) returns (QueryVersionResponse) {
option (google.api.http) = {
get : "/indexer/version"
};
}

// VMType queries the type of the Minitia's VM
rpc VMType(QueryVMTypeRequest) returns (QueryVMTypeResponse) {
option (google.api.http) = {
get : "/indexer/vmtype"
Expand Down
2 changes: 1 addition & 1 deletion proto/indexer/pair/v1/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ option go_package = "github.com/initia-labs/kvindexer/pair/types";

// Query provides the service definition for the Token Pairs
service Query {
// Pairs queries all the collections of an account
// Pairs queries all the pairs of L1 and L2
rpc Pairs(QueryPairsRequest) returns (QueryPairsResponse) {
option (google.api.http) = {
get : "/indexer/pair/v1/pairs"
Expand Down
6 changes: 3 additions & 3 deletions proto/indexer/tx/v1/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ service Query {
};
}

// TxsByAccount queries all the collections of given account
// TxsByAccount queries all transactions of given account
rpc TxsByAccount(QueryTxsByAccountRequest) returns (QueryTxsResponse) {
option (google.api.http) = {
get : "/indexer/tx/v1/txs/by_account/{account}"
};
}

// TxsByHeight queries all the collections of given height
// TxsByHeight queries all transactions of given height
rpc TxsByHeight(QueryTxsByHeightRequest) returns (QueryTxsResponse) {
option (google.api.http) = {
get : "/indexer/tx/v1/txs/by_height/{height}"
Expand Down Expand Up @@ -79,4 +79,4 @@ message QueryTxsResponse {
// txs is the list of queried transactions.
repeated cosmos.base.abci.v1beta1.TxResponse txs = 1;
cosmos.base.query.v1beta1.PageResponse pagination = 2;
}
}
7 changes: 3 additions & 4 deletions submodules/block/types/query.pb.go

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

2 changes: 1 addition & 1 deletion submodules/block/types/types.pb.go

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

8 changes: 4 additions & 4 deletions submodules/tx/types/query.pb.go

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

6 changes: 4 additions & 2 deletions x/kvindexer/types/query.pb.go

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

Loading