mirror of
https://github.com/Instadapp/chains.git
synced 2024-07-29 22:37:19 +00:00
Merge branch 'ethereum-lists:master' into master
This commit is contained in:
commit
59aa925b8c
28
_data/chains/eip155-1008.json
Normal file
28
_data/chains/eip155-1008.json
Normal 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"
|
||||
}
|
||||
]
|
||||
}
|
|
@ -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",
|
||||
|
|
|
@ -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"
|
||||
}]
|
||||
}
|
||||
"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
|
||||
}
|
|
@ -9,7 +9,7 @@
|
|||
],
|
||||
"nativeCurrency": {
|
||||
"name": "MetaDot Token TestNet",
|
||||
"symbol": "MTT-test",
|
||||
"symbol": "MTTest",
|
||||
"decimals": 18
|
||||
},
|
||||
"infoURL": "https://metadot.network",
|
||||
|
|
|
@ -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": {
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"name": "Harmony Mainnet Shard 1",
|
||||
"chain": "Harmony",
|
||||
"rpc": [
|
||||
"https://s1.api.harmony.one"
|
||||
"https://api.s1.t.hmny.io"
|
||||
],
|
||||
"faucets": [
|
||||
],
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"name": "Harmony Mainnet Shard 2",
|
||||
"chain": "Harmony",
|
||||
"rpc": [
|
||||
"https://s2.api.harmony.one"
|
||||
"https://api.s2.t.hmny.io"
|
||||
],
|
||||
"faucets": [
|
||||
],
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"name": "Harmony Mainnet Shard 3",
|
||||
"chain": "Harmony",
|
||||
"rpc": [
|
||||
"https://s3.api.harmony.one"
|
||||
"https://api.s3.t.hmny.io"
|
||||
],
|
||||
"faucets": [
|
||||
],
|
||||
|
|
18
_data/chains/eip155-1688.json
Normal file
18
_data/chains/eip155-1688.json
Normal 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
|
||||
}
|
28
_data/chains/eip155-1984.json
Normal file
28
_data/chains/eip155-1984.json
Normal 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"
|
||||
}
|
||||
]
|
||||
}
|
|
@ -10,7 +10,7 @@
|
|||
"faucets": [],
|
||||
"nativeCurrency": {
|
||||
"name": "milkAda",
|
||||
"symbol": "milkAda",
|
||||
"symbol": "mADA",
|
||||
"decimals": 18
|
||||
},
|
||||
"infoURL": "https://milkomeda.com",
|
||||
|
@ -24,4 +24,4 @@
|
|||
"standard": "none"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
"faucets": [],
|
||||
"nativeCurrency": {
|
||||
"name": "milkTAda",
|
||||
"symbol": "milkTAda",
|
||||
"symbol": "mTAda",
|
||||
"decimals": 18
|
||||
},
|
||||
"infoURL": "https://milkomeda.com",
|
||||
|
@ -24,4 +24,4 @@
|
|||
"standard": "none"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
"chain": "Alaya",
|
||||
"rpc": [
|
||||
"https://openapi.alaya.network/rpc",
|
||||
"wss://openapi.alaya.network/ws"
|
||||
"wss://openapi.alaya.network/ws"
|
||||
],
|
||||
"faucets": [],
|
||||
"nativeCurrency": {
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
"network": "mainnet",
|
||||
"rpc": [
|
||||
"https://openapi.platon.network/rpc",
|
||||
"wss://openapi.platon.network/ws"
|
||||
"wss://openapi.platon.network/ws"
|
||||
],
|
||||
"faucets": [],
|
||||
"nativeCurrency": {
|
||||
|
|
24
_data/chains/eip155-21337.json
Normal file
24
_data/chains/eip155-21337.json
Normal 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"
|
||||
}]
|
||||
}
|
|
@ -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": [
|
|
@ -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}"
|
||||
|
|
24
_data/chains/eip155-300.json
Normal file
24
_data/chains/eip155-300.json
Normal 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"
|
||||
}]
|
||||
}
|
|
@ -9,11 +9,11 @@
|
|||
],
|
||||
"nativeCurrency": {
|
||||
"name": "Lisinski Ether",
|
||||
"symbol": "LISINSKI",
|
||||
"symbol": "LISINS",
|
||||
"decimals": 18
|
||||
},
|
||||
"infoURL": "https://lisinski.online",
|
||||
"shortName": "lisinski",
|
||||
"chainId": 385,
|
||||
"networkId": 385
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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}"
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
"name": "Kovan",
|
||||
"title": "Ethereum Testnet Kovan",
|
||||
"chain": "ETH",
|
||||
"network": "testnet",
|
||||
"rpc": [
|
||||
"https://kovan.poa.network",
|
||||
"http://kovan.poa.network:8545",
|
||||
|
|
|
@ -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}",
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
@ -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",
|
||||
|
|
23
_data/chains/eip155-700.json
Normal file
23
_data/chains/eip155-700.json
Normal 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"
|
||||
}]
|
||||
}
|
24
_data/chains/eip155-79.json
Normal file
24
_data/chains/eip155-79.json
Normal 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"
|
||||
}]
|
||||
}
|
||||
|
23
_data/chains/eip155-81.json
Normal file
23
_data/chains/eip155-81.json
Normal 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"
|
||||
}]
|
||||
}
|
||||
|
|
@ -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"
|
||||
},
|
||||
{
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
[
|
||||
{
|
||||
"url":"ipfs://QmfDkgrhCFfVJErVVDuU7UYasYsooXMEXFhBzLMNm6pgey",
|
||||
"format":"svg"
|
||||
}
|
||||
]
|
||||
|
||||
{
|
||||
"url": "ipfs://QmWhNm7tTi6SYbiumULDRk956hxgqaZSX77vcxBNn8fvnw",
|
||||
"format": "svg"
|
||||
}
|
||||
]
|
8
_data/icons/eurus.json
Normal file
8
_data/icons/eurus.json
Normal file
|
@ -0,0 +1,8 @@
|
|||
[
|
||||
{
|
||||
"url":"ipfs://QmaGd5L9jGPbfyGXBFhu9gjinWJ66YtNrXq8x6Q98Eep9e",
|
||||
"width":471,
|
||||
"height":471,
|
||||
"format":"svg"
|
||||
}
|
||||
]
|
8
_data/icons/eurusexplorer.json
Normal file
8
_data/icons/eurusexplorer.json
Normal file
|
@ -0,0 +1,8 @@
|
|||
[
|
||||
{
|
||||
"url":"ipfs://QmaGd5L9jGPbfyGXBFhu9gjinWJ66YtNrXq8x6Q98Eep9e",
|
||||
"width":471,
|
||||
"height":471,
|
||||
"format":"svg"
|
||||
}
|
||||
]
|
|
@ -1,8 +1,8 @@
|
|||
[
|
||||
{
|
||||
"url": "ipfs://Qmc4nHKSTgRwhpc5gpUnd7cQb7ooUgkcMxSbJcDAjJqx6T",
|
||||
"width": 1000,
|
||||
"height": 620,
|
||||
"format": "svg"
|
||||
"url": "ipfs://QmeZW6VKUFTbz7PPW8PmDR3ZHa6osYPLBFPnW8T5LSU49c",
|
||||
"width": 400,
|
||||
"height": 400,
|
||||
"format": "png"
|
||||
}
|
||||
]
|
||||
]
|
||||
|
|
8
_data/icons/ludan.json
Normal file
8
_data/icons/ludan.json
Normal file
|
@ -0,0 +1,8 @@
|
|||
[
|
||||
{
|
||||
"url": "ipfs://bafkreigzeanzqgxrzzep45t776ovbwi242poqxbryuu2go5eedeuwwcsay",
|
||||
"width": 512,
|
||||
"height": 512,
|
||||
"format": "png"
|
||||
}
|
||||
]
|
|
@ -1,6 +1,6 @@
|
|||
buildscript {
|
||||
ext {
|
||||
KOTLIN_VERSION = "1.6.10"
|
||||
KOTLIN_VERSION = "1.6.20"
|
||||
KETHEREUM_VERSION = "0.85.7"
|
||||
}
|
||||
|
||||
|
|
2
gradle/wrapper/gradle-wrapper.properties
vendored
2
gradle/wrapper/gradle-wrapper.properties
vendored
|
@ -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
|
||||
|
|
|
@ -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")
|
||||
}
|
||||
|
||||
|
|
|
@ -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())
|
||||
|
|
|
@ -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")
|
||||
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")
|
Loading…
Reference in New Issue
Block a user