Coder Social home page Coder Social logo

solidml / cache-contract Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cache-token/cache-contract

0.0 0.0 0.0 1.88 MB

Smart Contracts for the CACHE Gold Token

Home Page: https://cache.gold

License: MIT License

Shell 0.04% JavaScript 29.00% CSS 2.72% HTML 68.24%

cache-contract's Introduction

CacheGold Contract

Overview

This repository contains the CacheGold contract; an ERC20 compatible token in which 1 token represents 1 gram of pure physical gold. A full description can be found in the token documentation.

A copy of our contract audit can be found here.

Install Dependencies

With node v8 or higher installed..

npm install

Truffle is installed by default to ./node_modules/.bin/truffle, but it can also be installed globally

npm uninstall -g truffle
npm install -g truffle

We are using the latest 5.x version (Currently 5.0.24)

Development Dependencies

ganache : Is used to run a local version of the ethereum blockchain for dev testing. You can download a release here

Developing Contract

Compile Contract

truffle compile
# or
npm run compile

Run Contract Tests

truffle test
# or 
npm run test

Deploy To Localhost with Ganache Running

npm run deploy-dev

Deploy To Ethereum Testnet

Need to fill in variables in .env

npm run deploy-ropsten

Viewing the hash of deployed contracts

truffle network

Run Code Coverage Tests

npm run coverage

Spits out a report to the ./coverage which can be served as a static site

cache-contract's People

Contributors

conscott 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.