MCPcopy Create free account

hub / github.com/dcgtc/dgrants / functions

Functions196 in github.com/dcgtc/dgrants

↓ 54 callersFunctionbalanceOf
(tokenSymbol: SupportedToken, address: string)
contracts/test/utils.ts:152
↓ 28 callersFunctionapprove
(tokenSymbol: SupportedToken, holder: SignerWithAddress, spender: string)
contracts/test/utils.ts:162
↓ 27 callersFunctionrandomAddress
()
contracts/test/GrantRegistry.test.ts:15
↓ 20 callersFunctionsetBalance
(tokenSymbol: SupportedToken, to: string, amount: BigNumberish)
contracts/test/utils.ts:172
↓ 15 callersFunctionrandomPtr
()
contracts/test/GrantRegistry.test.ts:16
↓ 13 callersFunctionBN
(x: BigNumberish)
contracts/test/GrantRegistry.test.ts:17
↓ 13 callersFunctionsnapshotGasCost
( x: | TransactionResponse | Promise<TransactionResponse> | ContractTransaction | Promise<Co
contracts/test/snapshotGasCost.ts:5
↓ 12 callersFunctioncreateGrant
(owner: string, payee: string, metaPtr: MetaPtr, user?: SignerWithAddress)
contracts/test/GrantRegistry.test.ts:33
↓ 12 callersFunctionencodeRoute
(tokens: SupportedToken[])
contracts/test/utils.ts:105
↓ 11 callersFunctionmetadataId
(metaPtr: MetaPtr = { protocol: 0, pointer: '' })
app/src/utils/utils.ts:88
↓ 11 callersFunctionsave
(key: string, value: any)
app/src/store/settings.ts:14
↓ 10 callersFunctionexpectEqualGrants
(grant1: GrantEthers, grant2: GrantEthers)
contracts/test/utils.ts:45
↓ 10 callersFunctiongetSwapAmountOut
(logs: Log[])
contracts/test/utils.ts:71
↓ 10 callersFunctionsyncStorage
( key: string, meta: LocalForageAnyObj, callback: ( LocalForageData?: LocalForageData, save?: (s
app/src/utils/data/utils.ts:19
↓ 9 callersFunctionsetCart
* @notice Update the cart store with the provided `newCart` * @dev Regardless if input type, the most recent grant data will be fetched from the da
app/src/store/cart.ts:123
↓ 8 callersFunctionencodeRoutePolygon
(tokens: SupportedToken[])
contracts/test/utils.ts:94
↓ 8 callersMethodrecordAction
(name: string, content: string)
contracts/scripts/ScriptLogger.ts:60
↓ 8 callersFunctionuseWalletStore
()
app/src/store/wallet.ts:65
↓ 7 callersFunctionformatNumber
(value: BigNumberish, decimals: number)
app/src/utils/utils.ts:36
↓ 7 callersMethodgetProof
(el: Buffer)
utils/src/merkle-distributor/merkle-tree.ts:72
↓ 7 callersFunctionrandomAddress
()
contracts/test/GrantRoundManager.test.ts:23
↓ 7 callersFunctionrandomAddress
()
contracts/test/polygon/GrantRoundManagerUniV2.test.ts:26
↓ 6 callersFunctiongetStorageKey
(key: string, useStorage?: LocalForage)
app/src/utils/data/utils.ts:67
↓ 6 callersFunctionsetStorageKey
(key: string, value: LocalForageData, useStorage?: LocalForage)
app/src/utils/data/utils.ts:74
↓ 5 callersFunctionbatchFilterCall
(query: BatchFilterQuery, startBlock: number, endBlock: number)
app/src/utils/utils.ts:364
↓ 5 callersFunctiondeployGrantRound
( matchingTokenSupply: string, donationTokenSupply: string, newStartTime?: number, newEndTime?
contracts/test/GrantRound.test.ts:33
↓ 4 callersFunctionconfigureProvider
()
app/src/store/wallet.ts:155
↓ 4 callersFunctionfetch
(args: GrantRoundFetchArgs)
dcurve/src/internal/fetch.ts:17
↓ 4 callersFunctiongetInputToken
* @notice Decodes the swap path for Uniswap V3 and Uniswap V2 style swaps to return the input token * @param swap Swap details * @returns Checksumme
app/src/store/cart.ts:509
↓ 4 callersFunctionisPolygon
()
contracts/test/utils.ts:205
↓ 4 callersFunctionnotifyUser
(alertType: NotificationType, message: string)
app/src/utils/alerts.ts:46
↓ 4 callersFunctionrecursiveGraphFetch
( url: string, key: string, query: (filter: string) => string, fromBlock: number, additionalFilter =
app/src/utils/utils.ts:451
↓ 4 callersFunctionsetNextBlockTimestamp
(timestamp: BigNumberish)
contracts/test/utils.ts:63
↓ 3 callersFunctioncheckIsDeployed
* @notice Check if a given contract has been deployed on the default provider
app/src/store/data.ts:88
↓ 3 callersFunctioncreateIpfs
(fleekApiKey: string)
utils/src/ipfs.ts:5
↓ 3 callersFunctiondecodeMetadataId
(id: string)
app/src/utils/utils.ts:97
↓ 3 callersFunctionfetchMetaPtrs
(metaPtrs: MetaPtr[], metadata: Ref)
app/src/utils/data/ipfs.ts:78
↓ 3 callersFunctiongenerateMerkle
(distribution: PayoutMatch[], matchingTokenDecimals: number)
dcurve/src/internal/merkle.ts:18
↓ 3 callersFunctiongetGrantRoundGrantData
( blockNumber: number, contributions: Contribution[], trustBonus: { [address: string]: number }, grant
app/src/utils/data/grantRounds.ts:372
↓ 3 callersFunctiongetMetaPtr
({ cid }: { cid: string | undefined })
app/src/utils/data/ipfs.ts:47
↓ 3 callersFunctiongetMetadata
(metaPtr: MetaPtr, metadata: Ref)
app/src/utils/data/ipfs.ts:109
↓ 3 callersFunctiongetTokensMapping
()
contracts/test/utils.ts:210
↓ 3 callersFunctionhandleError
(err: Error, msg = 'An unknown error occurred')
app/src/utils/alerts.ts:71
↓ 3 callersFunctionptrToURI
(logoPtr: MetaPtr)
app/src/utils/utils.ts:103
↓ 3 callersFunctiontimeTravel
(seconds: BigNumberish)
contracts/test/utils.ts:57
↓ 3 callersMethodtoNode
(index: number | BigNumber, account: string, amount: BigNumber)
utils/src/merkle-distributor/balance-tree.ts:31
↓ 3 callersFunctionupdateGrantRound
* @notice Pull new GrantRound details and update refs
app/src/utils/data/grantRounds.ts:546
↓ 2 callersFunctionassertIPFSPointer
(logoPtr: MetaPtr | undefined)
app/src/utils/data/ipfs.ts:11
↓ 2 callersMethodcombinedHash
(first: Buffer, second: Buffer)
utils/src/merkle-distributor/merkle-tree.ts:53
↓ 2 callersFunctionconfirmContinue
(params: Record<string, unknown>)
contracts/tasks/execute-payouts.ts:148
↓ 2 callersMethodconfirmContinue
()
contracts/scripts/ScriptLogger.ts:33
↓ 2 callersFunctionfallback
()
app/src/utils/data/grants.ts:230
↓ 2 callersFunctionfetchTrustBonusScore
(addresses: string[])
utils/src/trustBonus.ts:18
↓ 2 callersFunctionfilterWhiteListed
(whiteList: Whitelist)
app/src/utils/data/grants.ts:227
↓ 2 callersFunctiongetApprovedGrants
(grants: Grant[])
app/src/utils/data/grants.ts:219
↓ 2 callersFunctiongetConvertedAmount
(amount: number, tokenAddress: string, direction = 1)
app/src/store/cart.ts:110
↓ 2 callersFunctiongetGrantMatch
(grantId: number, grantsDistribution: GrantsDistribution)
dcurve/src/internal/utils.ts:45
↓ 2 callersFunctiongetGrantRound
(blockNumber: number, grantRoundAddress: string, forceRefresh?: boolean)
app/src/utils/data/grantRounds.ts:131
↓ 2 callersMethodgetHexRoot
()
utils/src/merkle-distributor/merkle-tree.ts:68
↓ 2 callersFunctiongetPredictionsForGrantInRound
(grantId: number, roundData: GrantRoundCLR)
app/src/utils/data/grantRounds.ts:492
↓ 2 callersFunctiongrantListener
(name: string, refs: Record<string, Ref>)
app/src/utils/data/grants.ts:148
↓ 2 callersFunctionload
(key: string)
app/src/store/settings.ts:13
↓ 2 callersFunctionmatchingTokenListener
( args: { grantRoundAddress: string; matchingTokenContract: Contract; grantIds: number[]; co
app/src/utils/data/grantRounds.ts:696
↓ 2 callersFunctionmetadataUpdatedListener
( args: { grantRoundAddress: string; grantRoundContract: Contract; grantIds: number[]; contr
app/src/utils/data/grantRounds.ts:667
↓ 2 callersFunctionquoteExactInput
* @notice Returns the amountOutMin expected for a given trade assuming 0.5% slippage * @param path Swap path * @param amountIn Swap input amount, as
app/src/store/cart.ts:545
↓ 2 callersFunctionrandomAddress
()
contracts/test/MerkleGrantRoundPayout.test.ts:17
↓ 2 callersMethodrecordContract
(name: string, address: string)
contracts/scripts/ScriptLogger.ts:55
↓ 2 callersFunctionresetState
()
app/src/store/wallet.ts:50
↓ 2 callersFunctionresolveMetaPtr
(url: string)
app/src/utils/data/ipfs.ts:68
↓ 2 callersMethodsave
()
contracts/scripts/ScriptLogger.ts:65
↓ 2 callersFunctiontoHex
(val: BigNumberish)
app/src/store/cart.ts:70
↓ 2 callersFunctionuseDataStore
()
app/src/store/data.ts:84
↓ 1 callersFunctionaddAnonymousContribution
( grantId: number, grantRoundContributions: GrantRoundContributions, amount: number )
dcurve/src/internal/utils.ts:16
↓ 1 callersFunctionareMetaPtrsEqual
(x: MetaPtr, y: MetaPtr)
app/src/utils/data/grants.ts:170
↓ 1 callersFunctionassertSufficientBalance
(tokenAddress: string, requiredAmount: BigNumberish)
app/src/utils/utils.ts:198
↓ 1 callersMethodbufArrToHexArr
(arr: Buffer[])
utils/src/merkle-distributor/merkle-tree.ts:114
↓ 1 callersMethodbufDedup
(elements: Buffer[])
utils/src/merkle-distributor/merkle-tree.ts:108
↓ 1 callersMethodcalculate
( grantRoundContributions: GrantRoundContributions, _options?: Record<string, unknown> )
dcurve/src/internal/clr.ts:27
↓ 1 callersFunctioncallMulticallContract
( calls: { target: string; contract: Contract; fns: (string | { fn: string; args: (string | BigNumberish)[]
app/src/utils/utils.ts:348
↓ 1 callersFunctionclear
(key: string)
app/src/store/settings.ts:15
↓ 1 callersFunctionclearCart
* @notice Removes all items from the cart
app/src/store/cart.ts:211
↓ 1 callersFunctionclearLastWallet
()
app/src/store/settings.ts:31
↓ 1 callersFunctioncreateTestnetConfig
(network: keyof typeof chainIds)
contracts/hardhat.config.ts:60
↓ 1 callersFunctiondecodeMulticallReturnData
( returnData: { success: boolean; returnData: string }[], calls: { contract: Contract; fns: (string | { fn
app/src/utils/utils.ts:320
↓ 1 callersFunctiondisconnectWallet
* @notice Disconnect the current user wallet
app/src/store/wallet.ts:115
↓ 1 callersFunctionfilterContributionsByGrantId
(grantId: number, contributions: Contribution[])
app/src/utils/data/contributions.ts:240
↓ 1 callersFunctionfilterContributionsByGrantRound
(round: GrantRound, contributions: Contribution[])
app/src/utils/data/contributions.ts:254
↓ 1 callersFunctionfilterContributionsByUserAddress
* @notice given a userAddress and the contributions, return only the contributions for that address * @param userAddress * @param contributions
app/src/utils/data/contributions.ts:384
↓ 1 callersFunctionfilterGrantRoundsForContributions
* @notice filters through the grantrounds and returns the necessary attributes for contribution detail screens * @param grantRounds * @param grantId
app/src/utils/data/contributions.ts:399
↓ 1 callersFunctionfixDonationRoundingErrors
* @notice Takes an array of donation data, and adjusts the ratios so they sum to 1e18 for each set of tokens * @dev For each token, we adjust the fir
app/src/store/cart.ts:524
↓ 1 callersFunctionfixtureGrants
(deployer: SignerWithAddress)
contracts/scripts/app.ts:16
↓ 1 callersFunctionfixtureManager
(deployer: SignerWithAddress, registry: Contract)
contracts/scripts/app.ts:48
↓ 1 callersFunctionfixtureRound
(registry: Contract, manager: Contract)
contracts/scripts/app.ts:59
↓ 1 callersFunctionfixtureRoundDonate
(manager: Contract, roundAddress: string)
contracts/scripts/app.ts:94
↓ 1 callersFunctionformatAddress
(address: string)
app/src/utils/utils.ts:25
↓ 1 callersFunctiongetAllGrantRounds
(latestBlockNumber: number, forceRefresh = false)
app/src/utils/data/grantRounds.ts:48
↓ 1 callersFunctiongetAllGrants
(latestBlockNumber: number, forceRefresh = false)
app/src/utils/data/grants.ts:27
↓ 1 callersFunctiongetBalanceOfSlotSolidity
(mappingSlot: string, address: string)
contracts/test/utils.ts:195
↓ 1 callersFunctiongetCartDonationInputs
* @notice Takes an array of cart items and returns inputs needed for the GrantRoundManager.donate() method
app/src/store/cart.ts:283
↓ 1 callersFunctiongetContributions
( blockNumber: number, grantPayees: Record<string, string>, donationToken: TokenInfo, forceRefresh?: b
app/src/utils/data/contributions.ts:40
next →1–100 of 196, ranked by callers