0.0.1-alpha.9 • Published 6 years ago
@eth-optimism/examples v0.0.1-alpha.9
Overview
This is just an example of using our solc-transpiler as the solc-js compiler within waffle and truffle.
Truffle
Transpiling
- Make sure the
@eth-optimisim/solc-transpilerdependency points to the latest release - Run
yarn install - Run
truffle compile --config truffle-config-ovm.js - 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
yarn installrm -rf buildtruffle compiletruffle test ./truffle-tests/test-erc20.js
Testing w/ OVM
yarn installrm -rf buildtruffle compile --config truffle-config-ovm.js- Make sure the
rollup-full-nodeis running truffle test ./truffle-tests/test-erc20.js --config truffle-config-ovm.js
Waffle
Transpiling
- Make sure the
@eth-optimisim/solc-transpilerdependency points to the latest release - Run
yarn install - Run
yarn build:waffle - See the compiled + transpiled output in the contract JSON in the
build/waffle/directory
0.0.1-alpha.9
6 years ago
0.0.1-alpha.8
6 years ago
0.0.1-alpha.6
6 years ago
0.0.1-alpha.7
6 years ago
0.0.1-alpha.5
6 years ago
0.0.1-alpha.4
6 years ago
0.0.1-alpha.3
6 years ago
0.0.1-alpha.2
6 years ago