github.com/Finschia/finschia-sdk@v0.49.1/proto/cosmos/feegrant/v1beta1/tx.proto (about) 1 // Since: cosmos-sdk 0.43 2 syntax = "proto3"; 3 package cosmos.feegrant.v1beta1; 4 5 import "gogoproto/gogo.proto"; 6 import "google/protobuf/any.proto"; 7 import "cosmos_proto/cosmos.proto"; 8 9 option go_package = "github.com/Finschia/finschia-sdk/x/feegrant"; 10 11 // Msg defines the feegrant msg service. 12 service Msg { 13 14 // GrantAllowance grants fee allowance to the grantee on the granter's 15 // account with the provided expiration time. 16 rpc GrantAllowance(MsgGrantAllowance) returns (MsgGrantAllowanceResponse); 17 18 // RevokeAllowance revokes any fee allowance of granter's account that 19 // has been granted to the grantee. 20 rpc RevokeAllowance(MsgRevokeAllowance) returns (MsgRevokeAllowanceResponse); 21 } 22 23 // MsgGrantAllowance adds permission for Grantee to spend up to Allowance 24 // of fees from the account of Granter. 25 message MsgGrantAllowance { 26 // granter is the address of the user granting an allowance of their funds. 27 string granter = 1 [(gogoproto.moretags) = "yaml:\"granter_address\""]; 28 29 // grantee is the address of the user being granted an allowance of another user's funds. 30 string grantee = 2 [(gogoproto.moretags) = "yaml:\"grantee_address\""]; 31 32 // allowance can be any of basic and filtered fee allowance. 33 google.protobuf.Any allowance = 3 [(cosmos_proto.accepts_interface) = "FeeAllowanceI"]; 34 } 35 36 // MsgGrantAllowanceResponse defines the Msg/GrantAllowanceResponse response type. 37 message MsgGrantAllowanceResponse {} 38 39 // MsgRevokeAllowance removes any existing Allowance from Granter to Grantee. 40 message MsgRevokeAllowance { 41 // granter is the address of the user granting an allowance of their funds. 42 string granter = 1 [(gogoproto.moretags) = "yaml:\"granter_address\""]; 43 44 // grantee is the address of the user being granted an allowance of another user's funds. 45 string grantee = 2 [(gogoproto.moretags) = "yaml:\"grantee_address\""]; 46 } 47 48 // MsgRevokeAllowanceResponse defines the Msg/RevokeAllowanceResponse response type. 49 message MsgRevokeAllowanceResponse {}