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

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: cosmos/mint/v1beta1/tx.proto
     3  
     4  package types
     5  
     6  import (
     7  	context "context"
     8  	fmt "fmt"
     9  	_ "github.com/cosmos/cosmos-proto"
    10  	_ "github.com/cosmos/cosmos-sdk/types/msgservice"
    11  	_ "github.com/cosmos/cosmos-sdk/types/tx/amino"
    12  	_ "github.com/cosmos/gogoproto/gogoproto"
    13  	grpc1 "github.com/cosmos/gogoproto/grpc"
    14  	proto "github.com/cosmos/gogoproto/proto"
    15  	grpc "google.golang.org/grpc"
    16  	codes "google.golang.org/grpc/codes"
    17  	status "google.golang.org/grpc/status"
    18  	io "io"
    19  	math "math"
    20  	math_bits "math/bits"
    21  )
    22  
    23  // Reference imports to suppress errors if they are not otherwise used.
    24  var _ = proto.Marshal
    25  var _ = fmt.Errorf
    26  var _ = math.Inf
    27  
    28  // This is a compile-time assertion to ensure that this generated file
    29  // is compatible with the proto package it is being compiled against.
    30  // A compilation error at this line likely means your copy of the
    31  // proto package needs to be updated.
    32  const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
    33  
    34  // MsgUpdateParams is the Msg/UpdateParams request type.
    35  //
    36  // Since: cosmos-sdk 0.47
    37  type MsgUpdateParams struct {
    38  	// authority is the address that controls the module (defaults to x/gov unless overwritten).
    39  	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
    40  	// params defines the x/mint parameters to update.
    41  	//
    42  	// NOTE: All parameters must be supplied.
    43  	Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"`
    44  }
    45  
    46  func (m *MsgUpdateParams) Reset()         { *m = MsgUpdateParams{} }
    47  func (m *MsgUpdateParams) String() string { return proto.CompactTextString(m) }
    48  func (*MsgUpdateParams) ProtoMessage()    {}
    49  func (*MsgUpdateParams) Descriptor() ([]byte, []int) {
    50  	return fileDescriptor_a0d933a8bf5e188a, []int{0}
    51  }
    52  func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error {
    53  	return m.Unmarshal(b)
    54  }
    55  func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    56  	if deterministic {
    57  		return xxx_messageInfo_MsgUpdateParams.Marshal(b, m, deterministic)
    58  	} else {
    59  		b = b[:cap(b)]
    60  		n, err := m.MarshalToSizedBuffer(b)
    61  		if err != nil {
    62  			return nil, err
    63  		}
    64  		return b[:n], nil
    65  	}
    66  }
    67  func (m *MsgUpdateParams) XXX_Merge(src proto.Message) {
    68  	xxx_messageInfo_MsgUpdateParams.Merge(m, src)
    69  }
    70  func (m *MsgUpdateParams) XXX_Size() int {
    71  	return m.Size()
    72  }
    73  func (m *MsgUpdateParams) XXX_DiscardUnknown() {
    74  	xxx_messageInfo_MsgUpdateParams.DiscardUnknown(m)
    75  }
    76  
    77  var xxx_messageInfo_MsgUpdateParams proto.InternalMessageInfo
    78  
    79  func (m *MsgUpdateParams) GetAuthority() string {
    80  	if m != nil {
    81  		return m.Authority
    82  	}
    83  	return ""
    84  }
    85  
    86  func (m *MsgUpdateParams) GetParams() Params {
    87  	if m != nil {
    88  		return m.Params
    89  	}
    90  	return Params{}
    91  }
    92  
    93  // MsgUpdateParamsResponse defines the response structure for executing a
    94  // MsgUpdateParams message.
    95  //
    96  // Since: cosmos-sdk 0.47
    97  type MsgUpdateParamsResponse struct {
    98  }
    99  
   100  func (m *MsgUpdateParamsResponse) Reset()         { *m = MsgUpdateParamsResponse{} }
   101  func (m *MsgUpdateParamsResponse) String() string { return proto.CompactTextString(m) }
   102  func (*MsgUpdateParamsResponse) ProtoMessage()    {}
   103  func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int) {
   104  	return fileDescriptor_a0d933a8bf5e188a, []int{1}
   105  }
   106  func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error {
   107  	return m.Unmarshal(b)
   108  }
   109  func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   110  	if deterministic {
   111  		return xxx_messageInfo_MsgUpdateParamsResponse.Marshal(b, m, deterministic)
   112  	} else {
   113  		b = b[:cap(b)]
   114  		n, err := m.MarshalToSizedBuffer(b)
   115  		if err != nil {
   116  			return nil, err
   117  		}
   118  		return b[:n], nil
   119  	}
   120  }
   121  func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message) {
   122  	xxx_messageInfo_MsgUpdateParamsResponse.Merge(m, src)
   123  }
   124  func (m *MsgUpdateParamsResponse) XXX_Size() int {
   125  	return m.Size()
   126  }
   127  func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown() {
   128  	xxx_messageInfo_MsgUpdateParamsResponse.DiscardUnknown(m)
   129  }
   130  
   131  var xxx_messageInfo_MsgUpdateParamsResponse proto.InternalMessageInfo
   132  
   133  func init() {
   134  	proto.RegisterType((*MsgUpdateParams)(nil), "cosmos.mint.v1beta1.MsgUpdateParams")
   135  	proto.RegisterType((*MsgUpdateParamsResponse)(nil), "cosmos.mint.v1beta1.MsgUpdateParamsResponse")
   136  }
   137  
   138  func init() { proto.RegisterFile("cosmos/mint/v1beta1/tx.proto", fileDescriptor_a0d933a8bf5e188a) }
   139  
   140  var fileDescriptor_a0d933a8bf5e188a = []byte{
   141  	// 343 bytes of a gzipped FileDescriptorProto
   142  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x49, 0xce, 0x2f, 0xce,
   143  	0xcd, 0x2f, 0xd6, 0xcf, 0xcd, 0xcc, 0x2b, 0xd1, 0x2f, 0x33, 0x4c, 0x4a, 0x2d, 0x49, 0x34, 0xd4,
   144  	0x2f, 0xa9, 0xd0, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x86, 0xc8, 0xea, 0x81, 0x64, 0xf5,
   145  	0xa0, 0xb2, 0x52, 0xe2, 0x30, 0x2d, 0xc5, 0xe9, 0xfa, 0x65, 0x86, 0x20, 0x0a, 0xa2, 0x5a, 0x4a,
   146  	0x30, 0x31, 0x37, 0x33, 0x2f, 0x5f, 0x1f, 0x4c, 0x42, 0x85, 0xe4, 0xb0, 0x19, 0x0f, 0x36, 0x0d,
   147  	0x22, 0x2f, 0x92, 0x9e, 0x9f, 0x9e, 0x0f, 0x66, 0xea, 0x83, 0x58, 0x50, 0x51, 0x49, 0x88, 0xae,
   148  	0x78, 0x88, 0x04, 0xd4, 0x0d, 0x60, 0x8e, 0xd2, 0x7e, 0x46, 0x2e, 0x7e, 0xdf, 0xe2, 0xf4, 0xd0,
   149  	0x82, 0x94, 0xc4, 0x92, 0xd4, 0x80, 0xc4, 0xa2, 0xc4, 0xdc, 0x62, 0x21, 0x33, 0x2e, 0xce, 0xc4,
   150  	0xd2, 0x92, 0x8c, 0xfc, 0xa2, 0xcc, 0x92, 0x4a, 0x09, 0x46, 0x05, 0x46, 0x0d, 0x4e, 0x27, 0x89,
   151  	0x4b, 0x5b, 0x74, 0x45, 0xa0, 0x1a, 0x1d, 0x53, 0x52, 0x8a, 0x52, 0x8b, 0x8b, 0x83, 0x4b, 0x8a,
   152  	0x32, 0xf3, 0xd2, 0x83, 0x10, 0x4a, 0x85, 0xec, 0xb8, 0xd8, 0x0a, 0xc0, 0x26, 0x48, 0x30, 0x29,
   153  	0x30, 0x6a, 0x70, 0x1b, 0x49, 0xeb, 0x61, 0xf1, 0xae, 0x1e, 0xc4, 0x12, 0x27, 0xce, 0x13, 0xf7,
   154  	0xe4, 0x19, 0x56, 0x3c, 0xdf, 0xa0, 0xc5, 0x18, 0x04, 0xd5, 0x65, 0x65, 0xd2, 0xf4, 0x7c, 0x83,
   155  	0x16, 0xc2, 0xbc, 0xae, 0xe7, 0x1b, 0xb4, 0x14, 0x21, 0x26, 0xe8, 0x16, 0xa7, 0x64, 0xeb, 0x57,
   156  	0x40, 0x7c, 0x8d, 0xe6, 0x5a, 0x25, 0x49, 0x2e, 0x71, 0x34, 0xa1, 0xa0, 0xd4, 0xe2, 0x82, 0xfc,
   157  	0xbc, 0xe2, 0x54, 0xa3, 0x02, 0x2e, 0x66, 0xdf, 0xe2, 0x74, 0xa1, 0x24, 0x2e, 0x1e, 0x14, 0xff,
   158  	0xa9, 0x60, 0x75, 0x17, 0x9a, 0x21, 0x52, 0x3a, 0xc4, 0xa8, 0x82, 0x59, 0x25, 0xc5, 0xda, 0x00,
   159  	0xf2, 0x8a, 0x93, 0xf3, 0x89, 0x47, 0x72, 0x8c, 0x17, 0x1e, 0xc9, 0x31, 0x3e, 0x78, 0x24, 0xc7,
   160  	0x38, 0xe1, 0xb1, 0x1c, 0xc3, 0x85, 0xc7, 0x72, 0x0c, 0x37, 0x1e, 0xcb, 0x31, 0x44, 0x69, 0xa6,
   161  	0x67, 0x96, 0x64, 0x94, 0x26, 0xe9, 0x25, 0xe7, 0xe7, 0x42, 0x63, 0x40, 0x1f, 0xd3, 0x6f, 0x25,
   162  	0x95, 0x05, 0xa9, 0xc5, 0x49, 0x6c, 0xe0, 0xa8, 0x31, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0x13,
   163  	0x9e, 0x4f, 0xda, 0x4c, 0x02, 0x00, 0x00,
   164  }
   165  
   166  // Reference imports to suppress errors if they are not otherwise used.
   167  var _ context.Context
   168  var _ grpc.ClientConn
   169  
   170  // This is a compile-time assertion to ensure that this generated file
   171  // is compatible with the grpc package it is being compiled against.
   172  const _ = grpc.SupportPackageIsVersion4
   173  
   174  // MsgClient is the client API for Msg service.
   175  //
   176  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   177  type MsgClient interface {
   178  	// UpdateParams defines a governance operation for updating the x/mint module
   179  	// parameters. The authority is defaults to the x/gov module account.
   180  	//
   181  	// Since: cosmos-sdk 0.47
   182  	UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error)
   183  }
   184  
   185  type msgClient struct {
   186  	cc grpc1.ClientConn
   187  }
   188  
   189  func NewMsgClient(cc grpc1.ClientConn) MsgClient {
   190  	return &msgClient{cc}
   191  }
   192  
   193  func (c *msgClient) UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) {
   194  	out := new(MsgUpdateParamsResponse)
   195  	err := c.cc.Invoke(ctx, "/cosmos.mint.v1beta1.Msg/UpdateParams", in, out, opts...)
   196  	if err != nil {
   197  		return nil, err
   198  	}
   199  	return out, nil
   200  }
   201  
   202  // MsgServer is the server API for Msg service.
   203  type MsgServer interface {
   204  	// UpdateParams defines a governance operation for updating the x/mint module
   205  	// parameters. The authority is defaults to the x/gov module account.
   206  	//
   207  	// Since: cosmos-sdk 0.47
   208  	UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
   209  }
   210  
   211  // UnimplementedMsgServer can be embedded to have forward compatible implementations.
   212  type UnimplementedMsgServer struct {
   213  }
   214  
   215  func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error) {
   216  	return nil, status.Errorf(codes.Unimplemented, "method UpdateParams not implemented")
   217  }
   218  
   219  func RegisterMsgServer(s grpc1.Server, srv MsgServer) {
   220  	s.RegisterService(&_Msg_serviceDesc, srv)
   221  }
   222  
   223  func _Msg_UpdateParams_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   224  	in := new(MsgUpdateParams)
   225  	if err := dec(in); err != nil {
   226  		return nil, err
   227  	}
   228  	if interceptor == nil {
   229  		return srv.(MsgServer).UpdateParams(ctx, in)
   230  	}
   231  	info := &grpc.UnaryServerInfo{
   232  		Server:     srv,
   233  		FullMethod: "/cosmos.mint.v1beta1.Msg/UpdateParams",
   234  	}
   235  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   236  		return srv.(MsgServer).UpdateParams(ctx, req.(*MsgUpdateParams))
   237  	}
   238  	return interceptor(ctx, in, info, handler)
   239  }
   240  
   241  var _Msg_serviceDesc = grpc.ServiceDesc{
   242  	ServiceName: "cosmos.mint.v1beta1.Msg",
   243  	HandlerType: (*MsgServer)(nil),
   244  	Methods: []grpc.MethodDesc{
   245  		{
   246  			MethodName: "UpdateParams",
   247  			Handler:    _Msg_UpdateParams_Handler,
   248  		},
   249  	},
   250  	Streams:  []grpc.StreamDesc{},
   251  	Metadata: "cosmos/mint/v1beta1/tx.proto",
   252  }
   253  
   254  func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error) {
   255  	size := m.Size()
   256  	dAtA = make([]byte, size)
   257  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   258  	if err != nil {
   259  		return nil, err
   260  	}
   261  	return dAtA[:n], nil
   262  }
   263  
   264  func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error) {
   265  	size := m.Size()
   266  	return m.MarshalToSizedBuffer(dAtA[:size])
   267  }
   268  
   269  func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   270  	i := len(dAtA)
   271  	_ = i
   272  	var l int
   273  	_ = l
   274  	{
   275  		size, err := m.Params.MarshalToSizedBuffer(dAtA[:i])
   276  		if err != nil {
   277  			return 0, err
   278  		}
   279  		i -= size
   280  		i = encodeVarintTx(dAtA, i, uint64(size))
   281  	}
   282  	i--
   283  	dAtA[i] = 0x12
   284  	if len(m.Authority) > 0 {
   285  		i -= len(m.Authority)
   286  		copy(dAtA[i:], m.Authority)
   287  		i = encodeVarintTx(dAtA, i, uint64(len(m.Authority)))
   288  		i--
   289  		dAtA[i] = 0xa
   290  	}
   291  	return len(dAtA) - i, nil
   292  }
   293  
   294  func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error) {
   295  	size := m.Size()
   296  	dAtA = make([]byte, size)
   297  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   298  	if err != nil {
   299  		return nil, err
   300  	}
   301  	return dAtA[:n], nil
   302  }
   303  
   304  func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error) {
   305  	size := m.Size()
   306  	return m.MarshalToSizedBuffer(dAtA[:size])
   307  }
   308  
   309  func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   310  	i := len(dAtA)
   311  	_ = i
   312  	var l int
   313  	_ = l
   314  	return len(dAtA) - i, nil
   315  }
   316  
   317  func encodeVarintTx(dAtA []byte, offset int, v uint64) int {
   318  	offset -= sovTx(v)
   319  	base := offset
   320  	for v >= 1<<7 {
   321  		dAtA[offset] = uint8(v&0x7f | 0x80)
   322  		v >>= 7
   323  		offset++
   324  	}
   325  	dAtA[offset] = uint8(v)
   326  	return base
   327  }
   328  func (m *MsgUpdateParams) Size() (n int) {
   329  	if m == nil {
   330  		return 0
   331  	}
   332  	var l int
   333  	_ = l
   334  	l = len(m.Authority)
   335  	if l > 0 {
   336  		n += 1 + l + sovTx(uint64(l))
   337  	}
   338  	l = m.Params.Size()
   339  	n += 1 + l + sovTx(uint64(l))
   340  	return n
   341  }
   342  
   343  func (m *MsgUpdateParamsResponse) Size() (n int) {
   344  	if m == nil {
   345  		return 0
   346  	}
   347  	var l int
   348  	_ = l
   349  	return n
   350  }
   351  
   352  func sovTx(x uint64) (n int) {
   353  	return (math_bits.Len64(x|1) + 6) / 7
   354  }
   355  func sozTx(x uint64) (n int) {
   356  	return sovTx(uint64((x << 1) ^ uint64((int64(x) >> 63))))
   357  }
   358  func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error {
   359  	l := len(dAtA)
   360  	iNdEx := 0
   361  	for iNdEx < l {
   362  		preIndex := iNdEx
   363  		var wire uint64
   364  		for shift := uint(0); ; shift += 7 {
   365  			if shift >= 64 {
   366  				return ErrIntOverflowTx
   367  			}
   368  			if iNdEx >= l {
   369  				return io.ErrUnexpectedEOF
   370  			}
   371  			b := dAtA[iNdEx]
   372  			iNdEx++
   373  			wire |= uint64(b&0x7F) << shift
   374  			if b < 0x80 {
   375  				break
   376  			}
   377  		}
   378  		fieldNum := int32(wire >> 3)
   379  		wireType := int(wire & 0x7)
   380  		if wireType == 4 {
   381  			return fmt.Errorf("proto: MsgUpdateParams: wiretype end group for non-group")
   382  		}
   383  		if fieldNum <= 0 {
   384  			return fmt.Errorf("proto: MsgUpdateParams: illegal tag %d (wire type %d)", fieldNum, wire)
   385  		}
   386  		switch fieldNum {
   387  		case 1:
   388  			if wireType != 2 {
   389  				return fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType)
   390  			}
   391  			var stringLen uint64
   392  			for shift := uint(0); ; shift += 7 {
   393  				if shift >= 64 {
   394  					return ErrIntOverflowTx
   395  				}
   396  				if iNdEx >= l {
   397  					return io.ErrUnexpectedEOF
   398  				}
   399  				b := dAtA[iNdEx]
   400  				iNdEx++
   401  				stringLen |= uint64(b&0x7F) << shift
   402  				if b < 0x80 {
   403  					break
   404  				}
   405  			}
   406  			intStringLen := int(stringLen)
   407  			if intStringLen < 0 {
   408  				return ErrInvalidLengthTx
   409  			}
   410  			postIndex := iNdEx + intStringLen
   411  			if postIndex < 0 {
   412  				return ErrInvalidLengthTx
   413  			}
   414  			if postIndex > l {
   415  				return io.ErrUnexpectedEOF
   416  			}
   417  			m.Authority = string(dAtA[iNdEx:postIndex])
   418  			iNdEx = postIndex
   419  		case 2:
   420  			if wireType != 2 {
   421  				return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType)
   422  			}
   423  			var msglen int
   424  			for shift := uint(0); ; shift += 7 {
   425  				if shift >= 64 {
   426  					return ErrIntOverflowTx
   427  				}
   428  				if iNdEx >= l {
   429  					return io.ErrUnexpectedEOF
   430  				}
   431  				b := dAtA[iNdEx]
   432  				iNdEx++
   433  				msglen |= int(b&0x7F) << shift
   434  				if b < 0x80 {
   435  					break
   436  				}
   437  			}
   438  			if msglen < 0 {
   439  				return ErrInvalidLengthTx
   440  			}
   441  			postIndex := iNdEx + msglen
   442  			if postIndex < 0 {
   443  				return ErrInvalidLengthTx
   444  			}
   445  			if postIndex > l {
   446  				return io.ErrUnexpectedEOF
   447  			}
   448  			if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
   449  				return err
   450  			}
   451  			iNdEx = postIndex
   452  		default:
   453  			iNdEx = preIndex
   454  			skippy, err := skipTx(dAtA[iNdEx:])
   455  			if err != nil {
   456  				return err
   457  			}
   458  			if (skippy < 0) || (iNdEx+skippy) < 0 {
   459  				return ErrInvalidLengthTx
   460  			}
   461  			if (iNdEx + skippy) > l {
   462  				return io.ErrUnexpectedEOF
   463  			}
   464  			iNdEx += skippy
   465  		}
   466  	}
   467  
   468  	if iNdEx > l {
   469  		return io.ErrUnexpectedEOF
   470  	}
   471  	return nil
   472  }
   473  func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error {
   474  	l := len(dAtA)
   475  	iNdEx := 0
   476  	for iNdEx < l {
   477  		preIndex := iNdEx
   478  		var wire uint64
   479  		for shift := uint(0); ; shift += 7 {
   480  			if shift >= 64 {
   481  				return ErrIntOverflowTx
   482  			}
   483  			if iNdEx >= l {
   484  				return io.ErrUnexpectedEOF
   485  			}
   486  			b := dAtA[iNdEx]
   487  			iNdEx++
   488  			wire |= uint64(b&0x7F) << shift
   489  			if b < 0x80 {
   490  				break
   491  			}
   492  		}
   493  		fieldNum := int32(wire >> 3)
   494  		wireType := int(wire & 0x7)
   495  		if wireType == 4 {
   496  			return fmt.Errorf("proto: MsgUpdateParamsResponse: wiretype end group for non-group")
   497  		}
   498  		if fieldNum <= 0 {
   499  			return fmt.Errorf("proto: MsgUpdateParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
   500  		}
   501  		switch fieldNum {
   502  		default:
   503  			iNdEx = preIndex
   504  			skippy, err := skipTx(dAtA[iNdEx:])
   505  			if err != nil {
   506  				return err
   507  			}
   508  			if (skippy < 0) || (iNdEx+skippy) < 0 {
   509  				return ErrInvalidLengthTx
   510  			}
   511  			if (iNdEx + skippy) > l {
   512  				return io.ErrUnexpectedEOF
   513  			}
   514  			iNdEx += skippy
   515  		}
   516  	}
   517  
   518  	if iNdEx > l {
   519  		return io.ErrUnexpectedEOF
   520  	}
   521  	return nil
   522  }
   523  func skipTx(dAtA []byte) (n int, err error) {
   524  	l := len(dAtA)
   525  	iNdEx := 0
   526  	depth := 0
   527  	for iNdEx < l {
   528  		var wire uint64
   529  		for shift := uint(0); ; shift += 7 {
   530  			if shift >= 64 {
   531  				return 0, ErrIntOverflowTx
   532  			}
   533  			if iNdEx >= l {
   534  				return 0, io.ErrUnexpectedEOF
   535  			}
   536  			b := dAtA[iNdEx]
   537  			iNdEx++
   538  			wire |= (uint64(b) & 0x7F) << shift
   539  			if b < 0x80 {
   540  				break
   541  			}
   542  		}
   543  		wireType := int(wire & 0x7)
   544  		switch wireType {
   545  		case 0:
   546  			for shift := uint(0); ; shift += 7 {
   547  				if shift >= 64 {
   548  					return 0, ErrIntOverflowTx
   549  				}
   550  				if iNdEx >= l {
   551  					return 0, io.ErrUnexpectedEOF
   552  				}
   553  				iNdEx++
   554  				if dAtA[iNdEx-1] < 0x80 {
   555  					break
   556  				}
   557  			}
   558  		case 1:
   559  			iNdEx += 8
   560  		case 2:
   561  			var length int
   562  			for shift := uint(0); ; shift += 7 {
   563  				if shift >= 64 {
   564  					return 0, ErrIntOverflowTx
   565  				}
   566  				if iNdEx >= l {
   567  					return 0, io.ErrUnexpectedEOF
   568  				}
   569  				b := dAtA[iNdEx]
   570  				iNdEx++
   571  				length |= (int(b) & 0x7F) << shift
   572  				if b < 0x80 {
   573  					break
   574  				}
   575  			}
   576  			if length < 0 {
   577  				return 0, ErrInvalidLengthTx
   578  			}
   579  			iNdEx += length
   580  		case 3:
   581  			depth++
   582  		case 4:
   583  			if depth == 0 {
   584  				return 0, ErrUnexpectedEndOfGroupTx
   585  			}
   586  			depth--
   587  		case 5:
   588  			iNdEx += 4
   589  		default:
   590  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
   591  		}
   592  		if iNdEx < 0 {
   593  			return 0, ErrInvalidLengthTx
   594  		}
   595  		if depth == 0 {
   596  			return iNdEx, nil
   597  		}
   598  	}
   599  	return 0, io.ErrUnexpectedEOF
   600  }
   601  
   602  var (
   603  	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
   604  	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
   605  	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
   606  )