You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: script/README.md
+13-9Lines changed: 13 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,19 +6,23 @@ Before running the scripts, please make sure to fill the `.env` file following t
6
6
7
7
After filling the `.env` file, make sure to run: `source .env` in your terminal.
8
8
9
-
## Deploy protocol
10
-
11
-
- Fill the `DeployProtocol_input.json` file with the needed inputs.
12
-
- Run `forge script ./script/DeployProtocol.s.sol --rpc-url network_name --broadcast --slow`
13
-
14
9
## Deploy new pool
15
-
16
10
- Fill the `DeployPool_input.json` file with the needed inputs.
17
-
- In pool deployment, the `eulerAccount` address is the deployer address, so we derive the address from the attached private key in the `.env` file.
18
-
- Run `forge script ./script/DeployPool.s.sol --rpc-url network_name --broadcast --slow`
11
+
- The `eulerAccount` will be derived from the private key provided in `.env`. The account's position on Euler should be already set up.
12
+
- Run `forge script ./script/DeployPool.s.sol --rpc-url network_name --broadcast --slow`, replacing `network_name` to match `_RPC_URL` environment variable (e.g. if running through `MAINNET_RPC_URL` replace `network_name` with `mainnet`)
13
+
- The deployed pool address will be recorded in `./scripts/json/DeployPool_output.json` file
19
14
20
15
## Exact in swap
21
16
22
17
- Fill the `SwapExactIn_input.json` file with the needed inputs.
23
-
- Run `forge script ./script/SwapExactIn.s.sol --rpc-url network_name --broadcast --slow`
18
+
- Run `forge script ./script/SwapExactIn.s.sol --rpc-url network_name --broadcast --slow`, replacing `network_name` to match `_RPC_URL` environment variable (e.g. if running through `MAINNET_RPC_URL` replace `network_name` with `mainnet`)
24
19
20
+
## Uninstall pool
21
+
22
+
- Fill the `UninstallPool_input.json` file with the factory address.
23
+
- Run `forge script ./script/UninstallPool.s.sol --rpc-url network_name --broadcast --slow`, replacing `network_name` to match `_RPC_URL` environment variable (e.g. if running through `MAINNET_RPC_URL` replace `network_name` with `mainnet`)
24
+
25
+
## Deploy protocol
26
+
27
+
- Fill the `DeployProtocol_input.json` file with the needed inputs.
28
+
- Run `forge script ./script/DeployProtocol.s.sol --rpc-url network_name --broadcast --slow`, replacing `network_name` to match `_RPC_URL` environment variable (e.g. if running through `MAINNET_RPC_URL` replace `network_name` with `mainnet`)
0 commit comments