github.com/Finschia/finschia-sdk@v0.48.1/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/Finschia/finschia-sdk/types" 9 _ "github.com/gogo/protobuf/gogoproto" 10 proto "github.com/gogo/protobuf/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 crisis module's genesis state. 28 type GenesisState struct { 29 // constant_fee is the fee used to verify the invariant in the crisis 30 // module. 31 ConstantFee types.Coin `protobuf:"bytes,3,opt,name=constant_fee,json=constantFee,proto3" json:"constant_fee" yaml:"constant_fee"` 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_7a9c2781aa8a27ae, []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) GetConstantFee() types.Coin { 68 if m != nil { 69 return m.ConstantFee 70 } 71 return types.Coin{} 72 } 73 74 func init() { 75 proto.RegisterType((*GenesisState)(nil), "cosmos.crisis.v1beta1.GenesisState") 76 } 77 78 func init() { 79 proto.RegisterFile("cosmos/crisis/v1beta1/genesis.proto", fileDescriptor_7a9c2781aa8a27ae) 80 } 81 82 var fileDescriptor_7a9c2781aa8a27ae = []byte{ 83 // 246 bytes of a gzipped FileDescriptorProto 84 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x4e, 0xce, 0x2f, 0xce, 85 0xcd, 0x2f, 0xd6, 0x4f, 0x2e, 0xca, 0x2c, 0xce, 0x2c, 0xd6, 0x2f, 0x33, 0x4c, 0x4a, 0x2d, 0x49, 86 0x34, 0xd4, 0x4f, 0x4f, 0xcd, 0x4b, 0x2d, 0xce, 0x2c, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 87 0x12, 0x85, 0x28, 0xd2, 0x83, 0x28, 0xd2, 0x83, 0x2a, 0x92, 0x12, 0x49, 0xcf, 0x4f, 0xcf, 0x07, 88 0xab, 0xd0, 0x07, 0xb1, 0x20, 0x8a, 0xa5, 0xe4, 0xa0, 0x26, 0x26, 0x25, 0x16, 0xa7, 0xc2, 0xcd, 89 0x4b, 0xce, 0xcf, 0xcc, 0x83, 0xc8, 0x2b, 0x65, 0x72, 0xf1, 0xb8, 0x43, 0x4c, 0x0f, 0x2e, 0x49, 90 0x2c, 0x49, 0x15, 0x8a, 0xe4, 0xe2, 0x49, 0xce, 0xcf, 0x2b, 0x2e, 0x49, 0xcc, 0x2b, 0x89, 0x4f, 91 0x4b, 0x4d, 0x95, 0x60, 0x56, 0x60, 0xd4, 0xe0, 0x36, 0x92, 0xd4, 0x83, 0xda, 0x09, 0x32, 0x06, 92 0x66, 0xa3, 0x9e, 0x73, 0x7e, 0x66, 0x9e, 0x93, 0xf4, 0x89, 0x7b, 0xf2, 0x0c, 0x9f, 0xee, 0xc9, 93 0x0b, 0x57, 0x26, 0xe6, 0xe6, 0x58, 0x29, 0x21, 0x6b, 0x56, 0x0a, 0xe2, 0x86, 0x71, 0xdd, 0x52, 94 0x53, 0x9d, 0x3c, 0x4f, 0x3c, 0x92, 0x63, 0xbc, 0xf0, 0x48, 0x8e, 0xf1, 0xc1, 0x23, 0x39, 0xc6, 95 0x09, 0x8f, 0xe5, 0x18, 0x2e, 0x3c, 0x96, 0x63, 0xb8, 0xf1, 0x58, 0x8e, 0x21, 0x4a, 0x3f, 0x3d, 96 0xb3, 0x24, 0xa3, 0x34, 0x49, 0x2f, 0x39, 0x3f, 0x57, 0xdf, 0x2d, 0x33, 0xaf, 0x38, 0x39, 0x23, 97 0x33, 0x51, 0x3f, 0x0d, 0xca, 0xd0, 0x2d, 0x4e, 0xc9, 0xd6, 0xaf, 0x80, 0x05, 0x49, 0x49, 0x65, 98 0x41, 0x6a, 0x71, 0x12, 0x1b, 0xd8, 0xf1, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0x3a, 0x17, 99 0xf7, 0x87, 0x30, 0x01, 0x00, 0x00, 100 } 101 102 func (m *GenesisState) Marshal() (dAtA []byte, err error) { 103 size := m.Size() 104 dAtA = make([]byte, size) 105 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 106 if err != nil { 107 return nil, err 108 } 109 return dAtA[:n], nil 110 } 111 112 func (m *GenesisState) MarshalTo(dAtA []byte) (int, error) { 113 size := m.Size() 114 return m.MarshalToSizedBuffer(dAtA[:size]) 115 } 116 117 func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { 118 i := len(dAtA) 119 _ = i 120 var l int 121 _ = l 122 { 123 size, err := m.ConstantFee.MarshalToSizedBuffer(dAtA[:i]) 124 if err != nil { 125 return 0, err 126 } 127 i -= size 128 i = encodeVarintGenesis(dAtA, i, uint64(size)) 129 } 130 i-- 131 dAtA[i] = 0x1a 132 return len(dAtA) - i, nil 133 } 134 135 func encodeVarintGenesis(dAtA []byte, offset int, v uint64) int { 136 offset -= sovGenesis(v) 137 base := offset 138 for v >= 1<<7 { 139 dAtA[offset] = uint8(v&0x7f | 0x80) 140 v >>= 7 141 offset++ 142 } 143 dAtA[offset] = uint8(v) 144 return base 145 } 146 func (m *GenesisState) Size() (n int) { 147 if m == nil { 148 return 0 149 } 150 var l int 151 _ = l 152 l = m.ConstantFee.Size() 153 n += 1 + l + sovGenesis(uint64(l)) 154 return n 155 } 156 157 func sovGenesis(x uint64) (n int) { 158 return (math_bits.Len64(x|1) + 6) / 7 159 } 160 func sozGenesis(x uint64) (n int) { 161 return sovGenesis(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 162 } 163 func (m *GenesisState) Unmarshal(dAtA []byte) error { 164 l := len(dAtA) 165 iNdEx := 0 166 for iNdEx < l { 167 preIndex := iNdEx 168 var wire uint64 169 for shift := uint(0); ; shift += 7 { 170 if shift >= 64 { 171 return ErrIntOverflowGenesis 172 } 173 if iNdEx >= l { 174 return io.ErrUnexpectedEOF 175 } 176 b := dAtA[iNdEx] 177 iNdEx++ 178 wire |= uint64(b&0x7F) << shift 179 if b < 0x80 { 180 break 181 } 182 } 183 fieldNum := int32(wire >> 3) 184 wireType := int(wire & 0x7) 185 if wireType == 4 { 186 return fmt.Errorf("proto: GenesisState: wiretype end group for non-group") 187 } 188 if fieldNum <= 0 { 189 return fmt.Errorf("proto: GenesisState: illegal tag %d (wire type %d)", fieldNum, wire) 190 } 191 switch fieldNum { 192 case 3: 193 if wireType != 2 { 194 return fmt.Errorf("proto: wrong wireType = %d for field ConstantFee", wireType) 195 } 196 var msglen int 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 msglen |= int(b&0x7F) << shift 207 if b < 0x80 { 208 break 209 } 210 } 211 if msglen < 0 { 212 return ErrInvalidLengthGenesis 213 } 214 postIndex := iNdEx + msglen 215 if postIndex < 0 { 216 return ErrInvalidLengthGenesis 217 } 218 if postIndex > l { 219 return io.ErrUnexpectedEOF 220 } 221 if err := m.ConstantFee.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 222 return err 223 } 224 iNdEx = postIndex 225 default: 226 iNdEx = preIndex 227 skippy, err := skipGenesis(dAtA[iNdEx:]) 228 if err != nil { 229 return err 230 } 231 if (skippy < 0) || (iNdEx+skippy) < 0 { 232 return ErrInvalidLengthGenesis 233 } 234 if (iNdEx + skippy) > l { 235 return io.ErrUnexpectedEOF 236 } 237 iNdEx += skippy 238 } 239 } 240 241 if iNdEx > l { 242 return io.ErrUnexpectedEOF 243 } 244 return nil 245 } 246 func skipGenesis(dAtA []byte) (n int, err error) { 247 l := len(dAtA) 248 iNdEx := 0 249 depth := 0 250 for iNdEx < l { 251 var wire uint64 252 for shift := uint(0); ; shift += 7 { 253 if shift >= 64 { 254 return 0, ErrIntOverflowGenesis 255 } 256 if iNdEx >= l { 257 return 0, io.ErrUnexpectedEOF 258 } 259 b := dAtA[iNdEx] 260 iNdEx++ 261 wire |= (uint64(b) & 0x7F) << shift 262 if b < 0x80 { 263 break 264 } 265 } 266 wireType := int(wire & 0x7) 267 switch wireType { 268 case 0: 269 for shift := uint(0); ; shift += 7 { 270 if shift >= 64 { 271 return 0, ErrIntOverflowGenesis 272 } 273 if iNdEx >= l { 274 return 0, io.ErrUnexpectedEOF 275 } 276 iNdEx++ 277 if dAtA[iNdEx-1] < 0x80 { 278 break 279 } 280 } 281 case 1: 282 iNdEx += 8 283 case 2: 284 var length int 285 for shift := uint(0); ; shift += 7 { 286 if shift >= 64 { 287 return 0, ErrIntOverflowGenesis 288 } 289 if iNdEx >= l { 290 return 0, io.ErrUnexpectedEOF 291 } 292 b := dAtA[iNdEx] 293 iNdEx++ 294 length |= (int(b) & 0x7F) << shift 295 if b < 0x80 { 296 break 297 } 298 } 299 if length < 0 { 300 return 0, ErrInvalidLengthGenesis 301 } 302 iNdEx += length 303 case 3: 304 depth++ 305 case 4: 306 if depth == 0 { 307 return 0, ErrUnexpectedEndOfGroupGenesis 308 } 309 depth-- 310 case 5: 311 iNdEx += 4 312 default: 313 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 314 } 315 if iNdEx < 0 { 316 return 0, ErrInvalidLengthGenesis 317 } 318 if depth == 0 { 319 return iNdEx, nil 320 } 321 } 322 return 0, io.ErrUnexpectedEOF 323 } 324 325 var ( 326 ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") 327 ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") 328 ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") 329 )