The original codebase uses Scarb (2.8.2) to build and test the contracts. Be sure to setup asdf as well, to handle versioning.
To ensure you are setup, run the following command from the root of this directory and check the output matches:
❯ scarb --version
scarb 2.8.2 (a37b4cbfc 2024-09-09)
cairo: 2.8.2 (https://crates.io/crates/cairo-lang-compiler/2.8.2)
sierra: 1.6.0
Once Scarb is setup, you can run the full test suite via:
scarb test
To run specific tests, use the -f (filter) flag, followed by the string to match for. You can supply the file name, or specifc test names. The following command will run all the tests in the vault_option_round_tests.cairo
file.
scarb test -f vault_option_round_tests
This command will run all tests that containing auction
in their name:
scarb test -f auction
Install starknet-foundry [0.30.0]
Copy .starknet_accounts/ex.starknet_open_zeppelin_accounts.json into: .starknet_accounts/starknet_open_zeppelin_accounts.json (Can either go through the docs to setup an account or ping Matt for user1's credentials)
The crash course is intended to catch devs up to speed on the technical aspects of the protocol, as well as help pre-prompt/train any LLMs for Pitchlake. This crash course can be found here.