From e4db4232aed5b0af90a55398eacd2ce7f6bcf788 Mon Sep 17 00:00:00 2001 From: Nick Plante Date: Wed, 30 Mar 2022 01:24:41 -0400 Subject: [PATCH 01/17] add milkomeda (#1005) * add milkomeda * fix logo --- _data/chains/eip155-2001.json | 26 ++++++++++++++++++++++++++ _data/chains/eip155-200101.json | 26 ++++++++++++++++++++++++++ _data/icons/milkomeda.json | 8 ++++++++ 3 files changed, 60 insertions(+) create mode 100644 _data/chains/eip155-2001.json create mode 100644 _data/chains/eip155-200101.json create mode 100644 _data/icons/milkomeda.json diff --git a/_data/chains/eip155-2001.json b/_data/chains/eip155-2001.json new file mode 100644 index 00000000..733f23bd --- /dev/null +++ b/_data/chains/eip155-2001.json @@ -0,0 +1,26 @@ +{ + "name": "Milkomeda Cardano (C1)", + "chain": "Milkomeda", + "icon": "milkomeda", + "network": "testnet", + "rpc": [ + "https://rpc-mainnet-cardano-evm.c1.milkomeda.com" + ], + "faucets": [], + "nativeCurrency": { + "name": "milkADA", + "symbol": "milkADA", + "decimals": 18 + }, + "infoURL": "https://www.milkomeda.com/", + "shortName": "milkomeda-c1", + "chainId": 2001, + "networkId": 2001, + "explorers": [ + { + "name": "blockscout", + "url": "https://explorer-mainnet-cardano-evm.c1.milkomeda.com", + "standard": "none" + } + ] +} diff --git a/_data/chains/eip155-200101.json b/_data/chains/eip155-200101.json new file mode 100644 index 00000000..15aa554f --- /dev/null +++ b/_data/chains/eip155-200101.json @@ -0,0 +1,26 @@ +{ + "name": "Milkomeda Cardano Testnet", + "chain": "Milkomeda", + "icon": "milkomeda", + "network": "mainnet", + "rpc": [ + "https://rpc-devnet-cardano-evm.c1.milkomeda.com" + ], + "faucets": [], + "nativeCurrency": { + "name": "milkTADA", + "symbol": "milkTADA", + "decimals": 18 + }, + "infoURL": "https://www.milkomeda.com/", + "shortName": "milkomeda-c1-testnet", + "chainId": 200101, + "networkId": 200101, + "explorers": [ + { + "name": "blockscout", + "url": "https://explorer-devnet-cardano-evm.c1.milkomeda.com", + "standard": "none" + } + ] +} diff --git a/_data/icons/milkomeda.json b/_data/icons/milkomeda.json new file mode 100644 index 00000000..e047603c --- /dev/null +++ b/_data/icons/milkomeda.json @@ -0,0 +1,8 @@ +[ + { + "url": "ipfs://QmYVjUi7W8vpTfqYEftwqwC5L4LJgW77Xu73T4BhTBeV5i", + "width": 250, + "height": 250, + "format": "png" + } +] From a4872a8f0aab73b60acb335fa0837eeab56aa6a5 Mon Sep 17 00:00:00 2001 From: "Mr. Faun" <95269940+MrFaun@users.noreply.github.com> Date: Tue, 29 Mar 2022 23:29:46 -0600 Subject: [PATCH 02/17] update dfk chain rpcs to new avax dns (#1020) Co-authored-by: Mr. Faun --- _data/chains/eip155-335.json | 2 +- _data/chains/eip155-53935.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/_data/chains/eip155-335.json b/_data/chains/eip155-335.json index 70867040..aea5f4b4 100644 --- a/_data/chains/eip155-335.json +++ b/_data/chains/eip155-335.json @@ -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": { diff --git a/_data/chains/eip155-53935.json b/_data/chains/eip155-53935.json index b578f7c2..5b36e61e 100644 --- a/_data/chains/eip155-53935.json +++ b/_data/chains/eip155-53935.json @@ -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": { From 8c47983d5d9029d4f3989c8a14954e58d12abe27 Mon Sep 17 00:00:00 2001 From: Ha Do Manh <52105195+hadomanh@users.noreply.github.com> Date: Wed, 30 Mar 2022 12:32:27 +0700 Subject: [PATCH 03/17] Add Openpiece chain (#1021) * Add Openpiece chain * Remove trailing slashes * Update RPC --- _data/chains/eip155-141.json | 26 ++++++++++++++++++++++++++ _data/chains/eip155-54.json | 26 ++++++++++++++++++++++++++ _data/icons/openpiece.json | 8 ++++++++ 3 files changed, 60 insertions(+) create mode 100644 _data/chains/eip155-141.json create mode 100644 _data/chains/eip155-54.json create mode 100644 _data/icons/openpiece.json diff --git a/_data/chains/eip155-141.json b/_data/chains/eip155-141.json new file mode 100644 index 00000000..8767132a --- /dev/null +++ b/_data/chains/eip155-141.json @@ -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" + } + ] +} diff --git a/_data/chains/eip155-54.json b/_data/chains/eip155-54.json new file mode 100644 index 00000000..3ae973d4 --- /dev/null +++ b/_data/chains/eip155-54.json @@ -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" + } + ] +} diff --git a/_data/icons/openpiece.json b/_data/icons/openpiece.json new file mode 100644 index 00000000..0db62b46 --- /dev/null +++ b/_data/icons/openpiece.json @@ -0,0 +1,8 @@ +[ + { + "url": "ipfs://QmVTahJkdSH3HPYsJMK2GmqfWZjLyxE7cXy1aHEnHU3vp2", + "width": 250, + "height": 250, + "format": "png" + } +] From ce56110b92234bc1035135e0784d11c8bafa50d6 Mon Sep 17 00:00:00 2001 From: Defido Coin <95591037+defido@users.noreply.github.com> Date: Wed, 30 Mar 2022 18:58:46 +1000 Subject: [PATCH 04/17] Create autobahn.json (#1019) * Create autobahn.json add IPFS logo for autobahn * Update autobahn.json https://cloudflare-ipfs.com/ipfs/QmZP19pbqTco4vaP9siduLWP8pdYArFK3onfR55tvjr12s?__cf_chl_tk=rAq2wDZVv39pXT3K9kfFfmeOP5AMGe18yvErqx5TwO8-1648619770-0-gaNycGzNCBE * Update autobahn.json fix size issue * Update autobahn.json --- _data/icons/autobahn.json | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 _data/icons/autobahn.json diff --git a/_data/icons/autobahn.json b/_data/icons/autobahn.json new file mode 100644 index 00000000..4c75e138 --- /dev/null +++ b/_data/icons/autobahn.json @@ -0,0 +1,8 @@ +[ + { + "url": "ipfs://QmZP19pbqTco4vaP9siduLWP8pdYArFK3onfR55tvjr12s", + "width": 489, + "height": 489, + "format": "png" + } +] From c522d3947593842a83fd06399bc4bbacee7a3c15 Mon Sep 17 00:00:00 2001 From: Aidan Starke <52016903+aidan-starke@users.noreply.github.com> Date: Wed, 30 Mar 2022 22:14:56 +1300 Subject: [PATCH 05/17] add CENNZnet metadata (#1017) * add CENNZnet metadata * update name and rpc url * update shortNames --- _data/chains/eip155-1337.json | 24 ++++++++++++++++++++++++ _data/chains/eip155-3000.json | 21 +++++++++++++++++++++ _data/chains/eip155-3001.json | 26 ++++++++++++++++++++++++++ _data/icons/cennz.json | 7 +++++++ 4 files changed, 78 insertions(+) create mode 100644 _data/chains/eip155-1337.json create mode 100644 _data/chains/eip155-3000.json create mode 100644 _data/chains/eip155-3001.json create mode 100644 _data/icons/cennz.json diff --git a/_data/chains/eip155-1337.json b/_data/chains/eip155-1337.json new file mode 100644 index 00000000..abba4e07 --- /dev/null +++ b/_data/chains/eip155-1337.json @@ -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" + }] + } \ No newline at end of file diff --git a/_data/chains/eip155-3000.json b/_data/chains/eip155-3000.json new file mode 100644 index 00000000..87b75f7b --- /dev/null +++ b/_data/chains/eip155-3000.json @@ -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" + } \ No newline at end of file diff --git a/_data/chains/eip155-3001.json b/_data/chains/eip155-3001.json new file mode 100644 index 00000000..486e98d6 --- /dev/null +++ b/_data/chains/eip155-3001.json @@ -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" + }] + } \ No newline at end of file diff --git a/_data/icons/cennz.json b/_data/icons/cennz.json new file mode 100644 index 00000000..472558f4 --- /dev/null +++ b/_data/icons/cennz.json @@ -0,0 +1,7 @@ +[ + { + "url":"ipfs://QmfDkgrhCFfVJErVVDuU7UYasYsooXMEXFhBzLMNm6pgey", + "format":"svg" + } + ] + \ No newline at end of file From 461ecb34c2510da7d92e59fd156f9473d242fcd5 Mon Sep 17 00:00:00 2001 From: GimluCom <79271880+GimluCom@users.noreply.github.com> Date: Wed, 30 Mar 2022 09:19:52 +0000 Subject: [PATCH 06/17] Add icon to Gnosis Chain (#1016) * Create gnosis.json * Create blockscout.json * Update eip155-100.json * Update blockscout.json --- _data/chains/eip155-100.json | 3 ++- _data/icons/blockscout.json | 8 ++++++++ _data/icons/gnosis.json | 8 ++++++++ 3 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 _data/icons/blockscout.json create mode 100644 _data/icons/gnosis.json diff --git a/_data/chains/eip155-100.json b/_data/chains/eip155-100.json index 1ba46ec4..97d374eb 100644 --- a/_data/chains/eip155-100.json +++ b/_data/chains/eip155-100.json @@ -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" }] } diff --git a/_data/icons/blockscout.json b/_data/icons/blockscout.json new file mode 100644 index 00000000..30e326a2 --- /dev/null +++ b/_data/icons/blockscout.json @@ -0,0 +1,8 @@ +[ + { + "url": "ipfs://bafybeifu5tpui7dk5cjoo54kde7pmuthvnl7sdykobuarsxgu7t2izurnq", + "width": 512, + "height": 512, + "format": "png" + } +] diff --git a/_data/icons/gnosis.json b/_data/icons/gnosis.json new file mode 100644 index 00000000..7c91dfb9 --- /dev/null +++ b/_data/icons/gnosis.json @@ -0,0 +1,8 @@ +[ + { + "url": "ipfs://bafybeidk4swpgdyqmpz6shd5onvpaujvwiwthrhypufnwr6xh3dausz2dm", + "width": 1800, + "height": 1800, + "format": "png" + } +] From 0c9aca991281ae6c134bd6de30126635ec826604 Mon Sep 17 00:00:00 2001 From: Draco Li Date: Wed, 30 Mar 2022 08:01:32 -0400 Subject: [PATCH 07/17] add kava evm testnet (#1014) --- _data/chains/eip155-2221.json | 25 +++++++++++++++++++++++++ _data/icons/kava.json | 6 ++++++ 2 files changed, 31 insertions(+) create mode 100644 _data/chains/eip155-2221.json create mode 100644 _data/icons/kava.json diff --git a/_data/chains/eip155-2221.json b/_data/chains/eip155-2221.json new file mode 100644 index 00000000..d9a33a82 --- /dev/null +++ b/_data/chains/eip155-2221.json @@ -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" + } + ] +} diff --git a/_data/icons/kava.json b/_data/icons/kava.json new file mode 100644 index 00000000..da3221f4 --- /dev/null +++ b/_data/icons/kava.json @@ -0,0 +1,6 @@ +[ + { + "url": "ipfs://QmdpRTk6oL1HRW9xC6cAc4Rnf9gs6zgdAcr4Z3HcLztusm", + "format": "svg" + } +] From 60ac4755142710f95f1f1584823b95da638162eb Mon Sep 17 00:00:00 2001 From: Defido Coin <95591037+defido@users.noreply.github.com> Date: Wed, 30 Mar 2022 22:02:00 +1000 Subject: [PATCH 08/17] Create EIP-45000.json (#1018) * Create EIP-45000.json Add Autobahn network * Rename EIP-45000.json to eip155-45000.json * Update _data/chains/eip155-45000.json * Update eip155-45000.json Co-authored-by: ligi --- _data/chains/eip155-45000.json | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 _data/chains/eip155-45000.json diff --git a/_data/chains/eip155-45000.json b/_data/chains/eip155-45000.json new file mode 100644 index 00000000..5163f518 --- /dev/null +++ b/_data/chains/eip155-45000.json @@ -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" + }] +} From 446312705da31671bf8b9d3e0eeb3bb036ec2213 Mon Sep 17 00:00:00 2001 From: Doni Wicaksono Date: Wed, 30 Mar 2022 19:27:52 +0700 Subject: [PATCH 09/17] Add AEROCHAIN TESTNET (#1015) * Add AEROCHAIN TESTNET * Update _data/chains/eip155-788.json Co-authored-by: ligi --- _data/chains/eip155-788.json | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 _data/chains/eip155-788.json diff --git a/_data/chains/eip155-788.json b/_data/chains/eip155-788.json new file mode 100644 index 00000000..691b8622 --- /dev/null +++ b/_data/chains/eip155-788.json @@ -0,0 +1,25 @@ +{ + "name": "AEROCHAIN TESTNET", + "chain": "AEROCHAIN", + "network": "testnet", + "rpc": [ + "https://trpc.aerochaincoin.org/", + "https://trpc.aerochain.id/" + ], + "faucets": [], + "nativeCurrency": { + "name": "AEROCHAIN", + "symbol": "ARC", + "decimals": 18 + }, + "infoURL": "https://aerochaincoin.org/", + "shortName": "arc", + "chainId": 788, + "networkId": 788, + "explorers": [{ + "name": "aeroscan", + "url": "https://testnet.aeroscan.id", + "standard": "EIP3091" + }] +} + From 822e66fd2827e4c18a27fcd5fe6cfc5df3e95ce1 Mon Sep 17 00:00:00 2001 From: ligi Date: Wed, 30 Mar 2022 15:41:24 +0200 Subject: [PATCH 10/17] Improve deprecation (#1022) * Use gradle 7.4.1 * Improve deprecation of chains closes #1003 --- .../chains/{deprecated => }/eip155-1286.json | 9 ++++---- _data/chains/{deprecated => }/eip155-218.json | 7 ++++--- gradle/wrapper/gradle-wrapper.properties | 2 +- .../kotlin/org/ethereum/lists/chains/Env.kt | 3 ++- .../kotlin/org/ethereum/lists/chains/Main.kt | 12 ++++++----- .../ethereum/lists/chains/model/Exceptions.kt | 3 ++- .../ethereum/lists/chains/TheChainChecker.kt | 5 +++++ .../invalid/invalid_deprecation/eip155-1.json | 21 +++++++++++++++++++ .../resources/test_chains/valid/eip155-1.json | 3 ++- 9 files changed, 49 insertions(+), 16 deletions(-) rename _data/chains/{deprecated => }/eip155-1286.json (63%) rename _data/chains/{deprecated => }/eip155-218.json (71%) create mode 100644 processor/src/test/resources/test_chains/invalid/invalid_deprecation/eip155-1.json diff --git a/_data/chains/deprecated/eip155-1286.json b/_data/chains/eip155-1286.json similarity index 63% rename from _data/chains/deprecated/eip155-1286.json rename to _data/chains/eip155-1286.json index 3cc60c66..87c2353c 100644 --- a/_data/chains/deprecated/eip155-1286.json +++ b/_data/chains/eip155-1286.json @@ -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 -} \ No newline at end of file + "networkId": 1286, + "deprecated": true +} diff --git a/_data/chains/deprecated/eip155-218.json b/_data/chains/eip155-218.json similarity index 71% rename from _data/chains/deprecated/eip155-218.json rename to _data/chains/eip155-218.json index 9cc2c382..fae3262a 100644 --- a/_data/chains/deprecated/eip155-218.json +++ b/_data/chains/eip155-218.json @@ -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 } diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index b1159fc5..d7e66b5c 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -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 diff --git a/processor/src/main/kotlin/org/ethereum/lists/chains/Env.kt b/processor/src/main/kotlin/org/ethereum/lists/chains/Env.kt index fbb13991..20ec2842 100644 --- a/processor/src/main/kotlin/org/ethereum/lists/chains/Env.kt +++ b/processor/src/main/kotlin/org/ethereum/lists/chains/Env.kt @@ -22,7 +22,8 @@ val optionalFields = listOf( "explorers", "title", "network", - "parent" + "parent", + "deprecated" ) val moshi: Moshi = Moshi.Builder().build() diff --git a/processor/src/main/kotlin/org/ethereum/lists/chains/Main.kt b/processor/src/main/kotlin/org/ethereum/lists/chains/Main.kt index 05c30ca2..ace5915c 100644 --- a/processor/src/main/kotlin/org/ethereum/lists/chains/Main.kt +++ b/processor/src/main/kotlin/org/ethereum/lists/chains/Main.kt @@ -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() diff --git a/processor/src/main/kotlin/org/ethereum/lists/chains/model/Exceptions.kt b/processor/src/main/kotlin/org/ethereum/lists/chains/model/Exceptions.kt index 1f0830e1..522e9eb2 100644 --- a/processor/src/main/kotlin/org/ethereum/lists/chains/model/Exceptions.kt +++ b/processor/src/main/kotlin/org/ethereum/lists/chains/model/Exceptions.kt @@ -25,4 +25,5 @@ class ParentHasExtraFields(fields: Set): 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") \ No newline at end of file +class ParentChainDoesNotExist(chain: String): Exception("Referenced parent chain ($chain) does not exist") +class DeprecatedMustBeBoolean: Exception("deprecated must be boolean") \ No newline at end of file diff --git a/processor/src/test/kotlin/org/ethereum/lists/chains/TheChainChecker.kt b/processor/src/test/kotlin/org/ethereum/lists/chains/TheChainChecker.kt index 327d8eb4..17d213a2 100644 --- a/processor/src/test/kotlin/org/ethereum/lists/chains/TheChainChecker.kt +++ b/processor/src/test/kotlin/org/ethereum/lists/chains/TheChainChecker.kt @@ -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) diff --git a/processor/src/test/resources/test_chains/invalid/invalid_deprecation/eip155-1.json b/processor/src/test/resources/test_chains/invalid/invalid_deprecation/eip155-1.json new file mode 100644 index 00000000..11a8782e --- /dev/null +++ b/processor/src/test/resources/test_chains/invalid/invalid_deprecation/eip155-1.json @@ -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" +} \ No newline at end of file diff --git a/processor/src/test/resources/test_chains/valid/eip155-1.json b/processor/src/test/resources/test_chains/valid/eip155-1.json index 457f8964..847e295f 100644 --- a/processor/src/test/resources/test_chains/valid/eip155-1.json +++ b/processor/src/test/resources/test_chains/valid/eip155-1.json @@ -15,5 +15,6 @@ "name": "Ether", "symbol": "ETH", "decimals": 18 - } + }, + "deprecated": true } From b1886ae011b0b60396a089c3c86cffc0bcaaf454 Mon Sep 17 00:00:00 2001 From: navigatrum <6989338+navigatrum@users.noreply.github.com> Date: Wed, 30 Mar 2022 16:15:16 +0200 Subject: [PATCH 11/17] Update eip155-356256156.json (#1009) Edit typo in title --- _data/chains/eip155-356256156.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_data/chains/eip155-356256156.json b/_data/chains/eip155-356256156.json index 04e99e81..eec8b1a6 100644 --- a/_data/chains/eip155-356256156.json +++ b/_data/chains/eip155-356256156.json @@ -1,5 +1,5 @@ { - "name": "Gather Tesnet Network", + "name": "Gather Testnet Network", "chain": "GTH", "rpc": [ "https://testnet.gather.network" From 0758209cacec6bac12dadf59425c251a63fcbc01 Mon Sep 17 00:00:00 2001 From: Patrick O'Grady Date: Thu, 31 Mar 2022 06:51:56 -0700 Subject: [PATCH 12/17] add explorer + update RPC (#1023) --- _data/chains/eip155-11111.json | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/_data/chains/eip155-11111.json b/_data/chains/eip155-11111.json index 6123e340..276dbdec 100644 --- a/_data/chains/eip155-11111.json +++ b/_data/chains/eip155-11111.json @@ -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" } ] -} \ No newline at end of file +} From 110758d32666deebccb6a38d4ec883b9f77af321 Mon Sep 17 00:00:00 2001 From: Willian Mitsuda Date: Thu, 31 Mar 2022 11:45:11 -0300 Subject: [PATCH 13/17] Add Otterscan to the usages section (#1026) --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 117d5038..6588439c 100644 --- a/README.md +++ b/README.md @@ -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! From 02e2f5b53b8f2d67aa1cac2c5aa2c818785f499d Mon Sep 17 00:00:00 2001 From: Doni Wicaksono Date: Fri, 1 Apr 2022 01:27:34 +0700 Subject: [PATCH 14/17] Update eip155-788.json (#1032) * Update Aerochain Testnet * Update Aerochain Testnet --- _data/chains/eip155-788.json | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/_data/chains/eip155-788.json b/_data/chains/eip155-788.json index 691b8622..47f125d1 100644 --- a/_data/chains/eip155-788.json +++ b/_data/chains/eip155-788.json @@ -1,19 +1,20 @@ { - "name": "AEROCHAIN TESTNET", - "chain": "AEROCHAIN", + "name": "Aerochain Testnet", + "chain": "Aerochain", "network": "testnet", "rpc": [ - "https://trpc.aerochaincoin.org/", - "https://trpc.aerochain.id/" + "https://testnet-rpc.aerochain.id/" ], - "faucets": [], + "faucets": [ + "https://faucet.aerochain.id/" + ], "nativeCurrency": { - "name": "AEROCHAIN", - "symbol": "ARC", + "name": "Aerochain Testnet", + "symbol": "TAero", "decimals": 18 }, "infoURL": "https://aerochaincoin.org/", - "shortName": "arc", + "shortName": "taero", "chainId": 788, "networkId": 788, "explorers": [{ From fcd95aa1b52edce24d504a496556e28a2d668bab Mon Sep 17 00:00:00 2001 From: Dimas Victor Date: Fri, 1 Apr 2022 01:50:46 +0700 Subject: [PATCH 15/17] Added Digest Swarm Chain (#1030) * Added Digest Swarm Chain * Update _data/icons/swarmexplorer.json * Update _data/icons/swarmchain.json Co-authored-by: ligi --- _data/chains/eip155-5777.json | 26 ++++++++++++++++++++++++++ _data/icons/swarmchain.json | 8 ++++++++ _data/icons/swarmexplorer.json | 8 ++++++++ 3 files changed, 42 insertions(+) create mode 100644 _data/chains/eip155-5777.json create mode 100644 _data/icons/swarmchain.json create mode 100644 _data/icons/swarmexplorer.json diff --git a/_data/chains/eip155-5777.json b/_data/chains/eip155-5777.json new file mode 100644 index 00000000..d37a28c4 --- /dev/null +++ b/_data/chains/eip155-5777.json @@ -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" + } + ] +} + \ No newline at end of file diff --git a/_data/icons/swarmchain.json b/_data/icons/swarmchain.json new file mode 100644 index 00000000..44528a16 --- /dev/null +++ b/_data/icons/swarmchain.json @@ -0,0 +1,8 @@ +[ + { + "url":"ipfs://QmRu7KmQoC2vSVeD7Y6bxRYikQHYs86H9fRAdb1ytPkK9r", + "width":500, + "height":500, + "format":"png" + } +] diff --git a/_data/icons/swarmexplorer.json b/_data/icons/swarmexplorer.json new file mode 100644 index 00000000..c909e961 --- /dev/null +++ b/_data/icons/swarmexplorer.json @@ -0,0 +1,8 @@ +[ + { + "url":"ipfs://Qmbzy8c54EHh7yzMHZir98BrcV6sazr77QLoi63HAoayuo", + "width":289, + "height":288, + "format":"png" + } +] From 4b2492561a205808e381afdebb0fb11f82e743d3 Mon Sep 17 00:00:00 2001 From: Nicolas Di Prima Date: Thu, 31 Mar 2022 21:23:02 +0100 Subject: [PATCH 16/17] Fix wrong values in the Milkomeda network (#1029) * Fix wrong values in the Milkomeda network * Update _data/chains/eip155-2001.json Co-authored-by: ligi Co-authored-by: ligi --- _data/chains/eip155-2001.json | 21 +++++++++++---------- _data/chains/eip155-200101.json | 21 +++++++++++---------- _data/icons/milkomeda.json | 10 +++++----- 3 files changed, 27 insertions(+), 25 deletions(-) diff --git a/_data/chains/eip155-2001.json b/_data/chains/eip155-2001.json index 733f23bd..770880d7 100644 --- a/_data/chains/eip155-2001.json +++ b/_data/chains/eip155-2001.json @@ -1,26 +1,27 @@ { - "name": "Milkomeda Cardano (C1)", - "chain": "Milkomeda", + "name": "Milkomeda C1 Mainnet", + "chain": "milkAda", "icon": "milkomeda", - "network": "testnet", + "network": "mainnet", "rpc": [ - "https://rpc-mainnet-cardano-evm.c1.milkomeda.com" + "https://rpc-mainnet-cardano-evm.c1.milkomeda.com", + "wss://rpc-mainnet-cardano-evm.c1.milkomeda.com" ], "faucets": [], "nativeCurrency": { - "name": "milkADA", - "symbol": "milkADA", + "name": "milkAda", + "symbol": "milkAda", "decimals": 18 }, - "infoURL": "https://www.milkomeda.com/", - "shortName": "milkomeda-c1", + "infoURL": "https://milkomeda.com", + "shortName": "milkAda", "chainId": 2001, "networkId": 2001, "explorers": [ { - "name": "blockscout", + "name": "Blockscout", "url": "https://explorer-mainnet-cardano-evm.c1.milkomeda.com", "standard": "none" } ] -} +} \ No newline at end of file diff --git a/_data/chains/eip155-200101.json b/_data/chains/eip155-200101.json index 15aa554f..0e5dee2d 100644 --- a/_data/chains/eip155-200101.json +++ b/_data/chains/eip155-200101.json @@ -1,26 +1,27 @@ { - "name": "Milkomeda Cardano Testnet", - "chain": "Milkomeda", + "name": "Milkomeda C1 Testnet", + "chain": "milkTAda", "icon": "milkomeda", - "network": "mainnet", + "network": "testnet", "rpc": [ - "https://rpc-devnet-cardano-evm.c1.milkomeda.com" + "https://rpc-devnet-cardano-evm.c1.milkomeda.com", + "wss://rpc-devnet-cardano-evm.c1.milkomeda.com" ], "faucets": [], "nativeCurrency": { - "name": "milkTADA", - "symbol": "milkTADA", + "name": "milkTAda", + "symbol": "milkTAda", "decimals": 18 }, - "infoURL": "https://www.milkomeda.com/", - "shortName": "milkomeda-c1-testnet", + "infoURL": "https://milkomeda.com", + "shortName": "milkTAda", "chainId": 200101, "networkId": 200101, "explorers": [ { - "name": "blockscout", + "name": "Blockscout", "url": "https://explorer-devnet-cardano-evm.c1.milkomeda.com", "standard": "none" } ] -} +} \ No newline at end of file diff --git a/_data/icons/milkomeda.json b/_data/icons/milkomeda.json index e047603c..d1ecea13 100644 --- a/_data/icons/milkomeda.json +++ b/_data/icons/milkomeda.json @@ -1,8 +1,8 @@ [ { - "url": "ipfs://QmYVjUi7W8vpTfqYEftwqwC5L4LJgW77Xu73T4BhTBeV5i", - "width": 250, - "height": 250, - "format": "png" + "url": "ipfs://QmdoUtvHDybu5ppYBZT8BMRp6AqByVSoQs8nFwKbaS55jd", + "width": 367, + "height": 367, + "format": "svg" } -] +] \ No newline at end of file From a8d9a6048f57d1b3b5524691d4cfab1c16e96dd7 Mon Sep 17 00:00:00 2001 From: Trieu Nguyen <67940289+trieuaioz@users.noreply.github.com> Date: Sat, 2 Apr 2022 00:12:33 +0700 Subject: [PATCH 17/17] Add AIOZ Network Mainet and Testnet (#1033) --- _data/chains/eip155-168.json | 25 +++++++++++++++++++++++++ _data/chains/eip155-4102.json | 25 +++++++++++++++++++++++++ _data/icons/aioz.json | 8 ++++++++ 3 files changed, 58 insertions(+) create mode 100644 _data/chains/eip155-168.json create mode 100644 _data/chains/eip155-4102.json create mode 100644 _data/icons/aioz.json diff --git a/_data/chains/eip155-168.json b/_data/chains/eip155-168.json new file mode 100644 index 00000000..7727c34b --- /dev/null +++ b/_data/chains/eip155-168.json @@ -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" + }] +} diff --git a/_data/chains/eip155-4102.json b/_data/chains/eip155-4102.json new file mode 100644 index 00000000..8593a577 --- /dev/null +++ b/_data/chains/eip155-4102.json @@ -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" + }] +} diff --git a/_data/icons/aioz.json b/_data/icons/aioz.json new file mode 100644 index 00000000..ae8acacd --- /dev/null +++ b/_data/icons/aioz.json @@ -0,0 +1,8 @@ +[ + { + "url": "ipfs://QmRAGPFhvQiXgoJkui7WHajpKctGFrJNhHqzYdwcWt5V3Z", + "width": 1024, + "height": 1024, + "format": "png" + } +] \ No newline at end of file