STRINGLIB — The Word-Game Engine
One-line pitch: Pure string helpers (palindromes, acronym checks, hex conversion) plus a random-acronym generator.
What this is
Section titled “What this is”STRINGLIB contains byte/string palindrome, reversal and acronym helpers, conversion functions, and a stateful RandomAcronym generator. Exact overloads and input checks matter; a struct or helper alone does not establish a deployed submit/vote/reward game.
If you’ve played a web3 game before
Section titled “If you’ve played a web3 game before”- Closest analogy: the validation oracle for a word-game dApp.
- Or: a helper library like Solady’s string utilities, but with game-specific rules.
| Dysnomia term | What it maps to |
|---|---|
| STRINGLIB | Word-game helpers library |
| RandomAcronym(n) | Generate random letter sequence |
| CheckAcronym(acronym, phrase) | Validate word-game submission |
| CheckPalindrome(s) | Palindrome check |
What you actually do with it
Section titled “What you actually do with it”Read the supported pure functions directly through their exact signatures. Preview RandomAcronym separately; it is stateful, and its input is a maximum length rather than a promise of an exact n-letter result.
Use these calls here. Simulations preview the current state; each confirmed call is a separate transaction.
STRINGLIB.CheckAcronym(string _A, string _B)Read
Open this function to load its call form.
STRINGLIB.CheckPalindrome(string S)Read
Open this function to load its call form.
Rewards / costs
Section titled “Rewards / costs”- Cost: none directly.
- Reward: whatever the word-game round pays winners.
Requirements & gating
Section titled “Requirements & gating”Use the selected method’s actual validation. A MinimumLength3 condition in one function is not a universal rule for every conversion or byte helper.
Where it connects
Section titled “Where it connects”Used by whatever contract implements the word-game round logic. Consumes VMREQ-adjacent randomness for acronym generation. Interacts with ACRONYM submissions and USERVOTE tallies.
Quick FAQ
Section titled “Quick FAQ”RandomAcronym is stateful and its argument is a maximum length of at least 3, not an exact size.
Want the Solidity? The contract reference lives at
technical/lib/STRINGLIB.