Skip to content

Commit e36093f

Browse files
author
Thiago Machado
committed
readme update
1 parent 1a99e4e commit e36093f

1 file changed

Lines changed: 27 additions & 2 deletions

File tree

README.md

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,33 @@
11
# Counter App
22

3-
Based on [near-examples/rust-counter](https://github.com/near-examples/rust-counter), this is a dummy project to be used during tests.
3+
Based on [near-examples/rust-counter](https://github.com/near-examples/rust-counter), this is an example project to show how the [contract-version](https://github.com/nearcomponents/contract-version) can be used. Please check that library for more details.
44

5-
Has an internal counter that can be incremented.
5+
This contract has an internal counter that can be incremented, and also has a view method to show information gathered at compile-time.
6+
7+
## Live Testing
8+
9+
Download and extract the latest [release](https://github.com/nearcomponents/contract-version-example/releases), _dev-deploy_ the `example_counter.wasm` and `near view` the `version` method.
10+
11+
Alternatively, you can use a live contract:
12+
```bash
13+
near view "dev-1644939364756-75367548411779" "version"
14+
```
15+
16+
output:
17+
```json
18+
{
19+
name: 'example-counter',
20+
semver: '0.0.2',
21+
git_sha: '5e9df2b96ded9a80c21c0609d27c36758d2bcfca',
22+
git_datetime: '2022-02-15 12:03:35 -0300',
23+
git_dirty: true,
24+
cargo_features: 'default',
25+
cargo_profile: 'release',
26+
rustc_semver: '1.56.1',
27+
rustc_llvm: '13.0',
28+
rustc_sha: '59eed8a2aac0230a8b53e89d4e99d55912ba6b35'
29+
}
30+
```
631

732
## Build
833

0 commit comments

Comments
 (0)