Skip to content

Commit e8c74a0

Browse files
authored
feat(chains)!: Remove Lens (cowprotocol#818)
* feat: Remove support for Lens. BREAKING CHANGE: Remove support for Lens.
1 parent aad43b3 commit e8c74a0

18 files changed

Lines changed: 3 additions & 114 deletions

File tree

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ CoW Swap is currently available on the following chains:
2020
- **BNB** (56)
2121
- **Gnosis Chain** (100)
2222
- **Polygon** (137)
23-
- **Lens** (232)
2423
- **Base** (8453)
2524
- **Plasma** (9745)
2625
- **Arbitrum One** (42161)

examples/react/wagmi/src/tokens.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,6 @@ export const USDC_TOKENS: Record<SupportedChainId, TokenInfo> = {
2929
name: 'USD Coin',
3030
symbol: 'USDC',
3131
},
32-
[SupportedChainId.LENS]: {
33-
chainId: SupportedChainId.LENS,
34-
address: '0x88F08E304EC4f90D644Cec3Fb69b8aD414acf884', // USDC (Native on Lens)
35-
decimals: 6,
36-
name: 'USD Coin',
37-
symbol: 'USDC',
38-
},
3932
[SupportedChainId.BASE]: {
4033
chainId: SupportedChainId.BASE,
4134
address: '0x833589fCD6eDb6E08f4c7C32D4f71b54bDa02913', // USDC (Native on Base)

packages/bridging/src/providers/across/const/contracts.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ export const ACROSS_SPOOK_CONTRACT_ADDRESSES: Record<TargetChainId, string | und
1313
[SupportedChainId.SEPOLIA]: '0x5ef6C01E11889d86803e0B23e3cB3F9E9d97B662',
1414
// https://docs.across.to/reference/contract-addresses/polygon-chain-id-137
1515
[SupportedChainId.POLYGON]: '0x9295ee1d8C5b022Be115A2AD3c30C72E34e7F096',
16-
// https://docs.across.to/reference/contract-addresses/lens-chain
17-
[SupportedChainId.LENS]: '0xb234cA484866c811d0e6D3318866F583781ED045',
1816
// https://docs.across.to/reference/contract-addresses/bnb-smart-chain
1917
[SupportedChainId.BNB]: '0x4e8E101924eDE233C13e2D8622DC8aED2872d505',
2018
// https://docs.across.to/reference/contract-addresses/linea-chain-id-59144
@@ -45,7 +43,6 @@ export const ACROSS_MATH_CONTRACT_ADDRESSES: Record<TargetChainId, string | unde
4543
[SupportedChainId.SEPOLIA]: undefined,
4644
[SupportedChainId.POLYGON]: undefined,
4745
[SupportedChainId.AVALANCHE]: undefined,
48-
[SupportedChainId.LENS]: undefined, // TODO: confirm
4946
[SupportedChainId.BNB]: undefined, // TODO: confirm
5047
[SupportedChainId.LINEA]: undefined, // TODO: confirm
5148
[SupportedChainId.PLASMA]: undefined, // TODO: confirm

packages/bridging/src/providers/bungee/const/contracts.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ export const BungeeCowswapLibAddresses: Record<TargetChainId, string | undefined
88
[SupportedChainId.BASE]: BUNGEE_COWSWAP_LIB_ADDRESS,
99
[SupportedChainId.AVALANCHE]: BUNGEE_COWSWAP_LIB_ADDRESS,
1010
[SupportedChainId.POLYGON]: BUNGEE_COWSWAP_LIB_ADDRESS,
11-
[SupportedChainId.LENS]: undefined, // TODO: confirm
1211
[SupportedChainId.BNB]: undefined, // TODO: confirm
1312
[SupportedChainId.LINEA]: undefined, // TODO: confirm
1413
[SupportedChainId.PLASMA]: undefined, // TODO: confirm
@@ -27,7 +26,6 @@ export const SocketVerifierAddresses: Record<TargetChainId, string | undefined>
2726
[SupportedChainId.BASE]: SOCKET_VERIFIER_ADDRESS,
2827
[SupportedChainId.AVALANCHE]: SOCKET_VERIFIER_ADDRESS,
2928
[SupportedChainId.POLYGON]: SOCKET_VERIFIER_ADDRESS,
30-
[SupportedChainId.LENS]: undefined, // TODO: confirm
3129
[SupportedChainId.BNB]: undefined, // TODO: confirm
3230
[SupportedChainId.LINEA]: undefined, // TODO: confirm
3331
[SupportedChainId.PLASMA]: undefined, // TODO: confirm
@@ -46,7 +44,6 @@ export const BungeeApproveAndBridgeV1Addresses: Record<TargetChainId, string | u
4644
[SupportedChainId.BASE]: BUNGEE_APPROVE_AND_BRIDGE_V1_ADDRESS,
4745
[SupportedChainId.AVALANCHE]: BUNGEE_APPROVE_AND_BRIDGE_V1_ADDRESS,
4846
[SupportedChainId.POLYGON]: BUNGEE_APPROVE_AND_BRIDGE_V1_ADDRESS,
49-
[SupportedChainId.LENS]: undefined, // TODO: confirm
5047
[SupportedChainId.BNB]: undefined, // TODO: confirm
5148
[SupportedChainId.LINEA]: undefined, // TODO: confirm
5249
[SupportedChainId.PLASMA]: undefined, // TODO: confirm

packages/bridging/src/test/getWallet.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ describe('getWallet utilities', () => {
9090
SupportedChainId.SEPOLIA,
9191
SupportedChainId.POLYGON,
9292
SupportedChainId.AVALANCHE,
93-
SupportedChainId.LENS,
9493
SupportedChainId.BNB,
9594
SupportedChainId.LINEA,
9695
SupportedChainId.PLASMA,

packages/bridging/src/test/getWallet.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import {
55
base,
66
bnb,
77
gnosisChain,
8-
lens,
98
linea,
109
mainnet,
1110
plasma,
@@ -23,7 +22,6 @@ const DEFAULT_RPC_URL: Record<SupportedChainId, string | undefined> = {
2322
[SupportedChainId.SEPOLIA]: sepolia.rpcUrls.default.http[0],
2423
[SupportedChainId.POLYGON]: polygon.rpcUrls.default.http[0],
2524
[SupportedChainId.AVALANCHE]: avalanche.rpcUrls.default.http[0],
26-
[SupportedChainId.LENS]: lens.rpcUrls.default.http[0],
2725
[SupportedChainId.BNB]: bnb.rpcUrls.default.http[0],
2826
[SupportedChainId.LINEA]: linea.rpcUrls.default.http[0],
2927
[SupportedChainId.PLASMA]: plasma.rpcUrls.default.http[0],

packages/config/src/chains/const/chainIds.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import { base } from '../details/base'
66
import { sepolia } from '../details/sepolia'
77
import { avalanche } from '../details/avalanche'
88
import { polygon } from '../details/polygon'
9-
import { lens } from '../details/lens'
109
import { bnb } from '../details/bnb'
1110
import { optimism } from '../details/optimism'
1211
import { linea } from '../details/linea'
@@ -26,7 +25,6 @@ export const ALL_SUPPORTED_CHAINS_MAP: Record<SupportedChainId, ChainInfo> = {
2625
[SupportedChainId.AVALANCHE]: avalanche,
2726
[SupportedChainId.POLYGON]: polygon,
2827
[SupportedChainId.BNB]: bnb,
29-
[SupportedChainId.LENS]: lens,
3028
[SupportedChainId.PLASMA]: plasma,
3129
[SupportedChainId.LINEA]: linea,
3230
[SupportedChainId.INK]: ink,

packages/config/src/chains/const/contracts.ts

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,24 +30,15 @@ export const COMPOSABLE_COW_CONTRACT_ADDRESS = mapAddressToSupportedNetworks(COM
3030

3131
const ETH_FLOW_ADDRESS = '0xba3cb449bd2b4adddbc894d8697f5170800eadec'
3232
const BARN_ETH_FLOW_ADDRESS = '0x04501b9b1d52e67f6862d157e00d13419d2d6e95'
33-
// Lens does not uses the same deterministic address for the EthFlow contract as other chains.
34-
const ETH_FLOW_ADDRESS_LENS = '0x5A5b8aE7a0b4C0EAf453d10DCcfbA413f07ebdC2'
35-
const BARN_ETH_FLOW_ADDRESS_LENS = '0xFb337f8a725A142f65fb9ff4902d41cc901de222'
3633

3734
/**
3835
* An object containing the addresses of ETH flow contracts for each supported chain for production.
3936
*/
40-
export const ETH_FLOW_ADDRESSES: Record<SupportedChainId, string> = {
41-
...mapAddressToSupportedNetworks(ETH_FLOW_ADDRESS),
42-
[SupportedChainId.LENS]: ETH_FLOW_ADDRESS_LENS,
43-
}
37+
export const ETH_FLOW_ADDRESSES: Record<SupportedChainId, string> = mapAddressToSupportedNetworks(ETH_FLOW_ADDRESS)
4438

4539
/**
4640
* An object containing the addresses of ETH flow contracts for each supported chain for barn.
4741
*/
48-
export const BARN_ETH_FLOW_ADDRESSES: Record<SupportedChainId, string> = {
49-
...mapAddressToSupportedNetworks(BARN_ETH_FLOW_ADDRESS),
50-
[SupportedChainId.LENS]: BARN_ETH_FLOW_ADDRESS_LENS,
51-
}
42+
export const BARN_ETH_FLOW_ADDRESSES: Record<SupportedChainId, string> = mapAddressToSupportedNetworks(BARN_ETH_FLOW_ADDRESS)
5243

5344
export const MAX_VALID_TO_EPOCH = 4294967295 // Max uint32 (Feb 07 2106 07:28:15 GMT+0100)

packages/config/src/chains/details/lens.ts

Lines changed: 0 additions & 62 deletions
This file was deleted.

packages/config/src/chains/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ export * from './details/mainnet'
99
export * from './details/optimism'
1010
export * from './details/polygon'
1111
export * from './details/sepolia'
12-
export * from './details/lens'
1312
export * from './details/bnb'
1413
export * from './details/linea'
1514
export * from './details/plasma'

0 commit comments

Comments
 (0)