Coder Social home page Coder Social logo

anupam-io / solctemplate Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 119 KB

Custom smart contract development kit with mocha & ganache-cli

JavaScript 96.64% Solidity 3.36%
ganache solidity-template solctemplate-testing mocha ganache-cli solcjs solc solc-js

solctemplate's Introduction

Custom smart-contract development kit with mocha & ganache-cli

Instructions for deploying on a network/ganache

  • If you are testing on ganache
    • you don't need a seed phrase, as you can query ganache for unlocked accounts
  • If you want to deploy on a network(such as a test network or mainnet)
    • you need to set seedPhrase and rpcEndpoint appropriately

How to run?

  • npm i: for package installation
  • npm run compile: compilation of contracts
> [email protected] compile
> node compileAll.js

Compiling  MyContract.sol ...
MyContract.sol  compiled.
  • npm run test: mocha tests
> [email protected] test
> mocha

  MyContract
    โœ“ is correctly deploying on the network. (38ms)


  1 passing (166ms)
  • npm run migrate: run all deploy scripts in migrations folder
> [email protected] migrate
> node migrateAll.js;

Working good here.
Attempting to deploy from account  0x00F167379B6492581e4D96389411cdc591c112C3
Successfully deployed at:  0xFb056459D6B077CC3cDE71E592f63dA07BEb78aC

Dependencies

  "dependencies": {
    "@truffle/hdwallet-provider": "^1.2.2",
    "async": "^3.2.0",
    "fs-extra": "^9.0.1",
    "ganache-cli": "^6.12.1",
    "mocha": "^8.2.1",
    "solc": "^0.8.0",
    "web3": "^1.3.1"
  }

solctemplate's People

Contributors

anupam-io avatar

Stargazers

 avatar

Watchers

 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.