Skip to content

Commit 7971e3f

Browse files
committed
Update deployment scripts
1 parent 1909d0a commit 7971e3f

File tree

3 files changed

+33
-23
lines changed

3 files changed

+33
-23
lines changed

Makefile

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,33 +26,45 @@ clean:
2626
# Deployment targets
2727
#
2828

29+
deploy-on-anvil:
30+
$(MAKE) deploy-adapter RPC_URL=$(ANVIL_SEPOLIA_RPC_URL)
31+
$(MAKE) deploy-oft RPC_URL=$(ANVIL_ARBITRUM_SEPOLIA_RPC_URL)
32+
$(MAKE) configure-adapter RPC_URL=$(ANVIL_SEPOLIA_RPC_URL)
33+
$(MAKE) configure-oft RPC_URL=$(ANVIL_ARBITRUM_SEPOLIA_RPC_URL)
34+
35+
deploy-on-testnets:
36+
$(MAKE) deploy-adapter RPC_URL=$(SEPOLIA_RPC_URL)
37+
$(MAKE) deploy-oft RPC_URL=$(ARBITRUM_SEPOLIA_RPC_URL)
38+
$(MAKE) configure-adapter RPC_URL=$(SEPOLIA_RPC_URL)
39+
$(MAKE) configure-oft RPC_URL=$(ARBITRUM_SEPOLIA_RPC_URL)
40+
2941
deploy-adapter:
30-
@echo "Deploying RLCAdapter on SEPOLIA..."
42+
@echo "Deploying RLCAdapter on: $(RPC_URL)"
3143
forge script script/RLCAdapter.s.sol:Deploy \
32-
--rpc-url $(SEPOLIA_RPC_URL) \
33-
--account $(ACCOUNT) \
34-
--broadcast \
35-
-vvv
44+
--rpc-url $(RPC_URL) \
45+
--account $(ACCOUNT) \
46+
--broadcast \
47+
-vvv
3648

3749
deploy-oft:
38-
@echo "Deploying RLCOFT on Arbitrum SEPOLIA..."
50+
@echo "Deploying RLCOFT on on: $(RPC_URL)"
3951
forge script script/RLCOFT.s.sol:Deploy \
40-
--rpc-url $(ARBITRUM_SEPOLIA_RPC_URL) \
52+
--rpc-url $(RPC_URL) \
4153
--account $(ACCOUNT) \
4254
--broadcast \
4355
-vvv \
4456

4557
configure-adapter:
46-
@echo "Configuring RLCAdapter on SEPOLIA..."
58+
@echo "Configuring RLCAdapter on: $(RPC_URL)..."
4759
forge script script/RLCAdapter.s.sol:Configure \
48-
--rpc-url $(SEPOLIA_RPC_URL) \
60+
--rpc-url $(RPC_URL) \
4961
--account $(ACCOUNT) \
5062
--broadcast \
5163
-vvv
5264
configure-oft:
53-
@echo "Configuring RLCOFT on Arbitrum SEPOLIA..."
65+
@echo "Configuring RLCOFT on on: $(RPC_URL)"
5466
forge script script/RLCOFT.s.sol:Configure \
55-
--rpc-url $(ARBITRUM_SEPOLIA_RPC_URL) \
67+
--rpc-url $(RPC_URL) \
5668
--account $(ACCOUNT) \
5769
--broadcast \
5870
-vvv

README.md

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -55,34 +55,32 @@ Instead of duplicating code that may become outdated, here are links to the key
5555

5656
## Deployment
5757

58-
The deployment process involves four steps:
58+
### Local deployment
5959

60-
1. Deploy the RLCAdapter on Ethereum Sepolia:
60+
1. Start a local Anvil fork of Sepolia:
6161

6262
```bash
63-
make deploy-adapter
63+
make fork-sepolia
6464
```
6565

66-
2. Deploy the RLCOFT on Arbitrum Sepolia:
66+
2. Start a local fork of Arbitrum Sepolia:
6767

6868
```bash
69-
make deploy-oft
69+
make fork-arbitrum-sepolia
7070
```
7171

72-
3. Configure the RLCAdapter to trust the RLCOFT contract:
72+
3. Deploy all contracts:
7373

7474
```bash
75-
make configure-adapter
75+
make deploy-on-anvil
7676
```
7777

78-
4. Configure the RLCOFT to trust the RLCAdapter contract:
78+
### Live network deployment
7979

8080
```bash
81-
make configure-oft
81+
make deploy-on-testnets
8282
```
8383

84-
After deployment, update your `.env` file with the deployed contract addresses.
85-
8684
## Usage
8785

8886
### Bridge RLC

lib/openzeppelin-contracts

0 commit comments

Comments
 (0)