Skip to content

Commit f6ad1d0

Browse files
authored
Lens deployment init (#64)
Enables deployment on the Lens chain and contains the deployment metadata. `forge` deployment on the latest stable foundry version still doesn't work, though. Also, updates the CLA workflow to not request personal access token anymore.
1 parent 7166070 commit f6ad1d0

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.github/workflows/cla.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,9 @@ jobs:
1818
steps:
1919
- name: "CLA Assistant"
2020
if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target'
21-
uses: contributor-assistant/github-action@v2.2.1
21+
uses: contributor-assistant/github-action@v2.6.1
2222
env:
2323
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24-
PERSONAL_ACCESS_TOKEN : ${{ secrets.ORG_TOKEN }}
2524
with:
2625
branch: 'cla-signatures'
2726
path-to-signatures: 'signatures/version1/cla.json'

foundry.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ optimism = "https://mainnet.optimism.io"
1616
polygon = "https://polygon-rpc.com"
1717
bnb = "https://bsc-dataseed.binance.org"
1818
avalanche = "https://api.avax.network/ext/bc/C/rpc"
19+
lens = "https://rpc.lens.xyz"
1920
sepolia = "https://ethereum-sepolia.publicnode.com"
2021

2122
# See more config options https://github.com/foundry-rs/foundry/tree/master/config

script/ValidatedAddress.sol

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ library ValidatedAddress {
2121
uint256 internal constant CHAINID_BSC = 56;
2222
uint256 internal constant CHAINID_AVALANCHE = 43114;
2323
uint256 internal constant CHAINID_OPTIMISM = 10;
24+
uint256 internal constant CHAINID_LENS = 232;
2425

2526
function cowSwapSettlement()
2627
internal
@@ -38,6 +39,7 @@ library ValidatedAddress {
3839
(chainId() == CHAINID_BSC) ||
3940
(chainId() == CHAINID_AVALANCHE) ||
4041
(chainId() == CHAINID_OPTIMISM) ||
42+
(chainId() == CHAINID_LENS) ||
4143
(chainId() == CHAINID_SEPOLIA),
4244
"Settlement contract not available on this chain"
4345
);
@@ -89,6 +91,9 @@ library ValidatedAddress {
8991
} else if (chainId() == CHAINID_OPTIMISM) {
9092
_wrappedNativeToken = 0x4200000000000000000000000000000000000006;
9193
require(eq(WithSymbol(_wrappedNativeToken).symbol(), "WETH"));
94+
} else if (chainId() == CHAINID_LENS) {
95+
_wrappedNativeToken = 0x6bDc36E20D267Ff0dd6097799f82e78907105e2F;
96+
require(eq(WithSymbol(_wrappedNativeToken).symbol(), "WGHO"));
9297
} else {
9398
revert("Wrapped native token not supported on this chain");
9499
}

0 commit comments

Comments
 (0)