Skip to content

Commit

Permalink
Merge pull request #2 from yieldnest/feature/adds-bsc-testnet
Browse files Browse the repository at this point in the history
  • Loading branch information
xhad authored Sep 4, 2024
2 parents a0bccc0 + 7cd95e8 commit 03ca185
Show file tree
Hide file tree
Showing 5 changed files with 270 additions and 675 deletions.
250 changes: 250 additions & 0 deletions broadcast/Deploy.s.sol/97/run-latest.json

Large diffs are not rendered by default.

336 changes: 0 additions & 336 deletions broadcast/DeployVaultFactory.sol/17000/run-1724670724.json

This file was deleted.

336 changes: 0 additions & 336 deletions broadcast/DeployVaultFactory.sol/17000/run-latest.json

This file was deleted.

14 changes: 14 additions & 0 deletions script/Actors.sol
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,17 @@ contract HoleskyActors is IActors {

address public constant KERNEL_VAULT = address(420);
}

contract ChapelActors is IActors {
address public constant ADMIN = 0x0c099101d43e9094E4ae9bC2FC38f8b9875c23c5;
address public constant OPERATOR = 0x0c099101d43e9094E4ae9bC2FC38f8b9875c23c5;
address public constant UNAUTHORIZED = address(0);

address public constant PROPOSER_1 = 0x0c099101d43e9094E4ae9bC2FC38f8b9875c23c5;
address public constant PROPOSER_2 = 0x0c099101d43e9094E4ae9bC2FC38f8b9875c23c5;

address public constant EXECUTOR_1 = 0x0c099101d43e9094E4ae9bC2FC38f8b9875c23c5;
address public constant EXECUTOR_2 = 0x0c099101d43e9094E4ae9bC2FC38f8b9875c23c5;

address public constant KERNEL_VAULT = address(420);
}
9 changes: 6 additions & 3 deletions script/Deploy.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ pragma solidity ^0.8.24;
import "lib/forge-std/src/Script.sol";

import {VaultFactory} from "src/VaultFactory.sol";
import {AnvilActors, HoleskyActors, IActors} from "script/Actors.sol";
import {AnvilActors, HoleskyActors, ChapelActors, IActors} from "script/Actors.sol";
import {SingleVault} from "src/SingleVault.sol";

contract DeployVaultFactory is Script {
Expand All @@ -23,8 +23,11 @@ contract DeployVaultFactory is Script {
deployVaultFactory(actors, minDelay);
}

if (block.chainid == 1) {
// TODO
if (block.chainid == 97) {
vm.startBroadcast();
ChapelActors actors = new ChapelActors();
uint256 minDelay = 10; // seconds
deployVaultFactory(actors, minDelay);
}
}

Expand Down

0 comments on commit 03ca185

Please sign in to comment.