Skip to content

Commit

Permalink
rollapp query proto
Browse files Browse the repository at this point in the history
  • Loading branch information
srene committed Nov 11, 2024
1 parent d76875f commit b03343d
Show file tree
Hide file tree
Showing 4 changed files with 474 additions and 134 deletions.
53 changes: 15 additions & 38 deletions proto/types/dymensionxyz/dymension/rollapp/query.proto
Original file line number Diff line number Diff line change
@@ -1,69 +1,46 @@
syntax = "proto3";
package dymensionxyz.dymension.rollapp;

option go_package = "github.com/dymensionxyz/dymension/v3/x/rollapp/types";
option go_package = "github.com/dymensionxyz/dymint/types/pb/dymensionxyz/dymension/rollapp";

import "gogoproto/gogo.proto";
import "google/api/annotations.proto";
import "cosmos/base/query/v1beta1/pagination.proto";
import "dymensionxyz/dymension/rollapp/params.proto";
import "dymensionxyz/dymension/rollapp/rollapp.proto";
import "dymensionxyz/dymension/rollapp/state_info.proto";
import "dymensionxyz/dymension/rollapp/app.proto";
import "types/cosmos/base/query/v1beta1/pagination.proto";
import "types/dymensionxyz/dymension/rollapp/params.proto";
import "types/dymensionxyz/dymension/rollapp/rollapp.proto";
import "types/dymensionxyz/dymension/rollapp/state_info.proto";
import "types/dymensionxyz/dymension/rollapp/app.proto";

// Query defines the gRPC querier service.
service Query {
// Parameters queries the parameters of the module.
rpc Params(QueryParamsRequest) returns (QueryParamsResponse) {
option (google.api.http).get = "/dymensionxyz/dymension/rollapp/params";
}
rpc Params(QueryParamsRequest) returns (QueryParamsResponse) {}
// Queries a Rollapp by index.
rpc Rollapp(QueryGetRollappRequest) returns (QueryGetRollappResponse) {
option (google.api.http).get =
"/dymensionxyz/dymension/rollapp/rollapp/{rollappId}";
}
rpc Rollapp(QueryGetRollappRequest) returns (QueryGetRollappResponse) { }

// Queries a Rollapp by index.
rpc RollappByEIP155(QueryGetRollappByEIP155Request)
returns (QueryGetRollappResponse) {
option (google.api.http).get =
"/dymensionxyz/dymension/rollapp/eip155/{eip155}";
}
returns (QueryGetRollappResponse) {}

// Queries a list of Rollapp items.
rpc RollappAll(QueryAllRollappRequest) returns (QueryAllRollappResponse) {
option (google.api.http).get = "/dymensionxyz/dymension/rollapp/rollapp";
}
rpc RollappAll(QueryAllRollappRequest) returns (QueryAllRollappResponse) {}

// Queries a LatestHeight by rollapp-id.
rpc LatestHeight(QueryGetLatestHeightRequest)
returns (QueryGetLatestHeightResponse) {
option (google.api.http).get =
"/dymensionxyz/dymension/rollapp/latest_height/{rollappId}";
}
returns (QueryGetLatestHeightResponse) {}

// Queries a LatestStateIndex by rollapp-id.
rpc LatestStateIndex(QueryGetLatestStateIndexRequest)
returns (QueryGetLatestStateIndexResponse) {
option (google.api.http).get =
"/dymensionxyz/dymension/rollapp/latest_state_index/{rollappId}";
}
returns (QueryGetLatestStateIndexResponse) {}

// Queries a StateInfo by index.
rpc StateInfo(QueryGetStateInfoRequest) returns (QueryGetStateInfoResponse) {
option (google.api.http).get =
"/dymensionxyz/dymension/rollapp/state_info/{rollappId}/{index}";
}
rpc StateInfo(QueryGetStateInfoRequest) returns (QueryGetStateInfoResponse) {}

// Queries a list of registered denoms for the rollapp.
rpc RegisteredDenoms(QueryRegisteredDenomsRequest) returns (QueryRegisteredDenomsResponse) {
option (google.api.http).get = "/dymensionxyz/dymension/rollapp/registered_denoms";
}
rpc RegisteredDenoms(QueryRegisteredDenomsRequest) returns (QueryRegisteredDenomsResponse) {}

// Queries a list of obsolete DRS versions.
rpc ObsoleteDRSVersions(QueryObsoleteDRSVersionsRequest) returns (QueryObsoleteDRSVersionsResponse) {
option (google.api.http).get = "/dymensionxyz/dymension/rollapp/obsolete_drs_versions";
}
rpc ObsoleteDRSVersions(QueryObsoleteDRSVersionsRequest) returns (QueryObsoleteDRSVersionsResponse) {}
}

// QueryParamsRequest is request type for the Query/Params RPC method.
Expand Down
Empty file.
Loading

0 comments on commit b03343d

Please sign in to comment.