Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SuperteamDAO/earn
/ functions
Functions
2,549 in github.com/SuperteamDAO/earn
⨍
Functions
2,549
◇
Types & classes
603
↓ 1 callers
Function
FileHandlePlugin
(options: FileHandlePluginOptions)
src/components/tiptap/extensions/file-handler/index.ts:18
↓ 1 callers
Function
InviteMemberTemplate
({ senderName, sponsorName, link, }: TemplateProps)
src/features/emails/components/inviteMemberTemplate.tsx:9
↓ 1 callers
Function
Tree2Element
(tree?: IconTree[])
src/components/icons/helpers/GenIcon.tsx:11
↓ 1 callers
Function
WelcomeSponsorTemplate
()
src/features/emails/components/welcomeSponsorTemplate.tsx:5
↓ 1 callers
Function
addCreditDispute
( userId: string, type: CreditEventType, id: string, )
src/features/credits/utils/allocateCredits.ts:109
↓ 1 callers
Function
addGrantWinBonusCredit
( userId: string, applicationId: string, )
src/features/credits/utils/allocateCredits.ts:50
↓ 1 callers
Function
addJupiterToken
( mintAddress: string, onSelect: (value: string) => void, )
src/features/listing-builder/components/Form/Rewards/Tokens/TokenSelect.tsx:237
↓ 1 callers
Function
addMention
(str: string, username: string)
src/features/comments/components/Suggestions.tsx:146
↓ 1 callers
Function
addNewComment
()
src/features/comments/components/CommentForm.tsx:52
↓ 1 callers
Function
addNewReplyLvl1
(msg: string)
src/features/comments/components/Comment.tsx:165
↓ 1 callers
Function
addOnboardingInfoToAirtable
( application: GrantApplicationWithUserAndGrant, )
src/features/grants/utils/addOnboardingInfoToAirtable.ts:64
↓ 1 callers
Function
addPaymentField
()
src/features/sponsor-dashboard/components/Modals/VerifyPayment.tsx:279
↓ 1 callers
Function
addPaymentInfoToAirtable
( inputSubmission: ValidatedSubmission, )
src/features/listings/utils/addPaymentInfoToAirtable.ts:140
↓ 1 callers
Function
addProtocolIfNeeded
(url: string)
src/components/shared/LinkTextParser.tsx:12
↓ 1 callers
Function
addReferralInviterWinBonus
( inviterUserId: string, submissionId: string, )
src/features/credits/utils/allocateCredits.ts:168
↓ 1 callers
Function
addSpamPenaltyCredit
(submissionId: string)
src/features/credits/utils/allocateCredits.ts:65
↓ 1 callers
Function
addSpamPenaltyGrant
( userId: string, applicationId: string, )
src/features/credits/utils/allocateCredits.ts:94
↓ 1 callers
Function
addTokenToList
(token: Token)
src/constants/tokenList.ts:40
↓ 1 callers
Function
addTrailingSlash
(pathname: string)
src/utils/canonical.ts:1
↓ 1 callers
Function
addVerifiedJupiterToken
( jupiterToken: JupiterToken, )
src/server/tokenList.ts:194
↓ 1 callers
Function
addWinBonusCredit
(userId: string, submissionId: string)
src/features/credits/utils/allocateCredits.ts:29
↓ 1 callers
Function
adjustPrompt
(prompt: string, refine: boolean)
src/features/listing-builder/components/AutoGenerate/Dialog.tsx:43
↓ 1 callers
Function
applicationsQuery
(slug: string)
src/features/sponsor-dashboard/queries/applications.ts:19
↓ 1 callers
Function
applyCrop
()
src/components/ui/image-crop.tsx:186
↓ 1 callers
Function
approvedGranteesQuery
( grantId: string | undefined, currentSponsorId: string | undefined, searchTerm: string = '', )
src/features/sponsor-dashboard/queries/approved-grantees.ts:20
↓ 1 callers
Function
arrayMatchingSkillsCaseConditionQuery
( subskills: string[], skills: string[], alias: string, )
src/app/api/sponsor-dashboard/listing/[id]/scout/route.ts:180
↓ 1 callers
Function
awaitedParse
()
src/components/shared/MarkdownRenderer.tsx:15
↓ 1 callers
Function
awardReferralFirstSubmissionBonusesForListing
( listingId: string, )
src/features/credits/utils/allocateCredits.ts:204
↓ 1 callers
Function
backendListingRefinements
( data: ListingFormData, ctx: z.RefinementCtx, checkSlugFn: (slug: string, id?: string) => Promise<boole
src/features/listing-builder/types/schema.ts:483
↓ 1 callers
Function
base64MimeType
(encoded: string)
src/components/tiptap/utils.ts:182
↓ 1 callers
Function
baseAsset
(filename: string)
src/pages/earn/hackathon/cypherpunk.tsx:36
↓ 1 callers
Function
baseAsset
(filename: string)
src/pages/earn/hackathon/breakout.tsx:59
↓ 1 callers
Function
blobUrlToBase64
(blobUrl: string)
src/components/tiptap/utils.ts:106
↓ 1 callers
Function
buildCloudinaryURL
( src: string, transformations?: Record<string, string | number>, )
src/components/ui/cloudinary-image.tsx:17
↓ 1 callers
Function
buildGrantsQuery
( args: BuildGrantsQueryArgs, user: { id: string; isTalentFilled: boolean; location: string |
src/features/grants/utils/query-builder.ts:72
↓ 1 callers
Function
buildHackathonQuery
( args: BuildHackathonQueryArgs, user: { id: string; isTalentFilled: boolean; location: string
src/features/hackathon/utils/query-builder.ts:71
↓ 1 callers
Function
buildMultiCountryRegionAliases
* Build alias map from multi-country regions: code -> full slug * e.g., 'eu' -> 'european-union', 'gcc' -> 'gulf-cooperation-council'
src/features/listings/utils/parse-opportunity-tags.ts:31
↓ 1 callers
Function
buildMultiCountryRegionDisplayNames
* Build display name map from multi-country regions: full slug -> display name * e.g., 'european-union' -> 'EU', 'gulf-cooperation-council' -> 'GCC'
src/features/listings/utils/parse-opportunity-tags.ts:48
↓ 1 callers
Function
buildSlugToCountryNameMap
* Build slug to country name map from multi-country regions * Maps slugs like 'european-union' -> 'European Union'
src/features/listings/utils/parse-opportunity-tags.ts:389
↓ 1 callers
Function
calculateArrow
()
src/features/listing-builder/components/Form/PrePublish/ProSlideout.tsx:36
↓ 1 callers
Function
calculateAtaCreationCost
( tokenAddress: string, decimals: number, )
src/app/api/wallet/create-signed-transaction/route.ts:77
↓ 1 callers
Function
calculateRewardAmount
( data: ListingFormData, )
src/features/listing-builder/utils/listingTransformationPipe.ts:101
↓ 1 callers
Function
calculateRewards
( iterableRewards: [string, number][], totalReward: number, )
src/features/listings/components/ListingPage/PrizesList.tsx:12
↓ 1 callers
Function
calculateTotalImpressions
( step: BoostStep, emailImpressions: number, isFeatureAvailable: boolean, )
src/features/listing-builder/components/Form/Boost/utils.ts:72
↓ 1 callers
Function
canUserSubmit
(userId: string)
src/features/credits/utils/canUserSubmit.ts:3
↓ 1 callers
Function
centerAspectCrop
( mediaWidth: number, mediaHeight: number, aspect: number | undefined, )
src/components/ui/image-crop.tsx:31
↓ 1 callers
Function
changeBountyStatus
(status: boolean)
src/features/sponsor-dashboard/components/Modals/UnpublishModal.tsx:67
↓ 1 callers
Function
changeOpen
( nextOpen: boolean, options?: { bypassPrompt?: boolean }, )
src/features/listing-builder/components/Form/Rewards/Sheet.tsx:208
↓ 1 callers
Function
checkAndUpdateKYCStatus
( userId: string, grantApplicationId: string, )
src/pages/api/sponsor-dashboard/grants/update-application-status.ts:45
↓ 1 callers
Function
checkCautionStatus
(sponsor: { isCaution: boolean; })
src/features/listing-builder/utils/sponsorVerification.ts:28
↓ 1 callers
Function
checkEmailValidity
(email: string)
src/features/auth/utils/email.ts:5
↓ 1 callers
Function
checkForDisputeHash
()
src/features/credits/components/CreditDrawer.tsx:47
↓ 1 callers
Function
checkHackathonStatus
()
src/pages/earn/hackathon/talent-olympics.tsx:162
↓ 1 callers
Function
checkHashAndOpenModal
()
src/features/navbar/components/UserMenu.tsx:38
↓ 1 callers
Function
checkNewSponsorStatus
( sponsorId: string, )
src/features/listing-builder/utils/sponsorVerification.ts:35
↓ 1 callers
Function
checkOverdueListings
( sponsorId: string, )
src/features/listing-builder/utils/sponsorVerification.ts:80
↓ 1 callers
Function
checkRateLimit
(userId: string)
src/lib/image-upload/security/rate-limiter.ts:33
↓ 1 callers
Function
checkSlug
( slug: string, id?: string, )
src/features/listing-builder/utils/getValidSlug.ts:12
↓ 1 callers
Function
checkSponsor
()
src/pages/earn/new/index.tsx:66
↓ 1 callers
Function
checkTalent
()
src/pages/earn/new/index.tsx:43
↓ 1 callers
Function
checkTypeAndSize
( input: File | string, { allowedMimeTypes, maxFileSize }: FileValidationOptions, )
src/components/tiptap/utils.ts:164
↓ 1 callers
Function
checkUserSubmission
(listingId: string)
src/features/listings/queries/user-submission-status.ts:5
↓ 1 callers
Function
chunkArray
(array: T[], chunkSize: number)
src/pages/api/sponsor-dashboard/application/export-sheets.ts:58
↓ 1 callers
Function
chunkArray
(array: T[], chunkSize: number)
src/pages/api/sponsor-dashboard/submission/export-sheets.ts:59
↓ 1 callers
Function
clampStepForAvailability
( step: number, isFeatureAvailable: boolean, )
src/features/listing-builder/components/Form/Boost/utils.ts:52
↓ 1 callers
Function
clampToAllowedStep
( step: number, isFeatureAvailable: boolean, )
src/features/listing-builder/components/Form/Boost/utils.ts:63
↓ 1 callers
Function
clampToDecimals
(value: string, maxDecimals: number)
src/features/wallet/components/withdraw/TokenAmountInput.tsx:41
↓ 1 callers
Function
cleanTemplate
( template: Listing, prevValues: ListingFormData, )
src/features/listing-builder/utils/form.ts:146
↓ 1 callers
Function
cleanupOldEntries
()
src/lib/image-upload/security/rate-limiter.ts:20
↓ 1 callers
Function
clearStoredBookmarkIntent
(listingId: string)
src/features/listings/components/ListingPage/BookmarkListing.tsx:65
↓ 1 callers
Method
cloudinaryError
(message: string)
src/lib/image-upload/errors.ts:51
↓ 1 callers
Function
coerceRewardsRecord
( rewards: unknown, )
src/features/listing-builder/utils/rewards.ts:42
↓ 1 callers
Function
commandFilter
()
src/components/ui/multi-select.tsx:422
↓ 1 callers
Function
commentsQuery
(params: CommentsParams)
src/features/comments/queries/comments.ts:30
↓ 1 callers
Function
computePayoutDateUtc
(params: GetPayoutCopyParams)
src/utils/payout-date.ts:56
↓ 1 callers
Function
consumeCredit
(userId: string, submissionId: string)
src/features/credits/utils/allocateCredits.ts:8
↓ 1 callers
Function
convertFeedPostTypeToCommentRefType
( feedPostType: FeedPostType, )
src/features/feed/utils/index.ts:5
↓ 1 callers
Function
convertSkillsToOptions
(skills: Skills)
src/components/shared/SkillsSelectNew.tsx:37
↓ 1 callers
Function
copyToClipboard
(text: string)
src/features/sponsor-dashboard/components/ListingTable.tsx:130
↓ 1 callers
Function
copyToClipboard
(text: string)
src/features/sponsor-dashboard/components/Submissions/SubmissionHeader.tsx:171
↓ 1 callers
Function
copyToClipboard
(text: string)
src/features/sponsor-dashboard/components/GrantApplications/ApplicationHeader.tsx:123
↓ 1 callers
Function
countLiveFeaturedListings
()
src/features/listing-builder/utils/listingTransformationPipe.ts:47
↓ 1 callers
Function
createBoringAvatarSvgDataUri
(seed: string)
src/app/api/dynamic-og/winners/route.tsx:77
↓ 1 callers
Function
createDecorateOptions
(isPro: boolean)
src/features/listings/components/Submission/EasterEgg.tsx:21
↓ 1 callers
Function
createFeePayerATA
( rpc: SolanaRpc, tokenMint: Address, feePayerSigner: KeyPairSigner, programId: Address, )
src/app/api/wallet/create-signed-transaction/route.ts:118
↓ 1 callers
Function
createGrantApplication
( userId: string, grantId: string, data: any, grant: any, )
src/app/api/grant-application/create/route.ts:36
↓ 1 callers
Function
createSumsubToken
( userId: string, secretKey: string, appToken: string, )
src/pages/api/sumsub/access-token.ts:11
↓ 1 callers
Function
createTrancheFormSchema
( isST: boolean, isAgenticEngineering: boolean, )
src/features/grants/components/Modals/TrancheFormModal.tsx:70
↓ 1 callers
Function
customEmptySection
()
src/pages/earn/pro.tsx:23
↓ 1 callers
Function
dashboardQuery
(sponsorId: string | undefined)
src/features/sponsor-dashboard/queries/dashboard.ts:12
↓ 1 callers
Function
dataURLToBlob
(dataURL: string)
src/components/ui/image-crop.tsx:52
↓ 1 callers
Function
dataURLToFile
(dataURL: string, filename: string)
src/components/shared/ImageUploader.tsx:53
↓ 1 callers
Function
decrement
()
src/features/sponsor-dashboard/components/GrantApplications/Modals/ApproveModal.tsx:46
↓ 1 callers
Function
decrement
()
src/features/sponsor-dashboard/components/Traches/ApproveTrancheModal.tsx:45
↓ 1 callers
Function
deleteComment
(commentId: string)
src/features/comments/components/Comments.tsx:101
↓ 1 callers
Function
deleteImage
(publicId: string)
src/lib/image-upload/cloudinary-client.ts:52
↓ 1 callers
Function
descriptionByType
(type: CompensationType)
src/features/listing-builder/components/Form/Rewards/PaymentType.tsx:27
↓ 1 callers
Function
descriptionPromptHackathon
(props: PromptProps)
src/app/api/sponsor-dashboard/ai-generate/description/prompts.ts:298
↓ 1 callers
Function
descriptionPromptProject
(props: PromptProps)
src/app/api/sponsor-dashboard/ai-generate/description/prompts.ts:164
↓ 1 callers
Function
detectLanguage
(description: string)
src/features/listing-builder/utils/listingTransformationPipe.ts:27
← previous
next →
501–600 of 2,549, ranked by callers