Skip to content

Commit

Permalink
Add everywhere else and make-proto-gen
Browse files Browse the repository at this point in the history
  • Loading branch information
amaury1093 committed Oct 26, 2021
1 parent 1c8a923 commit f74fd81
Show file tree
Hide file tree
Showing 29 changed files with 132 additions and 79 deletions.
2 changes: 1 addition & 1 deletion client/grpc/tmservice/query.pb.go

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

96 changes: 66 additions & 30 deletions docs/core/proto-docs.md

Large diffs are not rendered by default.

5 changes: 1 addition & 4 deletions proto/cosmos/authz/v1beta1/authz.proto
@@ -1,3 +1,4 @@
// Since: cosmos-sdk 0.43
syntax = "proto3";
package cosmos.authz.v1beta1;

Expand All @@ -11,8 +12,6 @@ option (gogoproto.goproto_getters_all) = false;

// GenericAuthorization gives the grantee unrestricted permissions to execute
// the provided method on behalf of the granter's account.
//
// Since: cosmos-sdk 0.43
message GenericAuthorization {
option (cosmos_proto.implements_interface) = "Authorization";

Expand All @@ -22,8 +21,6 @@ message GenericAuthorization {

// Grant gives permissions to execute
// the provide method with expiration time.
//
// Since: cosmos-sdk 0.43
message Grant {
google.protobuf.Any authorization = 1 [(cosmos_proto.accepts_interface) = "Authorization"];
google.protobuf.Timestamp expiration = 2 [(gogoproto.stdtime) = true, (gogoproto.nullable) = false];
Expand Down
5 changes: 1 addition & 4 deletions proto/cosmos/authz/v1beta1/event.proto
@@ -1,3 +1,4 @@
// Since: cosmos-sdk 0.43
syntax = "proto3";
package cosmos.authz.v1beta1;

Expand All @@ -6,8 +7,6 @@ import "cosmos_proto/cosmos.proto";
option go_package = "github.com/cosmos/cosmos-sdk/x/authz";

// EventGrant is emitted on Msg/Grant
//
// Since: cosmos-sdk 0.43
message EventGrant {
// Msg type URL for which an autorization is granted
string msg_type_url = 2;
Expand All @@ -18,8 +17,6 @@ message EventGrant {
}

// EventRevoke is emitted on Msg/Revoke
//
// Since: cosmos-sdk 0.43
message EventRevoke {
// Msg type URL for which an autorization is revoked
string msg_type_url = 2;
Expand Down
5 changes: 1 addition & 4 deletions proto/cosmos/authz/v1beta1/genesis.proto
@@ -1,3 +1,4 @@
// Since: cosmos-sdk 0.43
syntax = "proto3";
package cosmos.authz.v1beta1;

Expand All @@ -9,15 +10,11 @@ import "cosmos_proto/cosmos.proto";
option go_package = "github.com/cosmos/cosmos-sdk/x/authz";

// GenesisState defines the authz module's genesis state.
//
// Since: cosmos-sdk 0.43
message GenesisState {
repeated GrantAuthorization authorization = 1 [(gogoproto.nullable) = false];
}

// GrantAuthorization defines the GenesisState/GrantAuthorization type.
//
// Since: cosmos-sdk 0.43
message GrantAuthorization {
string granter = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
string grantee = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
Expand Down
11 changes: 1 addition & 10 deletions proto/cosmos/authz/v1beta1/query.proto
@@ -1,3 +1,4 @@
// Since: cosmos-sdk 0.43
syntax = "proto3";
package cosmos.authz.v1beta1;

Expand All @@ -9,8 +10,6 @@ import "cosmos_proto/cosmos.proto";
option go_package = "github.com/cosmos/cosmos-sdk/x/authz";

// Query defines the gRPC querier service.
//
// Since: cosmos-sdk 0.43
service Query {
// Returns list of `Authorization`, granted to the grantee by the granter.
rpc Grants(QueryGrantsRequest) returns (QueryGrantsResponse) {
Expand All @@ -24,8 +23,6 @@ service Query {
}

// QueryGrantsRequest is the request type for the Query/Grants RPC method.
//
// Since: cosmos-sdk 0.43
message QueryGrantsRequest {
string granter = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
string grantee = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
Expand All @@ -36,8 +33,6 @@ message QueryGrantsRequest {
}

// QueryGrantsResponse is the response type for the Query/Authorizations RPC method.
//
// Since: cosmos-sdk 0.43
message QueryGrantsResponse {
// authorizations is a list of grants granted for grantee by granter.
repeated cosmos.authz.v1beta1.Grant grants = 1;
Expand All @@ -46,8 +41,6 @@ message QueryGrantsResponse {
}

// QueryGranterGrantsRequest is the request type for the Query/GranterGrants RPC method.
//
// Since: cosmos-sdk 0.43
message QueryGranterGrantsRequest {
string granter = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];

Expand All @@ -56,8 +49,6 @@ message QueryGranterGrantsRequest {
}

// QueryGranterGrantsResponse is the response type for the Query/GranterGrants RPC method.
//
// Since: cosmos-sdk 0.43
message QueryGranterGrantsResponse {
// authorizations is a list of grants granted for grantee by granter.
repeated cosmos.authz.v1beta1.Grant grants = 1;
Expand Down
15 changes: 1 addition & 14 deletions proto/cosmos/authz/v1beta1/tx.proto
@@ -1,3 +1,4 @@
// Since: cosmos-sdk 0.43
syntax = "proto3";
package cosmos.authz.v1beta1;

Expand All @@ -12,8 +13,6 @@ option go_package = "github.com/cosmos/cosmos-sdk/x/authz";
option (gogoproto.goproto_getters_all) = false;

// Msg defines the authz Msg service.
//
// Since: cosmos-sdk 0.43
service Msg {
// Grant grants the provided authorization to the grantee on the granter's
// account with the provided expiration time. If there is already a grant
Expand All @@ -33,8 +32,6 @@ service Msg {

// MsgGrant is a request type for Grant method. It declares authorization to the grantee
// on behalf of the granter with the provided expiration time.
//
// Since: cosmos-sdk 0.43
message MsgGrant {
string granter = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
string grantee = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
Expand All @@ -43,17 +40,13 @@ message MsgGrant {
}

// MsgExecResponse defines the Msg/MsgExecResponse response type.
//
// Since: cosmos-sdk 0.43
message MsgExecResponse {
repeated bytes results = 1;
}

// MsgExec attempts to execute the provided messages using
// authorizations granted to the grantee. Each message should have only
// one signer corresponding to the granter of the authorization.
//
// Since: cosmos-sdk 0.43
message MsgExec {
string grantee = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// Authorization Msg requests to execute. Each msg must implement Authorization interface
Expand All @@ -63,21 +56,15 @@ message MsgExec {
}

// MsgGrantResponse defines the Msg/MsgGrant response type.
//
// Since: cosmos-sdk 0.43
message MsgGrantResponse {}

// MsgRevoke revokes any authorization with the provided sdk.Msg type on the
// granter's account with that has been granted to the grantee.
//
// Since: cosmos-sdk 0.43
message MsgRevoke {
string granter = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
string grantee = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];;
string msg_type_url = 3;
}

// MsgRevokeResponse defines the Msg/MsgRevokeResponse response type.
//
// Since: cosmos-sdk 0.43
message MsgRevokeResponse {}
2 changes: 2 additions & 0 deletions proto/cosmos/bank/v1beta1/authz.proto
Expand Up @@ -9,6 +9,8 @@ option go_package = "github.com/cosmos/cosmos-sdk/x/bank/types";

// SendAuthorization allows the grantee to spend up to spend_limit coins from
// the granter's account.
//
// Since: cosmos-sdk 0.43
message SendAuthorization {
option (cosmos_proto.implements_interface) = "Authorization";

Expand Down
2 changes: 1 addition & 1 deletion proto/cosmos/base/reflection/v2alpha1/reflection.proto
@@ -1,5 +1,5 @@
syntax = "proto3";
// Since: cosmos-sdk 0.43
syntax = "proto3";
package cosmos.base.reflection.v2alpha1;

import "google/api/annotations.proto";
Expand Down
2 changes: 1 addition & 1 deletion proto/cosmos/crypto/secp256r1/keys.proto
@@ -1,5 +1,5 @@
syntax = "proto3";
// Since: cosmos-sdk 0.43
syntax = "proto3";
package cosmos.crypto.secp256r1;

import "gogoproto/gogo.proto";
Expand Down
1 change: 1 addition & 0 deletions proto/cosmos/feegrant/v1beta1/feegrant.proto
@@ -1,3 +1,4 @@
// Since: cosmos-sdk 0.43
syntax = "proto3";
package cosmos.feegrant.v1beta1;

Expand Down
1 change: 1 addition & 0 deletions proto/cosmos/feegrant/v1beta1/genesis.proto
@@ -1,3 +1,4 @@
// Since: cosmos-sdk 0.43
syntax = "proto3";
package cosmos.feegrant.v1beta1;

Expand Down
1 change: 1 addition & 0 deletions proto/cosmos/feegrant/v1beta1/query.proto
@@ -1,3 +1,4 @@
// Since: cosmos-sdk 0.43
syntax = "proto3";
package cosmos.feegrant.v1beta1;

Expand Down
1 change: 1 addition & 0 deletions proto/cosmos/feegrant/v1beta1/tx.proto
@@ -1,3 +1,4 @@
// Since: cosmos-sdk 0.43
syntax = "proto3";
package cosmos.feegrant.v1beta1;

Expand Down
2 changes: 2 additions & 0 deletions proto/cosmos/tx/v1beta1/tx.proto
Expand Up @@ -137,6 +137,8 @@ message AuthInfo {
Fee fee = 2;

// Tip is the optional tip used for meta-transactions.
//
// Since: cosmos-sdk 0.45
Tip tip = 3;
}

Expand Down
2 changes: 2 additions & 0 deletions store/types/listening.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 types/query/pagination.pb.go

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

2 changes: 2 additions & 0 deletions types/tx/service.pb.go

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

2 changes: 2 additions & 0 deletions types/tx/tx.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 x/auth/types/query.pb.go

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

2 changes: 2 additions & 0 deletions x/auth/vesting/types/vesting.pb.go

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

2 changes: 2 additions & 0 deletions x/bank/types/authz.pb.go

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

8 changes: 8 additions & 0 deletions x/bank/types/bank.pb.go

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

4 changes: 4 additions & 0 deletions x/bank/types/query.pb.go

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

5 changes: 4 additions & 1 deletion x/gov/types/gov.pb.go

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

0 comments on commit f74fd81

Please sign in to comment.