testnet deployments

This commit is contained in:
Jayden Windle
2023-04-13 15:26:06 -04:00
parent d0461dddf3
commit 0cd68b35df
4 changed files with 51 additions and 1 deletions

View File

@@ -0,0 +1,22 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.13;
import "forge-std/Script.sol";
import "../src/Account.sol";
contract DeployAccount is Script {
function run() external {
uint256 deployerPrivateKey = vm.envUint("TESTNET_ACCOUNT_DEPLOYER");
vm.startBroadcast(deployerPrivateKey);
new Account{
salt: 0x6551655165516551655165516551655165516551655165516551655165516551
}(
0xB0219b60f0535FB3B62eeEC51EC4C765d138Ac0A, // guardian
0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789 // entry point
);
vm.stopBroadcast();
}
}

View File

@@ -0,0 +1,17 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.13;
import "forge-std/Script.sol";
import "../src/AccountGuardian.sol";
contract DeployGuardian is Script {
function run() external {
uint256 deployerPrivateKey = vm.envUint("TESTNET_GUARDIAN_DEPLOYER");
vm.startBroadcast(deployerPrivateKey);
new AccountGuardian();
vm.stopBroadcast();
}
}