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
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 git@github.com: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