All Projects → pubkey → solidity-cli

pubkey / solidity-cli

Licence: Apache-2.0 license
Compile solidity-code faster, easier and more reliable

Programming Languages

typescript
32286 projects
solidity
1140 projects
shell
77523 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to solidity-cli

Eth Crypto
Cryptographic javascript-functions for ethereum and tutorials to use them with web3js and solidity
Stars: ✭ 420 (+757.14%)
Mutual labels:  dapp, smart-contracts, web3, web3js
Web3swift
Elegant Web3js functionality in Swift. Native ABI parsing and smart contract interactions.
Stars: ✭ 237 (+383.67%)
Mutual labels:  dapp, smart-contracts, web3, web3js
full-blockchain-solidity-course-py
Ultimate Solidity, Blockchain, and Smart Contract - Beginner to Expert Full Course | Python Edition
Stars: ✭ 5,349 (+10816.33%)
Mutual labels:  dapp, smart-contracts, web3
typescript-eth-starter
🔌 Ethereum Dapp Basic Typescript Starter
Stars: ✭ 125 (+155.1%)
Mutual labels:  dapp, smart-contracts, web3
Ethereumbook
Mastering Ethereum, by Andreas M. Antonopoulos, Gavin Wood
Stars: ✭ 11,663 (+23702.04%)
Mutual labels:  dapp, smart-contracts, web3js
cyberevents
The protocol for EVENTs and TICKETs
Stars: ✭ 16 (-67.35%)
Mutual labels:  dapp, web3, web3js
go-ethutil
Ethereum utility functions for Go.
Stars: ✭ 17 (-65.31%)
Mutual labels:  dapp, smart-contracts, web3
Eth.social
An Ethereum dApp for posting social events.
Stars: ✭ 17 (-65.31%)
Mutual labels:  dapp, smart-contracts, web3
Web3 Vs Ethers
A basic cheatsheet of Web3.js vs Ethers (along w/ example apps!)
Stars: ✭ 103 (+110.2%)
Mutual labels:  dapp, web3, web3js
Erc20 Generator
Create an ERC20 Token for FREE in less than a minute with the most used Smart Contract Generator for ERC20 Token. No login. No setup. No coding required.
Stars: ✭ 202 (+312.24%)
Mutual labels:  dapp, smart-contracts, web3js
Blockchainbooks.github.io
Blockchain Books
Stars: ✭ 139 (+183.67%)
Mutual labels:  smart-contracts, web3, web3js
framework
Lightweight, open source and magic-free framework for testing solidity smart contracts.
Stars: ✭ 36 (-26.53%)
Mutual labels:  smart-contracts, web3, solc
React Ethereum Dapp Example
A starter boilerplate for an Ethereum dapp using web3.js v1.0, truffle, react, and parity
Stars: ✭ 384 (+683.67%)
Mutual labels:  smart-contracts, web3, web3js
awesome-waves
Curated list of awesome things for development on Waves blockchain.
Stars: ✭ 60 (+22.45%)
Mutual labels:  dapp, smart-contracts, web3
Starter Kit
An OpenZeppelin starter kit containing React, OpenZeppelin SDK & OpenZeppelin Contracts.
Stars: ✭ 101 (+106.12%)
Mutual labels:  dapp, web3, web3js
starter-kit-gsn
An OpenZeppelin starter kit focused on GSN.
Stars: ✭ 39 (-20.41%)
Mutual labels:  dapp, smart-contracts, web3
openzeppelin-network.js
An easy to use and reliable library that provides one line access to Web3 API.
Stars: ✭ 45 (-8.16%)
Mutual labels:  dapp, web3, web3js
ether-swr
Ether-SWR is a React hook that fetches Ethereum data. It streamlines the chores to keep the internal state of the Decentralized App (DApp), batches the RPC calls to an Ethereum node and cache the responses
Stars: ✭ 125 (+155.1%)
Mutual labels:  smart-contracts, web3
ethereum-scripts
Common useful JavaScript snippets for geth
Stars: ✭ 33 (-32.65%)
Mutual labels:  web3, web3js
hardhat-contract-sizer
Output Ethereum contract sizes with Hardhat 📐
Stars: ✭ 55 (+12.24%)
Mutual labels:  smart-contracts, solc

Solidity-Cli

Compile solidity-code faster, easier and more reliable

follow on Twitter



Features

  • Caching

    When you run the compilation as one step of your build-process, it could waste you much time always compiling the same contracts again and again. Solidity-Cli caches the compilation output and only recompiles when the code of your contract actually has changed.

  • Multi-Threading

    Compiling multiple contracts can take very long when done on a single process in series. Solidity-Cli compiles multiple contracts with a dedicated process per contract.

  • Version-Discovery

    Often you have different contracts with different solidity-versions. It is a struggle to install multiple compiler-versions in the same project. Solidity-Cli detects the version by the contracts code pragma solidity 0.X.X; and automatically installs it if needed.

  • Imports

    Solidity-Cli automatically manages the import-statements of your code. import "./OtherContract.sol"; just works.

  • Typescript-Support

    When you use typescript, you no longer have to manually add typings to the compilation output. Solidity-Cli generates a javascript and a typescript-file which only has to be imported.

Usage

CLI

npm install -g solidity-cli

Compile all *.sol files from one folder into the destination.

solidity -i './test/contracts/*.sol' -o ./test/compiled/

It's recommended to use solidity-cli inside of a script in your package.json

npm install solidity-cli --save-dev

{
    "scripts": {
      "pretest": "solidity-cli -i './contracts/*.sol' -o ./compiled"
    },
    "dependencies": {
        "solidity-cli": "X.X.X"
    }
}

Programmatically

Compile the given solidity-code.

import * as SolidityCli from 'solidity-cli';
const compiled = await SolidityCli.compileCode(myCode);

Compile the the given solidity-file.

import * as SolidityCli from 'solidity-cli';
const compiled = await SolidityCli.compileFile('/home/foobar/myProject/contracts/Basic.sol');

Compile all files from one folder and write the output to another.

import * as SolidityCli from 'solidity-cli';
await SolidityCli.runCli({
    sourceFolder: '/home/foobar/myProject/contracts/*.sol',
    destinationFolder: '/home/foobar/myProject/compiled/*.sol'
});
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].