Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
105 changes: 105 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,98 @@ jobs:
command: make <<parameters.binary_name>>
working_directory: <<parameters.working_directory>>

build_bundler: # runs not using Workflows must have a `build` job as entry point
docker: # run the steps with Docker
- image: cimg/node:16.6.2

steps: # a collection of executable commands
- checkout # special step to check out source code to working directory

- run:
name: package-json-all-deps
command: yarn create-all-deps
working_directory: ./packages/boba/bundler

- restore_cache: # special step to restore the dependency cache
key: dependency-cache-{{ checksum "yarn.lock" }}-{{ checksum "./packages/boba/bundler/all.deps" }}

- run:
name: yarn-install-if-no-cache
command: test -d node_modules/truffle || yarn
working_directory: ./packages/boba/bundler

- save_cache: # special step to save the dependency cache
key: dependency-cache-{{ checksum "yarn.lock" }}-{{ checksum "./packages/boba/bundler/all.deps" }}
paths:
- ./packages/boba/bundler/node_modules
- ./packages/boba/bundler/packages/node_modules
# - ./packages/boba/bundler/packages/client/node_modules
# - ./packages/boba/bundler/packages/common/node_modules
# - ./packages/boba/bundler/packages/contracts/node_modules

- run:
name: yarn-preprocess
command: yarn preprocess
working_directory: ./packages/boba/bundler

- persist_to_workspace:
root: .
paths:
- ./packages/boba/bundler

test_bundler:
working_directory: ~/aa # directory where steps will run
docker: # run the steps with Docker
- image: cimg/node:16.6.2
steps: # a collection of executable commands
- attach_workspace:
at: .
- run: # run tests
name: test
command: yarn lerna-test | tee /tmp/test-dev-results.log
working_directory: ./packages/boba/bundler
- store_test_results: # special step to upload test results for display in Test Summary
path: /tmp/test-dev-results.log
test_flow_bundler:
docker: # run the steps with Docker
- image: cimg/node:16.6.2
steps: # a collection of executable commands
- attach_workspace:
at: .
- run: # run hardhat-node as standalone process fork
name: hardhat-node-process
command: yarn hardhat-node
background: true
working_directory: ./packages/boba/bundler
- run: # run tests
name: test
command: yarn lerna-test-flows | tee /tmp/test-flows-results.log
working_directory: ./packages/boba/bundler
- store_test_results: # special step to upload test results for display in Test Summary
path: /tmp/test-flow-results.log

lint_bundler:
docker: # run the steps with Docker
- image: cimg/node:16.6.2
steps: # a collection of executable commands
- attach_workspace:
at: .
- run: # run tests
name: lint
command: yarn lerna-lint
working_directory: ./packages/boba/bundler
depcheck_bundler:
docker: # run the steps with Docker
- image: cimg/node:16.6.2
steps: # a collection of executable commands
- attach_workspace:
at: .
- run: # run tests
name: depcheck
command: yarn depcheck
working_directory: ./packages/boba/bundler
integration-tests:
resource_class: xlarge
machine:
image: ubuntu-2004:202111-02
docker_layer_caching: true
Expand Down Expand Up @@ -104,3 +195,17 @@ workflows:
name: proxyd-tests
binary_name: proxyd
working_directory: go/proxyd
- build_bundler
- test_bundler:
requires:
- build_bundler
- test_flow_bundler:
requires:
- build_bundler
- lint_bundler:
requires:
- build_bundler
- depcheck_bundler:
requires:
- build_bundler

95 changes: 95 additions & 0 deletions .github/workflows/account-abstraction.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
name: Build
on:
push:
paths:
- 'packages/boba/account-abstraction'
branches:
- '*'
pull_request:
paths:
- 'packages/boba/account-abstraction'
types: [opened, reopened, synchronize]

env:
TS_NODE_TRANSPILE_ONLY: 1
FORCE_COLORS: 1

defaults:
run:
working-directory: ./packages/boba/account-abstraction
# todo: extract shared seto/checkout/install/compile, instead of repeat in each job.
jobs:

test:
runs-on: ubuntu-latest

steps:
- uses: actions/setup-node@v1
with:
node-version: '14'
- uses: actions/checkout@v1
- uses: actions/cache@v2
with:
path: node_modules
key: ${{ runner.os }}-${{ hashFiles('yarn.lock') }}
- run: yarn install
- run: yarn compile

- run: yarn run ci

gas-checks:
runs-on: ubuntu-latest
services:
localgeth:
image: dtr22/geth-dev

steps:
- uses: actions/setup-node@v1
with:
node-version: '14'
- uses: actions/checkout@v1
- uses: actions/cache@v2
with:
path: node_modules
key: ${{ runner.os }}-${{ hashFiles('yarn.lock') }}
- run: yarn install
- run: yarn compile
- run: yarn ci-gas-calc

lint:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v1
with:
node-version: '14'
- uses: actions/checkout@v1
- uses: actions/cache@v2
with:
path: node_modules
key: ${{ runner.os }}-${{ hashFiles('yarn.lock') }}
- run: yarn install
- run: yarn lint

coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v1
with:
node-version: '14'
- uses: actions/checkout@v1
- uses: actions/cache@v2
with:
path: node_modules
key: ${{ runner.os }}-${{ hashFiles('yarn.lock') }}
- run: yarn install

- run: yarn compile

- run: FORCE_COLOR=1 yarn coverage
- uses: actions/upload-artifact@v2
with:
name: solidity-coverage
path: |
coverage/
coverage.json

61 changes: 0 additions & 61 deletions .github/workflows/sync-submodules.yml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
},
"dependencies": {
"@eth-optimism/contracts": "^0.5.13",
"@ethersproject/abstract-provider": "^5.5.1",
"@ethersproject/abstract-provider": "^5.5.0",
"@ethersproject/abstract-signer": "^5.5.0",
"@nomiclabs/hardhat-etherscan": "^2.1.8",
"@nomiclabs/hardhat-waffle": "^2.0.1",
Expand All @@ -42,14 +42,14 @@
"chai-as-promised": "^7.1.1",
"directory-tree": "^2.2.7",
"ethereum-waffle": "^3.3.0",
"ethers": "^5.4.5",
"ethers": "^5.5.4",
"hardhat": "^2.3.0",
"hardhat-deploy": "^0.9.3",
"mocha": "^8.3.1",
"rimraf": "^3.0.2",
"shx": "^0.3.3",
"solidity-coverage": "^0.7.17",
"ts-node": "^9.1.1",
"typescript": "^4.2.4"
"ts-node": "10.9.1",
"typescript": "^4.3.5"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"eslint-config-react-app": "^7.0.0",
"ethereumjs-abi": "^0.6.8",
"ethereumjs-util": "^7.0.5",
"ethers": "^5.0.32",
"ethers": "^5.5.4",
"html-react-parser": "^1.4.0",
"human-standard-token-abi": "^2.0.0",
"json5": "^2.1.2",
Expand Down
6 changes: 3 additions & 3 deletions boba_community/hc-kyc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@
"@types/mocha": "^8.2.2",
"chai": "^4.3.6",
"ethereum-waffle": "^3.4.0",
"ethers": "^5.0.32",
"ethers": "^5.5.4",
"hardhat": "^2.9.2",
"mocha": "^8.3.1",
"ts-node": "^9.1.1",
"typescript": "^4.2.3"
"ts-node": "10.1.0",
"typescript": "^4.3.5"
},
"dependencies": {
"@uniswap/sdk": "^3.0.3",
Expand Down
6 changes: 3 additions & 3 deletions boba_community/hc-monsters/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@
"@types/mocha": "^8.2.2",
"chai": "^4.3.6",
"ethereum-waffle": "^3.4.0",
"ethers": "^5.0.32",
"ethers": "^5.5.4",
"hardhat": "^2.9.2",
"mocha": "^8.3.1",
"ts-node": "^9.1.1",
"typescript": "^4.2.3"
"ts-node": "10.1.0",
"typescript": "^4.3.5"
},
"dependencies": {
"@uniswap/sdk": "^3.0.3",
Expand Down
6 changes: 3 additions & 3 deletions boba_community/hc-start/packages/dapp-contracts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@
"@types/mocha": "^8.2.2",
"chai": "^4.3.6",
"ethereum-waffle": "^3.4.0",
"ethers": "^5.6.2",
"ethers": "^5.5.4",
"hardhat": "^2.9.3",
"mocha": "^8.3.1",
"ts-node": "^9.1.1",
"typescript": "^4.2.3"
"ts-node": "10.9.1",
"typescript": "^4.3.5"
},
"dependencies": {
"@uniswap/sdk": "^3.0.3",
Expand Down
2 changes: 1 addition & 1 deletion boba_community/hc-start/packages/react-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"react-toastify": "^8.2.0",
"sass": "^1.50.0",
"styled-components": "^5.3.5",
"typescript": "^4.6.3"
"typescript": "^4.3.5"
},
"eslintConfig": {
"extends": [
Expand Down
6 changes: 3 additions & 3 deletions boba_community/hc-twitter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@
"@types/mocha": "^8.2.2",
"chai": "^4.3.6",
"ethereum-waffle": "^3.4.0",
"ethers": "^5.0.32",
"ethers": "^5.5.4",
"hardhat": "^2.8.4",
"mocha": "^8.3.1",
"ts-node": "^9.1.1",
"typescript": "^4.2.3"
"ts-node": "10.1.0",
"typescript": "^4.3.5"
},
"dependencies": {
"@uniswap/sdk": "^3.0.3",
Expand Down
2 changes: 1 addition & 1 deletion boba_examples/boba-fee/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
"license": "MIT",
"dependencies": {
"dotenv": "^16.0.0",
"ethers": "^5.6.1"
"ethers": "^5.5.4"
}
}
2 changes: 1 addition & 1 deletion boba_examples/boba-straw/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
"dependencies": {
"@eth-optimism/contracts": "^0.5.11",
"dotenv": "^14.3.2",
"ethers": "^5.5.3"
"ethers": "^5.5.4"
}
}
Loading