forked from BuildOnBeam/layerzero-v2-bridge-builder
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile.test
More file actions
46 lines (36 loc) · 1.87 KB
/
Makefile.test
File metadata and controls
46 lines (36 loc) · 1.87 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
-include .env
###########################################################
############# 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=0xbab0169B7985F3f33b9e2d780Dd8f334E777aDE8 CHAIN_ID=13337 CHAIN_ID=11155111 AMOUNT=5000000000000000000 DESTINATION=0x7f50CF0163B3a518d01fE480A51E7658d1eBeF87
# 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
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!) ##########
###########################################################
test-foundry-oft-adapter:
@forge clean
@echo "testing oft adapter"
@forge test --match-path test/foundry/BeamOFTAdapter.t.sol --force $(VERBOSE)
test-foundry-oft-adapter-permit:
@forge clean
@echo "testing oft permit"
@forge test --match-path test/foundry/BeamOFTPermit.t.sol --force $(VERBOSE)
test-foundry-oft-fees:
@forge clean
@echo "testing oft permit"
@forge test --match-path test/foundry/BeamOFTFees.t.sol --force $(VERBOSE)
run-coverage:
@forge clean
@echo "checking test coverage"
forge clean && forge coverage --via-ir --ir-minimum