https://github.com/berzanorg/cosmwasm-name-system-contract
A name system smart contract for CosmWasm.
https://github.com/berzanorg/cosmwasm-name-system-contract
Last synced: about 2 months ago
JSON representation
A name system smart contract for CosmWasm.
- Host: GitHub
- URL: https://github.com/berzanorg/cosmwasm-name-system-contract
- Owner: berzanorg
- License: mit
- Created: 2023-10-04T14:09:31.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-04T15:32:16.000Z (over 1 year ago)
- Last Synced: 2025-03-12T23:33:18.658Z (2 months ago)
- Language: Rust
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cosmwasm-name-system-contract
This repository contains a Rust project developed for exploring [CosmWasm](https://cosmwasm.com/).
The smart contract acts as a name registry. Users can register and unregister names.
The tests are in [`tests/`](https://github.com/BerzanXYZ/cosmwasm-name-system-contract/tree/main/tests) file.
Generated JSON schema is in [`schema/`](https://github.com/BerzanXYZ/cosmwasm-name-system-contract/tree/main/schema) folder.
## Developing
Clone the repository:
```sh
git clone https://github.com/berzanxyz/cosmwasm-name-system-contract.git
```Set current directory:
```sh
cd cosmwasm-name-system-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
```## Running tests
```sh
cargo test
```## Generating JSON schema
```sh
cargo schema
```## Checking if the smart contract is valid
```sh
cosmwasm-check target/wasm32-unknown-unknown/release/cosmwasm_name_system_contract.wasm
```