ATTRIBUTE — Your Profile & Address Book
One-line pitch: Where your Username and address nicknames live, keyed by session Soul.
What this is
Section titled “What this is”ATTRIBUTE stores registered attributes and aliases by session Soul. Username and address/Bao aliases are accessed through authorized VOID/LAU routes. Limits apply to encoded bytes, not a universal count of visible Unicode characters.
If you’ve played a web3 game before
Section titled “If you’ve played a web3 game before”- Closest analogy: ENS text records — per-identity profile fields.
- Or: contacts app / address book — nickname → address lookup.
- Or: an on-chain settings blob keyed by player ID.
| Dysnomia term | What it maps to |
|---|---|
| ATTRIBUTE | Profile/alias storage library |
| Username | Your display name (registered with a 12-byte limit) |
| Alias | A nickname for any address (max 32 bytes) |
| Grade | Extra per-address user-defined tag |
What you actually do with it
Section titled “What you actually do with it”- Set your username via LAU (which routes into ATTRIBUTE).
- Nickname addresses so your UI shows “Bob” instead of
0xa1b2…. - Read your profile when a frontend loads.
Use these calls here. Simulations preview the current state; each confirmed call is a separate transaction.
LAU.Username(string newUsername)Simulate / call
Open this function to load its call form.
LAU.Alias(address name, string value)Simulate / call
Open this function to load its call form.
ATTRIBUTE.Get(uint64 Soul, string name)Read
Open this function to load its call form.
Rewards / costs
Section titled “Rewards / costs”- Cost: gas per write; may have a length-based fee or limit.
- Reward: none direct.
Requirements & gating
Section titled “Requirements & gating”Registered names and owner checks govern the library methods. The constructor registers Username with a 12-byte limit and an owner can register other attributes; aliases are limited to 32 bytes. LAU.Void can replace Soul; do not promise profile migration or persistence across a new session without checking the actual data.
Where it connects
Section titled “Where it connects”Keyed by Soul (populated via LAU + VOID). Read by any UI rendering player names or address labels.
Quick FAQ
Section titled “Quick FAQ”Limits count bytes, not visible characters, so a short emoji name can exceed them.
Want the Solidity? The contract reference lives at
technical/lib/ATTRIBUTE.