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", "name": "Ganache",
"chain": "DSC", "title": "Ganache GUI Ethereum Testnet",
"icon": "swarmchain", "chain": "ETH",
"rpc": ["https://rpc.digestgroup.ltd"], "icon": "ganache",
"rpc": ["https://127.0.0.1:7545"],
"faucets": [], "faucets": [],
"nativeCurrency": { "nativeCurrency": {
"name": "DigestCoin", "name": "Ganache Test Ether",
"symbol": "DGCC", "symbol": "ETH",
"decimals": 18 "decimals": 18
}, },
"infoURL": "https://digestgroup.ltd", "infoURL": "https://trufflesuite.com/ganache/",
"shortName": "dgcc", "shortName": "ggui",
"chainId": 5777, "chainId": 5777,
"networkId": 5777, "networkId": 5777,
"explorers": [ "explorers": []
{
"name": "swarmexplorer",
"url": "https://explorer.digestgroup.ltd",
"standard": "EIP3091"
}
]
} }

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 = require("ajv")
const ajv = new Ajv() const ajv = new Ajv()
const schema = require("./schema/chainSchema.json") const schema = require("./schema/chainSchema.json")
const { exit } = require("process")
const chainFiles = fs.readdirSync("../_data/chains/") const chainFiles = fs.readdirSync("../_data/chains/")
// https://chainagnostic.org/CAIPs/caip-2 // https://chainagnostic.org/CAIPs/caip-2
@ -29,9 +30,12 @@ for (const chainFile of chainFiles) {
} }
if (filesWithErrors.length > 0) { if (filesWithErrors.length > 0) {
throw new Error( filesWithErrors.forEach(file => {
`Invalid JSON Schema in ${ console.error(`Invalid JSON Schema in ${file}`)
filesWithErrors.length })
} files at ${filesWithErrors.join(",")}` exit(-1);
)
} }
else {
console.info("Schema check completed successfully");
exit(0);
}