Skip to content

Commit

Permalink
Release/v0.6.2 (#817)
Browse files Browse the repository at this point in the history
* docker map of pks and Teleportation audit (#786)

(cherry picked from commit 0875625)

* Gateway: Package cleanup and improvement. (#783)

* change:  cleanup, reorder scripts, removed react-env, updated sentry packs.

* cleaning ts and setuptest

* updated test

* setup env for github workflow yarn test:coverage

* fix for snapshot issue

(cherry picked from commit 07e2cb9)

* [AA] use EPWrapper instead of senderCreator on aa-sdk (#784)

* replace senderCreator with wrapper

* add unit tests

* remove extra dump-address file

* make epw mandatory on the sdk high level provider

(cherry picked from commit 06fdeb7)

* [AA]tests: add AA alt-L1 integ tests (#687)

* add AA alt-L1 integ tests

* add docker-compose-side

* fix tests

* use epW instead of senderCreator

(cherry picked from commit ba6e162)

* Close webserver tests (#765)

* bump bundler, limit dependency bumps

* uncomment bundler related stuff

* build bundler in docker

* build fixes

* fix tests

* fix bundler building

* uncomment _disableInitializers

* fix running DTL

* v1.0.0

* fixing starting bundler and tests, default config

* local unsafe, linting fix in intg tests

* custom errors fixes

* new api for simple account contract

* use simple account factory proxy

* use simple account factory proxy in SimpleAccountAPI

* use simple account factory proxy in SimpleAccountAPI

* use wrappers to get around custom errors

* update entrypoint wrapper (#745)

* sponsoring fee fixed

* stricter validation for staking

* remove debug namespace, fix return for unaavailable rpc methods

* resolve #763

* fix linting

---------

Co-authored-by: Ino Murko <[email protected]>
Co-authored-by: Souradeep Das <[email protected]>
Co-authored-by: Boyuan-Chen <[email protected]>
(cherry picked from commit 6e27538)

* Improve Bundler SDK release pipeline (#782)

* formatting

bundler-sdk-pr

bundler-sdk-pr

path test

path test

testpath

trigger

fixing npm scope, github action path, version increment

* branch

* Delete package-lock.json

* fix missing dep

(cherry picked from commit 8623911)

* Fix WAGMI: failing to settle. (#792)

* Fix for wagmi settle invocation

(cherry picked from commit b3a8edb)

* Add runtime flag to enable debug methods (#793)

* resolve #761

* switch to bundler config

(cherry picked from commit 51880c4)

* [AA] Fix Bundler SDK commenter (#796)

* Update aa-bundler-sdk-pr.yml

* add 'packages/boba/bundler_utils/**/*'

* add-bundler-utils-to-release

(cherry picked from commit 85d455c)

* Add script for developers to manually relay messages (#725)

* Add script for developers to manually relay messages

* Update README.md

* Increase gas limit by 10%

(cherry picked from commit 8fde96f)

* [AA] Add Boba Goerli Testnet contract addresses (#803)

(cherry picked from commit 3f11a26)

* remove moonbeam and fantom integration tests (#812)

(cherry picked from commit 5a19341)

* textual changes for bobabeam (#816)

(cherry picked from commit 95a6d2b)

---------

Co-authored-by: Sahil K <[email protected]>
Co-authored-by: Souradeep Das <[email protected]>
Co-authored-by: Riedl Kevin, Bsc <[email protected]>
Co-authored-by: Boyuan-Chen <[email protected]>
  • Loading branch information
5 people authored May 14, 2023
1 parent d665aa8 commit 216cd2c
Show file tree
Hide file tree
Showing 110 changed files with 145,915 additions and 4,184 deletions.
34 changes: 9 additions & 25 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ commands:
docker_compose_file:
description: Docker compose file to use
type: string
docker_compose_side_file:
description: Docker compose side file to use
type: string
test_folder:
description: Folder to run tests in
type: string
Expand Down Expand Up @@ -79,13 +82,13 @@ commands:
- run:
name: Bring up services
command: |
docker-compose -f <<parameters.docker_compose_file>> -f docker-compose-side.yml up -d bobalink aa_deployer bundler
docker-compose -f <<parameters.docker_compose_file>> -f <<parameters.docker_compose_side_file>> up -d bobalink aa_deployer bundler
working_directory: ops
- run:
name: Start background logging
working_directory: ops
background: true
command: docker-compose -f <<parameters.docker_compose_file>> -f docker-compose-side.yml logs --follow
command: docker-compose -f <<parameters.docker_compose_file>> -f <<parameters.docker_compose_side_file>> logs --follow
- run:
name: Wait for sequencer
command: bash scripts/wait-for-sequencer.sh
Expand All @@ -100,7 +103,7 @@ commands:
working_directory: ops
- run:
name: Stop docker
command: docker-compose -f <<parameters.docker_compose_file>> -f docker-compose-side.yml down -v
command: docker-compose -f <<parameters.docker_compose_file>> -f <<parameters.docker_compose_side_file>> down -v
working_directory: ops
report-integration-tests:
steps:
Expand Down Expand Up @@ -174,26 +177,18 @@ jobs:
- download-solidity-compilers
- run-integration-tests:
docker_compose_file: "docker-compose.yml"
docker_compose_side_file: "docker-compose-side.yml"
test_folder: "eth-l2"
- report-integration-tests

integration-tests-moonbeam:
executor: intergration-tests-executor
parallelism: 4
steps:
- download-solidity-compilers
- run-integration-tests:
docker_compose_file: "docker-compose-moonbeam.yml"
test_folder: "alt-l2"
- report-integration-tests

integration-tests-avalanche:
executor: intergration-tests-executor
parallelism: 4
steps:
- download-solidity-compilers
- run-integration-tests:
docker_compose_file: "docker-compose-avalanche.yml"
docker_compose_side_file: "docker-compose-avalanche-side.yml"
test_folder: "alt-l2"
- report-integration-tests

Expand All @@ -204,27 +199,16 @@ jobs:
- download-solidity-compilers
- run-integration-tests:
docker_compose_file: "docker-compose-bnb.yml"
test_folder: "alt-l2"
- report-integration-tests

integration-tests-fantom:
executor: intergration-tests-executor
parallelism: 4
steps:
- download-solidity-compilers
- run-integration-tests:
docker_compose_file: "docker-compose-fantom.yml"
docker_compose_side_file: "docker-compose-bnb-side.yml"
test_folder: "alt-l2"
- report-integration-tests

workflows:
main:
jobs:
- integration-tests
- integration-tests-moonbeam
- integration-tests-avalanche
- integration-tests-bnb
- integration-tests-fantom
- go-lint-test-build:
name: proxyd-tests
binary_name: proxyd
Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/aa-bundler-sdk-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Will trigger release of AA-Bundler to NPM (PR comment)
on:
pull_request:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dorny/paths-filter@v2
id: filter
with:
filters: |
bundler_sdk:
- 'packages/boba/bundler_sdk/**/*'
- 'packages/boba/bundler_utils/**/*'
- name: PR commenter
if: steps.filter.outputs.bundler_sdk == 'true'
uses: mshick/add-pr-comment@v2
with:
message: |
⚠️ **This PR triggers a minor release of the Bundler SDK** (Account Abstraction) to NPM as you made changes in the corresponding `bundler_sdk` directory.
Please make sure this is intentional.
The package that is going to be updated is `@bobanetwork/bundler_sdk`.
12 changes: 10 additions & 2 deletions .github/workflows/aa-bundler-sdk.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
name: Publish AA-Bundler to NPM
on:
release:
types: [created]
push:
branches:
- develop
paths:
# only on change
- 'packages/boba/bundler_sdk/**/*'
- 'packages/boba/bundler_utils/**/*'

jobs:
build:
Expand All @@ -16,6 +21,9 @@ jobs:
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies and build 🔧
run: yarn install --frozen-lockfile --legacy-peer-deps && yarn run build
- name: Increment patch version
working-directory: ./packages/boba/bundler_sdk
run: npm version minor --legacy-peer-deps
- name: Publish package on NPM 📦
working-directory: ./packages/boba/bundler_sdk
run: npm publish --access public
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ts-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ jobs:
env:
FORCE_COLOR: 1
ENABLE_GAS_REPORT: 1
SKIP_PREFLIGHT_CHECK: true

- uses: codecov/codecov-action@v1
with:
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ packages/boba/gas-price-oracle/data
.env
*.log

# boba_community
boba_community/boba-relayer/yarn.lock

# boba_examples
boba_examples/init-fund-l2/yarn.lock
boba_examples/boba-fee/yarn.lock
Expand Down
1 change: 0 additions & 1 deletion boba_community/boba-node/docker-compose-bobabeam.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ services:
- ../../ops/envs/dtl.env
environment:
<< : *l1_rpc_dtl

DATA_TRANSPORT_LAYER__L2_RPC_ENDPOINT: 'https://replica.bobabeam.boba.network'
DATA_TRANSPORT_LAYER__SYNC_FROM_L1: 'false'
DATA_TRANSPORT_LAYER__SYNC_FROM_L2: 'true'
Expand Down
4 changes: 4 additions & 0 deletions boba_community/boba-relayer/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
L1_NODE_WEB3_URL=https://mainnet.infura.io/v3/KEY
L2_NODE_WEB3_URL=https://mainnet.boba.network
PRIV_KEY=
L2_TRANSACTION_HASH=
32 changes: 32 additions & 0 deletions boba_community/boba-relayer/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
description: Relay messages on L1
---

## Boba Message Relayer

This script allows anyone to check the status of a cross chain message from L2 to L1 and relay messages.

> This script supports all BOBA L2s
```bash
$ git clone [email protected]:bobanetwork/boba.git
$ cd boba/boba_community/boba-relayer
$ yarn clean # only needed / will only work if you had it installed previously
$ yarn
```

Then, add `.env` in `boba/boba_community/boba-relayer`.

```yaml
L1_NODE_WEB3_URL=https://mainnet.infura.io/v3/KEY
L2_NODE_WEB3_URL=https://mainnet.boba.network
PRIV_KEY=
L2_TRANSACTION_HASH=
```

Run the command to relay messages

```bash
$ yarn start
```

16 changes: 16 additions & 0 deletions boba_community/boba-relayer/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "@boba/boba-relayer",
"version": "1.0.0",
"scripts": {
"start": "node ./src/index.js",
"postinstall": "patch-package"
},
"license": "MIT",
"dependencies": {
"@eth-optimism/sdk": "1.0.1",
"dotenv": "^16.0.0",
"ethers": "^5.5.4",
"node-fetch": "2.6.0",
"patch-package": "^6.5.1"
}
}
Loading

0 comments on commit 216cd2c

Please sign in to comment.