generated from foundry-rs/forge-template
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update packages, refactor scripts, update foundry
- Loading branch information
Showing
21 changed files
with
263 additions
and
149 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule eigenlayer-contracts
updated
209 files
Submodule forge-std
updated
18 files
+1 −1 | package.json | |
+1 −1 | src/Script.sol | |
+18 −3 | src/StdChains.sol | |
+14 −2 | src/StdCheats.sol | |
+15 −0 | src/StdInvariant.sol | |
+18 −14 | src/StdJson.sol | |
+50 −3 | src/StdStorage.sol | |
+1 −2 | src/Test.sol | |
+475 −243 | src/Vm.sol | |
+93 −77 | test/StdAssertions.t.sol | |
+22 −21 | test/StdChains.t.sol | |
+52 −44 | test/StdCheats.t.sol | |
+10 −10 | test/StdError.t.sol | |
+10 −10 | test/StdMath.t.sol | |
+58 −36 | test/StdStorage.t.sol | |
+4 −4 | test/StdStyle.t.sol | |
+28 −28 | test/StdUtils.t.sol | |
+15 −0 | test/Vm.t.sol |
Submodule openzeppelin-contracts
updated
76 files
Submodule openzeppelin-contracts-upgradeable
updated
77 files
Submodule safe-contracts
updated
from bf943f to 5aad84
Submodule solady
updated
80 files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// SPDX-License-Identifier: GPL-3.0 | ||
pragma solidity >=0.8.0 <0.9.0; | ||
|
||
import { BaseScript } from "script/BaseScript.s.sol"; | ||
import { DeployGuardians } from "script/DeployGuardians.s.sol"; | ||
import { DeployPuffer } from "script/DeployPuffer.s.sol"; | ||
import { SetupAccess } from "script/SetupAccess.s.sol"; | ||
import { GuardiansDeployment, PufferDeployment } from "./DeploymentStructs.sol"; | ||
|
||
contract DeployEverything is BaseScript { | ||
function run(address[] calldata guardians, uint256 threshold) public returns (PufferDeployment memory) { | ||
// Deploy guardians | ||
GuardiansDeployment memory guardiansDeployment = new DeployGuardians().run(guardians, threshold, ""); | ||
|
||
PufferDeployment memory pufferDeployment = new DeployPuffer().run(guardiansDeployment); | ||
|
||
address DAO = makeAddr("DAO"); | ||
|
||
new SetupAccess().run(pufferDeployment, DAO); | ||
|
||
return pufferDeployment; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// SPDX-License-Identifier: GPL-3.0 | ||
pragma solidity >=0.8.0 <0.9.0; | ||
|
||
/** | ||
* @notice Guardians deployment struct | ||
*/ | ||
struct GuardiansDeployment { | ||
address guardians; | ||
address accessManager; | ||
address guardianModule; | ||
address safeProxyFactory; | ||
address safeImplementation; | ||
address enclaveVerifier; | ||
address pauser; | ||
} | ||
|
||
/** | ||
* @notice PufferDeployment | ||
*/ | ||
struct PufferDeployment { | ||
address pufferProtocolImplementation; | ||
address noRestakingStrategy; | ||
address pufferPool; | ||
address withdrawalPool; | ||
address pufferProtocol; | ||
address guardianModule; | ||
address guardians; | ||
address accessManager; | ||
address enclaveVerifier; | ||
address pauser; | ||
address beacon; // Beacon for Puffer startegies | ||
} |
Oops, something went wrong.