Skip to content

feat: generate pool config#153

Merged
apeir99n merged 1 commit intomainfrom
pools-config
Jul 30, 2025
Merged

feat: generate pool config#153
apeir99n merged 1 commit intomainfrom
pools-config

Conversation

@essserrr
Copy link
Collaborator

@essserrr essserrr commented Jul 29, 2025

This pull request introduces significant updates to streamline configuration generation, enhance type definitions, and expand data handling for pools and strategies. The most notable changes include replacing the generate-strategies script with a more comprehensive generate-configs script, introducing new type definitions for pools, and restructuring the pool and strategy data.

Script Updates:

  • Replaced the generate-strategies.ts script with generate-configs.ts, which now handles both strategies and pools configuration generation. The new script outputs JSON files for multiple directories and removes existing files before regenerating them. (scripts/generate-configs.ts [1]], scripts/generate-strategies.ts [2]])
  • Updated the package.json scripts to reflect the new generate-configs.ts script, replacing references to the old generate-strategies.ts. (package.json [package.jsonL13-R17])

Type Definitions:

  • Added a new PoolConfigPayload type and TokenTypePool union type to define pool configurations, including fields like name, address, chainId, network, and poolType. (src/core/pools.ts [src/core/pools.tsR1-R16])
  • Renamed StrategyPayload to StrategyConfigPayload for consistency and clarity. (src/core/strategy.ts [src/core/strategy.tsL10-R10])

Data Restructuring:

  • Introduced a new POOLS_LIST array containing detailed pool configurations for various networks, including Ethereum, Optimism, and others. (src/pools/index.ts [src/pools/index.tsR1-R244])
  • Updated STRATEGIES_LIST to use the renamed StrategyConfigPayload type. (src/strategies/index.ts [src/strategies/index.tsL1-R3])

Exports:

  • Exported the new PoolConfigPayload type from the pools module to make it accessible across the codebase. (src/index.tsx [src/index.tsxR1])

@apeir99n apeir99n merged commit bf5e536 into main Jul 30, 2025
3 checks passed
@apeir99n apeir99n deleted the pools-config branch July 30, 2025 03:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants