Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed counting chains function and updated metadata #30

Merged
merged 1 commit into from
Nov 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
6 changes: 3 additions & 3 deletions data/chains/V2/chains.json
Original file line number Diff line number Diff line change
Expand Up @@ -1288,7 +1288,7 @@
},
{
"id": "cosmoshub",
"graph_id": "cosmoshub-4",
"graph_id": null,
"name": "Cosmos Hub",
"alt_names": [],
"standard": "cosmos",
Expand Down Expand Up @@ -1334,7 +1334,7 @@
"testnets": [
{
"id": "theta",
"graph_id": "theta-testnet-001",
"graph_id": null,
"name": "Theta",
"alt_names": [],
"standard": "cosmos",
Expand Down Expand Up @@ -1406,7 +1406,7 @@
},
{
"id": "osmosis",
"graph_id": "osmosis-1",
"graph_id": null,
"name": "Osmosis",
"alt_names": [],
"standard": "cosmos",
Expand Down
2 changes: 1 addition & 1 deletion data/chains/V2/cosmoshub/meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion data/chains/V2/cosmoshub/testnets/theta/meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion data/chains/V2/index.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
2 changes: 1 addition & 1 deletion data/chains/V2/osmosis/meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion data/index.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
8 changes: 3 additions & 5 deletions types/graph.types.ts
Original file line number Diff line number Diff line change
@@ -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'
Expand All @@ -25,7 +25,6 @@ export type GraphID =
| 'chapel'
| 'chiliz'
| 'chiliz-testnet'
| 'cosmoshub-4'
| 'etherlink-mainnet'
| 'etherlink-testnet'
| 'fantom'
Expand All @@ -43,6 +42,7 @@ export type GraphID =
| 'iotex-testnet'
| 'kaia'
| 'kaia-testnet'
| 'lens-testnet'
| 'linea'
| 'linea-sepolia'
| 'mainnet'
Expand All @@ -58,8 +58,6 @@ export type GraphID =
| 'neox-testnet'
| 'optimism'
| 'optimism-sepolia'
| 'osmo-test-4'
| 'osmosis-1'
| 'polygon-amoy'
| 'polygon-zkevm'
| 'polygon-zkevm-cardona'
Expand All @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion types/pinax.types.ts
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
8 changes: 4 additions & 4 deletions utils/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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++;
}
});
Expand Down
Loading