Skip to content

Commit

Permalink
Refactor Heap.sol to remove index and lookup (#5190)
Browse files Browse the repository at this point in the history
Co-authored-by: Ernesto García <[email protected]>
  • Loading branch information
Amxx and ernestognw authored Sep 19, 2024
1 parent f209815 commit 3cfebcb
Show file tree
Hide file tree
Showing 7 changed files with 159 additions and 1,012 deletions.
467 changes: 71 additions & 396 deletions contracts/utils/structs/Heap.sol

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions scripts/generate/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ for (const [file, template] of Object.entries({
'utils/structs/Checkpoints.sol': './templates/Checkpoints.js',
'utils/structs/EnumerableSet.sol': './templates/EnumerableSet.js',
'utils/structs/EnumerableMap.sol': './templates/EnumerableMap.js',
'utils/structs/Heap.sol': './templates/Heap.js',
'utils/SlotDerivation.sol': './templates/SlotDerivation.js',
'utils/StorageSlot.sol': './templates/StorageSlot.js',
'utils/Arrays.sol': './templates/Arrays.js',
Expand All @@ -50,7 +49,6 @@ for (const [file, template] of Object.entries({
// Tests
for (const [file, template] of Object.entries({
'utils/structs/Checkpoints.t.sol': './templates/Checkpoints.t.js',
'utils/structs/Heap.t.sol': './templates/Heap.t.js',
'utils/Packing.t.sol': './templates/Packing.t.js',
'utils/SlotDerivation.t.sol': './templates/SlotDerivation.t.js',
})) {
Expand Down
327 changes: 0 additions & 327 deletions scripts/generate/templates/Heap.js

This file was deleted.

13 changes: 0 additions & 13 deletions scripts/generate/templates/Heap.opts.js

This file was deleted.

Loading

0 comments on commit 3cfebcb

Please sign in to comment.