https://github.com/hyperweb-io/cw-check
cw-check verifies if the Wasm binary is a proper smart contract that's ready to be used with cw-simulate or uploaded on cw-simulate-ui.
https://github.com/hyperweb-io/cw-check
cosmwasm
Last synced: 12 months ago
JSON representation
cw-check verifies if the Wasm binary is a proper smart contract that's ready to be used with cw-simulate or uploaded on cw-simulate-ui.
- Host: GitHub
- URL: https://github.com/hyperweb-io/cw-check
- Owner: hyperweb-io
- Created: 2022-11-15T06:00:53.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-09T15:03:24.000Z (over 3 years ago)
- Last Synced: 2025-02-26T12:11:20.221Z (over 1 year ago)
- Topics: cosmwasm
- Language: JavaScript
- Homepage:
- Size: 500 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
cw-check
======
This package contains a sample implementation to verify if the Wasm binary is a proper smart
contract
that's ready to be used with [cw-simulate](https://github.com/Terran-One/cw-simulate) or uploaded
on [cw-simulate-ui](https://console.terran.one).
### Getting Started
Install all the dependencies:
```bash
$ npm install
```
OR
```bash
$ yarn
```
### Usage
```bash
$ yarn check wasm/cw_simulate_tests-aarch64.wasm
```
### Example
```javascript
import {check_contract} from '@terran-one/cw-check';
const result = await check_contract('artifacts/hackatom.wasm', [])
```
### TODO
- [ ] Add more tests
- [ ] Add support for capabilities