Skip to content

Commit

Permalink
Simplify and update Trident config (#230)
Browse files Browse the repository at this point in the history
* ✨ Update config + update initial programs and accounts for Trident SVM

* ✨ Resolve some additional issues with workspace / cargo paths + simplify config

* ✨ Update metaplex cpi example

* ✨ Code quality

* ⚡️ Pipeline update
  • Loading branch information
lukacan authored Jan 2, 2025
1 parent 0e5a2df commit 8d2514c
Show file tree
Hide file tree
Showing 33 changed files with 1,908 additions and 6,374 deletions.
2 changes: 1 addition & 1 deletion .github/actions/setup-rust/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ runs:
steps:
# Install essential system packages required for building Rust projects
- name: Install system packages
run: sudo apt-get update && sudo apt-get install -y build-essential libudev-dev # Installs essential packages like GCC and libudev development headers
run: sudo apt-get update && sudo apt-get install -y build-essential libudev-dev protobuf-compiler libprotobuf-dev # Installs essential packages like GCC and libudev development headers
shell: bash

# Install Rust nightly toolchain and additional components
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/fuzz.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,12 +143,12 @@ jobs:
- name: Cache Target Folder
uses: actions/cache@v3
with:
path: examples/fuzz-tests/cpi-metaplex-7/trident-tests/fuzzing/honggfuzz/hfuzz_target # Cache the folder where build artifacts are stored
path: examples/cpi/cpi-metaplex-7/trident-tests/fuzzing/honggfuzz/hfuzz_target # Cache the folder where build artifacts are stored
key: target-${{ runner.os }}-cpi-metaplex-7 # Unique key for caching based on OS and test

# Run the fuzzing test using Trident in the cpi-metaplex-7 directory
- name: Test Fuzz
working-directory: examples/fuzz-tests/cpi-metaplex-7 # Set the working directory for the fuzzing test
working-directory: examples/cpi/cpi-metaplex-7/trident-tests # Set the working directory for the fuzzing test
run: trident fuzz run-hfuzz fuzz_0 # Run the fuzz test with trident

checks:
Expand Down
65 changes: 33 additions & 32 deletions Cargo.lock

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

3 changes: 2 additions & 1 deletion crates/client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ description = "The trident_client crate helps you build and deploy an Anchor pro

# Trident
trident-fuzz = { path = "../fuzz", version = "0.2.1" }
trident-idl-spec = { git = "https://github.com/Ackee-Blockchain/trident-idl-spec", version = "0.0.1" }
trident-config = { path = "../config", version = "0.0.1" }
trident-idl-spec = { git = "https://github.com/Ackee-Blockchain/trident-idl-spec", version = "0.0.1" }

# Misc
tokio = { version = "1", features = ["full"] }
Expand All @@ -29,6 +29,7 @@ quote = "1"
toml = { version = "0.8", features = ["preserve_order"] }
convert_case = "0.6"
pathdiff = "0.2"
rand = "0.8"


[dev-dependencies]
Expand Down
Loading

0 comments on commit 8d2514c

Please sign in to comment.