-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathjustfile
More file actions
49 lines (38 loc) · 1.49 KB
/
justfile
File metadata and controls
49 lines (38 loc) · 1.49 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
set dotenv-load := true
list:
just --list
build:
forge build
build-monad:
forge build --contracts src/monad/StakingLens.sol
test:
forge test
test-monad:
forge test --match-path test/monad/*
deploy-stargate CHAIN_NAME:
bash ./deploy/deploy-stargate.sh {{CHAIN_NAME}}
deploy-hub-reader:
forge script script/hub_reader/HubReader.s.sol:HubReaderScript --rpc-url "$BSC_RPC_URL" --broadcast --verify -vvvv
deploy-monad-staking:
forge script --force script/monad/StakingLens.s.sol:StakingLensScript --rpc-url "$MONAD_RPC_URL" --broadcast -vvvv
read-staking-lens-address BROADCAST_FILE="broadcast/StakingLens.s.sol/143/run-latest.json":
#!/usr/bin/env bash
jq -r '.receipts[]?.contractAddress // empty' "{{BROADCAST_FILE}}"
verify-monad-staking ADDRESS: build-monad
forge verify-contract \
--rpc-url https://rpc.monad.xyz \
--verifier sourcify \
--verifier-url 'https://sourcify-api-monad.blockvision.org/' \
--chain-id 143 \
"{{ADDRESS}}" \
src/monad/StakingLens.sol:StakingLens
verify-monad-staking-etherscan ADDRESS: build-monad
[ -n "${ETHERSCAN_API_KEY-}" ] || { echo "ETHERSCAN_API_KEY is required" >&2; exit 1; }
forge verify-contract \
--verifier custom \
--verifier-url 'https://api.etherscan.io/v2/api?chainid=143' \
--verifier-api-key "$ETHERSCAN_API_KEY" \
--chain 143 \
--rpc-url https://rpc.monad.xyz \
"{{ADDRESS}}" \
src/monad/StakingLens.sol:StakingLens