https://github.com/berzanorg/cosmwasm-counter-contract
https://github.com/berzanorg/cosmwasm-counter-contract
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/berzanorg/cosmwasm-counter-contract
- Owner: berzanorg
- License: mit
- Created: 2023-10-03T12:12:21.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-03T16:18:09.000Z (over 1 year ago)
- Last Synced: 2025-03-12T23:33:18.604Z (2 months ago)
- Language: Rust
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cosmwasm-counter-contract
This repository contains a Rust project developed for exploring [CosmWasm](https://cosmwasm.com/).
The smart contract has a state which can be modified by sending `Increment`, `Decrement`, `Reset` and `Set` messages.
The tests are in [`src/contract.rs`](https://github.com/BerzanXYZ/cosmwasm-counter-contract/tree/main/src/contract.rs) file.
This repository also contains JSON schema at [`schema/`](https://github.com/BerzanXYZ/cosmwasm-counter-contract/tree/main/schema) folder.
## Developing
Clone the repository:
```sh
git clone https://github.com/berzanxyz/cosmwasm-counter-contract.git
```Set current directory:
```sh
cd cosmwasm-counter-contract/
```Start VS Code:
```sh
code .
```Reopen the folder in a container:
> VS Code will notify you to reopen the folder in a container.
>
> Make sure you have Docker installed.## Building the smart contract
```sh
cargo wasm-relase # or cargo wasm-debug
```## Generating JSON schema
```sh
cargo schema
```## Checking if the smart contract is valid
```sh
cosmwasm-check target/wasm32-unknown-unknown/release/cosmwasm_counter_contract.wasm
```