Skip to content

Latest commit

 

History

History
73 lines (48 loc) · 2.83 KB

README.md

File metadata and controls

73 lines (48 loc) · 2.83 KB

📜 OKP4 Smart Contracts

CosmWasm contracts for the OKP4 network.

release build lint test conventional commits license

✨ Smart Contracts

This repository contains the Smart Contracts deployed on the OKP4 network and running on CosmWasm.

The list of currently implemented contracts is as follows:

  • cw-template: base smart contract to start coding in the OKP4 blockchain.

🗂 Directory Structure

The project is structured around a set of Rust workspaces, each defining a smart contract.

.
├── contracts
│   └── <contract>
│       ├── Cargo.toml
│       ├── examples
│       ├── schema
│       └── src
└─── Cargo.toml

🏗 Build

Prerequisites

Be sure you have Rust properly installed with cargo-make.

$ cargo make --version
cargo-make 0.35.13

(your version may differ and that is fine)

Compiling Smart Contracts to Wasm

To compile the Smart Contracts to Wasm, just invoke the wasm goal of the makefile:

cargo make wasm

This will install the rust Wasm toolchain, if not already done, and start the process for compiling the Smart Contracts to Wasm.

Test Smart Contracts

The Smart Contracts are under unit testing. The tests can be launched with the following invocation:

cargo make test-coverage

You want to get involved? 😍

So you want to contribute? Great! ❤️ We appreciate any help you're willing to give. Don't hesitate to open issues and/or submit pull requests.

Please check out OKP4 health files: