Skip to content

Commit

Permalink
wip: add vault tests
Browse files Browse the repository at this point in the history
  • Loading branch information
1kresh committed Jul 1, 2024
1 parent 6e2d4d9 commit 6e57fe0
Show file tree
Hide file tree
Showing 5 changed files with 894 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/DelegatorFactory.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import {IVaultConfigurator} from "src/interfaces/IVaultConfigurator.sol";
import {INetworkRestakeDelegator} from "src/interfaces/delegator/INetworkRestakeDelegator.sol";
import {IBaseDelegator} from "src/interfaces/delegator/IBaseDelegator.sol";

contract VaultConfiguratorTest is Test {
contract DelegatorFactoryTest is Test {
address owner;
address alice;
uint256 alicePrivateKey;
Expand Down
2 changes: 1 addition & 1 deletion test/SlasherFactory.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import {INetworkRestakeDelegator} from "src/interfaces/delegator/INetworkRestake
import {IBaseDelegator} from "src/interfaces/delegator/IBaseDelegator.sol";
import {IVetoSlasher} from "src/interfaces/slasher/IVetoSlasher.sol";

contract VaultConfiguratorTest is Test {
contract SlasherFactoryTest is Test {
address owner;
address alice;
uint256 alicePrivateKey;
Expand Down
1 change: 1 addition & 0 deletions test/VaultConfigurator.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ contract VaultConfiguratorTest is Test {
slasher = Slasher(slasher_);

assertEq(vault.owner(), owner_);
assertEq(vault.collateral(), address(collateral));
assertEq(vault.delegator(), networkRestakeDelegator_);
assertEq(vault.slasher(), withSlasher ? slasher_ : address(0));
assertEq(vault.burner(), burner);
Expand Down
3 changes: 1 addition & 2 deletions test/VaultFactory.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,8 @@ import {VaultConfigurator} from "src/contracts/VaultConfigurator.sol";
import {IVaultConfigurator} from "src/interfaces/IVaultConfigurator.sol";
import {INetworkRestakeDelegator} from "src/interfaces/delegator/INetworkRestakeDelegator.sol";
import {IBaseDelegator} from "src/interfaces/delegator/IBaseDelegator.sol";
import {IVetoSlasher} from "src/interfaces/slasher/IVetoSlasher.sol";

contract VaultConfiguratorTest is Test {
contract VaultFactoryTest is Test {
address owner;
address alice;
uint256 alicePrivateKey;
Expand Down
Loading

0 comments on commit 6e57fe0

Please sign in to comment.