Skip to content

Commit 652d422

Browse files
authored
Add Sepoia addresses (#761)
1 parent 5207565 commit 652d422

File tree

5 files changed

+44
-2
lines changed

5 files changed

+44
-2
lines changed

contracts/zero-ex/CHANGELOG.json

+8
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
[
2+
{
3+
"version": "0.49.0",
4+
"changes": [
5+
{
6+
"note": "Allowlist Sepolia in AbstractBridgeAdapter"
7+
}
8+
]
9+
},
210
{
311
"version": "0.48.0",
412
"changes": [

contracts/zero-ex/contracts/src/transformers/bridges/AbstractBridgeAdapter.sol

+4-2
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,14 @@ abstract contract AbstractBridgeAdapter is IBridgeAdapter {
2323
assembly {
2424
chainId := chainid()
2525
}
26-
// Skip chain id validation on Ganache (1337), Anvil (31337), Goerli (5), Mumbai (80001), Base Goerli (84531)
26+
// Skip chain id validation on Ganache (1337), Anvil (31337), Goerli (5), Mumbai (80001), Base Goerli (84531),
27+
// Sepolia (11155111)
2728
bool skipValidation = (chainId == 1337 ||
2829
chainId == 31337 ||
2930
chainId == 5 ||
3031
chainId == 80001 ||
31-
chainId == 84531);
32+
chainId == 84531 ||
33+
chainId == 11155111);
3234

3335
if (chainId != expectedChainId && !skipValidation) {
3436
revert(string(abi.encodePacked(expectedChainName, "BridgeAdapter.constructor: wrong chain ID")));

packages/contract-addresses/CHANGELOG.json

+8
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
[
2+
{
3+
"version": "8.13.0",
4+
"changes": [
5+
{
6+
"note": "Add Sepolia addresses"
7+
}
8+
]
9+
},
210
{
311
"version": "8.12.0",
412
"changes": [

packages/contract-addresses/addresses.json

+23
Original file line numberDiff line numberDiff line change
@@ -274,5 +274,28 @@
274274
"fillQuoteTransformer": "0x2c46d57bb5af87a13a51dd5b62ba7d3bc7e12e9c",
275275
"positiveSlippageFeeTransformer": "0xf98a130d3b4029c70e6d93098cb82a003421341e"
276276
}
277+
},
278+
"11155111": {
279+
"zrxToken": "0x0000000000000000000000000000000000000000",
280+
"etherToken": "0xfff9976782d46cc05630d1f6ebab18b2324d6b14",
281+
"zeroExGovernor": "0x5c1f7772ce24d942b85e9b6576f7b5ef70686f5a",
282+
"zrxVault": "0x0000000000000000000000000000000000000000",
283+
"staking": "0x0000000000000000000000000000000000000000",
284+
"stakingProxy": "0x0000000000000000000000000000000000000000",
285+
"erc20BridgeProxy": "0x0000000000000000000000000000000000000000",
286+
"erc20BridgeSampler": "0x0000000000000000000000000000000000000000",
287+
"exchangeProxyGovernor": "0x5c1f7772ce24d942b85e9b6576f7b5ef70686f5a",
288+
"exchangeProxy": "0xdef1c0ded9bec7f1a1670819833240f027b25eff",
289+
"exchangeProxyTransformerDeployer": "0x58bca53ebba1aaf25f0edcd8dad6421872fe20b2",
290+
"exchangeProxyFlashWallet": "0xdb6f1920a889355780af7570773609bd8cb1f498",
291+
"exchangeProxyLiquidityProviderSandbox": "0x0000000000000000000000000000000000000000",
292+
"zrxTreasury": "0x0000000000000000000000000000000000000000",
293+
"transformers": {
294+
"wethTransformer": "0xf98a130d3b4029c70e6d93098cb82a003421341e",
295+
"payTakerTransformer": "0x44e0f3975e95387f3866dd7cab1f51050394a3d1",
296+
"affiliateFeeTransformer": "0x5cc22a0e06ea11097c612a962e63674b90e96099",
297+
"fillQuoteTransformer": "0x63186ea36e78ecbf0128e448362f1b81e9bf7412",
298+
"positiveSlippageFeeTransformer": "0x9e52d8b32d835206d09810c310593bcc77264066"
299+
}
277300
}
278301
}

packages/contract-addresses/src/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ export enum ChainId {
3737
Avalanche = 43114,
3838
Celo = 42220,
3939
PolygonMumbai = 80001,
40+
Sepolia = 11155111
4041
}
4142

4243
/**

0 commit comments

Comments
 (0)