diff --git a/cic.in.json b/cic.in.json
index 4655496..998ac38 100644
--- a/cic.in.json
+++ b/cic.in.json
@@ -8,35 +8,20 @@
"version": {
"type": "integer"
},
- "validFrom": {
- "type": "string",
- "format": "date-time"
- },
- "validUntil": {
- "type": "string",
- "format": "date-time"
- },
- "targets": {
- "type": "array",
- "items": {
- "type": "string",
- "pattern": "^(0x)?[a-fA-F0-9]{40}"
- }
-
- },
- "txs": {
- "type": "array",
- "items": {
- "type": "string",
- "pattern": "^(0x)?[a-fA-F0-9]{64}"
- }
- },
"attachments": {
"type": "array",
"items": {
"$ref": "/mime"
}
+ },
+ "certifications": {
+ "type": "array",
+ "items": {
+ "type": "string",
+ "format": "uri"
+ },
+ "minItems": 1
}
},
- "required": ["targets", "attachments", "txs", "validFrom"]
+ "required": ["version", "attachments"]
}
diff --git a/enjin.in.json b/enjin.in.json
deleted file mode 100644
index 6a0f1a7..0000000
--- a/enjin.in.json
+++ /dev/null
@@ -1,25 +0,0 @@
-{
- "$schema": "https://json-schema.org/draft/2020-12/schema",
- "title": "Enjin NFT metadata extension",
- "$id": "/enjin",
-
- "type": "object",
- "properties": {
- "simple_property": "example value",
- "rich_property": {
- "name": "Name",
- "value": "123",
- "display_value": "123 Example Value",
- "class": "emphasis",
- "css": {
- "color": "#ffffff",
- "font-weight": "bold",
- "text-decoration": "underline"
- }
- },
- "array_property": {
- "name": "Name",
- "value": [1,2,3,4],
- "class": "emphasis"
- }
- }
diff --git a/opensea_part.in.json b/opensea_part.in.json
index 436543e..c191e7e 100644
--- a/opensea_part.in.json
+++ b/opensea_part.in.json
@@ -22,8 +22,31 @@
"format": "uri"
},
"attributes": {
- "type": "object",
- "description": "These are the attributes for the item, which will show up on the OpenSea page for the item. (see below)"
+ "type": "array",
+ "description": "These are the attributes for the item, which will show up on the OpenSea page for the item. (see below)",
+ "items": {
+ "type": "object",
+ "properties": {
+ "trait_type": {
+ "type": "string"
+ },
+ "value": {
+ "oneOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "number"
+ }
+ ]
+ },
+ "display_type": {
+ "type": "string"
+ }
+ },
+ "required": ["trait_type", "value"]
+ }
+
},
"animation_url": {
"type": "string",
diff --git a/test_tx.rdf b/test_tx.rdf
new file mode 100644
index 0000000..0a7f6a6
--- /dev/null
+++ b/test_tx.rdf
@@ -0,0 +1,9 @@
+@prefix evm: .
+@prefix cic: .
+@prefix ge: .
+@prefix redcross: .
+
+evm:tx:6f4ed36c11345a9a48353cd2f93f1f92958c96df15f3112a192bc994250e8d03
+ cic:agent evm:address:eb3907ecad74a0013c259d5874ae7f22dcbcc95c ;
+ redcross:interest ge:foodforest ;
+ ge:rating 0.3 .
diff --git a/test_valid.json b/test_valid.json
index f7e5d40..a864fe0 100644
--- a/test_valid.json
+++ b/test_valid.json
@@ -1,23 +1,25 @@
{
+ "version": 0,
"name": "foo",
"description": "bar",
- "targets": [
- "0xabcdef0123456789abcdef0123456789abcdef00",
- "abcdef0123456789abcdef0123456789abcdef00"
+ "attributes": [
+ {
+ "trait_type": "Rating",
+ "value": 2.2
+ },
+ {
+ "trait_type": "Swag",
+ "value": "smooth"
+ },
+ {
+ "trait_type": "Serial",
+ "value": 42
+ }
+
],
- "validFrom": "2023-03-05T10:46:05+00:00",
- "validUntil": "2024-03-05T10:46:05+00:00",
- "unitOfAccount": "wampum",
- "issuerName": "John Doe",
- "txs": [
- "0xabcdef0123456789abcdef0123456789abcdef00abcdef0123456789abcdef00",
- "abcdef0123456789abcdef0123456789abcdef00abcdef0123456789abcdef00"
+ "certifications": [
+ "sha256:"
],
- "attributes": {
- "trait_type": "Rating",
- "value": 2.2
- },
- "namespace": "schmame",
"attachments": [
{
"contentType": "text/plain",
diff --git a/test_voucher.rdf b/test_voucher.rdf
new file mode 100644
index 0000000..ffff7cc
--- /dev/null
+++ b/test_voucher.rdf
@@ -0,0 +1,15 @@
+@prefix evm: .
+@prefix cic: .
+@prefix foaf: .
+
+cic:fungibleToken:3cd2f93f1f92958c96df15f3112a192bc994250e8
+ cic:unitOfAccount cic:ref:wampum ;
+ cic:validFrom "2023-03-05T19:04:40+00:00"^^ ;
+ cic:validUntil "2024-03-05T19:04:40+00:00"^^ ;
+ foaf:name "John Doe" .
+
+
+cic:fungibleToken:f93f1f92958c96df15f3112a192bc994250e8defe
+ cic:unitOfAccount "seashells" ;
+ cic:validFrom "2023-03-04T09:34:33+00:00"^^ ;
+ foaf:name "Busy Bee" .