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

@eth-optimism/examples

Package Overview
Dependencies
Maintainers
4
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@eth-optimism/examples

Example of using solc-transpiler & Web3 full node in place of solc-js and other Web3 providers

  • 0.0.1-alpha.9
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8
increased by300%
Maintainers
4
Weekly downloads
 
Created
Source

Overview

This is just an example of using our solc-transpiler as the solc-js compiler within waffle and truffle.

Truffle

Transpiling

  1. Make sure the @eth-optimisim/solc-transpiler dependency points to the latest release
  2. Run yarn install
  3. Run truffle compile --config truffle-config-ovm.js
  4. See the compiled + transpiled output in the contract JSON in the build/contracts/ directory

Testing

The beauty of the OVM and our compatibility with Ethereum dev tools is that you can test regularly or test against the OVM without any code changes.

Testing Regularly

  1. yarn install
  2. rm -rf build
  3. truffle compile
  4. truffle test ./truffle-tests/test-erc20.js

Testing w/ OVM

  1. yarn install
  2. rm -rf build
  3. truffle compile --config truffle-config-ovm.js
  4. Make sure the rollup-full-node is running
  5. truffle test ./truffle-tests/test-erc20.js --config truffle-config-ovm.js

Waffle

Transpiling

  1. Make sure the @eth-optimisim/solc-transpiler dependency points to the latest release
  2. Run yarn install
  3. Run yarn build:waffle
  4. See the compiled + transpiled output in the contract JSON in the build/waffle/ directory

Keywords

FAQs

Package last updated on 20 Feb 2020

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