Skip to content
Solidity Hot Reloading for ZepKit
Branch: master
Clone or download
Latest commit ec339ba May 14, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
test Support --no-interactivity May 14, 2019
.eslintrc.js Add jest tests Feb 28, 2019
.gitignore
README.md Support full inheritance chain Mar 5, 2019
babel.config.js Add jest tests Feb 28, 2019
index.js
jest.config.js Add jest tests Feb 28, 2019
package-lock.json Support --no-interactivity May 14, 2019
package.json Support --no-interactivity May 14, 2019

README.md

zeppelin-solidity-hot-loader

Works well with ZepKit and ZeppelinOS.

Features

  • Allows to import .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->zos push->zos update.
  • Uses only development network, so won't run on any other networks.
  • You can set development network name using loader's config.
  • Handles race conditions at webpack pipeline using lock.
  • Pulls build directory from truffle config.
  • In case zos command not available, uses cached versions of .json files.
  • Reports error to console output and dev tools.
  • Compilation can be disabled using 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: 'zeppelin-solidity-hot-loader',
        options: {
            network: 'development',
            disabled: false,
            }
         },
      },
    ],
}
You can’t perform that action at this time.