github.com/fibonacci-chain/fbc@v0.0.0-20231124064014-c7636198c1e9/x/wasm/types/ibc.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: cosmwasm/wasm/v1/ibc.proto
     3  
     4  package types
     5  
     6  import (
     7  	fmt "fmt"
     8  	io "io"
     9  	math "math"
    10  	math_bits "math/bits"
    11  
    12  	_ "github.com/gogo/protobuf/gogoproto"
    13  	proto "github.com/gogo/protobuf/proto"
    14  )
    15  
    16  // Reference imports to suppress errors if they are not otherwise used.
    17  var _ = proto.Marshal
    18  
    19  var (
    20  	_ = fmt.Errorf
    21  	_ = math.Inf
    22  )
    23  
    24  // This is a compile-time assertion to ensure that this generated file
    25  // is compatible with the proto package it is being compiled against.
    26  // A compilation error at this line likely means your copy of the
    27  // proto package needs to be updated.
    28  const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
    29  
    30  // MsgIBCSend
    31  type MsgIBCSend struct {
    32  	// the channel by which the packet will be sent
    33  	Channel string `protobuf:"bytes,2,opt,name=channel,proto3" json:"channel,omitempty" yaml:"source_channel"`
    34  	// Timeout height relative to the current block height.
    35  	// The timeout is disabled when set to 0.
    36  	TimeoutHeight uint64 `protobuf:"varint,4,opt,name=timeout_height,json=timeoutHeight,proto3" json:"timeout_height,omitempty" yaml:"timeout_height"`
    37  	// Timeout timestamp (in nanoseconds) relative to the current block timestamp.
    38  	// The timeout is disabled when set to 0.
    39  	TimeoutTimestamp uint64 `protobuf:"varint,5,opt,name=timeout_timestamp,json=timeoutTimestamp,proto3" json:"timeout_timestamp,omitempty" yaml:"timeout_timestamp"`
    40  	// Data is the payload to transfer. We must not make assumption what format or
    41  	// content is in here.
    42  	Data []byte `protobuf:"bytes,6,opt,name=data,proto3" json:"data,omitempty"`
    43  }
    44  
    45  func (m *MsgIBCSend) Reset()         { *m = MsgIBCSend{} }
    46  func (m *MsgIBCSend) String() string { return proto.CompactTextString(m) }
    47  func (*MsgIBCSend) ProtoMessage()    {}
    48  func (*MsgIBCSend) Descriptor() ([]byte, []int) {
    49  	return fileDescriptor_af0d1c43ea53c4b9, []int{0}
    50  }
    51  
    52  func (m *MsgIBCSend) XXX_Unmarshal(b []byte) error {
    53  	return m.Unmarshal(b)
    54  }
    55  
    56  func (m *MsgIBCSend) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    57  	if deterministic {
    58  		return xxx_messageInfo_MsgIBCSend.Marshal(b, m, deterministic)
    59  	} else {
    60  		b = b[:cap(b)]
    61  		n, err := m.MarshalToSizedBuffer(b)
    62  		if err != nil {
    63  			return nil, err
    64  		}
    65  		return b[:n], nil
    66  	}
    67  }
    68  
    69  func (m *MsgIBCSend) XXX_Merge(src proto.Message) {
    70  	xxx_messageInfo_MsgIBCSend.Merge(m, src)
    71  }
    72  
    73  func (m *MsgIBCSend) XXX_Size() int {
    74  	return m.Size()
    75  }
    76  
    77  func (m *MsgIBCSend) XXX_DiscardUnknown() {
    78  	xxx_messageInfo_MsgIBCSend.DiscardUnknown(m)
    79  }
    80  
    81  var xxx_messageInfo_MsgIBCSend proto.InternalMessageInfo
    82  
    83  // MsgIBCCloseChannel port and channel need to be owned by the contract
    84  type MsgIBCCloseChannel struct {
    85  	Channel string `protobuf:"bytes,2,opt,name=channel,proto3" json:"channel,omitempty" yaml:"source_channel"`
    86  }
    87  
    88  func (m *MsgIBCCloseChannel) Reset()         { *m = MsgIBCCloseChannel{} }
    89  func (m *MsgIBCCloseChannel) String() string { return proto.CompactTextString(m) }
    90  func (*MsgIBCCloseChannel) ProtoMessage()    {}
    91  func (*MsgIBCCloseChannel) Descriptor() ([]byte, []int) {
    92  	return fileDescriptor_af0d1c43ea53c4b9, []int{1}
    93  }
    94  
    95  func (m *MsgIBCCloseChannel) XXX_Unmarshal(b []byte) error {
    96  	return m.Unmarshal(b)
    97  }
    98  
    99  func (m *MsgIBCCloseChannel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   100  	if deterministic {
   101  		return xxx_messageInfo_MsgIBCCloseChannel.Marshal(b, m, deterministic)
   102  	} else {
   103  		b = b[:cap(b)]
   104  		n, err := m.MarshalToSizedBuffer(b)
   105  		if err != nil {
   106  			return nil, err
   107  		}
   108  		return b[:n], nil
   109  	}
   110  }
   111  
   112  func (m *MsgIBCCloseChannel) XXX_Merge(src proto.Message) {
   113  	xxx_messageInfo_MsgIBCCloseChannel.Merge(m, src)
   114  }
   115  
   116  func (m *MsgIBCCloseChannel) XXX_Size() int {
   117  	return m.Size()
   118  }
   119  
   120  func (m *MsgIBCCloseChannel) XXX_DiscardUnknown() {
   121  	xxx_messageInfo_MsgIBCCloseChannel.DiscardUnknown(m)
   122  }
   123  
   124  var xxx_messageInfo_MsgIBCCloseChannel proto.InternalMessageInfo
   125  
   126  func init() {
   127  	proto.RegisterType((*MsgIBCSend)(nil), "cosmwasm.wasm.v1.MsgIBCSend")
   128  	proto.RegisterType((*MsgIBCCloseChannel)(nil), "cosmwasm.wasm.v1.MsgIBCCloseChannel")
   129  }
   130  
   131  func init() { proto.RegisterFile("cosmwasm/wasm/v1/ibc.proto", fileDescriptor_af0d1c43ea53c4b9) }
   132  
   133  var fileDescriptor_af0d1c43ea53c4b9 = []byte{
   134  	// 299 bytes of a gzipped FileDescriptorProto
   135  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4a, 0xce, 0x2f, 0xce,
   136  	0x2d, 0x4f, 0x2c, 0xce, 0xd5, 0x07, 0x13, 0x65, 0x86, 0xfa, 0x99, 0x49, 0xc9, 0x7a, 0x05, 0x45,
   137  	0xf9, 0x25, 0xf9, 0x42, 0x02, 0x30, 0x39, 0x3d, 0x30, 0x51, 0x66, 0x28, 0x25, 0x92, 0x9e, 0x9f,
   138  	0x9e, 0x0f, 0x96, 0xd4, 0x07, 0xb1, 0x20, 0xea, 0x94, 0x1e, 0x31, 0x72, 0x71, 0xf9, 0x16, 0xa7,
   139  	0x7b, 0x3a, 0x39, 0x07, 0xa7, 0xe6, 0xa5, 0x08, 0x19, 0x73, 0xb1, 0x27, 0x67, 0x24, 0xe6, 0xe5,
   140  	0xa5, 0xe6, 0x48, 0x30, 0x29, 0x30, 0x6a, 0x70, 0x3a, 0x49, 0x7e, 0xba, 0x27, 0x2f, 0x5a, 0x99,
   141  	0x98, 0x9b, 0x63, 0xa5, 0x54, 0x9c, 0x5f, 0x5a, 0x94, 0x9c, 0x1a, 0x0f, 0x95, 0x57, 0x0a, 0x82,
   142  	0xa9, 0x14, 0x72, 0xe0, 0xe2, 0x2b, 0xc9, 0xcc, 0x4d, 0xcd, 0x2f, 0x2d, 0x89, 0xcf, 0x48, 0xcd,
   143  	0x4c, 0xcf, 0x28, 0x91, 0x60, 0x51, 0x60, 0xd4, 0x60, 0x41, 0xd6, 0x8b, 0x2a, 0xaf, 0x14, 0xc4,
   144  	0x0b, 0x15, 0xf0, 0x00, 0xf3, 0x85, 0x3c, 0xb9, 0x04, 0x61, 0x2a, 0x40, 0x74, 0x71, 0x49, 0x62,
   145  	0x6e, 0x81, 0x04, 0x2b, 0xd8, 0x10, 0x99, 0x4f, 0xf7, 0xe4, 0x25, 0x50, 0x0d, 0x81, 0x2b, 0x51,
   146  	0x0a, 0x12, 0x80, 0x8a, 0x85, 0xc0, 0x84, 0x84, 0x84, 0xb8, 0x58, 0x52, 0x12, 0x4b, 0x12, 0x25,
   147  	0xd8, 0x14, 0x18, 0x35, 0x78, 0x82, 0xc0, 0x6c, 0x25, 0x4f, 0x2e, 0x21, 0x88, 0x1f, 0x9d, 0x73,
   148  	0xf2, 0x8b, 0x53, 0x9d, 0xa1, 0xce, 0x26, 0xc7, 0xaf, 0x4e, 0x2e, 0x27, 0x1e, 0xca, 0x31, 0x9c,
   149  	0x78, 0x24, 0xc7, 0x78, 0xe1, 0x91, 0x1c, 0xe3, 0x83, 0x47, 0x72, 0x8c, 0x13, 0x1e, 0xcb, 0x31,
   150  	0x5c, 0x78, 0x2c, 0xc7, 0x70, 0xe3, 0xb1, 0x1c, 0x43, 0x94, 0x5a, 0x7a, 0x66, 0x49, 0x46, 0x69,
   151  	0x92, 0x5e, 0x72, 0x7e, 0xae, 0xbe, 0x73, 0x7e, 0x71, 0x6e, 0x38, 0x2c, 0x72, 0x52, 0xf4, 0x2b,
   152  	0x20, 0x91, 0x54, 0x52, 0x59, 0x90, 0x5a, 0x9c, 0xc4, 0x06, 0x0e, 0x7c, 0x63, 0x40, 0x00, 0x00,
   153  	0x00, 0xff, 0xff, 0x4d, 0x60, 0x95, 0x31, 0xc2, 0x01, 0x00, 0x00,
   154  }
   155  
   156  func (m *MsgIBCSend) Marshal() (dAtA []byte, err error) {
   157  	size := m.Size()
   158  	dAtA = make([]byte, size)
   159  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   160  	if err != nil {
   161  		return nil, err
   162  	}
   163  	return dAtA[:n], nil
   164  }
   165  
   166  func (m *MsgIBCSend) MarshalTo(dAtA []byte) (int, error) {
   167  	size := m.Size()
   168  	return m.MarshalToSizedBuffer(dAtA[:size])
   169  }
   170  
   171  func (m *MsgIBCSend) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   172  	i := len(dAtA)
   173  	_ = i
   174  	var l int
   175  	_ = l
   176  	if len(m.Data) > 0 {
   177  		i -= len(m.Data)
   178  		copy(dAtA[i:], m.Data)
   179  		i = encodeVarintIbc(dAtA, i, uint64(len(m.Data)))
   180  		i--
   181  		dAtA[i] = 0x32
   182  	}
   183  	if m.TimeoutTimestamp != 0 {
   184  		i = encodeVarintIbc(dAtA, i, uint64(m.TimeoutTimestamp))
   185  		i--
   186  		dAtA[i] = 0x28
   187  	}
   188  	if m.TimeoutHeight != 0 {
   189  		i = encodeVarintIbc(dAtA, i, uint64(m.TimeoutHeight))
   190  		i--
   191  		dAtA[i] = 0x20
   192  	}
   193  	if len(m.Channel) > 0 {
   194  		i -= len(m.Channel)
   195  		copy(dAtA[i:], m.Channel)
   196  		i = encodeVarintIbc(dAtA, i, uint64(len(m.Channel)))
   197  		i--
   198  		dAtA[i] = 0x12
   199  	}
   200  	return len(dAtA) - i, nil
   201  }
   202  
   203  func (m *MsgIBCCloseChannel) Marshal() (dAtA []byte, err error) {
   204  	size := m.Size()
   205  	dAtA = make([]byte, size)
   206  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   207  	if err != nil {
   208  		return nil, err
   209  	}
   210  	return dAtA[:n], nil
   211  }
   212  
   213  func (m *MsgIBCCloseChannel) MarshalTo(dAtA []byte) (int, error) {
   214  	size := m.Size()
   215  	return m.MarshalToSizedBuffer(dAtA[:size])
   216  }
   217  
   218  func (m *MsgIBCCloseChannel) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   219  	i := len(dAtA)
   220  	_ = i
   221  	var l int
   222  	_ = l
   223  	if len(m.Channel) > 0 {
   224  		i -= len(m.Channel)
   225  		copy(dAtA[i:], m.Channel)
   226  		i = encodeVarintIbc(dAtA, i, uint64(len(m.Channel)))
   227  		i--
   228  		dAtA[i] = 0x12
   229  	}
   230  	return len(dAtA) - i, nil
   231  }
   232  
   233  func encodeVarintIbc(dAtA []byte, offset int, v uint64) int {
   234  	offset -= sovIbc(v)
   235  	base := offset
   236  	for v >= 1<<7 {
   237  		dAtA[offset] = uint8(v&0x7f | 0x80)
   238  		v >>= 7
   239  		offset++
   240  	}
   241  	dAtA[offset] = uint8(v)
   242  	return base
   243  }
   244  
   245  func (m *MsgIBCSend) Size() (n int) {
   246  	if m == nil {
   247  		return 0
   248  	}
   249  	var l int
   250  	_ = l
   251  	l = len(m.Channel)
   252  	if l > 0 {
   253  		n += 1 + l + sovIbc(uint64(l))
   254  	}
   255  	if m.TimeoutHeight != 0 {
   256  		n += 1 + sovIbc(uint64(m.TimeoutHeight))
   257  	}
   258  	if m.TimeoutTimestamp != 0 {
   259  		n += 1 + sovIbc(uint64(m.TimeoutTimestamp))
   260  	}
   261  	l = len(m.Data)
   262  	if l > 0 {
   263  		n += 1 + l + sovIbc(uint64(l))
   264  	}
   265  	return n
   266  }
   267  
   268  func (m *MsgIBCCloseChannel) Size() (n int) {
   269  	if m == nil {
   270  		return 0
   271  	}
   272  	var l int
   273  	_ = l
   274  	l = len(m.Channel)
   275  	if l > 0 {
   276  		n += 1 + l + sovIbc(uint64(l))
   277  	}
   278  	return n
   279  }
   280  
   281  func sovIbc(x uint64) (n int) {
   282  	return (math_bits.Len64(x|1) + 6) / 7
   283  }
   284  
   285  func sozIbc(x uint64) (n int) {
   286  	return sovIbc(uint64((x << 1) ^ uint64((int64(x) >> 63))))
   287  }
   288  
   289  func (m *MsgIBCSend) Unmarshal(dAtA []byte) error {
   290  	l := len(dAtA)
   291  	iNdEx := 0
   292  	for iNdEx < l {
   293  		preIndex := iNdEx
   294  		var wire uint64
   295  		for shift := uint(0); ; shift += 7 {
   296  			if shift >= 64 {
   297  				return ErrIntOverflowIbc
   298  			}
   299  			if iNdEx >= l {
   300  				return io.ErrUnexpectedEOF
   301  			}
   302  			b := dAtA[iNdEx]
   303  			iNdEx++
   304  			wire |= uint64(b&0x7F) << shift
   305  			if b < 0x80 {
   306  				break
   307  			}
   308  		}
   309  		fieldNum := int32(wire >> 3)
   310  		wireType := int(wire & 0x7)
   311  		if wireType == 4 {
   312  			return fmt.Errorf("proto: MsgIBCSend: wiretype end group for non-group")
   313  		}
   314  		if fieldNum <= 0 {
   315  			return fmt.Errorf("proto: MsgIBCSend: illegal tag %d (wire type %d)", fieldNum, wire)
   316  		}
   317  		switch fieldNum {
   318  		case 2:
   319  			if wireType != 2 {
   320  				return fmt.Errorf("proto: wrong wireType = %d for field Channel", wireType)
   321  			}
   322  			var stringLen uint64
   323  			for shift := uint(0); ; shift += 7 {
   324  				if shift >= 64 {
   325  					return ErrIntOverflowIbc
   326  				}
   327  				if iNdEx >= l {
   328  					return io.ErrUnexpectedEOF
   329  				}
   330  				b := dAtA[iNdEx]
   331  				iNdEx++
   332  				stringLen |= uint64(b&0x7F) << shift
   333  				if b < 0x80 {
   334  					break
   335  				}
   336  			}
   337  			intStringLen := int(stringLen)
   338  			if intStringLen < 0 {
   339  				return ErrInvalidLengthIbc
   340  			}
   341  			postIndex := iNdEx + intStringLen
   342  			if postIndex < 0 {
   343  				return ErrInvalidLengthIbc
   344  			}
   345  			if postIndex > l {
   346  				return io.ErrUnexpectedEOF
   347  			}
   348  			m.Channel = string(dAtA[iNdEx:postIndex])
   349  			iNdEx = postIndex
   350  		case 4:
   351  			if wireType != 0 {
   352  				return fmt.Errorf("proto: wrong wireType = %d for field TimeoutHeight", wireType)
   353  			}
   354  			m.TimeoutHeight = 0
   355  			for shift := uint(0); ; shift += 7 {
   356  				if shift >= 64 {
   357  					return ErrIntOverflowIbc
   358  				}
   359  				if iNdEx >= l {
   360  					return io.ErrUnexpectedEOF
   361  				}
   362  				b := dAtA[iNdEx]
   363  				iNdEx++
   364  				m.TimeoutHeight |= uint64(b&0x7F) << shift
   365  				if b < 0x80 {
   366  					break
   367  				}
   368  			}
   369  		case 5:
   370  			if wireType != 0 {
   371  				return fmt.Errorf("proto: wrong wireType = %d for field TimeoutTimestamp", wireType)
   372  			}
   373  			m.TimeoutTimestamp = 0
   374  			for shift := uint(0); ; shift += 7 {
   375  				if shift >= 64 {
   376  					return ErrIntOverflowIbc
   377  				}
   378  				if iNdEx >= l {
   379  					return io.ErrUnexpectedEOF
   380  				}
   381  				b := dAtA[iNdEx]
   382  				iNdEx++
   383  				m.TimeoutTimestamp |= uint64(b&0x7F) << shift
   384  				if b < 0x80 {
   385  					break
   386  				}
   387  			}
   388  		case 6:
   389  			if wireType != 2 {
   390  				return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
   391  			}
   392  			var byteLen int
   393  			for shift := uint(0); ; shift += 7 {
   394  				if shift >= 64 {
   395  					return ErrIntOverflowIbc
   396  				}
   397  				if iNdEx >= l {
   398  					return io.ErrUnexpectedEOF
   399  				}
   400  				b := dAtA[iNdEx]
   401  				iNdEx++
   402  				byteLen |= int(b&0x7F) << shift
   403  				if b < 0x80 {
   404  					break
   405  				}
   406  			}
   407  			if byteLen < 0 {
   408  				return ErrInvalidLengthIbc
   409  			}
   410  			postIndex := iNdEx + byteLen
   411  			if postIndex < 0 {
   412  				return ErrInvalidLengthIbc
   413  			}
   414  			if postIndex > l {
   415  				return io.ErrUnexpectedEOF
   416  			}
   417  			m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...)
   418  			if m.Data == nil {
   419  				m.Data = []byte{}
   420  			}
   421  			iNdEx = postIndex
   422  		default:
   423  			iNdEx = preIndex
   424  			skippy, err := skipIbc(dAtA[iNdEx:])
   425  			if err != nil {
   426  				return err
   427  			}
   428  			if (skippy < 0) || (iNdEx+skippy) < 0 {
   429  				return ErrInvalidLengthIbc
   430  			}
   431  			if (iNdEx + skippy) > l {
   432  				return io.ErrUnexpectedEOF
   433  			}
   434  			iNdEx += skippy
   435  		}
   436  	}
   437  
   438  	if iNdEx > l {
   439  		return io.ErrUnexpectedEOF
   440  	}
   441  	return nil
   442  }
   443  
   444  func (m *MsgIBCCloseChannel) Unmarshal(dAtA []byte) error {
   445  	l := len(dAtA)
   446  	iNdEx := 0
   447  	for iNdEx < l {
   448  		preIndex := iNdEx
   449  		var wire uint64
   450  		for shift := uint(0); ; shift += 7 {
   451  			if shift >= 64 {
   452  				return ErrIntOverflowIbc
   453  			}
   454  			if iNdEx >= l {
   455  				return io.ErrUnexpectedEOF
   456  			}
   457  			b := dAtA[iNdEx]
   458  			iNdEx++
   459  			wire |= uint64(b&0x7F) << shift
   460  			if b < 0x80 {
   461  				break
   462  			}
   463  		}
   464  		fieldNum := int32(wire >> 3)
   465  		wireType := int(wire & 0x7)
   466  		if wireType == 4 {
   467  			return fmt.Errorf("proto: MsgIBCCloseChannel: wiretype end group for non-group")
   468  		}
   469  		if fieldNum <= 0 {
   470  			return fmt.Errorf("proto: MsgIBCCloseChannel: illegal tag %d (wire type %d)", fieldNum, wire)
   471  		}
   472  		switch fieldNum {
   473  		case 2:
   474  			if wireType != 2 {
   475  				return fmt.Errorf("proto: wrong wireType = %d for field Channel", wireType)
   476  			}
   477  			var stringLen uint64
   478  			for shift := uint(0); ; shift += 7 {
   479  				if shift >= 64 {
   480  					return ErrIntOverflowIbc
   481  				}
   482  				if iNdEx >= l {
   483  					return io.ErrUnexpectedEOF
   484  				}
   485  				b := dAtA[iNdEx]
   486  				iNdEx++
   487  				stringLen |= uint64(b&0x7F) << shift
   488  				if b < 0x80 {
   489  					break
   490  				}
   491  			}
   492  			intStringLen := int(stringLen)
   493  			if intStringLen < 0 {
   494  				return ErrInvalidLengthIbc
   495  			}
   496  			postIndex := iNdEx + intStringLen
   497  			if postIndex < 0 {
   498  				return ErrInvalidLengthIbc
   499  			}
   500  			if postIndex > l {
   501  				return io.ErrUnexpectedEOF
   502  			}
   503  			m.Channel = string(dAtA[iNdEx:postIndex])
   504  			iNdEx = postIndex
   505  		default:
   506  			iNdEx = preIndex
   507  			skippy, err := skipIbc(dAtA[iNdEx:])
   508  			if err != nil {
   509  				return err
   510  			}
   511  			if (skippy < 0) || (iNdEx+skippy) < 0 {
   512  				return ErrInvalidLengthIbc
   513  			}
   514  			if (iNdEx + skippy) > l {
   515  				return io.ErrUnexpectedEOF
   516  			}
   517  			iNdEx += skippy
   518  		}
   519  	}
   520  
   521  	if iNdEx > l {
   522  		return io.ErrUnexpectedEOF
   523  	}
   524  	return nil
   525  }
   526  
   527  func skipIbc(dAtA []byte) (n int, err error) {
   528  	l := len(dAtA)
   529  	iNdEx := 0
   530  	depth := 0
   531  	for iNdEx < l {
   532  		var wire uint64
   533  		for shift := uint(0); ; shift += 7 {
   534  			if shift >= 64 {
   535  				return 0, ErrIntOverflowIbc
   536  			}
   537  			if iNdEx >= l {
   538  				return 0, io.ErrUnexpectedEOF
   539  			}
   540  			b := dAtA[iNdEx]
   541  			iNdEx++
   542  			wire |= (uint64(b) & 0x7F) << shift
   543  			if b < 0x80 {
   544  				break
   545  			}
   546  		}
   547  		wireType := int(wire & 0x7)
   548  		switch wireType {
   549  		case 0:
   550  			for shift := uint(0); ; shift += 7 {
   551  				if shift >= 64 {
   552  					return 0, ErrIntOverflowIbc
   553  				}
   554  				if iNdEx >= l {
   555  					return 0, io.ErrUnexpectedEOF
   556  				}
   557  				iNdEx++
   558  				if dAtA[iNdEx-1] < 0x80 {
   559  					break
   560  				}
   561  			}
   562  		case 1:
   563  			iNdEx += 8
   564  		case 2:
   565  			var length int
   566  			for shift := uint(0); ; shift += 7 {
   567  				if shift >= 64 {
   568  					return 0, ErrIntOverflowIbc
   569  				}
   570  				if iNdEx >= l {
   571  					return 0, io.ErrUnexpectedEOF
   572  				}
   573  				b := dAtA[iNdEx]
   574  				iNdEx++
   575  				length |= (int(b) & 0x7F) << shift
   576  				if b < 0x80 {
   577  					break
   578  				}
   579  			}
   580  			if length < 0 {
   581  				return 0, ErrInvalidLengthIbc
   582  			}
   583  			iNdEx += length
   584  		case 3:
   585  			depth++
   586  		case 4:
   587  			if depth == 0 {
   588  				return 0, ErrUnexpectedEndOfGroupIbc
   589  			}
   590  			depth--
   591  		case 5:
   592  			iNdEx += 4
   593  		default:
   594  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
   595  		}
   596  		if iNdEx < 0 {
   597  			return 0, ErrInvalidLengthIbc
   598  		}
   599  		if depth == 0 {
   600  			return iNdEx, nil
   601  		}
   602  	}
   603  	return 0, io.ErrUnexpectedEOF
   604  }
   605  
   606  var (
   607  	ErrInvalidLengthIbc        = fmt.Errorf("proto: negative length found during unmarshaling")
   608  	ErrIntOverflowIbc          = fmt.Errorf("proto: integer overflow")
   609  	ErrUnexpectedEndOfGroupIbc = fmt.Errorf("proto: unexpected end of group")
   610  )