Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

oasis-compile

Package Overview
Dependencies
Maintainers
3
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

oasis-compile

truffle compiler extension for Oasis

  • 2.0.0
  • unpublished
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
3
Created
Source

Oasis Compile

CircleCI

Oasis-compile is a truffle compiler extension used to compile both Solidity and Rust contracts with or without confidentiality. It is expected to run within the context of the Oasis Contract-Kit, particularly for the use of compiling Rust contracts.

USAGE:

oasis-compile [command?]

COMMANDS:

  • default compiles all Solidity and Rust contracts in contracts/ outputing artifacts to .oasis-build/.
  • clean removes all compiled output from truffle and oasis-compile.

To ensure your contracts are properly compiled, place them in the contracts/ directory, relative to the root of your truffle project. For Rust, this includes your contract crate.

To compile your contracts with confidentiality, prepending b'\0enc' to a contract's bytecode, name either your solidity contract or rust crate directory of the form confidential_* or confidential-*. For example, confidential_MyContract.sol or confidential-my-rust-contract.

To integrate this into your truffle project, npm install the package and add the following to your truffle-config.js:

compilers: {
    external: {
        command: "./node_modules/.bin/oasis-compile",
        targets: [{
            path: "./.oasis-build/*.json"
        }]
    }
}

For examples, see https://github.com/oasislabs/oasis-box.

Keywords

FAQs

Package last updated on 21 Feb 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc