-
Notifications
You must be signed in to change notification settings - Fork 6
/
justfile
60 lines (51 loc) · 1.96 KB
/
justfile
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
59
60
DEFAULT-SIGNER := "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266"
default:
# drop into a chisel shell by default, with {{DEFAULT-SIGNER}}
# as the default tx signer, and some imported utils
@just repl
repl:
@chisel \
--prelude script/include.s.sol \
--fork-url http://localhost:8545 \
--sender {{DEFAULT-SIGNER}} \
--tx-origin {{DEFAULT-SIGNER}}
offline-repl:
@chisel --prelude script/include.s.sol
anvil:
# start anvil, producing blocks every 10s
@anvil -b 10
anvil-deploy BRIDGE_VALSET_JSON GOVERNANCE_VALSET_JSON NATIVE_TOKEN_NAME="Wrapped NAM" NATIVE_TOKEN_SYMBOL="wNAM":
@\
BRIDGE_VALSET_JSON="{{BRIDGE_VALSET_JSON}}" \
GOVERNANCE_VALSET_JSON="{{GOVERNANCE_VALSET_JSON}}" \
NATIVE_TOKEN_NAME="{{NATIVE_TOKEN_NAME}}" \
NATIVE_TOKEN_SYMBOL="{{NATIVE_TOKEN_SYMBOL}}" \
MNEMONIC="test test test test test test test test test test test junk" \
forge script script/deploy.s.sol:Deploy \
--fork-url http://localhost:8545 \
--broadcast \
--via-ir \
--sender {{DEFAULT-SIGNER}}
anvil-transfer TRANSFER_TARGET TRANSFER_AMOUNT="1000":
@\
TRANSFER_TARGET="{{TRANSFER_TARGET}}" \
TRANSFER_AMOUNT="{{TRANSFER_AMOUNT}}" \
MNEMONIC="test test test test test test test test test test test junk" \
forge script script/transfer_erc20.s.sol:TransferErc20 \
--fork-url http://localhost:8545 \
--broadcast \
--via-ir \
--sender {{DEFAULT-SIGNER}}
anvil-allow TRANSFER_AMOUNT="1000":
@\
TRANSFER_AMOUNT="{{TRANSFER_AMOUNT}}" \
MNEMONIC="test test test test test test test test test test test junk" \
forge script script/allowance_erc20.s.sol:AllowanceErc20 \
--fork-url http://localhost:8545 \
--broadcast \
--via-ir \
--sender {{DEFAULT-SIGNER}}
build:
@forge b --via-ir --sizes
test:
@forge test -vvv --via-ir --ffi --gas-report