Skip to content

Commit

Permalink
Merge pull request #36 from symbioticfi/relative-paths-fix
Browse files Browse the repository at this point in the history
Add missing relative paths
  • Loading branch information
1kresh authored Sep 9, 2024
2 parents 70d30d8 + f7590b0 commit 8333f3e
Show file tree
Hide file tree
Showing 20 changed files with 57 additions and 57 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@symbioticfi/core",
"version": "1.0.0-devnet.4",
"version": "1.0.0-devnet.5",
"description": "Symbiotic is a shared security protocol enabling decentralized networks to control and customize their own multi-asset restaking implementation.",
"homepage": "https://symbiotic.fi/",
"bugs": "https://github.com/symbioticfi/core/issues",
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/delegator/IBaseDelegator.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import {IEntity} from "src/interfaces/common/IEntity.sol";
import {IEntity} from "../common/IEntity.sol";

interface IBaseDelegator is IEntity {
error AlreadySet();
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/slasher/IBaseSlasher.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import {IEntity} from "src/interfaces/common/IEntity.sol";
import {IEntity} from "../common/IEntity.sol";

interface IBaseSlasher is IEntity {
error NotNetworkMiddleware();
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/vault/IVault.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import {IMigratableEntity} from "src/interfaces/common/IMigratableEntity.sol";
import {IMigratableEntity} from "../common/IMigratableEntity.sol";
import {IVaultStorage} from "./IVaultStorage.sol";

interface IVault is IMigratableEntity, IVaultStorage {
Expand Down
2 changes: 1 addition & 1 deletion test/DelegatorFactory.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import {FullRestakeDelegator} from "../src/contracts/delegator/FullRestakeDelega
import {Slasher} from "../src/contracts/slasher/Slasher.sol";
import {VetoSlasher} from "../src/contracts/slasher/VetoSlasher.sol";

import {IVault} from "src/interfaces/vault/IVault.sol";
import {IVault} from "../src/interfaces/vault/IVault.sol";

import {Token} from "./mocks/Token.sol";
import {VaultConfigurator} from "../src/contracts/VaultConfigurator.sol";
Expand Down
6 changes: 3 additions & 3 deletions test/POCBase.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ import {FullRestakeDelegator} from "../src/contracts/delegator/FullRestakeDelega
import {Slasher} from "../src/contracts/slasher/Slasher.sol";
import {VetoSlasher} from "../src/contracts/slasher/VetoSlasher.sol";

import {IVault} from "src/interfaces/vault/IVault.sol";
import {IVault} from "../src/interfaces/vault/IVault.sol";

import {Token} from "test/mocks/Token.sol";
import {FeeOnTransferToken} from "test/mocks/FeeOnTransferToken.sol";
import {Token} from "./mocks/Token.sol";
import {FeeOnTransferToken} from "./mocks/FeeOnTransferToken.sol";
import {VaultConfigurator} from "../src/contracts/VaultConfigurator.sol";
import {IVaultConfigurator} from "../src/interfaces/IVaultConfigurator.sol";
import {INetworkRestakeDelegator} from "../src/interfaces/delegator/INetworkRestakeDelegator.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/SlasherFactory.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import {FullRestakeDelegator} from "../src/contracts/delegator/FullRestakeDelega
import {Slasher} from "../src/contracts/slasher/Slasher.sol";
import {VetoSlasher} from "../src/contracts/slasher/VetoSlasher.sol";

import {IVault} from "src/interfaces/vault/IVault.sol";
import {IVault} from "../src/interfaces/vault/IVault.sol";

import {Token} from "./mocks/Token.sol";
import {VaultConfigurator} from "../src/contracts/VaultConfigurator.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/VaultConfigurator.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import {FullRestakeDelegator} from "../src/contracts/delegator/FullRestakeDelega
import {Slasher} from "../src/contracts/slasher/Slasher.sol";
import {VetoSlasher} from "../src/contracts/slasher/VetoSlasher.sol";

import {IVault} from "src/interfaces/vault/IVault.sol";
import {IVault} from "../src/interfaces/vault/IVault.sol";

import {Token} from "./mocks/Token.sol";
import {VaultConfigurator} from "../src/contracts/VaultConfigurator.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/VaultFactory.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import {FullRestakeDelegator} from "../src/contracts/delegator/FullRestakeDelega
import {Slasher} from "../src/contracts/slasher/Slasher.sol";
import {VetoSlasher} from "../src/contracts/slasher/VetoSlasher.sol";

import {IVault} from "src/interfaces/vault/IVault.sol";
import {IVault} from "../src/interfaces/vault/IVault.sol";

import {Token} from "./mocks/Token.sol";
import {VaultConfigurator} from "../src/contracts/VaultConfigurator.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/common/Entity.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {IFactory} from "../../src/interfaces/common/IFactory.sol";

import {IEntity} from "../../src/interfaces/common/IEntity.sol";

import {SimpleEntity} from "test/mocks/SimpleEntity.sol";
import {SimpleEntity} from "../mocks/SimpleEntity.sol";

contract EntityTest is Test {
address owner;
Expand Down
4 changes: 2 additions & 2 deletions test/common/Factory.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import {IFactory} from "../../src/interfaces/common/IFactory.sol";

import {IEntity} from "../../src/interfaces/common/IEntity.sol";

import {SimpleEntity} from "test/mocks/SimpleEntity.sol";
import {FakeEntity} from "test/mocks/FakeEntity.sol";
import {SimpleEntity} from "../mocks/SimpleEntity.sol";
import {FakeEntity} from "../mocks/FakeEntity.sol";

contract FactoryTest is Test {
address owner;
Expand Down
10 changes: 5 additions & 5 deletions test/common/MigratableEntity.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ import {Test, console2} from "forge-std/Test.sol";

import {IRegistry} from "../../src/interfaces/common/IRegistry.sol";

import {MigratablesFactory} from "src/contracts/common/MigratablesFactory.sol";
import {IMigratablesFactory} from "src/interfaces/common/IMigratablesFactory.sol";
import {IMigratableEntityProxy} from "src/interfaces/common/IMigratableEntityProxy.sol";
import {MigratablesFactory} from "../../src/contracts/common/MigratablesFactory.sol";
import {IMigratablesFactory} from "../../src/interfaces/common/IMigratablesFactory.sol";
import {IMigratableEntityProxy} from "../../src/interfaces/common/IMigratableEntityProxy.sol";

import {IMigratableEntity} from "../../src/interfaces/common/IMigratableEntity.sol";

import {MigratableEntityProxy} from "../../src/contracts/common/MigratableEntityProxy.sol";

import {SimpleMigratableEntity} from "test/mocks/SimpleMigratableEntity.sol";
import {SimpleMigratableEntityV2} from "test/mocks/SimpleMigratableEntityV2.sol";
import {SimpleMigratableEntity} from "../mocks/SimpleMigratableEntity.sol";
import {SimpleMigratableEntityV2} from "../mocks/SimpleMigratableEntityV2.sol";

contract MigratableEntityTest is Test {
address owner;
Expand Down
4 changes: 2 additions & 2 deletions test/common/MigratableEntityProxy.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import {IMigratableEntity} from "../../src/interfaces/common/IMigratableEntity.s

import {MigratableEntityProxy} from "../../src/contracts/common/MigratableEntityProxy.sol";

import {SimpleMigratableEntity} from "test/mocks/SimpleMigratableEntity.sol";
import {SimpleMigratableEntityV2} from "test/mocks/SimpleMigratableEntityV2.sol";
import {SimpleMigratableEntity} from "../mocks/SimpleMigratableEntity.sol";
import {SimpleMigratableEntityV2} from "../mocks/SimpleMigratableEntityV2.sol";

contract MigratableEntityProxyTest is Test {
address owner;
Expand Down
4 changes: 2 additions & 2 deletions test/common/MigratablesFactory.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import {IRegistry} from "../../src/interfaces/common/IRegistry.sol";
import {MigratablesFactory} from "../../src/contracts/common/MigratablesFactory.sol";
import {IMigratablesFactory} from "../../src/interfaces/common/IMigratablesFactory.sol";

import {SimpleMigratableEntity} from "test/mocks/SimpleMigratableEntity.sol";
import {SimpleMigratableEntityV2} from "test/mocks/SimpleMigratableEntityV2.sol";
import {SimpleMigratableEntity} from "../mocks/SimpleMigratableEntity.sol";
import {SimpleMigratableEntityV2} from "../mocks/SimpleMigratableEntityV2.sol";

contract MigratablesFactoryTest is Test {
address owner;
Expand Down
2 changes: 1 addition & 1 deletion test/common/Registry.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ pragma solidity 0.8.25;

import {Test, console2} from "forge-std/Test.sol";

import {SimpleRegistry} from "test/mocks/SimpleRegistry.sol";
import {SimpleRegistry} from "../mocks/SimpleRegistry.sol";

contract FactoryTest is Test {
address owner;
Expand Down
18 changes: 9 additions & 9 deletions test/delegator/FullRestakeDelegator.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,19 @@ import {FullRestakeDelegator} from "../../src/contracts/delegator/FullRestakeDel
import {Slasher} from "../../src/contracts/slasher/Slasher.sol";
import {VetoSlasher} from "../../src/contracts/slasher/VetoSlasher.sol";

import {IVault} from "src/interfaces/vault/IVault.sol";
import {IVault} from "../../src/interfaces/vault/IVault.sol";

import {Token} from "test/mocks/Token.sol";
import {VaultConfigurator} from "src/contracts/VaultConfigurator.sol";
import {IVaultConfigurator} from "src/interfaces/IVaultConfigurator.sol";
import {INetworkRestakeDelegator} from "src/interfaces/delegator/INetworkRestakeDelegator.sol";
import {IFullRestakeDelegator} from "src/interfaces/delegator/IFullRestakeDelegator.sol";
import {IBaseDelegator} from "src/interfaces/delegator/IBaseDelegator.sol";
import {ISlasher} from "src/interfaces/slasher/ISlasher.sol";
import {Token} from "../mocks/Token.sol";
import {VaultConfigurator} from "../../src/contracts/VaultConfigurator.sol";
import {IVaultConfigurator} from "../../src/interfaces/IVaultConfigurator.sol";
import {INetworkRestakeDelegator} from "../../src/interfaces/delegator/INetworkRestakeDelegator.sol";
import {IFullRestakeDelegator} from "../../src/interfaces/delegator/IFullRestakeDelegator.sol";
import {IBaseDelegator} from "../../src/interfaces/delegator/IBaseDelegator.sol";
import {ISlasher} from "../../src/interfaces/slasher/ISlasher.sol";

import {IVaultStorage} from "../../src/interfaces/vault/IVaultStorage.sol";
import {Math} from "@openzeppelin/contracts/utils/math/Math.sol";
import {SimpleFullRestakeDelegatorHook} from "test/mocks/SimpleFullRestakeDelegatorHook.sol";
import {SimpleFullRestakeDelegatorHook} from "../mocks/SimpleFullRestakeDelegatorHook.sol";

import {BaseDelegatorHints, FullRestakeDelegatorHints} from "../../src/contracts/hints/DelegatorHints.sol";
import {OptInServiceHints} from "../../src/contracts/hints/OptInServiceHints.sol";
Expand Down
18 changes: 9 additions & 9 deletions test/delegator/NetworkRestakeDelegator.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,19 @@ import {FullRestakeDelegator} from "../../src/contracts/delegator/FullRestakeDel
import {Slasher} from "../../src/contracts/slasher/Slasher.sol";
import {VetoSlasher} from "../../src/contracts/slasher/VetoSlasher.sol";

import {IVault} from "src/interfaces/vault/IVault.sol";
import {IVault} from "../../src/interfaces/vault/IVault.sol";

import {Token} from "test/mocks/Token.sol";
import {VaultConfigurator} from "src/contracts/VaultConfigurator.sol";
import {IVaultConfigurator} from "src/interfaces/IVaultConfigurator.sol";
import {INetworkRestakeDelegator} from "src/interfaces/delegator/INetworkRestakeDelegator.sol";
import {IFullRestakeDelegator} from "src/interfaces/delegator/IFullRestakeDelegator.sol";
import {IBaseDelegator} from "src/interfaces/delegator/IBaseDelegator.sol";
import {ISlasher} from "src/interfaces/slasher/ISlasher.sol";
import {Token} from "../mocks/Token.sol";
import {VaultConfigurator} from "../../src/contracts/VaultConfigurator.sol";
import {IVaultConfigurator} from "../../src/interfaces/IVaultConfigurator.sol";
import {INetworkRestakeDelegator} from "../../src/interfaces/delegator/INetworkRestakeDelegator.sol";
import {IFullRestakeDelegator} from "../../src/interfaces/delegator/IFullRestakeDelegator.sol";
import {IBaseDelegator} from "../../src/interfaces/delegator/IBaseDelegator.sol";
import {ISlasher} from "../../src/interfaces/slasher/ISlasher.sol";

import {IVaultStorage} from "../../src/interfaces/vault/IVaultStorage.sol";
import {Math} from "@openzeppelin/contracts/utils/math/Math.sol";
import {SimpleNetworkRestakeDelegatorHook} from "test/mocks/SimpleNetworkRestakeDelegatorHook.sol";
import {SimpleNetworkRestakeDelegatorHook} from "../mocks/SimpleNetworkRestakeDelegatorHook.sol";

import {BaseDelegatorHints, NetworkRestakeDelegatorHints} from "../../src/contracts/hints/DelegatorHints.sol";
import {OptInServiceHints} from "../../src/contracts/hints/OptInServiceHints.sol";
Expand Down
4 changes: 2 additions & 2 deletions test/slasher/Slasher.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ import {FullRestakeDelegator} from "../../src/contracts/delegator/FullRestakeDel
import {Slasher} from "../../src/contracts/slasher/Slasher.sol";
import {VetoSlasher} from "../../src/contracts/slasher/VetoSlasher.sol";

import {IVault} from "src/interfaces/vault/IVault.sol";
import {IVault} from "../../src/interfaces/vault/IVault.sol";

import {Token} from "test/mocks/Token.sol";
import {Token} from "../mocks/Token.sol";
import {VaultConfigurator} from "../../src/contracts/VaultConfigurator.sol";
import {IVaultConfigurator} from "../../src/interfaces/IVaultConfigurator.sol";
import {INetworkRestakeDelegator} from "../../src/interfaces/delegator/INetworkRestakeDelegator.sol";
Expand Down
20 changes: 10 additions & 10 deletions test/slasher/VetoSlasher.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@ import {FullRestakeDelegator} from "../../src/contracts/delegator/FullRestakeDel
import {Slasher} from "../../src/contracts/slasher/Slasher.sol";
import {VetoSlasher} from "../../src/contracts/slasher/VetoSlasher.sol";

import {IVault} from "src/interfaces/vault/IVault.sol";

import {Token} from "test/mocks/Token.sol";
import {VaultConfigurator} from "src/contracts/VaultConfigurator.sol";
import {IVaultConfigurator} from "src/interfaces/IVaultConfigurator.sol";
import {INetworkRestakeDelegator} from "src/interfaces/delegator/INetworkRestakeDelegator.sol";
import {IFullRestakeDelegator} from "src/interfaces/delegator/IFullRestakeDelegator.sol";
import {IBaseDelegator} from "src/interfaces/delegator/IBaseDelegator.sol";
import {IMigratableEntityProxy} from "src/interfaces/common/IMigratableEntityProxy.sol";
import {IMigratableEntity} from "src/interfaces/common/IMigratableEntity.sol";
import {IVault} from "../../src/interfaces/vault/IVault.sol";

import {Token} from "../mocks/Token.sol";
import {VaultConfigurator} from "../../src/contracts/VaultConfigurator.sol";
import {IVaultConfigurator} from "../../src/interfaces/IVaultConfigurator.sol";
import {INetworkRestakeDelegator} from "../../src/interfaces/delegator/INetworkRestakeDelegator.sol";
import {IFullRestakeDelegator} from "../../src/interfaces/delegator/IFullRestakeDelegator.sol";
import {IBaseDelegator} from "../../src/interfaces/delegator/IBaseDelegator.sol";
import {IMigratableEntityProxy} from "../../src/interfaces/common/IMigratableEntityProxy.sol";
import {IMigratableEntity} from "../../src/interfaces/common/IMigratableEntity.sol";

import {IVaultStorage} from "../../src/interfaces/vault/IVaultStorage.sol";
import {IVetoSlasher} from "../../src/interfaces/slasher/IVetoSlasher.sol";
Expand Down
6 changes: 3 additions & 3 deletions test/vault/Vault.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ import {FullRestakeDelegator} from "../../src/contracts/delegator/FullRestakeDel
import {Slasher} from "../../src/contracts/slasher/Slasher.sol";
import {VetoSlasher} from "../../src/contracts/slasher/VetoSlasher.sol";

import {IVault} from "src/interfaces/vault/IVault.sol";
import {IVault} from "../../src/interfaces/vault/IVault.sol";

import {Token} from "test/mocks/Token.sol";
import {FeeOnTransferToken} from "test/mocks/FeeOnTransferToken.sol";
import {Token} from "../mocks/Token.sol";
import {FeeOnTransferToken} from "../mocks/FeeOnTransferToken.sol";
import {VaultConfigurator} from "../../src/contracts/VaultConfigurator.sol";
import {IVaultConfigurator} from "../../src/interfaces/IVaultConfigurator.sol";
import {INetworkRestakeDelegator} from "../../src/interfaces/delegator/INetworkRestakeDelegator.sol";
Expand Down

0 comments on commit 8333f3e

Please sign in to comment.