Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: deploy router plus staging #650

Merged
merged 1 commit into from
Nov 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@
"ERC5115Form": "0x93f5fD75460aC5F0686eBfE22e556F1129F504B0",
"OneInchValidator": "0x480140a26c3eb10F0F17e56495CE588320f45Cfe",
"ERC5115To4626WrapperFactory": "0x14Bc2728DaE89FE7c828833a186DdC5E9AE439C3",
"SuperformRouterPlus": "0x12DCd933886D2Dd2436DDF3E52506872f90f2793",
"SuperformRouterPlusAsync": "0xE3b345E14d063ec58f2A196fa2554a325464F65E"
"SuperformRouterPlus": "0x82D3EF5e1005559fc6D577a730Bb201De1F7Cc6d",
"SuperformRouterPlusAsync": "0x47aa92F7bb7c018046079BDaA94E5618cbCe151f"
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@
"ERC5115Form": "0x6aA92De361938B0A062E74e068a2028778F17852",
"OneInchValidator": "0x16e9f8549c2b6a026dc2706d746beA76CeFF4098",
"ERC5115To4626WrapperFactory": "0x0df3d7D6daE058667e49C6b85F7b92458Ab06836",
"SuperformRouterPlus": "0x08a3D4F3113D449Bdea59C95cb5F7093175EaFfe",
"SuperformRouterPlusAsync": "0x43C3540828510C0f9A9BEf96F3ac810d7640FEC7"
"SuperformRouterPlus": "0x5223a22BB4EecE74ac4f258cf0a4977eaEB0166A",
"SuperformRouterPlusAsync": "0x4A4a0042e485CBE61ac4BC495Fab5Ca516040e18"
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@
"ERC5115Form": "0x93f5fD75460aC5F0686eBfE22e556F1129F504B0",
"OneInchValidator": "0x480140a26c3eb10F0F17e56495CE588320f45Cfe",
"ERC5115To4626WrapperFactory": "0x14Bc2728DaE89FE7c828833a186DdC5E9AE439C3",
"SuperformRouterPlus": "0x12DCd933886D2Dd2436DDF3E52506872f90f2793",
"SuperformRouterPlusAsync": "0xE3b345E14d063ec58f2A196fa2554a325464F65E"
"SuperformRouterPlus": "0x82D3EF5e1005559fc6D577a730Bb201De1F7Cc6d",
"SuperformRouterPlusAsync": "0x47aa92F7bb7c018046079BDaA94E5618cbCe151f"
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@
"ERC5115Form": "0x93f5fD75460aC5F0686eBfE22e556F1129F504B0",
"OneInchValidator": "0x480140a26c3eb10F0F17e56495CE588320f45Cfe",
"ERC5115To4626WrapperFactory": "0x14Bc2728DaE89FE7c828833a186DdC5E9AE439C3",
"SuperformRouterPlus": "0x12DCd933886D2Dd2436DDF3E52506872f90f2793",
"SuperformRouterPlusAsync": "0xE3b345E14d063ec58f2A196fa2554a325464F65E"
"SuperformRouterPlus": "0x82D3EF5e1005559fc6D577a730Bb201De1F7Cc6d",
"SuperformRouterPlusAsync": "0x47aa92F7bb7c018046079BDaA94E5618cbCe151f"
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@
"VaultClaimer": "0xf1930eD240cF9c4F1840aDB689E5d231687922C5",
"WormholeARImplementation": "0x0000000000000000000000000000000000000000",
"WormholeSRImplementation": "0x0000000000000000000000000000000000000000",
"SuperformRouterPlus": "0x12DCd933886D2Dd2436DDF3E52506872f90f2793",
"SuperformRouterPlusAsync": "0xE3b345E14d063ec58f2A196fa2554a325464F65E"
"SuperformRouterPlus": "0x82D3EF5e1005559fc6D577a730Bb201De1F7Cc6d",
"SuperformRouterPlusAsync": "0x47aa92F7bb7c018046079BDaA94E5618cbCe151f"
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@
"VaultClaimer": "0xf1930eD240cF9c4F1840aDB689E5d231687922C5",
"WormholeARImplementation": "0x71ec658F19AcF74D258c55A025ADC534c34EcaDA",
"WormholeSRImplementation": "0x44b451Ca87267a62A0C853ECFbaaC1C3E528a82C",
"SuperformRouterPlus": "0x12DCd933886D2Dd2436DDF3E52506872f90f2793",
"SuperformRouterPlusAsync": "0xE3b345E14d063ec58f2A196fa2554a325464F65E"
"SuperformRouterPlus": "0x82D3EF5e1005559fc6D577a730Bb201De1F7Cc6d",
"SuperformRouterPlusAsync": "0x47aa92F7bb7c018046079BDaA94E5618cbCe151f"
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@
"ERC5115Form": "0x93f5fD75460aC5F0686eBfE22e556F1129F504B0",
"OneInchValidator": "0x480140a26c3eb10F0F17e56495CE588320f45Cfe",
"ERC5115To4626WrapperFactory": "0x14Bc2728DaE89FE7c828833a186DdC5E9AE439C3",
"SuperformRouterPlus": "0x12DCd933886D2Dd2436DDF3E52506872f90f2793",
"SuperformRouterPlusAsync": "0xE3b345E14d063ec58f2A196fa2554a325464F65E"
"SuperformRouterPlus": "0x82D3EF5e1005559fc6D577a730Bb201De1F7Cc6d",
"SuperformRouterPlusAsync": "0x47aa92F7bb7c018046079BDaA94E5618cbCe151f"
}
4 changes: 4 additions & 0 deletions script/forge-scripts/misc/Abstract.Deploy.RouterPlus.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ abstract contract AbstractDeployRouterPlus is EnvironmentUtils {
SuperRegistry(superRegistry).setAddress(
keccak256("SUPERFORM_ROUTER_PLUS_ASYNC"), superformRouterPlusAsync, vars.chainId
);

/// @dev below part is already done
/*
SuperRegistry(superRegistry).setAddress(
keccak256("ROUTER_PLUS_PROCESSOR_ROLE"), ROUTER_PLUS_PROCESSOR, vars.chainId
);
Expand All @@ -63,6 +66,7 @@ abstract contract AbstractDeployRouterPlus is EnvironmentUtils {

vars.superRBACC.setRoleAdmin(keccak256("ROUTER_PLUS_PROCESSOR_ROLE"), vars.superRBACC.PROTOCOL_ADMIN_ROLE());
vars.superRBACC.grantRole(keccak256("ROUTER_PLUS_PROCESSOR_ROLE"), ROUTER_PLUS_PROCESSOR);
*/

vm.stopBroadcast();

Expand Down
6 changes: 4 additions & 2 deletions script/utils/misc/run_script_mainnet_staging_routerplus.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export BLAST_RPC_URL=$(op read op://5ylebqljbh3x6zomdxi3qd7tsa/BLAST_RPC_URL/cre

# Run the script
echo Deploying Router Plus and Router Plus Async: ...
<<c
FOUNDRY_PROFILE=production forge script script/forge-scripts/misc/Mainnet.Deploy.SuperformRouterPlus.s.sol:MainnetDeployRouterPlus --sig "deployRouterPlus(uint256,uint256,uint256)" 1 0 0 --rpc-url $BSC_RPC_URL --slow --broadcast --account default --sender 0x48aB8AdF869Ba9902Ad483FB1Ca2eFDAb6eabe92
wait

Expand All @@ -31,10 +32,10 @@ wait

FOUNDRY_PROFILE=production forge script script/forge-scripts/misc/Mainnet.Deploy.SuperformRouterPlus.s.sol:MainnetDeployRouterPlus --sig "deployRouterPlus(uint256,uint256,uint256)" 1 5 0 --rpc-url $LINEA_RPC_URL --slow --broadcast --account default --sender 0x48aB8AdF869Ba9902Ad483FB1Ca2eFDAb6eabe92
wait

c
FOUNDRY_PROFILE=production forge script script/forge-scripts/misc/Mainnet.Deploy.SuperformRouterPlus.s.sol:MainnetDeployRouterPlus --sig "deployRouterPlus(uint256,uint256,uint256)" 1 6 0 --rpc-url $BLAST_RPC_URL --slow --broadcast --account default --sender 0x48aB8AdF869Ba9902Ad483FB1Ca2eFDAb6eabe92
wait

<<c
FOUNDRY_PROFILE=production forge script script/forge-scripts/misc/Mainnet.Deploy.SuperformRouterPlus.s.sol:MainnetDeployRouterPlus --sig "configureRouterPlusProcessor(uint256,uint256,uint256)" 1 0 0 --rpc-url $BSC_RPC_URL --slow --broadcast --account default --sender 0x48aB8AdF869Ba9902Ad483FB1Ca2eFDAb6eabe92
wait

Expand All @@ -55,3 +56,4 @@ wait

FOUNDRY_PROFILE=production forge script script/forge-scripts/misc/Mainnet.Deploy.SuperformRouterPlus.s.sol:MainnetDeployRouterPlus --sig "configureRouterPlusProcessor(uint256,uint256,uint256)" 1 6 0 --rpc-url $BLAST_RPC_URL --slow --broadcast --account default --sender 0x48aB8AdF869Ba9902Ad483FB1Ca2eFDAb6eabe92
wait
c