MCPcopy Create free account

hub / github.com/1inch/merkle-distribution / functions

Functions99 in github.com/1inch/merkle-distribution

↓ 21 callersFunctionfindSortedIndex
(self: MerkleDropData, i: number)
test/contracts/CumulativeMerkleDrop.test.ts:47
↓ 14 callersFunctionrunCLI
* Helper to run CLI command
test/e2e/cli.test.ts:65
↓ 13 callersFunctioncalculateMerkleHeight
(leafCount: number)
src/lib/merkle.ts:60
↓ 12 callersFunctioncreateMerkleDrop
(wallets: string[], amounts: bigint[])
src/lib/merkle.ts:15
↓ 12 callersFunctiongenerateLinks
( amounts: string, counts: string, version: string, chainId: number, debugMode: boolean, )
src/tasks/hardhat-drop-task.ts:89
↓ 10 callersMethodcreateDropSettings
* Create drop settings
src/services/DropService.ts:21
↓ 10 callersFunctiongetPaths
(tempDir: string)
test/e2e/hardhat-tasks.test.ts:31
↓ 8 callersFunctionformatBaseUrl
(chainId: number)
src/config/index.ts:58
↓ 8 callersFunctionkeccak128
(input: string | Buffer)
src/lib/merkle.ts:8
↓ 7 callersFunctionensureDirectoryExists
(directory: string)
src/lib/qr.ts:33
↓ 7 callersMethodgenerateCodes
* Generate merkle drop codes
src/services/DropService.ts:54
↓ 7 callersFunctiongetPaths
(tempDir: string)
test/e2e/cli.test.ts:14
↓ 7 callersMethodvalidateVersion
* Validate version number
src/services/DropService.ts:248
↓ 7 callersMethodverifyLink
* Verify a claim link
src/services/VerificationService.ts:9
↓ 6 callersFunctiongenerateClaimUrl
( privateKey: string, amount: bigint, proof: Array<{ position: 'left' | 'right'; data: Buffer }>,
src/lib/encoding.ts:32
↓ 6 callersFunctiongetAddressFromPrivateKey
(privateKey: string)
src/lib/wallet.ts:25
↓ 6 callersFunctiongetChainConfig
(chainId: number)
src/config/index.ts:42
↓ 6 callersFunctionshuffle
(array: T[])
src/lib/encoding.ts:116
↓ 6 callersFunctionverifyMerkleProof
( wallet: string, amount: bigint, proof: Buffer[], root: string, )
src/lib/merkle.ts:44
↓ 6 callersFunctionzipFolders
(sourceDirs: string[], outputFiles: string[])
src/lib/zip.ts:18
↓ 5 callersFunctionfindSortedIndex
(self: Omit<MerkleDropData, 'salts' | 'wallets'>, i: number)
test/contracts/CumulativeMerkleDrop128.test.ts:66
↓ 5 callersFunctiongeneratePrivateKeys
(count: number)
src/lib/wallet.ts:18
↓ 5 callersMethodgetLatestVersion
* Get latest version from file
src/services/DropService.ts:266
↓ 5 callersFunctionparseClaimUrl
( url: string, root: string, prefix: string, displayResults: boolean = false, )
src/lib/encoding.ts:62
↓ 5 callersFunctionverifyLink
( url: string, root: string, chainId: number, )
src/tasks/hardhat-drop-task.ts:102
↓ 4 callersFunctioncleanDir
(directoryPath: string)
src/lib/zip.ts:31
↓ 4 callersFunctiongenerateQrCodes
( urls: string[], indices: number[], testCount: number, qrDirectory: string, testQrDirecto
src/lib/qr.ts:17
↓ 4 callersFunctiongetTokenAddress
(chainId: number)
src/config/index.ts:50
↓ 4 callersMethodparseLink
* Parse a claim link without verification (for testing)
src/services/VerificationService.ts:30
↓ 4 callersMethodrecordAttempt
(chunkSize: number, success: boolean, isFirstTry: boolean)
src/lib/events-query.ts:53
↓ 4 callersMethodrecordChunk
(chunkSize: number)
src/lib/events-query.ts:48
↓ 4 callersFunctionuriDecode
(encoded: string)
src/lib/encoding.ts:21
↓ 4 callersFunctionuriEncode
(buffer: Buffer)
src/lib/encoding.ts:9
↓ 3 callersFunctioncleanDirs
(directoryPaths: string[])
src/lib/zip.ts:55
↓ 3 callersFunctiondropTask
( hre: ExtendedHRE, args: HardhatDropTaskArgs, )
src/tasks/hardhat-drop-task.ts:143
↓ 3 callersMethodformatMultiDropStatisticsOutput
* Format multi-drop statistics for display
src/services/StatisticsService.ts:866
↓ 3 callersMethodgenerateLinks
* Generate links for Hardhat task
src/services/DropService.ts:182
↓ 3 callersFunctiongeneratePrivateKey
()
src/lib/wallet.ts:10
↓ 3 callersFunctiongenerateWallets
(count: number)
src/lib/wallet.ts:33
↓ 3 callersFunctioninitContracts
()
test/contracts/CumulativeMerkleDrop.test.ts:51
↓ 3 callersFunctionmakeDrop
( token: Contract, drop: Contract, walletsAddresses: string[], amounts: bigint[], deposit:
test/contracts/CumulativeMerkleDrop.test.ts:26
↓ 3 callersFunctionqueryEventsWithRetry
( tokenContract: ethers.Contract, filter: ethers.ContractEventName, chunks: ChunkRange[], prog
src/lib/events-query.ts:335
↓ 3 callersFunctionsaveQrCode
(content: string, index: number, directory: string)
src/lib/qr.ts:8
↓ 3 callersFunctionverifyDeploymentTask
( hre: ExtendedHRE, version: string, )
src/tasks/hardhat-drop-task.ts:215
↓ 3 callersFunctionzipFolder
(sourceDir: string, outputFile: string)
src/lib/zip.ts:8
↓ 2 callersMethodaggregateClaimDataWithClassification
* Aggregate claim data from outgoing transfer events with test/production classification
src/services/StatisticsService.ts:380
↓ 2 callersMethodaggregateFundingDataWithClassification
* Aggregate funding data from incoming transfer events with test/production classification
src/services/StatisticsService.ts:428
↓ 2 callersMethodaggregateRescueData
* Aggregate rescue data from rescue transfer events
src/services/StatisticsService.ts:535
↓ 2 callersMethodcleanQrDirectories
* Clean QR directories
src/services/DropService.ts:241
↓ 2 callersMethodcreateChunks
* Create chunks for block range queries
src/services/StatisticsService.ts:364
↓ 2 callersMethodcreateProgressBar
(current: number, total: number, width: number = 20)
src/lib/events-query.ts:129
↓ 2 callersMethodcreateZipArchives
* Create zip archives of QR codes
src/services/DropService.ts:231
↓ 2 callersFunctiondeployQRDrop
( hre: ExtendedHRE, args: HardhatQRDeployTaskArgs, )
src/tasks/hardhat-drop-task.ts:124
↓ 2 callersFunctionfn
()
test/contracts/SignatureMerkleDrop128.test.ts:115
↓ 2 callersMethodformatStatisticsOutput
* Format statistics for display
src/services/StatisticsService.ts:1017
↓ 2 callersMethodgetRemainingBalance
* Get remaining balance on the contract
src/services/StatisticsService.ts:578
↓ 2 callersMethodgetTimeline
* Get timeline information from claim events
src/services/StatisticsService.ts:594
↓ 2 callersFunctionmakeDrop
( token: Contract, drop: Contract, walletsAddressesSalts: string[], amounts: bigint[], dep
test/contracts/CumulativeMerkleDrop128.test.ts:39
↓ 2 callersFunctionprocessChunksParallel
* Process chunks in parallel with batching
src/lib/events-query.ts:170
↓ 2 callersFunctionqueryChunkRange
* Query a single chunk range with basic retry
src/lib/events-query.ts:141
↓ 2 callersMethodreset
(totalChunks: number, message?: string, isRecursive: boolean = false)
src/lib/events-query.ts:84
↓ 2 callersFunctionshouldBehaveLikeCumulativeMerkleDropFor4WalletsWithBalances1234
({ initContracts, functions: { makeFirstDrop, makeSecondDrop, findSortedIndex }, makeFirstDropPara
test/contracts/behaviors/CumulativeMerkleDrop.behavior.ts:44
↓ 2 callersFunctionshouldBehaveLikeMerkleDropFor4WalletsWithBalances1234
({ walletsCount, initContracts, functions: { makeDrop, findSortedIndex }, is128version = false
test/contracts/behaviors/MerkleDrop.behavior.ts:37
↓ 2 callersFunctionverifyLinksWithProgress
* Verify multiple links with progress visualization * @param contract - The contract instance with verify method * @param urls - Array of URLs to ve
src/tasks/hardhat-drop-task.ts:49
↓ 1 callersMethodclear
()
src/lib/events-query.ts:125
↓ 1 callersMethodcollectStatisticsForMultipleDrops
* Collect on-chain statistics for multiple deployed drop contracts
src/services/StatisticsService.ts:639
↓ 1 callersFunctioncollectStatsTask
( hre: ExtendedHRE, version: string, )
src/tasks/hardhat-drop-task.ts:306
↓ 1 callersFunctionexecuteGenerateMode
* Execute generate mode
src/cli/merkle-drop-cli.ts:120
↓ 1 callersFunctionexecuteValidateMode
* Execute validate mode
src/cli/merkle-drop-cli.ts:182
↓ 1 callersFunctionexecuteWipeMode
* Execute wipe mode
src/cli/merkle-drop-cli.ts:203
↓ 1 callersFunctiongenerateSalt
()
test/contracts/CumulativeMerkleDrop128.test.ts:21
↓ 1 callersFunctiongetPaths
(tempDir: string)
test/e2e/hardhat-deployment.test.ts:29
↓ 1 callersMethodgetStats
()
src/lib/events-query.ts:64
↓ 1 callersFunctiongetTestDetectionConfig
(networkName?: string)
src/config/test-detection.config.ts:50
↓ 1 callersFunctioninitContracts
()
test/contracts/CumulativeMerkleDrop128.test.ts:70
↓ 1 callersMethodisTestClaim
* Determine if a CLAIM transaction is a test based on amount
src/services/StatisticsService.ts:111
↓ 1 callersMethodisTestFunding
* Determine if a FUNDING transaction is a test based on amount
src/services/StatisticsService.ts:130
↓ 1 callersFunctionkeccak128
(input: Buffer | string)
test/contracts/CumulativeMerkleDrop128.test.ts:17
↓ 1 callersFunctionkeccak128
(input: Buffer | string)
test/contracts/SignatureMerkleDrop128.test.ts:12
↓ 1 callersFunctionmain
()
src/cli/merkle-drop-cli.ts:45
↓ 1 callersFunctionqueryEventsRecursive
* Main recursive query function with optimistic approach
src/lib/events-query.ts:210
↓ 1 callersFunctionrescueTask
( hre: ExtendedHRE, version: string, )
src/tasks/hardhat-drop-task.ts:393
↓ 1 callersMethodsaveLinksToFiles
* Save generated links to JSON files
src/services/DropService.ts:125
↓ 1 callersFunctionsplitChunkIntoSmaller
* Split a chunk into smaller chunks
src/lib/events-query.ts:158
↓ 1 callersMethodupdate
(chunkSize?: number, incrementShared: boolean = true)
src/lib/events-query.ts:93
↓ 1 callersMethodupdateAllChunksComplete
(chunkCount: number)
src/lib/events-query.ts:113
↓ 1 callersFunctionvalidateArguments
* Validate CLI arguments
src/cli/merkle-drop-cli.ts:67
↓ 1 callersFunctionverifyLinksTask
( hre: ExtendedHRE, version: string, )
src/tasks/hardhat-drop-task.ts:242
MethodcollectStatistics
* Collect on-chain statistics for a deployed drop contract
src/services/StatisticsService.ts:149
Methodconstructor
()
src/lib/events-query.ts:37
Methodconstructor
(totalChunks: number, sharedTracker?: { completed: number; total: number })
src/lib/events-query.ts:79
FunctiondeployContractsFixture
()
test/contracts/CumulativeMerkleDrop128.test.ts:76
FunctiondeployContractsFixture
()
test/contracts/SignatureMerkleDrop128.test.ts:22
FunctiondeployContractsFixture
()
test/contracts/CumulativeMerkleDrop.test.ts:57
FunctiondeployContractsFixture
()
test/contracts/behaviors/CumulativeMerkleDrop.behavior.ts:51
FunctiondeployContractsFixture
()
test/contracts/behaviors/MerkleDrop.behavior.ts:45
Methodfmt
(num: string | number)
src/services/StatisticsService.ts:887
FunctionmakeDropForSomeAccounts
( token: Contract, drop: Contract, allWallets: Signer[], param
test/contracts/CumulativeMerkleDrop128.test.ts:106
FunctionmakeDropForSomeAccounts
( token: Contract, drop: Contract, allWallets: Signer[], param
test/contracts/CumulativeMerkleDrop.test.ts:87