forked from kcolbchain/switchboard
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
58 lines (46 loc) · 1.99 KB
/
Copy pathMakefile
File metadata and controls
58 lines (46 loc) · 1.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
.PHONY: install build test clean fmt deploy-base-sepolia deploy-op-sepolia deploy-lux-testnet verify-base-sepolia
# ── Setup ──────────────────────────────────────────────────────────────────
install:
forge install
build:
forge build
clean:
forge clean
fmt:
forge fmt
test:
forge test -vv
# ── Deploy ─────────────────────────────────────────────────────────────────
# Each target loads .env, then runs the Deploy script with --broadcast --verify.
# Override RPC with RPC_<CHAIN>_OVERRIDE=... if you need a private endpoint.
deploy-base-sepolia:
@test -f .env || (echo ".env not found — copy .env.example" && exit 1)
. ./.env && forge script script/Deploy.s.sol:Deploy \
--rpc-url $$RPC_BASE_SEPOLIA \
--broadcast \
--verify \
--etherscan-api-key $$ETHERSCAN_API_KEY \
-vvv
deploy-op-sepolia:
@test -f .env || (echo ".env not found — copy .env.example" && exit 1)
. ./.env && forge script script/Deploy.s.sol:Deploy \
--rpc-url $$RPC_OP_SEPOLIA \
--broadcast \
--verify \
--etherscan-api-key $$ETHERSCAN_API_KEY \
-vvv
deploy-lux-testnet:
@test -f .env || (echo ".env not found — copy .env.example" && exit 1)
. ./.env && forge script script/Deploy.s.sol:Deploy \
--rpc-url $$RPC_LUX_TESTNET \
--broadcast \
--legacy \
-vvv
# ── Verify (re-run if --verify failed during deploy) ───────────────────────
verify-base-sepolia:
@test -n "$(ADDRESS)" || (echo "usage: make verify-base-sepolia ADDRESS=0x..." && exit 1)
. ./.env && forge verify-contract \
--chain-id 84532 \
--etherscan-api-key $$ETHERSCAN_API_KEY \
--constructor-args $$(cast abi-encode "constructor(uint256)" 84532) \
$(ADDRESS) contracts/AgentEscrow.sol:AgentEscrow