You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We need a new example project in the examples/ directory demonstrating how to write and deploy a simple counter contract using the Miden SDK. This will complement the existing storage-example project by showcasing the account API in action and providing a reference implementation for developers.
Implementation
Create a new folder: examples/counter-contract
Scaffold a Rust-based client project in that folder, following the pattern in examples/storage-example:
Include Cargo.toml, src/lib.rs, and WIT files.
Write the contract code inspired by the tutorial's MASM code at miden-tutorials.
Add documentation (README.md) in the counter-contract folder explaining:
How to build the contract.
How to run the example client (link to the miden-tutorials.
Add a counter_contract test in tests/integration/src/rust_masm_tests/examples.rs that compiles it and checks the code and AccountComponentMetadata from the Miden package.
The text was updated successfully, but these errors were encountered:
After #436 is merged.
Motivation
We need a new example project in the
examples/
directory demonstrating how to write and deploy a simple counter contract using the Miden SDK. This will complement the existingstorage-example
project by showcasing the account API in action and providing a reference implementation for developers.Implementation
examples/counter-contract
examples/storage-example
:Cargo.toml
,src/lib.rs
, and WIT files.README.md
) in thecounter-contract
folder explaining:miden-tutorials
.counter_contract
test intests/integration/src/rust_masm_tests/examples.rs
that compiles it and checks the code andAccountComponentMetadata
from the Miden package.The text was updated successfully, but these errors were encountered: