Skip to content

Commit

Permalink
decom ccip 1.0.0 (#1859)
Browse files Browse the repository at this point in the history
  • Loading branch information
aelmanaa authored Apr 1, 2024
1 parent 10575de commit e343a63
Show file tree
Hide file tree
Showing 13 changed files with 12 additions and 1,178 deletions.
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

0 comments on commit e343a63

Please sign in to comment.