forked from SetProtocol/uniswap-tokenlist
-
Notifications
You must be signed in to change notification settings - Fork 0
/
set-details.schema.json
149 lines (149 loc) · 4.08 KB
/
set-details.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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://github.com/SetProtocol/uniswap-tokenlist/blob/main/set-details.schema.json",
"title": "Set Details Description",
"description": "Schema for details of Sets compatible with the TokenSets Interface",
"definitions": {
"SetDetails": {
"type": "object",
"description": "Metadata for a given Set details",
"additionalProperties": false,
"properties": {
"chainId": {
"type": "integer",
"description": "The chain ID of the Ethereum network where this token is deployed",
"minimum": 1,
"examples": [
1,
42
]
},
"managerName": {
"type": "string",
"description": "The name of the manager",
"minLength": 1,
"maxLength": 40,
"pattern": "^[ \\w.'+\\-%/À-ÖØ-öø-ÿ\\:]+$",
"examples": [
"Crypto Manager"
]
},
"managerDescription": {
"type": "string",
"description": "The description of the manager",
"minLength": 1,
"maxLength": 1000,
"pattern": ".+",
"examples": [
"This is the description of the manager"
]
},
"managerIcon": {
"type": "string",
"description": "A URI to the Manager logo asset; suggest SVG or PNG of size 64x64",
"format": "uri",
"examples": [
"ipfs://QmXfzKRvjZz3u5JRgC4v5mGVbm9ahrUiB4DgzHBsnWbTMM"
]
},
"managerTwitter": {
"type": "string",
"description": "Twitter username",
"minLength": 1,
"maxLength": 40,
"pattern": "^?(\\w){1,15}$",
"examples": [
"myusername"
]
},
"website": {
"type": "string",
"description": "Website for users to get more information about manager or the set",
"format": "uri",
"examples": [
"https://www.defipulse.com"
]
},
"setDescription": {
"type": "string",
"description": "The description of the Set",
"minLength": 1,
"maxLength": 5000,
"pattern": ".+",
"examples": [
"This is the description of the Set"
]
},
"setIcon": {
"type": "string",
"description": "A URI to the Set logo asset; suggest SVG or PNG of size 64x64",
"format": "uri",
"examples": [
"ipfs://QmXfzKRvjZz3u5JRgC4v5mGVbm9ahrUiB4DgzHBsnWbTMM"
]
},
"setDecimals": {
"type": "integer",
"description": "The number of decimals for the token balance",
"minimum": 0,
"maximum": 255,
"examples": [
18
]
},
"setName": {
"type": "string",
"description": "The name of the token",
"minLength": 1,
"maxLength": 40,
"pattern": "^[ \\w.'+\\-%/À-ÖØ-öø-ÿ\\:]+$",
"examples": [
"USD Coin"
]
},
"setSymbol": {
"type": "string",
"description": "The symbol for the token; must be alphanumeric",
"pattern": "^[a-zA-Z0-9+\\-%/\\$]+$",
"minLength": 1,
"maxLength": 20,
"examples": [
"USDC"
]
}
},
"required": [
"chainId",
"managerName",
"managerDescription",
"managerIcon",
"setDescription",
"setIcon",
"setDecimals",
"setName",
"setSymbol"
]
}
},
"type": "object",
"additionalProperties": false,
"properties": {
"version": {
"type": "number",
"multipleOf": 1.0,
"description": "The version of the details. Must be incremented when making changes.",
"minimum": 1,
"examples": [
1,
2
]
},
"setDetails": {
"$ref": "#/definitions/SetDetails"
}
},
"required": [
"version",
"setDetails"
]
}