diff --git a/_data/chains/eip155-1008.json b/_data/chains/eip155-1008.json new file mode 100644 index 00000000..9931f8c5 --- /dev/null +++ b/_data/chains/eip155-1008.json @@ -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" + } + ] + } \ No newline at end of file diff --git a/_data/chains/eip155-11155111.json b/_data/chains/eip155-11155111.json index 2db2d033..35e6e361 100644 --- a/_data/chains/eip155-11155111.json +++ b/_data/chains/eip155-11155111.json @@ -2,9 +2,11 @@ "name": "Sepolia", "title": "Ethereum Testnet Sepolia", "chain": "ETH", + "network": "testnet", "rpc": [ ], "faucets": [ + "http://fauceth.komputing.org?chain=11155111&address=${ADDRESS}" ], "nativeCurrency": { "name": "Sepolia Ether", diff --git a/_data/chains/eip155-1337.json b/_data/chains/eip155-1337.json index abba4e07..b30f09d2 100644 --- a/_data/chains/eip155-1337.json +++ b/_data/chains/eip155-1337.json @@ -1,24 +1,16 @@ { - "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 + "name": "CENNZnet old", + "chain": "CENNZnet", + "rpc": [], + "faucets": [], + "nativeCurrency": { + "name": "CPAY", + "symbol": "CPAY", + "decimals": 18 + }, + "infoURL": "https://cennz.net", + "shortName": "cennz-old", + "chainId": 1337, + "networkId": 1337, + "deprecated": true +} \ No newline at end of file diff --git a/_data/chains/eip155-16001.json b/_data/chains/eip155-16001.json index 9727cebc..64d0a66a 100644 --- a/_data/chains/eip155-16001.json +++ b/_data/chains/eip155-16001.json @@ -9,7 +9,7 @@ ], "nativeCurrency": { "name": "MetaDot Token TestNet", - "symbol": "MTT-test", + "symbol": "MTTest", "decimals": 18 }, "infoURL": "https://metadot.network", diff --git a/_data/chains/eip155-1666600000.json b/_data/chains/eip155-1666600000.json index 0a19b696..0052bd66 100644 --- a/_data/chains/eip155-1666600000.json +++ b/_data/chains/eip155-1666600000.json @@ -2,7 +2,8 @@ "name": "Harmony Mainnet Shard 0", "chain": "Harmony", "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/"], "nativeCurrency": { diff --git a/_data/chains/eip155-1666600001.json b/_data/chains/eip155-1666600001.json index 4c7330bc..8f6613ff 100644 --- a/_data/chains/eip155-1666600001.json +++ b/_data/chains/eip155-1666600001.json @@ -2,7 +2,7 @@ "name": "Harmony Mainnet Shard 1", "chain": "Harmony", "rpc": [ - "https://s1.api.harmony.one" + "https://api.s1.t.hmny.io" ], "faucets": [ ], diff --git a/_data/chains/eip155-1666600002.json b/_data/chains/eip155-1666600002.json index 5b0b933d..be5f1223 100644 --- a/_data/chains/eip155-1666600002.json +++ b/_data/chains/eip155-1666600002.json @@ -2,7 +2,7 @@ "name": "Harmony Mainnet Shard 2", "chain": "Harmony", "rpc": [ - "https://s2.api.harmony.one" + "https://api.s2.t.hmny.io" ], "faucets": [ ], diff --git a/_data/chains/eip155-1666600003.json b/_data/chains/eip155-1666600003.json index 3bf7e72c..50bf2f62 100644 --- a/_data/chains/eip155-1666600003.json +++ b/_data/chains/eip155-1666600003.json @@ -2,7 +2,7 @@ "name": "Harmony Mainnet Shard 3", "chain": "Harmony", "rpc": [ - "https://s3.api.harmony.one" + "https://api.s3.t.hmny.io" ], "faucets": [ ], diff --git a/_data/chains/eip155-1688.json b/_data/chains/eip155-1688.json new file mode 100644 index 00000000..a70f580a --- /dev/null +++ b/_data/chains/eip155-1688.json @@ -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 +} diff --git a/_data/chains/eip155-1984.json b/_data/chains/eip155-1984.json new file mode 100644 index 00000000..f0a94680 --- /dev/null +++ b/_data/chains/eip155-1984.json @@ -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" + } + ] + } \ No newline at end of file diff --git a/_data/chains/eip155-2001.json b/_data/chains/eip155-2001.json index 770880d7..65a69bda 100644 --- a/_data/chains/eip155-2001.json +++ b/_data/chains/eip155-2001.json @@ -10,7 +10,7 @@ "faucets": [], "nativeCurrency": { "name": "milkAda", - "symbol": "milkAda", + "symbol": "mADA", "decimals": 18 }, "infoURL": "https://milkomeda.com", @@ -24,4 +24,4 @@ "standard": "none" } ] -} \ No newline at end of file +} diff --git a/_data/chains/eip155-200101.json b/_data/chains/eip155-200101.json index 0e5dee2d..00395c65 100644 --- a/_data/chains/eip155-200101.json +++ b/_data/chains/eip155-200101.json @@ -10,7 +10,7 @@ "faucets": [], "nativeCurrency": { "name": "milkTAda", - "symbol": "milkTAda", + "symbol": "mTAda", "decimals": 18 }, "infoURL": "https://milkomeda.com", @@ -24,4 +24,4 @@ "standard": "none" } ] -} \ No newline at end of file +} diff --git a/_data/chains/eip155-201018.json b/_data/chains/eip155-201018.json index 560137ef..6bc3aa07 100644 --- a/_data/chains/eip155-201018.json +++ b/_data/chains/eip155-201018.json @@ -3,7 +3,7 @@ "chain": "Alaya", "rpc": [ "https://openapi.alaya.network/rpc", - "wss://openapi.alaya.network/ws" + "wss://openapi.alaya.network/ws" ], "faucets": [], "nativeCurrency": { diff --git a/_data/chains/eip155-210425.json b/_data/chains/eip155-210425.json index 21b73ff8..64be201c 100644 --- a/_data/chains/eip155-210425.json +++ b/_data/chains/eip155-210425.json @@ -4,7 +4,7 @@ "network": "mainnet", "rpc": [ "https://openapi.platon.network/rpc", - "wss://openapi.platon.network/ws" + "wss://openapi.platon.network/ws" ], "faucets": [], "nativeCurrency": { diff --git a/_data/chains/eip155-21337.json b/_data/chains/eip155-21337.json new file mode 100644 index 00000000..cb352546 --- /dev/null +++ b/_data/chains/eip155-21337.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": 21337, + "networkId": 21337, + "icon": "cennz", + "explorers": [{ + "name": "UNcover", + "url": "https://uncoverexplorer.com", + "standard": "none" + }] + } \ No newline at end of file diff --git a/_data/chains/eip155-210309.json b/_data/chains/eip155-2203181.json similarity index 89% rename from _data/chains/eip155-210309.json rename to _data/chains/eip155-2203181.json index aed0e533..8d0afe0b 100644 --- a/_data/chains/eip155-210309.json +++ b/_data/chains/eip155-2203181.json @@ -3,7 +3,7 @@ "chain": "PlatON", "rpc": [ "https://devnetopenapi.platon.network/rpc", - "wss://devnetopenapi.platon.network/ws" + "wss://devnetopenapi.platon.network/ws" ], "faucets": [ "https://faucet.platon.network/faucet/?id=e5d32df10aee11ec911142010a667c03" @@ -15,7 +15,7 @@ }, "infoURL": "https://www.platon.network", "shortName": "platondev", - "chainId": 210309, + "chainId": 2203181, "networkId": 1, "icon": "platon", "explorers": [ diff --git a/_data/chains/eip155-3.json b/_data/chains/eip155-3.json index 1857ee89..cd487bb1 100644 --- a/_data/chains/eip155-3.json +++ b/_data/chains/eip155-3.json @@ -2,6 +2,7 @@ "name": "Ropsten", "title": "Ethereum Testnet Ropsten", "chain": "ETH", + "network": "testnet", "rpc": [ "https://ropsten.infura.io/v3/${INFURA_API_KEY}", "wss://ropsten.infura.io/ws/v3/${INFURA_API_KEY}" diff --git a/_data/chains/eip155-300.json b/_data/chains/eip155-300.json new file mode 100644 index 00000000..fb5b4f86 --- /dev/null +++ b/_data/chains/eip155-300.json @@ -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" + }] +} diff --git a/_data/chains/eip155-385.json b/_data/chains/eip155-385.json index afb79bac..30c74158 100644 --- a/_data/chains/eip155-385.json +++ b/_data/chains/eip155-385.json @@ -9,11 +9,11 @@ ], "nativeCurrency": { "name": "Lisinski Ether", - "symbol": "LISINSKI", + "symbol": "LISINS", "decimals": 18 }, "infoURL": "https://lisinski.online", "shortName": "lisinski", "chainId": 385, "networkId": 385 -} \ No newline at end of file +} diff --git a/_data/chains/eip155-4.json b/_data/chains/eip155-4.json index 341b245e..84c77276 100644 --- a/_data/chains/eip155-4.json +++ b/_data/chains/eip155-4.json @@ -2,6 +2,7 @@ "name": "Rinkeby", "title": "Ethereum Testnet Rinkeby", "chain": "ETH", + "network": "testnet", "rpc": [ "https://rinkeby.infura.io/v3/${INFURA_API_KEY}", "wss://rinkeby.infura.io/ws/v3/${INFURA_API_KEY}" diff --git a/_data/chains/eip155-42.json b/_data/chains/eip155-42.json index 4f2fef1b..cb231a53 100644 --- a/_data/chains/eip155-42.json +++ b/_data/chains/eip155-42.json @@ -2,6 +2,7 @@ "name": "Kovan", "title": "Ethereum Testnet Kovan", "chain": "ETH", + "network": "testnet", "rpc": [ "https://kovan.poa.network", "http://kovan.poa.network:8545", diff --git a/_data/chains/eip155-5.json b/_data/chains/eip155-5.json index 70c1cec9..51269407 100644 --- a/_data/chains/eip155-5.json +++ b/_data/chains/eip155-5.json @@ -2,6 +2,7 @@ "name": "Görli", "title": "Ethereum Testnet Görli", "chain": "ETH", + "network": "testnet", "rpc": [ "https://goerli.infura.io/v3/${INFURA_API_KEY}", "wss://goerli.infura.io/v3/${INFURA_API_KEY}", diff --git a/_data/chains/eip155-58.json b/_data/chains/eip155-58.json index abfaabef..fc081b15 100644 --- a/_data/chains/eip155-58.json +++ b/_data/chains/eip155-58.json @@ -2,25 +2,31 @@ "name": "Ontology Mainnet", "chain": "Ontology", "rpc": [ - "https://dappnode1.ont.io:20339", - "https://dappnode2.ont.io:20339", - "https://dappnode3.ont.io:20339", - "https://dappnode4.ont.io:20339" + "http://dappnode1.ont.io:20339", + "http://dappnode2.ont.io:20339", + "http://dappnode3.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": [ ], "nativeCurrency": { "name": "ONG", "symbol": "ONG", - "decimals": 9 + "decimals": 18 }, "infoURL": "https://ont.io/", "shortName": "Ontology Mainnet", "chainId": 58, "networkId": 58, - "explorers": [{ - "name": "explorer", - "url": "https://explorer.ont.io", - "standard": "EIP3091" - }] + "explorers": [ + { + "name": "explorer", + "url": "https://explorer.ont.io", + "standard": "EIP3091" + } + ] } diff --git a/_data/chains/eip155-5851.json b/_data/chains/eip155-5851.json index 5ebaa18c..a5611eba 100644 --- a/_data/chains/eip155-5851.json +++ b/_data/chains/eip155-5851.json @@ -2,10 +2,14 @@ "name": "Ontology Testnet", "chain": "Ontology", "rpc": [ - "https://polaris1.ont.io:20339", - "https://polaris2.ont.io:20339", - "https://polaris3.ont.io:20339", - "https://polaris4.ont.io:20339" + "http://polaris1.ont.io:20339", + "http://polaris2.ont.io:20339", + "http://polaris3.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": [ "https://developer.ont.io/" @@ -13,7 +17,7 @@ "nativeCurrency": { "name": "ONG", "symbol": "ONG", - "decimals": 9 + "decimals": 18 }, "infoURL": "https://ont.io/", "shortName": "Ontology Testnet", diff --git a/_data/chains/eip155-700.json b/_data/chains/eip155-700.json new file mode 100644 index 00000000..bddac1cc --- /dev/null +++ b/_data/chains/eip155-700.json @@ -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" + }] + } \ No newline at end of file diff --git a/_data/chains/eip155-79.json b/_data/chains/eip155-79.json new file mode 100644 index 00000000..d2e5f343 --- /dev/null +++ b/_data/chains/eip155-79.json @@ -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" + }] + } + \ No newline at end of file diff --git a/_data/chains/eip155-81.json b/_data/chains/eip155-81.json new file mode 100644 index 00000000..ad8537fb --- /dev/null +++ b/_data/chains/eip155-81.json @@ -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" + }] + } + \ No newline at end of file diff --git a/_data/chains/eip155-9000.json b/_data/chains/eip155-9000.json index dfc5cb85..4e9e3cca 100644 --- a/_data/chains/eip155-9000.json +++ b/_data/chains/eip155-9000.json @@ -1,7 +1,7 @@ { "name": "Evmos Testnet", "chain": "Evmos", - "rpc": ["https://evmos-archive-testnet.api.bdnodes.net:8545"], + "rpc": ["https://eth.bd.evmos.dev:8545"], "faucets": ["https://faucet.evmos.dev"], "nativeCurrency": { "name": "test-Evmos", @@ -15,9 +15,9 @@ "icon": "evmos", "explorers": [ { - "name": "Evmos EVM Explorer (Blockscout)", + "name": "Evmos EVM Explorer", "url": "https://evm.evmos.dev", - "standard": "none", + "standard": "EIP3091", "icon": "evmos" }, { diff --git a/_data/icons/cennz.json b/_data/icons/cennz.json index 472558f4..a76e74ff 100644 --- a/_data/icons/cennz.json +++ b/_data/icons/cennz.json @@ -1,7 +1,6 @@ [ - { - "url":"ipfs://QmfDkgrhCFfVJErVVDuU7UYasYsooXMEXFhBzLMNm6pgey", - "format":"svg" - } - ] - \ No newline at end of file + { + "url": "ipfs://QmWhNm7tTi6SYbiumULDRk956hxgqaZSX77vcxBNn8fvnw", + "format": "svg" + } +] \ No newline at end of file diff --git a/_data/icons/eurus.json b/_data/icons/eurus.json new file mode 100644 index 00000000..e45a43bc --- /dev/null +++ b/_data/icons/eurus.json @@ -0,0 +1,8 @@ +[ + { + "url":"ipfs://QmaGd5L9jGPbfyGXBFhu9gjinWJ66YtNrXq8x6Q98Eep9e", + "width":471, + "height":471, + "format":"svg" + } +] \ No newline at end of file diff --git a/_data/icons/eurusexplorer.json b/_data/icons/eurusexplorer.json new file mode 100644 index 00000000..e45a43bc --- /dev/null +++ b/_data/icons/eurusexplorer.json @@ -0,0 +1,8 @@ +[ + { + "url":"ipfs://QmaGd5L9jGPbfyGXBFhu9gjinWJ66YtNrXq8x6Q98Eep9e", + "width":471, + "height":471, + "format":"svg" + } +] \ No newline at end of file diff --git a/_data/icons/evmos.json b/_data/icons/evmos.json index 88a52748..f33dbfef 100644 --- a/_data/icons/evmos.json +++ b/_data/icons/evmos.json @@ -1,8 +1,8 @@ [ { - "url": "ipfs://Qmc4nHKSTgRwhpc5gpUnd7cQb7ooUgkcMxSbJcDAjJqx6T", - "width": 1000, - "height": 620, - "format": "svg" + "url": "ipfs://QmeZW6VKUFTbz7PPW8PmDR3ZHa6osYPLBFPnW8T5LSU49c", + "width": 400, + "height": 400, + "format": "png" } -] \ No newline at end of file +] diff --git a/_data/icons/ludan.json b/_data/icons/ludan.json new file mode 100644 index 00000000..673497de --- /dev/null +++ b/_data/icons/ludan.json @@ -0,0 +1,8 @@ +[ + { + "url": "ipfs://bafkreigzeanzqgxrzzep45t776ovbwi242poqxbryuu2go5eedeuwwcsay", + "width": 512, + "height": 512, + "format": "png" + } +] diff --git a/build.gradle b/build.gradle index 733d6a10..9328f8a0 100644 --- a/build.gradle +++ b/build.gradle @@ -1,6 +1,6 @@ buildscript { ext { - KOTLIN_VERSION = "1.6.10" + KOTLIN_VERSION = "1.6.20" KETHEREUM_VERSION = "0.85.7" } diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index d7e66b5c..92f06b50 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.1-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-all.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists diff --git a/model/build.gradle.kts b/model/build.gradle.kts index e6b83b76..23f0e50a 100644 --- a/model/build.gradle.kts +++ b/model/build.gradle.kts @@ -1,5 +1,5 @@ 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") } 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 ace5915c..786f9352 100644 --- a/processor/src/main/kotlin/org/ethereum/lists/chains/Main.kt +++ b/processor/src/main/kotlin/org/ethereum/lists/chains/Main.kt @@ -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 { if (it !is JsonArray<*>) { throw (ExplorersMustBeArray()) 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 522e9eb2..f02e62da 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 @@ -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 BridgeOnlyURL: Exception("parent bridge only contain an URL") 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 +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") \ No newline at end of file