Revert claim to Ganache default network and port (#1826)

This commit is contained in:
Rick Mark 2022-12-04 18:05:55 -08:00 committed by GitHub
parent f8a688e8a7
commit eaab919fce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 27 additions and 20 deletions

View File

@ -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": []
}

8
_data/icons/ganache.json Normal file
View File

@ -0,0 +1,8 @@
[
{
"url": "ipfs://Qmc9N7V8CiLB4r7FEcG7GojqfiGGsRCZqcFWCahwMohbDW",
"width": 267,
"height": 300,
"format": "png"
}
]

View File

@ -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);
}