Skip to content

Commit

Permalink
forge fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrower95 committed Nov 12, 2024
1 parent e7aa8aa commit 1eb94f4
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 23 deletions.
12 changes: 2 additions & 10 deletions src/templates/EOADeployer.sol
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,10 @@ abstract contract EOADeployer is ZeusScript {
function _deploy() internal virtual returns (Deployment[] memory);

function singleton(address deployedTo, string memory name) internal pure returns (Deployment memory) {
return Deployment({
deployedTo: deployedTo,
name: name,
singleton: true
});
return Deployment({deployedTo: deployedTo, name: name, singleton: true});
}

function instance(address deployedTo, string memory name) internal pure returns (Deployment memory) {
return Deployment({
deployedTo: deployedTo,
name: name,
singleton: false
});
return Deployment({deployedTo: deployedTo, name: name, singleton: false});
}
}
5 changes: 1 addition & 4 deletions src/utils/MultisigCallUtils.sol
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,7 @@ library MultisigCallUtils {
returns (bytes memory)
{
return abi.encodeWithSelector(
IMultiSend.multiSend.selector,
encodeMultisendTxs(calls),
multiSendCallOnly,
timelock
IMultiSend.multiSend.selector, encodeMultisendTxs(calls), multiSendCallOnly, timelock
);
}
}
21 changes: 12 additions & 9 deletions src/utils/ZeusScript.sol
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ import {Script} from "forge-std/Script.sol";
abstract contract ZeusScript is Script {
using StringUtils for string;

enum EnvironmentVariableType{ INT_256, ADDRESS, STRING }
enum EnvironmentVariableType {
INT_256,
ADDRESS,
STRING
}

event ZeusEnvironmentUpdate(
string key,
EnvironmentVariableType internalType,
bytes value
);
event ZeusEnvironmentUpdate(string key, EnvironmentVariableType internalType, bytes value);

string internal constant addressPrefix = "ZEUS_DEPLOYED_";
string internal constant envPrefix = "ZEUS_ENV_";
Expand All @@ -23,8 +23,9 @@ abstract contract ZeusScript is Script {
*/
function zeusTest() public virtual;


/**** Environment manipulation - update variables in the current environment's configuration ******/
/**
* Environment manipulation - update variables in the current environment's configuration *****
*/
// NOTE: you do not need to use these for contract addresses, which are tracked and injected automatically.
// NOTE: do not use `.update()` during a vm.broadcast() segment.
function update(string memory key, string memory value) {
Expand All @@ -38,7 +39,9 @@ abstract contract ZeusScript is Script {
function update(string memory key, uint256 memory value) {
emit ZeusEnvironmentUpdate(key, EnvironmentVariableType.INT_256, abi.encode(value));
}
/************************************/
/**
*
*/

/**
* @notice Returns the address of a contract based on the provided key, querying the envvars injected by Zeus. This is typically the name of the contract.
Expand Down

0 comments on commit 1eb94f4

Please sign in to comment.