Browse Source

Update README

Darun Seethammagari 11 tháng trước cách đây
mục cha
commit
5488bc5982
1 tập tin đã thay đổi với 10 bổ sung1 xóa
  1. 10 1
      lazer/contracts/evm/README.md

+ 10 - 1
lazer/contracts/evm/README.md

@@ -32,8 +32,9 @@ $ forge snapshot
 
 ### Anvil
 
+Anvil does not come with CreateX by default. It can be deployed or an RPC which has the contract can be forked. The below command forks an RPC with a functional CreateX contract. 
 ```shell
-$ anvil
+$ anvil --fork-url "https://eth-sepolia.public.blastapi.io" 
 ```
 
 ### Deploy
@@ -42,6 +43,14 @@ $ anvil
 $ forge script script/PythLazerDeploy.s.sol --rpc-url <your_rpc_url> --private-key <your_private_key> --broadcast
 ```
 
+### Upgrade
+The UUPSUpgradeable feature adds functions to the cocntract which support upgrading through the use of an UUPS/ERC1967Proxy. A function can be defined to migrate state if needed. Be careful of changing storage slots when upgrading. See [Documentation](https://docs.openzeppelin.com/upgrades-plugins/1.x/writing-upgradeable) for more details.
+In addition, the private key is necessary or contracts will be deployed to different addresses than expected.
+
+```shell
+$ forge script script/PythLazerDeploy.s.sol --rpc-url <your_rpc_url> --private-key <your_private_key> --broadcast --sig "migrate()"
+```
+
 ### Cast
 
 ```shell