Style Guide & Syntax Conventions
Prefixes and Suffixes
Prefixes and suffixes are used to identify the type or function of an element. This is to help with debugging and to ensure that the data is being used in the correct context. prefix
are lower-case and suffix
have the first letter capitalized.
Prefix | Suffix | Purpose | Example | Specific Description |
---|---|---|---|---|
my | Β | Data formatted to be presented in the UI/UX | myBalance | Token Balance formated with decimal places and commas |
Β | Connected | elements directly dependent on the userβs wallet connection | addressConnected | Β |
Β | Atom | Recoil State Elements | currentContractForgeAtom | The forge contract address utilized by the dApp |
select | Β | Recoil Selector Elements | selectYFD | YFD Balance queried from CW20 Contract |