Skip to content

Commit

Permalink
Latest deployment modifications
Browse files Browse the repository at this point in the history
  • Loading branch information
eloi010 committed Jun 20, 2023
1 parent f0c31b9 commit 9875821
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions script/deployAllChains.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ echo "------ StaticOpenfortDeploy ------ (Arbitrum Goerli testnet)"
forge script StaticOpenfortDeploy --rpc-url $ARBITRUM_GOERLI_RPC -vvvv --verify --broadcast --etherscan-api-key $ARBISCAN_API_KEY >> $LOG_FILE

echo "------ UpgradeableOpenfortDeploy ------ (Goerli)"
forge script UpgradeableOpenfortDeploy --rpc-url $GOERLI_RPC -vvvv --verify --broadcast --etherscan-api-key $GOERLI_API_KEY >> $LOG_FILE
forge script UpgradeableOpenfortDeploy --rpc-url $GOERLI_RPC -vvvv --verify --broadcast --slow --etherscan-api-key $GOERLI_API_KEY >> $LOG_FILE
echo "------ UpgradeableOpenfortDeploy ------ (Mumbai)"
forge script UpgradeableOpenfortDeploy --rpc-url $POLYGON_MUMBAI_RPC -vvvv --verify --broadcast --legacy --etherscan-api-key $POLYGON_MUMBAI_KEY >> $LOG_FILE
forge script UpgradeableOpenfortDeploy --rpc-url $POLYGON_MUMBAI_RPC -vvvv --verify --broadcast --slow --legacy --etherscan-api-key $POLYGON_MUMBAI_KEY >> $LOG_FILE
echo "------ UpgradeableOpenfortDeploy ------ (Fuji)"
forge script UpgradeableOpenfortDeploy --rpc-url $AVALANCHE_FUJI_RPC -vvvv --verify --broadcast --etherscan-api-key $FUJI_API_KEY >> $LOG_FILE
forge script UpgradeableOpenfortDeploy --rpc-url $AVALANCHE_FUJI_RPC -vvvv --verify --broadcast --slow --etherscan-api-key $FUJI_API_KEY >> $LOG_FILE
echo "------ UpgradeableOpenfortDeploy ------ (BSC testnet)"
forge script UpgradeableOpenfortDeploy --rpc-url $BSC_TESTNET_RPC -vvvv --verify --broadcast --etherscan-api-key $BSCSCAN_TESTNET_API_KEY >> $LOG_FILE
forge script UpgradeableOpenfortDeploy --rpc-url $BSC_TESTNET_RPC -vvvv --verify --broadcast --slow --etherscan-api-key $BSCSCAN_TESTNET_API_KEY >> $LOG_FILE
echo "------ UpgradeableOpenfortDeploy ------ (Arbitrum Goerli testnet)"
forge script UpgradeableOpenfortDeploy --rpc-url $ARBITRUM_GOERLI_RPC -vvvv --verify --broadcast --etherscan-api-key $ARBISCAN_API_KEY >> $LOG_FILE
forge script UpgradeableOpenfortDeploy --rpc-url $ARBITRUM_GOERLI_RPC -vvvv --verify --broadcast --slow -g 200 --etherscan-api-key $ARBISCAN_API_KEY >> $LOG_FILE

echo "------ ManagedOpenfortDeploy ------ (Goerli)"
forge script ManagedOpenfortDeploy --rpc-url $GOERLI_RPC -vvvv --verify --broadcast --etherscan-api-key $GOERLI_API_KEY >> $LOG_FILE
Expand Down
12 changes: 6 additions & 6 deletions script/deployUpgradeableAccounts.sol
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ contract UpgradeableOpenfortDeploy is Script {

UpgradeableOpenfortFactory upgradeableOpenfortFactory =
new UpgradeableOpenfortFactory{salt: versionSalt}(address(entryPoint), address(upgradeableOpenfortAccount));
address account1 = upgradeableOpenfortFactory.accountImplementation();
// address account1 = upgradeableOpenfortFactory.accountImplementation();

// The first call should create a new account, while the second will just return the corresponding account address
address account2 = upgradeableOpenfortFactory.createAccountWithNonce(deployAddress, "1");
console.log(
"Factory at address %s has created an account at address %s", address(upgradeableOpenfortFactory), account2
);
// address account2 = upgradeableOpenfortFactory.createAccountWithNonce(deployAddress, "1");
// console.log(
// "Factory at address %s has created an account at address %s", address(upgradeableOpenfortFactory), account2
// );

assert(account1 != account2);
// assert(account1 != account2);
// address account3 = upgradeableOpenfortFactory.createAccountWithNonce(deployAddress, 3);
// console.log(
// "Factory at address %s has created an account at address %s", address(upgradeableOpenfortFactory), account3
Expand Down

0 comments on commit 9875821

Please sign in to comment.