Getting started with woke 3.4.2
-
Setup python environment with Python 3.7 and above
python -m venv venv source ./venv/bin/activate pip install woke
-
Create Counter contract in
contracts/
-
Create deploy scripts in
scripts/
-
Setup configuration in
woke.toml
# ./woke.toml [testing] cmd = "anvil"
-
Run anvil in terminal as our node
anvil
-
Set up woke accounts, recommended to import with private key from your anvil accounts
woke accounts import ALIAS=deployment
-
Generate pytypes
woke init pytypes
-
Deploy contract
woke run scripts/deploy.py
-
Create tests in
tests/
-
Run tests
woke test tests/test_counter.py # or woke test
-
Run fuzzer
woke fuzz
You can use npm install
to add @openzeppelin/contracts
or @uniswap/v3-core
etc.
pnpm i @openzeppelin/contracts @uniswap/v3-core
Add/import contract in contracts/Imports.sol