Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/openzeppelin/solidity-loader
Solidity Hot Loader for Starter Kits. Not currently maintained
https://github.com/openzeppelin/solidity-loader
solidity truffle zepkit zeppelinos
Last synced: 3 months ago
JSON representation
Solidity Hot Loader for Starter Kits. Not currently maintained
- Host: GitHub
- URL: https://github.com/openzeppelin/solidity-loader
- Owner: OpenZeppelin
- Archived: true
- Created: 2019-02-24T18:16:19.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2021-04-21T19:44:15.000Z (over 3 years ago)
- Last Synced: 2024-05-03T14:31:56.001Z (8 months ago)
- Topics: solidity, truffle, zepkit, zeppelinos
- Language: JavaScript
- Homepage:
- Size: 1.23 MB
- Stars: 11
- Watchers: 3
- Forks: 12
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
```
⚠️ 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](https://openzeppelin.com/sdk/) and [Starter Kit](https://openzeppelin.com/start/).
#### 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,
}
},
},
],
}
```