ExamplesΒΆ
Below is a showcase of various examples of unit testing real and sample Algorand Python smart contracts using algorand-python-testing
.
Contract Name |
Test File |
Key Features Demonstrated |
Test versions of Algopy Abstractions used |
---|---|---|---|
Auction |
- Use of algopy_testing_context |
- ARC4Contract |
|
Proof of Attendance |
- Creation and management of dummy assets |
- ARC4Contract |
|
Simple Voting |
- Testing of global and local state operations |
- Contract |
|
ZK Whitelist |
- Testing of zero-knowledge proof verification |
- ARC4Contract |
|
HTLC LogicSig |
- Testing of LogicSig contracts |
- logicsig |
|
Marketplace |
- Testing of complex marketplace operations |
- ARC4Contract |
|
Scratch Storage |
- Testing of scratch space usage |
- ARC4Contract |