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
79 lines
3.2 KiB
Protocol Buffer
79 lines
3.2 KiB
Protocol Buffer
syntax = "proto3";
|
|
package cosmos.authz.v1beta1;
|
|
|
|
import "google/api/annotations.proto";
|
|
import "cosmos/base/query/v1beta1/pagination.proto";
|
|
import "cosmos/authz/v1beta1/authz.proto";
|
|
import "cosmos_proto/cosmos.proto";
|
|
|
|
option go_package = "github.com/cosmos/cosmos-sdk/x/authz";
|
|
|
|
// Query defines the gRPC querier service.
|
|
service Query {
|
|
// Returns list of `Authorization`, granted to the grantee by the granter.
|
|
rpc Grants(QueryGrantsRequest) returns (QueryGrantsResponse) {
|
|
option (google.api.http).get = "/cosmos/authz/v1beta1/grants";
|
|
}
|
|
|
|
// GranterGrants returns list of `GrantAuthorization`, granted by granter.
|
|
rpc GranterGrants(QueryGranterGrantsRequest) returns (QueryGranterGrantsResponse) {
|
|
option (cosmos_proto.method_added_in) = "cosmos-sdk 0.46";
|
|
option (google.api.http).get = "/cosmos/authz/v1beta1/grants/granter/{granter}";
|
|
}
|
|
|
|
// GranteeGrants returns a list of `GrantAuthorization` by grantee.
|
|
rpc GranteeGrants(QueryGranteeGrantsRequest) returns (QueryGranteeGrantsResponse) {
|
|
option (cosmos_proto.method_added_in) = "cosmos-sdk 0.46";
|
|
option (google.api.http).get = "/cosmos/authz/v1beta1/grants/grantee/{grantee}";
|
|
}
|
|
}
|
|
|
|
// QueryGrantsRequest is the request type for the Query/Grants RPC method.
|
|
message QueryGrantsRequest {
|
|
string granter = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
|
|
string grantee = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
|
|
// Optional, msg_type_url, when set, will query only grants matching given msg type.
|
|
string msg_type_url = 3;
|
|
// pagination defines an pagination for the request.
|
|
cosmos.base.query.v1beta1.PageRequest pagination = 4;
|
|
}
|
|
|
|
// QueryGrantsResponse is the response type for the Query/Authorizations RPC method.
|
|
message QueryGrantsResponse {
|
|
// authorizations is a list of grants granted for grantee by granter.
|
|
repeated Grant grants = 1;
|
|
// pagination defines an pagination for the response.
|
|
cosmos.base.query.v1beta1.PageResponse pagination = 2;
|
|
}
|
|
|
|
// QueryGranterGrantsRequest is the request type for the Query/GranterGrants RPC method.
|
|
message QueryGranterGrantsRequest {
|
|
string granter = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
|
|
|
|
// pagination defines an pagination for the request.
|
|
cosmos.base.query.v1beta1.PageRequest pagination = 2;
|
|
}
|
|
|
|
// QueryGranterGrantsResponse is the response type for the Query/GranterGrants RPC method.
|
|
message QueryGranterGrantsResponse {
|
|
// grants is a list of grants granted by the granter.
|
|
repeated GrantAuthorization grants = 1;
|
|
// pagination defines an pagination for the response.
|
|
cosmos.base.query.v1beta1.PageResponse pagination = 2;
|
|
}
|
|
|
|
// QueryGranteeGrantsRequest is the request type for the Query/GranteeGrants RPC method.
|
|
message QueryGranteeGrantsRequest {
|
|
string grantee = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
|
|
|
|
// pagination defines an pagination for the request.
|
|
cosmos.base.query.v1beta1.PageRequest pagination = 2;
|
|
}
|
|
|
|
// QueryGranteeGrantsResponse is the response type for the Query/GranteeGrants RPC method.
|
|
message QueryGranteeGrantsResponse {
|
|
// grants is a list of grants granted to the grantee.
|
|
repeated GrantAuthorization grants = 1;
|
|
// pagination defines an pagination for the response.
|
|
cosmos.base.query.v1beta1.PageResponse pagination = 2;
|
|
}
|