build
./scripts/build.bash
build:0.6
INTERFACE_TESTER_SOLC_VERSION=0.6.9 yarn run build
build:0.7
INTERFACE_TESTER_SOLC_VERSION=0.7.0 yarn run build
build:0.8
INTERFACE_TESTER_SOLC_VERSION=0.8.15 yarn run build
test:compatibility
yarn run build:0.6 && yarn run build:0.7 && yarn run build:0.8
test:e2e
hardhat test test/*.e2e.ts
test:l1
hardhat test test/*.l1.ts
test:l2
hardhat test test/*.l2.ts --network arbitrum
typechain
hardhat typechain
deploy:tokenbridge
hardhat run scripts/deploy_token_bridge_l1.ts --network mainnet
gen:uml
sol2uml ./contracts/tokenbridge/arbitrum,./contracts/tokenbridge/ethereum,./contracts/tokenbridge/libraries -o ./gatewayUML.svg
gen:uml:test
sol2uml ./contracts/tokenbridge/arbitrum,./contracts/tokenbridge/test -o ./gatewayTestUML.svg
pre:slither
yarn run post:slither && ln -s ../../node_modules/arb-bridge-eth && ln -s ../../node_modules/arbos-precompiles
slither
yarn run pre:slither && slither --hardhat-artifacts-directory build/contracts . --filter-paths 'node_modules|arb-bridge-eth|arbos-precompiles' && yarn run post:slither
post:slither
rm -f arb-bridge-eth && rm -f arbos-precompiles
hardhat
hardhat --config hardhat.config.ts
hardhat:prod
hardhat --config hardhat.prod-config.js