GithubHelp home page GithubHelp logo

moonlight-ico's Introduction

Moonlight

Moonlight ICO Template

A C# ICO Template for the NEO Ecosystem

Overview

The Moonlight team is proud to provide a new ICO template for use by the NEO community. The template is written in C# and represents a feature-rich platform for token sales on the Neo blockchain. We welcome pull request and issue submission.

Features

  • All NEP-5 Methods Including allowance, transferFrom, and approve
  • Purchase of tokens with both NEO and GAS
  • Presale methods which support tiered vesting without blocking the accounts from additional purchase
  • KYC whitelisting and participation groups with variable participation blockHeight and allocations
  • Immediate token minting upon purchase
  • Multi-Stage vesting for founders allocation
  • Contract Migration
  • Presale allocation locking
  • Partial refunds at hardcap
  • Vested project token allocation

Quickstart

  1. Ensure that you correctly set InitialAdminAccount to your own address
  2. Build and deploy the contract with input params: 07
  3. Upon deployment you need to run the InitSmartContract administration method (can only be run once)
    • main("admin", ["InitSmartContract"])
    • Note: This is a latching method and cannot be undone
  4. Allocate presale purchase amounts
    • main("admin", ["AllocatePresalePurchase", hash160Recipient, tokenAmountFactorised]
  5. Lock future presale allocation
    • main("admin", ["LockPresaleAllocation"])
    • Note: This is a latching method and cannot be undone
  6. Public method to ensure transparent use of AllocatePresalePurchase
    • main("IsPresaleAllocationLocked", [])

Wallet Integration

  • Check if a user has been whitelisted
    • bool main("crowdsale_status", (hash160)address)

  • Get the participation group number for the whitelisted user
    • int main("GetGroupNumber", (hash160)address)

  • Get the max number of LX the group can purchase
    • int main("GetGroupMaxContribution")

  • Get the block number the group can start participating
    • int main("GetGroupUnlockBlock")

  • Determine if the specified group number can now purchase tokens
    • bool main("GroupParticipationIsUnlocked", (int)groupNumber)

  • Note: Group refers to the phase of the sale a user can participate in.

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.