Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged

Hoodi #103

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

**Symbiotic is a shared security protocol enabling decentralized networks to control and customize their own multi-asset restaking implementation.**

[![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/symbioticfi/core)

Symbiotic core consists of:

- **Collateral**: a new type of asset that allows stakeholders to hold onto their funds and earn yield from them without needing to lock these funds in a direct manner or convert them to another type of asset.
Expand Down
2 changes: 1 addition & 1 deletion out/DelegatorFactory.sol/DelegatorFactory.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion out/DelegatorHints.sol/BaseDelegatorHints.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion out/DelegatorHints.sol/FullRestakeDelegatorHints.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion out/DelegatorHints.sol/NetworkRestakeDelegatorHints.json

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion out/FullRestakeDelegator.sol/FullRestakeDelegator.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion out/MetadataService.sol/MetadataService.json

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion out/NetworkRegistry.sol/NetworkRegistry.json

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion out/OperatorRegistry.sol/OperatorRegistry.json

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion out/OptInService.sol/OptInService.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion out/OptInServiceHints.sol/OptInServiceHints.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion out/Slasher.sol/Slasher.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion out/SlasherFactory.sol/SlasherFactory.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion out/SlasherHints.sol/BaseSlasherHints.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion out/SlasherHints.sol/SlasherHints.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion out/SlasherHints.sol/VetoSlasherHints.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion out/Vault.sol/Vault.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion out/VaultConfigurator.sol/VaultConfigurator.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion out/VaultFactory.sol/VaultFactory.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion out/VaultHints.sol/VaultHints.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion out/VaultTokenized.sol/VaultTokenized.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion out/VetoSlasher.sol/VetoSlasher.json

Large diffs are not rendered by default.

26 changes: 24 additions & 2 deletions test/integration/SymbioticCoreConstants.sol
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,21 @@ library SymbioticCoreConstants {
operatorNetworkOptInService: ISymbioticOptInService(0x58973d16FFA900D11fC22e5e2B6840d9f7e13401),
vaultConfigurator: ISymbioticVaultConfigurator(0xD2191FE92987171691d552C219b8caEf186eb9cA)
});
} else if (block.chainid == 560_048) {
// hoodi
return Core({
vaultFactory: ISymbioticVaultFactory(0x407A039D94948484D356eFB765b3c74382A050B4),
delegatorFactory: ISymbioticDelegatorFactory(0x890CA3f95E0f40a79885B7400926544B2214B03f),
slasherFactory: ISymbioticSlasherFactory(0xbf34bf75bb779c383267736c53a4ae86ac7bB299),
networkRegistry: ISymbioticNetworkRegistry(0x7d03b7343BF8d5cEC7C0C27ecE084a20113D15C9),
networkMetadataService: ISymbioticMetadataService(0x0F7E58Cc4eA615E8B8BEB080dF8B8FDB63C21496),
networkMiddlewareService: ISymbioticNetworkMiddlewareService(0x62a1ddfD86b4c1636759d9286D3A0EC722D086e3),
operatorRegistry: ISymbioticOperatorRegistry(0x6F75a4ffF97326A00e52662d82EA4FdE86a2C548),
operatorMetadataService: ISymbioticMetadataService(0x0999048aB8eeAfa053bF8581D4Aa451ab45755c9),
operatorVaultOptInService: ISymbioticOptInService(0x95CC0a052ae33941877c9619835A233D21D57351),
operatorNetworkOptInService: ISymbioticOptInService(0x58973d16FFA900D11fC22e5e2B6840d9f7e13401),
vaultConfigurator: ISymbioticVaultConfigurator(0x94c344E816A53D07fC4c7F4a18f82b6Da87CFc8f)
});
} else {
revert("SymbioticCoreConstants.core(): chainid not supported");
}
Expand Down Expand Up @@ -175,6 +190,9 @@ library SymbioticCoreConstants {
} else if (block.chainid == 11_155_111) {
// sepolia
return 0xB82381A3fBD3FaFA77B3a7bE693342618240067b;
} else if (block.chainid == 560_048) {
// hoodi
return 0x7E99eE3C66636DE415D2d7C880938F2f40f94De4;
} else {
revert("SymbioticCoreConstants.wstETH(): chainid not supported");
}
Expand Down Expand Up @@ -205,6 +223,9 @@ library SymbioticCoreConstants {
} else if (block.chainid == 17_000) {
// holesky
return 0x7322c24752f79c05FFD1E2a6FCB97020C1C264F1;
} else if (block.chainid == 560_048) {
// hoodi
return 0x7322c24752f79c05FFD1E2a6FCB97020C1C264F1;
} else {
revert("SymbioticCoreConstants.rETH(): chainid not supported");
}
Expand Down Expand Up @@ -364,7 +385,8 @@ library SymbioticCoreConstants {
}

function wstETHSupported() internal view returns (bool) {
return (block.chainid == 1 || block.chainid == 17_000 || block.chainid == 11_155_111);
return
(block.chainid == 1 || block.chainid == 17_000 || block.chainid == 11_155_111 || block.chainid == 560_048);
}

function cbETHSupported() internal view returns (bool) {
Expand All @@ -376,7 +398,7 @@ library SymbioticCoreConstants {
}

function rETHSupported() internal view returns (bool) {
return (block.chainid == 1 || block.chainid == 17_000);
return (block.chainid == 1 || block.chainid == 17_000 || block.chainid == 560_048);
}

function mETHSupported() internal view returns (bool) {
Expand Down