github.com/cosmos/cosmos-sdk@v0.50.10/x/crisis/types/tx.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: cosmos/crisis/v1beta1/tx.proto
     3  
     4  package types
     5  
     6  import (
     7  	context "context"
     8  	fmt "fmt"
     9  	_ "github.com/cosmos/cosmos-proto"
    10  	types "github.com/cosmos/cosmos-sdk/types"
    11  	_ "github.com/cosmos/cosmos-sdk/types/msgservice"
    12  	_ "github.com/cosmos/cosmos-sdk/types/tx/amino"
    13  	_ "github.com/cosmos/gogoproto/gogoproto"
    14  	grpc1 "github.com/cosmos/gogoproto/grpc"
    15  	proto "github.com/cosmos/gogoproto/proto"
    16  	grpc "google.golang.org/grpc"
    17  	codes "google.golang.org/grpc/codes"
    18  	status "google.golang.org/grpc/status"
    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  // MsgVerifyInvariant represents a message to verify a particular invariance.
    36  type MsgVerifyInvariant struct {
    37  	// sender is the account address of private key to send coins to fee collector account.
    38  	Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
    39  	// name of the invariant module.
    40  	InvariantModuleName string `protobuf:"bytes,2,opt,name=invariant_module_name,json=invariantModuleName,proto3" json:"invariant_module_name,omitempty"`
    41  	// invariant_route is the msg's invariant route.
    42  	InvariantRoute string `protobuf:"bytes,3,opt,name=invariant_route,json=invariantRoute,proto3" json:"invariant_route,omitempty"`
    43  }
    44  
    45  func (m *MsgVerifyInvariant) Reset()         { *m = MsgVerifyInvariant{} }
    46  func (m *MsgVerifyInvariant) String() string { return proto.CompactTextString(m) }
    47  func (*MsgVerifyInvariant) ProtoMessage()    {}
    48  func (*MsgVerifyInvariant) Descriptor() ([]byte, []int) {
    49  	return fileDescriptor_61276163172fe867, []int{0}
    50  }
    51  func (m *MsgVerifyInvariant) XXX_Unmarshal(b []byte) error {
    52  	return m.Unmarshal(b)
    53  }
    54  func (m *MsgVerifyInvariant) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    55  	if deterministic {
    56  		return xxx_messageInfo_MsgVerifyInvariant.Marshal(b, m, deterministic)
    57  	} else {
    58  		b = b[:cap(b)]
    59  		n, err := m.MarshalToSizedBuffer(b)
    60  		if err != nil {
    61  			return nil, err
    62  		}
    63  		return b[:n], nil
    64  	}
    65  }
    66  func (m *MsgVerifyInvariant) XXX_Merge(src proto.Message) {
    67  	xxx_messageInfo_MsgVerifyInvariant.Merge(m, src)
    68  }
    69  func (m *MsgVerifyInvariant) XXX_Size() int {
    70  	return m.Size()
    71  }
    72  func (m *MsgVerifyInvariant) XXX_DiscardUnknown() {
    73  	xxx_messageInfo_MsgVerifyInvariant.DiscardUnknown(m)
    74  }
    75  
    76  var xxx_messageInfo_MsgVerifyInvariant proto.InternalMessageInfo
    77  
    78  // MsgVerifyInvariantResponse defines the Msg/VerifyInvariant response type.
    79  type MsgVerifyInvariantResponse struct {
    80  }
    81  
    82  func (m *MsgVerifyInvariantResponse) Reset()         { *m = MsgVerifyInvariantResponse{} }
    83  func (m *MsgVerifyInvariantResponse) String() string { return proto.CompactTextString(m) }
    84  func (*MsgVerifyInvariantResponse) ProtoMessage()    {}
    85  func (*MsgVerifyInvariantResponse) Descriptor() ([]byte, []int) {
    86  	return fileDescriptor_61276163172fe867, []int{1}
    87  }
    88  func (m *MsgVerifyInvariantResponse) XXX_Unmarshal(b []byte) error {
    89  	return m.Unmarshal(b)
    90  }
    91  func (m *MsgVerifyInvariantResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    92  	if deterministic {
    93  		return xxx_messageInfo_MsgVerifyInvariantResponse.Marshal(b, m, deterministic)
    94  	} else {
    95  		b = b[:cap(b)]
    96  		n, err := m.MarshalToSizedBuffer(b)
    97  		if err != nil {
    98  			return nil, err
    99  		}
   100  		return b[:n], nil
   101  	}
   102  }
   103  func (m *MsgVerifyInvariantResponse) XXX_Merge(src proto.Message) {
   104  	xxx_messageInfo_MsgVerifyInvariantResponse.Merge(m, src)
   105  }
   106  func (m *MsgVerifyInvariantResponse) XXX_Size() int {
   107  	return m.Size()
   108  }
   109  func (m *MsgVerifyInvariantResponse) XXX_DiscardUnknown() {
   110  	xxx_messageInfo_MsgVerifyInvariantResponse.DiscardUnknown(m)
   111  }
   112  
   113  var xxx_messageInfo_MsgVerifyInvariantResponse proto.InternalMessageInfo
   114  
   115  // MsgUpdateParams is the Msg/UpdateParams request type.
   116  //
   117  // Since: cosmos-sdk 0.47
   118  type MsgUpdateParams struct {
   119  	// authority is the address that controls the module (defaults to x/gov unless overwritten).
   120  	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
   121  	// constant_fee defines the x/crisis parameter.
   122  	ConstantFee types.Coin `protobuf:"bytes,2,opt,name=constant_fee,json=constantFee,proto3" json:"constant_fee"`
   123  }
   124  
   125  func (m *MsgUpdateParams) Reset()         { *m = MsgUpdateParams{} }
   126  func (m *MsgUpdateParams) String() string { return proto.CompactTextString(m) }
   127  func (*MsgUpdateParams) ProtoMessage()    {}
   128  func (*MsgUpdateParams) Descriptor() ([]byte, []int) {
   129  	return fileDescriptor_61276163172fe867, []int{2}
   130  }
   131  func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error {
   132  	return m.Unmarshal(b)
   133  }
   134  func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   135  	if deterministic {
   136  		return xxx_messageInfo_MsgUpdateParams.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 *MsgUpdateParams) XXX_Merge(src proto.Message) {
   147  	xxx_messageInfo_MsgUpdateParams.Merge(m, src)
   148  }
   149  func (m *MsgUpdateParams) XXX_Size() int {
   150  	return m.Size()
   151  }
   152  func (m *MsgUpdateParams) XXX_DiscardUnknown() {
   153  	xxx_messageInfo_MsgUpdateParams.DiscardUnknown(m)
   154  }
   155  
   156  var xxx_messageInfo_MsgUpdateParams proto.InternalMessageInfo
   157  
   158  func (m *MsgUpdateParams) GetAuthority() string {
   159  	if m != nil {
   160  		return m.Authority
   161  	}
   162  	return ""
   163  }
   164  
   165  func (m *MsgUpdateParams) GetConstantFee() types.Coin {
   166  	if m != nil {
   167  		return m.ConstantFee
   168  	}
   169  	return types.Coin{}
   170  }
   171  
   172  // MsgUpdateParamsResponse defines the response structure for executing a
   173  // MsgUpdateParams message.
   174  //
   175  // Since: cosmos-sdk 0.47
   176  type MsgUpdateParamsResponse struct {
   177  }
   178  
   179  func (m *MsgUpdateParamsResponse) Reset()         { *m = MsgUpdateParamsResponse{} }
   180  func (m *MsgUpdateParamsResponse) String() string { return proto.CompactTextString(m) }
   181  func (*MsgUpdateParamsResponse) ProtoMessage()    {}
   182  func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int) {
   183  	return fileDescriptor_61276163172fe867, []int{3}
   184  }
   185  func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error {
   186  	return m.Unmarshal(b)
   187  }
   188  func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   189  	if deterministic {
   190  		return xxx_messageInfo_MsgUpdateParamsResponse.Marshal(b, m, deterministic)
   191  	} else {
   192  		b = b[:cap(b)]
   193  		n, err := m.MarshalToSizedBuffer(b)
   194  		if err != nil {
   195  			return nil, err
   196  		}
   197  		return b[:n], nil
   198  	}
   199  }
   200  func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message) {
   201  	xxx_messageInfo_MsgUpdateParamsResponse.Merge(m, src)
   202  }
   203  func (m *MsgUpdateParamsResponse) XXX_Size() int {
   204  	return m.Size()
   205  }
   206  func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown() {
   207  	xxx_messageInfo_MsgUpdateParamsResponse.DiscardUnknown(m)
   208  }
   209  
   210  var xxx_messageInfo_MsgUpdateParamsResponse proto.InternalMessageInfo
   211  
   212  func init() {
   213  	proto.RegisterType((*MsgVerifyInvariant)(nil), "cosmos.crisis.v1beta1.MsgVerifyInvariant")
   214  	proto.RegisterType((*MsgVerifyInvariantResponse)(nil), "cosmos.crisis.v1beta1.MsgVerifyInvariantResponse")
   215  	proto.RegisterType((*MsgUpdateParams)(nil), "cosmos.crisis.v1beta1.MsgUpdateParams")
   216  	proto.RegisterType((*MsgUpdateParamsResponse)(nil), "cosmos.crisis.v1beta1.MsgUpdateParamsResponse")
   217  }
   218  
   219  func init() { proto.RegisterFile("cosmos/crisis/v1beta1/tx.proto", fileDescriptor_61276163172fe867) }
   220  
   221  var fileDescriptor_61276163172fe867 = []byte{
   222  	// 506 bytes of a gzipped FileDescriptorProto
   223  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x53, 0xcf, 0x6b, 0x13, 0x41,
   224  	0x14, 0xde, 0xb5, 0x58, 0xc8, 0xb4, 0x18, 0x5c, 0x5b, 0x9a, 0x2c, 0xba, 0x91, 0x08, 0xfe, 0x88,
   225  	0x74, 0xd7, 0x44, 0xec, 0xa1, 0x37, 0x23, 0x2a, 0x1e, 0x22, 0xb2, 0xa2, 0x07, 0x2f, 0x61, 0xb2,
   226  	0x3b, 0xd9, 0x0e, 0xba, 0x33, 0x61, 0xde, 0x24, 0x34, 0x37, 0xf1, 0x24, 0x9e, 0xfc, 0x13, 0x7a,
   227  	0xf4, 0x98, 0x83, 0x7f, 0x44, 0xf1, 0x54, 0x3c, 0x89, 0x07, 0x91, 0x04, 0x89, 0x7f, 0x86, 0xec,
   228  	0xce, 0x4c, 0x52, 0x93, 0x8a, 0xb9, 0x24, 0xcb, 0xfb, 0xbe, 0xf7, 0xde, 0xf7, 0x7d, 0x33, 0x83,
   229  	0xbc, 0x88, 0x43, 0xca, 0x21, 0x88, 0x04, 0x05, 0x0a, 0xc1, 0xa0, 0xde, 0x21, 0x12, 0xd7, 0x03,
   230  	0x79, 0xe8, 0xf7, 0x04, 0x97, 0xdc, 0xd9, 0x56, 0xb8, 0xaf, 0x70, 0x5f, 0xe3, 0xee, 0x56, 0xc2,
   231  	0x13, 0x9e, 0x33, 0x82, 0xec, 0x4b, 0x91, 0xdd, 0xb2, 0x22, 0xb7, 0x15, 0xa0, 0x3b, 0x15, 0xb4,
   232  	0xa3, 0xf7, 0xa4, 0x90, 0x04, 0x83, 0x7a, 0xf6, 0xa7, 0x81, 0x8b, 0x38, 0xa5, 0x8c, 0x07, 0xf9,
   233  	0xaf, 0x2e, 0x19, 0x4d, 0x1d, 0x0c, 0x64, 0xa6, 0x28, 0xe2, 0x94, 0x29, 0xbc, 0xfa, 0xdd, 0x46,
   234  	0x4e, 0x0b, 0x92, 0x97, 0x44, 0xd0, 0xee, 0xf0, 0x09, 0x1b, 0x60, 0x41, 0x31, 0x93, 0xce, 0x1d,
   235  	0xb4, 0x0e, 0x84, 0xc5, 0x44, 0x94, 0xec, 0xab, 0xf6, 0xcd, 0x42, 0xb3, 0xf4, 0xf5, 0xf3, 0xee,
   236  	0x96, 0x16, 0x71, 0x3f, 0x8e, 0x05, 0x01, 0x78, 0x2e, 0x05, 0x65, 0x49, 0xa8, 0x79, 0x4e, 0x03,
   237  	0x6d, 0x53, 0xd3, 0xde, 0x4e, 0x79, 0xdc, 0x7f, 0x43, 0xda, 0x0c, 0xa7, 0xa4, 0x74, 0x2e, 0x1b,
   238  	0x10, 0x5e, 0x9a, 0x81, 0xad, 0x1c, 0x7b, 0x8a, 0x53, 0xe2, 0xdc, 0x40, 0xc5, 0x79, 0x8f, 0xe0,
   239  	0x7d, 0x49, 0x4a, 0x6b, 0x39, 0xfb, 0xc2, 0xac, 0x1c, 0x66, 0xd5, 0xfd, 0x7b, 0xef, 0x8f, 0x2a,
   240  	0xd6, 0xef, 0xa3, 0x8a, 0xf5, 0x6e, 0x3a, 0xaa, 0xe9, 0x8d, 0x1f, 0xa6, 0xa3, 0xda, 0x15, 0x25,
   241  	0x69, 0x17, 0xe2, 0xd7, 0xc1, 0xb2, 0x8b, 0xea, 0x65, 0xe4, 0x2e, 0x57, 0x43, 0x02, 0x3d, 0xce,
   242  	0x80, 0x54, 0xbf, 0xd8, 0xa8, 0xd8, 0x82, 0xe4, 0x45, 0x2f, 0xc6, 0x92, 0x3c, 0xc3, 0x02, 0xa7,
   243  	0xe0, 0xec, 0xa1, 0x02, 0xee, 0xcb, 0x03, 0x2e, 0xa8, 0x1c, 0xfe, 0xd7, 0xfa, 0x9c, 0xea, 0x3c,
   244  	0x46, 0x9b, 0x11, 0x67, 0x20, 0x33, 0x23, 0x5d, 0xa2, 0x4c, 0x6f, 0x34, 0xca, 0xbe, 0xee, 0xcb,
   245  	0xd2, 0x37, 0xe7, 0xed, 0x3f, 0xe0, 0x94, 0x35, 0x0b, 0xc7, 0x3f, 0x2a, 0xd6, 0xa7, 0xe9, 0xa8,
   246  	0x66, 0x87, 0x1b, 0xa6, 0xf3, 0x11, 0x21, 0xfb, 0x7b, 0x99, 0xc3, 0xf9, 0xe0, 0xcc, 0xe4, 0xb5,
   247  	0x53, 0x26, 0x0f, 0xcd, 0xe5, 0x5a, 0x10, 0x5e, 0x2d, 0xa3, 0x9d, 0x85, 0x92, 0xf1, 0xd9, 0xf8,
   248  	0x65, 0xa3, 0xb5, 0x16, 0x24, 0x0e, 0x47, 0xc5, 0xc5, 0x63, 0xbe, 0xe5, 0x9f, 0x79, 0x25, 0xfd,
   249  	0xe5, 0xd4, 0xdc, 0xfa, 0xca, 0x54, 0xb3, 0xd8, 0xe9, 0xa2, 0xcd, 0xbf, 0xc2, 0xbd, 0xfe, 0xef,
   250  	0x11, 0xa7, 0x79, 0xae, 0xbf, 0x1a, 0xcf, 0xec, 0x71, 0xcf, 0xbf, 0xcd, 0x72, 0x6c, 0x3e, 0x3c,
   251  	0x1e, 0x7b, 0xf6, 0xc9, 0xd8, 0xb3, 0x7f, 0x8e, 0x3d, 0xfb, 0xe3, 0xc4, 0xb3, 0x4e, 0x26, 0x9e,
   252  	0xf5, 0x6d, 0xe2, 0x59, 0xaf, 0x6e, 0x27, 0x54, 0x1e, 0xf4, 0x3b, 0x7e, 0xc4, 0xd3, 0xc0, 0xbc,
   253  	0xd1, 0x33, 0x32, 0x95, 0xc3, 0x1e, 0x81, 0xce, 0x7a, 0xfe, 0x30, 0xee, 0xfe, 0x09, 0x00, 0x00,
   254  	0xff, 0xff, 0x2a, 0xe4, 0x45, 0xe4, 0xce, 0x03, 0x00, 0x00,
   255  }
   256  
   257  // Reference imports to suppress errors if they are not otherwise used.
   258  var _ context.Context
   259  var _ grpc.ClientConn
   260  
   261  // This is a compile-time assertion to ensure that this generated file
   262  // is compatible with the grpc package it is being compiled against.
   263  const _ = grpc.SupportPackageIsVersion4
   264  
   265  // MsgClient is the client API for Msg service.
   266  //
   267  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   268  type MsgClient interface {
   269  	// VerifyInvariant defines a method to verify a particular invariant.
   270  	VerifyInvariant(ctx context.Context, in *MsgVerifyInvariant, opts ...grpc.CallOption) (*MsgVerifyInvariantResponse, error)
   271  	// UpdateParams defines a governance operation for updating the x/crisis module
   272  	// parameters. The authority is defined in the keeper.
   273  	//
   274  	// Since: cosmos-sdk 0.47
   275  	UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error)
   276  }
   277  
   278  type msgClient struct {
   279  	cc grpc1.ClientConn
   280  }
   281  
   282  func NewMsgClient(cc grpc1.ClientConn) MsgClient {
   283  	return &msgClient{cc}
   284  }
   285  
   286  func (c *msgClient) VerifyInvariant(ctx context.Context, in *MsgVerifyInvariant, opts ...grpc.CallOption) (*MsgVerifyInvariantResponse, error) {
   287  	out := new(MsgVerifyInvariantResponse)
   288  	err := c.cc.Invoke(ctx, "/cosmos.crisis.v1beta1.Msg/VerifyInvariant", in, out, opts...)
   289  	if err != nil {
   290  		return nil, err
   291  	}
   292  	return out, nil
   293  }
   294  
   295  func (c *msgClient) UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) {
   296  	out := new(MsgUpdateParamsResponse)
   297  	err := c.cc.Invoke(ctx, "/cosmos.crisis.v1beta1.Msg/UpdateParams", in, out, opts...)
   298  	if err != nil {
   299  		return nil, err
   300  	}
   301  	return out, nil
   302  }
   303  
   304  // MsgServer is the server API for Msg service.
   305  type MsgServer interface {
   306  	// VerifyInvariant defines a method to verify a particular invariant.
   307  	VerifyInvariant(context.Context, *MsgVerifyInvariant) (*MsgVerifyInvariantResponse, error)
   308  	// UpdateParams defines a governance operation for updating the x/crisis module
   309  	// parameters. The authority is defined in the keeper.
   310  	//
   311  	// Since: cosmos-sdk 0.47
   312  	UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
   313  }
   314  
   315  // UnimplementedMsgServer can be embedded to have forward compatible implementations.
   316  type UnimplementedMsgServer struct {
   317  }
   318  
   319  func (*UnimplementedMsgServer) VerifyInvariant(ctx context.Context, req *MsgVerifyInvariant) (*MsgVerifyInvariantResponse, error) {
   320  	return nil, status.Errorf(codes.Unimplemented, "method VerifyInvariant not implemented")
   321  }
   322  func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error) {
   323  	return nil, status.Errorf(codes.Unimplemented, "method UpdateParams not implemented")
   324  }
   325  
   326  func RegisterMsgServer(s grpc1.Server, srv MsgServer) {
   327  	s.RegisterService(&_Msg_serviceDesc, srv)
   328  }
   329  
   330  func _Msg_VerifyInvariant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   331  	in := new(MsgVerifyInvariant)
   332  	if err := dec(in); err != nil {
   333  		return nil, err
   334  	}
   335  	if interceptor == nil {
   336  		return srv.(MsgServer).VerifyInvariant(ctx, in)
   337  	}
   338  	info := &grpc.UnaryServerInfo{
   339  		Server:     srv,
   340  		FullMethod: "/cosmos.crisis.v1beta1.Msg/VerifyInvariant",
   341  	}
   342  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   343  		return srv.(MsgServer).VerifyInvariant(ctx, req.(*MsgVerifyInvariant))
   344  	}
   345  	return interceptor(ctx, in, info, handler)
   346  }
   347  
   348  func _Msg_UpdateParams_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   349  	in := new(MsgUpdateParams)
   350  	if err := dec(in); err != nil {
   351  		return nil, err
   352  	}
   353  	if interceptor == nil {
   354  		return srv.(MsgServer).UpdateParams(ctx, in)
   355  	}
   356  	info := &grpc.UnaryServerInfo{
   357  		Server:     srv,
   358  		FullMethod: "/cosmos.crisis.v1beta1.Msg/UpdateParams",
   359  	}
   360  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   361  		return srv.(MsgServer).UpdateParams(ctx, req.(*MsgUpdateParams))
   362  	}
   363  	return interceptor(ctx, in, info, handler)
   364  }
   365  
   366  var _Msg_serviceDesc = grpc.ServiceDesc{
   367  	ServiceName: "cosmos.crisis.v1beta1.Msg",
   368  	HandlerType: (*MsgServer)(nil),
   369  	Methods: []grpc.MethodDesc{
   370  		{
   371  			MethodName: "VerifyInvariant",
   372  			Handler:    _Msg_VerifyInvariant_Handler,
   373  		},
   374  		{
   375  			MethodName: "UpdateParams",
   376  			Handler:    _Msg_UpdateParams_Handler,
   377  		},
   378  	},
   379  	Streams:  []grpc.StreamDesc{},
   380  	Metadata: "cosmos/crisis/v1beta1/tx.proto",
   381  }
   382  
   383  func (m *MsgVerifyInvariant) Marshal() (dAtA []byte, err error) {
   384  	size := m.Size()
   385  	dAtA = make([]byte, size)
   386  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   387  	if err != nil {
   388  		return nil, err
   389  	}
   390  	return dAtA[:n], nil
   391  }
   392  
   393  func (m *MsgVerifyInvariant) MarshalTo(dAtA []byte) (int, error) {
   394  	size := m.Size()
   395  	return m.MarshalToSizedBuffer(dAtA[:size])
   396  }
   397  
   398  func (m *MsgVerifyInvariant) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   399  	i := len(dAtA)
   400  	_ = i
   401  	var l int
   402  	_ = l
   403  	if len(m.InvariantRoute) > 0 {
   404  		i -= len(m.InvariantRoute)
   405  		copy(dAtA[i:], m.InvariantRoute)
   406  		i = encodeVarintTx(dAtA, i, uint64(len(m.InvariantRoute)))
   407  		i--
   408  		dAtA[i] = 0x1a
   409  	}
   410  	if len(m.InvariantModuleName) > 0 {
   411  		i -= len(m.InvariantModuleName)
   412  		copy(dAtA[i:], m.InvariantModuleName)
   413  		i = encodeVarintTx(dAtA, i, uint64(len(m.InvariantModuleName)))
   414  		i--
   415  		dAtA[i] = 0x12
   416  	}
   417  	if len(m.Sender) > 0 {
   418  		i -= len(m.Sender)
   419  		copy(dAtA[i:], m.Sender)
   420  		i = encodeVarintTx(dAtA, i, uint64(len(m.Sender)))
   421  		i--
   422  		dAtA[i] = 0xa
   423  	}
   424  	return len(dAtA) - i, nil
   425  }
   426  
   427  func (m *MsgVerifyInvariantResponse) Marshal() (dAtA []byte, err error) {
   428  	size := m.Size()
   429  	dAtA = make([]byte, size)
   430  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   431  	if err != nil {
   432  		return nil, err
   433  	}
   434  	return dAtA[:n], nil
   435  }
   436  
   437  func (m *MsgVerifyInvariantResponse) MarshalTo(dAtA []byte) (int, error) {
   438  	size := m.Size()
   439  	return m.MarshalToSizedBuffer(dAtA[:size])
   440  }
   441  
   442  func (m *MsgVerifyInvariantResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   443  	i := len(dAtA)
   444  	_ = i
   445  	var l int
   446  	_ = l
   447  	return len(dAtA) - i, nil
   448  }
   449  
   450  func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error) {
   451  	size := m.Size()
   452  	dAtA = make([]byte, size)
   453  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   454  	if err != nil {
   455  		return nil, err
   456  	}
   457  	return dAtA[:n], nil
   458  }
   459  
   460  func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error) {
   461  	size := m.Size()
   462  	return m.MarshalToSizedBuffer(dAtA[:size])
   463  }
   464  
   465  func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   466  	i := len(dAtA)
   467  	_ = i
   468  	var l int
   469  	_ = l
   470  	{
   471  		size, err := m.ConstantFee.MarshalToSizedBuffer(dAtA[:i])
   472  		if err != nil {
   473  			return 0, err
   474  		}
   475  		i -= size
   476  		i = encodeVarintTx(dAtA, i, uint64(size))
   477  	}
   478  	i--
   479  	dAtA[i] = 0x12
   480  	if len(m.Authority) > 0 {
   481  		i -= len(m.Authority)
   482  		copy(dAtA[i:], m.Authority)
   483  		i = encodeVarintTx(dAtA, i, uint64(len(m.Authority)))
   484  		i--
   485  		dAtA[i] = 0xa
   486  	}
   487  	return len(dAtA) - i, nil
   488  }
   489  
   490  func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error) {
   491  	size := m.Size()
   492  	dAtA = make([]byte, size)
   493  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   494  	if err != nil {
   495  		return nil, err
   496  	}
   497  	return dAtA[:n], nil
   498  }
   499  
   500  func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error) {
   501  	size := m.Size()
   502  	return m.MarshalToSizedBuffer(dAtA[:size])
   503  }
   504  
   505  func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   506  	i := len(dAtA)
   507  	_ = i
   508  	var l int
   509  	_ = l
   510  	return len(dAtA) - i, nil
   511  }
   512  
   513  func encodeVarintTx(dAtA []byte, offset int, v uint64) int {
   514  	offset -= sovTx(v)
   515  	base := offset
   516  	for v >= 1<<7 {
   517  		dAtA[offset] = uint8(v&0x7f | 0x80)
   518  		v >>= 7
   519  		offset++
   520  	}
   521  	dAtA[offset] = uint8(v)
   522  	return base
   523  }
   524  func (m *MsgVerifyInvariant) Size() (n int) {
   525  	if m == nil {
   526  		return 0
   527  	}
   528  	var l int
   529  	_ = l
   530  	l = len(m.Sender)
   531  	if l > 0 {
   532  		n += 1 + l + sovTx(uint64(l))
   533  	}
   534  	l = len(m.InvariantModuleName)
   535  	if l > 0 {
   536  		n += 1 + l + sovTx(uint64(l))
   537  	}
   538  	l = len(m.InvariantRoute)
   539  	if l > 0 {
   540  		n += 1 + l + sovTx(uint64(l))
   541  	}
   542  	return n
   543  }
   544  
   545  func (m *MsgVerifyInvariantResponse) Size() (n int) {
   546  	if m == nil {
   547  		return 0
   548  	}
   549  	var l int
   550  	_ = l
   551  	return n
   552  }
   553  
   554  func (m *MsgUpdateParams) Size() (n int) {
   555  	if m == nil {
   556  		return 0
   557  	}
   558  	var l int
   559  	_ = l
   560  	l = len(m.Authority)
   561  	if l > 0 {
   562  		n += 1 + l + sovTx(uint64(l))
   563  	}
   564  	l = m.ConstantFee.Size()
   565  	n += 1 + l + sovTx(uint64(l))
   566  	return n
   567  }
   568  
   569  func (m *MsgUpdateParamsResponse) Size() (n int) {
   570  	if m == nil {
   571  		return 0
   572  	}
   573  	var l int
   574  	_ = l
   575  	return n
   576  }
   577  
   578  func sovTx(x uint64) (n int) {
   579  	return (math_bits.Len64(x|1) + 6) / 7
   580  }
   581  func sozTx(x uint64) (n int) {
   582  	return sovTx(uint64((x << 1) ^ uint64((int64(x) >> 63))))
   583  }
   584  func (m *MsgVerifyInvariant) Unmarshal(dAtA []byte) error {
   585  	l := len(dAtA)
   586  	iNdEx := 0
   587  	for iNdEx < l {
   588  		preIndex := iNdEx
   589  		var wire uint64
   590  		for shift := uint(0); ; shift += 7 {
   591  			if shift >= 64 {
   592  				return ErrIntOverflowTx
   593  			}
   594  			if iNdEx >= l {
   595  				return io.ErrUnexpectedEOF
   596  			}
   597  			b := dAtA[iNdEx]
   598  			iNdEx++
   599  			wire |= uint64(b&0x7F) << shift
   600  			if b < 0x80 {
   601  				break
   602  			}
   603  		}
   604  		fieldNum := int32(wire >> 3)
   605  		wireType := int(wire & 0x7)
   606  		if wireType == 4 {
   607  			return fmt.Errorf("proto: MsgVerifyInvariant: wiretype end group for non-group")
   608  		}
   609  		if fieldNum <= 0 {
   610  			return fmt.Errorf("proto: MsgVerifyInvariant: illegal tag %d (wire type %d)", fieldNum, wire)
   611  		}
   612  		switch fieldNum {
   613  		case 1:
   614  			if wireType != 2 {
   615  				return fmt.Errorf("proto: wrong wireType = %d for field Sender", wireType)
   616  			}
   617  			var stringLen uint64
   618  			for shift := uint(0); ; shift += 7 {
   619  				if shift >= 64 {
   620  					return ErrIntOverflowTx
   621  				}
   622  				if iNdEx >= l {
   623  					return io.ErrUnexpectedEOF
   624  				}
   625  				b := dAtA[iNdEx]
   626  				iNdEx++
   627  				stringLen |= uint64(b&0x7F) << shift
   628  				if b < 0x80 {
   629  					break
   630  				}
   631  			}
   632  			intStringLen := int(stringLen)
   633  			if intStringLen < 0 {
   634  				return ErrInvalidLengthTx
   635  			}
   636  			postIndex := iNdEx + intStringLen
   637  			if postIndex < 0 {
   638  				return ErrInvalidLengthTx
   639  			}
   640  			if postIndex > l {
   641  				return io.ErrUnexpectedEOF
   642  			}
   643  			m.Sender = string(dAtA[iNdEx:postIndex])
   644  			iNdEx = postIndex
   645  		case 2:
   646  			if wireType != 2 {
   647  				return fmt.Errorf("proto: wrong wireType = %d for field InvariantModuleName", wireType)
   648  			}
   649  			var stringLen uint64
   650  			for shift := uint(0); ; shift += 7 {
   651  				if shift >= 64 {
   652  					return ErrIntOverflowTx
   653  				}
   654  				if iNdEx >= l {
   655  					return io.ErrUnexpectedEOF
   656  				}
   657  				b := dAtA[iNdEx]
   658  				iNdEx++
   659  				stringLen |= uint64(b&0x7F) << shift
   660  				if b < 0x80 {
   661  					break
   662  				}
   663  			}
   664  			intStringLen := int(stringLen)
   665  			if intStringLen < 0 {
   666  				return ErrInvalidLengthTx
   667  			}
   668  			postIndex := iNdEx + intStringLen
   669  			if postIndex < 0 {
   670  				return ErrInvalidLengthTx
   671  			}
   672  			if postIndex > l {
   673  				return io.ErrUnexpectedEOF
   674  			}
   675  			m.InvariantModuleName = string(dAtA[iNdEx:postIndex])
   676  			iNdEx = postIndex
   677  		case 3:
   678  			if wireType != 2 {
   679  				return fmt.Errorf("proto: wrong wireType = %d for field InvariantRoute", wireType)
   680  			}
   681  			var stringLen uint64
   682  			for shift := uint(0); ; shift += 7 {
   683  				if shift >= 64 {
   684  					return ErrIntOverflowTx
   685  				}
   686  				if iNdEx >= l {
   687  					return io.ErrUnexpectedEOF
   688  				}
   689  				b := dAtA[iNdEx]
   690  				iNdEx++
   691  				stringLen |= uint64(b&0x7F) << shift
   692  				if b < 0x80 {
   693  					break
   694  				}
   695  			}
   696  			intStringLen := int(stringLen)
   697  			if intStringLen < 0 {
   698  				return ErrInvalidLengthTx
   699  			}
   700  			postIndex := iNdEx + intStringLen
   701  			if postIndex < 0 {
   702  				return ErrInvalidLengthTx
   703  			}
   704  			if postIndex > l {
   705  				return io.ErrUnexpectedEOF
   706  			}
   707  			m.InvariantRoute = string(dAtA[iNdEx:postIndex])
   708  			iNdEx = postIndex
   709  		default:
   710  			iNdEx = preIndex
   711  			skippy, err := skipTx(dAtA[iNdEx:])
   712  			if err != nil {
   713  				return err
   714  			}
   715  			if (skippy < 0) || (iNdEx+skippy) < 0 {
   716  				return ErrInvalidLengthTx
   717  			}
   718  			if (iNdEx + skippy) > l {
   719  				return io.ErrUnexpectedEOF
   720  			}
   721  			iNdEx += skippy
   722  		}
   723  	}
   724  
   725  	if iNdEx > l {
   726  		return io.ErrUnexpectedEOF
   727  	}
   728  	return nil
   729  }
   730  func (m *MsgVerifyInvariantResponse) Unmarshal(dAtA []byte) error {
   731  	l := len(dAtA)
   732  	iNdEx := 0
   733  	for iNdEx < l {
   734  		preIndex := iNdEx
   735  		var wire uint64
   736  		for shift := uint(0); ; shift += 7 {
   737  			if shift >= 64 {
   738  				return ErrIntOverflowTx
   739  			}
   740  			if iNdEx >= l {
   741  				return io.ErrUnexpectedEOF
   742  			}
   743  			b := dAtA[iNdEx]
   744  			iNdEx++
   745  			wire |= uint64(b&0x7F) << shift
   746  			if b < 0x80 {
   747  				break
   748  			}
   749  		}
   750  		fieldNum := int32(wire >> 3)
   751  		wireType := int(wire & 0x7)
   752  		if wireType == 4 {
   753  			return fmt.Errorf("proto: MsgVerifyInvariantResponse: wiretype end group for non-group")
   754  		}
   755  		if fieldNum <= 0 {
   756  			return fmt.Errorf("proto: MsgVerifyInvariantResponse: illegal tag %d (wire type %d)", fieldNum, wire)
   757  		}
   758  		switch fieldNum {
   759  		default:
   760  			iNdEx = preIndex
   761  			skippy, err := skipTx(dAtA[iNdEx:])
   762  			if err != nil {
   763  				return err
   764  			}
   765  			if (skippy < 0) || (iNdEx+skippy) < 0 {
   766  				return ErrInvalidLengthTx
   767  			}
   768  			if (iNdEx + skippy) > l {
   769  				return io.ErrUnexpectedEOF
   770  			}
   771  			iNdEx += skippy
   772  		}
   773  	}
   774  
   775  	if iNdEx > l {
   776  		return io.ErrUnexpectedEOF
   777  	}
   778  	return nil
   779  }
   780  func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error {
   781  	l := len(dAtA)
   782  	iNdEx := 0
   783  	for iNdEx < l {
   784  		preIndex := iNdEx
   785  		var wire uint64
   786  		for shift := uint(0); ; shift += 7 {
   787  			if shift >= 64 {
   788  				return ErrIntOverflowTx
   789  			}
   790  			if iNdEx >= l {
   791  				return io.ErrUnexpectedEOF
   792  			}
   793  			b := dAtA[iNdEx]
   794  			iNdEx++
   795  			wire |= uint64(b&0x7F) << shift
   796  			if b < 0x80 {
   797  				break
   798  			}
   799  		}
   800  		fieldNum := int32(wire >> 3)
   801  		wireType := int(wire & 0x7)
   802  		if wireType == 4 {
   803  			return fmt.Errorf("proto: MsgUpdateParams: wiretype end group for non-group")
   804  		}
   805  		if fieldNum <= 0 {
   806  			return fmt.Errorf("proto: MsgUpdateParams: illegal tag %d (wire type %d)", fieldNum, wire)
   807  		}
   808  		switch fieldNum {
   809  		case 1:
   810  			if wireType != 2 {
   811  				return fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType)
   812  			}
   813  			var stringLen uint64
   814  			for shift := uint(0); ; shift += 7 {
   815  				if shift >= 64 {
   816  					return ErrIntOverflowTx
   817  				}
   818  				if iNdEx >= l {
   819  					return io.ErrUnexpectedEOF
   820  				}
   821  				b := dAtA[iNdEx]
   822  				iNdEx++
   823  				stringLen |= uint64(b&0x7F) << shift
   824  				if b < 0x80 {
   825  					break
   826  				}
   827  			}
   828  			intStringLen := int(stringLen)
   829  			if intStringLen < 0 {
   830  				return ErrInvalidLengthTx
   831  			}
   832  			postIndex := iNdEx + intStringLen
   833  			if postIndex < 0 {
   834  				return ErrInvalidLengthTx
   835  			}
   836  			if postIndex > l {
   837  				return io.ErrUnexpectedEOF
   838  			}
   839  			m.Authority = string(dAtA[iNdEx:postIndex])
   840  			iNdEx = postIndex
   841  		case 2:
   842  			if wireType != 2 {
   843  				return fmt.Errorf("proto: wrong wireType = %d for field ConstantFee", wireType)
   844  			}
   845  			var msglen int
   846  			for shift := uint(0); ; shift += 7 {
   847  				if shift >= 64 {
   848  					return ErrIntOverflowTx
   849  				}
   850  				if iNdEx >= l {
   851  					return io.ErrUnexpectedEOF
   852  				}
   853  				b := dAtA[iNdEx]
   854  				iNdEx++
   855  				msglen |= int(b&0x7F) << shift
   856  				if b < 0x80 {
   857  					break
   858  				}
   859  			}
   860  			if msglen < 0 {
   861  				return ErrInvalidLengthTx
   862  			}
   863  			postIndex := iNdEx + msglen
   864  			if postIndex < 0 {
   865  				return ErrInvalidLengthTx
   866  			}
   867  			if postIndex > l {
   868  				return io.ErrUnexpectedEOF
   869  			}
   870  			if err := m.ConstantFee.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
   871  				return err
   872  			}
   873  			iNdEx = postIndex
   874  		default:
   875  			iNdEx = preIndex
   876  			skippy, err := skipTx(dAtA[iNdEx:])
   877  			if err != nil {
   878  				return err
   879  			}
   880  			if (skippy < 0) || (iNdEx+skippy) < 0 {
   881  				return ErrInvalidLengthTx
   882  			}
   883  			if (iNdEx + skippy) > l {
   884  				return io.ErrUnexpectedEOF
   885  			}
   886  			iNdEx += skippy
   887  		}
   888  	}
   889  
   890  	if iNdEx > l {
   891  		return io.ErrUnexpectedEOF
   892  	}
   893  	return nil
   894  }
   895  func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error {
   896  	l := len(dAtA)
   897  	iNdEx := 0
   898  	for iNdEx < l {
   899  		preIndex := iNdEx
   900  		var wire uint64
   901  		for shift := uint(0); ; shift += 7 {
   902  			if shift >= 64 {
   903  				return ErrIntOverflowTx
   904  			}
   905  			if iNdEx >= l {
   906  				return io.ErrUnexpectedEOF
   907  			}
   908  			b := dAtA[iNdEx]
   909  			iNdEx++
   910  			wire |= uint64(b&0x7F) << shift
   911  			if b < 0x80 {
   912  				break
   913  			}
   914  		}
   915  		fieldNum := int32(wire >> 3)
   916  		wireType := int(wire & 0x7)
   917  		if wireType == 4 {
   918  			return fmt.Errorf("proto: MsgUpdateParamsResponse: wiretype end group for non-group")
   919  		}
   920  		if fieldNum <= 0 {
   921  			return fmt.Errorf("proto: MsgUpdateParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
   922  		}
   923  		switch fieldNum {
   924  		default:
   925  			iNdEx = preIndex
   926  			skippy, err := skipTx(dAtA[iNdEx:])
   927  			if err != nil {
   928  				return err
   929  			}
   930  			if (skippy < 0) || (iNdEx+skippy) < 0 {
   931  				return ErrInvalidLengthTx
   932  			}
   933  			if (iNdEx + skippy) > l {
   934  				return io.ErrUnexpectedEOF
   935  			}
   936  			iNdEx += skippy
   937  		}
   938  	}
   939  
   940  	if iNdEx > l {
   941  		return io.ErrUnexpectedEOF
   942  	}
   943  	return nil
   944  }
   945  func skipTx(dAtA []byte) (n int, err error) {
   946  	l := len(dAtA)
   947  	iNdEx := 0
   948  	depth := 0
   949  	for iNdEx < l {
   950  		var wire uint64
   951  		for shift := uint(0); ; shift += 7 {
   952  			if shift >= 64 {
   953  				return 0, ErrIntOverflowTx
   954  			}
   955  			if iNdEx >= l {
   956  				return 0, io.ErrUnexpectedEOF
   957  			}
   958  			b := dAtA[iNdEx]
   959  			iNdEx++
   960  			wire |= (uint64(b) & 0x7F) << shift
   961  			if b < 0x80 {
   962  				break
   963  			}
   964  		}
   965  		wireType := int(wire & 0x7)
   966  		switch wireType {
   967  		case 0:
   968  			for shift := uint(0); ; shift += 7 {
   969  				if shift >= 64 {
   970  					return 0, ErrIntOverflowTx
   971  				}
   972  				if iNdEx >= l {
   973  					return 0, io.ErrUnexpectedEOF
   974  				}
   975  				iNdEx++
   976  				if dAtA[iNdEx-1] < 0x80 {
   977  					break
   978  				}
   979  			}
   980  		case 1:
   981  			iNdEx += 8
   982  		case 2:
   983  			var length int
   984  			for shift := uint(0); ; shift += 7 {
   985  				if shift >= 64 {
   986  					return 0, ErrIntOverflowTx
   987  				}
   988  				if iNdEx >= l {
   989  					return 0, io.ErrUnexpectedEOF
   990  				}
   991  				b := dAtA[iNdEx]
   992  				iNdEx++
   993  				length |= (int(b) & 0x7F) << shift
   994  				if b < 0x80 {
   995  					break
   996  				}
   997  			}
   998  			if length < 0 {
   999  				return 0, ErrInvalidLengthTx
  1000  			}
  1001  			iNdEx += length
  1002  		case 3:
  1003  			depth++
  1004  		case 4:
  1005  			if depth == 0 {
  1006  				return 0, ErrUnexpectedEndOfGroupTx
  1007  			}
  1008  			depth--
  1009  		case 5:
  1010  			iNdEx += 4
  1011  		default:
  1012  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  1013  		}
  1014  		if iNdEx < 0 {
  1015  			return 0, ErrInvalidLengthTx
  1016  		}
  1017  		if depth == 0 {
  1018  			return iNdEx, nil
  1019  		}
  1020  	}
  1021  	return 0, io.ErrUnexpectedEOF
  1022  }
  1023  
  1024  var (
  1025  	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
  1026  	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
  1027  	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
  1028  )