Add more constraints, txs array
This commit is contained in:
parent
52b7ab16e2
commit
d29c669868
@ -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"]
|
||||
}
|
||||
|
@ -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"],
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user