From 25266c3e47edade0a271d9cc4898d3dade0aeb3d Mon Sep 17 00:00:00 2001 From: Anxo Rodriguez Date: Tue, 30 Jul 2024 16:21:37 +0100 Subject: [PATCH] Add all chains automatically --- apps/api/src/app/schemas.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/apps/api/src/app/schemas.ts b/apps/api/src/app/schemas.ts index aa98188..3137c86 100644 --- a/apps/api/src/app/schemas.ts +++ b/apps/api/src/app/schemas.ts @@ -1,9 +1,10 @@ +import { ALL_CHAIN_IDS } from '@cowprotocol/repositories'; export const ChainIdSchema = { title: 'Chain ID', description: 'Chain ID', - enum: [1, 100, 42161, 11155111], + enum: ALL_CHAIN_IDS, type: 'integer', -} as const +} as const; -export const ETHEREUM_ADDRESS_PATTERN = "^0x[a-fA-F0-9]{40}$" \ No newline at end of file +export const ETHEREUM_ADDRESS_PATTERN = '^0x[a-fA-F0-9]{40}$';