Prop House Contracts
Development
Install Dependencies
- Install Foundry
- Install Python 3.9, activate virtualenv, and install dependencies:
python3.9 -m venv ~/cairo_venv source ~/cairo_venv/bin/activate pip3 install -r requirements.txt
- Install submodules:
git submodule update --init --recursive
Compile TypeScript, Contracts, and Generate Typechain Typings
yarn build
Tests
- Generate test users:
yarn test:users
- Run local chains:
yarn chain
- Run tests (in a separate cairo_venv terminal):
yarn test
Troubleshooting
If on an M1 mac, you may receive the following error when running starknet-devnet
:
+[__NSCFConstantString initialize] may have been in progress in another thread when fork() was called.
If so, please add the following to ~/.bash_profile
:
export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES
Format Code
yarn format