Live coding session: Program an NFT smart contract in 30min w/ SmartPy
summary
Live codes an NFT contract with SmartPy and the FA2 library, showing a one-line FA2 inheritance that provides transfer/balance/operator entry points, then adds a four-line mint entrypoint, unit tests via sp.test_scenario and the simulation engine, and originates to Ghostnet with a faucet wallet. Compiles to Michelson and inspects storage and operations. Builds a “Dracula” feature that blocks transfers by timezone by overriding is_defined using block timestamps, and adds an admin mixin so only the admin can mint. Deployed and tested on-chain.
AI-written summary · about
chapters (7)
- 0:00Start
- 5:02Import the Fa2 Library
- 6:06Create a Class
- 15:19Automate the Tests
- 21:04Build the Transaction Parameters
- 22:57Dracula Nft
- 36:23Policies








