@eth-optimism/contracts

v0.1.8
This package contains the various Ethereum smart contracts that make up the Layer 1 component of Optimism's Optimistic Rollup construction.

all

yarn clean && yarn build && yarn test && yarn lint:fix && yarn lint

build

yarn run build:contracts && yarn run build:typescript && yarn run build:copy && yarn run build:dump && yarn run build:typechain

build:kovan

yarn run build:contracts && yarn run build:typescript && yarn run build:copy && CHAIN_ID=69 yarn run build:dump && yarn run build:typechain

build:mainnet

yarn run build:contracts && yarn run build:typescript && yarn run build:copy && CHAIN_ID=10 yarn run build:dump && yarn run build:typechain

build:typescript

tsc -p .

build:contracts

hardhat compile --show-stack-traces

build:dump

ts-node "bin/take-dump.ts"

build:copy

yarn run build:copy:artifacts && yarn run build:copy:contracts

build:copy:artifacts

copyfiles -u 1 "artifacts/**/*.json" "build/artifacts"

build:copy:contracts

copyfiles -u 2 "contracts/optimistic-ethereum/**/*.sol" "build/contracts"

build:typechain

hardhat typechain

test

yarn run test:contracts

test:contracts

hardhat test --show-stack-traces

test:gas

hardhat test "test/contracts/OVM/execution/OVM_StateManager.gas-spec.ts" --no-compile --show-stack-traces

lint

yarn run lint:typescript

lint:typescript

tslint --format stylish --project .

lint:fix

yarn run lint:fix:typescript

lint:fix:typescript

prettier --config prettier-config.json --write "hardhat.config.ts" "{src,test}/**/*.ts"

clean

rm -rf ./artifacts ./build ./cache

deploy

./bin/deploy.js

serve

./bin/serve_dump.sh
npm i @eth-optimism/[email protected]

Metadata

  • MIT
  • Whatever
  • Unknown
  • released 2/22/2021

Downloads