Files
smom-dbis-138/metamask/token-list.schema.json

52 lines
1.3 KiB
JSON
Raw Normal View History

{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name of the token list"
},
"version": {
"type": "object",
"properties": {
"major": { "type": "number" },
"minor": { "type": "number" },
"patch": { "type": "number" }
},
"required": ["major", "minor", "patch"]
},
"timestamp": {
"type": "string",
"format": "date-time"
},
"tags": {
"type": "object"
},
"logoURI": {
"type": "string",
"format": "uri"
},
"keywords": {
"type": "array",
"items": { "type": "string" }
},
"tokens": {
"type": "array",
"items": {
"type": "object",
"properties": {
"chainId": { "type": "number" },
"address": { "type": "string", "pattern": "^0x[a-fA-F0-9]{40}$" },
"name": { "type": "string" },
"symbol": { "type": "string" },
"decimals": { "type": "number", "minimum": 0, "maximum": 18 },
"logoURI": { "type": "string", "format": "uri" }
},
"required": ["chainId", "address", "name", "symbol", "decimals"]
}
}
},
"required": ["name", "version", "tokens"]
}