-
Notifications
You must be signed in to change notification settings - Fork 2
2026 02 05 audit #24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
2026 02 05 audit #24
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
2a7de28
lock update
thedavidmeister 8af748b
extrospection bump
thedavidmeister e7c19bf
update forge-std
thedavidmeister b20c981
update rain.deploy
thedavidmeister d9b4ec4
wip on zoltu deploy
thedavidmeister b8b2022
manual artifacts env
thedavidmeister cf2670e
fix build
thedavidmeister 5bb9806
rain.deploy lock
thedavidmeister 99eefeb
rain.deploy update
thedavidmeister 17cb97a
foundry.toml config
thedavidmeister ac5908f
deployed address
thedavidmeister 95b27d2
deployed code hash
thedavidmeister 2024c07
fmt
thedavidmeister d9fd158
tests
thedavidmeister 63a766a
lint
thedavidmeister de7730e
rm metadata
thedavidmeister 83e0f4c
fix ci
thedavidmeister 2653298
lint
thedavidmeister ce34cec
lint
thedavidmeister File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,8 @@ | ||
| CloneFactoryCloneTest:testCloneBytecode(bytes) (runs: 2048, μ: 371392, ~: 361967) | ||
| CloneFactoryCloneTest:testCloneInitializeData(bytes) (runs: 2048, μ: 376530, ~: 366844) | ||
| CloneFactoryCloneTest:testCloneInitializeEvent(bytes) (runs: 2048, μ: 377279, ~: 367854) | ||
| CloneFactoryCloneTest:testCloneInitializeFailureFails(bytes32) (runs: 2048, μ: 173411, ~: 173411) | ||
| CloneFactoryCloneTest:testCloneUninitializableFails(address,bytes) (runs: 2048, μ: 10029, ~: 9967) | ||
| CloneFactoryCloneTest:testZeroImplementationCodeSizeError(address,bytes) (runs: 2046, μ: 10812, ~: 10790) | ||
| CloneFactoryCloneTest:testCloneBytecode(bytes) (runs: 2048, μ: 350833, ~: 341941) | ||
| CloneFactoryCloneTest:testCloneInitializeData(bytes) (runs: 2048, μ: 355388, ~: 346399) | ||
| CloneFactoryCloneTest:testCloneInitializeEvent(bytes) (runs: 2048, μ: 356010, ~: 347118) | ||
| CloneFactoryCloneTest:testCloneInitializeFailureFails(bytes32) (runs: 2048, μ: 159643, ~: 159643) | ||
| CloneFactoryCloneTest:testCloneUninitializableFails(address,bytes) (runs: 2048, μ: 9882, ~: 9844) | ||
| CloneFactoryCloneTest:testZeroImplementationCodeSizeError(address,bytes) (runs: 2048, μ: 10539, ~: 10557) | ||
| LibCloneFactoryDeployTest:testDeployAddress() (gas: 242794) | ||
| LibCloneFactoryDeployTest:testExpectedCodeHash() (gas: 235395) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| out | ||
| cache | ||
| result | ||
| result | ||
| .env |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,14 @@ | ||
| { | ||
| "lib/forge-std": { | ||
| "rev": "b8f065fda83b8cd94a6b2fec8fcd911dc3b444fd" | ||
| "rev": "1801b0541f4fda118a10798fd3486bb7051c5dd6" | ||
| }, | ||
| "lib/openzeppelin-contracts": { | ||
| "rev": "fcbae5394ae8ad52d8e580a3477db99814b9d565" | ||
| }, | ||
| "lib/rain.deploy": { | ||
| "rev": "e419a46e2a1317a63639ac13fc5a22d7e967fbef" | ||
| }, | ||
| "lib/rain.extrospection": { | ||
| "rev": "57b600f44084b6c678d680b813463f2197087921" | ||
| "rev": "ab33ddb8b64d7566edfb15a775d86c536c977181" | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule forge-std
updated
57 files
Submodule rain.deploy
added at
e419a4
Submodule rain.extrospection
updated
26 files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| // SPDX-License-Identifier: LicenseRef-DCL-1.0 | ||
| // SPDX-FileCopyrightText: Copyright (c) 2020 Rain Open Source Software Ltd | ||
| pragma solidity ^0.8.25; | ||
thedavidmeister marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| /// @title LibCloneFactoryDeploy | ||
| /// A library containing the deployed address and code hash of the CloneFactory | ||
| /// contract when deployed with the rain standard zoltu deployer. This allows | ||
| /// idempotent deployments against precommitted addresses and hashes that can be | ||
| /// easily verified automatically in tests and scripts rather than relying on | ||
| /// registries or manual verification. | ||
| library LibCloneFactoryDeploy { | ||
| /// The address of the `CloneFactory` contract when deployed with the rain | ||
| /// standard zoltu deployer. | ||
| address constant CLONE_FACTORY_DEPLOYED_ADDRESS = address(0x444acC29d63fa643E8adCC35FD9aa6DE111dCb39); | ||
|
|
||
| /// The code hash of the `CloneFactory` contract when deployed with the rain | ||
| /// standard zoltu deployer. This can be used to verify that the deployed | ||
| /// contract has the expected bytecode, which provides stronger guarantees | ||
| /// than just checking the address. | ||
| bytes32 constant CLONE_FACTORY_DEPLOYED_CODEHASH = | ||
| bytes32(0xf21b813c7075a1621285df3a8369d0652c31ea80cb807be1aaadafeecd134475); | ||
| } | ||
coderabbitai[bot] marked this conversation as resolved.
Show resolved
Hide resolved
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| // SPDX-License-Identifier: LicenseRef-DCL-1.0 | ||
| // SPDX-FileCopyrightText: Copyright (c) 2020 Rain Open Source Software Ltd | ||
| pragma solidity =0.8.25; | ||
|
|
||
| import {Test} from "forge-std/Test.sol"; | ||
| import {LibRainDeploy} from "rain.deploy/lib/LibRainDeploy.sol"; | ||
| import {LibCloneFactoryDeploy} from "src/lib/LibCloneFactoryDeploy.sol"; | ||
| import {CloneFactory} from "src/concrete/CloneFactory.sol"; | ||
|
|
||
| contract LibCloneFactoryDeployTest is Test { | ||
| function testDeployAddress() external { | ||
| vm.createSelectFork(vm.envString("CI_FORK_ETH_RPC_URL")); | ||
|
|
||
| address deployedAddress = LibRainDeploy.deployZoltu(type(CloneFactory).creationCode); | ||
|
|
||
| assertEq(deployedAddress, LibCloneFactoryDeploy.CLONE_FACTORY_DEPLOYED_ADDRESS); | ||
| assertTrue(address(deployedAddress).code.length > 0, "Deployed address has no code"); | ||
|
|
||
| assertEq(address(deployedAddress).codehash, LibCloneFactoryDeploy.CLONE_FACTORY_DEPLOYED_CODEHASH); | ||
| } | ||
|
|
||
| function testExpectedCodeHash() external { | ||
| CloneFactory cloneFactory = new CloneFactory(); | ||
|
|
||
| assertEq(address(cloneFactory).codehash, LibCloneFactoryDeploy.CLONE_FACTORY_DEPLOYED_CODEHASH); | ||
| } | ||
| } |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.