github.com/cosmos/cosmos-sdk@v0.50.10/x/auth/types/genesis.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: cosmos/auth/v1beta1/genesis.proto 3 4 package types 5 6 import ( 7 fmt "fmt" 8 types "github.com/cosmos/cosmos-sdk/codec/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 auth module's genesis state. 29 type GenesisState struct { 30 // params defines all the parameters of the module. 31 Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` 32 // accounts are the accounts present at genesis. 33 Accounts []*types.Any `protobuf:"bytes,2,rep,name=accounts,proto3" json:"accounts,omitempty"` 34 } 35 36 func (m *GenesisState) Reset() { *m = GenesisState{} } 37 func (m *GenesisState) String() string { return proto.CompactTextString(m) } 38 func (*GenesisState) ProtoMessage() {} 39 func (*GenesisState) Descriptor() ([]byte, []int) { 40 return fileDescriptor_d897ccbce9822332, []int{0} 41 } 42 func (m *GenesisState) XXX_Unmarshal(b []byte) error { 43 return m.Unmarshal(b) 44 } 45 func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 46 if deterministic { 47 return xxx_messageInfo_GenesisState.Marshal(b, m, deterministic) 48 } else { 49 b = b[:cap(b)] 50 n, err := m.MarshalToSizedBuffer(b) 51 if err != nil { 52 return nil, err 53 } 54 return b[:n], nil 55 } 56 } 57 func (m *GenesisState) XXX_Merge(src proto.Message) { 58 xxx_messageInfo_GenesisState.Merge(m, src) 59 } 60 func (m *GenesisState) XXX_Size() int { 61 return m.Size() 62 } 63 func (m *GenesisState) XXX_DiscardUnknown() { 64 xxx_messageInfo_GenesisState.DiscardUnknown(m) 65 } 66 67 var xxx_messageInfo_GenesisState proto.InternalMessageInfo 68 69 func (m *GenesisState) GetParams() Params { 70 if m != nil { 71 return m.Params 72 } 73 return Params{} 74 } 75 76 func (m *GenesisState) GetAccounts() []*types.Any { 77 if m != nil { 78 return m.Accounts 79 } 80 return nil 81 } 82 83 func init() { 84 proto.RegisterType((*GenesisState)(nil), "cosmos.auth.v1beta1.GenesisState") 85 } 86 87 func init() { proto.RegisterFile("cosmos/auth/v1beta1/genesis.proto", fileDescriptor_d897ccbce9822332) } 88 89 var fileDescriptor_d897ccbce9822332 = []byte{ 90 // 269 bytes of a gzipped FileDescriptorProto 91 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x4c, 0xce, 0x2f, 0xce, 92 0xcd, 0x2f, 0xd6, 0x4f, 0x2c, 0x2d, 0xc9, 0xd0, 0x2f, 0x33, 0x4c, 0x4a, 0x2d, 0x49, 0x34, 0xd4, 93 0x4f, 0x4f, 0xcd, 0x4b, 0x2d, 0xce, 0x2c, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x86, 94 0x28, 0xd1, 0x03, 0x29, 0xd1, 0x83, 0x2a, 0x91, 0x92, 0x4c, 0xcf, 0xcf, 0x4f, 0xcf, 0x49, 0xd5, 95 0x07, 0x2b, 0x49, 0x2a, 0x4d, 0xd3, 0x4f, 0xcc, 0xab, 0x84, 0xa8, 0x97, 0x12, 0x49, 0xcf, 0x4f, 96 0xcf, 0x07, 0x33, 0xf5, 0x41, 0x2c, 0xa8, 0xa8, 0x1c, 0x36, 0x8b, 0xc0, 0x46, 0x42, 0xe4, 0x05, 97 0x13, 0x73, 0x33, 0xf3, 0xf2, 0xf5, 0xc1, 0x24, 0x44, 0x48, 0xa9, 0x81, 0x91, 0x8b, 0xc7, 0x1d, 98 0xe2, 0x94, 0xe0, 0x92, 0xc4, 0x92, 0x54, 0x21, 0x3b, 0x2e, 0xb6, 0x82, 0xc4, 0xa2, 0xc4, 0xdc, 99 0x62, 0x09, 0x46, 0x05, 0x46, 0x0d, 0x6e, 0x23, 0x69, 0x3d, 0x2c, 0x4e, 0xd3, 0x0b, 0x00, 0x2b, 100 0x71, 0xe2, 0x3c, 0x71, 0x4f, 0x9e, 0x61, 0xc5, 0xf3, 0x0d, 0x5a, 0x8c, 0x41, 0x50, 0x5d, 0x42, 101 0x06, 0x5c, 0x1c, 0x89, 0xc9, 0xc9, 0xf9, 0xa5, 0x79, 0x25, 0xc5, 0x12, 0x4c, 0x0a, 0xcc, 0x1a, 102 0xdc, 0x46, 0x22, 0x7a, 0x10, 0x7f, 0xe8, 0xc1, 0xfc, 0xa1, 0xe7, 0x98, 0x57, 0x19, 0x04, 0x57, 103 0xe5, 0xe4, 0x7c, 0xe2, 0x91, 0x1c, 0xe3, 0x85, 0x47, 0x72, 0x8c, 0x0f, 0x1e, 0xc9, 0x31, 0x4e, 104 0x78, 0x2c, 0xc7, 0x70, 0xe1, 0xb1, 0x1c, 0xc3, 0x8d, 0xc7, 0x72, 0x0c, 0x51, 0x9a, 0xe9, 0x99, 105 0x25, 0x19, 0xa5, 0x49, 0x7a, 0xc9, 0xf9, 0xb9, 0xfa, 0x50, 0xaf, 0x41, 0x28, 0xdd, 0xe2, 0x94, 106 0x6c, 0xfd, 0x0a, 0x88, 0x3f, 0x4b, 0x2a, 0x0b, 0x52, 0x8b, 0x93, 0xd8, 0xc0, 0x86, 0x1b, 0x03, 107 0x02, 0x00, 0x00, 0xff, 0xff, 0xf5, 0x70, 0x8d, 0xea, 0x6c, 0x01, 0x00, 0x00, 108 } 109 110 func (m *GenesisState) Marshal() (dAtA []byte, err error) { 111 size := m.Size() 112 dAtA = make([]byte, size) 113 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 114 if err != nil { 115 return nil, err 116 } 117 return dAtA[:n], nil 118 } 119 120 func (m *GenesisState) MarshalTo(dAtA []byte) (int, error) { 121 size := m.Size() 122 return m.MarshalToSizedBuffer(dAtA[:size]) 123 } 124 125 func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { 126 i := len(dAtA) 127 _ = i 128 var l int 129 _ = l 130 if len(m.Accounts) > 0 { 131 for iNdEx := len(m.Accounts) - 1; iNdEx >= 0; iNdEx-- { 132 { 133 size, err := m.Accounts[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 134 if err != nil { 135 return 0, err 136 } 137 i -= size 138 i = encodeVarintGenesis(dAtA, i, uint64(size)) 139 } 140 i-- 141 dAtA[i] = 0x12 142 } 143 } 144 { 145 size, err := m.Params.MarshalToSizedBuffer(dAtA[:i]) 146 if err != nil { 147 return 0, err 148 } 149 i -= size 150 i = encodeVarintGenesis(dAtA, i, uint64(size)) 151 } 152 i-- 153 dAtA[i] = 0xa 154 return len(dAtA) - i, nil 155 } 156 157 func encodeVarintGenesis(dAtA []byte, offset int, v uint64) int { 158 offset -= sovGenesis(v) 159 base := offset 160 for v >= 1<<7 { 161 dAtA[offset] = uint8(v&0x7f | 0x80) 162 v >>= 7 163 offset++ 164 } 165 dAtA[offset] = uint8(v) 166 return base 167 } 168 func (m *GenesisState) Size() (n int) { 169 if m == nil { 170 return 0 171 } 172 var l int 173 _ = l 174 l = m.Params.Size() 175 n += 1 + l + sovGenesis(uint64(l)) 176 if len(m.Accounts) > 0 { 177 for _, e := range m.Accounts { 178 l = e.Size() 179 n += 1 + l + sovGenesis(uint64(l)) 180 } 181 } 182 return n 183 } 184 185 func sovGenesis(x uint64) (n int) { 186 return (math_bits.Len64(x|1) + 6) / 7 187 } 188 func sozGenesis(x uint64) (n int) { 189 return sovGenesis(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 190 } 191 func (m *GenesisState) Unmarshal(dAtA []byte) error { 192 l := len(dAtA) 193 iNdEx := 0 194 for iNdEx < l { 195 preIndex := iNdEx 196 var wire uint64 197 for shift := uint(0); ; shift += 7 { 198 if shift >= 64 { 199 return ErrIntOverflowGenesis 200 } 201 if iNdEx >= l { 202 return io.ErrUnexpectedEOF 203 } 204 b := dAtA[iNdEx] 205 iNdEx++ 206 wire |= uint64(b&0x7F) << shift 207 if b < 0x80 { 208 break 209 } 210 } 211 fieldNum := int32(wire >> 3) 212 wireType := int(wire & 0x7) 213 if wireType == 4 { 214 return fmt.Errorf("proto: GenesisState: wiretype end group for non-group") 215 } 216 if fieldNum <= 0 { 217 return fmt.Errorf("proto: GenesisState: illegal tag %d (wire type %d)", fieldNum, wire) 218 } 219 switch fieldNum { 220 case 1: 221 if wireType != 2 { 222 return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) 223 } 224 var msglen int 225 for shift := uint(0); ; shift += 7 { 226 if shift >= 64 { 227 return ErrIntOverflowGenesis 228 } 229 if iNdEx >= l { 230 return io.ErrUnexpectedEOF 231 } 232 b := dAtA[iNdEx] 233 iNdEx++ 234 msglen |= int(b&0x7F) << shift 235 if b < 0x80 { 236 break 237 } 238 } 239 if msglen < 0 { 240 return ErrInvalidLengthGenesis 241 } 242 postIndex := iNdEx + msglen 243 if postIndex < 0 { 244 return ErrInvalidLengthGenesis 245 } 246 if postIndex > l { 247 return io.ErrUnexpectedEOF 248 } 249 if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 250 return err 251 } 252 iNdEx = postIndex 253 case 2: 254 if wireType != 2 { 255 return fmt.Errorf("proto: wrong wireType = %d for field Accounts", wireType) 256 } 257 var msglen int 258 for shift := uint(0); ; shift += 7 { 259 if shift >= 64 { 260 return ErrIntOverflowGenesis 261 } 262 if iNdEx >= l { 263 return io.ErrUnexpectedEOF 264 } 265 b := dAtA[iNdEx] 266 iNdEx++ 267 msglen |= int(b&0x7F) << shift 268 if b < 0x80 { 269 break 270 } 271 } 272 if msglen < 0 { 273 return ErrInvalidLengthGenesis 274 } 275 postIndex := iNdEx + msglen 276 if postIndex < 0 { 277 return ErrInvalidLengthGenesis 278 } 279 if postIndex > l { 280 return io.ErrUnexpectedEOF 281 } 282 m.Accounts = append(m.Accounts, &types.Any{}) 283 if err := m.Accounts[len(m.Accounts)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 284 return err 285 } 286 iNdEx = postIndex 287 default: 288 iNdEx = preIndex 289 skippy, err := skipGenesis(dAtA[iNdEx:]) 290 if err != nil { 291 return err 292 } 293 if (skippy < 0) || (iNdEx+skippy) < 0 { 294 return ErrInvalidLengthGenesis 295 } 296 if (iNdEx + skippy) > l { 297 return io.ErrUnexpectedEOF 298 } 299 iNdEx += skippy 300 } 301 } 302 303 if iNdEx > l { 304 return io.ErrUnexpectedEOF 305 } 306 return nil 307 } 308 func skipGenesis(dAtA []byte) (n int, err error) { 309 l := len(dAtA) 310 iNdEx := 0 311 depth := 0 312 for iNdEx < l { 313 var wire uint64 314 for shift := uint(0); ; shift += 7 { 315 if shift >= 64 { 316 return 0, ErrIntOverflowGenesis 317 } 318 if iNdEx >= l { 319 return 0, io.ErrUnexpectedEOF 320 } 321 b := dAtA[iNdEx] 322 iNdEx++ 323 wire |= (uint64(b) & 0x7F) << shift 324 if b < 0x80 { 325 break 326 } 327 } 328 wireType := int(wire & 0x7) 329 switch wireType { 330 case 0: 331 for shift := uint(0); ; shift += 7 { 332 if shift >= 64 { 333 return 0, ErrIntOverflowGenesis 334 } 335 if iNdEx >= l { 336 return 0, io.ErrUnexpectedEOF 337 } 338 iNdEx++ 339 if dAtA[iNdEx-1] < 0x80 { 340 break 341 } 342 } 343 case 1: 344 iNdEx += 8 345 case 2: 346 var length int 347 for shift := uint(0); ; shift += 7 { 348 if shift >= 64 { 349 return 0, ErrIntOverflowGenesis 350 } 351 if iNdEx >= l { 352 return 0, io.ErrUnexpectedEOF 353 } 354 b := dAtA[iNdEx] 355 iNdEx++ 356 length |= (int(b) & 0x7F) << shift 357 if b < 0x80 { 358 break 359 } 360 } 361 if length < 0 { 362 return 0, ErrInvalidLengthGenesis 363 } 364 iNdEx += length 365 case 3: 366 depth++ 367 case 4: 368 if depth == 0 { 369 return 0, ErrUnexpectedEndOfGroupGenesis 370 } 371 depth-- 372 case 5: 373 iNdEx += 4 374 default: 375 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 376 } 377 if iNdEx < 0 { 378 return 0, ErrInvalidLengthGenesis 379 } 380 if depth == 0 { 381 return iNdEx, nil 382 } 383 } 384 return 0, io.ErrUnexpectedEOF 385 } 386 387 var ( 388 ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") 389 ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") 390 ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") 391 )