https://github.com/celer-network/cbridge-cowa
CosmWasm Rust smart contracts for cbridge
https://github.com/celer-network/cbridge-cowa
Last synced: about 1 month ago
JSON representation
CosmWasm Rust smart contracts for cbridge
- Host: GitHub
- URL: https://github.com/celer-network/cbridge-cowa
- Owner: celer-network
- License: gpl-3.0
- Created: 2022-01-04T22:29:36.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-06-09T03:51:06.000Z (over 2 years ago)
- Last Synced: 2025-11-11T11:27:54.525Z (3 months ago)
- Language: Rust
- Size: 18.2 MB
- Stars: 1
- Watchers: 9
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cbridge-cowa
CosmWasm Rust smart contracts for cbridge
Folders:
- contracts: deployable cowa contracts, like cbridge, vault
- cowa-tmpl: template to generate a new deployable contract
- utils: helper func like abi encodePacked, kv helpers like owner, interfaces like verifySigs
## Create a new deployable contract
1. download cargo-generate from https://github.com/cargo-generate/cargo-generate/releases or compile locally
`cargo install cargo-generate --features vendored-openssl`
2. generate using contract template. xxx-yyy will be the folder and cargo name, use single word to avoid dash if possible. then move the folder under contracts/. (I can't figure out how to generate into the contracts folder directly)
```bash
cargo generate --path $PWD/cowa-tmpl --name xxx-yyy
mv xxx-yyy contracts/
```