Tari Ootle template · MIT

← Stubmark home

Tickets that
cannot be
copied.

Stubmark sells event tickets as NFTs. A screenshot is useless because the gate marks each ticket used on-chain, one time only. Refunds, cancellation and payout are rules in the template, not promises from a seller. Anyone who shows up gets a badge nobody can sell.

This page runs the template rules in your browser, no wallet. The real code is in Rust and has 31 engine tests.

1. The event

2. A guest buys

Price is fixed in the template. A wrong amount is rejected.

3. The gate

The code on a ticket changes every 5 seconds, so a screenshot goes stale. Scan, or paste the code.

What the chain decided

01

Why a copy fails

Two layers. The rotating code (off-chain) stops a stale screenshot. The on-chain used flag stops a live copy: the second check-in of the same ticket is rejected by the template.

02

Why the badge matters

Check-in mints a soulbound NFT. It cannot be withdrawn from the account, so it proves attendance and cannot be bought.

03

Why guests trust it

Money sits in the event's vault. Refunds until the deadline, full refunds if cancelled, payout only after the event ends, and only once.

Tested rules

31 engine tests

Buy

  • Exact price only
  • Stops at capacity
  • Stops after the event ends

Refund

  • Before the deadline, ticket burned, price returned
  • Used or foreign tickets rejected
  • Gifted ticket refunds to its new holder

Cancel

  • Organizer only, before doors
  • Opens refunds forever
  • Blocks payout

Check-in

  • Organizer or listed door staff only
  • Doors window only
  • Unknown or refunded tickets rejected
  • Second scan rejected

Badge

  • Minted at check-in
  • Cannot leave the account
  • Only the component can mint tickets

Payout

  • After the end, once, to the organizer
  • Takings always equal sales minus refunds
Honest limits. The 5-second code rotation is a front-end layer, not a chain rule. This demo simulates the template; the Rust tests run the real code in the Ootle test engine. The live Esmeralda transactions are listed on the home page.
Stubmark. Tari November build contest. Testnet only, no real value.Home · Code (MIT)