Process and verify merkle proofs (and multiproof) with custom hash function (#4887)

Co-authored-by: ernestognw <ernestognw@gmail.com>
This commit is contained in:
Hadrien Croubois
2024-07-15 18:08:58 +02:00
committed by GitHub
parent 4b33d326fa
commit b73bcb231f
10 changed files with 779 additions and 269 deletions

View File

@ -32,6 +32,7 @@ function generateFromTemplate(file, template, outputPrefix = '') {
// Contracts
for (const [file, template] of Object.entries({
'utils/cryptography/MerkleProof.sol': './templates/MerkleProof.js',
'utils/math/SafeCast.sol': './templates/SafeCast.js',
'utils/structs/EnumerableSet.sol': './templates/EnumerableSet.js',
'utils/structs/EnumerableMap.sol': './templates/EnumerableMap.js',