4.0.3 • Published 7 months ago

@ethereum-waffle/compiler v4.0.3

Weekly downloads
12,351
License
MIT
Repository
github
Last release
7 months 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-dev.238c11c

7 months ago

4.0.3-dev.efd5f2a

7 months ago

4.0.3

1 year ago

4.0.1

2 years ago

4.0.2

2 years ago

4.0.0-alpha.21

2 years ago

4.0.0-alpha.9

2 years ago

4.0.0-alpha.17

2 years ago

4.0.0-alpha.16

2 years ago

4.0.0-alpha.15

2 years ago

4.0.0-alpha.14

2 years ago

4.0.0-alpha.19

2 years ago

4.0.0-alpha.18

2 years ago

4.0.0-alpha.17.4

2 years ago

4.0.0-alpha.13

2 years ago

4.0.0-alpha.12

2 years ago

4.0.0-alpha.11

2 years ago

4.0.0-alpha.10

2 years ago

4.0.0-alpha.20

2 years ago

4.0.0-alpha.7

2 years ago

4.0.0-alpha.8

2 years ago

4.0.0-alpha.5

2 years ago

4.0.0-alpha.6

2 years ago

4.0.0-alpha.3

2 years ago

4.0.0-alpha.4

2 years ago

4.0.0-alpha.1

2 years ago

4.0.0-alpha.2

2 years ago

3.4.4

2 years ago

4.0.0-alpha.0

2 years ago

3.4.0

3 years ago

3.3.1

3 years ago

3.3.0

3 years ago

3.2.2

3 years ago

3.2.1

3 years ago

3.2.0

4 years ago

3.1.2

4 years ago

3.1.1

4 years ago

3.1.0

4 years ago

3.0.3

4 years ago

3.0.2

4 years ago

3.0.1

4 years ago

3.0.0

4 years ago

3.0.0-beta.3

4 years ago

3.0.0-beta.2

4 years ago

2.5.1

4 years ago

2.5.0

4 years ago

3.0.0-beta.1

4 years ago

2.4.1

4 years ago

2.4.0

4 years ago

2.3.0

4 years ago