Skip to content

DeepDoge/waffle-compiler

 
 

Repository files navigation

Ethereum Waffle

This is a fork of @ethereum-waffle/compiler, but without typechain.

waffle-compiler

Compile solidity without the hassle.

Installation

Install Instructions

Compilation

This package exposes programmatic api for compiling solidity smart contracts.

Examples:

// Compilation with a config file
import { compileProject } from "waffle-compiler"

main()
async function main() {
	await compileProject("path/to/waffle.json")
}
// Compilation with js config
import { compileAndSave, compile } from "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:

import { link } from ("waffle-compiler");

About

Compile solidity without the hassle.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 100.0%