forked from evmos/chain-token-registry
-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.token.json
122 lines (122 loc) · 4.66 KB
/
schema.token.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
{
"$id": "https://evmos.org/schema.token.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"description": "Token Schema Registry via Evmos Governance",
"type": "object",
"properties": {
"coinDenom": {
"type": "string",
"description": "Coin denom representation, i.e BTC "
},
"minCoinDenom": {
"type": "string",
"description": "Minimal coin denom, i.e. satoshi for Bitcoin"
},
"imgSrc": {
"type": "string",
"description": "Link must be SVG link only. If this image is coming from Github, make sure it has a pattern of 'https://raw.githubusercontent.com/cosmos/chain-registry/master/${chain}/images/${coin}.svg' and the link directly opens the image only and not the site of Github with the image."
},
"pngSrc": {
"type": "string",
"description": "Link must be png source. If this image is coming from Github, make sure it has a pattern of 'https://raw.githubusercontent.com/cosmos/chain-registry/master/${chain}/images/${coin}.png' and the link directly opens the image only and not the site of Github with the image."
},
"type": {
"type": "string",
"enum": ["IBC", "ERC-20", "CW20"]
},
"exponent": {
"type": "string"
},
"cosmosDenom": {
"type": "string",
"description": "Starting with ibc/..."
},
"description": {
"type": "string",
"description": "Coin description goes here. This description will be used to describe the coin to the user. Please keep it concise."
},
"name": {
"type": "string",
"description": "Official name of the coin, i.e. EVMOS"
},
"channel": {
"type": "string",
"description": "Channel must be active. Check https://www.mintscan.io/evmos/relayers and find the right network to see which channel is open on both ends. The value wanted here is the From side of Evmos."
},
"isEnabled": {
"type": "boolean",
"default": true,
"description": "Default to true"
},
"erc20Address": {
"type": "string",
"description": "Hex address only, i.e. 0x. Can be found on the Evmos API TokenPairs endpoint. This field will be populated when the token passes governance."
},
"ibc": {
"type": "object",
"properties": {
"sourceDenom": {
"type": "string",
"description": "There are two states for sourceDenom. Main chain coins like EVMOS will have their minCoinDenom listed here, however, coins from that ecosystem other than the main coin will require its prefix+hexAddress, i.e. gravity0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 for Gravity's USDC.grv"
},
"source": {
"type": "string",
"description": "Chain name, i.e. Cosmos or Osmosis"
}
}
},
"hideFromTestnet": {
"type": "boolean",
"default": false,
"description": "If network does not have testnet and the coin is not in the testnet via governance or other means, mark this as true, otherwise, leave as is."
},
"coingeckoId": {
"type": "string",
"description": "Official string coingecko uses to search and load the asset. Please insure the text matches exactly."
},
"category": {
"type": "string",
"description": "Select a parental category of this asset. If a category does not exist, please feel free to create a PR to update the schema. For example, all wrapped token are part of the parent category, gWBTC is 'bitcoin'.",
"default": "none",
"enum": ["bitcoin", "ethereum", "stablecoin", "cosmos", "polygon", "none"]
},
"coinSourcePrefix": {
"type": "string",
"description": "Use this field to declare if the coin is part of a network's ecosystem, like for example, gWBTC is part of Gravity. If the coin is the main network coin, then the response will be itself still. the string here should match the network prefix."
},
"handledByExternalUI": {
"type": "array",
"items": {
"type": "object",
"required": ["url", "handlingAction"],
"properties": {
"url": {
"type": "string",
"description": "Link to the external UI site"
},
"handlingAction": {
"type": "string",
"enum": ["Deposit", "Withdraw", "Convert", "Deposit and Withdraw", "All"],
"description": "Specify if the external UI is for Deposit, Withdraw, Convert, or others."
}
}
}
}
},
"required": [
"coinDenom",
"minCoinDenom",
"pngSrc",
"type",
"exponent",
"cosmosDenom",
"description",
"name",
"channel",
"erc20Address",
"ibc",
"coingeckoId",
"coinSourcePrefix",
"category"
]
}