|
1 | 1 | # Makefile for RLC OFT Project |
2 | 2 | -include .env |
3 | | - |
4 | | -.PHONY: deploy-test |
5 | | -# Default target |
6 | | -help: |
7 | | - @echo "Available commands:" |
8 | | - @echo " make deploy-adapter - Deploy the RLCAdapter contract" |
9 | | - @echo " make deploy-oft - Deploy the RLCOFT contract" |
10 | | - @echo " make verify-adapter - Verify the RLCAdapter contract on Etherscan" |
11 | | - @echo " make verify-oft - Verify the RLCOFT contract on Etherscan" |
12 | | - @echo " make send-tokens - Send tokens cross-chain" |
13 | | - @echo " make estimate-fee - Estimate fee for cross-chain transfer" |
14 | | - @echo " make set-trusted-remote - Set trusted remote for cross-chain communication" |
15 | | - @echo " make set-receive-handler - Set handler for token reception" |
16 | | - @echo " make burn - Burn tokens" |
17 | | - @echo " make test - Run tests" |
18 | | - @echo " make clean - Clean artifacts" |
19 | | - @echo "" |
20 | | - @echo "Usage: make COMMAND [ACCOUNT=...] [...]" |
21 | | - |
22 | 3 | # Deployment targets |
23 | 4 | deploy-adapter: |
24 | 5 | @echo "Deploying RLCAdapter on SEPOLIA..." |
@@ -67,56 +48,6 @@ send-tokens-arbitrum-sepolia: |
67 | 48 | --account $(ACCOUNT) \ |
68 | 49 | --broadcast \ |
69 | 50 | -vvv |
70 | | -# set-receive-handler: |
71 | | -# @echo "Setting receive handler..." |
72 | | -# forge script script/SetReceiveHandler.s.sol:SetReceiveHandlerScript \ |
73 | | -# --rpc-url SEPOLIA \ |
74 | | -# --account $(ACCOUNT) \ |
75 | | -# --broadcast \ |
76 | | -# -vvv |
77 | | -# # Verification targets |
78 | | -# .PHONY: verify-adapter |
79 | | -# verify-adapter: |
80 | | -# @echo "Verifying RLCAdapter on SEPOLIA..." |
81 | | -# forge verify-contract \ |
82 | | -# --chain-id $(shell forge chain-id --rpc-url SEPOLIA) \ |
83 | | -# --compiler-version v0.8.22 \ |
84 | | -# --constructor-args $(shell cast abi-encode "constructor(address,address,address)" $(RLC_SEPOLIA_ADDRESS) $(SEPOLIA_ENDPOINT_ADDRESS) $(DELEGATE_ADDRESS)) \ |
85 | | -# --etherscan-api-key $(BLOCKSCAN_API_KEY) \ |
86 | | -# $(SEPOLIA_ADAPTER_ADDRESS) \ |
87 | | -# src/RLCAdapter.sol:RLCAdapter |
88 | | - |
89 | | -# .PHONY: verify-oft |
90 | | -# verify-oft: |
91 | | -# @echo "Verifying RLCOFT on SEPOLIA..." |
92 | | -# forge verify-contract \ |
93 | | -# --chain-id $(shell forge chain-id --rpc-url SEPOLIA) \ |
94 | | -# --compiler-version v0.8.22 \ |
95 | | -# --constructor-args $(shell cast abi-encode "constructor(string,string,address,address)" $(TOKEN_NAME) $(TOKEN_SYMBOL) $(SEPOLIA_ENDPOINT_ADDRESS) $(DELEGATE_ADDRESS)) \ |
96 | | -# --etherscan-api-key $(BLOCKSCAN_API_KEY) \ |
97 | | -# $(ARBITRUM_SEPOLIA_OFT_ADDRESS) \ |
98 | | -# src/RLCOFT.sol:RLCOFT |
99 | | - |
100 | | -# Interaction targets |
101 | | - |
102 | | - |
103 | | -estimate-fee: |
104 | | - @echo "Estimating fee for cross-chain transfer..." |
105 | | - forge script script/EstimateFee.s.sol:EstimateFeeScript \ |
106 | | - --rpc-url SEPOLIA \ |
107 | | - --account $(ACCOUNT) \ |
108 | | - -vvv |
109 | | - |
110 | | - |
111 | | - |
112 | | -burn: |
113 | | - @echo "Burning tokens..." |
114 | | - forge script script/BurnTokens.s.sol:BurnTokensScript \ |
115 | | - --rpc-url SEPOLIA \ |
116 | | - --account $(ACCOUNT) \ |
117 | | - --broadcast \ |
118 | | - -vvv |
119 | | - |
120 | 51 | # Test and utility targets |
121 | 52 | test: |
122 | 53 | @echo "Running tests..." |
|
0 commit comments