overlaydao / overlay-sales

Concordium smart contract modelling sales information of projects listed in OVERLAY

Home Page:https://overlay.global

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OVERLAY sales smart contract

This is the Concordium smart contract modelling sales information of projects listed in OVERLAY.

This smart contract module stores sales data of OVERLAY.

How to build

Prerequisite

You need to install the following tools to build this smart contract source codes.

  1. rustup
  2. cargo-concordium

Please refer to the Concordium official Quick start guide for more information.

Build

  • Hit the following command to build.
# navigate to the ovl-sale-ccd-public project folder.
% cd ovl-sale-ccd-public

# run the build command.
% cargo concordium build

Then you can find wasm file built under the following directory.

% ls ./target/concordium/wasm32-unknown-unknown/release/ovl_sale_ccd_public.wasm.v1 
./target/concordium/wasm32-unknown-unknown/release/ovl_sale_ccd_public.wasm.v1

How to run unit test

You can build and run unit tests by the following steps.

# navigate to the ovl-sale-ccd-public project folder.
% cd ovl-sale-ccd-public

# hit the following command to test your wasm modules with concordium-std/concordium-quickcheck features.
% cargo concordium test -- --features wasm-test

# you can also run the following test command mainly for non-wasm modules.
% cargo test

LICENSE

see LICENSE file.

About

Concordium smart contract modelling sales information of projects listed in OVERLAY

https://overlay.global

License:Mozilla Public License 2.0


Languages

Language:Rust 100.0%