Skip to content

Commit

Permalink
Rename directory and files that contain config values
Browse files Browse the repository at this point in the history
  • Loading branch information
nflaig committed Jan 19, 2024
1 parent 5dbbe45 commit 16ef7d5
Show file tree
Hide file tree
Showing 16 changed files with 18 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {expect} from "chai";
import {TopicScoreParams} from "@chainsafe/libp2p-gossipsub/score";
import {ATTESTATION_SUBNET_COUNT, ForkName, SLOTS_PER_EPOCH} from "@lodestar/params";
import {createBeaconConfig} from "@lodestar/config";
import {mainnetChainConfig} from "@lodestar/config/presets";
import {mainnetChainConfig} from "@lodestar/config/configs";
import {computeGossipPeerScoreParams, gossipScoreThresholds} from "../../../../src/network/gossip/scoringParameters.js";
import {stringifyGossipTopic} from "../../../../src/network/gossip/topic.js";
import {GossipType} from "../../../../src/network/index.js";
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/networks/dev.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {gnosisChainConfig} from "@lodestar/config/networks";
import {minimalChainConfig, mainnetChainConfig} from "@lodestar/config/presets";
import {minimalChainConfig, mainnetChainConfig} from "@lodestar/config/configs";
import {ACTIVE_PRESET, PresetName} from "@lodestar/params";

let chainConfig;
Expand Down
4 changes: 2 additions & 2 deletions packages/config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
"./networks": {
"import": "./lib/networks.js"
},
"./presets": {
"import": "./lib/presets.js"
"./configs": {
"import": "./lib/configs.js"
}
},
"typesVersions": {
Expand Down
4 changes: 2 additions & 2 deletions packages/config/src/chainConfig/default.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {ACTIVE_PRESET, PresetName} from "@lodestar/params";
import {ChainConfig} from "./types.js";
import {chainConfig as mainnet} from "./presets/mainnet.js";
import {chainConfig as minimal} from "./presets/minimal.js";
import {chainConfig as mainnet} from "./configs/mainnet.js";
import {chainConfig as minimal} from "./configs/minimal.js";

let defaultChainConfig: ChainConfig;

Expand Down
2 changes: 1 addition & 1 deletion packages/config/src/chainConfig/networks/chiado.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import {fromHexString as b} from "@chainsafe/ssz";
import {PresetName} from "@lodestar/params";
import {ChainConfig} from "../types.js";
import {chainConfig as mainnet} from "../presets/mainnet.js";
import {chainConfig as mainnet} from "../configs/mainnet.js";

// Chiado beacon chain config:
// https://github.com/gnosischain/configs/blob/main/chiado/config.yaml
Expand Down
2 changes: 1 addition & 1 deletion packages/config/src/chainConfig/networks/ephemery.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-disable @typescript-eslint/naming-convention */
import {fromHexString as b} from "@chainsafe/ssz";
import {ChainConfig} from "../types.js";
import {chainConfig as mainnet} from "../presets/mainnet.js";
import {chainConfig as mainnet} from "../configs/mainnet.js";

// Ephemery dynamic beacon chain config:
// https://github.com/ephemery-testnet/ephemery-genesis/blob/master/cl-config.yaml
Expand Down
2 changes: 1 addition & 1 deletion packages/config/src/chainConfig/networks/gnosis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import {fromHexString as b} from "@chainsafe/ssz";
import {PresetName} from "@lodestar/params";
import {ChainConfig} from "../types.js";
import {chainConfig as mainnet} from "../presets/mainnet.js";
import {chainConfig as mainnet} from "../configs/mainnet.js";

// Gnosis beacon chain config:
// https://github.com/gnosischain/configs/blob/main/mainnet/config.yaml
Expand Down
2 changes: 1 addition & 1 deletion packages/config/src/chainConfig/networks/goerli.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-disable @typescript-eslint/naming-convention */
import {fromHexString as b} from "@chainsafe/ssz";
import {ChainConfig} from "../types.js";
import {chainConfig as mainnet} from "../presets/mainnet.js";
import {chainConfig as mainnet} from "../configs/mainnet.js";

// Goerli beacon chain config:
// https://github.com/eth-clients/goerli/blob/main/prater/config.yaml
Expand Down
2 changes: 1 addition & 1 deletion packages/config/src/chainConfig/networks/holesky.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-disable @typescript-eslint/naming-convention */
import {fromHexString as b} from "@chainsafe/ssz";
import {ChainConfig} from "../types.js";
import {chainConfig as mainnet} from "../presets/mainnet.js";
import {chainConfig as mainnet} from "../configs/mainnet.js";

// Holesky beacon chain config:
// https://github.com/eth-clients/holesky/blob/main/custom_config_data/config.yaml
Expand Down
2 changes: 1 addition & 1 deletion packages/config/src/chainConfig/networks/mainnet.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-disable @typescript-eslint/naming-convention */
import {fromHexString as b} from "@chainsafe/ssz";
import {ChainConfig} from "../types.js";
import {chainConfig as mainnet} from "../presets/mainnet.js";
import {chainConfig as mainnet} from "../configs/mainnet.js";

export const mainnetChainConfig: ChainConfig = {
...mainnet,
Expand Down
2 changes: 1 addition & 1 deletion packages/config/src/chainConfig/networks/ropsten.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-disable @typescript-eslint/naming-convention */
import {fromHexString as b} from "@chainsafe/ssz";
import {ChainConfig} from "../types.js";
import {chainConfig as mainnet} from "../presets/mainnet.js";
import {chainConfig as mainnet} from "../configs/mainnet.js";

// Ropsten beacon chain config:
// https://github.com/eth-clients/merge-testnets/blob/main/ropsten-beacon-chain/config.yaml
Expand Down
2 changes: 1 addition & 1 deletion packages/config/src/chainConfig/networks/sepolia.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-disable @typescript-eslint/naming-convention */
import {fromHexString as b} from "@chainsafe/ssz";
import {ChainConfig} from "../types.js";
import {chainConfig as mainnet} from "../presets/mainnet.js";
import {chainConfig as mainnet} from "../configs/mainnet.js";

// Sepolia beacon chain config:
// https://github.com/eth-clients/sepolia/blob/main/bepolia/config.yaml
Expand Down
4 changes: 4 additions & 0 deletions packages/config/src/configs.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import {chainConfig as mainnetChainConfig} from "./chainConfig/configs/mainnet.js";
import {chainConfig as minimalChainConfig} from "./chainConfig/configs/minimal.js";

export {mainnetChainConfig, minimalChainConfig};
4 changes: 0 additions & 4 deletions packages/config/src/presets.ts

This file was deleted.

0 comments on commit 16ef7d5

Please sign in to comment.