Skip to content
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
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ jobs:
run: npm run sol:fmt:check

- name: Check Solidity Compilation
run: forge build --sizes
run: npm run sol:compile

- name: Check Solidity Linting
run: npm run lint-solc
Expand Down
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,26 @@ npm install && npm run dev
- Navigation is JSON in `/src/config/sidebar.ts`
- SEO metadata implementation: See [SEO Metadata Guide](SEO_METADATA_GUIDE.md) for technical writers

### Version Overrides for Solidity Samples

To use different package versions for specific sample files (e.g., for tutorials requiring specific versions), edit `version-overrides.json`:

```json
{
"overrides": [
{
"file": "samples/CCIP/example.sol",
"reason": "Tutorial requires specific version",
"versions": {
"@chainlink/contracts": "1.5.0"
}
}
]
}
```

See TypeScript types in `src/scripts/helper/pin-solver-dist.ts` for structure.

## Deploy Preview

This repo is configured to automatically create a preview environment on Vercel when a PR is opened. After the deployment is approved, the Vercel bot will leave a comment with a link to the preview on your PR.
Expand Down
8 changes: 2 additions & 6 deletions foundry.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This configuration file sets up the paths and compilers so we can test our solidity samples
# Main project configuration - compiles all samples except CCIP
# CCIP samples use their own foundry.toml in public/samples/CCIP/
[profile.default]
# Let Forge download/choose solc per file's pragma automatically
auto_detect_solc = true
evm_version = 'paris'

Expand All @@ -9,11 +9,9 @@ out = ".test/artifacts"
cache_path = ".test/cache"
libs = ["lib", "node_modules"]

# Optimization settings
optimizer = true
optimizer_runs = 1_000_000

# Test environment defaults
bytecode_hash = "none"
ffi = false
gas_price = 1
Expand All @@ -33,5 +31,3 @@ wrap_comments = true

[lint]
lint_on_build = false

# See more config options https://github.com/foundry-rs/foundry/tree/master/config
Loading
Loading