Skip to content

Commit 1f0f7ae

Browse files
committed
updating
1 parent c8edee9 commit 1f0f7ae

File tree

7 files changed

+183
-248
lines changed

7 files changed

+183
-248
lines changed

.version

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

README.md

Lines changed: 52 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,13 @@ curl https://registry.elys.network/mainnet/elys
6464
"coinDecimals": 6,
6565
"coinGeckoId": "elys",
6666
"coinImageUrl": "/tokens/elys.svg",
67-
"canSwap": true,
6867
"isFeeCurrency": true,
69-
"isStakeCurrency": true,
68+
"isStakeCurrency": false,
69+
"canSwap": true,
7070
"canWithdraw": true,
7171
"canDeposit": true,
7272
"canUseLiquidityMining": true,
73-
"canUseLeverageLP": false,
73+
"canUseLeverageLP": true,
7474
"canUsePerpetual": false,
7575
"canUseVaults": true,
7676
"gasPriceStep": {
@@ -85,7 +85,7 @@ curl https://registry.elys.network/mainnet/elys
8585
}
8686
```
8787

88-
## 🔧 Integration Examples
88+
## 🔧 Integration Examplesç
8989

9090
### JavaScript/Node.js
9191
```javascript
@@ -277,20 +277,19 @@ struct AssetRegistry {
277277
chains: HashMap# API Endpoints y Consumo Multi-Plataforma
278278

279279
```
280-
281280
## 📁 Repository Structure
282281

283282
```
284283
elys-asset-registry/
285284
├── 📁 data/
286-
│ ├── mainnet.json # Mainnet assets only
287-
│ └── testnet.json # Testnet assets only
285+
│ ├── 📁 mainnet/
286+
│ ├──── elys.json
287+
│ ├──── cosmos.json
288+
│ ├── 📁 testnet/
289+
│ ├──── elys.json
290+
│ ├──── cosmos.json
288291
├── 📁 schema/
289292
│ └── asset-registry.schema.json # JSON Schema
290-
├── 📁 scripts/
291-
│ ├── validate.sh # Validation script
292-
│ ├── generate-splits.sh # Generate files by network
293-
│ └── update-version.sh # Update version
294293
├── 📁 examples/
295294
│ ├── javascript/ # JavaScript examples
296295
│ ├── go/ # Go examples
@@ -299,25 +298,10 @@ elys-asset-registry/
299298
│ └── rust/ # Rust examples
300299
├── 📁 .github/
301300
│ └── workflows/
302-
│ ├── validate.yml # CI for validation
303-
│ └── deploy.yml # Automatic deployment
304-
├── 📄 README.md
305-
├── 📄 CONTRIBUTING.md
306-
└── 📄 CHANGELOG.md
307-
└── 📄 .version
308-
```
309-
310-
## ✅ Validation
311-
312-
The registry includes automatic validation:
301+
│ └─ validate-registry.yml CI for validatio
302+
├──📄 .version
303+
└──📄 README.md
313304
314-
```bash
315-
# Validate JSON structure
316-
./scripts/validate.sh
317-
318-
# Verify against schema
319-
ajv validate -s schema/asset-registry.schema.json -d data/assets.json
320-
```
321305
322306
### Validation Rules
323307
@@ -333,55 +317,52 @@ ajv validate -s schema/asset-registry.schema.json -d data/assets.json
333317
### Adding New Assets
334318
335319
1. Fork the repository
336-
2. Add chains or asset to `data/mainnet.json` following the schema
337-
3. Run validation: `./scripts/validate.sh`
338-
4. Create pull request
320+
2. Add asset to `data/mainnet/chain-key.json` or `data/testnet/chain-key.json` following the schema
321+
3. Create pull request
339322
340-
### Chain Schema
323+
### Chain Asset Schema
341324
342-
Each chain must include:
325+
Each chain asset must include:
343326
344327
```json
345-
"elys": {
346-
"chainId": "elys-1",
347-
"chainName": "Elys",
348-
"addressPrefix": "elys",
349-
"rpcURL": "https://rpc.elys.network:443",
350-
"restURL": "https://api.elys.network:443",
351-
"explorerURL": {
328+
{
329+
"chainId": "elys-1",
330+
"chainName": "Elys",
331+
"addressPrefix": "elys",
332+
"rpcURL": "https://rpc.elys.network:443",
333+
"restURL": "https://api.elys.network:443",
334+
"explorerURL": {
352335
"transaction": "https://mainnet.itrocket.net/elys/tx/{transaction}"
353-
},
354-
"channel": {
336+
},
337+
"channel": {
355338
"source": "",
356339
"destination": ""
357-
},
358-
"isEnabled": true,
359-
"priority": 1,
360-
"currencies": [
340+
},
341+
"currencies": [
361342
{
362-
"coinDenom": "ELYS",
363-
"coinMinimalDenom": "uelys",
364-
"coinIbcDenom": "",
365-
"coinDecimals": 6,
366-
"coinGeckoId": "elys",
367-
"coinImageUrl": "/tokens/elys.svg",
368-
"canSwap": true,
369-
"isFeeCurrency": true,
370-
"isStakeCurrency": true,
371-
"canWithdraw": true,
372-
"canDeposit": true,
373-
"canUseLiquidityMining": true,
374-
"canUseLeverageLP": false,
375-
"canUsePerpetual": false,
376-
"canUseVaults": true,
377-
"gasPriceStep": {
378-
"low": 0.01,
379-
"average": 0.025,
380-
"high": 0.03
381-
}
343+
"coinDenom": "ELYS",
344+
"coinDisplayDenom": "Elys",
345+
"coinMinimalDenom": "uelys",
346+
"coinIbcDenom": "",
347+
"coinDecimals": 6,
348+
"coinGeckoId": "elys",
349+
"canSwap": true,
350+
"isFeeCurrency": true,
351+
"isStakeCurrency": true,
352+
"canWithdraw": true,
353+
"canDeposit": true,
354+
"canUseLiquidityMining": true,
355+
"canUseLeverageLP": false,
356+
"canUsePerpetual": false,
357+
"canUseVaults": true,
358+
"gasPriceStep": {
359+
"low": 0.01,
360+
"average": 0.025,
361+
"high": 0.03
362+
}
382363
}
383-
]
384-
}
364+
]
365+
}
385366
```
386367

387368
### Quality Standards
@@ -400,7 +381,6 @@ We follow [Semantic Versioning](https://semver.org/):
400381
- **MINOR**: New assets or compatible features
401382
- **PATCH**: Bug fixes and data updates
402383

403-
404384
## 🛠️ Used By
405385

406386
This registry is used by:
@@ -414,5 +394,5 @@ This registry is used by:
414394
## 📊 Statistics
415395

416396
- 📦 **Total Assets**: Multiple supported chains
417-
- 🌍 **Networks**: Mainnet, Testnet
418-
- 🔄 **Update Frequency**: Updates as needed
397+
- 🌍 **Networks**: Mainnet, Testnet, Devnet
398+
- 🔄 **Update Frequency**: Updates as needed

data/mainnet.json

Lines changed: 0 additions & 44 deletions
This file was deleted.

data/mainnet/elys.json

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"chainId": "elys-1",
3+
"chainName": "Elys",
4+
"addressPrefix": "elys",
5+
"rpcURL": "https://rpc.elys.network:443",
6+
"restURL": "https://api.elys.network:443",
7+
"explorerURL": {
8+
"transaction": "https://mainnet.itrocket.net/elys/tx/{transaction}"
9+
},
10+
"channel": {
11+
"source": "",
12+
"destination": ""
13+
},
14+
"currencies": [
15+
{
16+
"coinDenom": "ELYS",
17+
"coinDisplayDenom": "Elys",
18+
"coinMinimalDenom": "uelys",
19+
"coinIbcDenom": "",
20+
"coinDecimals": 6,
21+
"coinGeckoId": "elys",
22+
"canSwap": true,
23+
"isFeeCurrency": true,
24+
"isStakeCurrency": true,
25+
"canWithdraw": true,
26+
"canDeposit": true,
27+
"canUseLiquidityMining": true,
28+
"canUseLeverageLP": false,
29+
"canUsePerpetual": false,
30+
"canUseVaults": true,
31+
"gasPriceStep": {
32+
"low": 0.01,
33+
"average": 0.025,
34+
"high": 0.03
35+
}
36+
}
37+
]
38+
}

data/testnet.json

Lines changed: 0 additions & 44 deletions
This file was deleted.

data/testnet/elys.json

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"chainId": "elys-1",
3+
"chainName": "Elys",
4+
"addressPrefix": "elys",
5+
"rpcURL": "https://rpc.elys.network:443",
6+
"restURL": "https://api.elys.network:443",
7+
"explorerURL": {
8+
"transaction": "https://mainnet.itrocket.net/elys/tx/{transaction}"
9+
},
10+
"channel": {
11+
"source": "",
12+
"destination": ""
13+
},
14+
"currencies": [
15+
{
16+
"coinDenom": "ELYS",
17+
"coinDisplayDenom": "Elys",
18+
"coinMinimalDenom": "uelys",
19+
"coinIbcDenom": "",
20+
"coinDecimals": 6,
21+
"coinGeckoId": "elys",
22+
"canSwap": true,
23+
"isFeeCurrency": true,
24+
"isStakeCurrency": true,
25+
"canWithdraw": true,
26+
"canDeposit": true,
27+
"canUseLiquidityMining": true,
28+
"canUseLeverageLP": false,
29+
"canUsePerpetual": false,
30+
"canUseVaults": true,
31+
"gasPriceStep": {
32+
"low": 0.01,
33+
"average": 0.025,
34+
"high": 0.03
35+
}
36+
}
37+
]
38+
}

0 commit comments

Comments
 (0)