Common Utilities
Common utilities are helpers used throughout the different libraries. They are divided into Constants, Content, Types and Utils.
Constants
Constants are the variables that never change. They include chainData, contracts, endpoints, posterTags and proposals.
Content
Content includes the information contained in the app's form and the tooltip info.
Types
Common types are used across all apps. They include contract, general, keychains, legoTypes and react.
Utils
Utilities are functions you can pull into your app to accomplish all kinds of common actions, such as:
datesallow you to format dates and periodsencodinghelps encode values and functions and get a nonceexplorerallows you to generate links to block explorersformattinghelp you trunctate addresses, set character limits, handle plural nouns, and convert from Weigeneralallows you to calculate voting power percentage and convert to now in secondsgnosishelps you generate a link to a Gnosis safeobjectallows you to omit an object and fieldstimehelps you with a conversion object and functions to convert to seconds and format periodstypeguardsallows you to validate types with functionsunitshelps you with functions, types, interfaces and contstantsvalidationallows you to validate fields and error messages