mirror of
https://github.com/placeholder-soft/tokenbound.git
synced 2026-04-29 04:15:01 +08:00
testnet deployments
This commit is contained in:
22
script/DeployAccount.s.sol
Normal file
22
script/DeployAccount.s.sol
Normal 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();
|
||||
}
|
||||
}
|
||||
17
script/DeployGuardian.s.sol
Normal file
17
script/DeployGuardian.s.sol
Normal 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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user