Merge branch 'ethereum-lists:master' into master

This commit is contained in:
Ryan 2022-04-01 15:30:26 -07:00 committed by GitHub
commit c9987cb62e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
38 changed files with 468 additions and 25 deletions

View File

@ -101,4 +101,5 @@ There are also aggregated json files with all chains automatically assembled:
* [chainmap.io](https://chainmap.io)
* [chainlist.in](https://www.chainlist.in)
* [chainz.me](https://chainz.me)
* [Otterscan](https://otterscan.io)
* Your project - contact us to add it here!

View File

@ -1,6 +1,7 @@
{
"name": "Gnosis Chain (formerly xDai)",
"chain": "Gnosis",
"icon": "gnosis",
"rpc": [
"https://rpc.gnosischain.com",
"https://xdai.poanetwork.dev",
@ -21,10 +22,10 @@
"chainId": 100,
"networkId": 100,
"slip44": 700,
"explorers": [{
"name": "blockscout",
"url": "https://blockscout.com/xdai/mainnet",
"icon": "blockscout",
"standard": "EIP3091"
}]
}

View File

@ -3,9 +3,11 @@
"chain": "WAGMI",
"icon": "wagmi",
"rpc": [
"https://api.trywagmi.xyz/rpc"
"https://subnets.avax.network/wagmi/wagmi-chain-testnet/rpc"
],
"faucets": [
"https://faucet.trywagmi.xyz"
],
"faucets": [],
"nativeCurrency": {
"name": "WAGMI",
"symbol": "WGM",
@ -18,8 +20,8 @@
"explorers": [
{
"name": "WAGMI Explorer",
"url": "https://trywagmi.xyz",
"standard": "none"
"url": "https://subnets.avax.network/wagmi/wagmi-chain-testnet/explorer",
"standard": "EIP3091"
}
]
}
}

View File

@ -1,5 +1,5 @@
{
"name": "Moonrock",
"name": "Moonrock old",
"chain": "MOON",
"rpc": [],
"faucets": [],
@ -9,7 +9,8 @@
"decimals": 18
},
"infoURL": "",
"shortName": "mrock",
"shortName": "mrock-old",
"chainId": 1286,
"networkId": 1286
}
"networkId": 1286,
"deprecated": true
}

View File

@ -0,0 +1,24 @@
{
"name": "CENNZnet Azalea",
"chain": "CENNZnet",
"network": "azalea",
"rpc": [
"https://cennznet.unfrastructure.io/public"
],
"faucets": [],
"nativeCurrency": {
"name": "CPAY",
"symbol": "CPAY",
"decimals": 18
},
"infoURL": "https://cennz.net",
"shortName": "cennz-a",
"chainId": 1337,
"networkId": 1337,
"icon": "cennz",
"explorers": [{
"name": "UNcover",
"url": "https://uncoverexplorer.com",
"standard": "none"
}]
}

View File

@ -0,0 +1,26 @@
{
"name": "Openpiece Testnet",
"chain": "OPENPIECE",
"icon": "openpiece",
"network": "testnet",
"rpc": [
"https://testnet.openpiece.io"
],
"faucets": [],
"nativeCurrency": {
"name": "Belly",
"symbol": "BELLY",
"decimals": 18
},
"infoURL": "https://cryptopiece.online",
"shortName": "OPtest",
"chainId": 141,
"networkId": 141,
"explorers": [
{
"name": "Belly Scan",
"url": "https://testnet.bellyscan.com",
"standard": "none"
}
]
}

View File

@ -0,0 +1,25 @@
{
"name": "AIOZ Network",
"chain": "AIOZ",
"network": "mainnet",
"icon": "aioz",
"rpc": [
"https://eth-dataseed.aioz.network"
],
"faucets": [],
"nativeCurrency": {
"name": "AIOZ",
"symbol": "AIOZ",
"decimals": 18
},
"infoURL": "https://aioz.network",
"shortName": "aioz",
"chainId": 168,
"networkId": 168,
"slip44": 60,
"explorers": [{
"name": "AIOZ Network Explorer",
"url": "https://explorer.aioz.network",
"standard": "EIP3091"
}]
}

View File

@ -0,0 +1,27 @@
{
"name": "Milkomeda C1 Mainnet",
"chain": "milkAda",
"icon": "milkomeda",
"network": "mainnet",
"rpc": [
"https://rpc-mainnet-cardano-evm.c1.milkomeda.com",
"wss://rpc-mainnet-cardano-evm.c1.milkomeda.com"
],
"faucets": [],
"nativeCurrency": {
"name": "milkAda",
"symbol": "milkAda",
"decimals": 18
},
"infoURL": "https://milkomeda.com",
"shortName": "milkAda",
"chainId": 2001,
"networkId": 2001,
"explorers": [
{
"name": "Blockscout",
"url": "https://explorer-mainnet-cardano-evm.c1.milkomeda.com",
"standard": "none"
}
]
}

View File

@ -0,0 +1,27 @@
{
"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"
],
"faucets": [],
"nativeCurrency": {
"name": "milkTAda",
"symbol": "milkTAda",
"decimals": 18
},
"infoURL": "https://milkomeda.com",
"shortName": "milkTAda",
"chainId": 200101,
"networkId": 200101,
"explorers": [
{
"name": "Blockscout",
"url": "https://explorer-devnet-cardano-evm.c1.milkomeda.com",
"standard": "none"
}
]
}

View File

@ -1,5 +1,5 @@
{
"name": "SoterOne Mainnet",
"name": "SoterOne Mainnet old",
"chain": "SOTER",
"rpc": [
"https://rpc.soter.one"
@ -12,7 +12,8 @@
"decimals": 18
},
"infoURL": "https://www.soterone.com",
"shortName": "SO1",
"shortName": "SO1-old",
"chainId": 218,
"networkId": 218
"networkId": 218,
"deprecated": true
}

View File

@ -0,0 +1,25 @@
{
"name": "Kava EVM Testnet",
"chain": "KAVA",
"network": "testnet",
"rpc": ["https://evm.evm-alpha.kava.io", "wss://evm-ws.evm-alpha.kava.io"],
"faucets": ["https://faucet.kava.io"],
"nativeCurrency": {
"name": "Kava",
"symbol": "KAVA",
"decimals": 18
},
"infoURL": "https://www.kava.io",
"shortName": "kava",
"chainId": 2221,
"networkId": 2221,
"icon": "kava",
"explorers": [
{
"name": "Kava Testnet Explorer",
"url": "https://explorer.evm-alpha.kava.io",
"standard": "EIP3091",
"icon": "kava"
}
]
}

View File

@ -0,0 +1,21 @@
{
"name": "CENNZnet Rata",
"chain": "CENNZnet",
"network": "rata",
"rpc": [
"https://rata.centrality.me/public"
],
"faucets": [
"https://app-faucet.centrality.me"
],
"nativeCurrency": {
"name": "CPAY",
"symbol": "CPAY",
"decimals": 18
},
"infoURL": "https://cennz.net",
"shortName": "cennz-r",
"chainId": 3000,
"networkId": 3000,
"icon": "cennz"
}

View File

@ -0,0 +1,26 @@
{
"name": "CENNZnet Nikau",
"chain": "CENNZnet",
"network": "nikau",
"rpc": [
"https://nikau.centrality.me/public"
],
"faucets": [
"https://app-faucet.centrality.me"
],
"nativeCurrency": {
"name": "CPAY",
"symbol": "CPAY",
"decimals": 18
},
"infoURL": "https://cennz.net",
"shortName": "cennz-n",
"chainId": 3001,
"networkId": 3001,
"icon": "cennz",
"explorers": [{
"name": "UNcover",
"url": "https://www.uncoverexplorer.com/?network=Nikau",
"standard": "none"
}]
}

View File

@ -4,7 +4,7 @@
"icon": "dfk",
"network": "testnet",
"rpc": [
"https://api-dfk.avax-test.network/rpc"
"https://subnets.avax.network/defi-kingdoms/dfk-chain-testnet/rpc"
],
"faucets": [],
"nativeCurrency": {

View File

@ -1,5 +1,5 @@
{
"name": "Gather Tesnet Network",
"name": "Gather Testnet Network",
"chain": "GTH",
"rpc": [
"https://testnet.gather.network"

View File

@ -0,0 +1,25 @@
{
"name": "AIOZ Network Testnet",
"chain": "AIOZ",
"network": "testnet",
"icon": "aioz",
"rpc": [
"https://eth-ds.testnet.aioz.network"
],
"faucets": [],
"nativeCurrency": {
"name": "testAIOZ",
"symbol": "AIOZ",
"decimals": 18
},
"infoURL": "https://aioz.network",
"shortName": "aioz-testnet",
"chainId": 4102,
"networkId": 4102,
"slip44": 60,
"explorers": [{
"name": "AIOZ Network Testnet Explorer",
"url": "https://testnet.explorer.aioz.network",
"standard": "EIP3091"
}]
}

View File

@ -0,0 +1,25 @@
{
"name": "Autobahn Network",
"chain": "BNB",
"network": "mainnet",
"rpc": [
"https://rpc.autobahn.network"
],
"faucets": [],
"nativeCurrency": {
"name": "BNB",
"symbol": "BNB",
"decimals": 18
},
"infoURL": "https://autobahn.network",
"shortName": "autobahn",
"chainId": 45000,
"networkId": 45000,
"icon": "autobahn",
"explorers": [{
"name": "autobahn explorer",
"url": "https://explorer.autobahn.network",
"icon": "autobahn",
"standard": "EIP3091"
}]
}

View File

@ -4,7 +4,7 @@
"icon": "dfk",
"network": "mainnet",
"rpc": [
"https://api-dfk.avax.network/rpc"
"https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc"
],
"faucets": [],
"nativeCurrency": {

View File

@ -0,0 +1,26 @@
{
"name": "Openpiece Mainnet",
"chain": "OPENPIECE",
"icon": "openpiece",
"network": "mainnet",
"rpc": [
"https://mainnet.openpiece.io"
],
"faucets": [],
"nativeCurrency": {
"name": "Belly",
"symbol": "BELLY",
"decimals": 18
},
"infoURL": "https://cryptopiece.online",
"shortName": "OP",
"chainId": 54,
"networkId": 54,
"explorers": [
{
"name": "Belly Scan",
"url": "https://bellyscan.com",
"standard": "none"
}
]
}

View File

@ -0,0 +1,26 @@
{
"name": "Digest Swarm Chain",
"chain": "DSC",
"icon": "swarmchain",
"rpc": [
"https://rpc.digestgroup.ltd"
],
"faucets": [],
"nativeCurrency": {
"name": "DigestCoin",
"symbol": "DGCC",
"decimals": 18
},
"infoURL": "https://digestgroup.ltd",
"shortName": "dgcc",
"chainId": 5777,
"networkId": 5777,
"explorers": [
{
"name": "swarmexplorer",
"url": "https://explorer.digestgroup.ltd",
"standard": "EIP3091"
}
]
}

View File

@ -0,0 +1,26 @@
{
"name": "Aerochain Testnet",
"chain": "Aerochain",
"network": "testnet",
"rpc": [
"https://testnet-rpc.aerochain.id/"
],
"faucets": [
"https://faucet.aerochain.id/"
],
"nativeCurrency": {
"name": "Aerochain Testnet",
"symbol": "TAero",
"decimals": 18
},
"infoURL": "https://aerochaincoin.org/",
"shortName": "taero",
"chainId": 788,
"networkId": 788,
"explorers": [{
"name": "aeroscan",
"url": "https://testnet.aeroscan.id",
"standard": "EIP3091"
}]
}

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

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

View File

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

View File

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

7
_data/icons/cennz.json Normal file
View File

@ -0,0 +1,7 @@
[
{
"url":"ipfs://QmfDkgrhCFfVJErVVDuU7UYasYsooXMEXFhBzLMNm6pgey",
"format":"svg"
}
]

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

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

6
_data/icons/kava.json Normal file
View File

@ -0,0 +1,6 @@
[
{
"url": "ipfs://QmdpRTk6oL1HRW9xC6cAc4Rnf9gs6zgdAcr4Z3HcLztusm",
"format": "svg"
}
]

View File

@ -0,0 +1,8 @@
[
{
"url": "ipfs://QmdoUtvHDybu5ppYBZT8BMRp6AqByVSoQs8nFwKbaS55jd",
"width": 367,
"height": 367,
"format": "svg"
}
]

View File

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

View File

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

View File

@ -0,0 +1,8 @@
[
{
"url":"ipfs://Qmbzy8c54EHh7yzMHZir98BrcV6sazr77QLoi63HAoayuo",
"width":289,
"height":288,
"format":"png"
}
]

View File

@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.1-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

View File

@ -22,7 +22,8 @@ val optionalFields = listOf(
"explorers",
"title",
"network",
"parent"
"parent",
"deprecated"
)
val moshi: Moshi = Moshi.Builder().build()

View File

@ -93,10 +93,8 @@ private fun doChecks(doRPCConnect: Boolean) {
checkIcon(it)
}
allFiles.filter { it.isDirectory }.forEach {
if (it.name != "deprecated") {
error("the only directory allowed is 'deprecated'")
}
allFiles.filter { it.isDirectory }.forEach { _ ->
error("should not contain a directory")
}
}
@ -214,7 +212,11 @@ fun checkChain(chainFile: File, connectRPC: Boolean) {
throw ENSRegistryAddressMustBeValid()
}
}
jsonObject["deprecated"]?.let {
if (it !is Boolean) {
throw DeprecatedMustBeBoolean()
}
}
jsonObject["parent"]?.let {
if (it !is JsonObject) {
throw ParentMustBeObject()

View File

@ -25,4 +25,5 @@ class ParentHasExtraFields(fields: Set<String>): Exception("parent has extra fie
class ParentBridgeNoArray: Exception("parent bridge must be array")
class BridgeNoObject: Exception("parent bridges must be array consisting of json objects")
class BridgeOnlyURL: Exception("parent bridge only contain an URL")
class ParentChainDoesNotExist(chain: String): Exception("Referenced parent chain ($chain) does not exist")
class ParentChainDoesNotExist(chain: String): Exception("Referenced parent chain ($chain) does not exist")
class DeprecatedMustBeBoolean: Exception("deprecated must be boolean")

View File

@ -221,6 +221,11 @@ class TheChainChecker {
checkChain(getFile("invalid/explorermissingurl/eip155-1.json"), false)
}
@Test(expected = DeprecatedMustBeBoolean::class)
fun shouldFailOnInvalidDeprecation() {
checkChain(getFile("invalid/invalid_deprecation/eip155-1.json"), false)
}
@Test
fun canParse2chains() {
checkChain(getFile("valid/eip155-1.json"), false)

View File

@ -0,0 +1,21 @@
{
"name": "Ethereum Mainnet",
"shortName": "eth",
"chain": "ETH",
"network": "mainnet",
"chainId": 1,
"networkId": 1,
"rpc": [
"https://mainnet.infura.io/v3/${INFURA_API_KEY}",
"https://api.mycryptoapi.com/eth"
],
"faucets": [],
"infoURL": "https://ethereum.org",
"nativeCurrency": {
"name": "Ether",
"symbol": "ETH",
"decimals": 18
},
"explorers": [],
"deprecated": "yolo"
}

View File

@ -15,5 +15,6 @@
"name": "Ether",
"symbol": "ETH",
"decimals": 18
}
},
"deprecated": true
}