Skip to content

Commit

Permalink
Add all chains automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
anxolin committed Jul 30, 2024
1 parent 31260ea commit 25266c3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions apps/api/src/app/schemas.ts
Original file line number Diff line number Diff line change
@@ -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}$"
export const ETHEREUM_ADDRESS_PATTERN = '^0x[a-fA-F0-9]{40}$';

0 comments on commit 25266c3

Please sign in to comment.