Skip to content

Commit

Permalink
Merge pull request #325 from athenavm/improve-vm-sdk-devex
Browse files Browse the repository at this point in the history
improve the vm sdk dev experience
  • Loading branch information
poszu authored Jan 30, 2025
2 parents 13884bf + ff33133 commit da23cad
Show file tree
Hide file tree
Showing 30 changed files with 351 additions and 547 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version-file: 'ffi/athcon/bindings/go/go.mod'
go-version-file: "ffi/athcon/bindings/go/go.mod"
cache-dependency-path: "**/go.sum"

- name: Download test binaries
Expand Down Expand Up @@ -165,9 +165,8 @@ jobs:
RUSTFLAGS="-Copt-level=3 -Cdebug-assertions -Coverflow-checks=y -Cdebuginfo=0 -C target-cpu=native" \
cargo check --manifest-path examples/Cargo.toml --all-targets --all-features
- name: Compile wallet-template tests
# Note: it's not possible to execute the tests yet as they need a risc-v machine (the VM)
run: RUSTUP_TOOLCHAIN=athena cargo t --manifest-path examples/wallet/program/Cargo.toml --no-run --target riscv32em-athena-zkvm-elf
- name: Run example contracts tests
run: cargo t --manifest-path examples/Cargo.toml

cli:
name: CLI
Expand Down
5 changes: 0 additions & 5 deletions Cargo.lock

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

195 changes: 39 additions & 156 deletions examples/Cargo.lock

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

14 changes: 7 additions & 7 deletions examples/contract_template/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,21 @@ edition = "2021"

[dependencies]
parity-scale-codec = { version = "3.6.12", features = ["derive"] }
athena-interface = { git = "https://github.com/athenavm/athena", tag = "v0.6.3" }
athena-vm = { git = "https://github.com/athenavm/athena", tag = "v0.6.3" }
athena-vm-declare = { git = "https://github.com/athenavm/athena", tag = "v0.6.3" }
athena-vm-sdk = { git = "https://github.com/athenavm/athena", tag = "v0.6.3" }
athena-interface = { path = "../../interface" }
athena-vm = { path = "../../vm/entrypoint" }
athena-vm-declare = { path = "../../vm/declare" }
athena-vm-sdk = { path = "../../vm/sdk" }

[dev-dependencies]
contract_template = { path = ".", features = ["unittest"] }
athena-sdk = { git = "https://github.com/athenavm/athena", tag = "v0.6.3" }
athena-runner = { git = "https://github.com/athenavm/athena", tag = "v0.6.3" }
athena-sdk = { path = "../../sdk" }
athena-runner = { path = "../../runner" }
ed25519-dalek = { version = "2.1.1", features = ["rand_core"] }
rand = "0.8.5"
tracing-subscriber = { version = "0.3.18", features = ["env-filter"] }

[build-dependencies]
athena-builder = { git = "https://github.com/athenavm/athena", tag = "v0.6.3" }
athena-builder = { path = "../../builder/" }

# Required to automatically build the VM program in unittests
# Used in build.rs
Expand Down
Loading

0 comments on commit da23cad

Please sign in to comment.