Giter VIP home page Giter VIP logo

overlay-sales's Introduction

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.

overlay-sales's People

Contributors

daratao avatar kumanotanaka avatar

Watchers

 avatar  avatar

overlay-sales's Issues

Upgradability

It is controversial, but I think it is possible to have it done only under strict conditions.

Increase the number of addresses on the whitelist

Description

Currently, there is a 65KB limit on the parameters that can be sent at one time. This means that about 700 addresses are the limit of the whitelist.
And whitelisting() can only be called one time, since once that function is called, the status is set to Ready.

Task

  • Remove parameter changes in whitelisting()
  • Add setReady()
  • To be able to add to the state of whitelist

Support RIDO with USDC

now we can implement sale contract with usdc since concordium usdc usage test has been completed.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.