SeriesEmitterLib
IPFS_BASE_URI
Section titled “IPFS_BASE_URI”string IPFS_BASE_URIevent URI(string value, uint256 id)NoPendingEvents
Section titled “NoPendingEvents”error NoPendingEvents()No pending batch events to emit.
InvalidLimit
Section titled “InvalidLimit”error InvalidLimit()Limit parameter is zero or exceeds maximum.
PermanentURI
Section titled “PermanentURI”event PermanentURI(string uri, uint256 tokenId)Token-level metadata permanently frozen (OpenSea compliant).
https://docs.opensea.io/docs/metadata-standards#freezing-metadata
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| uri | string | Full metadata URI. |
| tokenId | uint256 | Token identifier. |
emitURIs
Section titled “emitURIs”function emitURIs(uint256[] seriesTokens, uint256 cursor, uint256 limit, string cid) external returns (uint256 newCursor)Emit URI events for a series of tokens.
Intended for both freezing and updating series metadata.
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| seriesTokens | uint256[] | Array of token IDs in the series. |
| cursor | uint256 | Current processing cursor. |
| limit | uint256 | Max tokens to process this call. |
| cid | string | New base URI for the series. |
Return Values
Section titled “Return Values”| Name | Type | Description |
|---|---|---|
| newCursor | uint256 | Updated processing cursor. |
emitPermanentURIs
Section titled “emitPermanentURIs”function emitPermanentURIs(uint256[] seriesTokens, uint256 cursor, uint256 limit, string cid) external returns (uint256 newCursor)Emit PermanentURI events for a series of tokens.
Emits a {PermanentURI} for each token, marking it as frozen.
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| seriesTokens | uint256[] | Array of token IDs in the series. |
| cursor | uint256 | Current processing cursor. |
| limit | uint256 | Max tokens to process this call. |
| cid | string | Frozen base URI for the series. |
Return Values
Section titled “Return Values”| Name | Type | Description |
|---|---|---|
| newCursor | uint256 | Updated processing cursor. |
cidToUri
Section titled “cidToUri”function cidToUri(string cid) public pure returns (string)Compose the base URI from a raw IPFS CID.
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| cid | string | Raw IPFS content identifier (CID) |
Return Values
Section titled “Return Values”| Name | Type | Description |
|---|---|---|
| [0] | string | Full base URI (e.g. “ipfs:// |
cidIdToUri
Section titled “cidIdToUri”function cidIdToUri(string cid, uint256 id) public pure returns (string)