~/talk

Live coding session: Program an NFT smart contract in 30min w/ SmartPy

Talkat TezDev Paris 2022 · 2022-07-21..07-23· [smart-contracts]
links:none on file
slides:none on file

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

  1. 0:00Start
  2. 5:02Import the Fa2 Library
  3. 6:06Create a Class
  4. 15:19Automate the Tests
  5. 21:04Build the Transaction Parameters
  6. 22:57Dracula Nft
  7. 36:23Policies
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.