Player's Guide

STRINGLIB — The Word-Game Engine

Last updated:

One-line pitch: Pure string helpers (palindromes, acronym checks, hex conversion) plus a random-acronym generator.

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.

  • 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

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
0x4ab87f1DBDF6f741ED8BF481C7346103a86f1068
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.

  • Cost: none directly.
  • Reward: whatever the word-game round pays winners.

Use the selected method’s actual validation. A MinimumLength3 condition in one function is not a universal rule for every conversion or byte helper.

Used by whatever contract implements the word-game round logic. Consumes VMREQ-adjacent randomness for acronym generation. Interacts with ACRONYM submissions and USERVOTE tallies.

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.