diff --git a/cic.in.json b/cic.in.json index 02d24c6..6b92702 100644 --- a/cic.in.json +++ b/cic.in.json @@ -13,6 +13,13 @@ } }, + "txs": { + "type": "array", + "items": { + "type": "string", + "pattern": "^(0x)?[a-fA-F0-9]{64}" + } + }, "attachments": { "type": "array", "items": { @@ -20,5 +27,5 @@ } } }, - "required": ["targets", "attachments"] + "required": ["targets", "attachments", "txs"] } diff --git a/opensea_part.in.json b/opensea_part.in.json index c21c119..436543e 100644 --- a/opensea_part.in.json +++ b/opensea_part.in.json @@ -7,15 +7,19 @@ "properties": { "image_data": { "type": "string", - "description": "Raw SVG image data, if you want to generate images on the fly (not recommended). Only use this if you're not including the image parameter." + "description": "Raw SVG image data, if you want to generate images on the fly (not recommended). Only use this if you're not including the image parameter.", + "contentEncoding": "base64", + "contentMediaType": "image/svg+xml" }, "image": { "type": "string", - "description": "A URI pointing to a resource with mime type image/* representing the asset to which this NFT represents. Consider making any images at a width between 320 and 1080 pixels and aspect ratio between 1.91:1 and 4:5 inclusive." + "description": "A URI pointing to a resource with mime type image/* representing the asset to which this NFT represents. Consider making any images at a width between 320 and 1080 pixels and aspect ratio between 1.91:1 and 4:5 inclusive.", + "format": "uri" }, "external_url": { "type": "string", - "description": "This is the URL that will appear below the asset's image on OpenSea and will allow users to leave OpenSea and view the item on your site." + "description": "This is the URL that will appear below the asset's image on OpenSea and will allow users to leave OpenSea and view the item on your site.", + "format": "uri" }, "attributes": { "type": "object", @@ -23,7 +27,8 @@ }, "animation_url": { "type": "string", - "description": "Animation_url also supports HTML pages, allowing you to build rich experiences and interactive NFTs using JavaScript canvas, WebGL, and more. Scripts and relative paths within the HTML page are now supported. However, access to browser extensions is not supported." + "description": "Animation_url also supports HTML pages, allowing you to build rich experiences and interactive NFTs using JavaScript canvas, WebGL, and more. Scripts and relative paths within the HTML page are now supported. However, access to browser extensions is not supported.", + "format": "uri" } }, "required": ["attributes"], diff --git a/test_valid.json b/test_valid.json index 20e3871..a73b690 100644 --- a/test_valid.json +++ b/test_valid.json @@ -1,12 +1,19 @@ { "name": "foo", - "description": "foofoo", + "description": "bar", "image": "data:image/svg+xml;base64,", "targets": [ "0xabcdef0123456789abcdef0123456789abcdef00", "abcdef0123456789abcdef0123456789abcdef00" ], - "attributes": {}, + "txs": [ + "0xabcdef0123456789abcdef0123456789abcdef00abcdef0123456789abcdef00", + "abcdef0123456789abcdef0123456789abcdef00abcdef0123456789abcdef00" + ], + "attributes": { + "inky": "pinky", + "blinky": "clyde" + }, "attachments": [ { "contentType": "text/plain",