Skip to content
Merged
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
1 change: 1 addition & 0 deletions .github/workflows/check-shell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,5 @@ jobs:
- run: nix develop --command flamegraph --help
- run: nix develop --command graph --version
- run: nix develop --command goldsky --version
- run: nix develop --command yq --version
- run: nix develop .#tauri-shell --command tauri-shellhook-test
4 changes: 2 additions & 2 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ The shell auto-sources `.env` if present and runs `npm ci --ignore-scripts` if `

## Build Tasks

All tasks are Nix packages run via `nix run`. From a consuming repo (or `test/fixture/`):
All tasks are Nix packages run via `nix run`. From a consuming repo use `..#` (e.g., `nix run ..#rainix-sol-test`); from `test/fixture/` use `../..#` (e.g., `nix run ../..#rainix-sol-test`). Examples below use the consuming-repo prefix:

### Solidity
- `nix run ..#rainix-sol-prelude` — `forge install && forge build`
Expand All @@ -34,7 +34,7 @@ All tasks are Nix packages run via `nix run`. From a consuming repo (or `test/fi
- `nix run ..#rainix-rs-static` — `cargo fmt --all -- --check && cargo clippy --all-targets --all-features -- -D clippy::all`
- `nix run ..#rainix-rs-artifacts` — `cargo build --release`

### Subgraph
### Subgraph (dev shell only, not `nix run` targets)
- `subgraph-build` — forge build + npm ci + graph codegen/build
- `subgraph-test` — `docker compose up` in `./subgraph`
- `subgraph-deploy` — requires `GOLDSKY_TOKEN` and `GOLDSKY_NAME_AND_VERSION`
Expand Down
4 changes: 2 additions & 2 deletions audit/2026-03-12-01/triage.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
| ID | Severity | Title | Status |
|----|----------|-------|--------|
| A01-1-p0 | LOW | Inaccurate CI platform description in CLAUDE.md | FIXED |
| A01-2-p0 | LOW | Task path prefix varies by working directory | PENDING |
| A01-3-p0 | LOW | Subgraph tasks not runnable via `nix run` | PENDING |
| A01-2-p0 | LOW | Task path prefix varies by working directory | FIXED |
| A01-3-p0 | LOW | Subgraph tasks not runnable via `nix run` | FIXED |

## Pass 1: Security
No LOW+ findings.
Expand Down
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@
devShells.default = pkgs.mkShell {
buildInputs = sol-build-inputs ++ rust-build-inputs
++ node-build-inputs ++ rainix-tasks ++ subgraph-tasks
++ [ the-graph goldsky pkgs.sqlite ];
++ [ the-graph goldsky pkgs.sqlite pkgs.yq-go ];
shellHook = ''
${source-dotenv}

Expand Down
6 changes: 6 additions & 0 deletions test/fixture/test/Counter.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ contract CounterTest is Test {
assertEq(counter.number(), 1);
}

function test_IncrementOverflowReverts() public {
counter.setNumber(type(uint256).max);
vm.expectRevert();
counter.increment();
}

function testFuzz_SetNumber(uint256 x) public {
counter.setNumber(x);
assertEq(counter.number(), x);
Expand Down
Loading