Skip to content
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

feat: use soldeer by default #61

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gas-snapshot
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
TestContract:testBar() (gas: 401)
TestContract:testBar() (gas: 3702)
TestContract:testFoo(uint256) (runs: 256, μ: 4552, ~: 4552)
Comment on lines +1 to +2
Copy link
Author

@bbjubjub2494 bbjubjub2494 Jan 22, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is with the optimizer disabled which IIUC is the 1.0 and nightly default. (otherwise CI doesn't build)

2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
version: nightly

- name: Install deps
run: forge install
run: forge soldeer update

- name: Check gas snapshots
run: forge snapshot --check
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
cache/
out/


# Soldeer
/dependencies
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +0,0 @@
[submodule "lib/forge-std"]
path = lib/forge-std
url = https://github.com/foundry-rs/forge-std
6 changes: 6 additions & 0 deletions foundry.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
[profile.ci.fuzz]
runs = 10_000

[profile.default]
libs = ["dependencies"]

[dependencies]
forge-std = "1.9.5"
1 change: 0 additions & 1 deletion lib/forge-std
Submodule forge-std deleted from 40977d
1 change: 1 addition & 0 deletions remappings.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
forge-std-1.9.5/=dependencies/forge-std-1.9.5/
6 changes: 6 additions & 0 deletions soldeer.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[[dependencies]]
name = "forge-std"
version = "1.9.5"
url = "https://soldeer-revisions.s3.amazonaws.com/forge-std/1_9_5_21-12-2024_15:04:05_forge-std-1.9.zip"
checksum = "57ada736f383289db77fac4472d48f820e7c98172cf9b01681b0c37065ce043f"
integrity = "4753ffdfa0dde40878372b6a4d8e8fd1648b190b33996896c8b92f6f1680850f"
2 changes: 1 addition & 1 deletion test/Contract.t.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.13;

import "forge-std/Test.sol";
import "forge-std-1.9.5/src/Test.sol";

import "src/Contract.sol";

Expand Down