near / near-sdk-rs

Rust library for writing NEAR smart contracts
https://near-sdk.io
Apache License 2.0
463 stars 249 forks source link

Proof of concept example: Rust Counter #485

Open mikedotexe opened 3 years ago

mikedotexe commented 3 years ago

One of the simplest Rust smart contracts is the [Rust Counter](https://github.com/near-examples/rust-counter). While there will be iterations of the Sandbox, let's aim for having a simple Sandbox test demonstration for this repository. As mentioned in #483 the test file(s) will live in: tests/sandbox

and will be run during cargo test.

It should download the Sandbox binary, start the Sandbox node, wait for it to be operational, then deploy the Rust Counter Wasm binary to an account, run a function like increment, check that the value is 1, patch state so the number is 19, then call increment again and ensure the value is 20.

d3v3us commented 2 years ago

I think this pull request closes this issue