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
15 changes: 15 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# 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"
directory: "/"
schedule:
interval: "weekly"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
7 changes: 7 additions & 0 deletions .github/workflows/build-setup.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# This file is used to install the Foundry toolchain and verify the installation.

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

- name: Verify Forge installation
run: forge --version
65 changes: 65 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: CI

on:
pull_request:
branches: [ main ]
push:
branches: [ main ]
workflow_dispatch:

concurrency:
group: rust-validation-${{ github.head_ref }}
cancel-in-progress: true

env:
RUST_BACKTRACE: full
CARGO_TERM_COLOR: always
IN_CI: "true"

jobs:
formatting:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v2

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: rustfmt

- name: Check Formatting
run: cargo fmt -- --check

linting:
timeout-minutes: 120
name: cargo clippy
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v2

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

- name: Verify Forge installation
run: forge --version

- name: install rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable

- uses: swatinem/rust-cache@v2
with:
cache-on-failure: "true"

- name: install protobuf and gmp
run: |
sudo apt-get update
sudo apt-get install -y protobuf-compiler libprotobuf-dev libgmp-dev

- name: Run Clippy
run: cargo clippy --tests --examples -- -D warnings
41 changes: 8 additions & 33 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 1 addition & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ broken_intra_doc_links = "deny"

[dependencies]
color-eyre = { version = "0.6" }
# eigensdk = { version = "0.5.0", features = ["crypto-bls", "utils"] }
eigensdk = { git = "https://github.com/Tjemmmic/eigensdk-rs.git", branch = "reader-type-annotations", features = ["crypto-bls", "utils"] }
eigensdk = { version = "0.5.0", features = ["crypto-bls", "utils"] }
serde = { version = "1.0.127", features = ["derive"] }
serde_json = { version = "1.0.67", features = ["alloc"] }
alloy = { version = "0.12" }
Expand All @@ -49,6 +48,3 @@ alloy-contract = { version = "0.12" }
alloy-provider = { version = "0.12" }
alloy-primitives = { version = "0.8" }
tracing = { version = "0.1.41" }

[build-dependencies]
blueprint-build-utils = { git = "https://github.com/tangle-network/blueprint", branch = "main" }
Loading
Loading