Giter VIP home page Giter VIP logo

masterminter's Introduction

Master Minter

Dependencies

Dependency Version
Metamask 7.7.9
Node v11.0.0

Steps to execute contract functionalities

Note: Deployed contract address: 0x32aB83680353EEF7083C772D74BB7CDAFbBdf1C6

  1. Install the dependencies
npm install
  1. Run,
npm run remixd
  1. Login to the Metamask with mnemonic pig skull wine supply april fluid thing emerge pistol crucial crush cactus and select the first account to execute the owner authorised functionalities.

  2. Open Remix solidity browser

  3. Attach remixd to the solidity browser to set up the contracts.

  4. Select compiler version 0.5.17+commit.d19bba13 and compile the contracts.

  5. Select the MasterMinter contract from the sidebar

  6. Instead of deploying the contract click on At Address with the MasterMinter deployed contract address in parameters(deployed contract address: 0x32aB83680353EEF7083C772D74BB7CDAFbBdf1C6)

  7. Execute functions, to

  • register a new minter as a owner, execute the function registerMinter with minter address in parameters.
  • request mint as a minter, execute the function requestMint with the investor address and token amount in parameters.
  • approve mint as a owner, execute the function approveMintTokens with the minter address, investor address and token amount as parameters.
  • reject mint as a owner, execute the function rejectMintTokens with the minter address, investor address and token amount as parameters.
  • mint tokens as a owner, execute the function mintTokens with the investor address and token amount as parameters.
  • burn tokens as a user, execute the function burnTokens with the token amount as the parameter.
  • check the balance of an investor, execute the function balanceOf with the investor address as the parameter.
  • check if the minter is registered or not, execute the function registeredMinter with the minter address as the parameter
  • check the remaining requested token amount, execute the function requestedTokenAmount with the minter address and investor address as parameters.
    Note: All the rest of the ERC20 functions can be performed as usual.

Steps to run test-cases

  1. Install the dependencies
npm install
  1. Compile the contracts, run
npm run compile
  1. Run test-cases
npm run test

masterminter's People

Contributors

jayeshbairagi avatar dependabot[bot] avatar

Watchers

James Cloos avatar  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.