Skip to content

Commit

Permalink
refactor: remove unnecessary networks
Browse files Browse the repository at this point in the history
  • Loading branch information
LuccaBitfly committed Dec 19, 2024
1 parent 8ded042 commit a485a61
Showing 1 changed file with 0 additions and 158 deletions.
158 changes: 0 additions & 158 deletions frontend/types/network.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,11 @@ export enum ChainFamily {
export enum ChainIDs {
Any = 0, // to organize data internally (example of use: some ahead-results in the search bar belong to all networks)

ArbitrumNovaEthereum = 42170,
ArbitrumOneEthereum = 42161,
ArbitrumOneSepolia = 421614,

BaseEthereum = 8453,
BaseSepolia = 84532,
Chiado = 10200,

Ethereum = 1,
Gnosis = 100,

Holesky = 17000,
OptimismEthereum = 10,

OptimismSepolia = 11155420,
Sepolia = 11155111,
}

Expand Down Expand Up @@ -65,117 +55,6 @@ export const ChainInfo: Record<ChainIDs, ChainInfoFields> = {
slotsPerEpoch: 32,
timeStampSlot0: 0,
},

[ChainIDs.ArbitrumNovaEthereum]: {
clCurrency: 'ETH',
description: 'L2',
elCurrency: 'ETH',
family: ChainFamily.Arbitrum,
L1: ChainIDs.Ethereum,
mainNet: ChainIDs.ArbitrumNovaEthereum,
name: 'Arbitrum Nova',
nameParts: [
'Arbitrum Nova',
'',
],
priority: 11,
secondsPerSlot: 0,
shortName: 'Arbitrum',
slotsPerEpoch: 0,
timeStampSlot0: 0,
},
[ChainIDs.ArbitrumOneEthereum]: {
clCurrency: 'ETH',
description: 'L2',
elCurrency: 'ETH',
family: ChainFamily.Arbitrum,
L1: ChainIDs.Ethereum,
mainNet: ChainIDs.ArbitrumOneEthereum,
name: 'Arbitrum One',
nameParts: [
'Arbitrum One',
'',
],
priority: 10,
secondsPerSlot: 0,
shortName: 'Arbitrum',
slotsPerEpoch: 0,
timeStampSlot0: 0,
},
[ChainIDs.ArbitrumOneSepolia]: {
clCurrency: 'ETH',
description: 'Testnet',
elCurrency: 'ETH',
family: ChainFamily.Arbitrum,
L1: ChainIDs.Sepolia,
mainNet: ChainIDs.ArbitrumOneEthereum,
name: 'Arbitrum Sepolia',
nameParts: [
'Arbitrum',
'Sepolia',
],
priority: 12,
secondsPerSlot: 0,
shortName: 'Arbitrum',
slotsPerEpoch: 0,
timeStampSlot0: 0,
},

[ChainIDs.BaseEthereum]: {
clCurrency: 'ETH',
description: 'L2',
elCurrency: 'ETH',
family: ChainFamily.Base,
L1: ChainIDs.Ethereum,
mainNet: ChainIDs.BaseEthereum,
name: 'Base',
nameParts: [
'Base',
'',
],
priority: 30,
secondsPerSlot: 0,
shortName: 'Base',
slotsPerEpoch: 0,
timeStampSlot0: 0,
},
[ChainIDs.BaseSepolia]: {
clCurrency: 'ETH',
description: 'Testnet',
elCurrency: 'ETH',
family: ChainFamily.Base,
L1: ChainIDs.Sepolia,
mainNet: ChainIDs.BaseEthereum,
name: 'Base Sepolia',
nameParts: [
'Base',
'Sepolia',
],
priority: 31,
secondsPerSlot: 0,
shortName: 'Base',
slotsPerEpoch: 0,
timeStampSlot0: 0,
},
[ChainIDs.Chiado]: {
clCurrency: 'GNO',
description: 'Testnet',
elCurrency: 'xDAI',
family: ChainFamily.Gnosis,
L1: ChainIDs.Chiado,
mainNet: ChainIDs.Gnosis,
name: 'Gnosis Chiado',
nameParts: [
'Gnosis',
'Chiado',
],
priority: 41,
secondsPerSlot: 5,
shortName: 'Chiado',
slotsPerEpoch: 16,
timeStampSlot0: 1665396300,
},

[ChainIDs.Ethereum]: {
clCurrency: 'ETH',
description: 'Mainnet',
Expand Down Expand Up @@ -231,43 +110,6 @@ export const ChainInfo: Record<ChainIDs, ChainInfoFields> = {
slotsPerEpoch: 32,
timeStampSlot0: 1695902400,
},
[ChainIDs.OptimismEthereum]: {
clCurrency: 'ETH',
description: 'L2',
elCurrency: 'ETH',
family: ChainFamily.Optimism,
L1: ChainIDs.Ethereum,
mainNet: ChainIDs.OptimismEthereum,
name: 'Optimism',
nameParts: [
'Optimism',
'',
],
priority: 20,
secondsPerSlot: 0,
shortName: 'Optimism',
slotsPerEpoch: 0,
timeStampSlot0: 0,
},

[ChainIDs.OptimismSepolia]: {
clCurrency: 'ETH',
description: 'Testnet',
elCurrency: 'ETH',
family: ChainFamily.Optimism,
L1: ChainIDs.Sepolia,
mainNet: ChainIDs.OptimismEthereum,
name: 'Optimism Sepolia',
nameParts: [
'Optimism',
'Sepolia',
],
priority: 21,
secondsPerSlot: 0,
shortName: 'Optimism',
slotsPerEpoch: 0,
timeStampSlot0: 0,
},
[ChainIDs.Sepolia]: {
clCurrency: 'ETH',
description: 'Testnet',
Expand Down

0 comments on commit a485a61

Please sign in to comment.