Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .github/workflows/validate-registry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@
name: Validate Asset Registry

on:
push:
branches: [ main, develop ]
paths:
- 'data/**'
- 'schema/**'
pull_request:
branches: [ main ]
paths:
Expand Down
2 changes: 1 addition & 1 deletion .version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.5.3
2.5.4
22 changes: 10 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,20 @@ The registry is available as static JSON files:
```bash
# Complete registry
# Mainnet chains and assets only
curl https://registry.elys.network/mainnet
curl https://registry.elys.network/v1/chains/mainnet
# Testnet chains and assets only
curl https://registry.elys.network/testnet
# Validation schema
curl https://registry.elys.network/schema
# Only mainnet elys assets
curl https://registry.elys.network/mainnet/elys
curl https://registry.elys.network/v1/chains/testnet
# List all currencies across mainnet network
curl https://registry.elys.network/v1/currencies/mainnet
```

### Available Endpoints

| Endpoint | Description |
|----------|-------------|
| `/mainnet/chains` | Mainnet chains only |
| `/testnet/chains` | Testnet chains only |
| `/mainnet/chains/elys` | Mainnet elys assets only |
| `/chains/mainnet` | Mainnet chains only |
| `/chains/testnet` | Testnet chains only |
| `/currencies/mainnet` | Mainnetassets only |

## 📊 Data Structure

Expand Down Expand Up @@ -90,7 +88,7 @@ curl https://registry.elys.network/mainnet/elys
### JavaScript/Node.js
```javascript

const response = await fetch('https://registry.elys.network/mainnet');
const response = await fetch('https://registry.elys.network/v1/chains/mainnet');
const registry = await response.json();

const elysChain = registry.chains.elys;
Expand Down Expand Up @@ -132,7 +130,7 @@ type Currency struct {
}

func main() {
resp, err := http.Get("https://registry.elys.network/mainnet")
resp, err := http.Get("https://registry.elys.network/v1/chains/mainnet")
if err != nil {
panic(err)
}
Expand All @@ -156,7 +154,7 @@ import java.net.http.HttpResponse;
import java.net.URI;

public class ElysRegistryClient {
private static final String REGISTRY_URL = "https://registry.elys.network/mainnet";
private static final String REGISTRY_URL = "https://registry.elys.network/v1/chains/mainnet";

public static class AssetRegistry {
public Map<String, ChainAsset> chains;
Expand Down
2 changes: 1 addition & 1 deletion data/devnet/elys-1.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
},
"cc": {
"quote": "USDT",
"exchange": "gateio"
"exchange": "mexc"
}
},
{
Expand Down