-
Notifications
You must be signed in to change notification settings - Fork 1
/
assetlist.schema.json
98 lines (98 loc) · 3.66 KB
/
assetlist.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
{
"$schema": "https://json-schema.org/draft/2019-09/schema",
"title": "AssetList",
"type": "object",
"required": [
"chain_name",
"assets"
],
"properties": {
"$schema": {
"type": "string",
"minLength": 1,
"pattern": "^(\\.\\./)+assetlist\\.schema\\.json$"
},
"chain_name": {
"type": "string",
"minLength": 1,
"pattern": "[a-z0-9]+",
"examples": [
"polygon"
]
},
"assets": {
"type": "array",
"default": [],
"items": {
"type": "object",
"description": "An asset on this chain.",
"required": [
"name",
"decimals",
"symbol",
"logo_uri",
"coingecko_id"
],
"properties": {
"id": {
"type": "string",
"description": "Only required for native assets. A unique identifier for this asset. A native asset's ID should have the suffix -native. e.g. ethereum-native for ethereum."
},
"name": {
"type": "string",
"minLength": 1,
"description": "The name of the asset."
},
"decimals": {
"type": "integer",
"description": "The decimals value of the asset."
},
"erc20_contract_address": {
"type": "string",
"minLength": 1,
"pattern": "0x[a-zA-Z0-9]*$",
"description": "[OPTIONAL] The ERC20 contract address of the asset."
},
"denom": {
"type": "string",
"minLength": 1,
"description": "[OPTIONAL] The denomination of the token. Either erc20_contract_address or denom should be defined."
},
"symbol": {
"type": "string",
"minLength": 1,
"description": "The symbol of the asset."
},
"logo_uri": {
"type": "string",
"format": "uri-reference",
"minLength": 1,
"description": "The logo URI of the asset."
},
"coingecko_id": {
"type": "string",
"minLength": 1,
"description": "The coingecko ID of the asset."
},
"axelar_symbol": {
"type": "string",
"description": "[OPTIONAL] The axelar symbol of the asset."
},
"axelar_denom": {
"type": "string",
"description": "[OPTIONAL] The axelar denom of the asset."
},
"axelar_name": {
"type": "string",
"description": "[OPTIONAL] The axelar name of the asset."
},
"go_fast_enabled": {
"type": "boolean",
"default": false,
"description": "[OPTIONAL] If this asset is fast transferable via Skip Go Fast."
}
}
}
}
}
}