Commit b554dd7
committed
feat: extract network identifier from rddUrl instead of hardcoded mapping
- Replace hardcoded queryString logic with dynamic extraction from rddUrl
- Extract network identifier using regex pattern from feeds JSON URLs
- Maintain fallback to queryString for networks without rddUrl
- Eliminates need for manual mapping maintenance for new networks
Examples:
- linea-mainnet: feeds-ethereum-mainnet-linea-1.json → ethereum-mainnet-linea-1
- mantle-mainnet: feeds-ethereum-mainnet-mantle-1.json → ethereum-mainnet-mantle-1
- ethereum-mainnet: feeds-mainnet.json → mainnet1 parent 5ef217b commit b554dd7
1 file changed
+13
-3
lines changedLines changed: 13 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
6 | 9 | | |
7 | 10 | | |
8 | | - | |
9 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
10 | 18 | | |
| 19 | + | |
| 20 | + | |
11 | 21 | | |
12 | 22 | | |
13 | 23 | | |
| |||
0 commit comments