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
22 changes: 10 additions & 12 deletions yarn-project/CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,29 +92,27 @@ env LOG_LEVEL='info; debug:sequencer,archiver' yarn test src/file.test.ts

## Format & Lint

All commands run from `yarn-project`.
**IMPORTANT**: These commands are run from the root of `yarn-project`, NOT the git root.

### Single Package (Preferred)
### Format

```bash
./bootstrap.sh format <package-name>
./bootstrap.sh lint <package-name>
./bootstrap.sh format # All packages
./bootstrap.sh format <package-name> # Single package (faster)
./bootstrap.sh format <package-name> --check # Check only, no changes
```

### All Packages

Only when multiple packages are modified:
### Lint

```bash
./bootstrap.sh format
./bootstrap.sh lint
yarn lint # Same command CI uses - run this before pushing
```

### Check Mode (No Changes)
For faster iteration during development:

```bash
./bootstrap.sh format <package-name> --check
./bootstrap.sh lint <package-name> --check
./bootstrap.sh lint <package-name> # Single package (faster)
./bootstrap.sh lint # All packages
```

## Dependency Management
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ describe('Deployment benchmark', () => {
let userWallet: TestWallet;

beforeAll(async () => {
await t.applyBaseSnapshots();
await t.applyDeploySponsoredFPCSnapshot();
({ adminWallet, adminAddress, userWallet, sponsoredFPCInstance } = await t.setup());
await t.setup();
await t.applyDeploySponsoredFPC();
({ adminWallet, adminAddress, userWallet, sponsoredFPCInstance } = t);
// Ensure the ECDSAR1 contract is already registered, to avoid benchmarking an extra call to the ContractClassRegistry
// The typical interaction would be for a user to deploy an account contract that is already registered in the
// network.
Expand Down
14 changes: 7 additions & 7 deletions yarn-project/end-to-end/src/bench/client_flows/amm.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ describe('AMM benchmark', () => {
const config = t.config.amm;

beforeAll(async () => {
await t.applyBaseSnapshots();
await t.applyDeployBananaTokenSnapshot();
await t.applyFPCSetupSnapshot();
await t.applyDeployCandyBarTokenSnapshot();
await t.applyDeployAmmSnapshot();
await t.applyDeploySponsoredFPCSnapshot();
await t.setup();
await t.applyDeployBananaToken();
await t.applyFPCSetup();
await t.applyDeployCandyBarToken();
await t.applyDeployAmm();
await t.applyDeploySponsoredFPC();
({
adminWallet,
userWallet,
Expand All @@ -66,7 +66,7 @@ describe('AMM benchmark', () => {
ammInstance,
liquidityTokenInstance,
sponsoredFPCInstance,
} = await t.setup());
} = t);
});

afterAll(async () => {
Expand Down
10 changes: 5 additions & 5 deletions yarn-project/end-to-end/src/bench/client_flows/bridging.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ describe('Bridging benchmark', () => {
const config = t.config.bridging;

beforeAll(async () => {
await t.applyBaseSnapshots();
await t.applyDeployBananaTokenSnapshot();
await t.applyFPCSetupSnapshot();
await t.applyDeploySponsoredFPCSnapshot();
({ userWallet, adminAddress } = await t.setup());
await t.setup();
await t.applyDeployBananaToken();
await t.applyFPCSetup();
await t.applyDeploySponsoredFPC();
({ userWallet, adminAddress } = t);
});

afterAll(async () => {
Expand Down
Loading
Loading