Skip to content
This repository was archived by the owner on Dec 4, 2023. It is now read-only.
This repository was archived by the owner on Dec 4, 2023. It is now read-only.

Replace solidity-compile with truffle's solc config #32

@armaniferrante

Description

@armaniferrante

Currently we overwrite truffle's solidity compilation process and run truffle-compile internally within oasis-compile so that we can mark the outputs confidential. This ignores the solc settings inside of truffle-confg.js.

A better solution would be to, instead, let the default truffle-solidity-compiler do its compilation, and then we read that output from build/contracts and then transform that output into confidential contracts.

However, we can't do this in truffle, as is. Specifically truffle processes all its "compilers", i.e., solc, external, and vyper, aynschronously. As a result, if we try the suggested solution above, we will read the build directory before the solc is done (since the external compiler will start concurrently).

As a result, the proposed solution above, probably requires a change to truffle.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions