Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/1inch/merkle-distribution
/ functions
Functions
99 in github.com/1inch/merkle-distribution
⨍
Functions
99
◇
Types & classes
48
↓ 21 callers
Function
findSortedIndex
(self: MerkleDropData, i: number)
test/contracts/CumulativeMerkleDrop.test.ts:47
↓ 14 callers
Function
runCLI
* Helper to run CLI command
test/e2e/cli.test.ts:65
↓ 13 callers
Function
calculateMerkleHeight
(leafCount: number)
src/lib/merkle.ts:60
↓ 12 callers
Function
createMerkleDrop
(wallets: string[], amounts: bigint[])
src/lib/merkle.ts:15
↓ 12 callers
Function
generateLinks
( amounts: string, counts: string, version: string, chainId: number, debugMode: boolean, )
src/tasks/hardhat-drop-task.ts:89
↓ 10 callers
Method
createDropSettings
* Create drop settings
src/services/DropService.ts:21
↓ 10 callers
Function
getPaths
(tempDir: string)
test/e2e/hardhat-tasks.test.ts:31
↓ 8 callers
Function
formatBaseUrl
(chainId: number)
src/config/index.ts:58
↓ 8 callers
Function
keccak128
(input: string | Buffer)
src/lib/merkle.ts:8
↓ 7 callers
Function
ensureDirectoryExists
(directory: string)
src/lib/qr.ts:33
↓ 7 callers
Method
generateCodes
* Generate merkle drop codes
src/services/DropService.ts:54
↓ 7 callers
Function
getPaths
(tempDir: string)
test/e2e/cli.test.ts:14
↓ 7 callers
Method
validateVersion
* Validate version number
src/services/DropService.ts:248
↓ 7 callers
Method
verifyLink
* Verify a claim link
src/services/VerificationService.ts:9
↓ 6 callers
Function
generateClaimUrl
( privateKey: string, amount: bigint, proof: Array<{ position: 'left' | 'right'; data: Buffer }>,
src/lib/encoding.ts:32
↓ 6 callers
Function
getAddressFromPrivateKey
(privateKey: string)
src/lib/wallet.ts:25
↓ 6 callers
Function
getChainConfig
(chainId: number)
src/config/index.ts:42
↓ 6 callers
Function
shuffle
(array: T[])
src/lib/encoding.ts:116
↓ 6 callers
Function
verifyMerkleProof
( wallet: string, amount: bigint, proof: Buffer[], root: string, )
src/lib/merkle.ts:44
↓ 6 callers
Function
zipFolders
(sourceDirs: string[], outputFiles: string[])
src/lib/zip.ts:18
↓ 5 callers
Function
findSortedIndex
(self: Omit<MerkleDropData, 'salts' | 'wallets'>, i: number)
test/contracts/CumulativeMerkleDrop128.test.ts:66
↓ 5 callers
Function
generatePrivateKeys
(count: number)
src/lib/wallet.ts:18
↓ 5 callers
Method
getLatestVersion
* Get latest version from file
src/services/DropService.ts:266
↓ 5 callers
Function
parseClaimUrl
( url: string, root: string, prefix: string, displayResults: boolean = false, )
src/lib/encoding.ts:62
↓ 5 callers
Function
verifyLink
( url: string, root: string, chainId: number, )
src/tasks/hardhat-drop-task.ts:102
↓ 4 callers
Function
cleanDir
(directoryPath: string)
src/lib/zip.ts:31
↓ 4 callers
Function
generateQrCodes
( urls: string[], indices: number[], testCount: number, qrDirectory: string, testQrDirecto
src/lib/qr.ts:17
↓ 4 callers
Function
getTokenAddress
(chainId: number)
src/config/index.ts:50
↓ 4 callers
Method
parseLink
* Parse a claim link without verification (for testing)
src/services/VerificationService.ts:30
↓ 4 callers
Method
recordAttempt
(chunkSize: number, success: boolean, isFirstTry: boolean)
src/lib/events-query.ts:53
↓ 4 callers
Method
recordChunk
(chunkSize: number)
src/lib/events-query.ts:48
↓ 4 callers
Function
uriDecode
(encoded: string)
src/lib/encoding.ts:21
↓ 4 callers
Function
uriEncode
(buffer: Buffer)
src/lib/encoding.ts:9
↓ 3 callers
Function
cleanDirs
(directoryPaths: string[])
src/lib/zip.ts:55
↓ 3 callers
Function
dropTask
( hre: ExtendedHRE, args: HardhatDropTaskArgs, )
src/tasks/hardhat-drop-task.ts:143
↓ 3 callers
Method
formatMultiDropStatisticsOutput
* Format multi-drop statistics for display
src/services/StatisticsService.ts:866
↓ 3 callers
Method
generateLinks
* Generate links for Hardhat task
src/services/DropService.ts:182
↓ 3 callers
Function
generatePrivateKey
()
src/lib/wallet.ts:10
↓ 3 callers
Function
generateWallets
(count: number)
src/lib/wallet.ts:33
↓ 3 callers
Function
initContracts
()
test/contracts/CumulativeMerkleDrop.test.ts:51
↓ 3 callers
Function
makeDrop
( token: Contract, drop: Contract, walletsAddresses: string[], amounts: bigint[], deposit:
test/contracts/CumulativeMerkleDrop.test.ts:26
↓ 3 callers
Function
queryEventsWithRetry
( tokenContract: ethers.Contract, filter: ethers.ContractEventName, chunks: ChunkRange[], prog
src/lib/events-query.ts:335
↓ 3 callers
Function
saveQrCode
(content: string, index: number, directory: string)
src/lib/qr.ts:8
↓ 3 callers
Function
verifyDeploymentTask
( hre: ExtendedHRE, version: string, )
src/tasks/hardhat-drop-task.ts:215
↓ 3 callers
Function
zipFolder
(sourceDir: string, outputFile: string)
src/lib/zip.ts:8
↓ 2 callers
Method
aggregateClaimDataWithClassification
* Aggregate claim data from outgoing transfer events with test/production classification
src/services/StatisticsService.ts:380
↓ 2 callers
Method
aggregateFundingDataWithClassification
* Aggregate funding data from incoming transfer events with test/production classification
src/services/StatisticsService.ts:428
↓ 2 callers
Method
aggregateRescueData
* Aggregate rescue data from rescue transfer events
src/services/StatisticsService.ts:535
↓ 2 callers
Method
cleanQrDirectories
* Clean QR directories
src/services/DropService.ts:241
↓ 2 callers
Method
createChunks
* Create chunks for block range queries
src/services/StatisticsService.ts:364
↓ 2 callers
Method
createProgressBar
(current: number, total: number, width: number = 20)
src/lib/events-query.ts:129
↓ 2 callers
Method
createZipArchives
* Create zip archives of QR codes
src/services/DropService.ts:231
↓ 2 callers
Function
deployQRDrop
( hre: ExtendedHRE, args: HardhatQRDeployTaskArgs, )
src/tasks/hardhat-drop-task.ts:124
↓ 2 callers
Function
fn
()
test/contracts/SignatureMerkleDrop128.test.ts:115
↓ 2 callers
Method
formatStatisticsOutput
* Format statistics for display
src/services/StatisticsService.ts:1017
↓ 2 callers
Method
getRemainingBalance
* Get remaining balance on the contract
src/services/StatisticsService.ts:578
↓ 2 callers
Method
getTimeline
* Get timeline information from claim events
src/services/StatisticsService.ts:594
↓ 2 callers
Function
makeDrop
( token: Contract, drop: Contract, walletsAddressesSalts: string[], amounts: bigint[], dep
test/contracts/CumulativeMerkleDrop128.test.ts:39
↓ 2 callers
Function
processChunksParallel
* Process chunks in parallel with batching
src/lib/events-query.ts:170
↓ 2 callers
Function
queryChunkRange
* Query a single chunk range with basic retry
src/lib/events-query.ts:141
↓ 2 callers
Method
reset
(totalChunks: number, message?: string, isRecursive: boolean = false)
src/lib/events-query.ts:84
↓ 2 callers
Function
shouldBehaveLikeCumulativeMerkleDropFor4WalletsWithBalances1234
({ initContracts, functions: { makeFirstDrop, makeSecondDrop, findSortedIndex }, makeFirstDropPara
test/contracts/behaviors/CumulativeMerkleDrop.behavior.ts:44
↓ 2 callers
Function
shouldBehaveLikeMerkleDropFor4WalletsWithBalances1234
({ walletsCount, initContracts, functions: { makeDrop, findSortedIndex }, is128version = false
test/contracts/behaviors/MerkleDrop.behavior.ts:37
↓ 2 callers
Function
verifyLinksWithProgress
* 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 callers
Method
clear
()
src/lib/events-query.ts:125
↓ 1 callers
Method
collectStatisticsForMultipleDrops
* Collect on-chain statistics for multiple deployed drop contracts
src/services/StatisticsService.ts:639
↓ 1 callers
Function
collectStatsTask
( hre: ExtendedHRE, version: string, )
src/tasks/hardhat-drop-task.ts:306
↓ 1 callers
Function
executeGenerateMode
* Execute generate mode
src/cli/merkle-drop-cli.ts:120
↓ 1 callers
Function
executeValidateMode
* Execute validate mode
src/cli/merkle-drop-cli.ts:182
↓ 1 callers
Function
executeWipeMode
* Execute wipe mode
src/cli/merkle-drop-cli.ts:203
↓ 1 callers
Function
generateSalt
()
test/contracts/CumulativeMerkleDrop128.test.ts:21
↓ 1 callers
Function
getPaths
(tempDir: string)
test/e2e/hardhat-deployment.test.ts:29
↓ 1 callers
Method
getStats
()
src/lib/events-query.ts:64
↓ 1 callers
Function
getTestDetectionConfig
(networkName?: string)
src/config/test-detection.config.ts:50
↓ 1 callers
Function
initContracts
()
test/contracts/CumulativeMerkleDrop128.test.ts:70
↓ 1 callers
Method
isTestClaim
* Determine if a CLAIM transaction is a test based on amount
src/services/StatisticsService.ts:111
↓ 1 callers
Method
isTestFunding
* Determine if a FUNDING transaction is a test based on amount
src/services/StatisticsService.ts:130
↓ 1 callers
Function
keccak128
(input: Buffer | string)
test/contracts/CumulativeMerkleDrop128.test.ts:17
↓ 1 callers
Function
keccak128
(input: Buffer | string)
test/contracts/SignatureMerkleDrop128.test.ts:12
↓ 1 callers
Function
main
()
src/cli/merkle-drop-cli.ts:45
↓ 1 callers
Function
queryEventsRecursive
* Main recursive query function with optimistic approach
src/lib/events-query.ts:210
↓ 1 callers
Function
rescueTask
( hre: ExtendedHRE, version: string, )
src/tasks/hardhat-drop-task.ts:393
↓ 1 callers
Method
saveLinksToFiles
* Save generated links to JSON files
src/services/DropService.ts:125
↓ 1 callers
Function
splitChunkIntoSmaller
* Split a chunk into smaller chunks
src/lib/events-query.ts:158
↓ 1 callers
Method
update
(chunkSize?: number, incrementShared: boolean = true)
src/lib/events-query.ts:93
↓ 1 callers
Method
updateAllChunksComplete
(chunkCount: number)
src/lib/events-query.ts:113
↓ 1 callers
Function
validateArguments
* Validate CLI arguments
src/cli/merkle-drop-cli.ts:67
↓ 1 callers
Function
verifyLinksTask
( hre: ExtendedHRE, version: string, )
src/tasks/hardhat-drop-task.ts:242
Method
collectStatistics
* Collect on-chain statistics for a deployed drop contract
src/services/StatisticsService.ts:149
Method
constructor
()
src/lib/events-query.ts:37
Method
constructor
(totalChunks: number, sharedTracker?: { completed: number; total: number })
src/lib/events-query.ts:79
Function
deployContractsFixture
()
test/contracts/CumulativeMerkleDrop128.test.ts:76
Function
deployContractsFixture
()
test/contracts/SignatureMerkleDrop128.test.ts:22
Function
deployContractsFixture
()
test/contracts/CumulativeMerkleDrop.test.ts:57
Function
deployContractsFixture
()
test/contracts/behaviors/CumulativeMerkleDrop.behavior.ts:51
Function
deployContractsFixture
()
test/contracts/behaviors/MerkleDrop.behavior.ts:45
Method
fmt
(num: string | number)
src/services/StatisticsService.ts:887
Function
makeDropForSomeAccounts
( token: Contract, drop: Contract, allWallets: Signer[], param
test/contracts/CumulativeMerkleDrop128.test.ts:106
Function
makeDropForSomeAccounts
( token: Contract, drop: Contract, allWallets: Signer[], param
test/contracts/CumulativeMerkleDrop.test.ts:87