[Feature] Implement ICO methods
See original GitHub issueThe release of the NEX ICO Template introduces several handy methods that are interesting. Specifically,the crowdsale handling methods that allow the client to check if the sales is active and if the address is whitelisted.
While this set of methods are not an official standard, the rise of contracts following these set of standard has been increasing and it is beneficial to include them as part of the API offering.
Specifics
- Comb through the NEX ICO template and find the methods to implement. Focus on methods that are useful from a client perspective (what methods are useful for a light wallet?)
- These methods are to belong in the
api/crowdsale.js
file.
References
- The methods you are crafting are probably similar to what is found in
api/nep5.js
Issue Analytics
- State:
- Created 6 years ago
- Reactions:3
- Comments:6 (6 by maintainers)
Top Results From Across the Web
How to Launch a Successful ICO in 10 Easy Steps - Velvetech
The key principle of ICO work is to raise capital by leveraging blockchain technology to issue and distribute tokens. It involves financial ...
Read more >ICO Development Checklist: 11 Easy Steps To Succeed
An initial coin offering (ICO) is a popular fundraising method that involves selling digital assets to raise funds for your blockchain-based project.
Read more >Initial Coin Offering (ICO): Coin Launch Defined, with Examples
Investors can generally use fiat or digital currency to buy the new tokens, and it's increasingly common for investors to pay using other...
Read more >ICO 101: A beginner's guide to raising capital using ...
An initial coin offering (ICO) is a way to raise capital for your project by selling blockchain-based digital assets.
Read more >What Are ICOs and How Do They Work? - SGR Law
ICOs are another form of cryptocurrency that businesses use in order to raise capital. Through ICO trading platforms, investors receive unique ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I have just read through the Orbis Contract and while it is nice that they are using C#, there is now a difference in methods:
Python:
crowdsale_status
returns a boolean or a integer depending on whether have you contributed.crowdsale_available
returns an integerC#:
checkKYC
is the equivalent ofcrowdsale_status
but returns strings ‘on’ or ‘off’ C# does not offer thecrowdsale_available
equivalent@snowypowers so there are three functions that seem interesting to me, two of which are crowdsale related and the other is
mintTokens
:crowdsale_status
: gets the KYC Status of an addresscrowdsale_available
: the amount of tokens left for sale in the crowdsalemintTokens
: is this already implemented? Exchange NEO/GAS for the tokenThis one is more general, but seems interesting to add as well:
circulation
: the total amount of tokens in circulationThe rest are token owner functions