Skip to content

Commit 06e281a

Browse files
committed
update README
1 parent 99088cd commit 06e281a

1 file changed

Lines changed: 14 additions & 6 deletions

File tree

examples/cosmwasm/counter/README.md

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Cosmwasm Counter: Atomkraft example project
22

3+
## Install/update `atomkraft` cli
4+
5+
```
6+
pip install -U atomkraft
7+
```
8+
39
## Initialize atomkraft project
410

511
```
@@ -16,23 +22,25 @@ git submodule add --force git@github.com:Ethernal-Tech/counter-example-contract
1622
## Compile CosmWasm binary
1723

1824
```
25+
rustup target add wasm32-unknown-unknown
1926
RUSTFLAGS='-C link-arg=-s' cargo build --release --target wasm32-unknown-unknown --manifest-path counter-example-contract/Cargo.toml
2027
ls counter-example-contract/target/wasm32-unknown-unknown/release/counter.wasm # wasm binary
2128
```
2229

23-
## Create tests
24-
25-
- Add TLA+ models in `models/`
26-
- Add ITF traces in `traces/`
27-
- Add tests in `tests/`
28-
2930
## Generate and update reactors
3031

3132
```
3233
atomkraft reactor --actions "store_cw_contract,instantiate,reset,increment,get_count" --variables "count,last_msg"
3334
# update the `reactors/reactor.py`
3435
```
3536

37+
## Create tests
38+
39+
- Add ITF traces in `traces/`
40+
- Add TLA+ models in `models/`
41+
- Add tests in `tests/`
42+
- Soon we will provide CLI commands to auto-generate test files from traces or models)
43+
3644
## Update chain config
3745

3846
```

0 commit comments

Comments
 (0)