Expose explorers in chains.json

context https://github.com/antonnell/networklist-org/issues/12
This commit is contained in:
ligi 2021-04-12 10:51:18 +02:00
parent b6b3198ec0
commit 8b7eea74bd
No known key found for this signature in database
GPG Key ID: 8E81894010ABF23D

View File

@ -13,6 +13,7 @@ permalink: chains.json
"nativeCurrency": {"name":"{{chain.nativeCurrency["name"]}}","symbol":"{{chain.nativeCurrency["symbol"]}}","decimals":{{chain.nativeCurrency["decimals"]}}},
"rpc": [{% for rpc in chain.rpc %}"{{ rpc }}"{% unless forloop.last %},{% endunless %}{%endfor%}],
"faucets": [{% for faucet in chain.faucets %}"{{ faucet }}"{% unless forloop.last %},{% endunless %}{%endfor%}],
"explorers": [{% for explorer in chain.explorers %}{"name":"{{explorer.name}}","url":"{{explorer.url}}"{% if explorer.icon != null %},"icon":"{{explorer.icon}}"{% endif %},"standard":"{{explorer.standard}}"}{% unless forloop.last %},{% endunless %}{%endfor%}],
"infoURL": "{{ chain.infoURL }}"
}{% unless forloop.last %},{% endunless %}{% endif %}{% endfor %}
]