DomainScoreCursor Rules
GitHub

5/28/2025

These rules cover general guidelines, best practices, testing, performance optimization, development workflow, documentation, dependencies, and environment configuration for Solidity smart contract development using Foundry. They emphasize code quality, security, and efficiency.


    # via_ir pipeline is very slow - use a separate profile to pre-compile and then use vm.getCode to deploy
[profile.via_ir]
via_ir = true
# do not compile tests when compiling via-ir
test = 'src'
out = 'via_ir-out'
```

- When deterministic deployment is required:

```
[profile.deterministic]
# ensure that block number + timestamp are realistic when running tests
block_number = 17722462
block_timestamp = 1689711647
# don't pollute bytecode with metadata
bytecode_hash = 'none'
cbor_metadata = false
```