github.com/Finschia/finschia-sdk@v0.49.1/proto/cosmos/authz/v1beta1/tx.proto (about) 1 // Since: cosmos-sdk 0.43 2 syntax = "proto3"; 3 package cosmos.authz.v1beta1; 4 5 import "cosmos_proto/cosmos.proto"; 6 import "gogoproto/gogo.proto"; 7 import "google/protobuf/timestamp.proto"; 8 import "google/protobuf/any.proto"; 9 import "cosmos/base/abci/v1beta1/abci.proto"; 10 import "cosmos/authz/v1beta1/authz.proto"; 11 12 option go_package = "github.com/Finschia/finschia-sdk/x/authz"; 13 option (gogoproto.goproto_getters_all) = false; 14 15 // Msg defines the authz Msg service. 16 service Msg { 17 // Grant grants the provided authorization to the grantee on the granter's 18 // account with the provided expiration time. If there is already a grant 19 // for the given (granter, grantee, Authorization) triple, then the grant 20 // will be overwritten. 21 rpc Grant(MsgGrant) returns (MsgGrantResponse); 22 23 // Exec attempts to execute the provided messages using 24 // authorizations granted to the grantee. Each message should have only 25 // one signer corresponding to the granter of the authorization. 26 rpc Exec(MsgExec) returns (MsgExecResponse); 27 28 // Revoke revokes any authorization corresponding to the provided method name on the 29 // granter's account that has been granted to the grantee. 30 rpc Revoke(MsgRevoke) returns (MsgRevokeResponse); 31 } 32 33 // MsgGrant is a request type for Grant method. It declares authorization to the grantee 34 // on behalf of the granter with the provided expiration time. 35 message MsgGrant { 36 string granter = 1; 37 string grantee = 2; 38 39 cosmos.authz.v1beta1.Grant grant = 3 [(gogoproto.nullable) = false]; 40 } 41 42 // MsgExecResponse defines the Msg/MsgExecResponse response type. 43 message MsgExecResponse { 44 repeated bytes results = 1; 45 } 46 47 // MsgExec attempts to execute the provided messages using 48 // authorizations granted to the grantee. Each message should have only 49 // one signer corresponding to the granter of the authorization. 50 message MsgExec { 51 string grantee = 1; 52 // Authorization Msg requests to execute. Each msg must implement Authorization interface 53 // The x/authz will try to find a grant matching (msg.signers[0], grantee, MsgTypeURL(msg)) 54 // triple and validate it. 55 repeated google.protobuf.Any msgs = 2 [(cosmos_proto.accepts_interface) = "sdk.Msg, authz.Authorization"]; 56 } 57 58 // MsgGrantResponse defines the Msg/MsgGrant response type. 59 message MsgGrantResponse {} 60 61 // MsgRevoke revokes any authorization with the provided sdk.Msg type on the 62 // granter's account with that has been granted to the grantee. 63 message MsgRevoke { 64 string granter = 1; 65 string grantee = 2; 66 string msg_type_url = 3; 67 } 68 69 // MsgRevokeResponse defines the Msg/MsgRevokeResponse response type. 70 message MsgRevokeResponse {}