Package assets is Sinopia's immutable asset store for uploaded collections (docs/uploaded-collections.md §4–§6, §0a). An artist creates a store, declares artworks (on-chain bytes or IPFS CIDs, each with its sha256, editions, a creator-assigned tier and trait values), uploads the on-chain bytes in chunks, and seals it. A sealed store never changes: the upload engine (r/…/engines/upload) binds one sealed store to one Draft collection and reads its art from here.
Guarantees (design §14):
- only the store's owner writes, and only from a wallet (direct MsgCall, IsUserCall); nothing here accepts or holds coins;
- a store is Draft until Seal, which is irreversible: records, titles, dictionaries and bytes are immutable afterwards;
- an "on-chain" artwork is complete only when every byte is stored, its sha256 equals the declared one and media.CheckImage passed (magic + dimensions; SVG through safe.AssertSVG, 16 KiB cap);
- an "ipfs" artwork always says ipfs; a raw CID's digest is checked against the declared sha256 on chain;
- every user string passed safe.AssertText and assertPlain (no '<', '>', '&', '"', '\'); JSON goes through safe.JSONWriter.
Storage is paid by the owner who writes it, and only the owner can free Draft data (Truncate), so refunds go back to the payer (T8).
sinopia4 (mainnet plan WP-F): imports p/media/v2 and p/safe/v2 instead of v1; the store logic, limits, record encoding and JSON bytes are unchanged. media/v2's CheckImage and CID functions delegate to safe/v2, the same checks core applies to an engine's media (I-15). WP-Z: every user string it stores (label, trait type and tier names, titles, values) refuses '<', '>', '&', '"' and '\' (assertPlain), so core and the reader JSON-escape upload text on safe/v2's native fast path (worst-store reader gas, wp-d-notes "Reader worst store", option 1).