Giter VIP home page Giter VIP logo

kaseicoin's Introduction

Martian Token Crowdsale

KaseiCoin is fungible token that is ERC-20 compliant and that will be minted by using a Crowdsale contract from the OpenZeppelin Solidity library. Martian Aerospace Agency wants to mint KaseiCoin and put on sale for human colony on Mars. “Kasei” means “Mars” in Japanese. You will launch a crowdsale that will allow people who are moving to Mars to convert their earthling money to KaseiCoin.

Usage Scenario: Martian Token Crowdsale

Assume you will create a fungible token that is ERC-20 compliant and that will be minted by using a Crowdsale contract from the OpenZeppelin Solidity library.

The crowdsale contract that you create will manage the entire crowdsale process, allowing users to send ether to the contract and in return receive KAI, or KaseiCoin tokens. Your contract will mint the tokens automatically and distribute them to buyers in one transaction.

The following steps can guide about the process involed in this challenge:

  • Create the KaseiCoin Token Contract
  • Create the KaseiCoin Crowdsale Contract
  • Create the KaseiCoin Deployer Contract
  • Deploy the Crowdsale to a Local Blockchain
  • Verify the transactions in MetaMask wallet and Ganache sandox environment

Required Tools:

The Solidity program is compiled and deployed over the Ethereum blockchain based sandbox environments called 'Remix VM (London)' and 'Injected Provider - MetaMask', which was previously called as Javascript VM. It will simulate the blockchain transactions defined in the smart contract.

Use the following tools to compile and deploy the program to test.

  • Remix Ethereum IDE - Remix IDE, is a no-setup tool with a GUI for developing smart contracts.
  • Ethereum Unit Converter - Ether to Wei unit convertor.
  • Ganache - Quickly fire up a personal Ethereum blockchain which you can use to run tests, execute commands, and inspect state while controlling how the chain operates.
  • MetaMask - A crypto wallet & gateway to blockchain apps

References:

  • Ethereum Smart Contract - A "smart contract" is simply a program that runs on the Ethereum blockchain. It's a collection of code (its functions) and data (its state) that resides at a specific address on the Ethereum blockchain.
  • ERC20 - The ERC-20 introduces a standard for Fungible Tokens, in other words, they have a property that makes each Token be exactly the same (in type and value) as another Token. For example, an ERC-20 Token acts just like the ETH, meaning that 1 Token is and will always be equal to all the other Tokens.
  • OpenZeppelin - Set of interfaces, contracts, and utilities are all related to the ERC20 Token Standard.

Usage

To use the smart contract, follow the key steps described as below:

  • Clone the repository and load KaseiCoin.sol and KaseiCoinCrowdsale.sol in Remix IDE. You may see the web console view as:

Smart Contract

  • While deploying, select Remix VM (London) as a sandbox environment.

  • You may compile and deploy the smart contract to use it further.

  • In order to integrate Remix IDE with MetaMask and MetaMask with Ganache, you may an article here.

  • Choose 'Injected Provider - MetaMask' as a sandbox blockchain Environment to connect Remix IDE with MetaMask.


Evaluation Evidence: KaseiCoin Minting and Deployment

Note: Take note of 'At Address' field values when deploying the contract *.sol files.

Scenario: Compile KaseiCoin Contract
Step 1

Scenario: Compile KaseiCoinCrowdsale Contract
Step 2

Scenario: KaseiCoinCrowdsaleDeployer with MetaMask
Step 3

Scenario: KaseiCoinCrowdsaleDeployer Deployed
Step 4

Scenario: KaseiCoinCrowdsale Deployed Address
Step 5

Scenario: KaseiCoin Purchased
Step 6

Scenario: KaseiCoin Contract Creation Evidence on Ganache
Step 7

Scenario: KaseiCoin Contract Call Evidence on Ganache
Step 8

Scenario: KaseiCoin Contract Call Log Evidence on Remix IDE
Step 9

Scenario: KaseiCoin Wallet Details Evidence on Remix IDE
Step 10

Scenario: KaseiCoin Activity Log Evidence on MetaMask
Step 11

Contributors

FinTech Labs, Inc.


License

None

kaseicoin's People

Contributors

dinesh-m avatar

Watchers

 avatar  avatar

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.