github.com/Finschia/finschia-sdk@v0.48.1/x/mint/types/genesis.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: cosmos/mint/v1beta1/genesis.proto
     3  
     4  package types
     5  
     6  import (
     7  	fmt "fmt"
     8  	_ "github.com/gogo/protobuf/gogoproto"
     9  	proto "github.com/gogo/protobuf/proto"
    10  	io "io"
    11  	math "math"
    12  	math_bits "math/bits"
    13  )
    14  
    15  // Reference imports to suppress errors if they are not otherwise used.
    16  var _ = proto.Marshal
    17  var _ = fmt.Errorf
    18  var _ = math.Inf
    19  
    20  // This is a compile-time assertion to ensure that this generated file
    21  // is compatible with the proto package it is being compiled against.
    22  // A compilation error at this line likely means your copy of the
    23  // proto package needs to be updated.
    24  const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
    25  
    26  // GenesisState defines the mint module's genesis state.
    27  type GenesisState struct {
    28  	// minter is a space for holding current inflation information.
    29  	Minter Minter `protobuf:"bytes,1,opt,name=minter,proto3" json:"minter"`
    30  	// params defines all the paramaters of the module.
    31  	Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"`
    32  }
    33  
    34  func (m *GenesisState) Reset()         { *m = GenesisState{} }
    35  func (m *GenesisState) String() string { return proto.CompactTextString(m) }
    36  func (*GenesisState) ProtoMessage()    {}
    37  func (*GenesisState) Descriptor() ([]byte, []int) {
    38  	return fileDescriptor_0e215eb1d09cd648, []int{0}
    39  }
    40  func (m *GenesisState) XXX_Unmarshal(b []byte) error {
    41  	return m.Unmarshal(b)
    42  }
    43  func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    44  	if deterministic {
    45  		return xxx_messageInfo_GenesisState.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 *GenesisState) XXX_Merge(src proto.Message) {
    56  	xxx_messageInfo_GenesisState.Merge(m, src)
    57  }
    58  func (m *GenesisState) XXX_Size() int {
    59  	return m.Size()
    60  }
    61  func (m *GenesisState) XXX_DiscardUnknown() {
    62  	xxx_messageInfo_GenesisState.DiscardUnknown(m)
    63  }
    64  
    65  var xxx_messageInfo_GenesisState proto.InternalMessageInfo
    66  
    67  func (m *GenesisState) GetMinter() Minter {
    68  	if m != nil {
    69  		return m.Minter
    70  	}
    71  	return Minter{}
    72  }
    73  
    74  func (m *GenesisState) GetParams() Params {
    75  	if m != nil {
    76  		return m.Params
    77  	}
    78  	return Params{}
    79  }
    80  
    81  func init() {
    82  	proto.RegisterType((*GenesisState)(nil), "cosmos.mint.v1beta1.GenesisState")
    83  }
    84  
    85  func init() { proto.RegisterFile("cosmos/mint/v1beta1/genesis.proto", fileDescriptor_0e215eb1d09cd648) }
    86  
    87  var fileDescriptor_0e215eb1d09cd648 = []byte{
    88  	// 226 bytes of a gzipped FileDescriptorProto
    89  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x4c, 0xce, 0x2f, 0xce,
    90  	0xcd, 0x2f, 0xd6, 0xcf, 0xcd, 0xcc, 0x2b, 0xd1, 0x2f, 0x33, 0x4c, 0x4a, 0x2d, 0x49, 0x34, 0xd4,
    91  	0x4f, 0x4f, 0xcd, 0x4b, 0x2d, 0xce, 0x2c, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x86,
    92  	0x28, 0xd1, 0x03, 0x29, 0xd1, 0x83, 0x2a, 0x91, 0x12, 0x49, 0xcf, 0x4f, 0xcf, 0x07, 0xcb, 0xeb,
    93  	0x83, 0x58, 0x10, 0xa5, 0x52, 0x72, 0xd8, 0x4c, 0x03, 0xeb, 0x03, 0xcb, 0x2b, 0xb5, 0x30, 0x72,
    94  	0xf1, 0xb8, 0x43, 0x0c, 0x0f, 0x2e, 0x49, 0x2c, 0x49, 0x15, 0xb2, 0xe4, 0x62, 0x03, 0x49, 0xa7,
    95  	0x16, 0x49, 0x30, 0x2a, 0x30, 0x6a, 0x70, 0x1b, 0x49, 0xeb, 0x61, 0xb1, 0x4c, 0xcf, 0x17, 0xac,
    96  	0xc4, 0x89, 0xe5, 0xc4, 0x3d, 0x79, 0x86, 0x20, 0xa8, 0x06, 0x90, 0xd6, 0x82, 0xc4, 0xa2, 0xc4,
    97  	0xdc, 0x62, 0x09, 0x26, 0x3c, 0x5a, 0x03, 0xc0, 0x4a, 0x60, 0x5a, 0x21, 0x1a, 0x9c, 0xdc, 0x4f,
    98  	0x3c, 0x92, 0x63, 0xbc, 0xf0, 0x48, 0x8e, 0xf1, 0xc1, 0x23, 0x39, 0xc6, 0x09, 0x8f, 0xe5, 0x18,
    99  	0x2e, 0x3c, 0x96, 0x63, 0xb8, 0xf1, 0x58, 0x8e, 0x21, 0x4a, 0x37, 0x3d, 0xb3, 0x24, 0xa3, 0x34,
   100  	0x49, 0x2f, 0x39, 0x3f, 0x57, 0xdf, 0x2d, 0x33, 0xaf, 0x38, 0x39, 0x23, 0x33, 0x51, 0x3f, 0x0d,
   101  	0xca, 0xd0, 0x2d, 0x4e, 0xc9, 0xd6, 0xaf, 0x80, 0x78, 0xae, 0xa4, 0xb2, 0x20, 0xb5, 0x38, 0x89,
   102  	0x0d, 0xec, 0x2d, 0x63, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0xf5, 0x65, 0x21, 0xc6, 0x46, 0x01,
   103  	0x00, 0x00,
   104  }
   105  
   106  func (m *GenesisState) Marshal() (dAtA []byte, err error) {
   107  	size := m.Size()
   108  	dAtA = make([]byte, size)
   109  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   110  	if err != nil {
   111  		return nil, err
   112  	}
   113  	return dAtA[:n], nil
   114  }
   115  
   116  func (m *GenesisState) MarshalTo(dAtA []byte) (int, error) {
   117  	size := m.Size()
   118  	return m.MarshalToSizedBuffer(dAtA[:size])
   119  }
   120  
   121  func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   122  	i := len(dAtA)
   123  	_ = i
   124  	var l int
   125  	_ = l
   126  	{
   127  		size, err := m.Params.MarshalToSizedBuffer(dAtA[:i])
   128  		if err != nil {
   129  			return 0, err
   130  		}
   131  		i -= size
   132  		i = encodeVarintGenesis(dAtA, i, uint64(size))
   133  	}
   134  	i--
   135  	dAtA[i] = 0x12
   136  	{
   137  		size, err := m.Minter.MarshalToSizedBuffer(dAtA[:i])
   138  		if err != nil {
   139  			return 0, err
   140  		}
   141  		i -= size
   142  		i = encodeVarintGenesis(dAtA, i, uint64(size))
   143  	}
   144  	i--
   145  	dAtA[i] = 0xa
   146  	return len(dAtA) - i, nil
   147  }
   148  
   149  func encodeVarintGenesis(dAtA []byte, offset int, v uint64) int {
   150  	offset -= sovGenesis(v)
   151  	base := offset
   152  	for v >= 1<<7 {
   153  		dAtA[offset] = uint8(v&0x7f | 0x80)
   154  		v >>= 7
   155  		offset++
   156  	}
   157  	dAtA[offset] = uint8(v)
   158  	return base
   159  }
   160  func (m *GenesisState) Size() (n int) {
   161  	if m == nil {
   162  		return 0
   163  	}
   164  	var l int
   165  	_ = l
   166  	l = m.Minter.Size()
   167  	n += 1 + l + sovGenesis(uint64(l))
   168  	l = m.Params.Size()
   169  	n += 1 + l + sovGenesis(uint64(l))
   170  	return n
   171  }
   172  
   173  func sovGenesis(x uint64) (n int) {
   174  	return (math_bits.Len64(x|1) + 6) / 7
   175  }
   176  func sozGenesis(x uint64) (n int) {
   177  	return sovGenesis(uint64((x << 1) ^ uint64((int64(x) >> 63))))
   178  }
   179  func (m *GenesisState) Unmarshal(dAtA []byte) error {
   180  	l := len(dAtA)
   181  	iNdEx := 0
   182  	for iNdEx < l {
   183  		preIndex := iNdEx
   184  		var wire uint64
   185  		for shift := uint(0); ; shift += 7 {
   186  			if shift >= 64 {
   187  				return ErrIntOverflowGenesis
   188  			}
   189  			if iNdEx >= l {
   190  				return io.ErrUnexpectedEOF
   191  			}
   192  			b := dAtA[iNdEx]
   193  			iNdEx++
   194  			wire |= uint64(b&0x7F) << shift
   195  			if b < 0x80 {
   196  				break
   197  			}
   198  		}
   199  		fieldNum := int32(wire >> 3)
   200  		wireType := int(wire & 0x7)
   201  		if wireType == 4 {
   202  			return fmt.Errorf("proto: GenesisState: wiretype end group for non-group")
   203  		}
   204  		if fieldNum <= 0 {
   205  			return fmt.Errorf("proto: GenesisState: illegal tag %d (wire type %d)", fieldNum, wire)
   206  		}
   207  		switch fieldNum {
   208  		case 1:
   209  			if wireType != 2 {
   210  				return fmt.Errorf("proto: wrong wireType = %d for field Minter", wireType)
   211  			}
   212  			var msglen int
   213  			for shift := uint(0); ; shift += 7 {
   214  				if shift >= 64 {
   215  					return ErrIntOverflowGenesis
   216  				}
   217  				if iNdEx >= l {
   218  					return io.ErrUnexpectedEOF
   219  				}
   220  				b := dAtA[iNdEx]
   221  				iNdEx++
   222  				msglen |= int(b&0x7F) << shift
   223  				if b < 0x80 {
   224  					break
   225  				}
   226  			}
   227  			if msglen < 0 {
   228  				return ErrInvalidLengthGenesis
   229  			}
   230  			postIndex := iNdEx + msglen
   231  			if postIndex < 0 {
   232  				return ErrInvalidLengthGenesis
   233  			}
   234  			if postIndex > l {
   235  				return io.ErrUnexpectedEOF
   236  			}
   237  			if err := m.Minter.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
   238  				return err
   239  			}
   240  			iNdEx = postIndex
   241  		case 2:
   242  			if wireType != 2 {
   243  				return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType)
   244  			}
   245  			var msglen int
   246  			for shift := uint(0); ; shift += 7 {
   247  				if shift >= 64 {
   248  					return ErrIntOverflowGenesis
   249  				}
   250  				if iNdEx >= l {
   251  					return io.ErrUnexpectedEOF
   252  				}
   253  				b := dAtA[iNdEx]
   254  				iNdEx++
   255  				msglen |= int(b&0x7F) << shift
   256  				if b < 0x80 {
   257  					break
   258  				}
   259  			}
   260  			if msglen < 0 {
   261  				return ErrInvalidLengthGenesis
   262  			}
   263  			postIndex := iNdEx + msglen
   264  			if postIndex < 0 {
   265  				return ErrInvalidLengthGenesis
   266  			}
   267  			if postIndex > l {
   268  				return io.ErrUnexpectedEOF
   269  			}
   270  			if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
   271  				return err
   272  			}
   273  			iNdEx = postIndex
   274  		default:
   275  			iNdEx = preIndex
   276  			skippy, err := skipGenesis(dAtA[iNdEx:])
   277  			if err != nil {
   278  				return err
   279  			}
   280  			if (skippy < 0) || (iNdEx+skippy) < 0 {
   281  				return ErrInvalidLengthGenesis
   282  			}
   283  			if (iNdEx + skippy) > l {
   284  				return io.ErrUnexpectedEOF
   285  			}
   286  			iNdEx += skippy
   287  		}
   288  	}
   289  
   290  	if iNdEx > l {
   291  		return io.ErrUnexpectedEOF
   292  	}
   293  	return nil
   294  }
   295  func skipGenesis(dAtA []byte) (n int, err error) {
   296  	l := len(dAtA)
   297  	iNdEx := 0
   298  	depth := 0
   299  	for iNdEx < l {
   300  		var wire uint64
   301  		for shift := uint(0); ; shift += 7 {
   302  			if shift >= 64 {
   303  				return 0, ErrIntOverflowGenesis
   304  			}
   305  			if iNdEx >= l {
   306  				return 0, io.ErrUnexpectedEOF
   307  			}
   308  			b := dAtA[iNdEx]
   309  			iNdEx++
   310  			wire |= (uint64(b) & 0x7F) << shift
   311  			if b < 0x80 {
   312  				break
   313  			}
   314  		}
   315  		wireType := int(wire & 0x7)
   316  		switch wireType {
   317  		case 0:
   318  			for shift := uint(0); ; shift += 7 {
   319  				if shift >= 64 {
   320  					return 0, ErrIntOverflowGenesis
   321  				}
   322  				if iNdEx >= l {
   323  					return 0, io.ErrUnexpectedEOF
   324  				}
   325  				iNdEx++
   326  				if dAtA[iNdEx-1] < 0x80 {
   327  					break
   328  				}
   329  			}
   330  		case 1:
   331  			iNdEx += 8
   332  		case 2:
   333  			var length int
   334  			for shift := uint(0); ; shift += 7 {
   335  				if shift >= 64 {
   336  					return 0, ErrIntOverflowGenesis
   337  				}
   338  				if iNdEx >= l {
   339  					return 0, io.ErrUnexpectedEOF
   340  				}
   341  				b := dAtA[iNdEx]
   342  				iNdEx++
   343  				length |= (int(b) & 0x7F) << shift
   344  				if b < 0x80 {
   345  					break
   346  				}
   347  			}
   348  			if length < 0 {
   349  				return 0, ErrInvalidLengthGenesis
   350  			}
   351  			iNdEx += length
   352  		case 3:
   353  			depth++
   354  		case 4:
   355  			if depth == 0 {
   356  				return 0, ErrUnexpectedEndOfGroupGenesis
   357  			}
   358  			depth--
   359  		case 5:
   360  			iNdEx += 4
   361  		default:
   362  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
   363  		}
   364  		if iNdEx < 0 {
   365  			return 0, ErrInvalidLengthGenesis
   366  		}
   367  		if depth == 0 {
   368  			return iNdEx, nil
   369  		}
   370  	}
   371  	return 0, io.ErrUnexpectedEOF
   372  }
   373  
   374  var (
   375  	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
   376  	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
   377  	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
   378  )