Skip to content

Update file path #29

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

Merged
merged 1 commit into from
Oct 8, 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 @@ -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
Expand All @@ -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"), "")
Expand Down
4 changes: 2 additions & 2 deletions scripts/foundry/stylus/setCacheManager/README.md
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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
Expand Down