github.com/InjectiveLabs/sdk-go@v1.53.0/chain/tokenfactory/types/params.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: injective/tokenfactory/v1beta1/params.proto 3 4 package types 5 6 import ( 7 fmt "fmt" 8 _ "github.com/cosmos/cosmos-proto" 9 github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" 10 types "github.com/cosmos/cosmos-sdk/types" 11 _ "github.com/cosmos/cosmos-sdk/types/tx/amino" 12 _ "github.com/cosmos/gogoproto/gogoproto" 13 proto "github.com/cosmos/gogoproto/proto" 14 io "io" 15 math "math" 16 math_bits "math/bits" 17 ) 18 19 // Reference imports to suppress errors if they are not otherwise used. 20 var _ = proto.Marshal 21 var _ = fmt.Errorf 22 var _ = math.Inf 23 24 // This is a compile-time assertion to ensure that this generated file 25 // is compatible with the proto package it is being compiled against. 26 // A compilation error at this line likely means your copy of the 27 // proto package needs to be updated. 28 const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package 29 30 // Params defines the parameters for the tokenfactory module. 31 type Params struct { 32 DenomCreationFee github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=denom_creation_fee,json=denomCreationFee,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"denom_creation_fee" yaml:"denom_creation_fee"` 33 } 34 35 func (m *Params) Reset() { *m = Params{} } 36 func (m *Params) String() string { return proto.CompactTextString(m) } 37 func (*Params) ProtoMessage() {} 38 func (*Params) Descriptor() ([]byte, []int) { 39 return fileDescriptor_91405c82ccfd2f8a, []int{0} 40 } 41 func (m *Params) XXX_Unmarshal(b []byte) error { 42 return m.Unmarshal(b) 43 } 44 func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 45 if deterministic { 46 return xxx_messageInfo_Params.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 *Params) XXX_Merge(src proto.Message) { 57 xxx_messageInfo_Params.Merge(m, src) 58 } 59 func (m *Params) XXX_Size() int { 60 return m.Size() 61 } 62 func (m *Params) XXX_DiscardUnknown() { 63 xxx_messageInfo_Params.DiscardUnknown(m) 64 } 65 66 var xxx_messageInfo_Params proto.InternalMessageInfo 67 68 func (m *Params) GetDenomCreationFee() github_com_cosmos_cosmos_sdk_types.Coins { 69 if m != nil { 70 return m.DenomCreationFee 71 } 72 return nil 73 } 74 75 func init() { 76 proto.RegisterType((*Params)(nil), "injective.tokenfactory.v1beta1.Params") 77 } 78 79 func init() { 80 proto.RegisterFile("injective/tokenfactory/v1beta1/params.proto", fileDescriptor_91405c82ccfd2f8a) 81 } 82 83 var fileDescriptor_91405c82ccfd2f8a = []byte{ 84 // 349 bytes of a gzipped FileDescriptorProto 85 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x90, 0x31, 0x6b, 0x2a, 0x41, 86 0x10, 0xc7, 0xef, 0x78, 0x60, 0xe1, 0x6b, 0xde, 0x93, 0x57, 0x3c, 0x85, 0xac, 0xe1, 0x2a, 0x49, 87 0xf0, 0x16, 0x13, 0x48, 0x61, 0xa9, 0x10, 0x08, 0x44, 0x08, 0x96, 0x69, 0x64, 0xee, 0x6e, 0xd4, 88 0x8d, 0xee, 0x8e, 0xdc, 0xae, 0xc2, 0x7d, 0x85, 0x54, 0xa9, 0xf2, 0x21, 0x52, 0xe5, 0x4b, 0x04, 89 0x2c, 0x2d, 0x53, 0x99, 0xa0, 0x45, 0xfa, 0x7c, 0x82, 0xe0, 0xde, 0x2a, 0x86, 0x10, 0xd2, 0xec, 90 0xee, 0xec, 0xfc, 0xe7, 0xf7, 0x9f, 0x99, 0xe2, 0xb1, 0x50, 0x37, 0x18, 0x1b, 0x31, 0x43, 0x6e, 91 0x68, 0x84, 0xaa, 0x0f, 0xb1, 0xa1, 0x34, 0xe3, 0xb3,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 0xac, 0x98, 103 0xff, 0xba, 0x62, 0xfe, 0xdd, 0x9a, 0x79, 0x8b, 0x35, 0xf3, 0x9e, 0xd7, 0xcc, 0xbb, 0xee, 0xee, 104 0x39, 0x5f, 0x6c, 0x19, 0x97, 0x10, 0x69, 0xbe, 0x23, 0xd6, 0x63, 0x4a, 0x71, 0x3f, 0x1c, 0x82, 105 0x50, 0x5c, 0x52, 0x32, 0x1d, 0xa3, 0xfe, 0x6c, 0x67, 0x3b, 0x8d, 0x0a, 0x76, 0x79, 0xa7, 0x1f, 106 0x01, 0x00, 0x00, 0xff, 0xff, 0x7f, 0xcd, 0x91, 0xe3, 0x27, 0x02, 0x00, 0x00, 107 } 108 109 func (m *Params) Marshal() (dAtA []byte, err error) { 110 size := m.Size() 111 dAtA = make([]byte, size) 112 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 113 if err != nil { 114 return nil, err 115 } 116 return dAtA[:n], nil 117 } 118 119 func (m *Params) MarshalTo(dAtA []byte) (int, error) { 120 size := m.Size() 121 return m.MarshalToSizedBuffer(dAtA[:size]) 122 } 123 124 func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { 125 i := len(dAtA) 126 _ = i 127 var l int 128 _ = l 129 if len(m.DenomCreationFee) > 0 { 130 for iNdEx := len(m.DenomCreationFee) - 1; iNdEx >= 0; iNdEx-- { 131 { 132 size, err := m.DenomCreationFee[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 133 if err != nil { 134 return 0, err 135 } 136 i -= size 137 i = encodeVarintParams(dAtA, i, uint64(size)) 138 } 139 i-- 140 dAtA[i] = 0xa 141 } 142 } 143 return len(dAtA) - i, nil 144 } 145 146 func encodeVarintParams(dAtA []byte, offset int, v uint64) int { 147 offset -= sovParams(v) 148 base := offset 149 for v >= 1<<7 { 150 dAtA[offset] = uint8(v&0x7f | 0x80) 151 v >>= 7 152 offset++ 153 } 154 dAtA[offset] = uint8(v) 155 return base 156 } 157 func (m *Params) Size() (n int) { 158 if m == nil { 159 return 0 160 } 161 var l int 162 _ = l 163 if len(m.DenomCreationFee) > 0 { 164 for _, e := range m.DenomCreationFee { 165 l = e.Size() 166 n += 1 + l + sovParams(uint64(l)) 167 } 168 } 169 return n 170 } 171 172 func sovParams(x uint64) (n int) { 173 return (math_bits.Len64(x|1) + 6) / 7 174 } 175 func sozParams(x uint64) (n int) { 176 return sovParams(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 177 } 178 func (m *Params) Unmarshal(dAtA []byte) error { 179 l := len(dAtA) 180 iNdEx := 0 181 for iNdEx < l { 182 preIndex := iNdEx 183 var wire uint64 184 for shift := uint(0); ; shift += 7 { 185 if shift >= 64 { 186 return ErrIntOverflowParams 187 } 188 if iNdEx >= l { 189 return io.ErrUnexpectedEOF 190 } 191 b := dAtA[iNdEx] 192 iNdEx++ 193 wire |= uint64(b&0x7F) << shift 194 if b < 0x80 { 195 break 196 } 197 } 198 fieldNum := int32(wire >> 3) 199 wireType := int(wire & 0x7) 200 if wireType == 4 { 201 return fmt.Errorf("proto: Params: wiretype end group for non-group") 202 } 203 if fieldNum <= 0 { 204 return fmt.Errorf("proto: Params: illegal tag %d (wire type %d)", fieldNum, wire) 205 } 206 switch fieldNum { 207 case 1: 208 if wireType != 2 { 209 return fmt.Errorf("proto: wrong wireType = %d for field DenomCreationFee", wireType) 210 } 211 var msglen int 212 for shift := uint(0); ; shift += 7 { 213 if shift >= 64 { 214 return ErrIntOverflowParams 215 } 216 if iNdEx >= l { 217 return io.ErrUnexpectedEOF 218 } 219 b := dAtA[iNdEx] 220 iNdEx++ 221 msglen |= int(b&0x7F) << shift 222 if b < 0x80 { 223 break 224 } 225 } 226 if msglen < 0 { 227 return ErrInvalidLengthParams 228 } 229 postIndex := iNdEx + msglen 230 if postIndex < 0 { 231 return ErrInvalidLengthParams 232 } 233 if postIndex > l { 234 return io.ErrUnexpectedEOF 235 } 236 m.DenomCreationFee = append(m.DenomCreationFee, types.Coin{}) 237 if err := m.DenomCreationFee[len(m.DenomCreationFee)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 238 return err 239 } 240 iNdEx = postIndex 241 default: 242 iNdEx = preIndex 243 skippy, err := skipParams(dAtA[iNdEx:]) 244 if err != nil { 245 return err 246 } 247 if (skippy < 0) || (iNdEx+skippy) < 0 { 248 return ErrInvalidLengthParams 249 } 250 if (iNdEx + skippy) > l { 251 return io.ErrUnexpectedEOF 252 } 253 iNdEx += skippy 254 } 255 } 256 257 if iNdEx > l { 258 return io.ErrUnexpectedEOF 259 } 260 return nil 261 } 262 func skipParams(dAtA []byte) (n int, err error) { 263 l := len(dAtA) 264 iNdEx := 0 265 depth := 0 266 for iNdEx < l { 267 var wire uint64 268 for shift := uint(0); ; shift += 7 { 269 if shift >= 64 { 270 return 0, ErrIntOverflowParams 271 } 272 if iNdEx >= l { 273 return 0, io.ErrUnexpectedEOF 274 } 275 b := dAtA[iNdEx] 276 iNdEx++ 277 wire |= (uint64(b) & 0x7F) << shift 278 if b < 0x80 { 279 break 280 } 281 } 282 wireType := int(wire & 0x7) 283 switch wireType { 284 case 0: 285 for shift := uint(0); ; shift += 7 { 286 if shift >= 64 { 287 return 0, ErrIntOverflowParams 288 } 289 if iNdEx >= l { 290 return 0, io.ErrUnexpectedEOF 291 } 292 iNdEx++ 293 if dAtA[iNdEx-1] < 0x80 { 294 break 295 } 296 } 297 case 1: 298 iNdEx += 8 299 case 2: 300 var length int 301 for shift := uint(0); ; shift += 7 { 302 if shift >= 64 { 303 return 0, ErrIntOverflowParams 304 } 305 if iNdEx >= l { 306 return 0, io.ErrUnexpectedEOF 307 } 308 b := dAtA[iNdEx] 309 iNdEx++ 310 length |= (int(b) & 0x7F) << shift 311 if b < 0x80 { 312 break 313 } 314 } 315 if length < 0 { 316 return 0, ErrInvalidLengthParams 317 } 318 iNdEx += length 319 case 3: 320 depth++ 321 case 4: 322 if depth == 0 { 323 return 0, ErrUnexpectedEndOfGroupParams 324 } 325 depth-- 326 case 5: 327 iNdEx += 4 328 default: 329 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 330 } 331 if iNdEx < 0 { 332 return 0, ErrInvalidLengthParams 333 } 334 if depth == 0 { 335 return iNdEx, nil 336 } 337 } 338 return 0, io.ErrUnexpectedEOF 339 } 340 341 var ( 342 ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") 343 ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") 344 ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") 345 )