4.0.3 • Published 2 years ago

@ethereum-waffle/compiler v4.0.3

Weekly downloads
12,351
License
MIT
Repository
github
Last release
2 years ago

CircleCI npm.io

Ethereum Waffle

@ethereum-waffle/compiler

Compile solidity without the hassle.

Installation

In the current version of waffle (v2.x.x) you will install this package as a dependency of the main waffle package - ethereum-waffle.

yarn add --dev ethereum-waffle
npm install --save-dev ethereum-waffle

If you want to use this package directly please install it via:

yarn add --dev @ethereum-waffle/compiler
npm install --save-dev @ethereum-waffle/compiler

Feature overview

NOTE: You do not need to use this package directly. You can install it through the main package (ethereum-waffle) and use the CLI instead.

Compilation

This package exposes programmatic api for compiling solidity smart contracts.

You can learn more about it in the documentation.

Examples:

// Compilation with a config file
const {compileProject} = require('@ethereum-waffle/compiler');

main();
async function main () {
  await compileProject('path/to/waffle.json');
}
// Compilation with js config
const {compileAndSave, compile} = require('@ethereum-waffle/compiler');

main();
async function main () {
  const config = { sourceDirectory: 'contracts', nodeModulesDirectory: 'node_modules' };

  // compile and save the output
  await compileAndSave(config);

  // just compile
  const output = await compile(config);
  console.log(output);
}

Linking

Example:

const {link} = require('@ethereum-waffle/compiler');
4.0.3

2 years ago

4.0.1

3 years ago

4.0.2

3 years ago

4.0.0-alpha.21

3 years ago

4.0.0-alpha.9

3 years ago

4.0.0-alpha.17

3 years ago

4.0.0-alpha.16

3 years ago

4.0.0-alpha.15

3 years ago

4.0.0-alpha.14

3 years ago

4.0.0-alpha.19

3 years ago

4.0.0-alpha.18

3 years ago

4.0.0-alpha.17.4

3 years ago

4.0.0-alpha.13

3 years ago

4.0.0-alpha.12

3 years ago

4.0.0-alpha.11

3 years ago

4.0.0-alpha.10

3 years ago

4.0.0-alpha.20

3 years ago

4.0.0-alpha.7

3 years ago

4.0.0-alpha.8

3 years ago

4.0.0-alpha.5

3 years ago

4.0.0-alpha.6

3 years ago

4.0.0-alpha.3

3 years ago

4.0.0-alpha.4

3 years ago

4.0.0-alpha.1

3 years ago

4.0.0-alpha.2

3 years ago

3.4.4

3 years ago

4.0.0-alpha.0

3 years ago

3.4.0

4 years ago

3.3.1

4 years ago

3.3.0

4 years ago

3.2.2

4 years ago

3.2.1

5 years ago

3.2.0

5 years ago

3.1.2

5 years ago

3.1.1

5 years ago

3.1.0

5 years ago

3.0.3

5 years ago

3.0.2

5 years ago

3.0.1

5 years ago

3.0.0

5 years ago

3.0.0-beta.3

5 years ago

3.0.0-beta.2

5 years ago

2.5.1

5 years ago

2.5.0

5 years ago

3.0.0-beta.1

5 years ago

2.4.1

5 years ago

2.4.0

5 years ago

2.3.0

5 years ago