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

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: cosmos/mint/v1beta1/mint.proto
     3  
     4  package types
     5  
     6  import (
     7  	cosmossdk_io_math "cosmossdk.io/math"
     8  	fmt "fmt"
     9  	_ "github.com/cosmos/cosmos-proto"
    10  	_ "github.com/cosmos/cosmos-sdk/types/tx/amino"
    11  	_ "github.com/cosmos/gogoproto/gogoproto"
    12  	proto "github.com/cosmos/gogoproto/proto"
    13  	io "io"
    14  	math "math"
    15  	math_bits "math/bits"
    16  )
    17  
    18  // Reference imports to suppress errors if they are not otherwise used.
    19  var _ = proto.Marshal
    20  var _ = fmt.Errorf
    21  var _ = math.Inf
    22  
    23  // This is a compile-time assertion to ensure that this generated file
    24  // is compatible with the proto package it is being compiled against.
    25  // A compilation error at this line likely means your copy of the
    26  // proto package needs to be updated.
    27  const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
    28  
    29  // Minter represents the minting state.
    30  type Minter struct {
    31  	// current annual inflation rate
    32  	Inflation cosmossdk_io_math.LegacyDec `protobuf:"bytes,1,opt,name=inflation,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"inflation"`
    33  	// current annual expected provisions
    34  	AnnualProvisions cosmossdk_io_math.LegacyDec `protobuf:"bytes,2,opt,name=annual_provisions,json=annualProvisions,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"annual_provisions"`
    35  }
    36  
    37  func (m *Minter) Reset()         { *m = Minter{} }
    38  func (m *Minter) String() string { return proto.CompactTextString(m) }
    39  func (*Minter) ProtoMessage()    {}
    40  func (*Minter) Descriptor() ([]byte, []int) {
    41  	return fileDescriptor_2df116d183c1e223, []int{0}
    42  }
    43  func (m *Minter) XXX_Unmarshal(b []byte) error {
    44  	return m.Unmarshal(b)
    45  }
    46  func (m *Minter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    47  	if deterministic {
    48  		return xxx_messageInfo_Minter.Marshal(b, m, deterministic)
    49  	} else {
    50  		b = b[:cap(b)]
    51  		n, err := m.MarshalToSizedBuffer(b)
    52  		if err != nil {
    53  			return nil, err
    54  		}
    55  		return b[:n], nil
    56  	}
    57  }
    58  func (m *Minter) XXX_Merge(src proto.Message) {
    59  	xxx_messageInfo_Minter.Merge(m, src)
    60  }
    61  func (m *Minter) XXX_Size() int {
    62  	return m.Size()
    63  }
    64  func (m *Minter) XXX_DiscardUnknown() {
    65  	xxx_messageInfo_Minter.DiscardUnknown(m)
    66  }
    67  
    68  var xxx_messageInfo_Minter proto.InternalMessageInfo
    69  
    70  // Params defines the parameters for the x/mint module.
    71  type Params struct {
    72  	// type of coin to mint
    73  	MintDenom string `protobuf:"bytes,1,opt,name=mint_denom,json=mintDenom,proto3" json:"mint_denom,omitempty"`
    74  	// maximum annual change in inflation rate
    75  	InflationRateChange cosmossdk_io_math.LegacyDec `protobuf:"bytes,2,opt,name=inflation_rate_change,json=inflationRateChange,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"inflation_rate_change"`
    76  	// maximum inflation rate
    77  	InflationMax cosmossdk_io_math.LegacyDec `protobuf:"bytes,3,opt,name=inflation_max,json=inflationMax,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"inflation_max"`
    78  	// minimum inflation rate
    79  	InflationMin cosmossdk_io_math.LegacyDec `protobuf:"bytes,4,opt,name=inflation_min,json=inflationMin,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"inflation_min"`
    80  	// goal of percent bonded atoms
    81  	GoalBonded cosmossdk_io_math.LegacyDec `protobuf:"bytes,5,opt,name=goal_bonded,json=goalBonded,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"goal_bonded"`
    82  	// expected blocks per year
    83  	BlocksPerYear uint64 `protobuf:"varint,6,opt,name=blocks_per_year,json=blocksPerYear,proto3" json:"blocks_per_year,omitempty"`
    84  }
    85  
    86  func (m *Params) Reset()         { *m = Params{} }
    87  func (m *Params) String() string { return proto.CompactTextString(m) }
    88  func (*Params) ProtoMessage()    {}
    89  func (*Params) Descriptor() ([]byte, []int) {
    90  	return fileDescriptor_2df116d183c1e223, []int{1}
    91  }
    92  func (m *Params) XXX_Unmarshal(b []byte) error {
    93  	return m.Unmarshal(b)
    94  }
    95  func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    96  	if deterministic {
    97  		return xxx_messageInfo_Params.Marshal(b, m, deterministic)
    98  	} else {
    99  		b = b[:cap(b)]
   100  		n, err := m.MarshalToSizedBuffer(b)
   101  		if err != nil {
   102  			return nil, err
   103  		}
   104  		return b[:n], nil
   105  	}
   106  }
   107  func (m *Params) XXX_Merge(src proto.Message) {
   108  	xxx_messageInfo_Params.Merge(m, src)
   109  }
   110  func (m *Params) XXX_Size() int {
   111  	return m.Size()
   112  }
   113  func (m *Params) XXX_DiscardUnknown() {
   114  	xxx_messageInfo_Params.DiscardUnknown(m)
   115  }
   116  
   117  var xxx_messageInfo_Params proto.InternalMessageInfo
   118  
   119  func (m *Params) GetMintDenom() string {
   120  	if m != nil {
   121  		return m.MintDenom
   122  	}
   123  	return ""
   124  }
   125  
   126  func (m *Params) GetBlocksPerYear() uint64 {
   127  	if m != nil {
   128  		return m.BlocksPerYear
   129  	}
   130  	return 0
   131  }
   132  
   133  func init() {
   134  	proto.RegisterType((*Minter)(nil), "cosmos.mint.v1beta1.Minter")
   135  	proto.RegisterType((*Params)(nil), "cosmos.mint.v1beta1.Params")
   136  }
   137  
   138  func init() { proto.RegisterFile("cosmos/mint/v1beta1/mint.proto", fileDescriptor_2df116d183c1e223) }
   139  
   140  var fileDescriptor_2df116d183c1e223 = []byte{
   141  	// 436 bytes of a gzipped FileDescriptorProto
   142  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x93, 0xb1, 0x8e, 0xd3, 0x30,
   143  	0x18, 0xc7, 0x63, 0xee, 0x88, 0x54, 0xc3, 0x09, 0xce, 0x07, 0x52, 0x38, 0x74, 0xb9, 0xd3, 0x0d,
   144  	0xe8, 0x38, 0xe9, 0x12, 0x55, 0x48, 0x0c, 0x8c, 0xbd, 0x8e, 0x9c, 0xa8, 0xb2, 0x20, 0x40, 0x22,
   145  	0xfa, 0x92, 0x98, 0xd4, 0x34, 0xb6, 0x2b, 0xdb, 0x57, 0xb5, 0xaf, 0xc0, 0xc4, 0x63, 0x30, 0x76,
   146  	0x60, 0xe1, 0x0d, 0x3a, 0x56, 0x4c, 0x88, 0xa1, 0x42, 0xed, 0xd0, 0x89, 0x77, 0x40, 0x89, 0xa3,
   147  	0x54, 0x82, 0x09, 0xca, 0x12, 0xc5, 0xff, 0xff, 0xe7, 0xdf, 0xf7, 0x97, 0xfd, 0x19, 0xfb, 0xa9,
   148  	0xd4, 0x5c, 0xea, 0x90, 0x33, 0x61, 0xc2, 0x51, 0x3b, 0xa1, 0x06, 0xda, 0xd5, 0x22, 0x18, 0x2a,
   149  	0x69, 0x24, 0x39, 0xb0, 0x7e, 0x50, 0x49, 0xb5, 0x7f, 0x78, 0x2f, 0x97, 0xb9, 0xac, 0xfc, 0xb0,
   150  	0xfc, 0xb3, 0xa5, 0x87, 0x0f, 0x6c, 0x69, 0x6c, 0x8d, 0x7a, 0x9f, 0xb5, 0xf6, 0x81, 0x33, 0x21,
   151  	0xc3, 0xea, 0x6b, 0xa5, 0xd3, 0x2f, 0x08, 0xbb, 0x57, 0x4c, 0x18, 0xaa, 0xc8, 0x0b, 0xdc, 0x62,
   152  	0xe2, 0x5d, 0x01, 0x86, 0x49, 0xe1, 0xa1, 0x13, 0x74, 0xd6, 0xea, 0xb4, 0x67, 0x8b, 0x63, 0xe7,
   153  	0xfb, 0xe2, 0xf8, 0xa1, 0xc5, 0xe8, 0x6c, 0x10, 0x30, 0x19, 0x72, 0x30, 0xfd, 0xe0, 0x39, 0xcd,
   154  	0x21, 0x9d, 0x74, 0x69, 0xfa, 0xf5, 0xf3, 0x05, 0xae, 0xbb, 0x74, 0x69, 0x1a, 0x6d, 0x18, 0xe4,
   155  	0x2d, 0xde, 0x07, 0x21, 0xae, 0xa1, 0x28, 0xb3, 0x8c, 0x98, 0x66, 0x52, 0x68, 0xef, 0xc6, 0xbf,
   156  	0x82, 0xef, 0x5a, 0x56, 0xaf, 0x41, 0x9d, 0xfe, 0xdc, 0xc1, 0x6e, 0x0f, 0x14, 0x70, 0x4d, 0x8e,
   157  	0x30, 0x2e, 0x8f, 0x26, 0xce, 0xa8, 0x90, 0xdc, 0x86, 0x8f, 0x5a, 0xa5, 0xd2, 0x2d, 0x05, 0xf2,
   158  	0x1e, 0xdf, 0x6f, 0x62, 0xc5, 0x0a, 0x0c, 0x8d, 0xd3, 0x3e, 0x88, 0x9c, 0xd6, 0x69, 0x9e, 0xfe,
   159  	0x75, 0x9a, 0x4f, 0xeb, 0xe9, 0x39, 0x8a, 0x0e, 0x1a, 0x68, 0x04, 0x86, 0x5e, 0x56, 0x48, 0xf2,
   160  	0x06, 0xef, 0x6d, 0x7a, 0x71, 0x18, 0x7b, 0x3b, 0x5b, 0xf5, 0xb8, 0xdd, 0xc0, 0xae, 0x60, 0xfc,
   161  	0x1b, 0x9c, 0x09, 0x6f, 0xf7, 0x7f, 0xc1, 0x99, 0x20, 0x2f, 0xf1, 0xad, 0x5c, 0x42, 0x11, 0x27,
   162  	0x52, 0x64, 0x34, 0xf3, 0x6e, 0x6e, 0x85, 0xc6, 0x25, 0xaa, 0x53, 0x91, 0xc8, 0x23, 0x7c, 0x27,
   163  	0x29, 0x64, 0x3a, 0xd0, 0xf1, 0x90, 0xaa, 0x78, 0x42, 0x41, 0x79, 0xee, 0x09, 0x3a, 0xdb, 0x8d,
   164  	0xf6, 0xac, 0xdc, 0xa3, 0xea, 0x15, 0x05, 0xf5, 0xec, 0xe8, 0xc3, 0x7a, 0x7a, 0xee, 0x59, 0xd2,
   165  	0x85, 0xce, 0x06, 0xe1, 0xd8, 0x3e, 0x08, 0x7b, 0xc9, 0x9d, 0xcb, 0xd9, 0xd2, 0x47, 0xf3, 0xa5,
   166  	0x8f, 0x7e, 0x2c, 0x7d, 0xf4, 0x71, 0xe5, 0x3b, 0xf3, 0x95, 0xef, 0x7c, 0x5b, 0xf9, 0xce, 0xeb,
   167  	0xc7, 0x39, 0x33, 0xfd, 0xeb, 0x24, 0x48, 0x25, 0xaf, 0x27, 0x3e, 0xfc, 0x93, 0x62, 0x26, 0x43,
   168  	0xaa, 0x13, 0xb7, 0x9a, 0xfb, 0x27, 0xbf, 0x02, 0x00, 0x00, 0xff, 0xff, 0xc2, 0xd0, 0x42, 0xaf,
   169  	0x72, 0x03, 0x00, 0x00,
   170  }
   171  
   172  func (m *Minter) Marshal() (dAtA []byte, err error) {
   173  	size := m.Size()
   174  	dAtA = make([]byte, size)
   175  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   176  	if err != nil {
   177  		return nil, err
   178  	}
   179  	return dAtA[:n], nil
   180  }
   181  
   182  func (m *Minter) MarshalTo(dAtA []byte) (int, error) {
   183  	size := m.Size()
   184  	return m.MarshalToSizedBuffer(dAtA[:size])
   185  }
   186  
   187  func (m *Minter) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   188  	i := len(dAtA)
   189  	_ = i
   190  	var l int
   191  	_ = l
   192  	{
   193  		size := m.AnnualProvisions.Size()
   194  		i -= size
   195  		if _, err := m.AnnualProvisions.MarshalTo(dAtA[i:]); err != nil {
   196  			return 0, err
   197  		}
   198  		i = encodeVarintMint(dAtA, i, uint64(size))
   199  	}
   200  	i--
   201  	dAtA[i] = 0x12
   202  	{
   203  		size := m.Inflation.Size()
   204  		i -= size
   205  		if _, err := m.Inflation.MarshalTo(dAtA[i:]); err != nil {
   206  			return 0, err
   207  		}
   208  		i = encodeVarintMint(dAtA, i, uint64(size))
   209  	}
   210  	i--
   211  	dAtA[i] = 0xa
   212  	return len(dAtA) - i, nil
   213  }
   214  
   215  func (m *Params) Marshal() (dAtA []byte, err error) {
   216  	size := m.Size()
   217  	dAtA = make([]byte, size)
   218  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   219  	if err != nil {
   220  		return nil, err
   221  	}
   222  	return dAtA[:n], nil
   223  }
   224  
   225  func (m *Params) MarshalTo(dAtA []byte) (int, error) {
   226  	size := m.Size()
   227  	return m.MarshalToSizedBuffer(dAtA[:size])
   228  }
   229  
   230  func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   231  	i := len(dAtA)
   232  	_ = i
   233  	var l int
   234  	_ = l
   235  	if m.BlocksPerYear != 0 {
   236  		i = encodeVarintMint(dAtA, i, uint64(m.BlocksPerYear))
   237  		i--
   238  		dAtA[i] = 0x30
   239  	}
   240  	{
   241  		size := m.GoalBonded.Size()
   242  		i -= size
   243  		if _, err := m.GoalBonded.MarshalTo(dAtA[i:]); err != nil {
   244  			return 0, err
   245  		}
   246  		i = encodeVarintMint(dAtA, i, uint64(size))
   247  	}
   248  	i--
   249  	dAtA[i] = 0x2a
   250  	{
   251  		size := m.InflationMin.Size()
   252  		i -= size
   253  		if _, err := m.InflationMin.MarshalTo(dAtA[i:]); err != nil {
   254  			return 0, err
   255  		}
   256  		i = encodeVarintMint(dAtA, i, uint64(size))
   257  	}
   258  	i--
   259  	dAtA[i] = 0x22
   260  	{
   261  		size := m.InflationMax.Size()
   262  		i -= size
   263  		if _, err := m.InflationMax.MarshalTo(dAtA[i:]); err != nil {
   264  			return 0, err
   265  		}
   266  		i = encodeVarintMint(dAtA, i, uint64(size))
   267  	}
   268  	i--
   269  	dAtA[i] = 0x1a
   270  	{
   271  		size := m.InflationRateChange.Size()
   272  		i -= size
   273  		if _, err := m.InflationRateChange.MarshalTo(dAtA[i:]); err != nil {
   274  			return 0, err
   275  		}
   276  		i = encodeVarintMint(dAtA, i, uint64(size))
   277  	}
   278  	i--
   279  	dAtA[i] = 0x12
   280  	if len(m.MintDenom) > 0 {
   281  		i -= len(m.MintDenom)
   282  		copy(dAtA[i:], m.MintDenom)
   283  		i = encodeVarintMint(dAtA, i, uint64(len(m.MintDenom)))
   284  		i--
   285  		dAtA[i] = 0xa
   286  	}
   287  	return len(dAtA) - i, nil
   288  }
   289  
   290  func encodeVarintMint(dAtA []byte, offset int, v uint64) int {
   291  	offset -= sovMint(v)
   292  	base := offset
   293  	for v >= 1<<7 {
   294  		dAtA[offset] = uint8(v&0x7f | 0x80)
   295  		v >>= 7
   296  		offset++
   297  	}
   298  	dAtA[offset] = uint8(v)
   299  	return base
   300  }
   301  func (m *Minter) Size() (n int) {
   302  	if m == nil {
   303  		return 0
   304  	}
   305  	var l int
   306  	_ = l
   307  	l = m.Inflation.Size()
   308  	n += 1 + l + sovMint(uint64(l))
   309  	l = m.AnnualProvisions.Size()
   310  	n += 1 + l + sovMint(uint64(l))
   311  	return n
   312  }
   313  
   314  func (m *Params) Size() (n int) {
   315  	if m == nil {
   316  		return 0
   317  	}
   318  	var l int
   319  	_ = l
   320  	l = len(m.MintDenom)
   321  	if l > 0 {
   322  		n += 1 + l + sovMint(uint64(l))
   323  	}
   324  	l = m.InflationRateChange.Size()
   325  	n += 1 + l + sovMint(uint64(l))
   326  	l = m.InflationMax.Size()
   327  	n += 1 + l + sovMint(uint64(l))
   328  	l = m.InflationMin.Size()
   329  	n += 1 + l + sovMint(uint64(l))
   330  	l = m.GoalBonded.Size()
   331  	n += 1 + l + sovMint(uint64(l))
   332  	if m.BlocksPerYear != 0 {
   333  		n += 1 + sovMint(uint64(m.BlocksPerYear))
   334  	}
   335  	return n
   336  }
   337  
   338  func sovMint(x uint64) (n int) {
   339  	return (math_bits.Len64(x|1) + 6) / 7
   340  }
   341  func sozMint(x uint64) (n int) {
   342  	return sovMint(uint64((x << 1) ^ uint64((int64(x) >> 63))))
   343  }
   344  func (m *Minter) Unmarshal(dAtA []byte) error {
   345  	l := len(dAtA)
   346  	iNdEx := 0
   347  	for iNdEx < l {
   348  		preIndex := iNdEx
   349  		var wire uint64
   350  		for shift := uint(0); ; shift += 7 {
   351  			if shift >= 64 {
   352  				return ErrIntOverflowMint
   353  			}
   354  			if iNdEx >= l {
   355  				return io.ErrUnexpectedEOF
   356  			}
   357  			b := dAtA[iNdEx]
   358  			iNdEx++
   359  			wire |= uint64(b&0x7F) << shift
   360  			if b < 0x80 {
   361  				break
   362  			}
   363  		}
   364  		fieldNum := int32(wire >> 3)
   365  		wireType := int(wire & 0x7)
   366  		if wireType == 4 {
   367  			return fmt.Errorf("proto: Minter: wiretype end group for non-group")
   368  		}
   369  		if fieldNum <= 0 {
   370  			return fmt.Errorf("proto: Minter: illegal tag %d (wire type %d)", fieldNum, wire)
   371  		}
   372  		switch fieldNum {
   373  		case 1:
   374  			if wireType != 2 {
   375  				return fmt.Errorf("proto: wrong wireType = %d for field Inflation", wireType)
   376  			}
   377  			var stringLen uint64
   378  			for shift := uint(0); ; shift += 7 {
   379  				if shift >= 64 {
   380  					return ErrIntOverflowMint
   381  				}
   382  				if iNdEx >= l {
   383  					return io.ErrUnexpectedEOF
   384  				}
   385  				b := dAtA[iNdEx]
   386  				iNdEx++
   387  				stringLen |= uint64(b&0x7F) << shift
   388  				if b < 0x80 {
   389  					break
   390  				}
   391  			}
   392  			intStringLen := int(stringLen)
   393  			if intStringLen < 0 {
   394  				return ErrInvalidLengthMint
   395  			}
   396  			postIndex := iNdEx + intStringLen
   397  			if postIndex < 0 {
   398  				return ErrInvalidLengthMint
   399  			}
   400  			if postIndex > l {
   401  				return io.ErrUnexpectedEOF
   402  			}
   403  			if err := m.Inflation.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
   404  				return err
   405  			}
   406  			iNdEx = postIndex
   407  		case 2:
   408  			if wireType != 2 {
   409  				return fmt.Errorf("proto: wrong wireType = %d for field AnnualProvisions", wireType)
   410  			}
   411  			var stringLen uint64
   412  			for shift := uint(0); ; shift += 7 {
   413  				if shift >= 64 {
   414  					return ErrIntOverflowMint
   415  				}
   416  				if iNdEx >= l {
   417  					return io.ErrUnexpectedEOF
   418  				}
   419  				b := dAtA[iNdEx]
   420  				iNdEx++
   421  				stringLen |= uint64(b&0x7F) << shift
   422  				if b < 0x80 {
   423  					break
   424  				}
   425  			}
   426  			intStringLen := int(stringLen)
   427  			if intStringLen < 0 {
   428  				return ErrInvalidLengthMint
   429  			}
   430  			postIndex := iNdEx + intStringLen
   431  			if postIndex < 0 {
   432  				return ErrInvalidLengthMint
   433  			}
   434  			if postIndex > l {
   435  				return io.ErrUnexpectedEOF
   436  			}
   437  			if err := m.AnnualProvisions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
   438  				return err
   439  			}
   440  			iNdEx = postIndex
   441  		default:
   442  			iNdEx = preIndex
   443  			skippy, err := skipMint(dAtA[iNdEx:])
   444  			if err != nil {
   445  				return err
   446  			}
   447  			if (skippy < 0) || (iNdEx+skippy) < 0 {
   448  				return ErrInvalidLengthMint
   449  			}
   450  			if (iNdEx + skippy) > l {
   451  				return io.ErrUnexpectedEOF
   452  			}
   453  			iNdEx += skippy
   454  		}
   455  	}
   456  
   457  	if iNdEx > l {
   458  		return io.ErrUnexpectedEOF
   459  	}
   460  	return nil
   461  }
   462  func (m *Params) Unmarshal(dAtA []byte) error {
   463  	l := len(dAtA)
   464  	iNdEx := 0
   465  	for iNdEx < l {
   466  		preIndex := iNdEx
   467  		var wire uint64
   468  		for shift := uint(0); ; shift += 7 {
   469  			if shift >= 64 {
   470  				return ErrIntOverflowMint
   471  			}
   472  			if iNdEx >= l {
   473  				return io.ErrUnexpectedEOF
   474  			}
   475  			b := dAtA[iNdEx]
   476  			iNdEx++
   477  			wire |= uint64(b&0x7F) << shift
   478  			if b < 0x80 {
   479  				break
   480  			}
   481  		}
   482  		fieldNum := int32(wire >> 3)
   483  		wireType := int(wire & 0x7)
   484  		if wireType == 4 {
   485  			return fmt.Errorf("proto: Params: wiretype end group for non-group")
   486  		}
   487  		if fieldNum <= 0 {
   488  			return fmt.Errorf("proto: Params: illegal tag %d (wire type %d)", fieldNum, wire)
   489  		}
   490  		switch fieldNum {
   491  		case 1:
   492  			if wireType != 2 {
   493  				return fmt.Errorf("proto: wrong wireType = %d for field MintDenom", wireType)
   494  			}
   495  			var stringLen uint64
   496  			for shift := uint(0); ; shift += 7 {
   497  				if shift >= 64 {
   498  					return ErrIntOverflowMint
   499  				}
   500  				if iNdEx >= l {
   501  					return io.ErrUnexpectedEOF
   502  				}
   503  				b := dAtA[iNdEx]
   504  				iNdEx++
   505  				stringLen |= uint64(b&0x7F) << shift
   506  				if b < 0x80 {
   507  					break
   508  				}
   509  			}
   510  			intStringLen := int(stringLen)
   511  			if intStringLen < 0 {
   512  				return ErrInvalidLengthMint
   513  			}
   514  			postIndex := iNdEx + intStringLen
   515  			if postIndex < 0 {
   516  				return ErrInvalidLengthMint
   517  			}
   518  			if postIndex > l {
   519  				return io.ErrUnexpectedEOF
   520  			}
   521  			m.MintDenom = string(dAtA[iNdEx:postIndex])
   522  			iNdEx = postIndex
   523  		case 2:
   524  			if wireType != 2 {
   525  				return fmt.Errorf("proto: wrong wireType = %d for field InflationRateChange", wireType)
   526  			}
   527  			var stringLen uint64
   528  			for shift := uint(0); ; shift += 7 {
   529  				if shift >= 64 {
   530  					return ErrIntOverflowMint
   531  				}
   532  				if iNdEx >= l {
   533  					return io.ErrUnexpectedEOF
   534  				}
   535  				b := dAtA[iNdEx]
   536  				iNdEx++
   537  				stringLen |= uint64(b&0x7F) << shift
   538  				if b < 0x80 {
   539  					break
   540  				}
   541  			}
   542  			intStringLen := int(stringLen)
   543  			if intStringLen < 0 {
   544  				return ErrInvalidLengthMint
   545  			}
   546  			postIndex := iNdEx + intStringLen
   547  			if postIndex < 0 {
   548  				return ErrInvalidLengthMint
   549  			}
   550  			if postIndex > l {
   551  				return io.ErrUnexpectedEOF
   552  			}
   553  			if err := m.InflationRateChange.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
   554  				return err
   555  			}
   556  			iNdEx = postIndex
   557  		case 3:
   558  			if wireType != 2 {
   559  				return fmt.Errorf("proto: wrong wireType = %d for field InflationMax", wireType)
   560  			}
   561  			var stringLen uint64
   562  			for shift := uint(0); ; shift += 7 {
   563  				if shift >= 64 {
   564  					return ErrIntOverflowMint
   565  				}
   566  				if iNdEx >= l {
   567  					return io.ErrUnexpectedEOF
   568  				}
   569  				b := dAtA[iNdEx]
   570  				iNdEx++
   571  				stringLen |= uint64(b&0x7F) << shift
   572  				if b < 0x80 {
   573  					break
   574  				}
   575  			}
   576  			intStringLen := int(stringLen)
   577  			if intStringLen < 0 {
   578  				return ErrInvalidLengthMint
   579  			}
   580  			postIndex := iNdEx + intStringLen
   581  			if postIndex < 0 {
   582  				return ErrInvalidLengthMint
   583  			}
   584  			if postIndex > l {
   585  				return io.ErrUnexpectedEOF
   586  			}
   587  			if err := m.InflationMax.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
   588  				return err
   589  			}
   590  			iNdEx = postIndex
   591  		case 4:
   592  			if wireType != 2 {
   593  				return fmt.Errorf("proto: wrong wireType = %d for field InflationMin", wireType)
   594  			}
   595  			var stringLen uint64
   596  			for shift := uint(0); ; shift += 7 {
   597  				if shift >= 64 {
   598  					return ErrIntOverflowMint
   599  				}
   600  				if iNdEx >= l {
   601  					return io.ErrUnexpectedEOF
   602  				}
   603  				b := dAtA[iNdEx]
   604  				iNdEx++
   605  				stringLen |= uint64(b&0x7F) << shift
   606  				if b < 0x80 {
   607  					break
   608  				}
   609  			}
   610  			intStringLen := int(stringLen)
   611  			if intStringLen < 0 {
   612  				return ErrInvalidLengthMint
   613  			}
   614  			postIndex := iNdEx + intStringLen
   615  			if postIndex < 0 {
   616  				return ErrInvalidLengthMint
   617  			}
   618  			if postIndex > l {
   619  				return io.ErrUnexpectedEOF
   620  			}
   621  			if err := m.InflationMin.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
   622  				return err
   623  			}
   624  			iNdEx = postIndex
   625  		case 5:
   626  			if wireType != 2 {
   627  				return fmt.Errorf("proto: wrong wireType = %d for field GoalBonded", wireType)
   628  			}
   629  			var stringLen uint64
   630  			for shift := uint(0); ; shift += 7 {
   631  				if shift >= 64 {
   632  					return ErrIntOverflowMint
   633  				}
   634  				if iNdEx >= l {
   635  					return io.ErrUnexpectedEOF
   636  				}
   637  				b := dAtA[iNdEx]
   638  				iNdEx++
   639  				stringLen |= uint64(b&0x7F) << shift
   640  				if b < 0x80 {
   641  					break
   642  				}
   643  			}
   644  			intStringLen := int(stringLen)
   645  			if intStringLen < 0 {
   646  				return ErrInvalidLengthMint
   647  			}
   648  			postIndex := iNdEx + intStringLen
   649  			if postIndex < 0 {
   650  				return ErrInvalidLengthMint
   651  			}
   652  			if postIndex > l {
   653  				return io.ErrUnexpectedEOF
   654  			}
   655  			if err := m.GoalBonded.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
   656  				return err
   657  			}
   658  			iNdEx = postIndex
   659  		case 6:
   660  			if wireType != 0 {
   661  				return fmt.Errorf("proto: wrong wireType = %d for field BlocksPerYear", wireType)
   662  			}
   663  			m.BlocksPerYear = 0
   664  			for shift := uint(0); ; shift += 7 {
   665  				if shift >= 64 {
   666  					return ErrIntOverflowMint
   667  				}
   668  				if iNdEx >= l {
   669  					return io.ErrUnexpectedEOF
   670  				}
   671  				b := dAtA[iNdEx]
   672  				iNdEx++
   673  				m.BlocksPerYear |= uint64(b&0x7F) << shift
   674  				if b < 0x80 {
   675  					break
   676  				}
   677  			}
   678  		default:
   679  			iNdEx = preIndex
   680  			skippy, err := skipMint(dAtA[iNdEx:])
   681  			if err != nil {
   682  				return err
   683  			}
   684  			if (skippy < 0) || (iNdEx+skippy) < 0 {
   685  				return ErrInvalidLengthMint
   686  			}
   687  			if (iNdEx + skippy) > l {
   688  				return io.ErrUnexpectedEOF
   689  			}
   690  			iNdEx += skippy
   691  		}
   692  	}
   693  
   694  	if iNdEx > l {
   695  		return io.ErrUnexpectedEOF
   696  	}
   697  	return nil
   698  }
   699  func skipMint(dAtA []byte) (n int, err error) {
   700  	l := len(dAtA)
   701  	iNdEx := 0
   702  	depth := 0
   703  	for iNdEx < l {
   704  		var wire uint64
   705  		for shift := uint(0); ; shift += 7 {
   706  			if shift >= 64 {
   707  				return 0, ErrIntOverflowMint
   708  			}
   709  			if iNdEx >= l {
   710  				return 0, io.ErrUnexpectedEOF
   711  			}
   712  			b := dAtA[iNdEx]
   713  			iNdEx++
   714  			wire |= (uint64(b) & 0x7F) << shift
   715  			if b < 0x80 {
   716  				break
   717  			}
   718  		}
   719  		wireType := int(wire & 0x7)
   720  		switch wireType {
   721  		case 0:
   722  			for shift := uint(0); ; shift += 7 {
   723  				if shift >= 64 {
   724  					return 0, ErrIntOverflowMint
   725  				}
   726  				if iNdEx >= l {
   727  					return 0, io.ErrUnexpectedEOF
   728  				}
   729  				iNdEx++
   730  				if dAtA[iNdEx-1] < 0x80 {
   731  					break
   732  				}
   733  			}
   734  		case 1:
   735  			iNdEx += 8
   736  		case 2:
   737  			var length int
   738  			for shift := uint(0); ; shift += 7 {
   739  				if shift >= 64 {
   740  					return 0, ErrIntOverflowMint
   741  				}
   742  				if iNdEx >= l {
   743  					return 0, io.ErrUnexpectedEOF
   744  				}
   745  				b := dAtA[iNdEx]
   746  				iNdEx++
   747  				length |= (int(b) & 0x7F) << shift
   748  				if b < 0x80 {
   749  					break
   750  				}
   751  			}
   752  			if length < 0 {
   753  				return 0, ErrInvalidLengthMint
   754  			}
   755  			iNdEx += length
   756  		case 3:
   757  			depth++
   758  		case 4:
   759  			if depth == 0 {
   760  				return 0, ErrUnexpectedEndOfGroupMint
   761  			}
   762  			depth--
   763  		case 5:
   764  			iNdEx += 4
   765  		default:
   766  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
   767  		}
   768  		if iNdEx < 0 {
   769  			return 0, ErrInvalidLengthMint
   770  		}
   771  		if depth == 0 {
   772  			return iNdEx, nil
   773  		}
   774  	}
   775  	return 0, io.ErrUnexpectedEOF
   776  }
   777  
   778  var (
   779  	ErrInvalidLengthMint        = fmt.Errorf("proto: negative length found during unmarshaling")
   780  	ErrIntOverflowMint          = fmt.Errorf("proto: integer overflow")
   781  	ErrUnexpectedEndOfGroupMint = fmt.Errorf("proto: unexpected end of group")
   782  )