forked from cardano-foundation/CIPs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCIP26_v1.schema.json
118 lines (118 loc) · 3.75 KB
/
CIP26_v1.schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
{
"$id": "https://raw.githubusercontent.com/cardano-foundation/CIPs/main/CIP-0088/CIPs/0026/CIP26_v1.schema.json",
"title": "CIP-26: Fungible Token",
"description": "Additional context for a policy declaring support for fungible token standards",
"type": "object",
"properties": {
"26": {
"type": "object",
"properties": {
"0": {
"type": "integer",
"title": "Version",
"description": "The version of the standard in use",
"minimum": 1
},
"1": {
"type": "array",
"minItems": 1,
"items": {
"title": "Fungible Token Details",
"description": "Describes details about a particular fungible token under this policy",
"type": "object",
"properties": {
"0": {
"title": "Subject",
"description": "The hex-encoded Policy ID and Asset ID of the token",
"$ref": "#/$defs/tokenAsset"
},
"1": {
"title": "Name",
"description": "The full display name of the token",
"type": "string",
"example": "spacecoins"
},
"2": {
"title": "Symbol/Ticker",
"description": "The ticker or listing symbol for the token",
"type": "string",
"example": "SPACE"
},
"3": {
"title": "Description",
"description": "A short description for the token",
"type": "array",
"items": {
"type": "string",
"maxLength": 64
},
"example": [
"The OG Cardano Community Token","- whatever you do, your did it!"
]
},
"4": {
"title": "Decimals",
"description": "How many decimal places this token should be rendered with",
"type": "integer",
"example": 0,
"default": 0
},
"5": {
"title": "URL",
"description": "A URL to the project's web page",
"$ref": "https://raw.githubusercontent.com/cardano-foundation/CIPs/main/CIP-0088/common/uri-array.schema.json"
},
"6": {
"title": "Logo",
"description": "A URI to the token's logo",
"$ref": "https://raw.githubusercontent.com/cardano-foundation/CIPs/main/CIP-0088/common/uri-array.schema.json"
},
"7": {
"title": "Reference Token",
"description": "A reference to a 'Beacon Token' that can provide additional context via inline datum to smart contracts",
"$ref": "#/$defs/tokenAsset"
}
},
"required": [
"0",
"1",
"2"
]
}
}
},
"required": [
"1"
]
}
},
"required": [
"26"
],
"$defs": {
"tokenAsset": {
"title": "Token Asset",
"description": "The hex-encoded Policy ID and hex-encoded Asset ID of the token",
"type": "array",
"minItems": 2,
"maxItems": 2,
"items": [
{
"title": "Policy ID",
"description": "The hex-encoded Policy ID of the token",
"type": "string",
"maxLength": 56,
"minLength": 56
},
{
"title": "Asset ID",
"description": "The hex-encoded Asset ID of the token",
"type": "string",
"minLength": 0,
"maxLength": 64
}
],
"additionalItems": false
}
}
}