github.com/cosmos/cosmos-sdk@v0.50.10/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/cosmos/cosmos-sdk/types/tx/amino" 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 // GenesisState defines the mint module's genesis state. 28 type GenesisState struct { 29 // minter is a space for holding current inflation information. 30 Minter Minter `protobuf:"bytes,1,opt,name=minter,proto3" json:"minter"` 31 // params defines all the parameters of the module. 32 Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"` 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_0e215eb1d09cd648, []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) GetMinter() Minter { 69 if m != nil { 70 return m.Minter 71 } 72 return Minter{} 73 } 74 75 func (m *GenesisState) GetParams() Params { 76 if m != nil { 77 return m.Params 78 } 79 return Params{} 80 } 81 82 func init() { 83 proto.RegisterType((*GenesisState)(nil), "cosmos.mint.v1beta1.GenesisState") 84 } 85 86 func init() { proto.RegisterFile("cosmos/mint/v1beta1/genesis.proto", fileDescriptor_0e215eb1d09cd648) } 87 88 var fileDescriptor_0e215eb1d09cd648 = []byte{ 89 // 234 bytes of a gzipped FileDescriptorProto 90 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x4c, 0xce, 0x2f, 0xce, 91 0xcd, 0x2f, 0xd6, 0xcf, 0xcd, 0xcc, 0x2b, 0xd1, 0x2f, 0x33, 0x4c, 0x4a, 0x2d, 0x49, 0x34, 0xd4, 92 0x4f, 0x4f, 0xcd, 0x4b, 0x2d, 0xce, 0x2c, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x86, 93 0x28, 0xd1, 0x03, 0x29, 0xd1, 0x83, 0x2a, 0x91, 0x12, 0x49, 0xcf, 0x4f, 0xcf, 0x07, 0xcb, 0xeb, 94 0x83, 0x58, 0x10, 0xa5, 0x52, 0x72, 0xd8, 0x4c, 0x03, 0xeb, 0x83, 0xc8, 0x0b, 0x26, 0xe6, 0x66, 95 0xe6, 0xe5, 0xeb, 0x83, 0x49, 0x88, 0x90, 0x52, 0x1f, 0x23, 0x17, 0x8f, 0x3b, 0xc4, 0xbe, 0xe0, 96 0x92, 0xc4, 0x92, 0x54, 0x21, 0x3b, 0x2e, 0x36, 0x90, 0x8e, 0xd4, 0x22, 0x09, 0x46, 0x05, 0x46, 97 0x0d, 0x6e, 0x23, 0x69, 0x3d, 0x2c, 0xf6, 0xeb, 0xf9, 0x82, 0x95, 0x38, 0x71, 0x9e, 0xb8, 0x27, 98 0xcf, 0xb0, 0xe2, 0xf9, 0x06, 0x2d, 0xc6, 0x20, 0xa8, 0x2e, 0x90, 0xfe, 0x82, 0xc4, 0xa2, 0xc4, 99 0xdc, 0x62, 0x09, 0x26, 0x3c, 0xfa, 0x03, 0xc0, 0x4a, 0x50, 0xf4, 0x43, 0x74, 0x39, 0x39, 0x9f, 100 0x78, 0x24, 0xc7, 0x78, 0xe1, 0x91, 0x1c, 0xe3, 0x83, 0x47, 0x72, 0x8c, 0x13, 0x1e, 0xcb, 0x31, 101 0x5c, 0x78, 0x2c, 0xc7, 0x70, 0xe3, 0xb1, 0x1c, 0x43, 0x94, 0x66, 0x7a, 0x66, 0x49, 0x46, 0x69, 102 0x92, 0x5e, 0x72, 0x7e, 0xae, 0x3e, 0xd4, 0xa3, 0x10, 0x4a, 0xb7, 0x38, 0x25, 0x5b, 0xbf, 0x02, 103 0xe2, 0xeb, 0x92, 0xca, 0x82, 0xd4, 0xe2, 0x24, 0x36, 0xb0, 0xe7, 0x8c, 0x01, 0x01, 0x00, 0x00, 104 0xff, 0xff, 0xf3, 0xd5, 0x6f, 0x47, 0x5f, 0x01, 0x00, 0x00, 105 } 106 107 func (m *GenesisState) Marshal() (dAtA []byte, err error) { 108 size := m.Size() 109 dAtA = make([]byte, size) 110 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 111 if err != nil { 112 return nil, err 113 } 114 return dAtA[:n], nil 115 } 116 117 func (m *GenesisState) MarshalTo(dAtA []byte) (int, error) { 118 size := m.Size() 119 return m.MarshalToSizedBuffer(dAtA[:size]) 120 } 121 122 func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { 123 i := len(dAtA) 124 _ = i 125 var l int 126 _ = l 127 { 128 size, err := m.Params.MarshalToSizedBuffer(dAtA[:i]) 129 if err != nil { 130 return 0, err 131 } 132 i -= size 133 i = encodeVarintGenesis(dAtA, i, uint64(size)) 134 } 135 i-- 136 dAtA[i] = 0x12 137 { 138 size, err := m.Minter.MarshalToSizedBuffer(dAtA[:i]) 139 if err != nil { 140 return 0, err 141 } 142 i -= size 143 i = encodeVarintGenesis(dAtA, i, uint64(size)) 144 } 145 i-- 146 dAtA[i] = 0xa 147 return len(dAtA) - i, nil 148 } 149 150 func encodeVarintGenesis(dAtA []byte, offset int, v uint64) int { 151 offset -= sovGenesis(v) 152 base := offset 153 for v >= 1<<7 { 154 dAtA[offset] = uint8(v&0x7f | 0x80) 155 v >>= 7 156 offset++ 157 } 158 dAtA[offset] = uint8(v) 159 return base 160 } 161 func (m *GenesisState) Size() (n int) { 162 if m == nil { 163 return 0 164 } 165 var l int 166 _ = l 167 l = m.Minter.Size() 168 n += 1 + l + sovGenesis(uint64(l)) 169 l = m.Params.Size() 170 n += 1 + l + sovGenesis(uint64(l)) 171 return n 172 } 173 174 func sovGenesis(x uint64) (n int) { 175 return (math_bits.Len64(x|1) + 6) / 7 176 } 177 func sozGenesis(x uint64) (n int) { 178 return sovGenesis(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 179 } 180 func (m *GenesisState) Unmarshal(dAtA []byte) error { 181 l := len(dAtA) 182 iNdEx := 0 183 for iNdEx < l { 184 preIndex := iNdEx 185 var wire uint64 186 for shift := uint(0); ; shift += 7 { 187 if shift >= 64 { 188 return ErrIntOverflowGenesis 189 } 190 if iNdEx >= l { 191 return io.ErrUnexpectedEOF 192 } 193 b := dAtA[iNdEx] 194 iNdEx++ 195 wire |= uint64(b&0x7F) << shift 196 if b < 0x80 { 197 break 198 } 199 } 200 fieldNum := int32(wire >> 3) 201 wireType := int(wire & 0x7) 202 if wireType == 4 { 203 return fmt.Errorf("proto: GenesisState: wiretype end group for non-group") 204 } 205 if fieldNum <= 0 { 206 return fmt.Errorf("proto: GenesisState: illegal tag %d (wire type %d)", fieldNum, wire) 207 } 208 switch fieldNum { 209 case 1: 210 if wireType != 2 { 211 return fmt.Errorf("proto: wrong wireType = %d for field Minter", wireType) 212 } 213 var msglen int 214 for shift := uint(0); ; shift += 7 { 215 if shift >= 64 { 216 return ErrIntOverflowGenesis 217 } 218 if iNdEx >= l { 219 return io.ErrUnexpectedEOF 220 } 221 b := dAtA[iNdEx] 222 iNdEx++ 223 msglen |= int(b&0x7F) << shift 224 if b < 0x80 { 225 break 226 } 227 } 228 if msglen < 0 { 229 return ErrInvalidLengthGenesis 230 } 231 postIndex := iNdEx + msglen 232 if postIndex < 0 { 233 return ErrInvalidLengthGenesis 234 } 235 if postIndex > l { 236 return io.ErrUnexpectedEOF 237 } 238 if err := m.Minter.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 239 return err 240 } 241 iNdEx = postIndex 242 case 2: 243 if wireType != 2 { 244 return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) 245 } 246 var msglen int 247 for shift := uint(0); ; shift += 7 { 248 if shift >= 64 { 249 return ErrIntOverflowGenesis 250 } 251 if iNdEx >= l { 252 return io.ErrUnexpectedEOF 253 } 254 b := dAtA[iNdEx] 255 iNdEx++ 256 msglen |= int(b&0x7F) << shift 257 if b < 0x80 { 258 break 259 } 260 } 261 if msglen < 0 { 262 return ErrInvalidLengthGenesis 263 } 264 postIndex := iNdEx + msglen 265 if postIndex < 0 { 266 return ErrInvalidLengthGenesis 267 } 268 if postIndex > l { 269 return io.ErrUnexpectedEOF 270 } 271 if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 272 return err 273 } 274 iNdEx = postIndex 275 default: 276 iNdEx = preIndex 277 skippy, err := skipGenesis(dAtA[iNdEx:]) 278 if err != nil { 279 return err 280 } 281 if (skippy < 0) || (iNdEx+skippy) < 0 { 282 return ErrInvalidLengthGenesis 283 } 284 if (iNdEx + skippy) > l { 285 return io.ErrUnexpectedEOF 286 } 287 iNdEx += skippy 288 } 289 } 290 291 if iNdEx > l { 292 return io.ErrUnexpectedEOF 293 } 294 return nil 295 } 296 func skipGenesis(dAtA []byte) (n int, err error) { 297 l := len(dAtA) 298 iNdEx := 0 299 depth := 0 300 for iNdEx < l { 301 var wire uint64 302 for shift := uint(0); ; shift += 7 { 303 if shift >= 64 { 304 return 0, ErrIntOverflowGenesis 305 } 306 if iNdEx >= l { 307 return 0, io.ErrUnexpectedEOF 308 } 309 b := dAtA[iNdEx] 310 iNdEx++ 311 wire |= (uint64(b) & 0x7F) << shift 312 if b < 0x80 { 313 break 314 } 315 } 316 wireType := int(wire & 0x7) 317 switch wireType { 318 case 0: 319 for shift := uint(0); ; shift += 7 { 320 if shift >= 64 { 321 return 0, ErrIntOverflowGenesis 322 } 323 if iNdEx >= l { 324 return 0, io.ErrUnexpectedEOF 325 } 326 iNdEx++ 327 if dAtA[iNdEx-1] < 0x80 { 328 break 329 } 330 } 331 case 1: 332 iNdEx += 8 333 case 2: 334 var length int 335 for shift := uint(0); ; shift += 7 { 336 if shift >= 64 { 337 return 0, ErrIntOverflowGenesis 338 } 339 if iNdEx >= l { 340 return 0, io.ErrUnexpectedEOF 341 } 342 b := dAtA[iNdEx] 343 iNdEx++ 344 length |= (int(b) & 0x7F) << shift 345 if b < 0x80 { 346 break 347 } 348 } 349 if length < 0 { 350 return 0, ErrInvalidLengthGenesis 351 } 352 iNdEx += length 353 case 3: 354 depth++ 355 case 4: 356 if depth == 0 { 357 return 0, ErrUnexpectedEndOfGroupGenesis 358 } 359 depth-- 360 case 5: 361 iNdEx += 4 362 default: 363 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 364 } 365 if iNdEx < 0 { 366 return 0, ErrInvalidLengthGenesis 367 } 368 if depth == 0 { 369 return iNdEx, nil 370 } 371 } 372 return 0, io.ErrUnexpectedEOF 373 } 374 375 var ( 376 ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") 377 ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") 378 ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") 379 )