Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: rename chain id from ARBITRUM to ARBITRUM_ONE #207

Merged
merged 1 commit into from
May 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ Since the API supports different networks and environments, there are some optio

#### Environment configuration

`chainId` - can be one of `SupportedChainId.MAINNET`, `SupportedChainId.GNOSIS_CHAIN`, `SupportedChainId.ARBITRUM` or `SupportedChainId.SEPOLIA`
`chainId` - can be one of `SupportedChainId.MAINNET`, `SupportedChainId.GNOSIS_CHAIN`, `SupportedChainId.ARBITRUM_ONE` or `SupportedChainId.SEPOLIA`

`env` - this parameter affects which environment will be used:

Expand Down
2 changes: 1 addition & 1 deletion src/common/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
export enum SupportedChainId {
MAINNET = 1,
GNOSIS_CHAIN = 100,
ARBITRUM = 42161,
ARBITRUM_ONE = 42161,
SEPOLIA = 11155111,
}
4 changes: 2 additions & 2 deletions src/order-book/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ import { EnrichedOrder } from './types'
export const ORDER_BOOK_PROD_CONFIG: ApiBaseUrls = {
[SupportedChainId.MAINNET]: 'https://api.cow.fi/mainnet',
[SupportedChainId.GNOSIS_CHAIN]: 'https://api.cow.fi/xdai',
[SupportedChainId.ARBITRUM]: 'https://api.cow.fi/arbitrum_one',
[SupportedChainId.ARBITRUM_ONE]: 'https://api.cow.fi/arbitrum_one',
[SupportedChainId.SEPOLIA]: 'https://api.cow.fi/sepolia',
}

Expand All @@ -48,7 +48,7 @@ export const ORDER_BOOK_PROD_CONFIG: ApiBaseUrls = {
export const ORDER_BOOK_STAGING_CONFIG: ApiBaseUrls = {
[SupportedChainId.MAINNET]: 'https://barn.api.cow.fi/mainnet',
[SupportedChainId.GNOSIS_CHAIN]: 'https://barn.api.cow.fi/xdai',
[SupportedChainId.ARBITRUM]: 'https://barn.api.cow.fi/arbitrum_one',
[SupportedChainId.ARBITRUM_ONE]: 'https://barn.api.cow.fi/arbitrum_one',
[SupportedChainId.SEPOLIA]: 'https://barn.api.cow.fi/sepolia',
}

Expand Down
4 changes: 2 additions & 2 deletions src/subgraph/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ type PartialSubgraphApiContext = Partial<SubgraphApiContext>
export const SUBGRAPH_PROD_CONFIG: SubgraphApiBaseUrls = {
[SupportedChainId.MAINNET]: SUBGRAPH_BASE_URL + '/cow',
[SupportedChainId.GNOSIS_CHAIN]: SUBGRAPH_BASE_URL + '/cow-gc',
[SupportedChainId.ARBITRUM]: null,
[SupportedChainId.ARBITRUM_ONE]: null,
[SupportedChainId.SEPOLIA]: null,
}

Expand All @@ -37,7 +37,7 @@ export const SUBGRAPH_PROD_CONFIG: SubgraphApiBaseUrls = {
export const SUBGRAPH_STAGING_CONFIG: SubgraphApiBaseUrls = {
[SupportedChainId.MAINNET]: SUBGRAPH_BASE_URL + '/cow-staging',
[SupportedChainId.GNOSIS_CHAIN]: SUBGRAPH_BASE_URL + '/cow-gc-staging',
[SupportedChainId.ARBITRUM]: null,
[SupportedChainId.ARBITRUM_ONE]: null,
[SupportedChainId.SEPOLIA]: null,
}

Expand Down
Loading