GithubHelp home page GithubHelp logo

isabella232 / solidity-loader Goto Github PK

View Code? Open in Web Editor NEW

This project forked from openzeppelin/solidity-loader

0.0 0.0 0.0 1.26 MB

Solidity Hot Loader for Starter Kits. Not currently maintained

JavaScript 91.75% Solidity 8.25%

solidity-loader's Introduction

⚠️ This was an experiment that is no longer maintained.

We encourage others to pick up the idea and develop it.

solidity-loader

Works well with OpenZeppelin SDK and Starter Kit.

Features

  • Allows importing .sol files directly into source code.
  • Allows to specify contract name for .sol files, like require("Contract.sol?contract=Counter").
  • Tracks dependencies for contracts, so children are updated when parents are modified.
  • Converts .sol files into .json using compile oz, oz push, and oz update.
  • Uses only development network so won't run on any other networks.
  • You can set the development network name using the loader's config.
  • Handles race conditions at Webpack pipeline using a lock.
  • Pulls build directory from truffle config.
  • In case oz commands are not available, uses cached versions of .json files.
  • Reports errors to console output and dev tools.
  • Compilation can be disabled using the loader's disabled config.

Import example

Counter = require("../../contracts/Counter.sol");
Wallet = require("../../contracts/Wallet.sol");

Config sample

{
    test: /.sol$/,
    use: [
    { loader: 'json-loader' },
    {
        loader: '@openzeppelin/solidity-loader',
        options: {
            network: 'development',
            disabled: false,
            }
         },
      },
    ],
}

solidity-loader's People

Contributors

frangio avatar nventuro avatar spalladino avatar ylv-io 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.