Summary
This proposal requests retroactive funding for the open-source release of a
production-ready TraitSwap & LootBox template for Algorand NFT projects —
built, battle-tested, and live at monstrs.famverse.xyz.
Repository: GitHub - filippofalleroni/Trait-swap-and-Loot-Box · GitHub (MIT License)
What was built
Two complete utilities that any Algorand NFT project can deploy:
1. Trait Swapping (ARC-19)
Holders browse traits, preview them on their NFT, and apply with a single transaction.
The system composites layered images, uploads to IPFS via Pinata, and updates on-chain
metadata — all server-side. Projects configure their own catalog, pricing, and layer
structure.
2. Loot Box (Commit-Reveal + VRF)
A TEALScript smart contract using PCG32 randomness (based on Giorgio Ciotti’s
lib-pcg-avm) seeded by Algorand’s VRF
beacon. Users commit, wait 8+ rounds, then reveal — the contract derives a verifiable
random value for weighted prize selection. Fungible token and NFT prizes are
distributed automatically from a server-side master wallet.
3. White-label & ready to deploy
All configuration is centralized (collection addresses, trait definitions, prize tiers,
branding). Any project can deploy without touching core logic. Supports Pera, Defly,
and Lute. Built on Next.js 14. Includes preview modes for safe testing.
4. Admin panel
Wallet-signature authenticated (no passwords). Covers prize configuration, treasury
balances, ASA opt-in, and prize pool inventory.
Why this matters
Trait swapping and loot boxes are proven engagement and revenue tools in NFT
ecosystems, but building them on Algorand from scratch requires deep expertise in
ARC-19 updates, IPFS pinning, commit-reveal patterns, VRF randomness, and
server-side wallet management. This template packages all of that into a documented,
deployable starting point — significantly lowering the barrier for every project on
Algorand.
A core part of the MONSTRS model is reinvesting 50% of all loot box fees back
into the Algorand NFT community by purchasing NFTs from other projects.
Open-sourcing this template means any project can adopt the same flywheel —
more loot boxes running across the ecosystem means more revenue flowing back
to NFT artists and builders on Algorand.
Proof of production use
The system has been running live at monstrs.famverse.xyz
for 3 months:
| Metric | Value |
|---|---|
| Traits swapped | 500+ |
| Loot boxes opened | 1,000+ |
| Community NFTs purchased | 100+ |
| Time in production | 3 months |
Multiple NFT project leads have reached out asking how to replicate this system for
their own collections — confirming real demand for this kind of tooling on Algorand.
Technical stack
- Smart contract: TEALScript, PCG32 RNG via lib-pcg-avm, Algorand VRF beacon
- Frontend: Next.js 14, @txnlab/use-wallet (Pera, Defly, Lute)
- Storage: IPFS via Pinata
- Standard: ARC-19 for on-chain NFT metadata updates
- Auth: Wallet-signature challenge-response (no passwords)
About the team
MONSTRS is a solo-led project by Filippo (@famversedotxyz
on X). The full system — from trait mechanics to loot box economy — was designed and
directed by Filippo, with developers brought in to execute the build.
Questions & feedback welcome
Happy to answer any questions about the technical implementation, the open-source
structure, or the MONSTRS production experience. All feedback appreciated before
the proposal goes to vote.