@webisopen/ovm-contracts
v1.3.0
Published
[![Tests](https://github.com/webisopen/ovm-contracts/actions/workflows/test.yml/badge.svg)](https://github.com/webisopen/ovm-contracts/actions/workflows/test.yml) [![checks](https://github.com/webisopen/ovm-contracts/actions/workflows/checks.yml/badge.svg
Downloads
252
Readme
ovm-contracts
Usage
Build
$ forge build
Test
$ forge test
Format
$ forge fmt
Gas Snapshots
$ forge snapshot
Anvil
$ anvil
Deploy
Currently supported network: VLS Testnet LocalDevNet
To add new network, you need to:
- update local .env
- edit
./deploy-config/{chain_id}.json
, add required params.
# With verification
forge script script/Deploy.s.sol:Deploy \
--chain-id $CHAIN_ID \
--rpc-url $RPC_URL \
--private-key $PRIVATE_KEY \
--verifier-url $VERIFIER_URL \
--verifier $VERIFIER \
--verify \
--broadcast --ffi -vvvv
# Without verification
forge script script/Deploy.s.sol:Deploy \
--chain-id $CHAIN_ID \
--rpc-url $RPC_URL \
--private-key $PRIVATE_KEY \
--broadcast --ffi -vvvv
# generate easily readable abi to /deployments
forge script script/Deploy.s.sol:Deploy --sig 'sync()' --rpc-url $RPC_URL --broadcast --ffi