From dcc61c652cc7de2fc91170794370311cb8427c80 Mon Sep 17 00:00:00 2001 From: spypsy Date: Wed, 28 Aug 2024 16:09:20 +0000 Subject: [PATCH] reinstate l1-contracts package [ci dry-deploy] --- .circleci/config.yml | 10 ++++++++++ l1-contracts/Dockerfile | 4 ++++ l1-contracts/package.json | 15 +++++++++++++++ 3 files changed, 29 insertions(+) create mode 100644 l1-contracts/package.json diff --git a/.circleci/config.yml b/.circleci/config.yml index 2192378fa81..e449efc6620 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -430,6 +430,11 @@ jobs: command: | should_release || exit 0 yarn-project/deploy_npm.sh canary + - run: + name: "Release canary to NPM: l1-contracts" + command: | + should_release || exit 0 + deploy_npm l1-contracts canary - run: name: "Release latest to NPM: bb.js" command: | @@ -440,6 +445,11 @@ jobs: command: | should_release || exit 0 yarn-project/deploy_npm.sh latest + - run: + name: "Release latest to NPM: l1-contracts" + command: | + should_release || exit 0 + deploy_npm l1-contracts latest - run: name: "Update aztec-up" command: | diff --git a/l1-contracts/Dockerfile b/l1-contracts/Dockerfile index 2cfabf3ca1b..fbdf61b0e50 100644 --- a/l1-contracts/Dockerfile +++ b/l1-contracts/Dockerfile @@ -14,6 +14,10 @@ RUN foundryup --version nightly-de33b6af53005037b463318d2628b5cfcaf39916 WORKDIR /usr/src/l1-contracts COPY . . + +# Cleanup CI/CD files +RUN rm -rf terraform scripts + #RUN git init RUN forge clean && forge fmt --check && forge build && forge test --no-match-contract UniswapPortalTest diff --git a/l1-contracts/package.json b/l1-contracts/package.json new file mode 100644 index 00000000000..263d57c74d5 --- /dev/null +++ b/l1-contracts/package.json @@ -0,0 +1,15 @@ +{ + "name": "@aztec/l1-contracts", + "version": "0.1.0", + "license": "Apache-2.0", + "description": "Aztec contracts for the Ethereum mainnet and testnets", + "devDependencies": { + "solhint": "https://github.com/LHerskind/solhint#master" + }, + "scripts": { + "format": "forge fmt", + "lint": "solhint --config ./.solhint.json --fix \"src/**/*.sol\"", + "slither": "forge clean && forge build --build-info --skip '*/test/**' --force && slither . --checklist --ignore-compile --show-ignored-findings --config-file ./slither.config.json | tee slither_output.md", + "slither-has-diff": "./slither_has_diff.sh" + } +} \ No newline at end of file