Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
drewstone committed Oct 9, 2024
0 parents commit 1f6e965
Show file tree
Hide file tree
Showing 26 changed files with 13,319 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
if ! has nix_direnv_version || ! nix_direnv_version 2.3.0; then
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/2.3.0/direnvrc" "sha256-Dmd+j63L84wuzgyjITIfSxSD57Tx7v51DMxVZOsiUD8="
fi
use flake
# vi: ft=sh
14 changes: 14 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file

version: 2
updates:
- package-ecosystem: "cargo" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "daily"
open-pull-requests-limit: 5
reviewers:
- "shekohex"
36 changes: 36 additions & 0 deletions .github/workflows/foundry.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Foundry CI

on: workflow_dispatch

env:
FOUNDRY_PROFILE: ci

jobs:
foundry-check:
strategy:
matrix:
os: [ubuntu-latest]
fail-fast: true

name: Foundry project
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly

- name: Run Forge build
run: |
forge --version
forge build --sizes
id: build

- name: Run Forge tests
run: |
forge test -vvv
id: test
33 changes: 33 additions & 0 deletions .github/workflows/verify-template.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Verify Template
on:
workflow_dispatch:
pull_request:
push:
branches: [ 'main' ]
paths-ignore:
- "**.md"

jobs:
build:
runs-on: ubuntu-latest
env:
PROJECT_NAME: blueprint-template
steps:
- uses: actions/checkout@v4
- uses: JohnPeel/cargo-generate-action@main
with:
name: ${{ env.PROJECT_NAME }}
arguments: >
--define gh-username="webb-tools"
--define project-description="An example blueprint"
--define project-homepage="https://webb.tools"
--define flakes=true
--define docker=true
--define base-image="rustlang/rust:nightly"
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
- run: |
cp -r $PROJECT_NAME ${{ runner.temp }}/
cd ${{ runner.temp }}/$PROJECT_NAME
cargo check
30 changes: 30 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Generated by Cargo
target/

# These are backup files generated by rustfmt
**/*.rs.bk

# MSVC Windows builds of rustc generate these, which store debugging information
*.pdb

.idea
.vscode
.zed

.direnv
.DS_Store
# Solc Compiler files
cache/
out/

# Ignores development broadcast logs
!/broadcast
/broadcast/*/31337/
/broadcast/**/dry-run/

# Docs
docs/

# Dotenv file
.env
blueprint.lock
6 changes: 6 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[submodule "contracts/lib/forge-std"]
path = contracts/lib/forge-std
url = https://github.com/foundry-rs/forge-std
[submodule "contracts/lib/eigenlayer-middleware"]
path = contracts/lib/eigenlayer-middleware
url = https://github.com/Layr-Labs/eigenlayer-middleware
Loading

0 comments on commit 1f6e965

Please sign in to comment.