6.0.0 • Published 4 years ago

embark-compiler v6.0.0

Weekly downloads
104
License
MIT
Repository
github
Last release
4 years ago

embark-compiler

Embark compiler module

Abstracts the compiler interface and exposes a plugin api to register contract extensions and how to handle them. It accepts command requests to compile and returns the aggregated compilation result.

API

command: compiler:contracts:compile

arguments:

  • contractFiles -
  • options - config object {isCoverage: boolean (default: false)}

response:

  • error
  • compiledObject - compilation result
  {
    runtimeBytecode: <deployed bytecode>
    realRuntimeByteCode: <deployed bytecode without swarm hash>
    code: <bytecode>
    abiDefinition: <abi object>

    swarmHash: (optional)
    gasEstimates: (optional)
    functionHashes: (optional)
    filename: (optional) <contract relative filename>
    originalFilename: (optional) <contract real filename>
  }

example:

import { File } from 'src/lib/core/file.js';
const contractFiles = [(new File({path: "simplestorage.sol", type: "custom", resolver: (cb) => { return cb(".. contract code...") }}))];

embark.events.request("compiler:contracts:compile", contractFiles, {}, (err, compiledObject) => {
})

Plugins

This module enables the registerCompiler plugin API. see documentation

embark.registerCompiler

arguments:

  • extension - extension of the contract language (e.g .sol)
  • response callback
    • contractFiles: filenames matching the extension
    • callback(error, compiledObject)

Visit framework.embarklabs.io to get started with Embark.

6.0.0

4 years ago

5.3.0

4 years ago

5.3.0-nightly.17

4 years ago

5.3.0-nightly.16

4 years ago

5.3.0-nightly.15

4 years ago

5.3.0-nightly.14

4 years ago

5.3.0-nightly.13

4 years ago

5.3.0-nightly.12

4 years ago

5.3.0-nightly.11

4 years ago

5.3.0-nightly.10

4 years ago

5.3.0-nightly.9

4 years ago

5.3.0-nightly.7

4 years ago

5.3.0-nightly.6

4 years ago

5.3.0-nightly.5

4 years ago

5.3.0-nightly.4

4 years ago

5.3.0-nightly.3

4 years ago

5.3.0-nightly.2

4 years ago

5.3.0-nightly.1

4 years ago

5.3.0-nightly.0

4 years ago

5.2.3

4 years ago

5.2.4-nightly.0

4 years ago

5.2.2

4 years ago

5.2.0

4 years ago

5.2.0-nightly.4

4 years ago

5.2.0-nightly.3

4 years ago

5.2.0-nightly.2

4 years ago

5.2.0-nightly.1

4 years ago

5.2.0-nightly.0

4 years ago

5.1.2-nightly.0

4 years ago

5.1.1

4 years ago

5.1.1-nightly.2

4 years ago

5.1.1-nightly.0

4 years ago

5.1.0

4 years ago

5.1.0-nightly.5

4 years ago

5.1.0-nightly.4

4 years ago

5.1.0-nightly.1

4 years ago

5.1.0-nightly.0

4 years ago

5.0.0

4 years ago

5.0.0-beta.0

4 years ago

5.0.0-alpha.9

4 years ago

5.0.0-alpha.8

4 years ago

5.0.0-alpha.5

4 years ago

5.0.0-alpha.4

4 years ago

5.0.0-alpha.2

4 years ago

5.0.0-alpha.1

4 years ago

5.0.0-alpha.0

5 years ago

4.1.1

5 years ago

4.1.0

5 years ago

4.1.0-beta.3

5 years ago

4.1.0-beta.1

5 years ago

4.0.0

5 years ago

4.0.0-beta.1

5 years ago