Merge branch 'ethereum-lists:master' into master

This commit is contained in:
Ryan 2022-04-12 08:57:00 -07:00 committed by GitHub
commit 59aa925b8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
38 changed files with 324 additions and 71 deletions

View File

@ -0,0 +1,28 @@
{
"name":"Eurus Mainnet",
"chain":"EUN",
"network":"eurus",
"rpc":[
"https://mainnet.eurus.network/"
],
"faucets":[
],
"nativeCurrency":{
"name":"Eurus",
"symbol":"EUN",
"decimals":18
},
"infoURL":"https://eurus.network",
"shortName":"eun",
"chainId":1008,
"networkId":1008,
"icon":"eurus",
"explorers":[
{
"name":"eurusexplorer",
"url":"https://explorer.eurus.network",
"icon":"eurus",
"standard":"none"
}
]
}

View File

@ -2,9 +2,11 @@
"name": "Sepolia", "name": "Sepolia",
"title": "Ethereum Testnet Sepolia", "title": "Ethereum Testnet Sepolia",
"chain": "ETH", "chain": "ETH",
"network": "testnet",
"rpc": [ "rpc": [
], ],
"faucets": [ "faucets": [
"http://fauceth.komputing.org?chain=11155111&address=${ADDRESS}"
], ],
"nativeCurrency": { "nativeCurrency": {
"name": "Sepolia Ether", "name": "Sepolia Ether",

View File

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

View File

@ -9,7 +9,7 @@
], ],
"nativeCurrency": { "nativeCurrency": {
"name": "MetaDot Token TestNet", "name": "MetaDot Token TestNet",
"symbol": "MTT-test", "symbol": "MTTest",
"decimals": 18 "decimals": 18
}, },
"infoURL": "https://metadot.network", "infoURL": "https://metadot.network",

View File

@ -2,7 +2,8 @@
"name": "Harmony Mainnet Shard 0", "name": "Harmony Mainnet Shard 0",
"chain": "Harmony", "chain": "Harmony",
"rpc": [ "rpc": [
"https://api.harmony.one" "https://api.harmony.one",
"https://api.s0.t.hmny.io"
], ],
"faucets": ["https://free-online-app.com/faucet-for-eth-evm-chains/"], "faucets": ["https://free-online-app.com/faucet-for-eth-evm-chains/"],
"nativeCurrency": { "nativeCurrency": {

View File

@ -2,7 +2,7 @@
"name": "Harmony Mainnet Shard 1", "name": "Harmony Mainnet Shard 1",
"chain": "Harmony", "chain": "Harmony",
"rpc": [ "rpc": [
"https://s1.api.harmony.one" "https://api.s1.t.hmny.io"
], ],
"faucets": [ "faucets": [
], ],

View File

@ -2,7 +2,7 @@
"name": "Harmony Mainnet Shard 2", "name": "Harmony Mainnet Shard 2",
"chain": "Harmony", "chain": "Harmony",
"rpc": [ "rpc": [
"https://s2.api.harmony.one" "https://api.s2.t.hmny.io"
], ],
"faucets": [ "faucets": [
], ],

View File

@ -2,7 +2,7 @@
"name": "Harmony Mainnet Shard 3", "name": "Harmony Mainnet Shard 3",
"chain": "Harmony", "chain": "Harmony",
"rpc": [ "rpc": [
"https://s3.api.harmony.one" "https://api.s3.t.hmny.io"
], ],
"faucets": [ "faucets": [
], ],

View File

@ -0,0 +1,18 @@
{
"name": "LUDAN Mainnet",
"chain": "LUDAN",
"rpc": [
"https://rpc.ludan.org/"
],
"faucets": [],
"nativeCurrency": {
"name": "LUDAN",
"symbol": "LUDAN",
"decimals": 18
},
"infoURL": "https://www.ludan.org/",
"shortName": "LUDAN",
"icon": "ludan",
"chainId": 1688,
"networkId": 1688
}

View File

@ -0,0 +1,28 @@
{
"name":"Eurus Testnet",
"chain":"EUN",
"network":"eurus-testnet",
"rpc":[
"https://testnet.eurus.network"
],
"faucets":[
],
"nativeCurrency":{
"name":"Eurus",
"symbol":"EUN",
"decimals":18
},
"infoURL":"https://eurus.network",
"shortName":"euntest",
"chainId":1984,
"networkId":1984,
"icon":"eurus",
"explorers":[
{
"name":"testnetexplorer",
"url":"https://testnetexplorer.eurus.network",
"icon":"eurus",
"standard":"none"
}
]
}

View File

@ -10,7 +10,7 @@
"faucets": [], "faucets": [],
"nativeCurrency": { "nativeCurrency": {
"name": "milkAda", "name": "milkAda",
"symbol": "milkAda", "symbol": "mADA",
"decimals": 18 "decimals": 18
}, },
"infoURL": "https://milkomeda.com", "infoURL": "https://milkomeda.com",
@ -24,4 +24,4 @@
"standard": "none" "standard": "none"
} }
] ]
} }

View File

@ -10,7 +10,7 @@
"faucets": [], "faucets": [],
"nativeCurrency": { "nativeCurrency": {
"name": "milkTAda", "name": "milkTAda",
"symbol": "milkTAda", "symbol": "mTAda",
"decimals": 18 "decimals": 18
}, },
"infoURL": "https://milkomeda.com", "infoURL": "https://milkomeda.com",
@ -24,4 +24,4 @@
"standard": "none" "standard": "none"
} }
] ]
} }

View File

@ -3,7 +3,7 @@
"chain": "Alaya", "chain": "Alaya",
"rpc": [ "rpc": [
"https://openapi.alaya.network/rpc", "https://openapi.alaya.network/rpc",
"wss://openapi.alaya.network/ws" "wss://openapi.alaya.network/ws"
], ],
"faucets": [], "faucets": [],
"nativeCurrency": { "nativeCurrency": {

View File

@ -4,7 +4,7 @@
"network": "mainnet", "network": "mainnet",
"rpc": [ "rpc": [
"https://openapi.platon.network/rpc", "https://openapi.platon.network/rpc",
"wss://openapi.platon.network/ws" "wss://openapi.platon.network/ws"
], ],
"faucets": [], "faucets": [],
"nativeCurrency": { "nativeCurrency": {

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": 21337,
"networkId": 21337,
"icon": "cennz",
"explorers": [{
"name": "UNcover",
"url": "https://uncoverexplorer.com",
"standard": "none"
}]
}

View File

@ -3,7 +3,7 @@
"chain": "PlatON", "chain": "PlatON",
"rpc": [ "rpc": [
"https://devnetopenapi.platon.network/rpc", "https://devnetopenapi.platon.network/rpc",
"wss://devnetopenapi.platon.network/ws" "wss://devnetopenapi.platon.network/ws"
], ],
"faucets": [ "faucets": [
"https://faucet.platon.network/faucet/?id=e5d32df10aee11ec911142010a667c03" "https://faucet.platon.network/faucet/?id=e5d32df10aee11ec911142010a667c03"
@ -15,7 +15,7 @@
}, },
"infoURL": "https://www.platon.network", "infoURL": "https://www.platon.network",
"shortName": "platondev", "shortName": "platondev",
"chainId": 210309, "chainId": 2203181,
"networkId": 1, "networkId": 1,
"icon": "platon", "icon": "platon",
"explorers": [ "explorers": [

View File

@ -2,6 +2,7 @@
"name": "Ropsten", "name": "Ropsten",
"title": "Ethereum Testnet Ropsten", "title": "Ethereum Testnet Ropsten",
"chain": "ETH", "chain": "ETH",
"network": "testnet",
"rpc": [ "rpc": [
"https://ropsten.infura.io/v3/${INFURA_API_KEY}", "https://ropsten.infura.io/v3/${INFURA_API_KEY}",
"wss://ropsten.infura.io/ws/v3/${INFURA_API_KEY}" "wss://ropsten.infura.io/ws/v3/${INFURA_API_KEY}"

View File

@ -0,0 +1,24 @@
{
"name": "Optimism on Gnosis Chain",
"chain": "OGC",
"rpc": [
"https://optimism.gnosischain.com",
"wss://optimism.gnosischain.com/wss"
],
"faucets": ["https://faucet.gimlu.com/gnosis"],
"nativeCurrency": {
"name": "xDAI",
"symbol": "xDAI",
"decimals": 18
},
"infoURL": "https://www.xdaichain.com/for-developers/optimism-optimistic-rollups-on-gc",
"shortName": "ogc",
"chainId": 300,
"networkId": 300,
"explorers": [{
"name": "blockscout",
"url": "https://blockscout.com/xdai/optimism",
"icon": "blockscout",
"standard": "EIP3091"
}]
}

View File

@ -9,11 +9,11 @@
], ],
"nativeCurrency": { "nativeCurrency": {
"name": "Lisinski Ether", "name": "Lisinski Ether",
"symbol": "LISINSKI", "symbol": "LISINS",
"decimals": 18 "decimals": 18
}, },
"infoURL": "https://lisinski.online", "infoURL": "https://lisinski.online",
"shortName": "lisinski", "shortName": "lisinski",
"chainId": 385, "chainId": 385,
"networkId": 385 "networkId": 385
} }

View File

@ -2,6 +2,7 @@
"name": "Rinkeby", "name": "Rinkeby",
"title": "Ethereum Testnet Rinkeby", "title": "Ethereum Testnet Rinkeby",
"chain": "ETH", "chain": "ETH",
"network": "testnet",
"rpc": [ "rpc": [
"https://rinkeby.infura.io/v3/${INFURA_API_KEY}", "https://rinkeby.infura.io/v3/${INFURA_API_KEY}",
"wss://rinkeby.infura.io/ws/v3/${INFURA_API_KEY}" "wss://rinkeby.infura.io/ws/v3/${INFURA_API_KEY}"

View File

@ -2,6 +2,7 @@
"name": "Kovan", "name": "Kovan",
"title": "Ethereum Testnet Kovan", "title": "Ethereum Testnet Kovan",
"chain": "ETH", "chain": "ETH",
"network": "testnet",
"rpc": [ "rpc": [
"https://kovan.poa.network", "https://kovan.poa.network",
"http://kovan.poa.network:8545", "http://kovan.poa.network:8545",

View File

@ -2,6 +2,7 @@
"name": "Görli", "name": "Görli",
"title": "Ethereum Testnet Görli", "title": "Ethereum Testnet Görli",
"chain": "ETH", "chain": "ETH",
"network": "testnet",
"rpc": [ "rpc": [
"https://goerli.infura.io/v3/${INFURA_API_KEY}", "https://goerli.infura.io/v3/${INFURA_API_KEY}",
"wss://goerli.infura.io/v3/${INFURA_API_KEY}", "wss://goerli.infura.io/v3/${INFURA_API_KEY}",

View File

@ -2,25 +2,31 @@
"name": "Ontology Mainnet", "name": "Ontology Mainnet",
"chain": "Ontology", "chain": "Ontology",
"rpc": [ "rpc": [
"https://dappnode1.ont.io:20339", "http://dappnode1.ont.io:20339",
"https://dappnode2.ont.io:20339", "http://dappnode2.ont.io:20339",
"https://dappnode3.ont.io:20339", "http://dappnode3.ont.io:20339",
"https://dappnode4.ont.io:20339" "http://dappnode4.ont.io:20339",
"https://dappnode1.ont.io:10339",
"https://dappnode2.ont.io:10339",
"https://dappnode3.ont.io:10339",
"https://dappnode4.ont.io:10339"
], ],
"faucets": [ "faucets": [
], ],
"nativeCurrency": { "nativeCurrency": {
"name": "ONG", "name": "ONG",
"symbol": "ONG", "symbol": "ONG",
"decimals": 9 "decimals": 18
}, },
"infoURL": "https://ont.io/", "infoURL": "https://ont.io/",
"shortName": "Ontology Mainnet", "shortName": "Ontology Mainnet",
"chainId": 58, "chainId": 58,
"networkId": 58, "networkId": 58,
"explorers": [{ "explorers": [
"name": "explorer", {
"url": "https://explorer.ont.io", "name": "explorer",
"standard": "EIP3091" "url": "https://explorer.ont.io",
}] "standard": "EIP3091"
}
]
} }

View File

@ -2,10 +2,14 @@
"name": "Ontology Testnet", "name": "Ontology Testnet",
"chain": "Ontology", "chain": "Ontology",
"rpc": [ "rpc": [
"https://polaris1.ont.io:20339", "http://polaris1.ont.io:20339",
"https://polaris2.ont.io:20339", "http://polaris2.ont.io:20339",
"https://polaris3.ont.io:20339", "http://polaris3.ont.io:20339",
"https://polaris4.ont.io:20339" "http://polaris4.ont.io:20339",
"https://polaris1.ont.io:10339",
"https://polaris2.ont.io:10339",
"https://polaris3.ont.io:10339",
"https://polaris4.ont.io:10339"
], ],
"faucets": [ "faucets": [
"https://developer.ont.io/" "https://developer.ont.io/"
@ -13,7 +17,7 @@
"nativeCurrency": { "nativeCurrency": {
"name": "ONG", "name": "ONG",
"symbol": "ONG", "symbol": "ONG",
"decimals": 9 "decimals": 18
}, },
"infoURL": "https://ont.io/", "infoURL": "https://ont.io/",
"shortName": "Ontology Testnet", "shortName": "Ontology Testnet",

View File

@ -0,0 +1,23 @@
{
"name": "Star Social Testnet",
"chain": "SNS",
"rpc": [
"https://avastar.cc/ext/bc/C/rpc"
],
"faucets": [
],
"nativeCurrency": {
"name": "Social",
"symbol": "SNS",
"decimals": 18
},
"infoURL": "https://info.avastar.cc",
"shortName": "SNS",
"chainId": 700,
"networkId": 700,
"explorers": [{
"name": "starscan",
"url": "https://avastar.info",
"standard": "EIP3091"
}]
}

View File

@ -0,0 +1,24 @@
{
"name": "Zenith Mainnet",
"chain": "Zenith",
"rpc": [
"https://dataserver-1.zenithchain.co/",
"https://dataserver-us-1.zenithchain.co/"
],
"faucets": [],
"nativeCurrency": {
"name": "ZENITH",
"symbol": "ZENITH",
"decimals": 18
},
"infoURL": "https://www.zenithchain.co/",
"chainId": 79,
"networkId": 79,
"shortName": "zenith",
"explorers": [{
"name": "zenith scan",
"url": "https://scan.zenithchain.co",
"standard": "EIP3091"
}]
}

View File

@ -0,0 +1,23 @@
{
"name": "Villinius",
"chain": "Zenith",
"rpc": [
"https://vilinius.zenithchain.co/http"
],
"faucets": ["https://faucet.zenithchain.co/"],
"nativeCurrency": {
"name": "Villinius",
"symbol": "VIL",
"decimals": 18
},
"infoURL": "https://www.zenithchain.co/",
"chainId": 81,
"networkId": 81,
"shortName": "VIL",
"explorers": [{
"name": "villinius zenith scan",
"url": "https://vilinius.scan.zenithchain.co",
"standard": "EIP3091"
}]
}

View File

@ -1,7 +1,7 @@
{ {
"name": "Evmos Testnet", "name": "Evmos Testnet",
"chain": "Evmos", "chain": "Evmos",
"rpc": ["https://evmos-archive-testnet.api.bdnodes.net:8545"], "rpc": ["https://eth.bd.evmos.dev:8545"],
"faucets": ["https://faucet.evmos.dev"], "faucets": ["https://faucet.evmos.dev"],
"nativeCurrency": { "nativeCurrency": {
"name": "test-Evmos", "name": "test-Evmos",
@ -15,9 +15,9 @@
"icon": "evmos", "icon": "evmos",
"explorers": [ "explorers": [
{ {
"name": "Evmos EVM Explorer (Blockscout)", "name": "Evmos EVM Explorer",
"url": "https://evm.evmos.dev", "url": "https://evm.evmos.dev",
"standard": "none", "standard": "EIP3091",
"icon": "evmos" "icon": "evmos"
}, },
{ {

View File

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

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

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

View File

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

View File

@ -1,8 +1,8 @@
[ [
{ {
"url": "ipfs://Qmc4nHKSTgRwhpc5gpUnd7cQb7ooUgkcMxSbJcDAjJqx6T", "url": "ipfs://QmeZW6VKUFTbz7PPW8PmDR3ZHa6osYPLBFPnW8T5LSU49c",
"width": 1000, "width": 400,
"height": 620, "height": 400,
"format": "svg" "format": "png"
} }
] ]

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

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

View File

@ -1,6 +1,6 @@
buildscript { buildscript {
ext { ext {
KOTLIN_VERSION = "1.6.10" KOTLIN_VERSION = "1.6.20"
KETHEREUM_VERSION = "0.85.7" KETHEREUM_VERSION = "0.85.7"
} }

View File

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

View File

@ -1,5 +1,5 @@
plugins { plugins {
id("com.google.devtools.ksp").version("1.6.10-1.0.2") id("com.google.devtools.ksp").version("1.6.20-1.0.5")
id("maven-publish") id("maven-publish")
} }

View File

@ -171,6 +171,29 @@ fun checkChain(chainFile: File, connectRPC: Boolean) {
} }
} }
jsonObject["nativeCurrency"]?.let {
if (it !is JsonObject) {
throw NativeCurrencyMustBeObject()
}
val symbol = it["symbol"]
if (symbol !is String) {
throw NativeCurrencySymbolMustBeString()
}
if (symbol.length >= 7) {
throw NativeCurrencySymbolMustHaveLessThan7Chars()
}
if (it.keys != setOf("symbol","decimals","name")) {
throw NativeCurrencyCanOnlyHaveSymbolNameAndDecimals()
}
if (it["decimals"] !is Int) {
throw NativeCurrencyDecimalMustBeInt()
}
if (it["name"] !is String) {
throw NativeCurrencyNameMustBeString()
}
}
jsonObject["explorers"]?.let { jsonObject["explorers"]?.let {
if (it !is JsonArray<*>) { if (it !is JsonArray<*>) {
throw (ExplorersMustBeArray()) throw (ExplorersMustBeArray())

View File

@ -26,4 +26,10 @@ class ParentBridgeNoArray: Exception("parent bridge must be array")
class BridgeNoObject: Exception("parent bridges must be array consisting of json objects") class BridgeNoObject: Exception("parent bridges must be array consisting of json objects")
class BridgeOnlyURL: Exception("parent bridge only contain an URL") 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") class DeprecatedMustBeBoolean: Exception("deprecated must be boolean")
class NativeCurrencyMustBeObject: Exception("Native currency must be object")
class NativeCurrencySymbolMustBeString: Exception("Native currency symbol must be string")
class NativeCurrencySymbolMustHaveLessThan7Chars: Exception("Native currency symbol must have less than 7 chars")
class NativeCurrencyCanOnlyHaveSymbolNameAndDecimals: Exception("Native currency can only have symbol decimals and name")
class NativeCurrencyDecimalMustBeInt: Exception("Native currency decimals must be int")
class NativeCurrencyNameMustBeString: Exception("Native currency name must be string")