github.com/InjectiveLabs/sdk-go@v1.53.0/chain/tokenfactory/types/gov.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: injective/tokenfactory/v1beta1/gov.proto
     3  
     4  package types
     5  
     6  import (
     7  	fmt "fmt"
     8  	types "github.com/cosmos/cosmos-sdk/x/bank/types"
     9  	_ "github.com/cosmos/gogoproto/gogoproto"
    10  	proto "github.com/cosmos/gogoproto/proto"
    11  	io "io"
    12  	math "math"
    13  	math_bits "math/bits"
    14  )
    15  
    16  // Reference imports to suppress errors if they are not otherwise used.
    17  var _ = proto.Marshal
    18  var _ = fmt.Errorf
    19  var _ = math.Inf
    20  
    21  // This is a compile-time assertion to ensure that this generated file
    22  // is compatible with the proto package it is being compiled against.
    23  // A compilation error at this line likely means your copy of the
    24  // proto package needs to be updated.
    25  const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
    26  
    27  type UpdateDenomsMetadataProposal struct {
    28  	Title       string           `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
    29  	Description string           `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
    30  	Metadatas   []types.Metadata `protobuf:"bytes,3,rep,name=metadatas,proto3" json:"metadatas"`
    31  	Deposit     string           `protobuf:"bytes,4,opt,name=deposit,proto3" json:"deposit,omitempty" yaml:"deposit"`
    32  }
    33  
    34  func (m *UpdateDenomsMetadataProposal) Reset()         { *m = UpdateDenomsMetadataProposal{} }
    35  func (m *UpdateDenomsMetadataProposal) String() string { return proto.CompactTextString(m) }
    36  func (*UpdateDenomsMetadataProposal) ProtoMessage()    {}
    37  func (*UpdateDenomsMetadataProposal) Descriptor() ([]byte, []int) {
    38  	return fileDescriptor_2c4dd8ce2ae85492, []int{0}
    39  }
    40  func (m *UpdateDenomsMetadataProposal) XXX_Unmarshal(b []byte) error {
    41  	return m.Unmarshal(b)
    42  }
    43  func (m *UpdateDenomsMetadataProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    44  	if deterministic {
    45  		return xxx_messageInfo_UpdateDenomsMetadataProposal.Marshal(b, m, deterministic)
    46  	} else {
    47  		b = b[:cap(b)]
    48  		n, err := m.MarshalToSizedBuffer(b)
    49  		if err != nil {
    50  			return nil, err
    51  		}
    52  		return b[:n], nil
    53  	}
    54  }
    55  func (m *UpdateDenomsMetadataProposal) XXX_Merge(src proto.Message) {
    56  	xxx_messageInfo_UpdateDenomsMetadataProposal.Merge(m, src)
    57  }
    58  func (m *UpdateDenomsMetadataProposal) XXX_Size() int {
    59  	return m.Size()
    60  }
    61  func (m *UpdateDenomsMetadataProposal) XXX_DiscardUnknown() {
    62  	xxx_messageInfo_UpdateDenomsMetadataProposal.DiscardUnknown(m)
    63  }
    64  
    65  var xxx_messageInfo_UpdateDenomsMetadataProposal proto.InternalMessageInfo
    66  
    67  func init() {
    68  	proto.RegisterType((*UpdateDenomsMetadataProposal)(nil), "injective.tokenfactory.v1beta1.UpdateDenomsMetadataProposal")
    69  }
    70  
    71  func init() {
    72  	proto.RegisterFile("injective/tokenfactory/v1beta1/gov.proto", fileDescriptor_2c4dd8ce2ae85492)
    73  }
    74  
    75  var fileDescriptor_2c4dd8ce2ae85492 = []byte{
    76  	// 332 bytes of a gzipped FileDescriptorProto
    77  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0x91, 0xc1, 0x4e, 0xf2, 0x40,
    78  	0x14, 0x85, 0xdb, 0x1f, 0x7e, 0x0d, 0x25, 0x71, 0xd1, 0xb0, 0x68, 0x88, 0x0e, 0x84, 0x15, 0x0b,
    79  	0x9d, 0x09, 0xba, 0x63, 0x27, 0x71, 0x63, 0xa2, 0x89, 0x69, 0xe2, 0xc6, 0xdd, 0xb4, 0xbd, 0x96,
    80  	0x91, 0xb6, 0x77, 0xd2, 0xb9, 0x90, 0xf0, 0x06, 0x2e, 0x7d, 0x04, 0x1f, 0x87, 0x8d, 0x09, 0x4b,
    81  	0x57, 0xc4, 0xc0, 0x1b, 0xf8, 0x04, 0x86, 0xb6, 0x20, 0xee, 0x7a, 0x7a, 0xbe, 0x7b, 0xcf, 0xcd,
    82  	0x19, 0xa7, 0xaf, 0xb2, 0x17, 0x08, 0x49, 0xcd, 0x40, 0x10, 0x4e, 0x20, 0x7b, 0x96, 0x21, 0x61,
    83  	0x3e, 0x17, 0xb3, 0x41, 0x00, 0x24, 0x07, 0x22, 0xc6, 0x19, 0xd7, 0x39, 0x12, 0xba, 0x6c, 0x4f,
    84  	0xf2, 0x43, 0x92, 0x57, 0x64, 0xbb, 0x15, 0x63, 0x8c, 0x05, 0x2a, 0xb6, 0x5f, 0xe5, 0x54, 0x9b,
    85  	0x85, 0x68, 0x52, 0x34, 0x22, 0x90, 0xd9, 0x64, 0xbf, 0x74, 0x2b, 0x4a, 0xbf, 0xf7, 0x61, 0x3b,
    86  	0xa7, 0x8f, 0x3a, 0x92, 0x04, 0x37, 0x90, 0x61, 0x6a, 0xee, 0x81, 0x64, 0x24, 0x49, 0x3e, 0xe4,
    87  	0xa8, 0xd1, 0xc8, 0xc4, 0x6d, 0x39, 0xff, 0x49, 0x51, 0x02, 0x9e, 0xdd, 0xb5, 0xfb, 0x0d, 0xbf,
    88  	0x14, 0x6e, 0xd7, 0x69, 0x46, 0x60, 0xc2, 0x5c, 0x69, 0x52, 0x98, 0x79, 0xff, 0x0a, 0xef, 0xf0,
    89  	0x97, 0x7b, 0xed, 0x34, 0xd2, 0x6a, 0x97, 0xf1, 0x6a, 0xdd, 0x5a, 0xbf, 0x79, 0x79, 0xc6, 0xcb,
    90  	0x63, 0x78, 0x91, 0x5f, 0x1d, 0xc3, 0x77, 0x89, 0xa3, 0xfa, 0x62, 0xd5, 0xb1, 0xfc, 0xdf, 0x29,
    91  	0xf7, 0xdc, 0x39, 0x8e, 0x40, 0xa3, 0x51, 0xe4, 0xd5, 0xb7, 0x01, 0x23, 0xf7, 0x7b, 0xd5, 0x39,
    92  	0x99, 0xcb, 0x34, 0x19, 0xf6, 0x2a, 0xa3, 0xe7, 0xef, 0x90, 0x61, 0xfd, 0xf5, 0xbd, 0x63, 0x8d,
    93  	0x92, 0xc5, 0x9a, 0xd9, 0xcb, 0x35, 0xb3, 0xbf, 0xd6, 0xcc, 0x7e, 0xdb, 0x30, 0x6b, 0xb9, 0x61,
    94  	0xd6, 0xe7, 0x86, 0x59, 0x4f, 0x7e, 0xac, 0x68, 0x3c, 0x0d, 0x78, 0x88, 0xa9, 0xb8, 0xdd, 0x55,
    95  	0x79, 0x27, 0x03, 0x23, 0xf6, 0xc5, 0x5e, 0x84, 0x98, 0xc3, 0xa1, 0x1c, 0x4b, 0x95, 0x89, 0x14,
    96  	0xa3, 0x69, 0x02, 0xe6, 0xef, 0xfb, 0xd0, 0x5c, 0x83, 0x09, 0x8e, 0x8a, 0x12, 0xaf, 0x7e, 0x02,
    97  	0x00, 0x00, 0xff, 0xff, 0x31, 0xc4, 0xfd, 0x93, 0xc6, 0x01, 0x00, 0x00,
    98  }
    99  
   100  func (m *UpdateDenomsMetadataProposal) Marshal() (dAtA []byte, err error) {
   101  	size := m.Size()
   102  	dAtA = make([]byte, size)
   103  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   104  	if err != nil {
   105  		return nil, err
   106  	}
   107  	return dAtA[:n], nil
   108  }
   109  
   110  func (m *UpdateDenomsMetadataProposal) MarshalTo(dAtA []byte) (int, error) {
   111  	size := m.Size()
   112  	return m.MarshalToSizedBuffer(dAtA[:size])
   113  }
   114  
   115  func (m *UpdateDenomsMetadataProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   116  	i := len(dAtA)
   117  	_ = i
   118  	var l int
   119  	_ = l
   120  	if len(m.Deposit) > 0 {
   121  		i -= len(m.Deposit)
   122  		copy(dAtA[i:], m.Deposit)
   123  		i = encodeVarintGov(dAtA, i, uint64(len(m.Deposit)))
   124  		i--
   125  		dAtA[i] = 0x22
   126  	}
   127  	if len(m.Metadatas) > 0 {
   128  		for iNdEx := len(m.Metadatas) - 1; iNdEx >= 0; iNdEx-- {
   129  			{
   130  				size, err := m.Metadatas[iNdEx].MarshalToSizedBuffer(dAtA[:i])
   131  				if err != nil {
   132  					return 0, err
   133  				}
   134  				i -= size
   135  				i = encodeVarintGov(dAtA, i, uint64(size))
   136  			}
   137  			i--
   138  			dAtA[i] = 0x1a
   139  		}
   140  	}
   141  	if len(m.Description) > 0 {
   142  		i -= len(m.Description)
   143  		copy(dAtA[i:], m.Description)
   144  		i = encodeVarintGov(dAtA, i, uint64(len(m.Description)))
   145  		i--
   146  		dAtA[i] = 0x12
   147  	}
   148  	if len(m.Title) > 0 {
   149  		i -= len(m.Title)
   150  		copy(dAtA[i:], m.Title)
   151  		i = encodeVarintGov(dAtA, i, uint64(len(m.Title)))
   152  		i--
   153  		dAtA[i] = 0xa
   154  	}
   155  	return len(dAtA) - i, nil
   156  }
   157  
   158  func encodeVarintGov(dAtA []byte, offset int, v uint64) int {
   159  	offset -= sovGov(v)
   160  	base := offset
   161  	for v >= 1<<7 {
   162  		dAtA[offset] = uint8(v&0x7f | 0x80)
   163  		v >>= 7
   164  		offset++
   165  	}
   166  	dAtA[offset] = uint8(v)
   167  	return base
   168  }
   169  func (m *UpdateDenomsMetadataProposal) Size() (n int) {
   170  	if m == nil {
   171  		return 0
   172  	}
   173  	var l int
   174  	_ = l
   175  	l = len(m.Title)
   176  	if l > 0 {
   177  		n += 1 + l + sovGov(uint64(l))
   178  	}
   179  	l = len(m.Description)
   180  	if l > 0 {
   181  		n += 1 + l + sovGov(uint64(l))
   182  	}
   183  	if len(m.Metadatas) > 0 {
   184  		for _, e := range m.Metadatas {
   185  			l = e.Size()
   186  			n += 1 + l + sovGov(uint64(l))
   187  		}
   188  	}
   189  	l = len(m.Deposit)
   190  	if l > 0 {
   191  		n += 1 + l + sovGov(uint64(l))
   192  	}
   193  	return n
   194  }
   195  
   196  func sovGov(x uint64) (n int) {
   197  	return (math_bits.Len64(x|1) + 6) / 7
   198  }
   199  func sozGov(x uint64) (n int) {
   200  	return sovGov(uint64((x << 1) ^ uint64((int64(x) >> 63))))
   201  }
   202  func (m *UpdateDenomsMetadataProposal) Unmarshal(dAtA []byte) error {
   203  	l := len(dAtA)
   204  	iNdEx := 0
   205  	for iNdEx < l {
   206  		preIndex := iNdEx
   207  		var wire uint64
   208  		for shift := uint(0); ; shift += 7 {
   209  			if shift >= 64 {
   210  				return ErrIntOverflowGov
   211  			}
   212  			if iNdEx >= l {
   213  				return io.ErrUnexpectedEOF
   214  			}
   215  			b := dAtA[iNdEx]
   216  			iNdEx++
   217  			wire |= uint64(b&0x7F) << shift
   218  			if b < 0x80 {
   219  				break
   220  			}
   221  		}
   222  		fieldNum := int32(wire >> 3)
   223  		wireType := int(wire & 0x7)
   224  		if wireType == 4 {
   225  			return fmt.Errorf("proto: UpdateDenomsMetadataProposal: wiretype end group for non-group")
   226  		}
   227  		if fieldNum <= 0 {
   228  			return fmt.Errorf("proto: UpdateDenomsMetadataProposal: illegal tag %d (wire type %d)", fieldNum, wire)
   229  		}
   230  		switch fieldNum {
   231  		case 1:
   232  			if wireType != 2 {
   233  				return fmt.Errorf("proto: wrong wireType = %d for field Title", wireType)
   234  			}
   235  			var stringLen uint64
   236  			for shift := uint(0); ; shift += 7 {
   237  				if shift >= 64 {
   238  					return ErrIntOverflowGov
   239  				}
   240  				if iNdEx >= l {
   241  					return io.ErrUnexpectedEOF
   242  				}
   243  				b := dAtA[iNdEx]
   244  				iNdEx++
   245  				stringLen |= uint64(b&0x7F) << shift
   246  				if b < 0x80 {
   247  					break
   248  				}
   249  			}
   250  			intStringLen := int(stringLen)
   251  			if intStringLen < 0 {
   252  				return ErrInvalidLengthGov
   253  			}
   254  			postIndex := iNdEx + intStringLen
   255  			if postIndex < 0 {
   256  				return ErrInvalidLengthGov
   257  			}
   258  			if postIndex > l {
   259  				return io.ErrUnexpectedEOF
   260  			}
   261  			m.Title = string(dAtA[iNdEx:postIndex])
   262  			iNdEx = postIndex
   263  		case 2:
   264  			if wireType != 2 {
   265  				return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType)
   266  			}
   267  			var stringLen uint64
   268  			for shift := uint(0); ; shift += 7 {
   269  				if shift >= 64 {
   270  					return ErrIntOverflowGov
   271  				}
   272  				if iNdEx >= l {
   273  					return io.ErrUnexpectedEOF
   274  				}
   275  				b := dAtA[iNdEx]
   276  				iNdEx++
   277  				stringLen |= uint64(b&0x7F) << shift
   278  				if b < 0x80 {
   279  					break
   280  				}
   281  			}
   282  			intStringLen := int(stringLen)
   283  			if intStringLen < 0 {
   284  				return ErrInvalidLengthGov
   285  			}
   286  			postIndex := iNdEx + intStringLen
   287  			if postIndex < 0 {
   288  				return ErrInvalidLengthGov
   289  			}
   290  			if postIndex > l {
   291  				return io.ErrUnexpectedEOF
   292  			}
   293  			m.Description = string(dAtA[iNdEx:postIndex])
   294  			iNdEx = postIndex
   295  		case 3:
   296  			if wireType != 2 {
   297  				return fmt.Errorf("proto: wrong wireType = %d for field Metadatas", wireType)
   298  			}
   299  			var msglen int
   300  			for shift := uint(0); ; shift += 7 {
   301  				if shift >= 64 {
   302  					return ErrIntOverflowGov
   303  				}
   304  				if iNdEx >= l {
   305  					return io.ErrUnexpectedEOF
   306  				}
   307  				b := dAtA[iNdEx]
   308  				iNdEx++
   309  				msglen |= int(b&0x7F) << shift
   310  				if b < 0x80 {
   311  					break
   312  				}
   313  			}
   314  			if msglen < 0 {
   315  				return ErrInvalidLengthGov
   316  			}
   317  			postIndex := iNdEx + msglen
   318  			if postIndex < 0 {
   319  				return ErrInvalidLengthGov
   320  			}
   321  			if postIndex > l {
   322  				return io.ErrUnexpectedEOF
   323  			}
   324  			m.Metadatas = append(m.Metadatas, types.Metadata{})
   325  			if err := m.Metadatas[len(m.Metadatas)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
   326  				return err
   327  			}
   328  			iNdEx = postIndex
   329  		case 4:
   330  			if wireType != 2 {
   331  				return fmt.Errorf("proto: wrong wireType = %d for field Deposit", wireType)
   332  			}
   333  			var stringLen uint64
   334  			for shift := uint(0); ; shift += 7 {
   335  				if shift >= 64 {
   336  					return ErrIntOverflowGov
   337  				}
   338  				if iNdEx >= l {
   339  					return io.ErrUnexpectedEOF
   340  				}
   341  				b := dAtA[iNdEx]
   342  				iNdEx++
   343  				stringLen |= uint64(b&0x7F) << shift
   344  				if b < 0x80 {
   345  					break
   346  				}
   347  			}
   348  			intStringLen := int(stringLen)
   349  			if intStringLen < 0 {
   350  				return ErrInvalidLengthGov
   351  			}
   352  			postIndex := iNdEx + intStringLen
   353  			if postIndex < 0 {
   354  				return ErrInvalidLengthGov
   355  			}
   356  			if postIndex > l {
   357  				return io.ErrUnexpectedEOF
   358  			}
   359  			m.Deposit = string(dAtA[iNdEx:postIndex])
   360  			iNdEx = postIndex
   361  		default:
   362  			iNdEx = preIndex
   363  			skippy, err := skipGov(dAtA[iNdEx:])
   364  			if err != nil {
   365  				return err
   366  			}
   367  			if (skippy < 0) || (iNdEx+skippy) < 0 {
   368  				return ErrInvalidLengthGov
   369  			}
   370  			if (iNdEx + skippy) > l {
   371  				return io.ErrUnexpectedEOF
   372  			}
   373  			iNdEx += skippy
   374  		}
   375  	}
   376  
   377  	if iNdEx > l {
   378  		return io.ErrUnexpectedEOF
   379  	}
   380  	return nil
   381  }
   382  func skipGov(dAtA []byte) (n int, err error) {
   383  	l := len(dAtA)
   384  	iNdEx := 0
   385  	depth := 0
   386  	for iNdEx < l {
   387  		var wire uint64
   388  		for shift := uint(0); ; shift += 7 {
   389  			if shift >= 64 {
   390  				return 0, ErrIntOverflowGov
   391  			}
   392  			if iNdEx >= l {
   393  				return 0, io.ErrUnexpectedEOF
   394  			}
   395  			b := dAtA[iNdEx]
   396  			iNdEx++
   397  			wire |= (uint64(b) & 0x7F) << shift
   398  			if b < 0x80 {
   399  				break
   400  			}
   401  		}
   402  		wireType := int(wire & 0x7)
   403  		switch wireType {
   404  		case 0:
   405  			for shift := uint(0); ; shift += 7 {
   406  				if shift >= 64 {
   407  					return 0, ErrIntOverflowGov
   408  				}
   409  				if iNdEx >= l {
   410  					return 0, io.ErrUnexpectedEOF
   411  				}
   412  				iNdEx++
   413  				if dAtA[iNdEx-1] < 0x80 {
   414  					break
   415  				}
   416  			}
   417  		case 1:
   418  			iNdEx += 8
   419  		case 2:
   420  			var length int
   421  			for shift := uint(0); ; shift += 7 {
   422  				if shift >= 64 {
   423  					return 0, ErrIntOverflowGov
   424  				}
   425  				if iNdEx >= l {
   426  					return 0, io.ErrUnexpectedEOF
   427  				}
   428  				b := dAtA[iNdEx]
   429  				iNdEx++
   430  				length |= (int(b) & 0x7F) << shift
   431  				if b < 0x80 {
   432  					break
   433  				}
   434  			}
   435  			if length < 0 {
   436  				return 0, ErrInvalidLengthGov
   437  			}
   438  			iNdEx += length
   439  		case 3:
   440  			depth++
   441  		case 4:
   442  			if depth == 0 {
   443  				return 0, ErrUnexpectedEndOfGroupGov
   444  			}
   445  			depth--
   446  		case 5:
   447  			iNdEx += 4
   448  		default:
   449  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
   450  		}
   451  		if iNdEx < 0 {
   452  			return 0, ErrInvalidLengthGov
   453  		}
   454  		if depth == 0 {
   455  			return iNdEx, nil
   456  		}
   457  	}
   458  	return 0, io.ErrUnexpectedEOF
   459  }
   460  
   461  var (
   462  	ErrInvalidLengthGov        = fmt.Errorf("proto: negative length found during unmarshaling")
   463  	ErrIntOverflowGov          = fmt.Errorf("proto: integer overflow")
   464  	ErrUnexpectedEndOfGroupGov = fmt.Errorf("proto: unexpected end of group")
   465  )