diff --git a/chains/v1/chains_dev.json b/chains/v1/chains_dev.json index 44334be..7dd7a3b 100644 --- a/chains/v1/chains_dev.json +++ b/chains/v1/chains_dev.json @@ -26,33 +26,9 @@ "url": "wss://rpc.ibp.network/polkadot", "name": "IBP1 node" }, - { - "url": "wss://polkadot.dotters.network", - "name": "IBP2 node" - }, - { - "url": "wss://apps-rpc.polkadot.io", - "name": "Public node" - }, { "url": "wss://polkadot-rpc.dwellir.com", "name": "Dwellir node" - }, - { - "url": "wss://dot-rpc.stakeworld.io", - "name": "Stakeworld node" - }, - { - "url": "wss://polkadot.public.curie.radiumblock.co/ws", - "name": "Radium node" - }, - { - "url": "wss://1rpc.io/dot", - "name": "Automata 1RPC node" - }, - { - "url": "wss://rpc-polkadot.luckyfriday.io", - "name": "LuckyFriday node" } ] }, @@ -83,33 +59,9 @@ "url": "wss://rpc.ibp.network/kusama", "name": "IBP1 node" }, - { - "url": "wss://kusama.dotters.network", - "name": "IBP2 node" - }, - { - "url": "wss://apps-kusama-rpc.polkadot.io", - "name": "Public node" - }, { "url": "wss://kusama-rpc.dwellir.com", "name": "Dwellir node" - }, - { - "url": "wss://rpc-kusama.luckyfriday.io", - "name": "LuckyFriday node" - }, - { - "url": "wss://1rpc.io/ksm", - "name": "Automata 1RPC node" - }, - { - "url": "wss://kusama.public.curie.radiumblock.co/ws", - "name": "Radium node" - }, - { - "url": "wss://kusama.api.onfinality.io/public-ws", - "name": "OnFinality node" } ] }, @@ -139,17 +91,9 @@ "url": "wss://rpc.ibp.network/westend", "name": "IBP1 node" }, - { - "url": "wss://westend.dotters.network", - "name": "IBP2 node" - }, { "url": "wss://westend.public.curie.radiumblock.co/ws", "name": "RadiumBlock node" - }, - { - "url": "wss://westend.api.onfinality.io/public-ws", - "name": "OnFinality node" } ] }, @@ -173,22 +117,6 @@ } ], "nodes": [ - { - "url": "wss://karura-rpc-0.aca-api.network", - "name": "Acala Foundation 0 node" - }, - { - "url": "wss://karura-rpc-1.aca-api.network", - "name": "Acala Foundation 1 node" - }, - { - "url": "wss://karura-rpc-2.aca-api.network/ws", - "name": "Acala Foundation 2 node" - }, - { - "url": "wss://karura-rpc-3.aca-api.network/ws", - "name": "Acala Foundation 3 node" - }, { "url": "wss://karura.api.onfinality.io/public-ws", "name": "Onfinality node" @@ -226,10 +154,6 @@ "url": "wss://moonriver.public.blastapi.io", "name": "Blast node" }, - { - "url": "wss://moonriver.public.curie.radiumblock.co/ws", - "name": "RadiumBlock node" - }, { "url": "wss://moonriver-rpc.dwellir.com", "name": "Dwellir node" @@ -267,10 +191,6 @@ { "url": "wss://shiden.public.curie.radiumblock.co/ws", "name": "RadiumBlock node" - }, - { - "url": "wss://shiden.api.onfinality.io/public-ws", - "name": "OnFinality node" } ] }, @@ -294,10 +214,6 @@ } ], "nodes": [ - { - "url": "wss://bifrost-rpc.liebi.com/ws", - "name": "Liebi node" - }, { "url": "wss://bifrost-rpc.dwellir.com", "name": "Dwellir node" @@ -308,63 +224,6 @@ } ] }, - { - "name": "Kintsugi", - "chainIndex": 6, - "addressPrefix": 2092, - "chainId": "0x9af9a64e6e4da8e3073901c3ff0cc4c3aad9563786d89daf6ad820b6e14a0b8b", - "parentId": "0xb0a8d493285c2df73290dfb7e61f870f17b41801197a149ca93654499ea3dafe", - "icon": "https://raw.githubusercontent.com/novasamatech/telenova-utils/main/icons/v1/chains/Kintsugi.svg", - "assets": [ - { - "name": "Kintsugi", - "assetId": 0, - "chainId": "0x9af9a64e6e4da8e3073901c3ff0cc4c3aad9563786d89daf6ad820b6e14a0b8b", - "symbol": "KINT", - "precision": 12, - "type": "orml", - "priceId": "kintsugi", - "icon": "https://raw.githubusercontent.com/novasamatech/telenova-utils/main/icons/v1/assets/color/Kintsugi_(KINT).svg", - "typeExtras": { - "currencyIdScale": "0x000c", - "currencyIdType": "InterbtcPrimitivesCurrencyId", - "existentialDeposit": "0", - "transfersEnabled": true - } - } - ], - "nodes": [ - { - "url": "wss://api-kusama.interlay.io/parachain", - "name": "Kintsugi Labs node" - } - ] - }, - { - "name": "Parallel Heiko", - "chainIndex": 7, - "addressPrefix": 110, - "chainId": "0x64a1c658a48b2e70a7fb1ad4c39eea35022568c20fc44a6e2e3d0a57aee6053b", - "parentId": "0xb0a8d493285c2df73290dfb7e61f870f17b41801197a149ca93654499ea3dafe", - "icon": "https://raw.githubusercontent.com/novasamatech/telenova-utils/main/icons/v1/chains/ParallelHeiko.svg", - "assets": [ - { - "name": "Parallel Heiko", - "assetId": 0, - "chainId": "0x64a1c658a48b2e70a7fb1ad4c39eea35022568c20fc44a6e2e3d0a57aee6053b", - "symbol": "HKO", - "precision": 12, - "type": "native", - "icon": "https://raw.githubusercontent.com/novasamatech/telenova-utils/main/icons/v1/assets/color/HKO.svg" - } - ], - "nodes": [ - { - "url": "wss://heiko-rpc.parallel.fi", - "name": "Parallel node" - } - ] - }, { "name": "Basilisk", "chainIndex": 8, @@ -452,10 +311,6 @@ { "url": "wss://khala.public.curie.radiumblock.co/ws", "name": "RadiumBlock node" - }, - { - "url": "wss://khala.api.onfinality.io/public-ws", - "name": "OnFinality node" } ] }, @@ -479,21 +334,9 @@ } ], "nodes": [ - { - "url": "wss://kilt.ibp.network", - "name": "IBP1 node" - }, - { - "url": "wss://kilt.dotters.network", - "name": "IBP2 node" - }, { "url": "wss://kilt-rpc.dwellir.com", "name": "Dwellir node" - }, - { - "url": "wss://spiritnet.kilt.io/", - "name": "KILT Protocol node" } ] }, @@ -528,10 +371,6 @@ { "url": "wss://us-ws-quartz.unique.network", "name": "Unique US node" - }, - { - "url": "wss://asia-ws-quartz.unique.network", - "name": "Unique Asia node" } ] }, @@ -556,36 +395,12 @@ ], "nodes": [ { - "url": "wss://rpc-acala.luckyfriday.io", - "name": "LuckyFriday node" + "url": "wss://acala-rpc.dwellir.com", + "name": "Dwellir node" }, { "url": "wss://acala-polkadot.api.onfinality.io/public-ws", "name": "OnFinality node" - }, - { - "url": "wss://acala-rpc-0.aca-api.network", - "name": "Acala Foundation 0 node" - }, - { - "url": "wss://acala-rpc-1.aca-api.network", - "name": "Acala Foundation 1 node" - }, - { - "url": "wss://acala-rpc-2.aca-api.network/ws", - "name": "Acala Foundation 2 node" - }, - { - "url": "wss://acala-rpc-3.aca-api.network/ws", - "name": "Acala Foundation 3 node" - }, - { - "url": "wss://acala.polkawallet.io", - "name": "Polkawallet node" - }, - { - "url": "wss://acala-rpc.dwellir.com", - "name": "Dwellir node" } ] }, @@ -620,17 +435,9 @@ "url": "wss://moonbeam.ibp.network", "name": "IBP1 node" }, - { - "url": "wss://moonbeam.dotters.network", - "name": "IBP2 node" - }, { "url": "wss://moonbeam.public.curie.radiumblock.co/ws", "name": "RadiumBlock node" - }, - { - "url": "wss://moonbeam.public.blastapi.io", - "name": "Blast node" } ] }, @@ -668,35 +475,6 @@ } ] }, - { - "name": "Parallel", - "chainIndex": 15, - "addressPrefix": 172, - "chainId": "0xe61a41c53f5dcd0beb09df93b34402aada44cb05117b71059cce40a2723a4e97", - "parentId": "0x91b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c3", - "icon": "https://raw.githubusercontent.com/novasamatech/telenova-utils/main/icons/v1/chains/Parallel.svg", - "assets": [ - { - "name": "Parallel", - "assetId": 0, - "chainId": "0xe61a41c53f5dcd0beb09df93b34402aada44cb05117b71059cce40a2723a4e97", - "symbol": "PARA", - "precision": 12, - "type": "native", - "icon": "https://raw.githubusercontent.com/novasamatech/telenova-utils/main/icons/v1/assets/color/PARA.svg" - } - ], - "nodes": [ - { - "url": "wss://polkadot-parallel-rpc.parallel.fi", - "name": "Parallel node" - }, - { - "url": "wss://parallel-rpc.dwellir.com", - "name": "Dwellir node" - } - ] - }, { "name": "Polkadot Asset Hub", "chainIndex": 16, @@ -716,7 +494,8 @@ "feeBuffer": 1.1, "icon": "https://raw.githubusercontent.com/novasamatech/telenova-utils/main/icons/v1/assets/color/USDT.svg", "typeExtras": { - "assetId": "1984" + "assetId": "1984", + "isSufficient": true } }, { @@ -730,7 +509,8 @@ "feeBuffer": 1.1, "icon": "https://raw.githubusercontent.com/novasamatech/telenova-utils/main/icons/v1/assets/color/USDC.svg", "typeExtras": { - "assetId": "1337" + "assetId": "1337", + "isSufficient": true } } ], @@ -746,40 +526,6 @@ { "url": "wss://statemint-rpc.dwellir.com", "name": "Dwellir node" - }, - { - "url": "wss://statemint.api.onfinality.io/public-ws", - "name": "OnFinality node" - } - ] - }, - { - "name": "Robonomics", - "chainIndex": 17, - "addressPrefix": 32, - "chainId": "0x631ccc82a078481584041656af292834e1ae6daab61d2875b4dd0c14bb9b17bc", - "parentId": "0xb0a8d493285c2df73290dfb7e61f870f17b41801197a149ca93654499ea3dafe", - "icon": "https://raw.githubusercontent.com/novasamatech/telenova-utils/main/icons/v1/chains/Robonomics.svg", - "assets": [ - { - "name": "Robonomics", - "assetId": 0, - "chainId": "0x631ccc82a078481584041656af292834e1ae6daab61d2875b4dd0c14bb9b17bc", - "symbol": "XRT", - "precision": 9, - "type": "native", - "priceId": "robonomics-network", - "icon": "https://raw.githubusercontent.com/novasamatech/telenova-utils/main/icons/v1/assets/color/Robonomics_(XRT).svg" - } - ], - "nodes": [ - { - "url": "wss://kusama.rpc.robonomics.network/", - "name": "Airalab node" - }, - { - "url": "wss://robonomics.0xsamsara.com", - "name": "Samsara node" } ] }, @@ -806,44 +552,6 @@ { "url": "wss://zeitgeist.api.onfinality.io/public-ws", "name": "OnFinality node" - }, - { - "url": "wss://main.rpc.zeitgeist.pm/ws", - "name": "Zeitgeist node" - } - ] - }, - { - "name": "Subsocial", - "chainIndex": 20, - "addressPrefix": 28, - "chainId": "0x4a12be580bb959937a1c7a61d5cf24428ed67fa571974b4007645d1886e7c89f", - "parentId": "0xb0a8d493285c2df73290dfb7e61f870f17b41801197a149ca93654499ea3dafe", - "icon": "https://raw.githubusercontent.com/novasamatech/telenova-utils/main/icons/v1/chains/Subsocial_Parachain.svg", - "assets": [ - { - "name": "Subsocial", - "assetId": 0, - "chainId": "0x4a12be580bb959937a1c7a61d5cf24428ed67fa571974b4007645d1886e7c89f", - "symbol": "SUB", - "precision": 10, - "type": "native", - "priceId": "subsocial", - "icon": "https://raw.githubusercontent.com/novasamatech/telenova-utils/main/icons/v1/assets/color/Subsocial_(SUB).svg" - } - ], - "nodes": [ - { - "url": "wss://subsocial-rpc.dwellir.com", - "name": "Dwellir node" - }, - { - "url": "wss://para.f3joule.space", - "name": "Subsocial node" - }, - { - "url": "wss://para.subsocial.network", - "name": "Dappforce node" } ] }, @@ -938,50 +646,6 @@ { "url": "wss://hydradx-rpc.dwellir.com", "name": "Dwellir node" - }, - { - "url": "wss://rpc.hydradx.cloud", - "name": "Galactic Council node" - } - ] - }, - { - "name": "Interlay", - "chainIndex": 24, - "addressPrefix": 2032, - "chainId": "0xbf88efe70e9e0e916416e8bed61f2b45717f517d7f3523e33c7b001e5ffcbc72", - "parentId": "0x91b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c3", - "icon": "https://raw.githubusercontent.com/novasamatech/telenova-utils/main/icons/v1/chains/Interlay.svg", - "assets": [ - { - "name": "Interlay", - "assetId": 0, - "chainId": "0xbf88efe70e9e0e916416e8bed61f2b45717f517d7f3523e33c7b001e5ffcbc72", - "symbol": "INTR", - "precision": 10, - "type": "orml", - "priceId": "interlay", - "icon": "https://raw.githubusercontent.com/novasamatech/telenova-utils/main/icons/v1/assets/color/Interlay_(INTR).svg", - "typeExtras": { - "currencyIdScale": "0x0002", - "currencyIdType": "InterbtcPrimitivesCurrencyId", - "existentialDeposit": "0", - "transfersEnabled": true - } - } - ], - "nodes": [ - { - "url": "wss://api.interlay.io/parachain", - "name": "Kintsugi Labs node" - }, - { - "url": "wss://interlay-rpc.dwellir.com", - "name": "Dwellir node" - }, - { - "url": "wss://rpc-interlay.luckyfriday.io/", - "name": "LuckyFriday node" } ] }, @@ -1016,40 +680,6 @@ { "url": "wss://phala.public.curie.radiumblock.co/ws", "name": "RadiumBlock node" - }, - { - "url": "wss://phala.api.onfinality.io/public-ws", - "name": "OnFinality node" - } - ] - }, - { - "name": "Turing", - "chainIndex": 26, - "addressPrefix": 51, - "chainId": "0x0f62b701fb12d02237a33b84818c11f621653d2b1614c777973babf4652b535d", - "parentId": "0xb0a8d493285c2df73290dfb7e61f870f17b41801197a149ca93654499ea3dafe", - "icon": "https://raw.githubusercontent.com/novasamatech/telenova-utils/main/icons/v1/chains/Turing.svg", - "assets": [ - { - "name": "Turing", - "assetId": 0, - "chainId": "0x0f62b701fb12d02237a33b84818c11f621653d2b1614c777973babf4652b535d", - "symbol": "TUR", - "precision": 10, - "type": "native", - "priceId": "turing-network", - "icon": "https://raw.githubusercontent.com/novasamatech/telenova-utils/main/icons/v1/assets/color/Turing_(TUR).svg" - } - ], - "nodes": [ - { - "url": "wss://rpc.turing.oak.tech", - "name": "Turing node" - }, - { - "url": "wss://turing-rpc.dwellir.com", - "name": "Dwellir node" } ] }, @@ -1073,7 +703,7 @@ ], "nodes": [ { - "url": "wss://ws.azero.dev", + "url": "wss://aleph-zero.api.onfinality.io/public-ws", "name": "Aleph Zero node" } ] @@ -1105,10 +735,6 @@ { "url": "wss://bifrost-polkadot.dotters.network", "name": "IBP2 node" - }, - { - "url": "wss://hk.p.bifrost-rpc.liebi.com/ws", - "name": "Liebi node" } ] }, @@ -1142,42 +768,6 @@ } ] }, - { - "name": "Mangata X", - "chainIndex": 30, - "addressPrefix": 42, - "chainId": "0xd611f22d291c5b7b69f1e105cca03352984c344c4421977efaa4cbdd1834e2aa", - "parentId": "0xb0a8d493285c2df73290dfb7e61f870f17b41801197a149ca93654499ea3dafe", - "icon": "https://raw.githubusercontent.com/novasamatech/telenova-utils/main/icons/v1/chains/MangataX.svg", - "assets": [ - { - "name": "Mangata X", - "assetId": 0, - "chainId": "0xd611f22d291c5b7b69f1e105cca03352984c344c4421977efaa4cbdd1834e2aa", - "symbol": "MGX", - "precision": 18, - "type": "orml", - "priceId": "mangata-x", - "icon": "https://raw.githubusercontent.com/novasamatech/telenova-utils/main/icons/v1/assets/color/Mangata_X_(MGX).svg", - "typeExtras": { - "currencyIdScale": "0x00000000", - "currencyIdType": "u32", - "existentialDeposit": "0", - "transfersEnabled": true - } - } - ], - "nodes": [ - { - "url": "wss://kusama-rpc.mangata.online", - "name": "Mangata node" - }, - { - "url": "wss://kusama-archive.mangata.online", - "name": "Mangata archive node" - } - ] - }, { "name": "Imbue", "chainIndex": 31, @@ -1203,31 +793,6 @@ } ] }, - { - "name": "Tinkernet", - "chainIndex": 32, - "addressPrefix": 117, - "chainId": "0xd42e9606a995dfe433dc7955dc2a70f495f350f373daa200098ae84437816ad2", - "parentId": "0xb0a8d493285c2df73290dfb7e61f870f17b41801197a149ca93654499ea3dafe", - "icon": "https://raw.githubusercontent.com/novasamatech/telenova-utils/main/icons/v1/chains/Tinkernet.svg", - "assets": [ - { - "name": "Tinkernet", - "assetId": 0, - "chainId": "0xd42e9606a995dfe433dc7955dc2a70f495f350f373daa200098ae84437816ad2", - "symbol": "TNKR", - "precision": 12, - "type": "native", - "icon": "https://raw.githubusercontent.com/novasamatech/telenova-utils/main/icons/v1/assets/color/Tinkernet_(TNKR).svg" - } - ], - "nodes": [ - { - "url": "wss://tinkernet-rpc.dwellir.com", - "name": "Dwellir node" - } - ] - }, { "name": "Amplitude", "chainIndex": 33, @@ -1386,29 +951,9 @@ } ], "nodes": [ - { - "url": "wss://avail-mainnet.public.blastapi.io/", - "name": "Bware node" - }, { "url": "wss://avail-rpc.rubynodes.io/", "name": "RubyNode node" - }, - { - "url": "wss://avail-us.brightlystake.com", - "name": "BrightlyStake node" - }, - { - "url": "wss://rpc-avail.globalstake.io", - "name": "GlobalStake node" - }, - { - "url": "wss://avail.rpc.bountyblok.io", - "name": "Bountyblok node" - }, - { - "url": "wss://avail.public.curie.radiumblock.co/ws", - "name": "RadiumBlock node" } ] } diff --git a/package-lock.json b/package-lock.json index 79f05e2..67e0216 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,50 +10,15 @@ "hasInstallScript": true, "license": "Apache-2.0", "dependencies": { - "axios": "^1.7.2", "jsonpath": "^1.1.1", "zod": "^3.23.8" } }, - "node_modules/asynckit": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", - "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" - }, - "node_modules/axios": { - "version": "1.7.2", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.2.tgz", - "integrity": "sha512-2A8QhOMrbomlDuiLeK9XibIBzuHeRcqqNOHp0Cyp5EoJ1IFDh+XZH3A6BkXtv0K4gFGCI0Y4BM7B1wOEi0Rmgw==", - "dependencies": { - "follow-redirects": "^1.15.6", - "form-data": "^4.0.0", - "proxy-from-env": "^1.1.0" - } - }, - "node_modules/combined-stream": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", - "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", - "dependencies": { - "delayed-stream": "~1.0.0" - }, - "engines": { - "node": ">= 0.8" - } - }, "node_modules/deep-is": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==" }, - "node_modules/delayed-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", - "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", - "engines": { - "node": ">=0.4.0" - } - }, "node_modules/escodegen": { "version": "1.14.3", "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-1.14.3.tgz", @@ -120,38 +85,6 @@ "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==" }, - "node_modules/follow-redirects": { - "version": "1.15.6", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.6.tgz", - "integrity": "sha512-wWN62YITEaOpSK584EZXJafH1AGpO8RVgElfkuXbTOrPX4fIfOyEpW/CsiNd8JdYrAoOvafRTOEnvsO++qCqFA==", - "funding": [ - { - "type": "individual", - "url": "https://github.com/sponsors/RubenVerborgh" - } - ], - "engines": { - "node": ">=4.0" - }, - "peerDependenciesMeta": { - "debug": { - "optional": true - } - } - }, - "node_modules/form-data": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", - "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", - "dependencies": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.8", - "mime-types": "^2.1.12" - }, - "engines": { - "node": ">= 6" - } - }, "node_modules/jsonpath": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/jsonpath/-/jsonpath-1.1.1.tgz", @@ -174,25 +107,6 @@ "node": ">= 0.8.0" } }, - "node_modules/mime-db": { - "version": "1.52.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/mime-types": { - "version": "2.1.35", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", - "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", - "dependencies": { - "mime-db": "1.52.0" - }, - "engines": { - "node": ">= 0.6" - } - }, "node_modules/optionator": { "version": "0.8.3", "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.3.tgz", @@ -217,11 +131,6 @@ "node": ">= 0.8.0" } }, - "node_modules/proxy-from-env": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", - "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==" - }, "node_modules/source-map": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", diff --git a/package.json b/package.json index 4611cfe..1b6e70f 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,6 @@ }, "homepage": "https://github.com/novasamatech/telenova-utils#readme", "dependencies": { - "axios": "^1.7.2", "jsonpath": "^1.1.1", "zod": "^3.23.8" } diff --git a/scripts/build-chains.js b/scripts/build-chains.js index c0ee312..57c2d2f 100644 --- a/scripts/build-chains.js +++ b/scripts/build-chains.js @@ -84,11 +84,6 @@ function getTransformedData(rawData) { const filteredData = rawData.filter(chain => chain.chainId in ALLOWED_CHAINS); return filteredData.map((chain) => { - const assets = fillAssetData(chain); - const nodes = chain.nodes - .filter(node => !node.url.includes('{')) - .map(node => ({ url: node.url, name: node.name })); - return { name: chain.name, chainIndex: ALLOWED_CHAINS[chain.chainId].chainIndex, @@ -97,8 +92,8 @@ function getTransformedData(rawData) { parentId: chain.parentId ? `0x${chain.parentId}` : undefined, icon: replaceUrl(chain.icon, 'chain'), options: chain.options?.includes("ethereumBased") ? ['evm'] : undefined, - assets, - nodes, + assets: fillAssetData(chain), + nodes: ALLOWED_CHAINS[chain.chainId].nodes, }; }); } diff --git a/scripts/data/allowed-chains.json b/scripts/data/allowed-chains.json index 2ce324a..fd64b68 100644 --- a/scripts/data/allowed-chains.json +++ b/scripts/data/allowed-chains.json @@ -7,6 +7,16 @@ "symbol": "ACA", "name": "Acala" } + ], + "nodes": [ + { + "url": "wss://acala-polkadot.api.onfinality.io/public-ws", + "name": "OnFinality node" + }, + { + "url": "wss://acala-rpc.dwellir.com", + "name": "Dwellir node" + } ] }, "70255b4d28de0fc4e1a193d7e175ad1ccef431598211c55538f1018651a0344e": { @@ -17,6 +27,12 @@ "symbol": "AZERO", "name": "Aleph Zero" } + ], + "nodes": [ + { + "url": "wss://aleph-zero.api.onfinality.io/public-ws", + "name": "Aleph Zero node" + } ] }, "aa3876c1dc8a1afcc2e9a685a49ff7704cfd36ad8c90bf2702b9d1b00cc40011": { @@ -27,6 +43,12 @@ "symbol": "AIR", "name": "Altair" } + ], + "nodes": [ + { + "url": "wss://altair.api.onfinality.io/public-ws", + "name": "OnFinality node" + } ] }, "cceae7f3b9947cdb67369c026ef78efa5f34a08fe5808d373c04421ecf4f1aaf": { @@ -37,6 +59,12 @@ "symbol": "AMPE", "name": "Amplitude" } + ], + "nodes": [ + { + "url": "wss://rpc-amplitude.pendulumchain.tech", + "name": "PendulumChain node" + } ] }, "9eb76c5184c4ab8679d2d5d819fdf90b9c001403e9e17da2e14b6d8aec4029c6": { @@ -47,6 +75,20 @@ "symbol": "ASTR", "name": "Astar" } + ], + "nodes": [ + { + "url": "wss://rpc.astar.network", + "name": "Astar node" + }, + { + "url": "wss://astar.public.curie.radiumblock.co/ws", + "name": "RadiumBlock node" + }, + { + "url": "wss://astar.api.onfinality.io/public-ws", + "name": "OnFinality node" + } ] }, "b91746b45e0346cc2f815a520b9c6cb4d5c0902af848db0a80f85932d2e8276a": { @@ -57,6 +99,12 @@ "symbol": "AVAIL", "name": "Avail" } + ], + "nodes": [ + { + "url": "wss://avail-rpc.rubynodes.io/", + "name": "RubyNode node" + } ] }, "a85cfb9b9fd4d622a5b28289a02347af987d8f73fa3108450e2b4a11c1ce5755": { @@ -67,6 +115,16 @@ "symbol": "BSX", "name": "Basilisk" } + ], + "nodes": [ + { + "url": "wss://rpc.basilisk.cloud", + "name": "Basilisk node" + }, + { + "url": "wss://basilisk-rpc.dwellir.com", + "name": "Dwellir node" + } ] }, "9f28c6a68e0fc9646eff64935684f6eeeece527e37bbe1f213d22caa1d9d6bed": { @@ -77,6 +135,16 @@ "symbol": "BNC", "name": "Bifrost" } + ], + "nodes": [ + { + "url": "wss://bifrost-rpc.dwellir.com", + "name": "Dwellir node" + }, + { + "url": "wss://bifrost-parachain.api.onfinality.io/public-ws", + "name": "OnFinality node" + } ] }, "262e1b2ad728475fd6fe88e62d34c200abe6fd693931ddad144059b1eb884e5b": { @@ -87,6 +155,16 @@ "symbol": "BNC", "name": "Bifrost" } + ], + "nodes": [ + { + "url": "wss://bifrost-polkadot.ibp.network", + "name": "IBP1 node" + }, + { + "url": "wss://bifrost-polkadot.dotters.network", + "name": "IBP2 node" + } ] }, "b3db41421702df9a7fcac62b53ffeac85f7853cc4e689e0b93aeb3db18c09d82": { @@ -97,6 +175,16 @@ "symbol": "CFG", "name": "Centrifuge Parachain" } + ], + "nodes": [ + { + "url": "wss://centrifuge-rpc.dwellir.com", + "name": "Dwellir node" + }, + { + "url": "wss://centrifuge-parachain.api.onfinality.io/public-ws", + "name": "Onfinality node" + } ] }, "afdc188f45c71dacbaa0b62e16a91f726c7b8699a9748cdf715459de6b7f366d": { @@ -107,6 +195,20 @@ "symbol": "HDX", "name": "HydraDX" } + ], + "nodes": [ + { + "url": "wss://hydration.ibp.network", + "name": "IBP1 node" + }, + { + "url": "wss://hydration.dotters.network", + "name": "IBP2 node" + }, + { + "url": "wss://hydradx-rpc.dwellir.com", + "name": "Dwellir node" + } ] }, "ca93a37c913a25fa8fdb33c7f738afc39379cb71d37874a16d4c091a5aef9f89": { @@ -117,6 +219,12 @@ "symbol": "IMBU", "name": "Imbue" } + ], + "nodes": [ + { + "url": "wss://kusama.imbuenetwork.com", + "name": "Imbue node" + } ] }, "cdedc8eadbfa209d3f207bba541e57c3c58a667b05a2e1d1e86353c9000758da": { @@ -127,15 +235,15 @@ "symbol": "TEER", "name": "Integritee Parachain" } - ] - }, - "bf88efe70e9e0e916416e8bed61f2b45717f517d7f3523e33c7b001e5ffcbc72": { - "name": "Interlay", - "chainIndex": 24, - "assets": [ + ], + "nodes": [ + { + "url": "wss://kusama.api.integritee.network", + "name": "Integritee node" + }, { - "symbol": "INTR", - "name": "Interlay" + "url": "wss://integritee-kusama.api.onfinality.io/public-ws", + "name": "OnFinality node" } ] }, @@ -147,6 +255,12 @@ "symbol": "KAR", "name": "Karura" } + ], + "nodes": [ + { + "url": "wss://karura.api.onfinality.io/public-ws", + "name": "Onfinality node" + } ] }, "d43540ba6d3eb4897c28a77d48cb5b729fea37603cbbfc7a86a73b72adb3be8d": { @@ -157,6 +271,20 @@ "symbol": "PHA", "name": "Phala" } + ], + "nodes": [ + { + "url": "wss://khala-api.phala.network/ws", + "name": "Phala node" + }, + { + "url": "wss://khala-rpc.dwellir.com", + "name": "Dwellir node" + }, + { + "url": "wss://khala.public.curie.radiumblock.co/ws", + "name": "RadiumBlock node" + } ] }, "411f057b9107718c9624d6aa4a3f23c1653898297f3d4d529d9bb6511a39dd21": { @@ -167,15 +295,11 @@ "symbol": "KILT", "name": "KILT Spiritnet" } - ] - }, - "9af9a64e6e4da8e3073901c3ff0cc4c3aad9563786d89daf6ad820b6e14a0b8b": { - "name": "Kintsugi", - "chainIndex": 6, - "assets": [ + ], + "nodes": [ { - "symbol": "KINT", - "name": "Kintsugi" + "url": "wss://kilt-rpc.dwellir.com", + "name": "Dwellir node" } ] }, @@ -187,6 +311,20 @@ "symbol": "KSM", "name": "Kusama" } + ], + "nodes": [ + { + "url": "wss://rpc-kusama.novasama-tech.org", + "name": "Novasama node" + }, + { + "url": "wss://rpc.ibp.network/kusama", + "name": "IBP1 node" + }, + { + "url": "wss://kusama-rpc.dwellir.com", + "name": "Dwellir node" + } ] }, "2fc8bb6ed7c0051bdcf4866c322ed32b6276572713607e3297ccf411b8f14aa9": { @@ -197,35 +335,15 @@ "symbol": "LIT", "name": "Litentry" } - ] - }, - "d611f22d291c5b7b69f1e105cca03352984c344c4421977efaa4cbdd1834e2aa": { - "name": "Mangata X", - "chainIndex": 30, - "assets": [ - { - "symbol": "MGX", - "name": "Mangata X" - } - ] - }, - "e61a41c53f5dcd0beb09df93b34402aada44cb05117b71059cce40a2723a4e97": { - "name": "Parallel", - "chainIndex": 15, - "assets": [ + ], + "nodes": [ { - "symbol": "PARA", - "name": "Parallel" - } - ] - }, - "64a1c658a48b2e70a7fb1ad4c39eea35022568c20fc44a6e2e3d0a57aee6053b": { - "name": "Parallel Heiko", - "chainIndex": 7, - "assets": [ + "url": "wss://rpc.litentry-parachain.litentry.io", + "name": "Litentry node" + }, { - "symbol": "HKO", - "name": "Parallel Heiko" + "url": "wss://litentry-rpc.dwellir.com", + "name": "Dwellir node" } ] }, @@ -237,6 +355,12 @@ "symbol": "PEN", "name": "Pendulum" } + ], + "nodes": [ + { + "url": "wss://rpc-pendulum.prd.pendulumchain.tech", + "name": "Pendulum node" + } ] }, "1bb969d85965e4bb5a651abbedf21a54b6b31a21f66b5401cc3f1e286268d736": { @@ -247,6 +371,20 @@ "symbol": "PHA", "name": "Phala" } + ], + "nodes": [ + { + "url": "wss://phala-rpc.dwellir.com", + "name": "Dwellir node" + }, + { + "url": "wss://api.phala.network/ws", + "name": "Phala node" + }, + { + "url": "wss://phala.public.curie.radiumblock.co/ws", + "name": "RadiumBlock node" + } ] }, "91b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c3": { @@ -257,6 +395,20 @@ "symbol": "DOT", "name": "Polkadot" } + ], + "nodes": [ + { + "url": "wss://rpc-polkadot.novasama-tech.org", + "name": "Novasama node" + }, + { + "url": "wss://rpc.ibp.network/polkadot", + "name": "IBP1 node" + }, + { + "url": "wss://polkadot-rpc.dwellir.com", + "name": "Dwellir node" + } ] }, "68d56f15f85d3136970ec16946040bc1752654e906147f7e43e9d539d7c3de2f": { @@ -273,6 +425,20 @@ "name": "USD Coin", "feeBuffer": 1.1 } + ], + "nodes": [ + { + "url": "wss://sys.ibp.network/asset-hub-polkadot", + "name": "IBP1 node" + }, + { + "url": "wss://asset-hub-polkadot.dotters.network", + "name": "IBP2 node" + }, + { + "url": "wss://statemint-rpc.dwellir.com", + "name": "Dwellir node" + } ] }, "7eb9354488318e7549c722669dcbdcdc526f1fef1420e7944667212f3601fdbd": { @@ -283,6 +449,20 @@ "symbol": "PLMC", "name": "Polimec" } + ], + "nodes": [ + { + "url": "wss://rpc.polimec.org", + "name": "Polimec node" + }, + { + "url": "wss://polimec.ibp.network", + "name": "IBP1 node" + }, + { + "url": "wss://polimec.dotters.network", + "name": "IBP2 node" + } ] }, "cd4d732201ebe5d6b014edda071c4203e16867305332301dc8d092044b28e554": { @@ -293,15 +473,19 @@ "symbol": "QTZ", "name": "QUARTZ" } - ] - }, - "631ccc82a078481584041656af292834e1ae6daab61d2875b4dd0c14bb9b17bc": { - "name": "Robonomics", - "chainIndex": 17, - "assets": [ + ], + "nodes": [ { - "symbol": "XRT", - "name": "Robonomics" + "url": "wss://quartz.unique.network", + "name": "Unique node" + }, + { + "url": "wss://eu-ws-quartz.unique.network", + "name": "Unique Europe node" + }, + { + "url": "wss://us-ws-quartz.unique.network", + "name": "Unique US node" } ] }, @@ -313,35 +497,19 @@ "symbol": "SDN", "name": "Shiden" } - ] - }, - "4a12be580bb959937a1c7a61d5cf24428ed67fa571974b4007645d1886e7c89f": { - "name": "Subsocial", - "chainIndex": 20, - "assets": [ + ], + "nodes": [ { - "symbol": "SUB", - "name": "Subsocial" - } - ] - }, - "d42e9606a995dfe433dc7955dc2a70f495f350f373daa200098ae84437816ad2": { - "name": "Tinkernet", - "chainIndex": 32, - "assets": [ + "url": "wss://rpc.shiden.astar.network", + "name": "StakeTechnologies node" + }, { - "symbol": "TNKR", - "name": "Tinkernet" - } - ] - }, - "0f62b701fb12d02237a33b84818c11f621653d2b1614c777973babf4652b535d": { - "name": "Turing", - "chainIndex": 26, - "assets": [ + "url": "wss://shiden-rpc.dwellir.com", + "name": "Dwellir node" + }, { - "symbol": "TUR", - "name": "Turing" + "url": "wss://shiden.public.curie.radiumblock.co/ws", + "name": "RadiumBlock node" } ] }, @@ -353,6 +521,12 @@ "symbol": "VARA", "name": "Vara" } + ], + "nodes": [ + { + "url": "wss://rpc.vara-network.io", + "name": "Gear Tech node" + } ] }, "e143f23803ac50e8f6f8e62695d1ce9e4e1d68aa36c1cd2cfd15340213f3423e": { @@ -363,6 +537,20 @@ "symbol": "WND", "name": "Westend" } + ], + "nodes": [ + { + "url": "wss://westend-rpc.dwellir.com", + "name": "Dwellir node" + }, + { + "url": "wss://rpc.ibp.network/westend", + "name": "IBP1 node" + }, + { + "url": "wss://westend.public.curie.radiumblock.co/ws", + "name": "RadiumBlock node" + } ] }, "1bf2a2ecb4a868de66ea8610f2ce7c8c43706561b6476031315f6640fe38e060": { @@ -373,6 +561,12 @@ "symbol": "ZTG", "name": "Zeitgeist" } + ], + "nodes": [ + { + "url": "wss://zeitgeist.api.onfinality.io/public-ws", + "name": "OnFinality node" + } ] }, "fe58ea77779b7abda7da4ec526d14db9b1e9cd40a217c34892af80a9b332b76d": { @@ -383,6 +577,20 @@ "symbol": "GLMR", "name": "Moonbeam" } + ], + "nodes": [ + { + "url": "wss://wss.api.moonbeam.network", + "name": "Moonbeam Foundation node" + }, + { + "url": "wss://moonbeam.ibp.network", + "name": "IBP1 node" + }, + { + "url": "wss://moonbeam.public.curie.radiumblock.co/ws", + "name": "RadiumBlock node" + } ] }, "401a1f9dca3da46f5c4091016c8a2f26dcea05865116b286f60f668207d1474b": { @@ -393,6 +601,20 @@ "symbol": "MOVR", "name": "Moonriver" } + ], + "nodes": [ + { + "url": "wss://wss.api.moonriver.moonbeam.network", + "name": "Moonbeam Foundation node" + }, + { + "url": "wss://moonriver.public.blastapi.io", + "name": "Blast node" + }, + { + "url": "wss://moonriver-rpc.dwellir.com", + "name": "Dwellir node" + } ] }, "f6ee56e9c5277df5b4ce6ae9983ee88f3cbed27d31beeb98f9f84f997a1ab0b9": { @@ -403,6 +625,12 @@ "symbol": "MYTH", "name": "Mythos" } + ], + "nodes": [ + { + "url": "wss://polkadot-mythos-rpc.polkadot.io", + "name": "Parity node" + } ] } }