/crowdsale-erc20-demo

Crowdsale

Primary LanguageJavaScriptMIT LicenseMIT

Crowdsale ERC-20 Demo

It's a Crowdsale Smart Contract with fixed minted Tokens at creation and Know Your Customer (KYC) implementation for cases where it's necessary. The implemented RUST backend simulates a contract management by the server side using same Wallet MNEMONIC that was used at contract creation. In this prototype project, RUST backend will be used to update de list of KYC approved users.

Live Demo

Crowdsale

Stack

RUST, Solidity, JavaScript, React, GitHub Actions, and AWS Lambda.

Truffle and React

First ensure you are in an empty directory.

Run the unbox command using 1 of 2 ways.

# Install Truffle globally and run `truffle unbox`
$ npm install -g truffle

Start the react dev server.

$ cd client
$ npm start
  Starting the development server...

You can use GANACHE to run a local blockchain and change truffle.config.ts to connect to your endpoint. Default installation for Ganache will run the blockchain at 7545 port, but for development you can use Truffle development network, check truffle documentation to get details.

Where can I find more resources?

This Box is a sweet combo of Truffle and Create React App. Either one would be a great place to start!

Cargo

If you don't know RUST, you can implement the same functionality using a simple Express.js API and deploy to AWS Lambda. To install Cargo you need check The Book

The compilation runtime depends of your machine, but you can install other runtime using rustup. A quick install of the dependencies in sign_on_rust folder will give you all that you need to build a binary. Cargo Lambda package has some heavy dependencies and could demand a good time and effort to install.