-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconstants.ts
More file actions
17 lines (15 loc) · 829 Bytes
/
constants.ts
File metadata and controls
17 lines (15 loc) · 829 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import { ChainId } from '../../../types/ChainId';
export const lifiDestinationChainIds: Record<number, number[]> = {
[ChainId.Ethereum]: [ChainId.ArbitrumOne, ChainId.ApeChain, ChainId.Superposition],
[ChainId.ArbitrumOne]: [ChainId.Ethereum, ChainId.ApeChain, ChainId.Superposition],
[ChainId.ApeChain]: [ChainId.Ethereum, ChainId.ArbitrumOne, ChainId.Superposition],
[ChainId.Superposition]: [ChainId.Ethereum, ChainId.ArbitrumOne, ChainId.ApeChain],
[ChainId.Base]: [ChainId.ArbitrumOne, ChainId.ApeChain, ChainId.Superposition],
[ChainId.Solana]: [ChainId.ArbitrumOne],
};
export const allowedLifiSourceChainIds: number[] = Object.keys(lifiDestinationChainIds).map((id) =>
Number(id),
);
export const allowedLifiDestinationChainIds: number[] = Object.values(
lifiDestinationChainIds,
).flatMap((id) => id);