This repository is a collection of Cairo components and functions that are used by AVNU contracts.
The repository includes the following components:
- Ownable: a component that allows to manage ownership of a contract
- Upgradable: a component that allows upgrade the contract code
- Whitelist: a component that allows to manage a whitelist of addresses
It includes the following interfaces:
- erc20: an interface that allows to interact with ERC20 tokens
And finally, it includes the following functions:
- muldiv: a function that allows to multiply two numbers and divide the result by a third number
This repository is using Scarb to install, test, build contracts
# Format
scarb fmt
# Run the tests
scarb test
# Build contracts
scarb build