Some checks failed
Build SimApp / build (amd64) (push) Waiting to run
Build SimApp / build (arm64) (push) Waiting to run
CodeQL / Analyze (push) Waiting to run
Build & Push / build (push) Waiting to run
Run Gosec / Gosec (push) Waiting to run
Lint / golangci-lint (push) Waiting to run
Checks dependencies and mocks generation / Check go mod tidy (push) Waiting to run
Checks dependencies and mocks generation / Check up to date mocks (push) Waiting to run
System Tests / setup (push) Waiting to run
System Tests / test-system (push) Blocked by required conditions
System Tests / test-system-legacy (push) Blocked by required conditions
Tests / Code Coverage / split-test-files (push) Waiting to run
Tests / Code Coverage / tests (00) (push) Blocked by required conditions
Tests / Code Coverage / tests (01) (push) Blocked by required conditions
Tests / Code Coverage / tests (02) (push) Blocked by required conditions
Tests / Code Coverage / tests (03) (push) Blocked by required conditions
Tests / Code Coverage / test-integration (push) Waiting to run
Tests / Code Coverage / test-e2e (push) Waiting to run
Tests / Code Coverage / repo-analysis (push) Blocked by required conditions
Tests / Code Coverage / test-sim-nondeterminism (push) Waiting to run
Tests / Code Coverage / test-clientv2 (push) Waiting to run
Tests / Code Coverage / test-core (push) Waiting to run
Tests / Code Coverage / test-depinject (push) Waiting to run
Tests / Code Coverage / test-errors (push) Waiting to run
Tests / Code Coverage / test-math (push) Waiting to run
Tests / Code Coverage / test-schema (push) Waiting to run
Tests / Code Coverage / test-collections (push) Waiting to run
Tests / Code Coverage / test-cosmovisor (push) Waiting to run
Tests / Code Coverage / test-confix (push) Waiting to run
Tests / Code Coverage / test-store (push) Waiting to run
Tests / Code Coverage / test-log (push) Waiting to run
Tests / Code Coverage / test-x-tx (push) Waiting to run
Tests / Code Coverage / test-x-nft (push) Waiting to run
Tests / Code Coverage / test-x-circuit (push) Waiting to run
Tests / Code Coverage / test-x-feegrant (push) Waiting to run
Tests / Code Coverage / test-x-evidence (push) Waiting to run
Tests / Code Coverage / test-x-upgrade (push) Waiting to run
Tests / Code Coverage / test-tools-benchmark (push) Waiting to run
Build & Push SDK Proto Builder / build (push) Has been cancelled
117 lines
No EOL
4.4 KiB
Protocol Buffer
117 lines
No EOL
4.4 KiB
Protocol Buffer
syntax = "proto3";
|
|
package cosmos.upgrade.v1beta1;
|
|
|
|
import "google/api/annotations.proto";
|
|
import "cosmos/upgrade/v1beta1/upgrade.proto";
|
|
import "cosmos_proto/cosmos.proto";
|
|
|
|
option go_package = "cosmossdk.io/x/upgrade/types";
|
|
|
|
// Query defines the gRPC upgrade querier service.
|
|
service Query {
|
|
// CurrentPlan queries the current upgrade plan.
|
|
rpc CurrentPlan(QueryCurrentPlanRequest) returns (QueryCurrentPlanResponse) {
|
|
option (google.api.http).get = "/cosmos/upgrade/v1beta1/current_plan";
|
|
}
|
|
|
|
// AppliedPlan queries a previously applied upgrade plan by its name.
|
|
rpc AppliedPlan(QueryAppliedPlanRequest) returns (QueryAppliedPlanResponse) {
|
|
option (google.api.http).get = "/cosmos/upgrade/v1beta1/applied_plan/{name}";
|
|
}
|
|
|
|
// UpgradedConsensusState queries the consensus state that will serve
|
|
// as a trusted kernel for the next version of this chain. It will only be
|
|
// stored at the last height of this chain.
|
|
// UpgradedConsensusState RPC not supported with legacy querier
|
|
// This rpc is deprecated now that IBC has its own replacement
|
|
// (https://github.com/cosmos/ibc-go/blob/2c880a22e9f9cc75f62b527ca94aa75ce1106001/proto/ibc/core/client/v1/query.proto#L54)
|
|
rpc UpgradedConsensusState(QueryUpgradedConsensusStateRequest) returns (QueryUpgradedConsensusStateResponse) {
|
|
option deprecated = true;
|
|
option (google.api.http).get = "/cosmos/upgrade/v1beta1/upgraded_consensus_state/{last_height}";
|
|
}
|
|
|
|
// ModuleVersions queries the list of module versions from state.
|
|
rpc ModuleVersions(QueryModuleVersionsRequest) returns (QueryModuleVersionsResponse) {
|
|
option (cosmos_proto.method_added_in) = "cosmos-sdk 0.43";
|
|
option (google.api.http).get = "/cosmos/upgrade/v1beta1/module_versions";
|
|
}
|
|
|
|
// Returns the account with authority to conduct upgrades
|
|
rpc Authority(QueryAuthorityRequest) returns (QueryAuthorityResponse) {
|
|
option (google.api.http).get = "/cosmos/upgrade/v1beta1/authority";
|
|
option (cosmos_proto.method_added_in) = "cosmos-sdk 0.46";
|
|
}
|
|
}
|
|
|
|
// QueryCurrentPlanRequest is the request type for the Query/CurrentPlan RPC
|
|
// method.
|
|
message QueryCurrentPlanRequest {}
|
|
|
|
// QueryCurrentPlanResponse is the response type for the Query/CurrentPlan RPC
|
|
// method.
|
|
message QueryCurrentPlanResponse {
|
|
// plan is the current upgrade plan.
|
|
Plan plan = 1;
|
|
}
|
|
|
|
// QueryCurrentPlanRequest is the request type for the Query/AppliedPlan RPC
|
|
// method.
|
|
message QueryAppliedPlanRequest {
|
|
// name is the name of the applied plan to query for.
|
|
string name = 1;
|
|
}
|
|
|
|
// QueryAppliedPlanResponse is the response type for the Query/AppliedPlan RPC
|
|
// method.
|
|
message QueryAppliedPlanResponse {
|
|
// height is the block height at which the plan was applied.
|
|
int64 height = 1;
|
|
}
|
|
|
|
// QueryUpgradedConsensusStateRequest is the request type for the Query/UpgradedConsensusState
|
|
// RPC method.
|
|
message QueryUpgradedConsensusStateRequest {
|
|
option deprecated = true;
|
|
|
|
// last height of the current chain must be sent in request
|
|
// as this is the height under which next consensus state is stored
|
|
int64 last_height = 1;
|
|
}
|
|
|
|
// QueryUpgradedConsensusStateResponse is the response type for the Query/UpgradedConsensusState
|
|
// RPC method.
|
|
message QueryUpgradedConsensusStateResponse {
|
|
option deprecated = true;
|
|
reserved 1;
|
|
|
|
bytes upgraded_consensus_state = 2 [(cosmos_proto.field_added_in) = "cosmos-sdk 0.43"];
|
|
}
|
|
|
|
// QueryModuleVersionsRequest is the request type for the Query/ModuleVersions
|
|
// RPC method.
|
|
message QueryModuleVersionsRequest {
|
|
option (cosmos_proto.message_added_in) = "cosmos-sdk 0.43";
|
|
// module_name is a field to query a specific module
|
|
// consensus version from state. Leaving this empty will
|
|
// fetch the full list of module versions from state
|
|
string module_name = 1;
|
|
}
|
|
|
|
// QueryModuleVersionsResponse is the response type for the Query/ModuleVersions
|
|
// RPC method.
|
|
message QueryModuleVersionsResponse {
|
|
option (cosmos_proto.message_added_in) = "cosmos-sdk 0.43";
|
|
// module_versions is a list of module names with their consensus versions.
|
|
repeated ModuleVersion module_versions = 1;
|
|
}
|
|
|
|
// QueryAuthorityRequest is the request type for Query/Authority
|
|
message QueryAuthorityRequest {
|
|
option (cosmos_proto.message_added_in) = "cosmos-sdk 0.46";
|
|
}
|
|
|
|
// QueryAuthorityResponse is the response type for Query/Authority
|
|
message QueryAuthorityResponse {
|
|
option (cosmos_proto.message_added_in) = "cosmos-sdk 0.46";
|
|
string address = 1;
|
|
} |