Example smart contracts written in Odra.
Repository contains following modules:
ownable
shows how to implement basic access layer.erc20
implements ERC20 token.owned_token
combineserc20
andownable
into a token with an owner, that can mint tokens.balance_checker
shows how to call another contract knowing only part of its interface.
To prepare your environment, run:
make prepare
This will install cargo-odra
and wasm32-unknown-unknown target.
To run tests against example contracts, run:
make test
Other available commands:
make clippy
- run clippymake check-lints
- checks for lint errrors usingcargo fmt
make lint
- runscargo fmt
make clean
- removes all generated files