This repo contains highly experimental code. Expect rapid iteration. Use at your own risk.
protostar install
protostar build
# Run all tests
protostar test
# Run only unit tests
protostar test tests/units
# Run only integration tests
protostar test tests/integrations
If you want a fresh account for tests, you can deploy an account with the following command:
starknet deploy_account --network=<network>
It will generate the account information into the ~/.starknet_accounts/starknet_open_zeppelin_accounts.json
file.
See also starknet documentation for more details.
cairo-format -i src/**/*.cairo tests/**/**/*.cairo
- python environment (python >=3.9)
mdutils
dependency installedkaaper-cli
installedthoth
installed
cd docs
kaaper generate ../src ./data
python build.py
callgraphs.sh
See How to deploy Carbonable Protocol
To manage inputs sent to constructor during the deployment, you can customize the config files.
After deployment, the admin account (according to parameters) is the owner of all contracts. So far, you have to do the following actions manually:
- Change the NFT contract owner from admin to Minter contract
- How: Voyager > Write contract >
transferOwnership
- Verify: Voyager > Read contract >
owner
- How: Voyager > Write contract >
- Approve the Minter contract to spend the admin payment tokens
- How: Voyager > Write contract >
approve
- Verify: Voyager > Read contract >
allowance
- How: Voyager > Write contract >
- Buy NFT through the Minter contract
- How: Voyager > Write contract >
buy
- Verify: Voyager > Read contract >
balanceOf
(of the NFT contract)
- How: Voyager > Write contract >
carbon-protocol is released under the MIT.