Commit 826aeef8 authored by Mark Tyneway's avatar Mark Tyneway Committed by GitHub

contracts-bedrock: prepare for release (#2660)

Co-authored-by: default avatarmergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
parent 7689966e
[default] [default]
src = 'contracts' src = 'contracts'
# We need to build seperate artifacts for forge and hh, because they each expect a different
# structure for the artifacts directory.
out = 'forge-artifacts' out = 'forge-artifacts'
optimizer = true optimizer = true
optimizer_runs = 999999 optimizer_runs = 999999
...@@ -14,4 +12,5 @@ remappings = [ ...@@ -14,4 +12,5 @@ remappings = [
'forge-std/=node_modules/forge-std/src', 'forge-std/=node_modules/forge-std/src',
'ds-test/=node_modules/ds-test/src' 'ds-test/=node_modules/ds-test/src'
] ]
extra_output = ['devdoc', 'userdoc', 'metadata', 'storageLayout']
bytecode_hash = "none" bytecode_hash = "none"
...@@ -25,13 +25,12 @@ ...@@ -25,13 +25,12 @@
}, },
"scripts": { "scripts": {
"build:forge": "forge build", "build:forge": "forge build",
"build": "yarn hardhat compile", "build": "hardhat compile && tsc && hardhat typechain",
"test:hh": "yarn hardhat test", "build:ts": "tsc",
"test": "yarn test:forge", "test": "forge test",
"test:forge": "forge test",
"gas-snapshot": "forge snapshot", "gas-snapshot": "forge snapshot",
"slither": "slither .", "slither": "slither .",
"clean": "rm -rf ./artifacts ./forge-artifacts ./cache ./coverage ./tsconfig.tsbuildinfo", "clean": "rm -rf ./dist ./artifacts ./forge-artifacts ./cache ./coverage ./tsconfig.tsbuildinfo",
"lint:ts:check": "eslint .", "lint:ts:check": "eslint .",
"lint:contracts:check": "yarn solhint -f table 'contracts/**/*.sol'", "lint:contracts:check": "yarn solhint -f table 'contracts/**/*.sol'",
"lint:check": "yarn lint:contracts:check && yarn lint:ts:check", "lint:check": "yarn lint:contracts:check && yarn lint:ts:check",
......
export * from './utils'
export * from './generateProofs'
export * from './constants'
...@@ -2,7 +2,7 @@ import { task, types } from 'hardhat/config' ...@@ -2,7 +2,7 @@ import { task, types } from 'hardhat/config'
import { Contract, providers, utils, Wallet, Event } from 'ethers' import { Contract, providers, utils, Wallet, Event } from 'ethers'
import dotenv from 'dotenv' import dotenv from 'dotenv'
import { DepositTx } from '../helpers/index' import { DepositTx } from '../src'
dotenv.config() dotenv.config()
......
import { expect } from 'chai' import { expect } from 'chai'
import { BigNumber } from 'ethers' import { BigNumber } from 'ethers'
import { DepositTx, SourceHashDomain } from '../helpers' import { DepositTx, SourceHashDomain } from '../src'
describe('Helpers', () => { describe('Helpers', () => {
describe('DepositTx', () => { describe('DepositTx', () => {
......
{ {
"extends": "../../tsconfig.json", "extends": "../../tsconfig.json",
"include": ["./scripts/", "./helpers/"],
"compilerOptions": { "compilerOptions": {
"rootDir": ".", "rootDir": "./src",
"outDir": "./dist" "outDir": "./dist"
} },
"exclude": ["hardhat.config.ts", "deploy", "tasks", "test"],
"include": [
"src/**/*"
]
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment