Skip to content

Commit ea5ccca

Browse files
committed
crypto compare config was added
1 parent bb2552a commit ea5ccca

File tree

5 files changed

+48
-4
lines changed

5 files changed

+48
-4
lines changed

.github/workflows/validate-registry.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,6 @@ jobs:
302302
name: Performance Test
303303
runs-on: ubuntu-latest
304304
needs: validate-schema
305-
306305
steps:
307306
- name: Checkout repository
308307
uses: actions/checkout@v4

.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.0.0
1+
2.1.0

data/mainnet/elys.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@
3232
"low": 0.01,
3333
"average": 0.025,
3434
"high": 0.03
35+
},
36+
"cc": {
37+
"quote": "USDT",
38+
"exchange": "gateio"
3539
}
3640
}
3741
]

data/testnet/elys.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@
3232
"low": 0.01,
3333
"average": 0.025,
3434
"high": 0.03
35+
},
36+
"cc": {
37+
"quote": "USDT",
38+
"exchange": "gateio"
3539
}
3640
}
3741
]

schema/chain-asset.schema.json

Lines changed: 39 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
"properties": {
6363
"coinDenom": {
6464
"type": "string",
65-
"description": "Display denomination (e.g., ELYS, ATOM)",
65+
"description": "Display denomination (e.g., ELYS, ATOM) - also used as base for CryptoCompare",
6666
"pattern": "^[A-Z0-9]+$",
6767
"minLength": 1,
6868
"maxLength": 10
@@ -131,6 +131,9 @@
131131
},
132132
"gasPriceStep": {
133133
"$ref": "#/definitions/GasPriceStep"
134+
},
135+
"cc": {
136+
"$ref": "#/definitions/CryptoCompareConfig"
134137
}
135138
},
136139
"required": [
@@ -149,7 +152,41 @@
149152
"canUseLeverageLP",
150153
"canUsePerpetual",
151154
"canUseVaults",
152-
"gasPriceStep"
155+
"gasPriceStep",
156+
"cc"
157+
],
158+
"additionalProperties": false
159+
},
160+
"CryptoCompareConfig": {
161+
"type": "object",
162+
"properties": {
163+
"quote": {
164+
"type": "string",
165+
"description": "Quote currency for price pair (e.g., USDT, USD, BTC)",
166+
"pattern": "^[A-Z]+$",
167+
"minLength": 1,
168+
"maxLength": 10
169+
},
170+
"exchange": {
171+
"type": "string",
172+
"description": "Exchange name for price data",
173+
"enum": [
174+
"binance",
175+
"coinbase",
176+
"kraken",
177+
"gateio",
178+
"mexc",
179+
"kucoin",
180+
"huobi",
181+
"okx",
182+
"bitfinex",
183+
"bybit"
184+
]
185+
}
186+
},
187+
"required": [
188+
"quote",
189+
"exchange"
153190
],
154191
"additionalProperties": false
155192
},

0 commit comments

Comments
 (0)