@eth-optimism/contracts
v0.0.0-202192701014build
yarn build:contracts && yarn autogen:artifacts && yarn build:typescript
build:typescript
tsc -p ./tsconfig.build.json
build:contracts
hardhat compile --show-stack-traces
build:dump
ts-node bin/take-dump.ts
autogen:markdown
node scripts/generate-markdown.js
autogen:artifacts
node scripts/generate-artifacts.js && node scripts/generate-deployed-artifacts.js
test
yarn test:contracts
test:contracts
hardhat test --show-stack-traces
test:coverage
NODE_OPTIONS=--max_old_space_size=8192 hardhat coverage
test:slither
slither .
pretest:slither
rm -f @openzeppelin && rm -f @ens && rm -f hardhat && ln -s ../../node_modules/@openzeppelin @openzeppelin && ln -s ../../node_modules/@ens @ens && ln -s ../../node_modules/hardhat hardhat
posttest:slither
rm -f @openzeppelin && rm -f @ens && rm -f hardhat
lint:ts:check
eslint .
lint:contracts:check
yarn solhint -f table 'contracts/**/*.sol'
lint:check
yarn lint:contracts:check && yarn lint:ts:check
lint:ts:fix
eslint --fix .
lint:contracts:fix
yarn prettier --write 'contracts/**/*.sol'
lint:fix
yarn lint:contracts:fix && yarn lint:ts:fix
lint
yarn lint:fix && yarn lint:check
clean
rm -rf ./dist ./artifacts ./cache ./tsconfig.build.tsbuildinfo
deploy
ts-node bin/deploy.ts && yarn autogen:markdown
prepublishOnly
yarn copyfiles -u 1 -e "**/test-*/**/*" "contracts/**/*" ./
postpublish
rimraf chugsplash L1 L2 libraries standards
prepack
yarn prepublishOnly
postpack
yarn postpublish
pre-commit
lint-staged
npm i @eth-optimism/[email protected]
Metadata
- MIT
- Whatever
- Optimism PBC
- released 10/27/2021