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

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: cosmos/crisis/v1beta1/genesis.proto
     3  
     4  package types
     5  
     6  import (
     7  	fmt "fmt"
     8  	types "github.com/cosmos/cosmos-sdk/types"
     9  	_ "github.com/cosmos/cosmos-sdk/types/tx/amino"
    10  	_ "github.com/cosmos/gogoproto/gogoproto"
    11  	proto "github.com/cosmos/gogoproto/proto"
    12  	io "io"
    13  	math "math"
    14  	math_bits "math/bits"
    15  )
    16  
    17  // Reference imports to suppress errors if they are not otherwise used.
    18  var _ = proto.Marshal
    19  var _ = fmt.Errorf
    20  var _ = math.Inf
    21  
    22  // This is a compile-time assertion to ensure that this generated file
    23  // is compatible with the proto package it is being compiled against.
    24  // A compilation error at this line likely means your copy of the
    25  // proto package needs to be updated.
    26  const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
    27  
    28  // GenesisState defines the crisis module's genesis state.
    29  type GenesisState struct {
    30  	// constant_fee is the fee used to verify the invariant in the crisis
    31  	// module.
    32  	ConstantFee types.Coin `protobuf:"bytes,3,opt,name=constant_fee,json=constantFee,proto3" json:"constant_fee"`
    33  }
    34  
    35  func (m *GenesisState) Reset()         { *m = GenesisState{} }
    36  func (m *GenesisState) String() string { return proto.CompactTextString(m) }
    37  func (*GenesisState) ProtoMessage()    {}
    38  func (*GenesisState) Descriptor() ([]byte, []int) {
    39  	return fileDescriptor_7a9c2781aa8a27ae, []int{0}
    40  }
    41  func (m *GenesisState) XXX_Unmarshal(b []byte) error {
    42  	return m.Unmarshal(b)
    43  }
    44  func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    45  	if deterministic {
    46  		return xxx_messageInfo_GenesisState.Marshal(b, m, deterministic)
    47  	} else {
    48  		b = b[:cap(b)]
    49  		n, err := m.MarshalToSizedBuffer(b)
    50  		if err != nil {
    51  			return nil, err
    52  		}
    53  		return b[:n], nil
    54  	}
    55  }
    56  func (m *GenesisState) XXX_Merge(src proto.Message) {
    57  	xxx_messageInfo_GenesisState.Merge(m, src)
    58  }
    59  func (m *GenesisState) XXX_Size() int {
    60  	return m.Size()
    61  }
    62  func (m *GenesisState) XXX_DiscardUnknown() {
    63  	xxx_messageInfo_GenesisState.DiscardUnknown(m)
    64  }
    65  
    66  var xxx_messageInfo_GenesisState proto.InternalMessageInfo
    67  
    68  func (m *GenesisState) GetConstantFee() types.Coin {
    69  	if m != nil {
    70  		return m.ConstantFee
    71  	}
    72  	return types.Coin{}
    73  }
    74  
    75  func init() {
    76  	proto.RegisterType((*GenesisState)(nil), "cosmos.crisis.v1beta1.GenesisState")
    77  }
    78  
    79  func init() {
    80  	proto.RegisterFile("cosmos/crisis/v1beta1/genesis.proto", fileDescriptor_7a9c2781aa8a27ae)
    81  }
    82  
    83  var fileDescriptor_7a9c2781aa8a27ae = []byte{
    84  	// 241 bytes of a gzipped FileDescriptorProto
    85  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x4e, 0xce, 0x2f, 0xce,
    86  	0xcd, 0x2f, 0xd6, 0x4f, 0x2e, 0xca, 0x2c, 0xce, 0x2c, 0xd6, 0x2f, 0x33, 0x4c, 0x4a, 0x2d, 0x49,
    87  	0x34, 0xd4, 0x4f, 0x4f, 0xcd, 0x4b, 0x2d, 0xce, 0x2c, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17,
    88  	0x12, 0x85, 0x28, 0xd2, 0x83, 0x28, 0xd2, 0x83, 0x2a, 0x92, 0x12, 0x49, 0xcf, 0x4f, 0xcf, 0x07,
    89  	0xab, 0xd0, 0x07, 0xb1, 0x20, 0x8a, 0xa5, 0xe4, 0xa0, 0x26, 0x26, 0x25, 0x16, 0xa7, 0xc2, 0xcd,
    90  	0x4b, 0xce, 0xcf, 0xcc, 0x83, 0xca, 0x0b, 0x26, 0xe6, 0x66, 0xe6, 0xe5, 0xeb, 0x83, 0x49, 0x88,
    91  	0x90, 0x52, 0x38, 0x17, 0x8f, 0x3b, 0xc4, 0xc2, 0xe0, 0x92, 0xc4, 0x92, 0x54, 0x21, 0x77, 0x2e,
    92  	0x9e, 0xe4, 0xfc, 0xbc, 0xe2, 0x92, 0xc4, 0xbc, 0x92, 0xf8, 0xb4, 0xd4, 0x54, 0x09, 0x66, 0x05,
    93  	0x46, 0x0d, 0x6e, 0x23, 0x49, 0x3d, 0xa8, 0x33, 0x40, 0x26, 0xc3, 0x1c, 0xa1, 0xe7, 0x9c, 0x9f,
    94  	0x99, 0xe7, 0xc4, 0x79, 0xe2, 0x9e, 0x3c, 0xc3, 0x8a, 0xe7, 0x1b, 0xb4, 0x18, 0x83, 0xb8, 0x61,
    95  	0x3a, 0xdd, 0x52, 0x53, 0x9d, 0x5c, 0x4f, 0x3c, 0x92, 0x63, 0xbc, 0xf0, 0x48, 0x8e, 0xf1, 0xc1,
    96  	0x23, 0x39, 0xc6, 0x09, 0x8f, 0xe5, 0x18, 0x2e, 0x3c, 0x96, 0x63, 0xb8, 0xf1, 0x58, 0x8e, 0x21,
    97  	0x4a, 0x3b, 0x3d, 0xb3, 0x24, 0xa3, 0x34, 0x49, 0x2f, 0x39, 0x3f, 0x57, 0x1f, 0x16, 0x04, 0x60,
    98  	0x4a, 0xb7, 0x38, 0x25, 0x5b, 0xbf, 0x02, 0x16, 0x1e, 0x25, 0x95, 0x05, 0xa9, 0xc5, 0x49, 0x6c,
    99  	0x60, 0x67, 0x1a, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0x98, 0x45, 0xfd, 0x02, 0x2d, 0x01, 0x00,
   100  	0x00,
   101  }
   102  
   103  func (m *GenesisState) Marshal() (dAtA []byte, err error) {
   104  	size := m.Size()
   105  	dAtA = make([]byte, size)
   106  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   107  	if err != nil {
   108  		return nil, err
   109  	}
   110  	return dAtA[:n], nil
   111  }
   112  
   113  func (m *GenesisState) MarshalTo(dAtA []byte) (int, error) {
   114  	size := m.Size()
   115  	return m.MarshalToSizedBuffer(dAtA[:size])
   116  }
   117  
   118  func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   119  	i := len(dAtA)
   120  	_ = i
   121  	var l int
   122  	_ = l
   123  	{
   124  		size, err := m.ConstantFee.MarshalToSizedBuffer(dAtA[:i])
   125  		if err != nil {
   126  			return 0, err
   127  		}
   128  		i -= size
   129  		i = encodeVarintGenesis(dAtA, i, uint64(size))
   130  	}
   131  	i--
   132  	dAtA[i] = 0x1a
   133  	return len(dAtA) - i, nil
   134  }
   135  
   136  func encodeVarintGenesis(dAtA []byte, offset int, v uint64) int {
   137  	offset -= sovGenesis(v)
   138  	base := offset
   139  	for v >= 1<<7 {
   140  		dAtA[offset] = uint8(v&0x7f | 0x80)
   141  		v >>= 7
   142  		offset++
   143  	}
   144  	dAtA[offset] = uint8(v)
   145  	return base
   146  }
   147  func (m *GenesisState) Size() (n int) {
   148  	if m == nil {
   149  		return 0
   150  	}
   151  	var l int
   152  	_ = l
   153  	l = m.ConstantFee.Size()
   154  	n += 1 + l + sovGenesis(uint64(l))
   155  	return n
   156  }
   157  
   158  func sovGenesis(x uint64) (n int) {
   159  	return (math_bits.Len64(x|1) + 6) / 7
   160  }
   161  func sozGenesis(x uint64) (n int) {
   162  	return sovGenesis(uint64((x << 1) ^ uint64((int64(x) >> 63))))
   163  }
   164  func (m *GenesisState) Unmarshal(dAtA []byte) error {
   165  	l := len(dAtA)
   166  	iNdEx := 0
   167  	for iNdEx < l {
   168  		preIndex := iNdEx
   169  		var wire uint64
   170  		for shift := uint(0); ; shift += 7 {
   171  			if shift >= 64 {
   172  				return ErrIntOverflowGenesis
   173  			}
   174  			if iNdEx >= l {
   175  				return io.ErrUnexpectedEOF
   176  			}
   177  			b := dAtA[iNdEx]
   178  			iNdEx++
   179  			wire |= uint64(b&0x7F) << shift
   180  			if b < 0x80 {
   181  				break
   182  			}
   183  		}
   184  		fieldNum := int32(wire >> 3)
   185  		wireType := int(wire & 0x7)
   186  		if wireType == 4 {
   187  			return fmt.Errorf("proto: GenesisState: wiretype end group for non-group")
   188  		}
   189  		if fieldNum <= 0 {
   190  			return fmt.Errorf("proto: GenesisState: illegal tag %d (wire type %d)", fieldNum, wire)
   191  		}
   192  		switch fieldNum {
   193  		case 3:
   194  			if wireType != 2 {
   195  				return fmt.Errorf("proto: wrong wireType = %d for field ConstantFee", wireType)
   196  			}
   197  			var msglen int
   198  			for shift := uint(0); ; shift += 7 {
   199  				if shift >= 64 {
   200  					return ErrIntOverflowGenesis
   201  				}
   202  				if iNdEx >= l {
   203  					return io.ErrUnexpectedEOF
   204  				}
   205  				b := dAtA[iNdEx]
   206  				iNdEx++
   207  				msglen |= int(b&0x7F) << shift
   208  				if b < 0x80 {
   209  					break
   210  				}
   211  			}
   212  			if msglen < 0 {
   213  				return ErrInvalidLengthGenesis
   214  			}
   215  			postIndex := iNdEx + msglen
   216  			if postIndex < 0 {
   217  				return ErrInvalidLengthGenesis
   218  			}
   219  			if postIndex > l {
   220  				return io.ErrUnexpectedEOF
   221  			}
   222  			if err := m.ConstantFee.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
   223  				return err
   224  			}
   225  			iNdEx = postIndex
   226  		default:
   227  			iNdEx = preIndex
   228  			skippy, err := skipGenesis(dAtA[iNdEx:])
   229  			if err != nil {
   230  				return err
   231  			}
   232  			if (skippy < 0) || (iNdEx+skippy) < 0 {
   233  				return ErrInvalidLengthGenesis
   234  			}
   235  			if (iNdEx + skippy) > l {
   236  				return io.ErrUnexpectedEOF
   237  			}
   238  			iNdEx += skippy
   239  		}
   240  	}
   241  
   242  	if iNdEx > l {
   243  		return io.ErrUnexpectedEOF
   244  	}
   245  	return nil
   246  }
   247  func skipGenesis(dAtA []byte) (n int, err error) {
   248  	l := len(dAtA)
   249  	iNdEx := 0
   250  	depth := 0
   251  	for iNdEx < l {
   252  		var wire uint64
   253  		for shift := uint(0); ; shift += 7 {
   254  			if shift >= 64 {
   255  				return 0, ErrIntOverflowGenesis
   256  			}
   257  			if iNdEx >= l {
   258  				return 0, io.ErrUnexpectedEOF
   259  			}
   260  			b := dAtA[iNdEx]
   261  			iNdEx++
   262  			wire |= (uint64(b) & 0x7F) << shift
   263  			if b < 0x80 {
   264  				break
   265  			}
   266  		}
   267  		wireType := int(wire & 0x7)
   268  		switch wireType {
   269  		case 0:
   270  			for shift := uint(0); ; shift += 7 {
   271  				if shift >= 64 {
   272  					return 0, ErrIntOverflowGenesis
   273  				}
   274  				if iNdEx >= l {
   275  					return 0, io.ErrUnexpectedEOF
   276  				}
   277  				iNdEx++
   278  				if dAtA[iNdEx-1] < 0x80 {
   279  					break
   280  				}
   281  			}
   282  		case 1:
   283  			iNdEx += 8
   284  		case 2:
   285  			var length int
   286  			for shift := uint(0); ; shift += 7 {
   287  				if shift >= 64 {
   288  					return 0, ErrIntOverflowGenesis
   289  				}
   290  				if iNdEx >= l {
   291  					return 0, io.ErrUnexpectedEOF
   292  				}
   293  				b := dAtA[iNdEx]
   294  				iNdEx++
   295  				length |= (int(b) & 0x7F) << shift
   296  				if b < 0x80 {
   297  					break
   298  				}
   299  			}
   300  			if length < 0 {
   301  				return 0, ErrInvalidLengthGenesis
   302  			}
   303  			iNdEx += length
   304  		case 3:
   305  			depth++
   306  		case 4:
   307  			if depth == 0 {
   308  				return 0, ErrUnexpectedEndOfGroupGenesis
   309  			}
   310  			depth--
   311  		case 5:
   312  			iNdEx += 4
   313  		default:
   314  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
   315  		}
   316  		if iNdEx < 0 {
   317  			return 0, ErrInvalidLengthGenesis
   318  		}
   319  		if depth == 0 {
   320  			return iNdEx, nil
   321  		}
   322  	}
   323  	return 0, io.ErrUnexpectedEOF
   324  }
   325  
   326  var (
   327  	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
   328  	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
   329  	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
   330  )