github.com/Finschia/finschia-sdk@v0.48.1/x/authz/tx.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: cosmos/authz/v1beta1/tx.proto
     3  
     4  package authz
     5  
     6  import (
     7  	context "context"
     8  	fmt "fmt"
     9  	types "github.com/Finschia/finschia-sdk/codec/types"
    10  	_ "github.com/Finschia/finschia-sdk/types"
    11  	_ "github.com/gogo/protobuf/gogoproto"
    12  	grpc1 "github.com/gogo/protobuf/grpc"
    13  	proto "github.com/gogo/protobuf/proto"
    14  	_ "github.com/regen-network/cosmos-proto"
    15  	grpc "google.golang.org/grpc"
    16  	codes "google.golang.org/grpc/codes"
    17  	status "google.golang.org/grpc/status"
    18  	_ "google.golang.org/protobuf/types/known/timestamppb"
    19  	io "io"
    20  	math "math"
    21  	math_bits "math/bits"
    22  )
    23  
    24  // Reference imports to suppress errors if they are not otherwise used.
    25  var _ = proto.Marshal
    26  var _ = fmt.Errorf
    27  var _ = math.Inf
    28  
    29  // This is a compile-time assertion to ensure that this generated file
    30  // is compatible with the proto package it is being compiled against.
    31  // A compilation error at this line likely means your copy of the
    32  // proto package needs to be updated.
    33  const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
    34  
    35  // MsgGrant is a request type for Grant method. It declares authorization to the grantee
    36  // on behalf of the granter with the provided expiration time.
    37  type MsgGrant struct {
    38  	Granter string `protobuf:"bytes,1,opt,name=granter,proto3" json:"granter,omitempty"`
    39  	Grantee string `protobuf:"bytes,2,opt,name=grantee,proto3" json:"grantee,omitempty"`
    40  	Grant   Grant  `protobuf:"bytes,3,opt,name=grant,proto3" json:"grant"`
    41  }
    42  
    43  func (m *MsgGrant) Reset()         { *m = MsgGrant{} }
    44  func (m *MsgGrant) String() string { return proto.CompactTextString(m) }
    45  func (*MsgGrant) ProtoMessage()    {}
    46  func (*MsgGrant) Descriptor() ([]byte, []int) {
    47  	return fileDescriptor_3ceddab7d8589ad1, []int{0}
    48  }
    49  func (m *MsgGrant) XXX_Unmarshal(b []byte) error {
    50  	return m.Unmarshal(b)
    51  }
    52  func (m *MsgGrant) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    53  	if deterministic {
    54  		return xxx_messageInfo_MsgGrant.Marshal(b, m, deterministic)
    55  	} else {
    56  		b = b[:cap(b)]
    57  		n, err := m.MarshalToSizedBuffer(b)
    58  		if err != nil {
    59  			return nil, err
    60  		}
    61  		return b[:n], nil
    62  	}
    63  }
    64  func (m *MsgGrant) XXX_Merge(src proto.Message) {
    65  	xxx_messageInfo_MsgGrant.Merge(m, src)
    66  }
    67  func (m *MsgGrant) XXX_Size() int {
    68  	return m.Size()
    69  }
    70  func (m *MsgGrant) XXX_DiscardUnknown() {
    71  	xxx_messageInfo_MsgGrant.DiscardUnknown(m)
    72  }
    73  
    74  var xxx_messageInfo_MsgGrant proto.InternalMessageInfo
    75  
    76  // MsgExecResponse defines the Msg/MsgExecResponse response type.
    77  type MsgExecResponse struct {
    78  	Results [][]byte `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
    79  }
    80  
    81  func (m *MsgExecResponse) Reset()         { *m = MsgExecResponse{} }
    82  func (m *MsgExecResponse) String() string { return proto.CompactTextString(m) }
    83  func (*MsgExecResponse) ProtoMessage()    {}
    84  func (*MsgExecResponse) Descriptor() ([]byte, []int) {
    85  	return fileDescriptor_3ceddab7d8589ad1, []int{1}
    86  }
    87  func (m *MsgExecResponse) XXX_Unmarshal(b []byte) error {
    88  	return m.Unmarshal(b)
    89  }
    90  func (m *MsgExecResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    91  	if deterministic {
    92  		return xxx_messageInfo_MsgExecResponse.Marshal(b, m, deterministic)
    93  	} else {
    94  		b = b[:cap(b)]
    95  		n, err := m.MarshalToSizedBuffer(b)
    96  		if err != nil {
    97  			return nil, err
    98  		}
    99  		return b[:n], nil
   100  	}
   101  }
   102  func (m *MsgExecResponse) XXX_Merge(src proto.Message) {
   103  	xxx_messageInfo_MsgExecResponse.Merge(m, src)
   104  }
   105  func (m *MsgExecResponse) XXX_Size() int {
   106  	return m.Size()
   107  }
   108  func (m *MsgExecResponse) XXX_DiscardUnknown() {
   109  	xxx_messageInfo_MsgExecResponse.DiscardUnknown(m)
   110  }
   111  
   112  var xxx_messageInfo_MsgExecResponse proto.InternalMessageInfo
   113  
   114  // MsgExec attempts to execute the provided messages using
   115  // authorizations granted to the grantee. Each message should have only
   116  // one signer corresponding to the granter of the authorization.
   117  type MsgExec struct {
   118  	Grantee string `protobuf:"bytes,1,opt,name=grantee,proto3" json:"grantee,omitempty"`
   119  	// Authorization Msg requests to execute. Each msg must implement Authorization interface
   120  	// The x/authz will try to find a grant matching (msg.signers[0], grantee, MsgTypeURL(msg))
   121  	// triple and validate it.
   122  	Msgs []*types.Any `protobuf:"bytes,2,rep,name=msgs,proto3" json:"msgs,omitempty"`
   123  }
   124  
   125  func (m *MsgExec) Reset()         { *m = MsgExec{} }
   126  func (m *MsgExec) String() string { return proto.CompactTextString(m) }
   127  func (*MsgExec) ProtoMessage()    {}
   128  func (*MsgExec) Descriptor() ([]byte, []int) {
   129  	return fileDescriptor_3ceddab7d8589ad1, []int{2}
   130  }
   131  func (m *MsgExec) XXX_Unmarshal(b []byte) error {
   132  	return m.Unmarshal(b)
   133  }
   134  func (m *MsgExec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   135  	if deterministic {
   136  		return xxx_messageInfo_MsgExec.Marshal(b, m, deterministic)
   137  	} else {
   138  		b = b[:cap(b)]
   139  		n, err := m.MarshalToSizedBuffer(b)
   140  		if err != nil {
   141  			return nil, err
   142  		}
   143  		return b[:n], nil
   144  	}
   145  }
   146  func (m *MsgExec) XXX_Merge(src proto.Message) {
   147  	xxx_messageInfo_MsgExec.Merge(m, src)
   148  }
   149  func (m *MsgExec) XXX_Size() int {
   150  	return m.Size()
   151  }
   152  func (m *MsgExec) XXX_DiscardUnknown() {
   153  	xxx_messageInfo_MsgExec.DiscardUnknown(m)
   154  }
   155  
   156  var xxx_messageInfo_MsgExec proto.InternalMessageInfo
   157  
   158  // MsgGrantResponse defines the Msg/MsgGrant response type.
   159  type MsgGrantResponse struct {
   160  }
   161  
   162  func (m *MsgGrantResponse) Reset()         { *m = MsgGrantResponse{} }
   163  func (m *MsgGrantResponse) String() string { return proto.CompactTextString(m) }
   164  func (*MsgGrantResponse) ProtoMessage()    {}
   165  func (*MsgGrantResponse) Descriptor() ([]byte, []int) {
   166  	return fileDescriptor_3ceddab7d8589ad1, []int{3}
   167  }
   168  func (m *MsgGrantResponse) XXX_Unmarshal(b []byte) error {
   169  	return m.Unmarshal(b)
   170  }
   171  func (m *MsgGrantResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   172  	if deterministic {
   173  		return xxx_messageInfo_MsgGrantResponse.Marshal(b, m, deterministic)
   174  	} else {
   175  		b = b[:cap(b)]
   176  		n, err := m.MarshalToSizedBuffer(b)
   177  		if err != nil {
   178  			return nil, err
   179  		}
   180  		return b[:n], nil
   181  	}
   182  }
   183  func (m *MsgGrantResponse) XXX_Merge(src proto.Message) {
   184  	xxx_messageInfo_MsgGrantResponse.Merge(m, src)
   185  }
   186  func (m *MsgGrantResponse) XXX_Size() int {
   187  	return m.Size()
   188  }
   189  func (m *MsgGrantResponse) XXX_DiscardUnknown() {
   190  	xxx_messageInfo_MsgGrantResponse.DiscardUnknown(m)
   191  }
   192  
   193  var xxx_messageInfo_MsgGrantResponse proto.InternalMessageInfo
   194  
   195  // MsgRevoke revokes any authorization with the provided sdk.Msg type on the
   196  // granter's account with that has been granted to the grantee.
   197  type MsgRevoke struct {
   198  	Granter    string `protobuf:"bytes,1,opt,name=granter,proto3" json:"granter,omitempty"`
   199  	Grantee    string `protobuf:"bytes,2,opt,name=grantee,proto3" json:"grantee,omitempty"`
   200  	MsgTypeUrl string `protobuf:"bytes,3,opt,name=msg_type_url,json=msgTypeUrl,proto3" json:"msg_type_url,omitempty"`
   201  }
   202  
   203  func (m *MsgRevoke) Reset()         { *m = MsgRevoke{} }
   204  func (m *MsgRevoke) String() string { return proto.CompactTextString(m) }
   205  func (*MsgRevoke) ProtoMessage()    {}
   206  func (*MsgRevoke) Descriptor() ([]byte, []int) {
   207  	return fileDescriptor_3ceddab7d8589ad1, []int{4}
   208  }
   209  func (m *MsgRevoke) XXX_Unmarshal(b []byte) error {
   210  	return m.Unmarshal(b)
   211  }
   212  func (m *MsgRevoke) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   213  	if deterministic {
   214  		return xxx_messageInfo_MsgRevoke.Marshal(b, m, deterministic)
   215  	} else {
   216  		b = b[:cap(b)]
   217  		n, err := m.MarshalToSizedBuffer(b)
   218  		if err != nil {
   219  			return nil, err
   220  		}
   221  		return b[:n], nil
   222  	}
   223  }
   224  func (m *MsgRevoke) XXX_Merge(src proto.Message) {
   225  	xxx_messageInfo_MsgRevoke.Merge(m, src)
   226  }
   227  func (m *MsgRevoke) XXX_Size() int {
   228  	return m.Size()
   229  }
   230  func (m *MsgRevoke) XXX_DiscardUnknown() {
   231  	xxx_messageInfo_MsgRevoke.DiscardUnknown(m)
   232  }
   233  
   234  var xxx_messageInfo_MsgRevoke proto.InternalMessageInfo
   235  
   236  // MsgRevokeResponse defines the Msg/MsgRevokeResponse response type.
   237  type MsgRevokeResponse struct {
   238  }
   239  
   240  func (m *MsgRevokeResponse) Reset()         { *m = MsgRevokeResponse{} }
   241  func (m *MsgRevokeResponse) String() string { return proto.CompactTextString(m) }
   242  func (*MsgRevokeResponse) ProtoMessage()    {}
   243  func (*MsgRevokeResponse) Descriptor() ([]byte, []int) {
   244  	return fileDescriptor_3ceddab7d8589ad1, []int{5}
   245  }
   246  func (m *MsgRevokeResponse) XXX_Unmarshal(b []byte) error {
   247  	return m.Unmarshal(b)
   248  }
   249  func (m *MsgRevokeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   250  	if deterministic {
   251  		return xxx_messageInfo_MsgRevokeResponse.Marshal(b, m, deterministic)
   252  	} else {
   253  		b = b[:cap(b)]
   254  		n, err := m.MarshalToSizedBuffer(b)
   255  		if err != nil {
   256  			return nil, err
   257  		}
   258  		return b[:n], nil
   259  	}
   260  }
   261  func (m *MsgRevokeResponse) XXX_Merge(src proto.Message) {
   262  	xxx_messageInfo_MsgRevokeResponse.Merge(m, src)
   263  }
   264  func (m *MsgRevokeResponse) XXX_Size() int {
   265  	return m.Size()
   266  }
   267  func (m *MsgRevokeResponse) XXX_DiscardUnknown() {
   268  	xxx_messageInfo_MsgRevokeResponse.DiscardUnknown(m)
   269  }
   270  
   271  var xxx_messageInfo_MsgRevokeResponse proto.InternalMessageInfo
   272  
   273  func init() {
   274  	proto.RegisterType((*MsgGrant)(nil), "cosmos.authz.v1beta1.MsgGrant")
   275  	proto.RegisterType((*MsgExecResponse)(nil), "cosmos.authz.v1beta1.MsgExecResponse")
   276  	proto.RegisterType((*MsgExec)(nil), "cosmos.authz.v1beta1.MsgExec")
   277  	proto.RegisterType((*MsgGrantResponse)(nil), "cosmos.authz.v1beta1.MsgGrantResponse")
   278  	proto.RegisterType((*MsgRevoke)(nil), "cosmos.authz.v1beta1.MsgRevoke")
   279  	proto.RegisterType((*MsgRevokeResponse)(nil), "cosmos.authz.v1beta1.MsgRevokeResponse")
   280  }
   281  
   282  func init() { proto.RegisterFile("cosmos/authz/v1beta1/tx.proto", fileDescriptor_3ceddab7d8589ad1) }
   283  
   284  var fileDescriptor_3ceddab7d8589ad1 = []byte{
   285  	// 493 bytes of a gzipped FileDescriptorProto
   286  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x92, 0xcf, 0x6e, 0xd3, 0x40,
   287  	0x10, 0xc6, 0xe3, 0xa6, 0x7f, 0xc8, 0xb6, 0x12, 0x10, 0x72, 0x70, 0x03, 0x75, 0x2c, 0x23, 0xc0,
   288  	0x12, 0x74, 0x57, 0x0d, 0x07, 0xce, 0x8d, 0x44, 0x91, 0x10, 0x16, 0x92, 0x05, 0x17, 0x2e, 0xd1,
   289  	0xda, 0xdd, 0x6e, 0xac, 0xc4, 0x5e, 0xcb, 0xb3, 0x2e, 0x49, 0x9f, 0x82, 0x87, 0xe1, 0x21, 0x22,
   290  	0x4e, 0x3d, 0x72, 0x42, 0x90, 0xbc, 0x04, 0x47, 0xe4, 0xdd, 0x75, 0x28, 0x28, 0x2d, 0x12, 0xb7,
   291  	0x99, 0xf9, 0x7e, 0x99, 0xf9, 0xf2, 0x79, 0xd1, 0x41, 0x2c, 0x20, 0x15, 0x40, 0x68, 0x29, 0x47,
   292  	0x17, 0xe4, 0xfc, 0x28, 0x62, 0x92, 0x1e, 0x11, 0x39, 0xc5, 0x79, 0x21, 0xa4, 0x68, 0x77, 0xb4,
   293  	0x8c, 0x95, 0x8c, 0x8d, 0xdc, 0xdd, 0xd7, 0xd3, 0xa1, 0x62, 0x88, 0x41, 0x54, 0xd3, 0xed, 0x70,
   294  	0xc1, 0x85, 0x9e, 0x57, 0x95, 0x99, 0xf6, 0xb8, 0x10, 0x7c, 0xc2, 0x88, 0xea, 0xa2, 0xf2, 0x8c,
   295  	0xc8, 0x24, 0x65, 0x20, 0x69, 0x9a, 0x1b, 0x60, 0xff, 0x6f, 0x80, 0x66, 0x33, 0x23, 0x3d, 0x34,
   296  	0x0e, 0x23, 0x0a, 0x8c, 0xd0, 0x28, 0x4e, 0x56, 0x2e, 0xab, 0xc6, 0x40, 0xee, 0xda, 0xbf, 0xa1,
   297  	0x5d, 0x2b, 0xc2, 0xfb, 0x88, 0x6e, 0x05, 0xc0, 0x5f, 0x15, 0x34, 0x93, 0x6d, 0x1b, 0xed, 0xf0,
   298  	0xaa, 0x60, 0x85, 0x6d, 0xb9, 0x96, 0xdf, 0x0a, 0xeb, 0xf6, 0xb7, 0xc2, 0xec, 0x8d, 0xab, 0x0a,
   299  	0x6b, 0xbf, 0x40, 0x5b, 0xaa, 0xb4, 0x9b, 0xae, 0xe5, 0xef, 0xf6, 0xef, 0xe3, 0x75, 0xc9, 0x60,
   300  	0xb5, 0x7f, 0xb0, 0x39, 0xff, 0xd6, 0x6b, 0x84, 0x9a, 0xf7, 0x9e, 0xa2, 0xdb, 0x01, 0xf0, 0x97,
   301  	0x53, 0x16, 0x87, 0x0c, 0x72, 0x91, 0x01, 0xab, 0xae, 0x14, 0x0c, 0xca, 0x89, 0x04, 0xdb, 0x72,
   302  	0x9b, 0xfe, 0x5e, 0x58, 0xb7, 0x9e, 0x40, 0x3b, 0x06, 0xbe, 0x6a, 0xc5, 0xfa, 0xd3, 0xca, 0x6b,
   303  	0xb4, 0x99, 0x02, 0x07, 0x7b, 0xc3, 0x6d, 0xfa, 0xbb, 0xfd, 0x0e, 0xd6, 0xd9, 0xe1, 0x3a, 0x3b,
   304  	0x7c, 0x9c, 0xcd, 0x06, 0xee, 0x97, 0xcf, 0x87, 0x0f, 0xe0, 0x74, 0x8c, 0x03, 0xe0, 0xcf, 0x5c,
   305  	0x6d, 0xf2, 0xb8, 0x94, 0x23, 0x51, 0x24, 0x17, 0x54, 0x26, 0x22, 0x0b, 0xd5, 0x0e, 0xaf, 0x8d,
   306  	0xee, 0xd4, 0xb1, 0xd4, 0xf6, 0x3c, 0x8a, 0x5a, 0x01, 0xf0, 0x90, 0x9d, 0x8b, 0x31, 0xfb, 0xaf,
   307  	0xac, 0x5c, 0xb4, 0x97, 0x02, 0x1f, 0xca, 0x59, 0xce, 0x86, 0x65, 0x31, 0x51, 0x91, 0xb5, 0x42,
   308  	0x94, 0x02, 0x7f, 0x37, 0xcb, 0xd9, 0xfb, 0x62, 0xe2, 0xdd, 0x43, 0x77, 0x57, 0x27, 0xea, 0xbb,
   309  	0xfd, 0x9f, 0x16, 0x6a, 0x06, 0xc0, 0xdb, 0x6f, 0xd1, 0x96, 0xfe, 0x4e, 0xce, 0xfa, 0x90, 0x6b,
   310  	0xc3, 0xdd, 0xc7, 0x37, 0xeb, 0xab, 0xbc, 0xdf, 0xa0, 0x4d, 0x15, 0xe9, 0xc1, 0xb5, 0x7c, 0x25,
   311  	0x77, 0x1f, 0xdd, 0x28, 0xaf, 0xb6, 0x85, 0x68, 0xdb, 0x64, 0xd3, 0xbb, 0xf6, 0x07, 0x1a, 0xe8,
   312  	0x3e, 0xf9, 0x07, 0x50, 0xef, 0x1c, 0x9c, 0xcc, 0x7f, 0x38, 0x8d, 0xf9, 0xc2, 0xb1, 0x2e, 0x17,
   313  	0x8e, 0xf5, 0x7d, 0xe1, 0x58, 0x9f, 0x96, 0x4e, 0xe3, 0x72, 0xe9, 0x34, 0xbe, 0x2e, 0x9d, 0xc6,
   314  	0x07, 0x9f, 0x27, 0x72, 0x54, 0x46, 0x38, 0x16, 0x29, 0x39, 0x49, 0x32, 0x88, 0x47, 0x09, 0x25,
   315  	0x67, 0xa6, 0x38, 0x84, 0xd3, 0x31, 0x99, 0xea, 0xb7, 0x1e, 0x6d, 0xab, 0x47, 0xf0, 0xfc, 0x57,
   316  	0x00, 0x00, 0x00, 0xff, 0xff, 0xec, 0x97, 0xcc, 0xbd, 0xd7, 0x03, 0x00, 0x00,
   317  }
   318  
   319  // Reference imports to suppress errors if they are not otherwise used.
   320  var _ context.Context
   321  var _ grpc.ClientConn
   322  
   323  // This is a compile-time assertion to ensure that this generated file
   324  // is compatible with the grpc package it is being compiled against.
   325  const _ = grpc.SupportPackageIsVersion4
   326  
   327  // MsgClient is the client API for Msg service.
   328  //
   329  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   330  type MsgClient interface {
   331  	// Grant grants the provided authorization to the grantee on the granter's
   332  	// account with the provided expiration time. If there is already a grant
   333  	// for the given (granter, grantee, Authorization) triple, then the grant
   334  	// will be overwritten.
   335  	Grant(ctx context.Context, in *MsgGrant, opts ...grpc.CallOption) (*MsgGrantResponse, error)
   336  	// Exec attempts to execute the provided messages using
   337  	// authorizations granted to the grantee. Each message should have only
   338  	// one signer corresponding to the granter of the authorization.
   339  	Exec(ctx context.Context, in *MsgExec, opts ...grpc.CallOption) (*MsgExecResponse, error)
   340  	// Revoke revokes any authorization corresponding to the provided method name on the
   341  	// granter's account that has been granted to the grantee.
   342  	Revoke(ctx context.Context, in *MsgRevoke, opts ...grpc.CallOption) (*MsgRevokeResponse, error)
   343  }
   344  
   345  type msgClient struct {
   346  	cc grpc1.ClientConn
   347  }
   348  
   349  func NewMsgClient(cc grpc1.ClientConn) MsgClient {
   350  	return &msgClient{cc}
   351  }
   352  
   353  func (c *msgClient) Grant(ctx context.Context, in *MsgGrant, opts ...grpc.CallOption) (*MsgGrantResponse, error) {
   354  	out := new(MsgGrantResponse)
   355  	err := c.cc.Invoke(ctx, "/cosmos.authz.v1beta1.Msg/Grant", in, out, opts...)
   356  	if err != nil {
   357  		return nil, err
   358  	}
   359  	return out, nil
   360  }
   361  
   362  func (c *msgClient) Exec(ctx context.Context, in *MsgExec, opts ...grpc.CallOption) (*MsgExecResponse, error) {
   363  	out := new(MsgExecResponse)
   364  	err := c.cc.Invoke(ctx, "/cosmos.authz.v1beta1.Msg/Exec", in, out, opts...)
   365  	if err != nil {
   366  		return nil, err
   367  	}
   368  	return out, nil
   369  }
   370  
   371  func (c *msgClient) Revoke(ctx context.Context, in *MsgRevoke, opts ...grpc.CallOption) (*MsgRevokeResponse, error) {
   372  	out := new(MsgRevokeResponse)
   373  	err := c.cc.Invoke(ctx, "/cosmos.authz.v1beta1.Msg/Revoke", in, out, opts...)
   374  	if err != nil {
   375  		return nil, err
   376  	}
   377  	return out, nil
   378  }
   379  
   380  // MsgServer is the server API for Msg service.
   381  type MsgServer interface {
   382  	// Grant grants the provided authorization to the grantee on the granter's
   383  	// account with the provided expiration time. If there is already a grant
   384  	// for the given (granter, grantee, Authorization) triple, then the grant
   385  	// will be overwritten.
   386  	Grant(context.Context, *MsgGrant) (*MsgGrantResponse, error)
   387  	// Exec attempts to execute the provided messages using
   388  	// authorizations granted to the grantee. Each message should have only
   389  	// one signer corresponding to the granter of the authorization.
   390  	Exec(context.Context, *MsgExec) (*MsgExecResponse, error)
   391  	// Revoke revokes any authorization corresponding to the provided method name on the
   392  	// granter's account that has been granted to the grantee.
   393  	Revoke(context.Context, *MsgRevoke) (*MsgRevokeResponse, error)
   394  }
   395  
   396  // UnimplementedMsgServer can be embedded to have forward compatible implementations.
   397  type UnimplementedMsgServer struct {
   398  }
   399  
   400  func (*UnimplementedMsgServer) Grant(ctx context.Context, req *MsgGrant) (*MsgGrantResponse, error) {
   401  	return nil, status.Errorf(codes.Unimplemented, "method Grant not implemented")
   402  }
   403  func (*UnimplementedMsgServer) Exec(ctx context.Context, req *MsgExec) (*MsgExecResponse, error) {
   404  	return nil, status.Errorf(codes.Unimplemented, "method Exec not implemented")
   405  }
   406  func (*UnimplementedMsgServer) Revoke(ctx context.Context, req *MsgRevoke) (*MsgRevokeResponse, error) {
   407  	return nil, status.Errorf(codes.Unimplemented, "method Revoke not implemented")
   408  }
   409  
   410  func RegisterMsgServer(s grpc1.Server, srv MsgServer) {
   411  	s.RegisterService(&_Msg_serviceDesc, srv)
   412  }
   413  
   414  func _Msg_Grant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   415  	in := new(MsgGrant)
   416  	if err := dec(in); err != nil {
   417  		return nil, err
   418  	}
   419  	if interceptor == nil {
   420  		return srv.(MsgServer).Grant(ctx, in)
   421  	}
   422  	info := &grpc.UnaryServerInfo{
   423  		Server:     srv,
   424  		FullMethod: "/cosmos.authz.v1beta1.Msg/Grant",
   425  	}
   426  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   427  		return srv.(MsgServer).Grant(ctx, req.(*MsgGrant))
   428  	}
   429  	return interceptor(ctx, in, info, handler)
   430  }
   431  
   432  func _Msg_Exec_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   433  	in := new(MsgExec)
   434  	if err := dec(in); err != nil {
   435  		return nil, err
   436  	}
   437  	if interceptor == nil {
   438  		return srv.(MsgServer).Exec(ctx, in)
   439  	}
   440  	info := &grpc.UnaryServerInfo{
   441  		Server:     srv,
   442  		FullMethod: "/cosmos.authz.v1beta1.Msg/Exec",
   443  	}
   444  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   445  		return srv.(MsgServer).Exec(ctx, req.(*MsgExec))
   446  	}
   447  	return interceptor(ctx, in, info, handler)
   448  }
   449  
   450  func _Msg_Revoke_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   451  	in := new(MsgRevoke)
   452  	if err := dec(in); err != nil {
   453  		return nil, err
   454  	}
   455  	if interceptor == nil {
   456  		return srv.(MsgServer).Revoke(ctx, in)
   457  	}
   458  	info := &grpc.UnaryServerInfo{
   459  		Server:     srv,
   460  		FullMethod: "/cosmos.authz.v1beta1.Msg/Revoke",
   461  	}
   462  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   463  		return srv.(MsgServer).Revoke(ctx, req.(*MsgRevoke))
   464  	}
   465  	return interceptor(ctx, in, info, handler)
   466  }
   467  
   468  var _Msg_serviceDesc = grpc.ServiceDesc{
   469  	ServiceName: "cosmos.authz.v1beta1.Msg",
   470  	HandlerType: (*MsgServer)(nil),
   471  	Methods: []grpc.MethodDesc{
   472  		{
   473  			MethodName: "Grant",
   474  			Handler:    _Msg_Grant_Handler,
   475  		},
   476  		{
   477  			MethodName: "Exec",
   478  			Handler:    _Msg_Exec_Handler,
   479  		},
   480  		{
   481  			MethodName: "Revoke",
   482  			Handler:    _Msg_Revoke_Handler,
   483  		},
   484  	},
   485  	Streams:  []grpc.StreamDesc{},
   486  	Metadata: "cosmos/authz/v1beta1/tx.proto",
   487  }
   488  
   489  func (m *MsgGrant) Marshal() (dAtA []byte, err error) {
   490  	size := m.Size()
   491  	dAtA = make([]byte, size)
   492  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   493  	if err != nil {
   494  		return nil, err
   495  	}
   496  	return dAtA[:n], nil
   497  }
   498  
   499  func (m *MsgGrant) MarshalTo(dAtA []byte) (int, error) {
   500  	size := m.Size()
   501  	return m.MarshalToSizedBuffer(dAtA[:size])
   502  }
   503  
   504  func (m *MsgGrant) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   505  	i := len(dAtA)
   506  	_ = i
   507  	var l int
   508  	_ = l
   509  	{
   510  		size, err := m.Grant.MarshalToSizedBuffer(dAtA[:i])
   511  		if err != nil {
   512  			return 0, err
   513  		}
   514  		i -= size
   515  		i = encodeVarintTx(dAtA, i, uint64(size))
   516  	}
   517  	i--
   518  	dAtA[i] = 0x1a
   519  	if len(m.Grantee) > 0 {
   520  		i -= len(m.Grantee)
   521  		copy(dAtA[i:], m.Grantee)
   522  		i = encodeVarintTx(dAtA, i, uint64(len(m.Grantee)))
   523  		i--
   524  		dAtA[i] = 0x12
   525  	}
   526  	if len(m.Granter) > 0 {
   527  		i -= len(m.Granter)
   528  		copy(dAtA[i:], m.Granter)
   529  		i = encodeVarintTx(dAtA, i, uint64(len(m.Granter)))
   530  		i--
   531  		dAtA[i] = 0xa
   532  	}
   533  	return len(dAtA) - i, nil
   534  }
   535  
   536  func (m *MsgExecResponse) Marshal() (dAtA []byte, err error) {
   537  	size := m.Size()
   538  	dAtA = make([]byte, size)
   539  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   540  	if err != nil {
   541  		return nil, err
   542  	}
   543  	return dAtA[:n], nil
   544  }
   545  
   546  func (m *MsgExecResponse) MarshalTo(dAtA []byte) (int, error) {
   547  	size := m.Size()
   548  	return m.MarshalToSizedBuffer(dAtA[:size])
   549  }
   550  
   551  func (m *MsgExecResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   552  	i := len(dAtA)
   553  	_ = i
   554  	var l int
   555  	_ = l
   556  	if len(m.Results) > 0 {
   557  		for iNdEx := len(m.Results) - 1; iNdEx >= 0; iNdEx-- {
   558  			i -= len(m.Results[iNdEx])
   559  			copy(dAtA[i:], m.Results[iNdEx])
   560  			i = encodeVarintTx(dAtA, i, uint64(len(m.Results[iNdEx])))
   561  			i--
   562  			dAtA[i] = 0xa
   563  		}
   564  	}
   565  	return len(dAtA) - i, nil
   566  }
   567  
   568  func (m *MsgExec) Marshal() (dAtA []byte, err error) {
   569  	size := m.Size()
   570  	dAtA = make([]byte, size)
   571  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   572  	if err != nil {
   573  		return nil, err
   574  	}
   575  	return dAtA[:n], nil
   576  }
   577  
   578  func (m *MsgExec) MarshalTo(dAtA []byte) (int, error) {
   579  	size := m.Size()
   580  	return m.MarshalToSizedBuffer(dAtA[:size])
   581  }
   582  
   583  func (m *MsgExec) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   584  	i := len(dAtA)
   585  	_ = i
   586  	var l int
   587  	_ = l
   588  	if len(m.Msgs) > 0 {
   589  		for iNdEx := len(m.Msgs) - 1; iNdEx >= 0; iNdEx-- {
   590  			{
   591  				size, err := m.Msgs[iNdEx].MarshalToSizedBuffer(dAtA[:i])
   592  				if err != nil {
   593  					return 0, err
   594  				}
   595  				i -= size
   596  				i = encodeVarintTx(dAtA, i, uint64(size))
   597  			}
   598  			i--
   599  			dAtA[i] = 0x12
   600  		}
   601  	}
   602  	if len(m.Grantee) > 0 {
   603  		i -= len(m.Grantee)
   604  		copy(dAtA[i:], m.Grantee)
   605  		i = encodeVarintTx(dAtA, i, uint64(len(m.Grantee)))
   606  		i--
   607  		dAtA[i] = 0xa
   608  	}
   609  	return len(dAtA) - i, nil
   610  }
   611  
   612  func (m *MsgGrantResponse) Marshal() (dAtA []byte, err error) {
   613  	size := m.Size()
   614  	dAtA = make([]byte, size)
   615  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   616  	if err != nil {
   617  		return nil, err
   618  	}
   619  	return dAtA[:n], nil
   620  }
   621  
   622  func (m *MsgGrantResponse) MarshalTo(dAtA []byte) (int, error) {
   623  	size := m.Size()
   624  	return m.MarshalToSizedBuffer(dAtA[:size])
   625  }
   626  
   627  func (m *MsgGrantResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   628  	i := len(dAtA)
   629  	_ = i
   630  	var l int
   631  	_ = l
   632  	return len(dAtA) - i, nil
   633  }
   634  
   635  func (m *MsgRevoke) Marshal() (dAtA []byte, err error) {
   636  	size := m.Size()
   637  	dAtA = make([]byte, size)
   638  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   639  	if err != nil {
   640  		return nil, err
   641  	}
   642  	return dAtA[:n], nil
   643  }
   644  
   645  func (m *MsgRevoke) MarshalTo(dAtA []byte) (int, error) {
   646  	size := m.Size()
   647  	return m.MarshalToSizedBuffer(dAtA[:size])
   648  }
   649  
   650  func (m *MsgRevoke) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   651  	i := len(dAtA)
   652  	_ = i
   653  	var l int
   654  	_ = l
   655  	if len(m.MsgTypeUrl) > 0 {
   656  		i -= len(m.MsgTypeUrl)
   657  		copy(dAtA[i:], m.MsgTypeUrl)
   658  		i = encodeVarintTx(dAtA, i, uint64(len(m.MsgTypeUrl)))
   659  		i--
   660  		dAtA[i] = 0x1a
   661  	}
   662  	if len(m.Grantee) > 0 {
   663  		i -= len(m.Grantee)
   664  		copy(dAtA[i:], m.Grantee)
   665  		i = encodeVarintTx(dAtA, i, uint64(len(m.Grantee)))
   666  		i--
   667  		dAtA[i] = 0x12
   668  	}
   669  	if len(m.Granter) > 0 {
   670  		i -= len(m.Granter)
   671  		copy(dAtA[i:], m.Granter)
   672  		i = encodeVarintTx(dAtA, i, uint64(len(m.Granter)))
   673  		i--
   674  		dAtA[i] = 0xa
   675  	}
   676  	return len(dAtA) - i, nil
   677  }
   678  
   679  func (m *MsgRevokeResponse) Marshal() (dAtA []byte, err error) {
   680  	size := m.Size()
   681  	dAtA = make([]byte, size)
   682  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   683  	if err != nil {
   684  		return nil, err
   685  	}
   686  	return dAtA[:n], nil
   687  }
   688  
   689  func (m *MsgRevokeResponse) MarshalTo(dAtA []byte) (int, error) {
   690  	size := m.Size()
   691  	return m.MarshalToSizedBuffer(dAtA[:size])
   692  }
   693  
   694  func (m *MsgRevokeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   695  	i := len(dAtA)
   696  	_ = i
   697  	var l int
   698  	_ = l
   699  	return len(dAtA) - i, nil
   700  }
   701  
   702  func encodeVarintTx(dAtA []byte, offset int, v uint64) int {
   703  	offset -= sovTx(v)
   704  	base := offset
   705  	for v >= 1<<7 {
   706  		dAtA[offset] = uint8(v&0x7f | 0x80)
   707  		v >>= 7
   708  		offset++
   709  	}
   710  	dAtA[offset] = uint8(v)
   711  	return base
   712  }
   713  func (m *MsgGrant) Size() (n int) {
   714  	if m == nil {
   715  		return 0
   716  	}
   717  	var l int
   718  	_ = l
   719  	l = len(m.Granter)
   720  	if l > 0 {
   721  		n += 1 + l + sovTx(uint64(l))
   722  	}
   723  	l = len(m.Grantee)
   724  	if l > 0 {
   725  		n += 1 + l + sovTx(uint64(l))
   726  	}
   727  	l = m.Grant.Size()
   728  	n += 1 + l + sovTx(uint64(l))
   729  	return n
   730  }
   731  
   732  func (m *MsgExecResponse) Size() (n int) {
   733  	if m == nil {
   734  		return 0
   735  	}
   736  	var l int
   737  	_ = l
   738  	if len(m.Results) > 0 {
   739  		for _, b := range m.Results {
   740  			l = len(b)
   741  			n += 1 + l + sovTx(uint64(l))
   742  		}
   743  	}
   744  	return n
   745  }
   746  
   747  func (m *MsgExec) Size() (n int) {
   748  	if m == nil {
   749  		return 0
   750  	}
   751  	var l int
   752  	_ = l
   753  	l = len(m.Grantee)
   754  	if l > 0 {
   755  		n += 1 + l + sovTx(uint64(l))
   756  	}
   757  	if len(m.Msgs) > 0 {
   758  		for _, e := range m.Msgs {
   759  			l = e.Size()
   760  			n += 1 + l + sovTx(uint64(l))
   761  		}
   762  	}
   763  	return n
   764  }
   765  
   766  func (m *MsgGrantResponse) Size() (n int) {
   767  	if m == nil {
   768  		return 0
   769  	}
   770  	var l int
   771  	_ = l
   772  	return n
   773  }
   774  
   775  func (m *MsgRevoke) Size() (n int) {
   776  	if m == nil {
   777  		return 0
   778  	}
   779  	var l int
   780  	_ = l
   781  	l = len(m.Granter)
   782  	if l > 0 {
   783  		n += 1 + l + sovTx(uint64(l))
   784  	}
   785  	l = len(m.Grantee)
   786  	if l > 0 {
   787  		n += 1 + l + sovTx(uint64(l))
   788  	}
   789  	l = len(m.MsgTypeUrl)
   790  	if l > 0 {
   791  		n += 1 + l + sovTx(uint64(l))
   792  	}
   793  	return n
   794  }
   795  
   796  func (m *MsgRevokeResponse) Size() (n int) {
   797  	if m == nil {
   798  		return 0
   799  	}
   800  	var l int
   801  	_ = l
   802  	return n
   803  }
   804  
   805  func sovTx(x uint64) (n int) {
   806  	return (math_bits.Len64(x|1) + 6) / 7
   807  }
   808  func sozTx(x uint64) (n int) {
   809  	return sovTx(uint64((x << 1) ^ uint64((int64(x) >> 63))))
   810  }
   811  func (m *MsgGrant) Unmarshal(dAtA []byte) error {
   812  	l := len(dAtA)
   813  	iNdEx := 0
   814  	for iNdEx < l {
   815  		preIndex := iNdEx
   816  		var wire uint64
   817  		for shift := uint(0); ; shift += 7 {
   818  			if shift >= 64 {
   819  				return ErrIntOverflowTx
   820  			}
   821  			if iNdEx >= l {
   822  				return io.ErrUnexpectedEOF
   823  			}
   824  			b := dAtA[iNdEx]
   825  			iNdEx++
   826  			wire |= uint64(b&0x7F) << shift
   827  			if b < 0x80 {
   828  				break
   829  			}
   830  		}
   831  		fieldNum := int32(wire >> 3)
   832  		wireType := int(wire & 0x7)
   833  		if wireType == 4 {
   834  			return fmt.Errorf("proto: MsgGrant: wiretype end group for non-group")
   835  		}
   836  		if fieldNum <= 0 {
   837  			return fmt.Errorf("proto: MsgGrant: illegal tag %d (wire type %d)", fieldNum, wire)
   838  		}
   839  		switch fieldNum {
   840  		case 1:
   841  			if wireType != 2 {
   842  				return fmt.Errorf("proto: wrong wireType = %d for field Granter", wireType)
   843  			}
   844  			var stringLen uint64
   845  			for shift := uint(0); ; shift += 7 {
   846  				if shift >= 64 {
   847  					return ErrIntOverflowTx
   848  				}
   849  				if iNdEx >= l {
   850  					return io.ErrUnexpectedEOF
   851  				}
   852  				b := dAtA[iNdEx]
   853  				iNdEx++
   854  				stringLen |= uint64(b&0x7F) << shift
   855  				if b < 0x80 {
   856  					break
   857  				}
   858  			}
   859  			intStringLen := int(stringLen)
   860  			if intStringLen < 0 {
   861  				return ErrInvalidLengthTx
   862  			}
   863  			postIndex := iNdEx + intStringLen
   864  			if postIndex < 0 {
   865  				return ErrInvalidLengthTx
   866  			}
   867  			if postIndex > l {
   868  				return io.ErrUnexpectedEOF
   869  			}
   870  			m.Granter = string(dAtA[iNdEx:postIndex])
   871  			iNdEx = postIndex
   872  		case 2:
   873  			if wireType != 2 {
   874  				return fmt.Errorf("proto: wrong wireType = %d for field Grantee", wireType)
   875  			}
   876  			var stringLen uint64
   877  			for shift := uint(0); ; shift += 7 {
   878  				if shift >= 64 {
   879  					return ErrIntOverflowTx
   880  				}
   881  				if iNdEx >= l {
   882  					return io.ErrUnexpectedEOF
   883  				}
   884  				b := dAtA[iNdEx]
   885  				iNdEx++
   886  				stringLen |= uint64(b&0x7F) << shift
   887  				if b < 0x80 {
   888  					break
   889  				}
   890  			}
   891  			intStringLen := int(stringLen)
   892  			if intStringLen < 0 {
   893  				return ErrInvalidLengthTx
   894  			}
   895  			postIndex := iNdEx + intStringLen
   896  			if postIndex < 0 {
   897  				return ErrInvalidLengthTx
   898  			}
   899  			if postIndex > l {
   900  				return io.ErrUnexpectedEOF
   901  			}
   902  			m.Grantee = string(dAtA[iNdEx:postIndex])
   903  			iNdEx = postIndex
   904  		case 3:
   905  			if wireType != 2 {
   906  				return fmt.Errorf("proto: wrong wireType = %d for field Grant", wireType)
   907  			}
   908  			var msglen int
   909  			for shift := uint(0); ; shift += 7 {
   910  				if shift >= 64 {
   911  					return ErrIntOverflowTx
   912  				}
   913  				if iNdEx >= l {
   914  					return io.ErrUnexpectedEOF
   915  				}
   916  				b := dAtA[iNdEx]
   917  				iNdEx++
   918  				msglen |= int(b&0x7F) << shift
   919  				if b < 0x80 {
   920  					break
   921  				}
   922  			}
   923  			if msglen < 0 {
   924  				return ErrInvalidLengthTx
   925  			}
   926  			postIndex := iNdEx + msglen
   927  			if postIndex < 0 {
   928  				return ErrInvalidLengthTx
   929  			}
   930  			if postIndex > l {
   931  				return io.ErrUnexpectedEOF
   932  			}
   933  			if err := m.Grant.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
   934  				return err
   935  			}
   936  			iNdEx = postIndex
   937  		default:
   938  			iNdEx = preIndex
   939  			skippy, err := skipTx(dAtA[iNdEx:])
   940  			if err != nil {
   941  				return err
   942  			}
   943  			if (skippy < 0) || (iNdEx+skippy) < 0 {
   944  				return ErrInvalidLengthTx
   945  			}
   946  			if (iNdEx + skippy) > l {
   947  				return io.ErrUnexpectedEOF
   948  			}
   949  			iNdEx += skippy
   950  		}
   951  	}
   952  
   953  	if iNdEx > l {
   954  		return io.ErrUnexpectedEOF
   955  	}
   956  	return nil
   957  }
   958  func (m *MsgExecResponse) Unmarshal(dAtA []byte) error {
   959  	l := len(dAtA)
   960  	iNdEx := 0
   961  	for iNdEx < l {
   962  		preIndex := iNdEx
   963  		var wire uint64
   964  		for shift := uint(0); ; shift += 7 {
   965  			if shift >= 64 {
   966  				return ErrIntOverflowTx
   967  			}
   968  			if iNdEx >= l {
   969  				return io.ErrUnexpectedEOF
   970  			}
   971  			b := dAtA[iNdEx]
   972  			iNdEx++
   973  			wire |= uint64(b&0x7F) << shift
   974  			if b < 0x80 {
   975  				break
   976  			}
   977  		}
   978  		fieldNum := int32(wire >> 3)
   979  		wireType := int(wire & 0x7)
   980  		if wireType == 4 {
   981  			return fmt.Errorf("proto: MsgExecResponse: wiretype end group for non-group")
   982  		}
   983  		if fieldNum <= 0 {
   984  			return fmt.Errorf("proto: MsgExecResponse: illegal tag %d (wire type %d)", fieldNum, wire)
   985  		}
   986  		switch fieldNum {
   987  		case 1:
   988  			if wireType != 2 {
   989  				return fmt.Errorf("proto: wrong wireType = %d for field Results", wireType)
   990  			}
   991  			var byteLen int
   992  			for shift := uint(0); ; shift += 7 {
   993  				if shift >= 64 {
   994  					return ErrIntOverflowTx
   995  				}
   996  				if iNdEx >= l {
   997  					return io.ErrUnexpectedEOF
   998  				}
   999  				b := dAtA[iNdEx]
  1000  				iNdEx++
  1001  				byteLen |= int(b&0x7F) << shift
  1002  				if b < 0x80 {
  1003  					break
  1004  				}
  1005  			}
  1006  			if byteLen < 0 {
  1007  				return ErrInvalidLengthTx
  1008  			}
  1009  			postIndex := iNdEx + byteLen
  1010  			if postIndex < 0 {
  1011  				return ErrInvalidLengthTx
  1012  			}
  1013  			if postIndex > l {
  1014  				return io.ErrUnexpectedEOF
  1015  			}
  1016  			m.Results = append(m.Results, make([]byte, postIndex-iNdEx))
  1017  			copy(m.Results[len(m.Results)-1], dAtA[iNdEx:postIndex])
  1018  			iNdEx = postIndex
  1019  		default:
  1020  			iNdEx = preIndex
  1021  			skippy, err := skipTx(dAtA[iNdEx:])
  1022  			if err != nil {
  1023  				return err
  1024  			}
  1025  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1026  				return ErrInvalidLengthTx
  1027  			}
  1028  			if (iNdEx + skippy) > l {
  1029  				return io.ErrUnexpectedEOF
  1030  			}
  1031  			iNdEx += skippy
  1032  		}
  1033  	}
  1034  
  1035  	if iNdEx > l {
  1036  		return io.ErrUnexpectedEOF
  1037  	}
  1038  	return nil
  1039  }
  1040  func (m *MsgExec) Unmarshal(dAtA []byte) error {
  1041  	l := len(dAtA)
  1042  	iNdEx := 0
  1043  	for iNdEx < l {
  1044  		preIndex := iNdEx
  1045  		var wire uint64
  1046  		for shift := uint(0); ; shift += 7 {
  1047  			if shift >= 64 {
  1048  				return ErrIntOverflowTx
  1049  			}
  1050  			if iNdEx >= l {
  1051  				return io.ErrUnexpectedEOF
  1052  			}
  1053  			b := dAtA[iNdEx]
  1054  			iNdEx++
  1055  			wire |= uint64(b&0x7F) << shift
  1056  			if b < 0x80 {
  1057  				break
  1058  			}
  1059  		}
  1060  		fieldNum := int32(wire >> 3)
  1061  		wireType := int(wire & 0x7)
  1062  		if wireType == 4 {
  1063  			return fmt.Errorf("proto: MsgExec: wiretype end group for non-group")
  1064  		}
  1065  		if fieldNum <= 0 {
  1066  			return fmt.Errorf("proto: MsgExec: illegal tag %d (wire type %d)", fieldNum, wire)
  1067  		}
  1068  		switch fieldNum {
  1069  		case 1:
  1070  			if wireType != 2 {
  1071  				return fmt.Errorf("proto: wrong wireType = %d for field Grantee", wireType)
  1072  			}
  1073  			var stringLen uint64
  1074  			for shift := uint(0); ; shift += 7 {
  1075  				if shift >= 64 {
  1076  					return ErrIntOverflowTx
  1077  				}
  1078  				if iNdEx >= l {
  1079  					return io.ErrUnexpectedEOF
  1080  				}
  1081  				b := dAtA[iNdEx]
  1082  				iNdEx++
  1083  				stringLen |= uint64(b&0x7F) << shift
  1084  				if b < 0x80 {
  1085  					break
  1086  				}
  1087  			}
  1088  			intStringLen := int(stringLen)
  1089  			if intStringLen < 0 {
  1090  				return ErrInvalidLengthTx
  1091  			}
  1092  			postIndex := iNdEx + intStringLen
  1093  			if postIndex < 0 {
  1094  				return ErrInvalidLengthTx
  1095  			}
  1096  			if postIndex > l {
  1097  				return io.ErrUnexpectedEOF
  1098  			}
  1099  			m.Grantee = string(dAtA[iNdEx:postIndex])
  1100  			iNdEx = postIndex
  1101  		case 2:
  1102  			if wireType != 2 {
  1103  				return fmt.Errorf("proto: wrong wireType = %d for field Msgs", wireType)
  1104  			}
  1105  			var msglen int
  1106  			for shift := uint(0); ; shift += 7 {
  1107  				if shift >= 64 {
  1108  					return ErrIntOverflowTx
  1109  				}
  1110  				if iNdEx >= l {
  1111  					return io.ErrUnexpectedEOF
  1112  				}
  1113  				b := dAtA[iNdEx]
  1114  				iNdEx++
  1115  				msglen |= int(b&0x7F) << shift
  1116  				if b < 0x80 {
  1117  					break
  1118  				}
  1119  			}
  1120  			if msglen < 0 {
  1121  				return ErrInvalidLengthTx
  1122  			}
  1123  			postIndex := iNdEx + msglen
  1124  			if postIndex < 0 {
  1125  				return ErrInvalidLengthTx
  1126  			}
  1127  			if postIndex > l {
  1128  				return io.ErrUnexpectedEOF
  1129  			}
  1130  			m.Msgs = append(m.Msgs, &types.Any{})
  1131  			if err := m.Msgs[len(m.Msgs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1132  				return err
  1133  			}
  1134  			iNdEx = postIndex
  1135  		default:
  1136  			iNdEx = preIndex
  1137  			skippy, err := skipTx(dAtA[iNdEx:])
  1138  			if err != nil {
  1139  				return err
  1140  			}
  1141  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1142  				return ErrInvalidLengthTx
  1143  			}
  1144  			if (iNdEx + skippy) > l {
  1145  				return io.ErrUnexpectedEOF
  1146  			}
  1147  			iNdEx += skippy
  1148  		}
  1149  	}
  1150  
  1151  	if iNdEx > l {
  1152  		return io.ErrUnexpectedEOF
  1153  	}
  1154  	return nil
  1155  }
  1156  func (m *MsgGrantResponse) Unmarshal(dAtA []byte) error {
  1157  	l := len(dAtA)
  1158  	iNdEx := 0
  1159  	for iNdEx < l {
  1160  		preIndex := iNdEx
  1161  		var wire uint64
  1162  		for shift := uint(0); ; shift += 7 {
  1163  			if shift >= 64 {
  1164  				return ErrIntOverflowTx
  1165  			}
  1166  			if iNdEx >= l {
  1167  				return io.ErrUnexpectedEOF
  1168  			}
  1169  			b := dAtA[iNdEx]
  1170  			iNdEx++
  1171  			wire |= uint64(b&0x7F) << shift
  1172  			if b < 0x80 {
  1173  				break
  1174  			}
  1175  		}
  1176  		fieldNum := int32(wire >> 3)
  1177  		wireType := int(wire & 0x7)
  1178  		if wireType == 4 {
  1179  			return fmt.Errorf("proto: MsgGrantResponse: wiretype end group for non-group")
  1180  		}
  1181  		if fieldNum <= 0 {
  1182  			return fmt.Errorf("proto: MsgGrantResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  1183  		}
  1184  		switch fieldNum {
  1185  		default:
  1186  			iNdEx = preIndex
  1187  			skippy, err := skipTx(dAtA[iNdEx:])
  1188  			if err != nil {
  1189  				return err
  1190  			}
  1191  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1192  				return ErrInvalidLengthTx
  1193  			}
  1194  			if (iNdEx + skippy) > l {
  1195  				return io.ErrUnexpectedEOF
  1196  			}
  1197  			iNdEx += skippy
  1198  		}
  1199  	}
  1200  
  1201  	if iNdEx > l {
  1202  		return io.ErrUnexpectedEOF
  1203  	}
  1204  	return nil
  1205  }
  1206  func (m *MsgRevoke) Unmarshal(dAtA []byte) error {
  1207  	l := len(dAtA)
  1208  	iNdEx := 0
  1209  	for iNdEx < l {
  1210  		preIndex := iNdEx
  1211  		var wire uint64
  1212  		for shift := uint(0); ; shift += 7 {
  1213  			if shift >= 64 {
  1214  				return ErrIntOverflowTx
  1215  			}
  1216  			if iNdEx >= l {
  1217  				return io.ErrUnexpectedEOF
  1218  			}
  1219  			b := dAtA[iNdEx]
  1220  			iNdEx++
  1221  			wire |= uint64(b&0x7F) << shift
  1222  			if b < 0x80 {
  1223  				break
  1224  			}
  1225  		}
  1226  		fieldNum := int32(wire >> 3)
  1227  		wireType := int(wire & 0x7)
  1228  		if wireType == 4 {
  1229  			return fmt.Errorf("proto: MsgRevoke: wiretype end group for non-group")
  1230  		}
  1231  		if fieldNum <= 0 {
  1232  			return fmt.Errorf("proto: MsgRevoke: illegal tag %d (wire type %d)", fieldNum, wire)
  1233  		}
  1234  		switch fieldNum {
  1235  		case 1:
  1236  			if wireType != 2 {
  1237  				return fmt.Errorf("proto: wrong wireType = %d for field Granter", wireType)
  1238  			}
  1239  			var stringLen uint64
  1240  			for shift := uint(0); ; shift += 7 {
  1241  				if shift >= 64 {
  1242  					return ErrIntOverflowTx
  1243  				}
  1244  				if iNdEx >= l {
  1245  					return io.ErrUnexpectedEOF
  1246  				}
  1247  				b := dAtA[iNdEx]
  1248  				iNdEx++
  1249  				stringLen |= uint64(b&0x7F) << shift
  1250  				if b < 0x80 {
  1251  					break
  1252  				}
  1253  			}
  1254  			intStringLen := int(stringLen)
  1255  			if intStringLen < 0 {
  1256  				return ErrInvalidLengthTx
  1257  			}
  1258  			postIndex := iNdEx + intStringLen
  1259  			if postIndex < 0 {
  1260  				return ErrInvalidLengthTx
  1261  			}
  1262  			if postIndex > l {
  1263  				return io.ErrUnexpectedEOF
  1264  			}
  1265  			m.Granter = string(dAtA[iNdEx:postIndex])
  1266  			iNdEx = postIndex
  1267  		case 2:
  1268  			if wireType != 2 {
  1269  				return fmt.Errorf("proto: wrong wireType = %d for field Grantee", wireType)
  1270  			}
  1271  			var stringLen uint64
  1272  			for shift := uint(0); ; shift += 7 {
  1273  				if shift >= 64 {
  1274  					return ErrIntOverflowTx
  1275  				}
  1276  				if iNdEx >= l {
  1277  					return io.ErrUnexpectedEOF
  1278  				}
  1279  				b := dAtA[iNdEx]
  1280  				iNdEx++
  1281  				stringLen |= uint64(b&0x7F) << shift
  1282  				if b < 0x80 {
  1283  					break
  1284  				}
  1285  			}
  1286  			intStringLen := int(stringLen)
  1287  			if intStringLen < 0 {
  1288  				return ErrInvalidLengthTx
  1289  			}
  1290  			postIndex := iNdEx + intStringLen
  1291  			if postIndex < 0 {
  1292  				return ErrInvalidLengthTx
  1293  			}
  1294  			if postIndex > l {
  1295  				return io.ErrUnexpectedEOF
  1296  			}
  1297  			m.Grantee = string(dAtA[iNdEx:postIndex])
  1298  			iNdEx = postIndex
  1299  		case 3:
  1300  			if wireType != 2 {
  1301  				return fmt.Errorf("proto: wrong wireType = %d for field MsgTypeUrl", wireType)
  1302  			}
  1303  			var stringLen uint64
  1304  			for shift := uint(0); ; shift += 7 {
  1305  				if shift >= 64 {
  1306  					return ErrIntOverflowTx
  1307  				}
  1308  				if iNdEx >= l {
  1309  					return io.ErrUnexpectedEOF
  1310  				}
  1311  				b := dAtA[iNdEx]
  1312  				iNdEx++
  1313  				stringLen |= uint64(b&0x7F) << shift
  1314  				if b < 0x80 {
  1315  					break
  1316  				}
  1317  			}
  1318  			intStringLen := int(stringLen)
  1319  			if intStringLen < 0 {
  1320  				return ErrInvalidLengthTx
  1321  			}
  1322  			postIndex := iNdEx + intStringLen
  1323  			if postIndex < 0 {
  1324  				return ErrInvalidLengthTx
  1325  			}
  1326  			if postIndex > l {
  1327  				return io.ErrUnexpectedEOF
  1328  			}
  1329  			m.MsgTypeUrl = string(dAtA[iNdEx:postIndex])
  1330  			iNdEx = postIndex
  1331  		default:
  1332  			iNdEx = preIndex
  1333  			skippy, err := skipTx(dAtA[iNdEx:])
  1334  			if err != nil {
  1335  				return err
  1336  			}
  1337  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1338  				return ErrInvalidLengthTx
  1339  			}
  1340  			if (iNdEx + skippy) > l {
  1341  				return io.ErrUnexpectedEOF
  1342  			}
  1343  			iNdEx += skippy
  1344  		}
  1345  	}
  1346  
  1347  	if iNdEx > l {
  1348  		return io.ErrUnexpectedEOF
  1349  	}
  1350  	return nil
  1351  }
  1352  func (m *MsgRevokeResponse) Unmarshal(dAtA []byte) error {
  1353  	l := len(dAtA)
  1354  	iNdEx := 0
  1355  	for iNdEx < l {
  1356  		preIndex := iNdEx
  1357  		var wire uint64
  1358  		for shift := uint(0); ; shift += 7 {
  1359  			if shift >= 64 {
  1360  				return ErrIntOverflowTx
  1361  			}
  1362  			if iNdEx >= l {
  1363  				return io.ErrUnexpectedEOF
  1364  			}
  1365  			b := dAtA[iNdEx]
  1366  			iNdEx++
  1367  			wire |= uint64(b&0x7F) << shift
  1368  			if b < 0x80 {
  1369  				break
  1370  			}
  1371  		}
  1372  		fieldNum := int32(wire >> 3)
  1373  		wireType := int(wire & 0x7)
  1374  		if wireType == 4 {
  1375  			return fmt.Errorf("proto: MsgRevokeResponse: wiretype end group for non-group")
  1376  		}
  1377  		if fieldNum <= 0 {
  1378  			return fmt.Errorf("proto: MsgRevokeResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  1379  		}
  1380  		switch fieldNum {
  1381  		default:
  1382  			iNdEx = preIndex
  1383  			skippy, err := skipTx(dAtA[iNdEx:])
  1384  			if err != nil {
  1385  				return err
  1386  			}
  1387  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1388  				return ErrInvalidLengthTx
  1389  			}
  1390  			if (iNdEx + skippy) > l {
  1391  				return io.ErrUnexpectedEOF
  1392  			}
  1393  			iNdEx += skippy
  1394  		}
  1395  	}
  1396  
  1397  	if iNdEx > l {
  1398  		return io.ErrUnexpectedEOF
  1399  	}
  1400  	return nil
  1401  }
  1402  func skipTx(dAtA []byte) (n int, err error) {
  1403  	l := len(dAtA)
  1404  	iNdEx := 0
  1405  	depth := 0
  1406  	for iNdEx < l {
  1407  		var wire uint64
  1408  		for shift := uint(0); ; shift += 7 {
  1409  			if shift >= 64 {
  1410  				return 0, ErrIntOverflowTx
  1411  			}
  1412  			if iNdEx >= l {
  1413  				return 0, io.ErrUnexpectedEOF
  1414  			}
  1415  			b := dAtA[iNdEx]
  1416  			iNdEx++
  1417  			wire |= (uint64(b) & 0x7F) << shift
  1418  			if b < 0x80 {
  1419  				break
  1420  			}
  1421  		}
  1422  		wireType := int(wire & 0x7)
  1423  		switch wireType {
  1424  		case 0:
  1425  			for shift := uint(0); ; shift += 7 {
  1426  				if shift >= 64 {
  1427  					return 0, ErrIntOverflowTx
  1428  				}
  1429  				if iNdEx >= l {
  1430  					return 0, io.ErrUnexpectedEOF
  1431  				}
  1432  				iNdEx++
  1433  				if dAtA[iNdEx-1] < 0x80 {
  1434  					break
  1435  				}
  1436  			}
  1437  		case 1:
  1438  			iNdEx += 8
  1439  		case 2:
  1440  			var length int
  1441  			for shift := uint(0); ; shift += 7 {
  1442  				if shift >= 64 {
  1443  					return 0, ErrIntOverflowTx
  1444  				}
  1445  				if iNdEx >= l {
  1446  					return 0, io.ErrUnexpectedEOF
  1447  				}
  1448  				b := dAtA[iNdEx]
  1449  				iNdEx++
  1450  				length |= (int(b) & 0x7F) << shift
  1451  				if b < 0x80 {
  1452  					break
  1453  				}
  1454  			}
  1455  			if length < 0 {
  1456  				return 0, ErrInvalidLengthTx
  1457  			}
  1458  			iNdEx += length
  1459  		case 3:
  1460  			depth++
  1461  		case 4:
  1462  			if depth == 0 {
  1463  				return 0, ErrUnexpectedEndOfGroupTx
  1464  			}
  1465  			depth--
  1466  		case 5:
  1467  			iNdEx += 4
  1468  		default:
  1469  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  1470  		}
  1471  		if iNdEx < 0 {
  1472  			return 0, ErrInvalidLengthTx
  1473  		}
  1474  		if depth == 0 {
  1475  			return iNdEx, nil
  1476  		}
  1477  	}
  1478  	return 0, io.ErrUnexpectedEOF
  1479  }
  1480  
  1481  var (
  1482  	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
  1483  	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
  1484  	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
  1485  )