Jack Allan Kasbeer

← Inventions & Projects

5 Keys per Plug: Engineering the Tickets for Sugoi NYC

· solidity, ethereum, nft, events, composability

Read the Sugoi keys in the order they were minted and a pattern jumps out. One orange or gold, then four blue. Someone had claimed a key for themselves and four they could give away.

Alpha Key: LOGIK's Black Man character holding a KAGI hardware key
Alpha · Hustler holders
Golden Key: LOGIK's ape on top of the Empire State Building holding a golden key
Golden · every other holder
Tomodachi Key: a girl with an open third eye holding a teddy bear and a key
Tomodachi · friends

I wrote the ticket contract for Sugoi, LOGIK’s three-day art and music festival in Brooklyn in June 2022. A key let you RSVP. We wanted someone who had held The Plug since the previous fall to be able to bring friends without sending us a list of names.

Who got which key

A Plug holder could claim up to five keys, or one per Plug if they held more than five. The first key was Alpha for a qualifying Hustler holder and Golden for another holder. The remaining keys were Tomodachi, Japanese for “friend.” Someone coming in through the public claim could get one Tomodachi.

I used ERC721A to mint each holder’s keys as a batch. The ticket contract read The Plug at claim time, so someone who picked up a Plug after the festival announcement could still qualify. I kept the claim count in ERC721A’s per-owner auxiliary field. ERC721A

Flow: claim checks ownership and the five-key limit; on a wallet's first claim the contract reads The Plug's tokenURI; a Hustler artwork earns an Alpha Key, anything else a Golden Key; the rest of the quantity becomes Tomodachi Keys. publicClaim gives anyone a single Tomodachi Key.
One wallet, one transaction: one Alpha or Golden Key, then Tomodachi Keys for the rest.

The run of blue on June 15

The first day accounted for 246 keys. By the festival, 792 had been minted. All fell within the first 888 token IDs, the range we marked Vanguard.

Line chart of cumulative keys claimed per day from June 12 to June 28, rising from 246 on day one to 792, with jumps on June 15 and June 21, and flat after the festival.
Two jumps: a run of non-holder keys on June 15, and a last rush on opening day.
Grid of 792 squares in mint order colored by key type: frequent patterns of one orange or gold square followed by four blue ones, and one long solid blue band.
Read left to right, top to bottom. Orange is Alpha, gold is Golden, blue is Tomodachi.

There were 76 Alpha keys and 55 Golden keys. Then there’s that long strip of blue. On June 15, 104 Tomodachi keys went out in a row. Both public claims and team mints for guests used the same artwork. The tape tells me exactly what was issued. It can’t tell me which people walked through the door. Festival recap · Photo gallery

The birthday I missed

When claims opened on June 12, Hustler was the highest level any Plug could have reached. To award an Alpha, I compared the Plug’s artwork URI with the three Hustler images. On June 19 the earliest holders reached day 240 and became Innovators. Their images changed. The rule suddenly put those longer-standing holders in the Golden group.

What I meant to ask was how long the holder had kept the token. The Plug already had a function for that. I’d use the day count directly:

bool alpha = thePlug.countDaysPassed(plugTid) >= 180;

I’d also revisit the restriction on contract wallets, which excluded people holding a Plug in a multisig. The part I’d keep is the batch. Seeing those runs of four friend keys in the mint record is still my favorite detail of the festival.

Artwork © LOGIK. Brand architecture credit. Sugoi collection · Ticket contract