Skip to content

Commit f4c5ee1

Browse files
authored
Merge pull request #3 from cowprotocol/support-lens
Support Lens
2 parents 76f11eb + 4e8bb20 commit f4c5ee1

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

.devcontainer/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM --platform=linux/amd64 mcr.microsoft.com/vscode/devcontainers/base:0-bullseye
1+
FROM --platform=linux/amd64 mcr.microsoft.com/vscode/devcontainers/base:1-bullseye
22

33
ENV DENO_INSTALL=/deno
44
RUN mkdir -p /deno \

run.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ rpc.mevblocker.io,\
2020
rpc.gnosischain.com,\
2121
ethereum-sepolia.publicnode.com,\
2222
arbitrum-one-rpc.publicnode.com,\
23-
base.llamarpc.com" \
23+
base.llamarpc.com,\
24+
rpc.lens.xyz" \
2425
-- \
2526
"$base_path/replace-owners.ts" \
2627
"$@"

src/networks.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ export type SupportedNetworks =
88
| "Optimism"
99
| "Avalanche"
1010
| "Arbitrum One"
11-
| "Base";
11+
| "Base"
12+
| "Lens";
1213

1314
export function getRpc(network: SupportedNetworks): string {
1415
// For more information about the RPC nodes: https://chainlist.org/
@@ -33,6 +34,8 @@ export function getRpc(network: SupportedNetworks): string {
3334
return "https://mainnet.optimism.io"
3435
case "Avalanche":
3536
return "https://api.avax.network/ext/bc/C/rpc"
37+
case "Lens":
38+
return "https://rpc.lens.xyz";
3639
default:
3740
throw new Error(`Invalid network ${network}`);
3841
}

0 commit comments

Comments
 (0)