const MaxArtworks, MaxSlots, MaxEditions, MaxTraitTypes, MaxTiers, MaxDictValues, MaxStoreValues, MaxNameLen, MaxValueLen, MaxTitleLen, MaxLabelLen, MaxStoreOnchainBytes, MaxChunk, SegmentBytes, MaxBatch, MaxPage
1const (
2 MaxArtworks = 10_000 // = core MaxSupplyCap
3 MaxSlots = 10_000 // Bind requires slots == maxSupply
4 MaxEditions = 10_000
5 MaxTraitTypes = 8 // core-path manifest slots "Trait 1".."Trait 8" (was 16)
6 MaxTiers = 8
7 MaxDictValues = 100 // distinct values per trait type (was 255)
8 MaxStoreValues = 255 // distinct values over all trait types of a store (new; u8 id + 1 in a record)
9 MaxNameLen = 20 // trait type and tier names
10 MaxValueLen = 32 // trait values (was 40)
11 MaxTitleLen = 64 // artwork titles (= engine.MaxTraitLen)
12 MaxLabelLen = 64
13 MaxStoreOnchainBytes = 4 << 20 // ~430 GNOT of deposit at 100 ugnot/B
14 MaxChunk = 262_144 // per AppendBytes call; a tx carries ~540 KB raw (WP0)
15 SegmentBytes = 32_768 // byte-log value size (~6% key overhead, measured)
16 MaxBatch = 100 // records per AddArtworks
17 MaxPage = 20 // Artworks page (was 50)
18)Limits (design §4 as amended by §0a / D4, and by the UP-M1 review fix: every read of the largest store these limits allow must stay far below the 3B query gas cap; worst cases are locked by zz_worst_gas_test.gno in r/reader).