Utils Functions
Constants
Contracts
NETWORK_TOKEN_ETH_ADDRESS
: #L17 (opens in a new tab)SHAMAN_PERMISSIONS
: #L20 (opens in a new tab)
Poster Tags
POSTER_TAGS
: #L1 (opens in a new tab)TABULA_TAGS
: #L10 (opens in a new tab)DAO_DATA_TABLE_NAMES
: #L16 (opens in a new tab)
Proposals
PROPOSAL_STATUS
: #L28 (opens in a new tab)ENCODED_0X0_DATA
: #L41 (opens in a new tab)PROPOSAL_TYPE_LABELS
: #L44 (opens in a new tab)PROPOSAL_TYPE_WARNINGS
: #L59 (opens in a new tab)SENSITIVE_PROPOSAL_TYPES
: #L84 (opens in a new tab)DAO_METHOD_TO_PROPOSAL_TYPE
: #L90 (opens in a new tab)PROP_CARD_HELP
: #L94 (opens in a new tab)PROPOSAL_FILTERS
: #L98 (opens in a new tab)
Queues
DAO_PRODUCER_QUEUE
: #L1 (opens in a new tab)
Summoning
DAOHAUS_SUMMONER_REFERRER
: #L1 (opens in a new tab)DAOHAUS_SAFE_SUMMONER_REFERRER
: #L3 (opens in a new tab)DAOHAUS_CONTRACT_UTILS_REFERRER
: #L5 (opens in a new tab)SUMMON_COPY
: #L7 (opens in a new tab)
Content
Form
FORM_COPY
: #L1 (opens in a new tab)
Info
INFO_COPY
: #L1 (opens in a new tab)
Helpers
Cache
CACHE_CONFIG
: #L3 (opens in a new tab)getlocalForage
: #L17 (opens in a new tab)
Dates
formatDateTimeFromSeconds
: #L3 (opens in a new tab)formatShortDateTimeFromSeconds
: #L13 (opens in a new tab)formatDateFromSeconds
: #L23 (opens in a new tab)formatLongDateFromSeconds
: #L33 (opens in a new tab)formatDistanceToNowFromSeconds
: #L43 (opens in a new tab)
Encoding
encodeValues
: #L8 (opens in a new tab)encodeFunction
: #L18 (opens in a new tab)getNonce
: #L43 (opens in a new tab)
Error
handleErrorMessage
: #L26 (opens in a new tab)
Formatting
truncateAddress
: #L5 (opens in a new tab)charLimit
: #L7 (opens in a new tab)handlePluralNoun
: #L9 (opens in a new tab)fromWei
: #L11 (opens in a new tab)toBigInt
: #L14 (opens in a new tab)isJSON
: #L19 (opens in a new tab)
Gas
PROCESS_PROPOSAL_GAS_LIMIT_ADDITION
: #L6 (opens in a new tab)L2_ADDITIONAL_GAS
: #L7 (opens in a new tab)getGasCostEstimate
: #L13 (opens in a new tab)getProcessingGasLimit
: #L26 (opens in a new tab)getUnit
: #L54 (opens in a new tab)fetchFeeData
: #L72 (opens in a new tab)
General
ZERO_ADDRESS
: #L3 (opens in a new tab)votingPowerPercentage
: #L4 (opens in a new tab)nowInSeconds
: #L17 (opens in a new tab)memberTokenBalanceShare
: #L19 (opens in a new tab)memberUsdValueShare
: #L40 (opens in a new tab)sharesDelegatedToMember
: #L60 (opens in a new tab)lowerCaseLootToken
: #L69 (opens in a new tab)
Gnosis
generateGnosisUiLink
: #L3 (opens in a new tab)
Object
omit
: #L2 (opens in a new tab)
Proposals
getProposalTypeLabel
: #L3 (opens in a new tab)
Shaman Permission
isManager
: #L1 (opens in a new tab)isGovernor
: #L10 (opens in a new tab)isAdmin
: #L19 (opens in a new tab)
Time
conversionFns
: #L8 (opens in a new tab)toSeconds
: #L15 (opens in a new tab)unixTimeInSeconds
: #L18 (opens in a new tab)calcExpiry
: #L22 (opens in a new tab)formatPeriods
: #L26 (opens in a new tab)baalTimeToNow
: #L46 (opens in a new tab)
Typeguards
isArray
: #L5 (opens in a new tab)isNumber
: #L7 (opens in a new tab)isString
: #L9 (opens in a new tab)isBoolean
: #L11 (opens in a new tab)isNumberish
: #L13 (opens in a new tab)isEthAddress
: #L15 (opens in a new tab)isObject
: #L19 (opens in a new tab)isArgType
: #L32 (opens in a new tab)isNumberString
: #L39 (opens in a new tab)isLengthOf
: #L41 (opens in a new tab)
Units
toBaseUnits
: #L6 (opens in a new tab)toWholeUnits
: #L9 (opens in a new tab)formatValueTo
: #L72 (opens in a new tab)formatShares
: #L105 (opens in a new tab)percentage
: #L118 (opens in a new tab)roundedPercentage
: #L122 (opens in a new tab)checkHasQuorum
: #L126 (opens in a new tab)dynamicDecimals
: #L138 (opens in a new tab)readableNumbers
: #L198 (opens in a new tab)
Validation
ValErrMsgs
: #L11 (opens in a new tab)ValidateField
: #L21 (opens in a new tab)ignoreEmptyVal
: #L44 (opens in a new tab)ignoreEmpty
: #L47 (opens in a new tab)handleBaseUnits
: #L50 (opens in a new tab)
viem
createTransport
: #L9 (opens in a new tab)createViemClient
: #L23 (opens in a new tab)
Types
viem
MaxUint256
: #L1 (opens in a new tab)