-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile.test
More file actions
41 lines (29 loc) · 1.58 KB
/
Makefile.test
File metadata and controls
41 lines (29 loc) · 1.58 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
-include .env
test-all:
@forge clean
@forge test --match-path test/foundry/BeamBridge.t.sol --force $(VERBOSE)
run-coverage:
@forge clean
@echo "checking test coverage"
forge clean && forge coverage --via-ir --ir-minimum
###########################################################
############# BRIDGE TOKENS (E2E tests!)###########
###########################################################
run-bridge-token:
@forge script $(BRIDGE_SCRIPT_PATH) \
--rpc-url $(RPC_URL) \
--broadcast \
--account ${ACCOUNT_NAME} \
--password $(ACCOUNT_PWD) \
--sig "$(BRIDGE_TOKEN_SIG)" $(CHAIN_ID) $(CONTRACT) ${AMOUNT} ${DESTINATION} \
-vvvvvvv --legacy
# make test-bridge RPC_URL=https://ethereum-sepolia-rpc.publicnode.com ACCOUNT_NAME=beam-test-1 CONTRACT=0x1cb99e0c2c03c43d0750d15f391c6b4534750175 CHAIN_ID=13337 AMOUNT=5000000000000000000 DESTINATION=0x7f50CF0163B3a518d01fE480A51E7658d1eBeF87
# ^^^^^ from sepolia to beam
# make test-bridge RPC_URL=https://build.onbeam.com/rpc/testnet ACCOUNT_NAME=beam-test-1 CONTRACT=0x8310D1b3eDD1fdC579733b522e3315f0EE8f4Da4 CHAIN_ID=11155111 AMOUNT=1000000000000000000 DESTINATION=0x7f50CF0163B3a518d01fE480A51E7658d1eBeF87
# the chain id is the destination chain id
# ^^^^^ from beam to sepolia
test-bridge:
$(MAKE) run-bridge-token RPC_URL=${RPC_URL} ACCOUNT_NAME=${ACCOUNT_NAME} CHAIN_ID=${CHAIN_ID} CONTRACT=$(CONTRACT) AMOUNT=${AMOUNT} DESTINATION=${DESTINATION}
###########################################################
############# BRIDGE TOKENS (unit tests!) ##########
###########################################################