Nickname Ledger
Short names, each owned by one account. First to register a name keeps it until they let it go. It is a made-up contract, running in your browser so you can try the page without a node. It is not deployed on any chain.
BuiltThe node runs EVM contracts on the main line behind a genesis switch; these six contracts are examples in your browser, not deployed ones. Status
- Address
- 2a2f54…f3c9b1
- Kind
- Registry
- Creator
- quiet-abacus
- Deployed at
- 39,440
- Calls
- 742
- Source
- Verified at 39,502
- Fee per name
- 2 BUN
- Names
- “otter”mossy-otter“lantern”tin-lantern“comet”paper-comet“rain”velvet-gear
- Names held
- 4
Out tray
Press a key above. A question answers at once; a call is signed first.
Call a method
You are north-window (you) with 12,500 example BUN, at block 48,210.
Who owns a name.
3 to 16 lower-case letters or digits.
What it offers, and what it holds
The interface is every way in. The storage is everything it remembers. A call can only change the cells its method is wired to.
Interface
ownerOf(name: name)question
Who owns a name.
register(name: name)call
Take a free name for the fee.
release(name: name)call
Let go of a name you own.
Storage
- Fee per nameSet at deploy.
- 2 BUN
- NamesWho owns each name.
- “otter”mossy-otter“lantern”tin-lantern“comet”paper-comet“rain”velvet-gear
- Names heldAlways the number of rows above.
- 4
Call history
Calls that became final, newest first. Questions are not listed: they change nothing and are never put in a block.
Showing the latest 3 of 742 example calls.
Source
This sketch was rebuilt and matched, part for part, with the code the example validators hold.
contract Nickname Ledger
set at deploy
fee : amount of BUN
holds
names : account for each name
count : number
anyone may ask ownerOf(name)
answer names[name]
anyone may call register(name), paying fee
refuse when names has an entry for name
set names[name] to caller
add 1 to count
anyone may call release(name)
refuse when names[name] is not caller
remove name from names
take 1 from count- Notation
- Sketch edition 1, an illustrative notation made for this preview
- Storage
- Packed cells
- Set at deploy
- fee = 2 BUN