Skip to content

Commit

Permalink
Merge pull request #24 from Hats-Protocol:deploy/mainnet
Browse files Browse the repository at this point in the history
deploy 1.2-beta to remaining networks
  • Loading branch information
spengrah authored Oct 17, 2023
2 parents 016d4ee + 6b8106e commit f6a8413
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
2 changes: 2 additions & 0 deletions foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ src = 'src'
out = 'out'
libs = ['lib']
optimizer_runs = 1_000_000
# the following setting ensures that deterministically deployed contracts will always be to the same address
bytecode_hash = "none"
gas_reports = ["*"]
auto_detect_solc = false
solc = "0.8.17"
Expand Down
12 changes: 8 additions & 4 deletions script/HatsSignerGateFactory.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ contract DeployHatsSignerGateFactory is Script {

/// ===========================================
/// @dev deployment params to be set manually
string public version = "1.1-beta";
string public version = "1.2-beta";
bytes32 public SALT = bytes32(abi.encode(0x4a75)); // ~ H(4) A(a) T(7) S(5)

/// @dev set to true to deploy singletons, false to use existing deployments below
bool public deploySingletones = false;
bool public deploySingletones = true;
HatsSignerGate public hsgSingleton = HatsSignerGate(0x844b3c7781338D3308Eb8D64727033893fcE1432);
MultiHatsSignerGate public mhsgSingleton = MultiHatsSignerGate(0xca9d698Adb4052Ac7751019D69582950B1E42b43);
/// ===========================================
Expand Down Expand Up @@ -75,13 +75,17 @@ contract DeployHatsSignerGateFactory is Script {
version
);

vm.stopBroadcast();

console.log("factory address", address(factory));
console.log("hsg address", address(hsgSingleton));
console.log("mhsg address", address(mhsgSingleton));

// uncomment to check if its working correctly when simulating
// (address hsg, address safe) = factory.deployHatsSignerGateAndSafe(1, 2, 3, 4, 5);
// GnosisSafe _safe = GnosisSafe(payable(safe));
// console2.log("safe threshold", _safe.getThreshold());
// console2.log("hsg is module", _safe.isModuleEnabled(hsg));

vm.stopBroadcast();
}

// // simulation
Expand Down

0 comments on commit f6a8413

Please sign in to comment.