MCPcopy Create free account

hub / github.com/dcgtc/dgrants / functions

Functions196 in github.com/dcgtc/dgrants

↓ 1 callersFunctiongetEtherscanUrl
(hash: string, group: EtherscanGroup = 'tx')
app/src/utils/utils.ts:188
↓ 1 callersFunctiongetGrantRoundDonations
( grantRoundAddress: string, latestBlockNumber: number, forceRefresh = false )
app/src/utils/data/grantRounds.ts:261
↓ 1 callersMethodgetHexProof
(el: Buffer)
utils/src/merkle-distributor/merkle-tree.ts:92
↓ 1 callersMethodgetHexRoot
()
utils/src/merkle-distributor/balance-tree.ts:38
↓ 1 callersMethodgetLayers
(elements: Buffer[])
utils/src/merkle-distributor/merkle-tree.ts:26
↓ 1 callersFunctiongetMerkleRoot
(merkleDistributorInfo: MerkleDistributorInfo | undefined)
dcurve/src/internal/merkle.ts:76
↓ 1 callersFunctiongetMulticallData
( calls: { target: string; contract: Contract; fns: (string | { fn: string; args: (string | BigN
app/src/utils/utils.ts:285
↓ 1 callersMethodgetNextLayer
(elements: Buffer[])
utils/src/merkle-distributor/merkle-tree.ts:42
↓ 1 callersMethodgetPairElement
(idx: number, layer: Buffer[])
utils/src/merkle-distributor/merkle-tree.ts:98
↓ 1 callersFunctiongetPoolInstance
(token0: SupportedToken, token1: SupportedToken)
contracts/test/utils.ts:132
↓ 1 callersFunctiongetPredictedMatchingForAmount
(clrPredictions: GrantPrediction, amount: number)
dcurve/src/internal/utils.ts:68
↓ 1 callersMethodgetProof
(index: number | BigNumber, account: string, amount: BigNumber)
utils/src/merkle-distributor/balance-tree.ts:43
↓ 1 callersMethodgetRoot
()
utils/src/merkle-distributor/merkle-tree.ts:64
↓ 1 callersFunctiongetRoute
(tokens: SupportedToken[])
contracts/test/utils.ts:110
↓ 1 callersFunctiongetStorage
(config: LocalForageConfig)
app/src/utils/data/utils.ts:60
↓ 1 callersFunctiongetTrustBonusScores
( blockNumber: number, contributions: Record<string, Contribution>, forceRefresh = false )
app/src/utils/data/contributions.ts:173
↓ 1 callersFunctiongrantDonationListener
( args: { grantPayees: Record<string, string>; donationToken: TokenInfo; grantIds: number[];
app/src/utils/data/contributions.ts:268
↓ 1 callersFunctiongrantRoundCreatedListener
( args: { listeners: { off: () => Contract }[]; grantIds: number[]; trustBonus: Record<string, n
app/src/utils/data/grantRounds.ts:614
↓ 1 callersFunctioninit
* @notice Throttle calls to rawInit() and catch any errors
app/src/store/data.ts:361
↓ 1 callersFunctioninitializeOnboard
* @notice Initialize the onboard.js module
app/src/store/wallet.ts:70
↓ 1 callersFunctionisValidUrl
(val: string)
app/src/utils/utils.ts:112
↓ 1 callersFunctionlerp
(xLower: number, xUpper: number, yLower: number, yUpper: number, x: number)
dcurve/src/internal/utils.ts:58
↓ 1 callersFunctionmain
()
contracts/scripts/app.ts:124
↓ 1 callersFunctionparseBalanceMap
(balances: OldFormat | NewFormat[])
utils/src/merkle-distributor/parse-balance-map.ts:35
↓ 1 callersMethodpredict
* Calculates the matching amount based on current distribution and predicts * the match based on predictionPoints * @param GrantPredictionArgs
dcurve/src/internal/clr.ts:99
↓ 1 callersFunctionrawInit
* @notice Called on init and network change - but can also be called on demand
app/src/store/data.ts:112
↓ 1 callersFunctionremoveAllListeners
* @notice Called each block to poll for data, but can also be called on-demand, e.g. after user submits a transaction
app/src/store/data.ts:78
↓ 1 callersFunctionsanitizeHTML
(str: string)
app/src/utils/utils.ts:423
↓ 1 callersFunctionsetLastWallet
(walletName: string)
app/src/store/settings.ts:27
↓ 1 callersFunctionsetProvider
(p: any)
app/src/store/wallet.ts:149
↓ 1 callersMethodsortAndConcat
(...args: Buffer[])
utils/src/merkle-distributor/merkle-tree.ts:122
↓ 1 callersFunctionstartPolling
* @notice Call this method to poll now, then poll on each new block
app/src/store/data.ts:373
↓ 1 callersFunctionto32ByteHex
(x: BigNumberish)
contracts/test/utils.ts:200
↓ 1 callersFunctionuploadTrustBonusScores
(trustBonusScores: TrustBonusScore[])
utils/src/trustBonus.ts:57
↓ 1 callersFunctionuseSettingsStore
()
app/src/store/settings.ts:21
↓ 1 callersFunctionwaitForInput
(query: string)
contracts/scripts/ScriptLogger.ts:4
↓ 1 callersFunctionwaitForInput
(query: string)
contracts/tasks/execute-payouts.ts:138
↓ 1 callersFunctionwatchTransaction
( call: () => Promise<ContractTransaction>, stateRef?: Ref )
app/src/utils/utils.ts:247
FunctionHome
()
doc/docs-web/src/pages/index.js:28
FunctionHomepageHeader
()
doc/docs-web/src/pages/index.js:9
FunctionaddToCart
* @notice Adds an item to the cart * @param grantId Grant ID to add to the cart
app/src/store/cart.ts:179
FunctionchangeWallet
* @notice Change wallet
app/src/store/wallet.ts:127
FunctioncheckAllowance
(token: Contract, ownerAddress: string | undefined, spenderAddress: string)
app/src/utils/utils.ts:164
Functioncheckout
* @notice Executes donations
app/src/store/cart.ts:226
FunctioncleanTwitterUrl
(url: string | undefined)
app/src/utils/utils.ts:83
FunctionclearCartState
* @notice Resets cart store state
app/src/store/cart.ts:218
FunctionconnectWallet
* @notice Prompt user to connect wallet, or attempt to connect to wallet specified by `name` * @param name Wallet name to connect, or undefined to
app/src/store/wallet.ts:97
Methodconstructor
(elements: Buffer[])
utils/src/merkle-distributor/merkle-tree.ts:9
Methodconstructor
(balances: { account: string; amount: BigNumber }[])
utils/src/merkle-distributor/balance-tree.ts:7
Methodconstructor
(readonly options: InitArgs)
dcurve/src/internal/clr.ts:23
Methodconstructor
(readonly deployName: string, readonly network: string, readonly folder: string = './deploy-history')
contracts/scripts/ScriptLogger.ts:26
FunctiondaysAgo
(val = 0)
app/src/utils/utils.ts:55
FunctionfetchQuotes
* @notice Fetches quotes based on the users cart * @dev For max accuracy, this should be run each time the user edits their cart with the actual ca
app/src/store/cart.ts:334
FunctionfilterContributionGrantData
( userAddress: string, contributions: Contribution[], grants: Grant[], grantRounds: GrantRound[], gr
app/src/utils/data/contributions.ts:458
FunctionfilterMatchingPoolContributions
( grantRound: GrantRound, roundDonations: Record<string, GrantRoundDonation[]>, roundName: string | unde
app/src/utils/data/contributions.ts:419
FunctionformatDate
(dateStr: BigNumber)
app/src/utils/utils.ts:66
FunctionformatMetaPtr
(cid: string)
app/src/utils/data/ipfs.ts:56
FunctiongenerateMerkleProof
( address: string, distribution: PayoutMatch[], matchingTokenDecimals: number )
dcurve/src/internal/merkle.ts:58
FunctiongenerateMerkleRoot
(distribution: PayoutMatch[], matchingTokenDecimals: number)
dcurve/src/internal/merkle.ts:42
FunctiongetApproval
(token: Contract, address: string, amount: BigNumberish)
app/src/utils/utils.ts:170
FunctiongetGrantsGrantRoundDetails
( grantId: number, rounds: GrantRound[], roundsMetadata: Record<string, GrantRoundMetadataResolution>,
app/src/utils/data/grantRounds.ts:499
FunctiongetMerkleProof
(address: string, merkleDistributorInfo: MerkleDistributorInfo | undefined)
dcurve/src/internal/merkle.ts:93
Functionhandle
(clrArgs: CLRArgs)
dcurve/src/internal/calc/linear.ts:16
FunctionhasStatus
(status: string)
app/src/utils/utils.ts:177
FunctioninitializeCart
* @notice Initialize the store based on localStorage * @dev MUST be called on app load
app/src/store/cart.ts:85
FunctioninitializeSettings
()
app/src/store/settings.ts:22
FunctionisDefined
(val: unknown)
app/src/utils/utils.ts:31
FunctionisInCart
* @notice Returns true if the provided grantId is in the cart, false otherwise * @param grantId Grant ID to check
app/src/store/cart.ts:353
FunctionisValidAddress
(val: string | undefined)
app/src/utils/utils.ts:118
FunctionisValidAmount
(val: number | undefined)
app/src/utils/utils.ts:158
FunctionisValidGithub
(val: string | undefined)
app/src/utils/utils.ts:128
FunctionisValidLogo
(file: File | undefined)
app/src/utils/utils.ts:140
FunctionisValidTwitter
(val: string | undefined)
app/src/utils/utils.ts:133
FunctionisValidWebsite
(val: string | undefined)
app/src/utils/utils.ts:123
Functionlistener
( grantId: BigNumberish, owner: string, payee: string, metaPtr: MetaPtr, time: BigNumberis
app/src/utils/data/grants.ts:149
Functionlistener
( grantId: BigNumberish, tokenIn: string, donationAmount: BigNumberish, grantRounds: string[],
app/src/utils/data/contributions.ts:277
Functionlistener
(grantRoundAddress: string)
app/src/utils/data/grantRounds.ts:623
Functiononclick
()
app/src/utils/alerts.ts:85
FunctionpushRoute
(to: RouteLocationRaw)
app/src/utils/utils.ts:183
FunctionremoveFromCart
* @notice Removes a grant from the cart based on it's `grantId` * @param grantId Grant ID to remove from the cart
app/src/store/cart.ts:203
FunctionscrollBehavior
(_to, _from, savedPosition)
app/src/router/index.ts:47
Functionsetup
()
contracts/test/GrantRound.test.ts:75
Functionsetup
()
contracts/test/gas.test.ts:34
Functionshuffle
(unshuffled: Grant[] | GrantRound[])
app/src/utils/utils.ts:434
FunctionsortByStartTime
(a: GrantRound, b: GrantRound)
app/src/utils/utils.ts:402
FunctionsortContributionsByAmount
(contributions: ContributionsDetail[])
app/src/utils/utils.ts:414
FunctionswitchNetwork
* @notice Prompts user to switch networks to this applications required network
app/src/store/wallet.ts:192
FunctiontxNotify
(txHash: string, provider: JsonRpcProvider)
app/src/utils/alerts.ts:83
FunctionunixToLocaleString
(time: BigNumberish)
app/src/utils/utils.ts:72
FunctionupdateCart
* @notice Updates the amount or token of an item in the cart * @dev Used to keep localStorage in sync with store when the `cart` ref is modified di
app/src/store/cart.ts:157
FunctionuploadFile
(file: File)
app/src/utils/data/ipfs.ts:23
FunctionuploadGrantMetadata
({ name, description, logoPtr, properties }: GrantMetadata)
app/src/utils/data/ipfs.ts:35
FunctionurlFromTwitterHandle
(handle: string)
app/src/utils/utils.ts:77
FunctionuseCartStore
()
app/src/store/cart.ts:79
Methodverify
* Verifies hash based on distribution & the trust bonus score * * @param grantRoundContributions * @param trustBonusMetaPtr * @param hash
dcurve/src/internal/clr.ts:163
MethodverifyProof
( index: number | BigNumber, account: string, amount: BigNumber, proof: Buffer[], root: Bu
utils/src/merkle-distributor/balance-tree.ts:15
← previous101–196 of 196, ranked by callers