Removed network and added the script from which this was done (#1508)

This commit is contained in:
Ashutosh Kumar 2022-08-28 13:49:33 +05:30 committed by GitHub
parent 057ab18161
commit 138535c86c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
54 changed files with 19 additions and 53 deletions

View File

@ -1,7 +1,6 @@
{
"name": "Chiado Testnet",
"chain": "CHI",
"network": "testnet",
"icon": "gnosis",
"rpc": ["https://rpc-chiado.gnosistestnet.com"],
"faucets": ["https://gnosisfaucet.com"],

View File

@ -1,7 +1,6 @@
{
"name": "Plian Testnet Subchain 1",
"chain": "Plian",
"network": "testnet",
"rpc": ["https://testnet.plian.io/child_test"],
"faucets": [],
"nativeCurrency": {

View File

@ -1,7 +1,6 @@
{
"name": "Eurus Mainnet",
"chain": "EUN",
"network": "eurus",
"rpc": ["https://mainnet.eurus.network/"],
"faucets": [],
"nativeCurrency": {

View File

@ -1,7 +1,6 @@
{
"name": "Kaiba Lightning Chain Testnet",
"chain": "tKLC",
"network": "testnet",
"rpc": ["https://klc.live/"],
"faucets": [],
"nativeCurrency": {

View File

@ -1,7 +1,6 @@
{
"name": "Quadrans Blockchain Testnet",
"chain": "tQDC",
"network": "testnet",
"icon": "quadrans",
"rpc": ["https://rpctest.quadrans.io", "https://rpctest2.quadrans.io"],
"faucets": ["https://faucetpage.quadrans.io"],

View File

@ -2,7 +2,6 @@
"name": "Sepolia",
"title": "Ethereum Testnet Sepolia",
"chain": "ETH",
"network": "testnet",
"rpc": [
"https://rpc.sepolia.dev",
"https://rpc.sepolia.online",

View File

@ -1,7 +1,6 @@
{
"name": "Iora Chain",
"chain": "IORA",
"network": "iorachain",
"icon": "iorachain",
"rpc": ["https://dataseed.iorachain.com"],
"faucets": [],

View File

@ -1,7 +1,6 @@
{
"name": "Evanesco Testnet",
"chain": "Evanesco Testnet",
"network": "avis",
"rpc": ["https://seed5.evanesco.org:8547"],
"faucets": [],
"nativeCurrency": {

View File

@ -1,7 +1,6 @@
{
"name": "Kiln",
"chain": "ETH",
"network": "testnet",
"rpc": ["https://rpc.kiln.themerge.dev"],
"faucets": [
"https://faucet.kiln.themerge.dev",

View File

@ -2,7 +2,6 @@
"name": "Openpiece Testnet",
"chain": "OPENPIECE",
"icon": "openpiece",
"network": "testnet",
"rpc": ["https://testnet.openpiece.io"],
"faucets": [],
"nativeCurrency": {

View File

@ -1,7 +1,6 @@
{
"name": "Trust EVM Testnet",
"chain": "Trust EVM Testnet",
"network": "testnet",
"rpc": ["https://api.testnet-dev.trust.one"],
"faucets": ["https://faucet.testnet-dev.trust.one/"],
"nativeCurrency": {

View File

@ -1,7 +1,6 @@
{
"name": "Plian Testnet Main",
"chain": "Plian",
"network": "testnet",
"rpc": ["https://testnet.plian.io/testnet"],
"faucets": [],
"nativeCurrency": {

View File

@ -1,7 +1,6 @@
{
"name": "BON Network",
"chain": "BON",
"network": "testnet",
"rpc": ["http://rpc.boyanet.org:8545", "ws://rpc.boyanet.org:8546"],
"faucets": [],
"nativeCurrency": {

View File

@ -1,7 +1,6 @@
{
"name": "Eurus Testnet",
"chain": "EUN",
"network": "eurus-testnet",
"rpc": ["https://testnet.eurus.network"],
"faucets": [],
"nativeCurrency": {

View File

@ -2,7 +2,6 @@
"name": "Milkomeda C1 Testnet",
"chain": "milkTAda",
"icon": "milkomeda",
"network": "testnet",
"rpc": [
"https://rpc-devnet-cardano-evm.c1.milkomeda.com",
"wss://rpc-devnet-cardano-evm.c1.milkomeda.com"

View File

@ -2,7 +2,6 @@
"name": "Milkomeda A1 Testnet",
"chain": "milkTAlgo",
"icon": "milkomeda",
"network": "testnet",
"rpc": ["https://rpc-devnet-algorand-rollup.a1.milkomeda.com"],
"faucets": [],
"nativeCurrency": {

View File

@ -3,7 +3,6 @@
"title": "Twala Testnet Jellie",
"shortName": "twl-jellie",
"chain": "ETH",
"network": "testnet",
"chainId": 202624,
"networkId": 202624,
"icon": "twala",

View File

@ -1,7 +1,6 @@
{
"name": "CENNZnet Azalea",
"chain": "CENNZnet",
"network": "azalea",
"rpc": ["https://cennznet.unfrastructure.io/public"],
"faucets": [],
"nativeCurrency": {

View File

@ -1,7 +1,6 @@
{
"name": "Findora Testnet",
"chain": "Testnet-anvil",
"network": "testnet",
"rpc": ["https://prod-testnet.prod.findora.org:8545/"],
"faucets": [],
"nativeCurrency": {

View File

@ -1,7 +1,6 @@
{
"name": "Kava EVM Testnet",
"chain": "KAVA",
"network": "testnet",
"rpc": ["https://evm.testnet.kava.io", "wss://wevm.testnet.kava.io"],
"faucets": ["https://faucet.kava.io"],
"nativeCurrency": {

View File

@ -1,7 +1,6 @@
{
"name": "Haymo Testnet",
"chain": "tHYM",
"network": "testnet",
"rpc": ["https://testnet1.haymo.network"],
"faucets": [],
"nativeCurrency": {

View File

@ -2,7 +2,6 @@
"name": "Ropsten",
"title": "Ethereum Testnet Ropsten",
"chain": "ETH",
"network": "testnet",
"rpc": [
"https://ropsten.infura.io/v3/${INFURA_API_KEY}",
"wss://ropsten.infura.io/ws/v3/${INFURA_API_KEY}"

View File

@ -1,7 +1,6 @@
{
"name": "CENNZnet Rata",
"chain": "CENNZnet",
"network": "rata",
"rpc": ["https://rata.centrality.me/public"],
"faucets": ["https://app-faucet.centrality.me"],
"nativeCurrency": {

View File

@ -1,7 +1,6 @@
{
"name": "CENNZnet Nikau",
"chain": "CENNZnet",
"network": "nikau",
"rpc": ["https://nikau.centrality.me/public"],
"faucets": ["https://app-faucet.centrality.me"],
"nativeCurrency": {

View File

@ -2,7 +2,6 @@
"name": "DFK Chain Test",
"chain": "DFK",
"icon": "dfk",
"network": "testnet",
"rpc": ["https://subnets.avax.network/defi-kingdoms/dfk-chain-testnet/rpc"],
"faucets": [],
"nativeCurrency": {

View File

@ -1,7 +1,6 @@
{
"name": "Paribu Net Mainnet",
"chain": "PRB",
"network": "Paribu Net",
"rpc": ["https://rpc.paribu.network"],
"faucets": [],
"nativeCurrency": {

View File

@ -1,7 +1,6 @@
{
"name": "Paribu Net Testnet",
"chain": "PRB",
"network": "Paribu Net",
"rpc": ["https://rpc.testnet.paribuscan.com"],
"faucets": ["https://faucet.paribuscan.com"],
"nativeCurrency": {

View File

@ -1,7 +1,6 @@
{
"name": "Q Testnet",
"chain": "Q",
"network": "testnet",
"rpc": ["https://rpc.qtestnet.org"],
"faucets": [],
"nativeCurrency": {

View File

@ -2,7 +2,6 @@
"name": "Rinkeby",
"title": "Ethereum Testnet Rinkeby",
"chain": "ETH",
"network": "testnet",
"rpc": [
"https://rinkeby.infura.io/v3/${INFURA_API_KEY}",
"wss://rinkeby.infura.io/ws/v3/${INFURA_API_KEY}"

View File

@ -1,7 +1,6 @@
{
"name": "AIOZ Network Testnet",
"chain": "AIOZ",
"network": "testnet",
"icon": "aioz",
"rpc": ["https://eth-ds.testnet.aioz.network"],
"faucets": [],

View File

@ -2,7 +2,6 @@
"name": "Kovan",
"title": "Ethereum Testnet Kovan",
"chain": "ETH",
"network": "testnet",
"rpc": [
"https://kovan.poa.network",
"http://kovan.poa.network:8545",

View File

@ -1,7 +1,6 @@
{
"name": "Kekchain",
"chain": "kek",
"network": "testnet",
"rpc": ["https://testnet.kekchain.com"],
"faucets": [],
"nativeCurrency": {

View File

@ -1,7 +1,6 @@
{
"name": "Dexalot Testnet",
"chain": "DEXALOT",
"network": "testnet",
"rpc": ["https://subnets.avax.network/dexalot/testnet/rpc"],
"faucets": ["https://sfaucet.dexalot-test.com"],
"nativeCurrency": {

View File

@ -1,7 +1,6 @@
{
"name": "Darwinia Network",
"chain": "darwinia",
"network": "darwinia network",
"rpc": ["https://darwinia-rpc.darwinia.network"],
"faucets": [],
"nativeCurrency": {

View File

@ -2,7 +2,6 @@
"name": "Görli",
"title": "Ethereum Testnet Görli",
"chain": "ETH",
"network": "testnet",
"rpc": [
"https://goerli.infura.io/v3/${INFURA_API_KEY}",
"wss://goerli.infura.io/v3/${INFURA_API_KEY}",

View File

@ -1,7 +1,6 @@
{
"name": "XDC Apothem Network",
"chain": "XDC",
"network": "testnet",
"rpc": ["https://rpc.apothem.network", "https://erpc.apothem.network"],
"faucets": ["https://faucet.apothem.network"],
"nativeCurrency": {

View File

@ -1,7 +1,6 @@
{
"name": "CMP-Testnet",
"chain": "CMP",
"network": "testnet",
"rpc": [
"https://galaxy.block.caduceus.foundation",
"wss://galaxy.block.caduceus.foundation"

View File

@ -1,7 +1,6 @@
{
"name": "Nahmii Testnet",
"chain": "Nahmii",
"network": "testnet",
"rpc": ["https://l2.testnet.nahmii.io"],
"faucets": [],
"nativeCurrency": {

View File

@ -1,7 +1,6 @@
{
"name": "eCredits Testnet",
"chain": "ECS",
"network": "testnet",
"rpc": ["https://rpc.tst.ecredits.com"],
"faucets": ["https://faucet.tst.ecredits.com"],
"nativeCurrency": {

View File

@ -2,7 +2,6 @@
"name": "SX Network Testnet",
"chain": "SX",
"icon": "SX",
"network": "testnet",
"rpc": ["https://rpc.toronto.sx.technology"],
"faucets": ["https://faucet.toronto.sx.technology"],
"nativeCurrency": {

View File

@ -1,7 +1,6 @@
{
"name": "Conflux eSpace (Testnet)",
"chain": "Conflux",
"network": "testnet",
"rpc": ["https://evmtestnet.confluxrpc.com"],
"faucets": ["https://faucet.confluxnetwork.org"],
"nativeCurrency": {

View File

@ -1,7 +1,6 @@
{
"name": "Aerochain Testnet",
"chain": "Aerochain",
"network": "testnet",
"rpc": ["https://testnet-rpc.aerochain.id/"],
"faucets": ["https://faucet.aerochain.id/"],
"nativeCurrency": {

View File

@ -2,7 +2,6 @@
"name": "Portal Fantasy Chain Test",
"chain": "PF",
"icon": "pf",
"network": "testnet",
"rpc": ["https://subnets.avax.network/portal-fantasy/testnet/rpc"],
"faucets": [],
"nativeCurrency": {

View File

@ -1,7 +1,6 @@
{
"name": "Garizon Testnet Stage0",
"chain": "GAR",
"network": "testnet",
"icon": "garizon",
"rpc": ["https://s0-testnet.garizon.net/rpc"],
"faucets": ["https://faucet-testnet.garizon.com"],

View File

@ -1,7 +1,6 @@
{
"name": "Garizon Testnet Stage1",
"chain": "GAR",
"network": "testnet",
"icon": "garizon",
"rpc": ["https://s1-testnet.garizon.net/rpc"],
"faucets": ["https://faucet-testnet.garizon.com"],

View File

@ -1,7 +1,6 @@
{
"name": "Garizon Testnet Stage2",
"chain": "GAR",
"network": "testnet",
"icon": "garizon",
"rpc": ["https://s2-testnet.garizon.net/rpc"],
"faucets": ["https://faucet-testnet.garizon.com"],

View File

@ -1,7 +1,6 @@
{
"name": "Garizon Testnet Stage3",
"chain": "GAR",
"network": "testnet",
"icon": "garizon",
"rpc": ["https://s3-testnet.garizon.net/rpc"],
"faucets": ["https://faucet-testnet.garizon.com"],

View File

@ -1,7 +1,6 @@
{
"name": "Posichain Testnet Shard 0",
"chain": "PSC",
"network": "testnet",
"rpc": ["https://api.s0.t.posichain.org"],
"faucets": ["https://faucet.posichain.org/"],
"nativeCurrency": {

View File

@ -1,7 +1,6 @@
{
"name": "Posichain Devnet Shard 0",
"chain": "PSC",
"network": "devnet",
"rpc": ["https://api.s0.d.posichain.org"],
"faucets": ["https://faucet.posichain.org/"],
"nativeCurrency": {

View File

@ -1,7 +1,6 @@
{
"name": "Posichain Devnet Shard 1",
"chain": "PSC",
"network": "devnet",
"rpc": ["https://api.s1.d.posichain.org"],
"faucets": ["https://faucet.posichain.org/"],
"nativeCurrency": {

View File

@ -2,7 +2,6 @@
"name": "PulseChain Testnet v2b",
"shortName": "t2bpls",
"chain": "t2bPLS",
"network": "testnet-2b",
"chainId": 941,
"networkId": 941,
"infoURL": "https://pulsechain.com/",

View File

@ -2,7 +2,6 @@
"name": "PulseChain Testnet v3",
"shortName": "t3pls",
"chain": "t3PLS",
"network": "testnet-3",
"chainId": 942,
"networkId": 942,
"infoURL": "https://pulsechain.com/",

View File

@ -1,7 +1,6 @@
{
"name": "UB Smart Chain(testnet)",
"chain": "USC",
"network": "testnet",
"rpc": ["https://testnet.rpc.uschain.network"],
"faucets": [],
"nativeCurrency": {

19
tools/index.js Normal file
View File

@ -0,0 +1,19 @@
/**
* This removed `network` param from all the chain files
* Since this is the only tool here, it is here in index.js
*/
const fs = require('fs');
const { exec } = require('child_process');
const chainFiles = fs.readdirSync('../_data/chains/');
for(const chainFile of chainFiles){
const fileLocation = `../_data/chains/${chainFile}`
const fileData = fs.readFileSync(fileLocation,'utf8')
const fileDataJson = JSON.parse(fileData)
if(fileDataJson.network){
delete fileDataJson.network
fs.writeFileSync(fileLocation, JSON.stringify(fileDataJson, null, 2))
}
}
// TODO: Run `npx prettier --write --ignore-unknown _data`from Project Directory