Giter VIP home page Giter VIP logo

cennz_ed_kickstarter's Introduction

CENNZ_ED_Kickstarter

CENNZ_ED Event Kickstarter Project

OVERVIEW OF CENNZ KICKSTARTER PROJECT:

SINGLE CONTROLLING CONTRACT
  1. CREATOR_ACCOUNT_ADDRESS (Does not change)
  2. Create unique PROJECT_ID (new ID incremented +1 for each new project)
  3. PERCENTAGE of transfer to return to CREATOR_ACCOUNT_ADDRESS on payout to PROJECT_ACCOUNT_ADDRESS (profits)
  4. DELAY for payouts

Note: The contract needs to specifically emit details so it can be called

PROJECT
  1. PROJECT_ID
  2. Project owner PROJECT_ACCOUNT_ADDRESS
  3. MIN_CRYPTO contribution
  4. TOTAL_CRYPTO sum of contributions
  5. PAYOUT_CALL (BINARY - YES/NO) if TOTAL_CRYPTO > MIN_CRYPTO then PROJECT_ACCOUNT_ADDRESS can make PAYOUT_CALL can = YES, otherwise NO
  6. START_TIME
  7. END_TIME if reached, wait DELAY, then if PAYOUT_CALL is YES, transfer TOTAL_CRYPTO less PERCENTAGE to PROJECT_ACCOUNT_ADDRESS, if PAYOUT_CALL is NO, transfer MY_CRYPTO to FUNDER_ID (crypto is returned to the participant)
PARTICIPANT
  1. PROJECT_ID for project
  2. FUNDER_ID Participant identified by wallet
  3. MY_CRYPTO participant contribution amount
Need a front end that:
  1. Initiates a project
  2. That makes calls to the contract and reports contract details

In preparation to deploy: in ./src directory:

cargo generate \
    --name KickStarter \
    --git https://github.com/cennznet/contract-template

# Use rust nightly toolchain for contract dev.
cd KickStarter && rustup override set nightly

cennz_ed_kickstarter's People

Contributors

rachhunter avatar

Stargazers

 avatar

Forkers

millecodex

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.