Code Monkey home page Code Monkey logo

abc-erc20's Introduction

ABC1 ERC20 Token

Context

This ERC20 is part of a larger ABC token ecosystem. For regulatory reasons we need to audit the ERC20 first and ASAP. We are using openzeppelin's v2.3.0 release because that is what the specification we have received from the Thai SEC-approved portal (Longroot) uses.

Description

This repo contains information related to deploying the ERC20 currency token. We use truffle to manage all ethereum related interactions. Truffle also supports deploying contracts to mainnet. For more detail see this

Setup

The following needs to be installed:

  • npm
  • truffle (npm install -g truffle)

Then install deps for this repo

npm install

Setting an account and a node

To interact with the contracts, we need an account with some ETH. In addition, we need a geth node. We are currently setup to work with rinkeby. Make sure your account's private key and infura url are present in truffle-config.js.

Deploying

To deploy all contracts to the desired network run

truffle migrate --network rinkeby

Tests

There's currently a very simple test case on test/currencyContract.test.js. To run this and all other tests, do

truffle test --network rinkeby

If things are working properly, you should see something like this

Using network 'rinkeby'.


Compiling your contracts...
===========================
✔ Fetching solc version list from solc-bin. Attempt #1
> Everything is up to date, there is nothing to compile.



  Contract: LongRoot token
    ✓ should have zero balance (1163ms)
    ✓ should mint some (12677ms)


  2 passing (15s)

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.