* added initial foundry transformERC20 tests * added foundry tests into CircleCI flow * add verbosity for failing tests in CI * revert wrong CI commands * feat: Foundry, added some more deployments (#558) * Added some more deployments * Rename WETH9 to WETH9V06 * Set to 0.6.x * fix typo * remove commit with bad prettier changes * working bridge Fills through weth transformer * remove unused reference * clean up tests * added working otc fill through transformERC20 in FQT * resolve file imports, add samplers, arbitrumBridgeAdatper, and new FQT version * add extra 'v' for debugging verbosity * add extra 'v' for debugging verbosity in circleci config * remove old traces * refactor rpc's out of foundry.toml and into .env for CI compatibility * remove verbosity from CI command as its now defined in foundry.toml * setup rpc's * ignore foundry artifacts in prettier * change naming in prettierignore * move /samplers to the tests subdirectory, modify remappings to reflext change * one more try 🤞 * change CI steps * remove yarn from CI step * get to the right directory * update foundry before tests * fix tip() deprecation and use deal() * use deal() instead of vm.deal() * try to get foundry to have the right directory structure by updating it * I HATE THIS * remove foundryup * Fix prettier issues * Remove obsoleted import * Use forge native commands to install deps and test and add the --root option * Try using forge with working-directory flag in CI * Use nightly foundry docker image * Update rpc endpoints config in foundry * move tests into /forked and /local * rename tests * add foundry profiles to CI * try to fix CI * 🔧 add foundry local and forked tests to workflow * prettier and lint * revert deps update * remove all samplers and add uniswapV2 sampler to ForkUtils * address jacobs comments * cleanup and comment * prettier and lint * bump contracts-zero-ex version * set func-name-mixedcase to off in solhint for elenas new changes * max line length to warn * add --fix for check-md * Update ci.yml * fix some nitpcks and leftover code * fix inconsistent naming * fix bridge adapter reverts and foundry cache * migrate foundry integration tests to /tests * refactor contract-addresses to use the contract-addresses package style nested json * fix solhint * fix contract linting errors * dont check broken links in libraries * move forge order in gh action for testing * add env instead of vars * try again * fix github actions ordering * update licence and address comments * remove verbosity from foundry.toml * fix contract lint * move back to emitting an event until samplers can be integrated as some chains dont have uniswap as a source * add uniswap v3 sampling code for future use * remove uniswap v3 code as its not used * fix lint Co-authored-by: Noah Khamliche <0xnoah@Noahs-MacBook-Pro-2.local> Co-authored-by: Jacob Evans <jacob@dekz.net> Co-authored-by: elenadimitrova <elena@arenabg.com>
98 lines
6.1 KiB
JSON
98 lines
6.1 KiB
JSON
{
|
|
"private": true,
|
|
"name": "@0x/protocol-repo",
|
|
"engines": {
|
|
"node": ">=6.12"
|
|
},
|
|
"workspaces": [
|
|
"packages/*",
|
|
"contracts/*"
|
|
],
|
|
"scripts": {
|
|
"deps_versions:ci": "node ./node_modules/@0x/monorepo-scripts/lib/deps_versions.js",
|
|
"fix": "wsrun --fast-exit --parallel --exclude-missing -p $PKG -c fix",
|
|
"ganache": "ganache-cli -p 8545 --gasLimit 10000000 --networkId 50 -m \"${npm_package_config_mnemonic}\"",
|
|
"prettier": "prettier --write '**/*.{ts,tsx,json,sol}' --config .prettierrc",
|
|
"prettier:ci": "prettier --list-different '**/*.{ts,tsx,json,sol}' --config .prettierrc",
|
|
"test:installation": "node ./node_modules/@0x/monorepo-scripts/lib/test_installation.js",
|
|
"test:installation:local": "IS_LOCAL_PUBLISH=true node ./node_modules/@0x/monorepo-scripts/lib/test_installation.js",
|
|
"test:publish:ci": "yarn npm-cli-login -u test -p test -e test@example.com -r http://localhost:4873 && IS_LOCAL_PUBLISH=true run-s script:publish test:installation:local",
|
|
"run:publish": "run-s install:all script:prepublish_checks rebuild script:publish",
|
|
"run:publish:local": "IS_LOCAL_PUBLISH=true yarn run:publish",
|
|
"run:publish:gha": "run-s build script:publish:gha",
|
|
"script:prepublish_checks": "node ./node_modules/@0x/monorepo-scripts/lib/prepublish_checks.js",
|
|
"script:publish": "node ./node_modules/@0x/monorepo-scripts/lib/publish.js --repo protocol --doc-gen-config ./doc-gen-config.json",
|
|
"script:publish:gha": "node ./node_modules/@0x/monorepo-scripts/lib/publish.js --repo protocol --auto-commit --no-upload-docs --yes --doc-gen-config ./doc-gen-config.json --prerelease \"${PUBLISH_PRERELEASE}\"",
|
|
"install:all": "yarn install",
|
|
"wsrun": "wsrun",
|
|
"lerna": "lerna",
|
|
"build": "lerna link && wsrun -r --stages --fast-exit --exclude-missing -p $PKG -c build",
|
|
"build:ci": "lerna link && wsrun --fast-exit -r --stages --exclude-missing -p $PKG -c build:ci",
|
|
"build:contracts": "lerna link && wsrun -p ${npm_package_config_contractsPackages} --fast-exit -r --stages --exclude-missing -c build",
|
|
"build:ts": "tsc -b",
|
|
"watch:ts": "tsc -b -w",
|
|
"clean": "wsrun --fast-exit -r --parallel --exclude-missing -p $PKG -c clean",
|
|
"contracts:watch": "wsrun --parallel --exclude-missing -p $PKG -c watch",
|
|
"lint:contracts": "yarn solhint 'contracts/**/*.sol'",
|
|
"remove_node_modules": "lerna clean --yes; rm -rf node_modules",
|
|
"rebuild": "run-s clean build",
|
|
"test": "wsrun --fast-exit --serial --exclude-missing -p $(echo $(echo ${npm_package_config_contractsPackages} ${npm_package_config_nonContractPackages} | tr ' ' '\n' | sort | uniq) ${npm_package_config_ignoreTestsForPackages} | tr ' ' '\n' | sort | uniq -u | tr '\n' ' ') -c test",
|
|
"test:all": "wsrun --fast-exit --serial --exclude-missing -p $PKG -c test",
|
|
"test:contracts": "wsrun --serial -p $(echo ${npm_package_config_contractsPackages} ${npm_package_config_ignoreTestsForPackages} | tr ' ' '\n' | sort | uniq -u | tr '\n' ' ') --fast-exit --exclude-missing -c test",
|
|
"test:contracts:all": "wsrun --serial -p ${npm_package_config_contractsPackages} --fast-exit --exclude-missing -c test",
|
|
"test:links": "yarn check-md --ignore **/contracts/zero-ex/contracts/deps/forge-std/README.md,**/node_modules",
|
|
"generate_doc": "node ./node_modules/@0x/monorepo-scripts/lib/doc_generate.js --config ./doc-gen-config.json",
|
|
"upload_md_docs": "aws s3 rm --recursive s3://docs-markdown; wsrun --exclude-missing -c s3:sync_md_docs",
|
|
"diff_md_docs:ci": "wsrun --exclude-missing -c diff_docs",
|
|
"test:generate_docs:ci": "for i in ${npm_package_config_packagesWithDocPages}; do yarn generate_doc --package $i || break -1; done;",
|
|
"bundlewatch": "bundlewatch",
|
|
"lint:ts": "wsrun --fast-exit --parallel --exclude-missing -p $PKG -c lint",
|
|
"lint": "yarn lint:ts && yarn lint:contracts",
|
|
"upgrade_tools": "node node_modules/@0x/monorepo-scripts/lib/upgrade_deps.js -p '@0x/abi-gen|@0x/assert|@0x/base-contract|@0x/contracts-gen|@0x/dev-utils|@0x/json-schemas|@0x/monorepo-scripts|@0x/sol-compiler|@0x/sol-doc|@0x/sol-profiler|@0x/sol-resolver|@0x/sol-trace|@0x/sol-tracing-utils|@0x/subproviders|@0x/types|@0x/typescript-typings|@0x/utils|@0x/verdaccio|@0x/web3-wrapper|ethereum-types'",
|
|
"upgrade_deps": "node node_modules/@0x/monorepo-scripts/lib/upgrade_deps.js",
|
|
"verdaccio": "docker run --rm -i -p 4873:4873 0xorg/verdaccio"
|
|
},
|
|
"lint-staged": {
|
|
"**/*.{ts,tsx,json}": [
|
|
"prettier --write"
|
|
],
|
|
"**/*.sol": [
|
|
"prettier --write",
|
|
"solhint --fix"
|
|
]
|
|
},
|
|
"config": {
|
|
"contractsPackages": "@0x/contracts-erc20 @0x/contracts-test-utils @0x/contracts-utils @0x/contracts-zero-ex @0x/contracts-treasury",
|
|
"nonContractPackages": "@0x/contract-wrappers @0x/contract-addresses @0x/contract-artifacts @0x/contract-wrappers-test",
|
|
"ignoreTestsForPackages": "",
|
|
"mnemonic": "concert load couple harbor equip island argue ramp clarify fence smart topic",
|
|
"packagesWithDocPages": "@0x/contract-wrappers",
|
|
"ignoreDependencyVersions": "@types/styled-components @types/node",
|
|
"ignoreDependencyVersionsForPackage": "contract-wrappers"
|
|
},
|
|
"devDependencies": {
|
|
"@0x-lerna-fork/lerna": "3.16.10",
|
|
"@0x/monorepo-scripts": "^3.2.4",
|
|
"@0xproject/npm-cli-login": "^0.0.11",
|
|
"async-child-process": "^1.1.1",
|
|
"check-md": "^1.0.2",
|
|
"coveralls": "^3.0.0",
|
|
"ganache-cli": "6.12.2",
|
|
"husky": "^8.0.3",
|
|
"lerna": "^3.0.0-beta.25",
|
|
"lint-staged": "^13.1.0",
|
|
"npm-run-all": "^4.1.2",
|
|
"prettier": "2.7.1",
|
|
"prettier-plugin-solidity": "^1.0.0",
|
|
"solhint": "^3.3.7",
|
|
"solhint-plugin-prettier": "^0.0.5",
|
|
"source-map-support": "^0.5.6",
|
|
"typescript": "4.6.3",
|
|
"wsrun": "^5.2.4"
|
|
},
|
|
"resolutions": {
|
|
"**/bignumber.js": "^9.0.2"
|
|
},
|
|
"dependencies": {}
|
|
}
|