Skip to content

Moonlight-io/moonlight-ico-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

NEP5 contract template for the NEO community

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published