Code Monkey home page Code Monkey logo

oasis-credit's Introduction

OasisCredit ERC20 Token contract

Tech stack

To get up and running

  • run npm install to add node modules
  • create a .env file on root folder
    • create Eth address for owner of contract
    • add 'ROPSTEN_PRIVATE_KEY = "xxx"' : xxx = private key for address on ropsten network
    • add 'MAINNET_PRIVATE_KEY = "xxx"' : xxx = private key for address on mainnet
  • run truffle compile to build project
  • run truffle deploy --network ropsten --reset (re deploys contract)
  • Grab the OasisCredit contract address from the output and search on http://ropsten.etherscan.io/token-search to find the contract details
    • Use this address to add custom tokens to MyCrypto, MetaMask, etc and transfer tokens

To publicise smart contract code

  • Navigate to the 'Read Smart Contract' tab on the ropsten.etherscan.io/token/[tokenAddr]
  • Select Verify Smart Contract
  • Flatten contract code (OasisCredit.sol file) into one file (no using/import/inheritance)
  • Input Contract Address, Name, set Optimization = 'No'
  • Enter the solidity contract code
  • Verify and publish
  • Voila! The contract information is now visible

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.