-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into feat/setRollupTimestampRefresh
- Loading branch information
Showing
33 changed files
with
1,441 additions
and
508 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
'@eth-optimism/l2geth': patch | ||
'@eth-optimism/core-utils': patch | ||
--- | ||
|
||
Implement the next fee spec in both geth and in core-utils |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@eth-optimism/message-relayer': patch | ||
--- | ||
|
||
Adds a new set of tools for generating messages to be relayed and their proofs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
name: Static analysis | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- develop | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
env: | ||
PYTEST_ADDOPTS: "--color=yes" | ||
|
||
jobs: | ||
slither: | ||
name: Slither run | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Fetch history | ||
run: git fetch | ||
|
||
- name: Setup node | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: '12.x' | ||
|
||
- name: Get yarn cache directory path | ||
id: yarn-cache-dir-path | ||
run: echo "::set-output name=dir::$(yarn cache dir)" | ||
|
||
- uses: actions/cache@v2 | ||
id: yarn-cache | ||
with: | ||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | ||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-yarn- | ||
- name: Install Dependencies | ||
# only install dependencies if there was a change in the deps | ||
# if: steps.yarn-cache.outputs.cache-hit != 'true' | ||
run: yarn install | ||
|
||
- name: Build | ||
run: yarn build | ||
|
||
- name: Set up Python 3.8 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.8' | ||
|
||
- name: Install Slither | ||
run: pip3 install slither-analyzer | ||
|
||
- name: Run analysis | ||
working-directory: ./packages/contracts | ||
shell: bash | ||
run: yarn test:slither | ||
continue-on-error: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
14.17.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,14 +23,14 @@ Extensive documentation is available [here](http://community.optimism.io/docs/) | |
* [`message-relayer`](./packages/message-relayer): Service for relaying L2 messages to L1 | ||
* [`l2geth`](./l2geth): Fork of [go-ethereum v1.9.10](https://github.com/ethereum/go-ethereum/tree/v1.9.10) implementing the [OVM](https://research.paradigm.xyz/optimism#optimistic-geth). | ||
* [`integration-tests`](./integration-tests): Integration tests between a L1 testnet, `l2geth`, | ||
* [`ops`](./ops): Contains Dockerfiles for containerizing each service involved in the protocol, | ||
* [`ops`](./ops): Contains Dockerfiles for containerizing each service involved in the protocol, | ||
as well as a docker-compose file for bringing up local testnets easily | ||
|
||
## Quickstart | ||
|
||
### Installation | ||
|
||
Dependency management is done using `yarn`. | ||
Dependency management is done using `yarn`. | ||
|
||
```bash | ||
git clone [email protected]:ethereum-optimism/optimism.git | ||
|
@@ -67,7 +67,7 @@ you can run `yarn lerna run test --parallel --since master` | |
#### Running the integration tests | ||
|
||
The integration tests first require bringing up the Optimism stack. This is done via | ||
a Docker Compose network. For better performance, we also recommend enabling Docker | ||
a Docker Compose network. For better performance, we also recommend enabling Docker | ||
BuildKit | ||
|
||
```bash | ||
|
@@ -110,3 +110,11 @@ can be hard to filter through. In order to view the logs from a specific service | |
``` | ||
docker-compose logs --follow <service name> | ||
``` | ||
### Static analysis | ||
|
||
To run `slither` locally in `./packages/contracts` do | ||
|
||
``` | ||
pip3 install slither-analyzer | ||
yarn test:slither | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.