From 92687b8f3f3f6a214e9c23615f333998d9dcd30d Mon Sep 17 00:00:00 2001 From: Goran Vladika Date: Mon, 7 Oct 2024 15:34:42 +0200 Subject: [PATCH] Update file path and some comments --- .../setCacheManager/DeployAddWasmCacheManagerAction.s.sol | 4 ++-- scripts/foundry/stylus/setCacheManager/README.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/foundry/stylus/setCacheManager/DeployAddWasmCacheManagerAction.s.sol b/scripts/foundry/stylus/setCacheManager/DeployAddWasmCacheManagerAction.s.sol index e5d5c89e..2f46a597 100644 --- a/scripts/foundry/stylus/setCacheManager/DeployAddWasmCacheManagerAction.s.sol +++ b/scripts/foundry/stylus/setCacheManager/DeployAddWasmCacheManagerAction.s.sol @@ -11,7 +11,7 @@ interface ICacheManager { /** * @title DeployAddWasmCacheManagerActionScript - * @notice This script deploys action that's used to add pre-deployed wasm cache manager on a child chain. + * @notice This script deploys CacheManager and then deploys action that's used to add cache manager on a child chain. */ contract DeployAddWasmCacheManagerActionScript is DeploymentHelpersScript { // https://github.com/OffchainLabs/nitro/releases/tag/consensus-v32 @@ -22,7 +22,7 @@ contract DeployAddWasmCacheManagerActionScript is DeploymentHelpersScript { // deploy CacheManger behind proxy address cacheManagerLogic = deployBytecodeFromJSON( - "/node_modules/@arbitrum/nitro-contracts-2.0.0/build/contracts/src/chain/CacheManager.sol/CacheManager.json" + "/node_modules/@arbitrum/nitro-contracts-2.1.0/build/contracts/src/chain/CacheManager.sol/CacheManager.json" ); address cacheManagerProxy = address( new TransparentUpgradeableProxy(cacheManagerLogic, vm.envAddress("CACHE_MANAGER_PROXY_ADMIN_ADDRESS"), "") diff --git a/scripts/foundry/stylus/setCacheManager/README.md b/scripts/foundry/stylus/setCacheManager/README.md index ade20c86..5105194c 100644 --- a/scripts/foundry/stylus/setCacheManager/README.md +++ b/scripts/foundry/stylus/setCacheManager/README.md @@ -1,6 +1,6 @@ # Adding the wasm CacheManager -This script empowers `AddWasmCacheManagerAction` contract which enables CacheManager for the Orbit chain. Please note that the prerequisite for this action is running the ArbOS 32 version which introduces Stylus support. +This script empowers `AddWasmCacheManagerAction` contract which deploys and enables CacheManager for the Orbit chain. Please note that the prerequisite for this action is running the ArbOS 32 version which introduces Stylus support. ## How to use it @@ -9,7 +9,7 @@ This script empowers `AddWasmCacheManagerAction` contract which enables CacheMan > [!CAUTION] > The .env file must be in project root. -`DeployAddWasmCacheManagerAction.s.sol` script deploys `AddWasmCacheManagerAction` contract. It can be executed in this directory like this: +`DeployAddWasmCacheManagerAction.s.sol` script deploys `CacheManager` behind the proxy and action `AddWasmCacheManagerAction` contract. It can be executed in this directory like this: ```bash forge script --sender $DEPLOYER --rpc-url $CHILD_CHAIN_RPC --broadcast --slow ./DeployAddWasmCacheManagerAction.s.sol -vvv --verify --broadcast