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

Sunset CCIP 1.0.0 #1859

Merged
merged 1 commit into from
Apr 1, 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
11 changes: 0 additions & 11 deletions src/config/data/ccip/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ import chainsMainnetv120 from "@config/data/ccip/v1_2_0/mainnet/chains.json"
import lanesMainnetv120 from "@config/data/ccip/v1_2_0/mainnet/lanes.json"
import tokensMainnetv120 from "@config/data/ccip/v1_2_0/mainnet/tokens.json"

import chainsMainnetv100 from "@config/data/ccip/v1_0_0/mainnet/chains.json"
import lanesMainnetv100 from "@config/data/ccip/v1_0_0/mainnet/lanes.json"
import tokensMainnetv100 from "@config/data/ccip/v1_0_0/mainnet/tokens.json"

// For testnet

import chainsTestnetv120 from "@config/data/ccip/v1_2_0/testnet/chains.json"
Expand All @@ -27,10 +23,6 @@ export const loadReferenceData = ({ environment, version }: { environment: Envir
chainsReferenceData = chainsMainnetv120 as unknown as ChainsConfig
lanesReferenceData = lanesMainnetv120 as unknown as LanesConfig
tokensReferenceData = tokensMainnetv120 as unknown as TokensConfig
} else if (environment === Environment.Mainnet && version === Version.V1_0_0) {
chainsReferenceData = chainsMainnetv100 as unknown as ChainsConfig
lanesReferenceData = lanesMainnetv100 as unknown as LanesConfig
tokensReferenceData = tokensMainnetv100 as unknown as TokensConfig
} else if (environment === Environment.Testnet && version === Version.V1_2_0) {
chainsReferenceData = chainsTestnetv120 as unknown as ChainsConfig
lanesReferenceData = lanesTestnetv120 as unknown as LanesConfig
Expand All @@ -56,9 +48,6 @@ export const getAllChains = ({
case Version.V1_2_0:
chainsMainnetKeys = Object.keys(chainsMainnetv120)
break
case Version.V1_0_0:
chainsMainnetKeys = Object.keys(chainsMainnetv100)
break
default:
throw new Error(`Invalid mainnet version: ${mainnetVersion}`)
}
Expand Down
1 change: 0 additions & 1 deletion src/config/data/ccip/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,5 @@ export enum Environment {
}

export enum Version {
V1_0_0 = "1.0.0",
V1_2_0 = "1.2.0",
}
37 changes: 0 additions & 37 deletions src/config/data/ccip/v1_0_0/mainnet/chains.json

This file was deleted.

Loading
Loading