Skip to content

Commit 526f7ac

Browse files
authored
Merge pull request #88 from symbioticfi/integration-mainnet
Add mainnet to integration tooling
2 parents 3b6add2 + f92e05f commit 526f7ac

File tree

1 file changed

+32
-2
lines changed

1 file changed

+32
-2
lines changed

test/integration/SymbioticCoreConstants.sol

Lines changed: 32 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,19 @@ library SymbioticCoreConstants {
2525
function core() internal view returns (Core memory) {
2626
if (block.chainid == 1) {
2727
// mainnet
28-
revert("SymbioticCoreConstants.core(): mainnet not supported yet");
28+
return Core({
29+
vaultFactory: ISymbioticVaultFactory(0xAEb6bdd95c502390db8f52c8909F703E9Af6a346),
30+
delegatorFactory: ISymbioticDelegatorFactory(0x985Ed57AF9D475f1d83c1c1c8826A0E5A34E8C7B),
31+
slasherFactory: ISymbioticSlasherFactory(0x685c2eD7D59814d2a597409058Ee7a92F21e48Fd),
32+
networkRegistry: ISymbioticNetworkRegistry(0xC773b1011461e7314CF05f97d95aa8e92C1Fd8aA),
33+
networkMetadataService: ISymbioticMetadataService(address(0)),
34+
networkMiddlewareService: ISymbioticNetworkMiddlewareService(0xD7dC9B366c027743D90761F71858BCa83C6899Ad),
35+
operatorRegistry: ISymbioticOperatorRegistry(0xAd817a6Bc954F678451A71363f04150FDD81Af9F),
36+
operatorMetadataService: ISymbioticMetadataService(address(0)),
37+
operatorVaultOptInService: ISymbioticOptInService(0xb361894bC06cbBA7Ea8098BF0e32EB1906A5F891),
38+
operatorNetworkOptInService: ISymbioticOptInService(0x7133415b33B438843D581013f98A08704316633c),
39+
vaultConfigurator: ISymbioticVaultConfigurator(0x29300b1d3150B4E2b12fE80BE72f365E200441EC)
40+
});
2941
} else if (block.chainid == 17_000) {
3042
// holesky
3143
return Core({
@@ -100,6 +112,8 @@ library SymbioticCoreConstants {
100112
return LBTC();
101113
} else if (symbol.equal("SWELL")) {
102114
return SWELL();
115+
} else if (symbol.equal("MANTA")) {
116+
return MANTA();
103117
} else {
104118
revert("SymbioticCoreConstants.token(): symbol not supported");
105119
}
@@ -144,6 +158,8 @@ library SymbioticCoreConstants {
144158
return LBTCSupported();
145159
} else if (symbol.equal("SWELL")) {
146160
return SWELLSupported();
161+
} else if (symbol.equal("MANTA")) {
162+
return MANTASupported();
147163
} else {
148164
revert("SymbioticCoreConstants.tokenSupported(): symbol not supported");
149165
}
@@ -338,6 +354,15 @@ library SymbioticCoreConstants {
338354
}
339355
}
340356

357+
function MANTA() internal view returns (address) {
358+
if (block.chainid == 1) {
359+
// mainnet
360+
return 0x95CeF13441Be50d20cA4558CC0a27B601aC544E5;
361+
} else {
362+
revert("SymbioticCoreConstants.MANTA(): chainid not supported");
363+
}
364+
}
365+
341366
function wstETHSupported() internal view returns (bool) {
342367
return (block.chainid == 1 || block.chainid == 17_000 || block.chainid == 11_155_111);
343368
}
@@ -410,8 +435,12 @@ library SymbioticCoreConstants {
410435
return block.chainid == 1;
411436
}
412437

438+
function MANTASupported() internal view returns (bool) {
439+
return block.chainid == 1;
440+
}
441+
413442
function allTokens() internal view returns (string[] memory result) {
414-
result = new string[](18);
443+
result = new string[](19);
415444
result[0] = "wstETH";
416445
result[1] = "cbETH";
417446
result[2] = "wBETH";
@@ -430,6 +459,7 @@ library SymbioticCoreConstants {
430459
result[15] = "FXS";
431460
result[16] = "LBTC";
432461
result[17] = "SWELL";
462+
result[18] = "MANTA";
433463
}
434464

435465
function supportedTokens() internal view returns (string[] memory result) {

0 commit comments

Comments
 (0)