Skip to content

Commit

Permalink
Moved token checks to copy-token script, added ore, better management…
Browse files Browse the repository at this point in the history
… of chains without/w/ broken icons
  • Loading branch information
DominicF96 committed May 17, 2024
1 parent 3c36d58 commit 3a09074
Show file tree
Hide file tree
Showing 33 changed files with 259 additions and 118 deletions.
1 change: 1 addition & 0 deletions data/chains/V2/bsc/meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const meta: Chain = {
icon: {
id: 'networks/binance-smart-chain',
brand_theme: 'both',
variants: ['branded', 'mono'],
},
supported_services: {
rpc: 'released',
Expand Down
1 change: 1 addition & 0 deletions data/chains/V2/celo/meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const meta: Chain = {
icon: {
id: 'networks/celo',
brand_theme: 'light',
variants: ['branded', 'mono'],
},
supported_services: {
rpc: 'unreleased',
Expand Down
71 changes: 51 additions & 20 deletions data/chains/V2/chains.json
Original file line number Diff line number Diff line change
Expand Up @@ -160,11 +160,7 @@
},
"icon": {
"id": "tokens/btc",
"brand_theme": "both",
"variants": [
"branded",
"mono"
]
"brand_theme": "both"
},
"supported_services": {
"rpc": "unreleased",
Expand Down Expand Up @@ -304,11 +300,7 @@
},
"icon": {
"id": "tokens/arbi",
"brand_theme": "both",
"variants": [
"branded",
"mono"
]
"brand_theme": "both"
},
"supported_services": {
"rpc": "beta",
Expand Down Expand Up @@ -403,11 +395,7 @@
},
"icon": {
"id": "networks/avalanche",
"brand_theme": "both",
"variants": [
"branded",
"mono"
]
"brand_theme": "both"
},
"supported_services": {
"rpc": "unreleased",
Expand Down Expand Up @@ -459,11 +447,7 @@
},
"icon": {
"id": "tokens/base",
"brand_theme": "both",
"variants": [
"branded",
"mono"
]
"brand_theme": "both"
},
"supported_services": {
"rpc": "unreleased",
Expand Down Expand Up @@ -1415,5 +1399,52 @@
"website": "https://zora.co/"
},
"index": 57
},
{
"id": "ore",
"graph_id": null,
"name": "Ore",
"alt_names": [],
"standard": "antelope",
"block_type": {
"label": "sf.antelope.type.v1.Block",
"url": "https://buf.build/pinax/firehose-antelope/docs/main:sf.antelope.type.v1"
},
"icon": {
"id": "networks/ore",
"brand_theme": "both",
"variants": [
"branded",
"mono"
]
},
"supported_services": {
"rpc": "deprecated",
"firehose": "deprecated",
"substreams": "deprecated"
},
"metadata": {
"website": "https://ore.network/"
},
"index": 58,
"testnets": [
{
"id": "orestage",
"graph_id": null,
"name": "Ore Stage",
"alt_names": [],
"standard": "antelope",
"block_type": {
"label": "sf.antelope.type.v1.Block",
"url": "https://buf.build/pinax/firehose-antelope/docs/main:sf.antelope.type.v1"
},
"supported_services": {
"rpc": "deprecated",
"firehose": "deprecated",
"substreams": "deprecated"
},
"index": 59
}
]
}
]
1 change: 1 addition & 0 deletions data/chains/V2/cosmoshub/meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const meta: Chain = {
icon: {
id: 'networks/cosmos',
brand_theme: 'dark',
variants: ['branded', 'mono'],
},
supported_services: {
rpc: 'unreleased',
Expand Down
1 change: 1 addition & 0 deletions data/chains/V2/decimal/meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const meta: Chain = {
icon: {
id: 'tokens/del',
brand_theme: 'both',
variants: ['branded', 'mono'],
},
supported_services: {
rpc: 'beta',
Expand Down
1 change: 1 addition & 0 deletions data/chains/V2/eos/meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const meta: Chain = {
icon: {
id: 'tokens/eos',
brand_theme: 'light',
variants: ['mono'],
},
supported_services: {
rpc: 'unreleased',
Expand Down
1 change: 1 addition & 0 deletions data/chains/V2/eth/meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const meta: Chain = {
icon: {
id: 'networks/ethereum',
brand_theme: 'both',
variants: ['branded', 'mono'],
},
supported_services: {
rpc: 'unreleased',
Expand Down
1 change: 1 addition & 0 deletions data/chains/V2/fantom/meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const meta: Chain = {
icon: {
id: 'networks/fantom',
brand_theme: 'light',
variants: ['branded', 'mono'],
},
supported_services: {
rpc: 'beta',
Expand Down
1 change: 1 addition & 0 deletions data/chains/V2/gnosis/meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const meta: Chain = {
icon: {
id: 'tokens/gno',
brand_theme: 'dark',
variants: ['branded', 'mono'],
},
supported_services: {
rpc: 'beta',
Expand Down
2 changes: 2 additions & 0 deletions data/chains/V2/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ export { default as moonbeam } from './moonbeam/meta';
export { default as near } from './near/meta';
export { default as neartest } from './near/testnets/neartest/meta';
export { default as optimism } from './optimism/meta';
export { default as ore } from './ore/meta';
export { default as orestage } from './ore/testnets/orestage/meta';
export { default as osmosis } from './osmosis/meta';
export { default as polygon } from './polygon/meta';
export { default as amoy } from './polygon/testnets/amoy/meta';
Expand Down
1 change: 1 addition & 0 deletions data/chains/V2/kava/meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const meta: Chain = {
icon: {
id: 'networks/kava',
brand_theme: 'both',
variants: ['branded', 'mono'],
},
supported_services: {
rpc: 'beta',
Expand Down
1 change: 1 addition & 0 deletions data/chains/V2/moonbeam/meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const meta: Chain = {
icon: {
id: 'networks/moonbeam',
brand_theme: 'both',
variants: ['branded', 'mono'],
},
supported_services: {
rpc: 'unreleased',
Expand Down
1 change: 1 addition & 0 deletions data/chains/V2/near/meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const meta: Chain = {
icon: {
id: 'tokens/near',
brand_theme: 'both',
variants: ['branded', 'mono'],
},
supported_services: {
rpc: 'unreleased',
Expand Down
1 change: 1 addition & 0 deletions data/chains/V2/optimism/meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const meta: Chain = {
icon: {
id: 'networks/optimistic-ethereum',
brand_theme: 'both',
variants: ['branded', 'mono'],
},
supported_services: {
rpc: 'unreleased',
Expand Down
28 changes: 28 additions & 0 deletions data/chains/V2/ore/meta.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import { Chain } from '../../../../types/chain.types';

const meta: Chain = {
id: 'ore',
graph_id: null,
name: 'Ore',
alt_names: [],
standard: 'antelope',
block_type: {
label: 'sf.antelope.type.v1.Block',
url: 'https://buf.build/pinax/firehose-antelope/docs/main:sf.antelope.type.v1',
},
icon: {
id: 'networks/ore',
brand_theme: 'both',
variants: ['branded', 'mono'],
},
supported_services: {
rpc: 'deprecated',
firehose: 'deprecated',
substreams: 'deprecated',
},
metadata: {
website: 'https://ore.network/',
},
};

export default meta;
9 changes: 9 additions & 0 deletions data/chains/V2/ore/ore.branded.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions data/chains/V2/ore/ore.dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions data/chains/V2/ore/ore.light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions data/chains/V2/ore/testnets/orestage/meta.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { Testnet } from '../../../../../../types/chain.types';

const meta: Testnet = {
id: 'orestage',
graph_id: null,
name: 'Ore Stage',
alt_names: [],
standard: 'antelope',
block_type: {
label: 'sf.antelope.type.v1.Block',
url: 'https://buf.build/pinax/firehose-antelope/docs/main:sf.antelope.type.v1',
},
supported_services: {
rpc: 'deprecated',
firehose: 'deprecated',
substreams: 'deprecated',
},
};

export default meta;
1 change: 1 addition & 0 deletions data/chains/V2/osmosis/meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const meta: Chain = {
icon: {
id: 'networks/osmosis',
brand_theme: 'both',
variants: ['branded', 'mono'],
},
supported_services: {
rpc: 'unreleased',
Expand Down
1 change: 1 addition & 0 deletions data/chains/V2/polygon/meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const meta: Chain = {
icon: {
id: 'networks/polygon-pos',
brand_theme: 'both',
variants: ['branded', 'mono'],
},
supported_services: {
rpc: 'released',
Expand Down
1 change: 1 addition & 0 deletions data/chains/V2/scroll/meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const meta: Chain = {
icon: {
id: 'networks/scroll',
brand_theme: 'both',
variants: ['branded', 'mono'],
},
supported_services: {
rpc: 'unreleased',
Expand Down
1 change: 1 addition & 0 deletions data/chains/V2/starknet/meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const meta: Chain = {
// missing
id: 'networks/starknet',
brand_theme: 'both',
variants: ['branded', 'mono'],
},
supported_services: {
rpc: 'unreleased',
Expand Down
1 change: 1 addition & 0 deletions data/chains/V2/telos/meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const meta: Chain = {
icon: {
id: 'networks/telos',
brand_theme: 'both',
variants: ['branded', 'mono'],
},
supported_services: {
rpc: 'unreleased',
Expand Down
1 change: 1 addition & 0 deletions data/chains/V2/wax/meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const meta: Chain = {
icon: {
id: 'tokens/waxp',
brand_theme: 'both',
variants: ['branded', 'mono'],
},
supported_services: {
rpc: 'unreleased',
Expand Down
3 changes: 2 additions & 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 5/16/2024, 5:00:01 PM.
// Last generation on 5/17/2024, 12:07:17 PM.

export default {
ordered: {
Expand Down Expand Up @@ -47,6 +47,7 @@ export default {
xai: [],
zkevm: ['zkyoto'],
zora: [],
ore: ['orestage'],
},
missing: [],
};
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"scripts": {
"fetch-graph-ids": "bun ./scripts/fetchGraphIDs.ts",
"format": "prettier --log-level warn --write \"./**/*.{js,jsx,ts,tsx}\"",
"generate": "bun run generate:data && bun run generate:types",
"generate": "bun run generate:data && bun run generate:types && bun run generate:copy_token_icons",
"generate:data": "bun run generate:data_index && bun run generate:index_config && bun run generate:data_json",
"generate:index_config": "bun ./scripts/generate/V2/index_config_check.ts",
"generate:data_index": "bun ./scripts/generate/V2/data_index.ts",
Expand Down
Loading

0 comments on commit 3a09074

Please sign in to comment.