diff --git a/_data/chains/eip155-5777.json b/_data/chains/eip155-5777.json index a64c0de2..27802bda 100644 --- a/_data/chains/eip155-5777.json +++ b/_data/chains/eip155-5777.json @@ -1,23 +1,18 @@ { - "name": "Digest Swarm Chain", - "chain": "DSC", - "icon": "swarmchain", - "rpc": ["https://rpc.digestgroup.ltd"], + "name": "Ganache", + "title": "Ganache GUI Ethereum Testnet", + "chain": "ETH", + "icon": "ganache", + "rpc": ["https://127.0.0.1:7545"], "faucets": [], "nativeCurrency": { - "name": "DigestCoin", - "symbol": "DGCC", + "name": "Ganache Test Ether", + "symbol": "ETH", "decimals": 18 }, - "infoURL": "https://digestgroup.ltd", - "shortName": "dgcc", + "infoURL": "https://trufflesuite.com/ganache/", + "shortName": "ggui", "chainId": 5777, "networkId": 5777, - "explorers": [ - { - "name": "swarmexplorer", - "url": "https://explorer.digestgroup.ltd", - "standard": "EIP3091" - } - ] + "explorers": [] } diff --git a/_data/icons/ganache.json b/_data/icons/ganache.json new file mode 100644 index 00000000..bc3d7b05 --- /dev/null +++ b/_data/icons/ganache.json @@ -0,0 +1,8 @@ +[ + { + "url": "ipfs://Qmc9N7V8CiLB4r7FEcG7GojqfiGGsRCZqcFWCahwMohbDW", + "width": 267, + "height": 300, + "format": "png" + } +] diff --git a/tools/schemaCheck.js b/tools/schemaCheck.js index 1013a9a5..2fb88fe4 100644 --- a/tools/schemaCheck.js +++ b/tools/schemaCheck.js @@ -2,6 +2,7 @@ const fs = require("fs") const Ajv = require("ajv") const ajv = new Ajv() const schema = require("./schema/chainSchema.json") +const { exit } = require("process") const chainFiles = fs.readdirSync("../_data/chains/") // https://chainagnostic.org/CAIPs/caip-2 @@ -29,9 +30,12 @@ for (const chainFile of chainFiles) { } if (filesWithErrors.length > 0) { - throw new Error( - `Invalid JSON Schema in ${ - filesWithErrors.length - } files at ${filesWithErrors.join(",")}` - ) + filesWithErrors.forEach(file => { + console.error(`Invalid JSON Schema in ${file}`) + }) + exit(-1); } +else { + console.info("Schema check completed successfully"); + exit(0); +} \ No newline at end of file