From f31947dc476f2ddec7e10f7beb5c0b45a3501705 Mon Sep 17 00:00:00 2001 From: Yevhen Haievyi Date: Thu, 7 Nov 2024 22:29:40 +0200 Subject: [PATCH] Fixed counting chains function and updated metadata --- .DS_Store | Bin 0 -> 8196 bytes data/chains/V2/chains.json | 6 +++--- data/chains/V2/cosmoshub/meta.ts | 2 +- data/chains/V2/cosmoshub/testnets/theta/meta.ts | 2 +- data/chains/V2/index.ts | 2 +- data/chains/V2/osmosis/meta.ts | 2 +- data/index.config.ts | 2 +- package.json | 2 +- types/graph.types.ts | 8 +++----- types/pinax.types.ts | 2 +- utils/chains.ts | 8 ++++---- 11 files changed, 17 insertions(+), 19 deletions(-) create mode 100644 .DS_Store diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..a9575a492bf1a5c73c7f6c491c9c255cf62d4d6d GIT binary patch literal 8196 zcmeHMJ#Q015S@+f#NtD8x(HER1q~osLLh-aN8-=`1w^8uz+aFUayg6GK#-8Gq0bLM zD56Y95m6u-kPtOJ=_uTRkf?dHyS8V2cM)k2AG^}-oOfpSy?eX9^`41H&G*|?qB$Ze zqq40WM3Yh2&ox!1Y|jZ;g?w6Ft}eCWsGExP9bN&ifLFjP;1%!+{3!}x&*oCj+4qgt zw_X9Sz<;R#KOX{AwxP9&vHH=0MjruSi|Ez`*A>2i4Xh2VO^k&HMVVAsld9|yLz#5+ z2R1IWHZj(uld^{oWs#LVp(u@x@dF)BDm2!&UIDK_S^+-07wHr&Q-^xa`Tgjl1JW18 zwOVsEZlbUJ@y*@07dsy=x&HQ^{_cu+H?R;Om1c&xv_gGqI_Ok+nU0Vg9>2af7*sWf ziE*NM%p^a`;X`%iGYvk>WS#EQhRddKe$p?wTr0mna{R33;*24gER51T8ov-}S3Y&gX2;O^aZP+0hEakWq4ZeO_aZnO^CSV72@ zxLJM&x1e7Y@%_fsqIKtf>C7#Qt9=r8=UFtI`%$jM&GI|Al<@r?qBY>Q=?>kdNMH47 z6`vd))8B5M+bdS``u_BJ?_{LsA$M%a^H<^}@AAVs^PYjuEqVaGyI3U-TcT(?9U(dX z*t)T4*UH2=l39L~30#C%@)*pn4d>8_7=L%OBOH9%0)R%?fEE)o zM|A9}>y`Llc1PbC#<%%WgX{Qm?mQ0u5% wI4&_(r=Z~w?$^h0*wG(`xDKo@v^Fso9+cnyBEX(uvUhjC|LaNd%|EZePhPK?DF6Tf literal 0 HcmV?d00001 diff --git a/data/chains/V2/chains.json b/data/chains/V2/chains.json index 9e4c9fd..21c7142 100644 --- a/data/chains/V2/chains.json +++ b/data/chains/V2/chains.json @@ -1288,7 +1288,7 @@ }, { "id": "cosmoshub", - "graph_id": "cosmoshub-4", + "graph_id": null, "name": "Cosmos Hub", "alt_names": [], "standard": "cosmos", @@ -1334,7 +1334,7 @@ "testnets": [ { "id": "theta", - "graph_id": "theta-testnet-001", + "graph_id": null, "name": "Theta", "alt_names": [], "standard": "cosmos", @@ -1406,7 +1406,7 @@ }, { "id": "osmosis", - "graph_id": "osmosis-1", + "graph_id": null, "name": "Osmosis", "alt_names": [], "standard": "cosmos", diff --git a/data/chains/V2/cosmoshub/meta.ts b/data/chains/V2/cosmoshub/meta.ts index ac27a65..6bb347d 100644 --- a/data/chains/V2/cosmoshub/meta.ts +++ b/data/chains/V2/cosmoshub/meta.ts @@ -2,7 +2,7 @@ import { ___InternalChain } from '../../../../types/chain.types'; const meta: ___InternalChain = { id: 'cosmoshub', - graph_id: 'cosmoshub-4', + graph_id: null, name: 'Cosmos Hub', alt_names: [], standard: 'cosmos', diff --git a/data/chains/V2/cosmoshub/testnets/theta/meta.ts b/data/chains/V2/cosmoshub/testnets/theta/meta.ts index 2b3c92c..99abe48 100644 --- a/data/chains/V2/cosmoshub/testnets/theta/meta.ts +++ b/data/chains/V2/cosmoshub/testnets/theta/meta.ts @@ -2,7 +2,7 @@ import { ___InternalTestnet } from '../../../../../../types/chain.types'; const meta: ___InternalTestnet = { id: 'theta', - graph_id: 'theta-testnet-001', + graph_id: null, name: 'Theta', alt_names: [], standard: 'cosmos', diff --git a/data/chains/V2/index.ts b/data/chains/V2/index.ts index 34fc308..10122fc 100644 --- a/data/chains/V2/index.ts +++ b/data/chains/V2/index.ts @@ -1,6 +1,6 @@ // This file is auto-generated on pre-commit to avoid maintaining it. // Do not modify manually as it will be overwritten. -// Last generation on 10/30/2024, 4:42:18 PM. +// Last generation on 11/7/2024, 10:28:21 PM. export { default as celo } from './celo/meta'; export { default as alfajores } from './celo/testnets/alfajores/meta'; diff --git a/data/chains/V2/osmosis/meta.ts b/data/chains/V2/osmosis/meta.ts index ac8b7c1..1668f13 100644 --- a/data/chains/V2/osmosis/meta.ts +++ b/data/chains/V2/osmosis/meta.ts @@ -2,7 +2,7 @@ import { ___InternalChain } from '../../../../types/chain.types'; const meta: ___InternalChain = { id: 'osmosis', - graph_id: 'osmosis-1', + graph_id: null, name: 'Osmosis', alt_names: [], standard: 'cosmos', diff --git a/data/index.config.ts b/data/index.config.ts index 0d9c98c..3a4c8fa 100644 --- a/data/index.config.ts +++ b/data/index.config.ts @@ -2,7 +2,7 @@ // Chains under ordered were manually placed, to manage the z-index (priority order) of chains. // Chains under missing are generated from available data, make sure to order them. // Include deprecated or future chains. -// Last generation on 10/30/2024, 4:42:18 PM. +// Last generation on 11/7/2024, 10:28:21 PM. export default { ordered: { diff --git a/package.json b/package.json index 088232d..1bf0d23 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@pinax/chains", - "version": "2.0.50", + "version": "2.0.51", "description": "Single-source-of-truth for the metadata of chains supported by Pinax.", "keywords": [ "chains", diff --git a/types/graph.types.ts b/types/graph.types.ts index 95226eb..aed879c 100644 --- a/types/graph.types.ts +++ b/types/graph.types.ts @@ -1,6 +1,6 @@ // This file is auto-generated on pre-commit to avoid maintaining it. // Do not modify manually as it will be overwritten. -// Last generation on 10/30/2024, 4:42:18 PM. +// Last generation on 11/7/2024, 10:28:21 PM. export type GraphID = | 'arbitrum-nova' | 'arbitrum-one' @@ -25,7 +25,6 @@ export type GraphID = | 'chapel' | 'chiliz' | 'chiliz-testnet' - | 'cosmoshub-4' | 'etherlink-mainnet' | 'etherlink-testnet' | 'fantom' @@ -43,6 +42,7 @@ export type GraphID = | 'iotex-testnet' | 'kaia' | 'kaia-testnet' + | 'lens-testnet' | 'linea' | 'linea-sepolia' | 'mainnet' @@ -58,8 +58,6 @@ export type GraphID = | 'neox-testnet' | 'optimism' | 'optimism-sepolia' - | 'osmo-test-4' - | 'osmosis-1' | 'polygon-amoy' | 'polygon-zkevm' | 'polygon-zkevm-cardona' @@ -70,10 +68,10 @@ export type GraphID = | 'sei-atlantic' | 'sei-mainnet' | 'sepolia' + | 'solana-devnet' | 'solana-mainnet-beta' | 'soneium-testnet' | 'starknet-mainnet' - | 'theta-testnet-001' | 'unichain-testnet' | 'xlayer-mainnet' | 'xlayer-sepolia' diff --git a/types/pinax.types.ts b/types/pinax.types.ts index 6194cc5..1e1d27a 100644 --- a/types/pinax.types.ts +++ b/types/pinax.types.ts @@ -1,6 +1,6 @@ // This file is auto-generated on pre-commit to avoid maintaining it / circular dependencies. // Do not modify manually as it will be overwritten. -// Last generation on 10/30/2024, 4:42:18 PM. +// Last generation on 11/7/2024, 10:28:21 PM. export type PinaxID = | 'celo' | 'alfajores' diff --git a/utils/chains.ts b/utils/chains.ts index c7e1f2f..67dbe3a 100644 --- a/utils/chains.ts +++ b/utils/chains.ts @@ -285,21 +285,21 @@ const getNumberOfSupportedChains = ( ) => { let supportedChains = 0; chains - .filter((c: any) => isChainSupported(c)) + .filter((c: any) => isChainSupported(c) || isChainBeta(c)) .forEach((c: any) => { supportedChains++; c.consensus?.forEach((consensus: any) => { - if (isChainSupported(consensus)) { + if (isChainSupported(consensus) || isChainBeta(c)) { supportedChains++; } }); c.evms?.forEach((evm: any) => { - if (isChainSupported(evm)) { + if (isChainSupported(evm) || isChainBeta(evm)) { supportedChains++; } }); c.testnets?.forEach((tn: any) => { - if (isChainSupported(tn)) { + if (isChainSupported(tn) || isChainBeta(tn)) { supportedChains++; } });