Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alpine 3.14.0 - make: /bin/sh: Operation not permitted #182

Closed
chrislowth opened this issue Jun 30, 2021 · 17 comments
Closed

Alpine 3.14.0 - make: /bin/sh: Operation not permitted #182

chrislowth opened this issue Jun 30, 2021 · 17 comments

Comments

@chrislowth
Copy link

"make" reports "/bin/sh: Operation not permitted".

To reproduce ...

$ docker run -ti --rm alpine:3.14.0
/ # cd
~ # apk add make
fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/x86_64/APKINDEX.tar.gz
(1/1) Installing make (4.3-r0)
Executing busybox-1.33.1-r2.trigger
OK: 6 MiB in 15 packages
~ # echo -e "one:\n\tdate > one" > Makefile
~ # cat Makefile 
one:
	date > one
~ # make
date > one
make: /bin/sh: Operation not permitted
make: *** [Makefile:2: one] Error 127
~ # 

This works with alpine 3.13.4 ...

$ docker run -ti --rm alpine:3.13.4
/ # cd
~ # apk add make
fetch https://dl-cdn.alpinelinux.org/alpine/v3.13/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.13/community/x86_64/APKINDEX.tar.gz
(1/1) Installing make (4.3-r0)
Executing busybox-1.32.1-r5.trigger
OK: 6 MiB in 15 packages
~ # echo -e "one:\n\tdate > one" > Makefile
~ # cat Makefile 
one:
	date > one
~ # make
date > one
~ # 
@vetali
Copy link

vetali commented Jun 30, 2021

As per Alpine 3.14.0 Release Notes,
the easiest way to fix this is to upgrade Docker to version 20.10.0 or later.

@dathan
Copy link

dathan commented Jul 1, 2021

Looks like this was introduced in the last 15 days. The builds from 3 months ago seem to work

tynes added a commit to ethereum-optimism/optimism that referenced this issue Jul 1, 2021
A bug has appeared when older versions of Docker are used to build
alpine based images in alpine version 3.14. To prevent this problem
from happening to the users, this PR pins the version to 3.13.

The observed problem is that `make` cannot run any command and
the error message states `Operation not permitted.` Removing
`make` was one way to solve the problem but that would increase
the diff from upstream geth.

See these links for details:
alpinelinux/docker-alpine#182
https://wiki.alpinelinux.org/wiki/Release_Notes_for_Alpine_3.14.0
InoMurko added a commit to omgnetwork/optimism that referenced this issue Jul 15, 2021
* Fixed wallet integration test (#95)

* Update watcher-utils.ts

* Fixed contracts

* remove GH actions that break due to missing permissions

* naming consistency, added comments to code snippets that will need to be changed when the message-relayer-fast autodeploys

Co-authored-by: CAPtheorem <79423264+CAPtheorem@users.noreply.github.com>

* tests: replica syncing (#981)

* [wip] add l2_dtl and replica images

* passing basic dummy tx test

* add erc20 test

* add sync test to ci

Co-authored-by: Mark Tyneway <mark.tyneway@gmail.com>

* fix[relayer]: update exported files list in package.json (#1138)

* fix[relayer]: update exported files

* chore: add changeset

* fix: import path (#1141)

* fix: correct import path for altered contract path

* chore: add changeset

* refactor: improve logging for batch submission timeout scenarios (#1120)

* Fixed CrossDomainMessenger name (#96)

* Add highest L1 and L2 block number Gauge metrics to DTL (#1125)

* build: add prom-client to data-transport-layer

* refactor: thread metrics more carefully through data-transport-layer; add two new metrics

* style: fix some style issues

* refactor: make metrics mandatory

* refactor: move metrics register code to top of file

* style: apply linting

* refactor: move promethesus initialization after express

* refactor: move promBundle call up, provide registry

* build: add changeset

* Improve Watcher ability to find transactions (#1107)

* remove listeners and use loop to find tx receipt

* add yarn ready

* moved filters inside loop

* [added] changeset

* Add minimal vscode settings and extensions (#1109)

* chore: add minimal vscode settings and extensions

* chore: Add "files.trimTrailingWhitespace" to vscode native config

* chore: replace vscode prettier plugin with eslint plugin

* fix[contracts]: remove part of MultiMessageRelayer deployment (#1144)

* fix[contracts]: remove part of MultiMessageRelayer deployment

* chore: add changeset

* Define L1 Starting block via OwnershipTransferred rather than AddressSet (#1129)

* Update service.ts

* Create thirty-years-look.md

Co-authored-by: smartcontracts <kelvinfichter@gmail.com>

* Easy fix for broken watchers (#1121)

* Easy fix for broken watchers

* Ran yarn changeset

Co-authored-by: Liam Horne <liam@lihorne.com>

* feat: go packages (#1111)

* go: add utils module

* readme: update

* Version Packages (#1094)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* build: add husky pre-commit hook to lint (#1146)

* feat[contracts]: add mainnet deploy script (#1147)

* Add mainnet deploy script

* Update mainnet.sh

* Address PR review feedback

* feat: mainnet contract deployment 0.4.0 (#1148)

* feat: mainnet contract deployment 0.4.0

* feat: deployments readme

* chore: add changeset

* contracts: remove dead contract

* contracts: remove dead config

* tests: fix to not test for old contracts

* feat: `rollup gasPrices` RPC endpoint (#1136)

* feature: l2geth  endpoint

* chore: add changeset

Co-authored-by: Liam Horne <liam@lihorne.com>

* Adds l2 standard bridge to contracts markdown file (#1151)

* Version Packages (#1150)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Add more info about our branching strategy to the README (#1114)

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Remove references to OVM_L1ETHGateway in deployments and readme (#1119)

* Keep the user logged in after changing chain (#99)

* Keep the user logged in after changing chain

* Update Nft.js

* Detect if user is in the wrong chain

Co-authored-by: cby3149 <cby3149@outlook.com>
Co-authored-by: CAPtheorem <79423264+CAPtheorem@users.noreply.github.com>

* Merge conflics resolve (#110)

* wip

* gethl2

* wip

* batch submitter

* core utils

* DTL

* message relayer

* contracts

* wip

* Update service.ts

* DTL

* messaage-relayer

* Update yarn.lock

* final 5 files

* [pull] develop from ethereum-optimism:develop (#91)

* chore: reduce hardhat timeout to 20 seconds (#968)

* fix: force LF line endings for scripts to avoid docker problems on Windows (#974)

* fix: use correct line endings for windows

* chore: add changeset

* refactor[contracts]: Turn ExecutionManagerWrapper into a predeployed contract (#808)

* wip: Started working on L2 contract testing revamp

* test: clean tests for ProxyEOA

* style: clean imports for ProxyEOA tests

* test: port tests for ECDSAContractAccount

* fix tests and add wrapper to dump

* fix: add em wrapper to l2 deploy

* ffix: add comments to wrapper contract

* fix: add more comments

* fix: add smock comment for unbind

* Update packages/smock/src/smockit/binding.ts

* maintenance[contracts]: use dashes in chain container names (#819)

* maintenance: use dashes in chain container names

* chore: add changeset

* feat[contracts]: temporarily disable EOA upgrades (#857)

* feat[contracts]: disable eoa upgrades temporarily

* chore: add changeset

* Update OVM_ProxyEOA.sol

* fix: turn upgrade into a noop

* lint: fix

* feat[contracts]: Update Lib_AddressManager.AddressSet event to speed up data transport layer (#820)

* feat: update and improve AddressSet event

* chore: add changeset

* Update Lib_AddressManager.sol

* Reduce gas costs of deposits (#667)

* Remove messageNonce from BaseCrossDomainMessenger and use CTC queue lenght instead

Remove Abs_BaseCrossDomainMessenger and restore dedicated nonce generation in OVM_L2CrossDomainMessenger

Fix typo

* Remove sentMessages mapping from L1CrossDomainMessenger storage
and use the nonce to check for existence of replayed transaction

* Refactor out common library function for getting cross domain calldata

* Post rebase fixes

* Use the queueIndex to check the transaction was enqueued

* Fix tests for L1CrossDomainMessenger.replayMessage
Also make that test work with an actual CanonicalTransactionChain implementation rather than a smock

* Lint fixes

* Optimise the resolve calls into the AddressManager lib

* Rename the nonce parameter to be clear

* Update test name

Co-authored-by: ben-chain <ben@pseudonym.party>

* Rename getXDomainCalldata to encodeXDomainCalldata to match the new Lib_CrossDomainUtils

Co-authored-by: ben-chain <ben@pseudonym.party>

* optimism: bump gaslimit to 10 million #870 (#871)

* optimism: bump gaslimit to 10million

* chore: add changeset

* optimism: bump max gaslimit to 10 mil

* chore: add changeset

* chore: remove unnecessary changeset

* chore: remove unnecessary changeset

Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>

* fix: use correct contract name in tests (#921)

* fix: disable upgradability from ECDSA Account (#885)

* l2geth: remove `SignatureHashType` (#752)

* l2geth: remove tx type

* l2geth: no longer parse type in rollup client

* chore: add changeset

* chore: remove extra sighash params

* fix: do not check txtype in integration tests

Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>

* feat[contracts]: introduce OVM_GasPriceOracle (#912)

* feat[contracts]: congestion price oracle

* chore: add changeset

* contracts: gas price oracle (#917)

* contracts: gas price oracle

* tests: update

* fees: fix tests

* contracts: simplify gas price oracle

* lint: fix

* test: execution price is at the 1st storage slot

* chore: rename predeploy to GasPriceOracle

* chore: rename gas price oracle test name

Co-authored-by: Mark Tyneway <mark.tyneway@gmail.com>
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>

* fix: configure max gas limit to 11m (#928)

Uniswap V3 contracts require that, otherwise they throw call exceptions at deployment

* Consolidate Predeploy Addresses (#931)

* added library for predeploy addresses

* refactor tests and other packages to use exported predeploys

* revert library usage in OVM_ECDSAContractAccount

* lint

* added newline

* fixed address typos

Co-authored-by: rajivpo <rajivpatel-oconnor@Rajivs-MacBook-Pro-2.local>
Co-authored-by: smartcontracts <kelvinfichter@gmail.com>

* chore: remove yarn-error.log and gitignore it (#956)

* feat[contracts]: Replace Lib_RingBuffer with a much simpler Lib_Buffer (#821)

* feat[contracts]: replace Lib_RingBuffer with a simpler Lib_Buffer

* chore: changeset

* test: add tests for Lib_Buffer

* lint: fix

* test: add extra coverage for Lib_Buffer

* Update packages/contracts/contracts/optimistic-ethereum/libraries/utils/Lib_Buffer.sol

Co-authored-by: ben-chain <ben@pseudonym.party>

* add some extra comments

Co-authored-by: ben-chain <ben@pseudonym.party>

* fix(contracts): import predeploys (#982)

* fix(contracts): import predeploys

* fix: lint

* feat: add hardhat deploy instructions to readme (#965)

* feat: add deployment instructions to readme

* Add changeset

* fix style

* Update README.md

* feat: fees v2 (#976)

* l2 geth: new fee logic

* l2 geth: migrate to fees package

* core-utils: new fee scheme

* chore: add changeset

* l2geth: delete dead code

* integration-tests: fix typo

* integration-tests: fixes

* fees: use fee scalar

* lint: fix

* rollup: correct gas payment comparison

* fix(integration-tests): do not hardcode gas price

* core-utils: update with new scheme

* l2geth: refactor rollup oracle

* l2geth: clean up DoEstimateGas

* l2geth: implement latest scheme

* tests: fix up

* lint: fix

* l2geth: better sycn service test

* optimism: rename to TxGasLimit

* fee: fix docstring

* tests: fix

* variables: rename

* l2geth: prevent users from sending txs with too high of a fee

* integration-tests: fix import

* integration-tests: fix type

* integration-tests: fix gas limits

* lint: fix

* l2geth: log error

Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>

* Add static analysis action (#848)

* Add static analysis github action
setup python and install slither

* Add nvmrc file for setting node to v14.17

* Update slither command run to link missing contract packages from monorepo root

* Add steps for installing dependencies

* Add yarn build step to github action

* Enable colour in github action for static analysis

* Disable certain detectors

* Ensure slither does not fail build

* Add instructions on running static analysis to monorepo readme

* build(deps): bump ws from 7.4.4 to 7.4.6 in /ops/docker/hardhat (#987)

Bumps [ws](https://github.com/websockets/ws) from 7.4.4 to 7.4.6.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/7.4.4...7.4.6)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fix[l2geth]: fix accidental merge conflict (#994)

* feat[message-relayer]: relay tx generator (#952)

* feat[message-relayer]: relay tx generator

* whoops, I burned our infura key

* fix minor bug

* add comments

* add more comments and clean stuff up

* add empty test descriptions

* add tests

* move smock to dev deps

* chore: add changeset

* minor cleanup to merkle tree proof function

* use bignumber math to avoid nested await

* use a better interface

* minor fixes and simplifications

* backwards compatible dtl syncing (#986)

* kovan: fix attempt

* kovan: db fix

* kovan: types are strings from db

* l2geth: parse things as strings

* chore: add changeset

* dtl: also stringify the range query

* geth: dereference

* geth: assign err

* dtl: handle null

* dtl: fix unit tests

* fix[smock]: fix broken call assertions for overloaded functions  (#996)

* fix[smock]: fix broken call assertions for overloaded functions

* chore: add changeset

* minor correction and add a test

* add a test for non-overloaded functions

* fix[message-relayer]: fix failing test because of merge with develop (#1000)

* fix[message-relayer]: remove spreadsheet mode (#998)

* fix[message-relayer]: remove spreadsheet mode

* chore: add changeset

* Lower local rollup timestamp refresh (#985)

* update rollup timestamp refresh

* increase refresh time to 5s

* feat: fees v3 (#999)

* core-utils: fee impl v3

* l2geth: fees v3 impl

* integration-tests: update for fees v3

* chore: add changeset

* fix: typo

* integration-tests: fix and generalize

* fees: update fee scalar

* l2geth: check gas in the mempool behind usingovm

* tests: fix up

* l2geth: remove dead var

* truffle: fix config

* fix: remove dead coders (#1001)

* chore: delete dead coders

* chore: add changeset

* dtl: remove dead imports

* core-utils: delete dead tests

* batch-submitter: remove txtype

* chore: add changeset

* docs[message-relayer]: add a README and improve the interface for generating proofs (#1002)

* docs[message-relayer]: add basic docs and clean up an interface

* chore: add changeset

* dtl: log error stack for failed http request (#995)

* dtl: log error stack for failed http request

* chore: add changeset

* Add rpc-proxy service for whitelisting JSON RPC methods to the sequencer. (#945)

* Add healthcheck endpoint for rpc-proxy
Added ethereum-nginx-proxy source
updated README and docker image build

* Check ETH_CALLS_ALLOWED is set, clean up comments, remove old Dockerfile

* Pass additional information across domains via token gateways (#824)

* feat(contracts): add from and data args to L1ERC20Gateway

fix(integration): add gasLimit to fundUser

refactor(contracts): add data to gateway events
add changeset

fix(integration): provide data in outboundTransfer

refactor(contracts): reset Abs_L2TokenGateway to Abs_L2DepositedToken

refactor(contracts): fix mismatched names

* feat[contracts]: add custom gas arg to gateway

fix(contracts): take max of user vs. default gas

* fix(integrations): update ovm-eth function call

* fix(integration): remove unecessary explicit gasLimit

* test(contracts): 32kb transfer, 9MM gas

* fix(contracts): fixup comment, bytes arg last

* fix(integration): args order in integrations

* fix(contracts): remove unused L2 gas arg

* fix(contracts): limit data that can be passed to L2

* fix(integration): better tests for data length

* test: check for error on too large data

* Experimental: specify gaslimit in before hook

* fix(integration): add l2 gas argument

* fix: increase gas on fundUser

* fix(contracts): remove duplicate max size limit

* fix(integration): fine tune gas amounts

* lint

* fix: large data test

* fix(integration): set gas closer to real cost

* fix(contracts): remove unused bridge variables
These variables were the default gas amounts for cross domain messages

* fix(contracts): Reorder args

Place dynamic length args last

* fix(integration): update estimateGas values

* fix(integration): reset eth withdraw estimate to 21000

* fix(integration): update expected gas amount

* fix(integration): reduce gas amount for ETH withdraw

* More consistent style for Constant values (#991)

* chore(contracts): make container addresses be constants
chore(contracts): consistent style for constant vars

* chore(contracts): add internal on predeploy constants

* feat: deployment config for fee oracle contract (#936)

* feat[contracts]: add GasPriceOracle w/o predeploy

Based on #912

* feat[contracts]: congestion price oracle

* chore: add changeset

* contracts: gas price oracle (#917)

* contracts: gas price oracle

* tests: update

* fees: fix tests

* contracts: simplify gas price oracle

* lint: fix

* test: execution price is at the 1st storage slot

* chore: rename predeploy to GasPriceOracle

* chore: rename gas price oracle test name

Co-authored-by: Mark Tyneway <mark.tyneway@gmail.com>
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>

* Add an L2 deploy script for gas oracle contract

* Add a kovan deployment artifact

* Add deployment to readme

* Add extra validation & initial execution price

* Update README.md

* Fix execution price logic

* Perform new deployment with final contract

* contracts: better require in ovm gas price oracle

* Deploy L2GasPriceOracle

* Update contract to use new fee logic & rename to gas

* Deploy updated contract

* Fix lint

* gas price oracle: do not restrict gas price

* gas price oracle: new deployment

* tests: delete dead test

Co-authored-by: smartcontracts <kelvinfichter@gmail.com>
Co-authored-by: Mark Tyneway <mark.tyneway@gmail.com>
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>

* ops: expose debug namespace (#1007)

* develop merge fixes

* refactor[l2geth]: queue origin type (#975)

* refactor: queueOrigin type

* Convert queueOrigin to uint8 in encode

* Add changeset

* Regenerate json marshall

* style: combine lines

* Add Stringer for QueueOrigin

* Turn QueueOrigin into uint8

* l2geth: gen tx meta fix

* l2geth: gen tx meta fix

* lint

Co-authored-by: Mark Tyneway <mark.tyneway@gmail.com>

* fix(sync-service): prevent underflows (#1015)

* fix(sync-service): prevent underflows

* chore: add changeset

* chore: remove dead confirmation depth

* chore: remove eth1conf depth from rollup config

* test: remove duplicate value in array (#1014)

* ci: tag docker image for canary with abbreviated GITHUB_SHA (#1006)

* ci: tag docker image for canary with abbreviated GITHUB_SHA

* ci: update from 6 bytes to 8 bytes of abbreviation

* refactor: improve logging for transactions being submitted to chain with gasPrice (#1016)

* refactor: improve logging for transactions being submitted to chain with gasPrice

* lint: apply lint autofixes

* dtl: remove stringify from db logic + more overflow protection (#1010)

* dtl: remove stringify from db logic

* l2geth: overflow protection

* dtl: overflow protection

* chore: add changeset

* ci: upload logs for failed integration tests (#1020)

* fix(dtl): improve slow blocking JSON parsing that occurs during l2 sync (#1019)

The use of eth_getBlockRange returns a large response which is very
slow to parse in ethersjs, and can block the event loop for upwards
of multiple seconds.

When this happens, incoming http requests will likely timeout and fail.

Instead, we will parse the incoming http stream directly with the bfj
package, which yields the event loop periodically so that we don't
fail to serve requests.

* fix: lint errors in dtl (#1025)

* fix[dtl]: fix dtl bug breaking verifiers (#1011)

* fix[dtl]: fix dtl bug breaking verifiers

* tweaks so tests pass

* chore: add changeset

* fix: deterministic blockhashes (#1032)

* config: set etherbase

* l2geth: add deterministic clique key

* l2geth: default value

* chore: add changeset

* test: add sync test for deterministic blockhash

Co-authored-by: Kevin Ho <kevinjho1996@gmail.com>

* Version Packages (#978)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* ci: add sync test's own workflow (#1031)

* fix(dtl): incorrect parsing of eth_getBlockRange result (#1037)

* Version Packages (#1045)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* fix: no gas refund (#1043)

* l2geth: remove the gas refund

* chore: add changeset

* refactor[contracts]: remove one-off GasPriceOracle deployment file (#1046)

* refactor[contracts]: remove one-off gpo deployment

* chore: add changeset

* feat[contracts]: introduce new L1ChugSplashProxy contract (#1009)

* feat[contracts]: add L1ChugSplashProxy

* improve comments slightly

* start adding tests

* add more tests

* make the system pausable

* added another test

* add some extra comments

* Update packages/contracts/test/contracts/chugsplash/L1ChugSplashProxy.spec.ts

Co-authored-by: Maurelian <maurelian@protonmail.ch>

* Update packages/contracts/test/contracts/chugsplash/L1ChugSplashProxy.spec.ts

Co-authored-by: Maurelian <maurelian@protonmail.ch>

* chore: add changeset

* address review feedback

Co-authored-by: Maurelian <maurelian@protonmail.ch>

* feat[contracts]: add sequencer fee wallet (#1029)

* wip: first draft of the fee wallet

* add fee wallet to dump

* rename to sequencer vault

* add L1 fee wallet to geth config

* add unit tests

* fix geth linting error

* add a basic integration test

* fix broken integration test

* add test for correct storage slot

* add integration test for fee withdrawal

* fix typo in integration tests

* fix a bug bin integration tests

* Update OVM_SequencerFeeVault.sol

* fix bug in contract tests

* chore: add changeset

* fix bug in contract tests

* build(deps): bump glob-parent from 5.1.1 to 5.1.2 (#1036)

Bumps [glob-parent](https://github.com/gulpjs/glob-parent) from 5.1.1 to 5.1.2.
- [Release notes](https://github.com/gulpjs/glob-parent/releases)
- [Changelog](https://github.com/gulpjs/glob-parent/blob/main/CHANGELOG.md)
- [Commits](https://github.com/gulpjs/glob-parent/compare/v5.1.1...v5.1.2)

---
updated-dependencies:
- dependency-name: glob-parent
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: smartcontracts <kelvinfichter@gmail.com>
Co-authored-by: Liam Horne <liam@lihorne.com>

* fix: predeploy gasprice oracle (#1039)

* l2geth: delete extra config options

* l2geth: stop using extra config options

* l2geth: more stop using extra config options

* chore: add changeset

* l2geth: add new config for gpo owner

* chore: add changeset

* l2geth: fix tests

* tests: fix build

* l2geth: optimize loops (#1027)

* l2geth: optimize loops

* l2geth: stop ticker when done

* l2geth: don't wait for first tick

* chore: add changeset

* Enable custom tagging of release docker image (#1048)

* ci: enable custom tagging of release docker image

* ci: refactor to add prerelease prefix for secuirty

* doc: typo

* ci: fix indentation issue of canary workflow

* ci: fix typo with GITHUB_SHA

* fix: typo in USE_HARDHAT config (#1023)

* fix: abi encoded tx (#1049)

* contracts: don't double rlp decode

* chore: add changeset

* lint: fix

* deps: update

* linting: cleanup

* feat: contracts: use selector

* fix: contracts: use typescript

* contracts: use interface

* l2geth: bump to go 1.15 (#1058)

* l2geth: bump to go 1.15

* chore: add changeset

* Change monotonicity band-aid code to log warnings not errors (#1060)

* refactor: change monotonicity band-aid code to log warnings not errors

* build: add changeset

* feat(contracts, l2geth): native ETH value support for ovmCALL (#1038)

* feat(contracts): add ovmCALL-types with native value

* add ovmCALLVALUE context

* add ovmBALANCE

* test success and revert cases

* test empty contract case

* chore: lint

* test(integration-tests): ovmCALL-types with value (compiler and wrapper)

* fix ovmDELEGATECALL type, update tests

* add ovmSELFBALANCE

* fix ovmDELEGATECALL jumping to CALL

* chore: lint

* fix(contracts): account for intrinsic gas of OVM_ETH sends

* fix(contracts): merge conflict bug

* fix(contracts): update gas benchmark

* feat(contracts, integration-tests): use new value-compatible compiler

* feat(contracts,l2geth): support value calls in OVM_ECDSAContractAccount

* fix(contracts): ovmDELEGATECALL does not change message context

* feat(contracts): sending value between EOAs

* test(integration-tests): ovmDELEGATECALL preserves ovmCALLVALUE

* test(integration-tests): assert ovmSELFBALANCEs correct

* test(integration-tests): intrinsic gas for eth value calls

* test(integration-tests): update gas values

* chore(contracts): lint

* feat(contracts, l2geth): eth_calls with nonzero value

* chore: minor fixups and comments based on PR feedback

* test(integration-tests): add requested tests from PR reviews

* test(integration-tests): ovmSELFBALANCE is preserved in ovmDELEGATECALLs

* fix(contracts): fix bug where ovmDELEGATECALL could fail if balance was lower than the ovmCALLVALUE

* chore: add changeset

* fix(contracts): update intrinsic gas for worst-case value sends

* chore: address final PR nits/improvements

Co-authored-by: Kelvin Fichter <kelvinfichter@gmail.com>

* Add erc1271 support to contract account (#1052)

* add ERC1271 support, failing unit tests

* add integration test for isValidSignature

* remove .only

* lint

* add changeset

* clean up 1271 tests and lint

* switch back to using waffle wallet

* lint

* fix import

* feat[contracts]: slightly better account funding for hardhat accounts (rebased) (#1065)

* feat[contracts]: better account funding for hardhat accounts

* add a sleep to avoid any potential problems

* chore: add changeset

* fix: bug with gas estimation in funding step

* fix: limit to 20 accounts max

Co-authored-by: Kelvin Fichter <kelvinfichter@gmail.com>

* Ensure Sentry is correctly set up for DTL and MR (#1054)

* refactor: add logger and metrics to options for BaseService

* refactor: thread sentryOptions through from message-relayer into BaseService

* refactor: ensure DTL Logger is using Sentry for errors

* style: lint base-service.ts

* refactor: init Sentry on batch-submitter too

* refactor: init Sentry on message-relayer too

* refactor: pass in basic logger to MessageRelayerService

* build: provide changeset

* fix: correct usage of use-sentry boolean config

* refactor: appropriately type loggingOptions

* build: add @sentry/node

* build: add @sentry/node to message-relayer and fix linting issue

* Add more logging information to monotonicity violation logs (#1066)

* refactor: log idx of monotonicity violation from batch

* build: add changeset

* temporarily disable hardhat example tests (#1071)

* fix: monotonicity auto healer (#1070)

* fix: monotonicity auto healer

* add: changeset

* Version Packages (#1053)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Standard token bridge (#988)

* Remove abstract token gateway and deposited token implementations

* Further simplification of bridge contracts

* Standart token bridge and L2 token implementation

* Fix spacing

* Implement case when a bad deposit happens to a nonexistent L1<>L2 token pair

* Use SafeMath in common token bridge accounting

* test(contracts): fix finalizeWithdrawal test

* fix(contracts): use SafeERC20 on token deposits

* Rename OVM_L1ERC20Gateway to OVM_L1ERC20Bridge contract

* Rename iOVM_L1ERC20Gateway to iOVM_L1ERC20Bridge contract

* Cleanup gateway to bridge rename

* Better name for the mapping holding l1->l2 deposit amounts

* Use OZ SafeMath

* Rename local variables in OVM_L2DepositedERC20 from gateway to bridge

* Merge ETH and ERC20 bridge contracts

* Rename OVM_L1ERC20Bridge to OVM_L1StandardBridge and fix tests from merging the ETH and ERC20 bridges

* Better name for iAbs_BaseCrossDomainMessenger -> iOVM_CrossDomainMessenger

* Correct the bounce back of deposit sender and recipient properties

* Remove obsoleted event from OVM_L2DepositedERC20

* chore(contracts): change references from ETHGateway to Bridge

* Fix a linting error

* fix(contracts): add bridge to deployer

* Split off ERC20Bridge interface for the purposes
of being reused in custom ERC20 bridges

* Split off interface natspec definitions

* Draft version of OVM_L2DepositedERC20 splitted into a standard L2 erc20: L2StandardERC20 and
a common L2 bridge: OVM_L2StandardBridge

* style(contracts): define L1_ETH_ADDRESS as constant

* test(integration): update interface to use depositETH

* test(contracts): fix OVM_L1StandardBridge tests

* test(contracts): fix L2 Standard Bridge tests

* test(contracts): lint and remove an obsolete test case

* Fix modifier check to comply with the L2 bridge distinction from L2 token

* Simplify address <> interface casting in bridges

* Ensure natspec comments are correct
also add l1 and l2 token params to WithdrawalInitiated event for consistency

* Fix issues in L1 and L2 bridges to ensure
cross domain messages are sent only between the two bridges
also adjusted withdrawals to send to either finalizeETHWithdrawal or finalizeERC20Withdrawal
depending on which asset is being withdrawn

* Remove AddressManager from the L1 standard bridge

* REVERT ME: instruments cross domain enabled

* fix(contracts): remove Address Manager from L1 Bridge

* feat(contracts): make L2 Standard Bridge a predeploy

* WIP: update deployments for standard bridges

* WIP: update deployments for standard bridges

* l2geth: TEMP log contract calls

* chore(l2geth): replace eth gateway with standard bridge

* fix(contracts): make contract-deployment/config work

* WIP fix(integration): update integration tests for bridge

* Remove ovmEth from L1 Standard bridge as obsoleted

* Separate ERC20 standard implementation from L2 bridge

* Formatting fixes

* chore(l2geth): replace eth gateway with standard bridge

* Revert "REVERT ME: instruments cross domain enabled"

This reverts commit d5bb8f8f67974d0a3e65fc000f08858328a4bbbc.

* fix: lint ts

* Implement EIP-165 in the Standard L2 ERC20 token
Also switch that to be based off the OpenZeppelin default implementation plus mint and burn
Additionally remove the obsoleted iOVM_ERC20

* fix(contracts): add deployment check on bridge proxy
fix(contracts): whitespace
fix(contracts): init bridge implementation with non-zero address

* Remove dependency on Ownable contract for the StandardERC20 token on L2

* fix(contracts): update deployment scripts

* fix: lint

* remove debugging code

* fix: correct rpc get balance slot

* restore l2 cross domain messenger

* fix: lint

* Add a test for a non compliant token deposit

* Only allow EOAs to deposit ETH and ERC20

* Add comments and tests for ERC165 implementation

* Decide against using explicit ETH MOCK address as we're not using it for checks

* Fix linting issues

* Add onlyEOAContract restriction to standard bridge withdrawals

* Update codehashes in L2 Standard bridge

* fix(ops): remove unintentionally added file

* feat(contracts): add expectApproxGasCost function

* fix(integration): proper arrayify input on fundUser

* fix(integration): proper gas value checks

* Revert "Add onlyEOAContract restriction to standard bridge withdrawals"

This reverts commit 2713c06ceb2609e4f13718e1034a4d76210d9758.

* fix(contracts): removed unused expectApproxGasCost for now

* fix(contracts): update OVM_SequencerFeeVault for bridge changes

* lint

* Update deployment for L1 Bridge w/ ChugSplash

* Revert "l2geth: TEMP log contract calls"

This reverts commit 21d42259278449f221bf34605162229b3d9d4fa9.

* Apply suggestions from code review

* Apply suggestions from code review

* fix(contracts): deploy with chugsplash proxy

* fix(contracts): add working bridge and chugsplash proxy deployment

* fix(contracts,integration): 500k gas for depositETH

* comment(contracts): describe failed deposit handling on l2

* Apply suggestions from code review

Co-authored-by: ben-chain <ben@pseudonym.party>

* docs: add changeset

* fix(integration): set working l2 gas amount on funduser

* test(integration): add receive() test

* fix(contracts): reset receive to 1.2MM l2 gas

* test(examples): skip l1-l2 example test for now

* fix(contracts): drop hardcoded gas to 500k in receive()

* fix(contracts): use abi.encodeWithSignature

* fix(contracts): resolve merge conflicts

* feat(integration): add expectApprox for flexible gas testing

* fix(integration): fix failing gas tests

* fix: incorrect l2 gas for deposit

* Update utils.ts

* fix(workflow): disable l1-l2 example until npm imports are fixed

* chore: final round of PR review nits and tests

Co-authored-by: Maurelian <maurelian@protonmail.ch>
Co-authored-by: Mark Tyneway <mark.tyneway@gmail.com>
Co-authored-by: ben-chain <ben@pseudonym.party>
Co-authored-by: Kelvin Fichter <kelvinfichter@gmail.com>

* fix: comment out codeowners (#1073)

* fix: use predeploy constant lib for em wrapper (#1075)

* fix: use predeploy constant lib for em wrapper

* chore: add changeset

* fix[l2geth]: off-by-one sometimes breaking replica sync (#1082)

* fix[l2geth]: off-by-one sometimes breaking replica sync

* chore: add changeset

* fix(l2geth): Log 'end of OVM execution' correctly (#1080)

* refactor[contracts]: move account contracts to predeploy folder (#1085)

* refactor[contracts]: move account contracts to predeploy folder

* chore: add changeset

* maintenance[contracts]: rename precompiles test folder to predeploys (#1086)

* fix[bs]: disambiguate generic submission errors (#1051)

* fix[bs]: disambiguate generic submission errors

* add cases for errors

* separate out errors from transaction reverts with reasons

* remove extraneous errors

* WETH deposit and withdraw on OVM_ETH (#1083)

* feat(contracts): add no-op WETH9 functionality to OVM_ETH

* working WETH deposit and withdraw + tests

* add changeset

* address PR feedback

* update WETH9 contract implementation

* add fallback to WETH9

* add fallback and revert withdraw test

* update nit comment

Co-authored-by: ben <ben@pseudonym.party>

* Also move the accounts interface to iOVM/predeploys (#1087)

* refactor[contracts]: move account interface to predeploy folder

* chore: add changeset

* Version Packages (#1089)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* fix: use -z flag for var unset in canary

* Use Eslint instead of Tslint (#1005)

* removed tslint

* forgot to commit files

* made .eslintrc.js consistent for all subdirs and other cleanup

* [removed] includes and files keys from tsconfig.json

* removed file level linting exceptions and added details to line level

* added changeset

* fixed newly introduced linting errors from rebase

* enable json import for batch submitter

* removed ecdsa-coder

* maybe a tsconfig issue?

* Update deploy.ts

Co-authored-by: smartcontracts <kelvinfichter@gmail.com>
Co-authored-by: platocrat <37757724+platocrat@users.noreply.github.com>

* metrics[batch-submitter]: add new batch submitter metrics (#1074)

* metrics[batch-submitter]: add new batch submitter metrics

* chore: changeset

* account for failed submissions

* Fix canary publishing (#1093)

* ci: fix custom docker tag

* ci: use new env file

* ci: use outputs from previous job

* ci: fix headers of jobs

* ci: inherit canary tag from builder

* feat[ci]: upload logs for sync tests if failure (#1098)

* deploy: goerli 0.4.0 (#1099)

* deployments: goerli 0.4.0 rc

* readme: update

* chore: add changeset

* fix[dtl]: defend against RPC provider missing events (#1084)

* fix[dtl]: defend against RPC provider missing events

* chore: add changeset

* respond to review comments

* better error handling for missing handlers

* deploy: kovan v.4.0 rc (#1101)

* deploy: kovan v0.4.0 rc

* chore: add changeset

* readme: update

* maintenance[monorepo]: first pass update to README (#1106)

* maintenance[monorepo]: first pass update to README

Doing some relatively minor updates to the README just to clean things up a bit.

* replying to review comments

* Move the metric prefix string to a label (#1047)

Added changeset and fixes
Changeset to patch

* fix[smock]: add support for hardhat 2.4.0 (#1112)

* fix[smock]: add support for hardhat 2.4.0

* chore: add changeset

* lint: fix

* build(deps): bump hosted-git-info from 2.8.8 to 2.8.9 (#1064)

Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.8.8 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases)
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md)
- [Commits](https://github.com/npm/hosted-git-info/compare/v2.8.8...v2.8.9)

---
updated-dependencies:
- dependency-name: hosted-git-info
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: smartcontracts <kelvinfichter@gmail.com>

* Misc. small improvements to README (#1115)

* Update README.md

* Update README.md

* fix[dtl]: use the same L2 chain ID everywhere (#1122)

* fix[dtl]: use the same L2 chain ID everywhere

* chore: add changeset

* fix: make sync tests only on workflow dispatch (#1123)

* fix[dtl]: remove old stringification function (#1134)

* fix[dtl]: remove old stringification function

* chore: add changeset

* fix[dtl]: log server errors as ERROR instead of INFO (#1133)

* fix[dtl]: log server errors as ERROR instead of INFO

* chore: add changeset

* Contracts: connectL1Contracts & connectL2Contracts  (#713)

* Contracts: connect-contracts

* Trying to resolve build problems

* connect-contracts build working

* Adds artifacts-ovm back to gitignore

* Removes incorrect changes

* Adds copy-artifacts script

* Adds test file (not working yet)

* fix: incorrect contract instantiation

* Improves tests and removes old deployment versions

* Single source of truth for predeploy addresses

* Reverts deployments/README.md

* Makes connect-contracts more DRY

* Adds missing @ethersproject/abstract-signer dependency

* Adds argument evaluation

* Adds L1Contracts and L2Contracts types

* Attempts removing artifacts-ovm again

* Adds webpack config (not working yet)

* build: add artifacts to dist (#776)

* Updates lint rule

* Adds l2 imports

* Fixes dependency tree bug

* Removes webpack stuff

* Fixing package.json issues and adds .DS_Store to gitignore

* Removes test-contracts script

* Reverting script change

* Adds comments

* Adds comment

* Renames deployments folders

* Fixes linting errors

* Generates markdown

* build: add deployments directory to Dockerfiles

* Removes unneeded contracts, improves error handling and tests

* Adds changeset

* yarn.lock

* Removes console.log

* Changes from minor to patch version

* Fixes lint errors

Co-authored-by: Kelvin Fichter <kelvinfichter@gmail.com>
Co-authored-by: Liam Horne <liam@lihorne.com>
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>

* fix: prevent overflow in abi encoding (#1135)

* l2geth: prevent overflow in abi encoding to ovm codec tx

* chore: add changeset

* tests: replica syncing (#981)

* [wip] add l2_dtl and replica images

* passing basic dummy tx test

* add erc20 test

* add sync test to ci

Co-authored-by: Mark Tyneway <mark.tyneway@gmail.com>

* fix[relayer]: update exported files list in package.json (#1138)

* fix[relayer]: update exported files

* chore: add changeset

* fix: import path (#1141)

* fix: correct import path for altered contract path

* chore: add changeset

* refactor: improve logging for batch submission timeout scenarios (#1120)

* Add highest L1 and L2 block number Gauge metrics to DTL (#1125)

* build: add prom-client to data-transport-layer

* refactor: thread metrics more carefully through data-transport-layer; add two new metrics

* style: fix some style issues

* refactor: make metrics mandatory

* refactor: move metrics register code to top of file

* style: apply linting

* refactor: move promethesus initialization after express

* refactor: move promBundle call up, provide registry

* build: add changeset

* Improve Watcher ability to find transactions (#1107)

* remove listeners and use loop to find tx receipt

* add yarn ready

* moved filters inside loop

* [added] changeset

* Add minimal vscode settings and extensions (#1109)

* chore: add minimal vscode settings and extensions

* chore: Add "files.trimTrailingWhitespace" to vscode native config

* chore: replace vscode prettier plugin with eslint plugin

* fix[contracts]: remove part of MultiMessageRelayer deployment (#1144)

* fix[contracts]: remove part of MultiMessageRelayer deployment

* chore: add changeset

* Define L1 Starting block via OwnershipTransferred rather than AddressSet (#1129)

* Update service.ts

* Create thirty-years-look.md

Co-authored-by: smartcontracts <kelvinfichter@gmail.com>

* Easy fix for broken watchers (#1121)

* Easy fix for broken watchers

* Ran yarn changeset

Co-authored-by: Liam Horne <liam@lihorne.com>

* feat: go packages (#1111)

* go: add utils module

* readme: update

* Version Packages (#1094)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* build: add husky pre-commit hook to lint (#1146)

* feat[contracts]: add mainnet deploy script (#1147)

* Add mainnet deploy script

* Update mainnet.sh

* Address PR review feedback

* feat: mainnet contract deployment 0.4.0 (#1148)

* feat: mainnet contract deployment 0.4.0

* feat: deployments readme

* chore: add changeset

* contracts: remove dead contract

* contracts: remove dead config

* tests: fix to not test for old contracts

* feat: `rollup gasPrices` RPC endpoint (#1136)

* feature: l2geth  endpoint

* chore: add changeset

Co-authored-by: Liam Horne <liam@lihorne.com>

* Adds l2 standard bridge to contracts markdown file (#1151)

* Version Packages (#1150)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Add more info about our branching strategy to the README (#1114)

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Remove references to OVM_L1ETHGateway in deployments and readme (#1119)

Co-authored-by: Maurelian <maurelian@protonmail.ch>
Co-authored-by: smartcontracts <kelvinfichter@gmail.com>
Co-authored-by: Elena Gesheva <elena@arenabg.com>
Co-authored-by: ben-chain <ben@pseudonym.party>
Co-authored-by: Mark Tyneway <mark.tyneway@gmail.com>
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
Co-authored-by: Karl Floersch <karl@karlfloersch.com>
Co-authored-by: Rajiv Patel-O'Connor <rajiv.patel.oconnor@gmail.com>
Co-authored-by: rajivpo <rajivpatel-oconnor@Rajivs-MacBook-Pro-2.local>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kevin Ho <kevinjho1996@gmail.com>
Co-authored-by: Ben Wilson <82120899+optimisticben@users.noreply.github.com>
Co-authored-by: Liam Horne <liam@lihorne.com>
Co-authored-by: Tim Myers <timmyers09@gmail.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Annie Ke <annieke8@gmail.com>
Co-authored-by: platocrat <37757724+platocrat@users.noreply.github.com>
Co-authored-by: Matt Masurka <m.masurka@gmail.com>
Co-authored-by: CAPtheorem <79423264+CAPtheorem@users.noreply.github.com>
Co-authored-by: Alejandro Santander <Palebluedot@gmail.com>

* Re-apply key changes on top of optimism most current develop

* Add docker-compose-replica.yml (#109)

* Create docker-compose-replica.yml

* Add replica service

* Update docker-compose-omgx-replica.yml

Co-authored-by: CAPtheorem <79423264+CAPtheorem@users.noreply.github.com>

* fix linter; patch gethl2

* configure the deployer correctly

* fix proposer / batch submitter

* update chainIDs

* update rpc test

* Create README_OMGX.md

* upstream - needs more work

* Adds delay to watcher (#1159)

* Adds delay to watcher

* Simplifies delay

* Adds changeset

* Fix wallet test

* Fix deployment test

* Add Python

* Update Dockerfile.omgx_monorepo

* Remove package-lock

* fix: bind dtl functions for missing event codepath (#1161)

* dtl: bind this in L1 missing element error handlers

* dtl: add additional logline

* chore: add changeset

* dtl: add more metrics

* dtl: use counter instead of gauge

Co-authored-by: Kevin Ho <kevinjho1996@gmail.com>

* fix: remove 'editor.formatOnSave' from global settings' (#1163)

* merge conflicts

* Update pre-commit

* Version Packages (#1167)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* minor

* Update pre-commit

* Fix wallet test (#119)

* Fix wallet test

* Fix deployment test

* Add Python

* Update Dockerfile.omgx_monorepo

* Remove package-lock

Co-authored-by: CAPtheorem <79423264+CAPtheorem@users.noreply.github.com>

* Reapply standard changes on top of current develop

* Update package.json

* doc: add notes for releasing new versions with changesets (#1166)

* Bind correct object to method handler in DTL (#1168)

* fix: bind correct object to method handler

* build: add changeset

* Version Packages (#1169)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Fix web wallet

* Fix integration test (#124)

* Fix integration test (#125)

* Fix integration test

* Fix integration test

* Fix wallet_react

* Fix lint test

* Remove package-lock

* Update integration.yml

* Fix wallet deployer

* Collect docker log

* Fix l1-l2-deposit-withdrawal test

* Fix sync test

* Add chainID to deployer config

* make sync tests dispatch only

Co-authored-by: CAPtheorem <79423264+CAPtheorem@users.noreply.github.com>

* Add short contribution section to primary README (#1157)

* Add short contribution section to primary README

* Update README.md

* fix: prevent batch submitter from submitting batches if low on ETH

* build: add changeset

* Eslint ignore the hardhat folder

* Update README.md

* Beginning to add working examples

* hardhart and waffle example tests

* document/check waffle

* test l1-l2 example

* add patch-package

* Update package.json

* build: ensure lint only staged files on commit

* refactor: do not run --fix on lint-staged

* refactor: *.{ts,js} for eslint regex

* l2geth: rollup client explicitly checks for >= 400 errors

* l2geth: sync service retries connection to remote server

* l2geth: test errors returning from remote

* chore: add changeset

* syncservice: nit

* feat[message-relayer]: add easy relay tool

* chore: add changeset

* upkeep[monorepo]: add changeset info to README

* merge conflict squash

* Daily sync up (#137)

* build: ensure lint only staged files on commit

* refactor: do not run --fix on lint-staged

* refactor: *.{ts,js} for eslint regex

* l2geth: rollup client explicitly checks for >= 400 errors

* l2geth: sync service retries connection to remote server

* l2geth: test errors returning from remote

* chore: add changeset

* syncservice: nit

* feat[message-relayer]: add easy relay tool

* chore: add changeset

* upkeep[monorepo]: add changeset info to README

Co-authored-by: Liam Horne <liam@lihorne.com>
Co-authored-by: Mark Tyneway <mark.tyneway@gmail.com>
Co-authored-by: Kelvin Fichter <kelvin@optimism.io>
Co-authored-by: smartcontracts <kelvinfichter@gmail.com>

* build: set up eslint prettier correctly

* style: run yarn lint --fix at root

* build: add necessary packages to workspace root

* build: remove --format stylish

* build: set semvery ranges to match across packages

* build: set up prettierrc.js for monorepo

* refactor: rename Range to BlockRange

* build: set up correct working directories

* build: set up lint:fix to use eslint not prettier

* style: run lint:fix on all code

* build: remove prettier extension recommendation

* style: update configuration to include babel-eslint for .js linting

* build: set concurrency to 1 to prevent git add errors on lerna lint

* github actions: bump geth CI golang version

* fix(contracts): prevent L2->L1 calls to system contracts

* Update message relayer fast contracts (#139)

* prepare for wallet reorg

* Create yarn.lock

* fix hardhat bug

* merge conflict resolve

* daily sync up (#141)

* build: set up eslint prettier correctly

* style: run yarn lint --fix at root

* build: add necessary packages to workspace root

* build: remove --format stylish

* build: set semvery ranges to match across packages

* build: set up prettierrc.js for monorepo

* refactor: rename Range to BlockRange

* build: set up correct working directories

* build: set up lint:fix to use eslint not prettier

* style: run lint:fix on all code

* build: remove prettier extension recommendation

* style: update configuration to include babel-eslint for .js linting

* build: set concurrency to 1 to prevent git add errors on lerna lint

* fix(contracts): prevent L2->L1 calls to system contracts

Co-authored-by: Liam Horne <liam@lihorne.com>
Co-authored-by: ben <ben@pseudonym.party>

* Add Factory contract for creating standard ERC20 tokens
compliant with the standard bridge

* Disallow 0 address for l1 token when creating l2 standard token

* Fix linting issue

* Add deployment script for the L2 token factory

* Fix deploy script OVM_L2StandardTokenFactory constructor params

* Add changeset

* Cleanup deployment script for OVM_L2StandardTokenFactory
and fix a solidity linting error

* refactor(integration): Add clarity to the expectApprox function signature

* fix: skip codechecks for PRs from external repos

* DRAFT move react wallet and the contracts to more clear folders (#138)

* DRAFT move react wallet and the contracts to more clear folders

* merging the axios integration chagnes

* updated the message-relayer-fast contracts

* integrate message-relayer-fast into standard dockers

* Dockerize the message-relayer-fast

* update Readme.md

* remove duplicated contracts - just keep everything in /contracts

* add deploy for fast messenger

* message-relayer-fast testing

* Update serve.sh

* Delete yarn.lock

* Update constants.ts

* Create yarn.lock

* Update constants.ts

* Update function-manipulation.spec.ts

* increase the retries and other minor fixes

* Improved documentation

* fix omgx integration tests

* Update omgx-integration.yml

* integration test remove duplicated tests

* Fix units test configuration

* Update docker-compose-omgx-services.yml

* integration test setup fixes

* fix wallet integration test

* fix for crash on return

* integration tests for `message-relayer-fast`

* Update env.ts

* Autodeploy Token Bridges

* Update wallet contracts

* Update utils.ts

* improve omgx integration tests

* Add address manager address to GH actions for now

Co-authored-by: sahil kashetwar <>
Co-authored-by: Sahil k <sahil@enya.ai>
Co-authored-by: cby3149 <cby3149@outlook.com>

* merge conflicts

* GH actions regular changes

* husky

* Daily sync up (#144)

* build: set up eslint prettier correctly

* style: run yarn lint --fix at root

* build: add necessary packages to workspace root

* build: remove --format stylish

* build: set semvery ranges to match across packages

* build: set up prettierrc.js for monorepo

* refactor: rename Range to BlockRange

* build: set up correct working directories

* build: set up lint:fix to use eslint not prettier

* style: run lint:fix on all code

* build: remove prettier extension recommendation

* style: update configuration to include babel-eslint for .js linting

* build: set concurrency to 1 to prevent git add errors on lerna lint

* github actions: bump geth CI golang version

* fix(contracts): prevent L2->L1 calls to system contracts

* Add Factory contract for creating standard ERC20 tokens
compliant with the standard bridge

* Disallow 0 address for l1 token when creating l2 standard token

* Fix linting issue

* Add deployment script for the L2 token factory

* Fix deploy script OVM_L2StandardTokenFactory constructor params

* Add changeset

* Cleanup deployment script for OVM_L2StandardTokenFactory
and fix a solidity linting error

* refactor(integration): Add clarity to the expectApprox function signature

* fix: skip codechecks for PRs from external repos

Co-authored-by: Liam Horne <liam@lihorne.com>
Co-authored-by: Mark Tyneway <mark.tyneway@gmail.com>
Co-authored-by: ben <ben@pseudonym.party>
Co-authored-by: elenadimitrova <elena@arenabg.com>
Co-authored-by: Reggie Gomez <reggieag@gmail.com>
Co-authored-by: smartcontracts <kelvinfichter@gmail.com>

* docker: pin to alpine 3.13 for l2geth

A bug has appeared when older versions of Docker are used to build
alpine based images in alpine version 3.14. To prevent this problem
from happening to the users, this PR pins the version to 3.13.

The observed problem is that `make` cannot run any command and
the error message states `Operation not permitted.` Removing
`make` was one way to solve the problem but that would increase
the diff from upstream geth.

See these links for details:
https://github.com/alpinelinux/docker-alpine/issues/182
https://wiki.alpinelinux.org/wiki/Release_Notes_for_Alpine_3.14.0

* fix: update statement for skipping codechecks

* contracts: add set-l2-gasprice task

This task allows a user to update the L2 gas price using hardhat.
An example of doing so would be:

```bash
$ export CONTRACTS_DEPLOYER_KEY=0x..
$ CONTRACTS_RPC_URL=https://kovan.optimism.io npx hardhat set-l2-gasprice \
    --l2-gas-price 1
```

This hardcodes the predeploy address of the `OVM_GasPriceOracle` smart
contract and the Owner must be used to do the updating, otherwise the
transaction will revert.

* removed unused functions from core utils

* [added] changeset

* next gen integration tests for the OMGX stack (#149)

* next gen integration tests for the OMGX stack

* finish first pass integration test outline

* move LP tests to the `message-relayer-fast`

* Update omgx-integration.yml

* add more tests to message-relayer-fast

* connect up the .env variables

* hard code URIs

* Update utils.ts

* Update omgx-integration.yml

* fix - should have been 8080

* Update omgx-integration.yml

* which address to use?

* Update omgx-integration.yml

* removing not needed code

* remove superfluous logging code

* Update utils.ts

* Update utils.ts

* additional comments and formatting improvements

* fix: use older changes on tests (#152)

* fix: use older structure

* correct messenger

* LP fees on the correct side

* correct messenger

* rearrange depl order

Co-authored-by: Souradeep Das <dsouradeep2@gmail.com>

* Update README_OMGX.md (#150)

Refactored some changes and added some comments I thought might be helpful for people.

Co-authored-by: CAPtheorem <79423264+CAPtheorem@users.noreply.github.com>

* tests: re-enable all tests (#155)

* re-enable all tests

* re-enable all tests

* Add solhint to contracts package

* Turn off compiler-version rule in solhint

* Add suggestions by @maurelian
https://github.com/ethereum-optimism/optimism/pull/1033#issuecomment-866146467

* Change solhint output formatting to table

* Disable contract-name-camelcase rule in solhint

* Fix max-line-length linting issues in contracts

* Fix quotes linting issues in contracts

* Remove private-vars-leading-underscore rule in solhint

* Add contracts linting to github action

* Fix for hardhat account balance parsing

* Disable generating the bytecodeHash in hardhat contract artifacts

* Review fixes

* Fix review notes

* Fix smockit for a change in hardhat ^2.4.0
which changes the way it parses errors from returndata
Fix provided by @smartcontracts

* dtl: configurable gas price backend

Adds a new config option `--l1-gas-price-backend` or
`DATA_TRANSPORT_LAYER_L1_GAS_PRICE_BACKEND` that can be set to `l1` or
`l2`. This impacts the behavior of the HTTP endpoint `GET /eth/gasprice`
by changing what is queried to return the L1 gas price. The L1 gas price
is required to compute the L2 fee since the L2 fee consists of
`L1 gas price * L1 gas used + L1 gas price * L2 gas limit`. If the L1
gas price differs too much between different L2 providers, then users
using `eth_estimateGas` may submit transactions with too low of a fee
and be unable to submit transactions to the sequencer.

By configuring the DTL to use L2 as the L1 gas price backend, it will
call the Sequencer's RPC endpoint `rollup_gasPrices` which returns the
L1 and L2 gas prices from the point of view of the sequencer. The L2 gas
price exists in the state, so that will always be the same between the
sequencer and any replicas. The L1 gas price does not live on chain, so
querying for it from the sequencer directly will ensure that users send
transactions with a fee that is large enough.

Also adds eth/gasprice info to README.

* Remove bl wl service  (#154)

* replace `bl-wl` with direct calls the `omgx_deployer`

* Update docker-compose-omgx-services.yml

* Update up_local.sh

* Add CORS headers to http servers

* updated frontend to use the two new HTTP servers for the addresses

* update webwallet to work with both local and rinkeby

* Add missing .env variables to GH actions

* re-enable docker tages

* re-enable wallet transaction history

* Update up_local.sh

* Update up_local.sh

* Add flag to omgx_deployer to only serve addresses w/o deploying new contracts

* Update docker-compose-omgx-services.yml

* Add back tagging system and improved reliability of GH actions

* removed commented out service

* add rinkeby token addresses (#161)

Co-authored-by: CAPtheorem <79423264+CAPtheorem@users.noreply.github.com>

* fix: lint deploy-l2 folder in contracts

* Add AWS integration (#159)

* Add AWS integration

* Remove artifacts

* updated ops_omgx/README.md and added .github/workflows/deploy2aws-integration.yml and .github/workflows/push2aws.yml

* add automated provision and deletion of an ec2 instance for running the integration tests

Co-authored-by: Petar Denev <pdenev@gmail.com>

* fix: update CI to avoid running out of memory

* Version Packages

* ci: release latest image tags on release

* feat: update README to include info about rebasing

* Add op_exporter for sequencer metrics and health endoint
Added metric for sequencer health
Added Dockerfile for op_exporter;
Fixed Dockerfile path

* merge conflicts

* re-comment out the usual GH actions

* feat[integration-tests]: make tests work for prod networks

* chore: add changeset

* Increase client_body_buffer_size for rpc-proxy
Added client_max_body_size to rpc-proxy config

* l2geth: use `hexutil.Big` to prevent overflows

The `RollupClient` decodes the JSON from the DTL as a uint64,
this updates it to be a `big.Int`

Includes a test for the value field that ensures it does not overflow

* ci(contracts): only run codecov if contracts package is modified

In order to skip running the CodeCov job when it isn't relevant, a new job was added to the ts-packges workflow. For a PR, this job identifies all the files modified between the base branch and the tip of the PR branch, and writes to a variable which can be used to decide if subsequent jobs should run.

Github Actions provides an easy method for achieving this at the level of a workflow, but not for specific jobs within a workflow.

* Version Packages

* chore(ci): Skip codecov on push events

* feat: add workflow for running SNX test suite

* go: implement gasprices package

The `gasprices` package implements the logic that updates
L2 gasprices on the Optimistic Ethereum Network.

Co-authored-by: Karl Floersch <karl@karlfloersch.com>

* gas-oracle: implement and test

This commit adds the `gas-oracle` which is an offchain entity
that sends transactions to L2 to update the gas price. It must
be configured with a private key as the `OVM_GasPriceOracle`
is owned.

The `gas-oracle` is added to the changesets setup.

Tests are included as well as CI. Dockerizing will happen
in a follow up PR.

* gas-oracle: ci + docker build/publish

Adds a dockerfile for the `gas-oracle` as well as adding it as
a service in the `docker-compose.yaml`. It is not enabled by
default due to memory issues in CI already happening occasionally
where the integration tests are oom killed.

The `gas-oracle` is configured with a key that owns the
`OVM_GasPriceOracle`.

This PR adds the `gas-oracle` to the Github Actions
workflow that is responsible for publishing the docker images.

* Add replica (#169)

* fix: update erc20 deposits (#166)

* fix: update erc20 deposits

* fix: auto default token

Co-authored-by: CAPtheorem <79423264+CAPtheorem@users.noreply.github.com>

* resolve merge conflicts

* Update docker-compose.yml

* Update docker-compose.yml

* [pull] develop from ethereum-optimism:develop (#164)

* contracts: add set-l2-gasprice task

This task allows a user to update the L2 gas price using hardhat.
An example of doing so would be:

```bash
$ export CONTRACTS_DEPLOYER_KEY=0x..
$ CONTRACTS_RPC_URL=https://kovan.optimism.io npx hardhat set-l2-gasprice \
    --l2-gas-price 1
```

This hardcodes the predeploy address of the `OVM_GasPriceOracle` smart
contract and the Owner must be used to do the updating, otherwise the
transaction will revert.

* Add op_exporter for sequencer metrics and health endoint
Added metric for sequencer health
Added Dockerfile for op_exporter;
Fixed Dockerfile path

* feat[integration-tests]: make tests work for prod networks

* chore: add changeset

* Increase client_body_buffer_size for rpc-proxy
Added client_max_body_size to rpc-proxy config

* l2geth: use `hexutil.Big` to prevent overflows

The `RollupClient` decodes the JSON from the DTL as a uint64,
this updates it to be a `big.Int`

Includes a test for the value field that ensures it does not overflow

* ci(contracts): only run codecov if contracts package is modified

In order to skip running the CodeCov job when it isn't relevant, a new job was added to the ts-packges workflow. For a PR, this job identifies all the files modified between the base branch and the tip of the PR branch, and writes to a variable which can be used to decide if subsequent jobs should run.

Github Actions provides an easy method for achieving this at the level of a workflow, but not for specific jobs within a workflow.

* Version Packages

* chore(ci): Skip codecov on push events

* feat: add workflow for running SNX test suite

* go: implement gasprices package

The `gasprices` package implements the logic that updates
L2 gasprices on the Optimistic Ethereum Network.

Co-authored-by: Karl Floersch <karl@karlfloersch.com>

* gas-oracle: implement and test

This commit adds the `gas-oracle` which is an offchain entity
that sends transactions to L2 to update the gas price. It must
be configured with a private key as the `OVM_GasPriceOracle`
is owned.

The `gas-oracle` is added to the changesets setup.

Tests are included as well as CI. Dockerizing will happen
in a follow up PR.

* gas-oracle: ci + docker build/publish

Adds a dockerfile for the `gas-oracle` as well as adding it as
a service in the `docker-compose.yaml`. It is not enabled by
default due to memory issues in CI already happening occasionally
where the integration tests are oom killed.

The `gas-oracle` is configured with a key that owns the
`OVM_GasPriceOracle`.

This PR adds the `gas-oracle` to the Github Actions
workflow that is responsible for publishing the docker images.

Co-authored-by: Mark Tyneway <mark.tyneway@gmail.com>
Co-authored-by: Ben Wilson <bwilson@optimism.io>
Co-authored-by: Kelvin Fichter <kelvin@optimism.io>
Co-authored-by: smartcontracts <kelvinfichter@gmail.com>
Co-authored-by: Ben Wilson <82120899+optimisticben@users.noreply.github.com>
Co-authored-by: Kevin Ho <kevinjho1996@gmail.com>
Co-authored-by: Liam Horne <li…
InoMurko added a commit to omgnetwork/optimism that referenced this issue Jul 15, 2021
* tests: replica syncing (#981)

* [wip] add l2_dtl and replica images

* passing basic dummy tx test

* add erc20 test

* add sync test to ci

Co-authored-by: Mark Tyneway <mark.tyneway@gmail.com>

* fix[relayer]: update exported files list in package.json (#1138)

* fix[relayer]: update exported files

* chore: add changeset

* fix: import path (#1141)

* fix: correct import path for altered contract path

* chore: add changeset

* refactor: improve logging for batch submission timeout scenarios (#1120)

* Fixed CrossDomainMessenger name (#96)

* Add highest L1 and L2 block number Gauge metrics to DTL (#1125)

* build: add prom-client to data-transport-layer

* refactor: thread metrics more carefully through data-transport-layer; add two new metrics

* style: fix some style issues

* refactor: make metrics mandatory

* refactor: move metrics register code to top of file

* style: apply linting

* refactor: move promethesus initialization after express

* refactor: move promBundle call up, provide registry

* build: add changeset

* Improve Watcher ability to find transactions (#1107)

* remove listeners and use loop to find tx receipt

* add yarn ready

* moved filters inside loop

* [added] changeset

* Add minimal vscode settings and extensions (#1109)

* chore: add minimal vscode settings and extensions

* chore: Add "files.trimTrailingWhitespace" to vscode native config

* chore: replace vscode prettier plugin with eslint plugin

* fix[contracts]: remove part of MultiMessageRelayer deployment (#1144)

* fix[contracts]: remove part of MultiMessageRelayer deployment

* chore: add changeset

* Define L1 Starting block via OwnershipTransferred rather than AddressSet (#1129)

* Update service.ts

* Create thirty-years-look.md

Co-authored-by: smartcontracts <kelvinfichter@gmail.com>

* Easy fix for broken watchers (#1121)

* Easy fix for broken watchers

* Ran yarn changeset

Co-authored-by: Liam Horne <liam@lihorne.com>

* feat: go packages (#1111)

* go: add utils module

* readme: update

* Version Packages (#1094)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* build: add husky pre-commit hook to lint (#1146)

* feat[contracts]: add mainnet deploy script (#1147)

* Add mainnet deploy script

* Update mainnet.sh

* Address PR review feedback

* feat: mainnet contract deployment 0.4.0 (#1148)

* feat: mainnet contract deployment 0.4.0

* feat: deployments readme

* chore: add changeset

* contracts: remove dead contract

* contracts: remove dead config

* tests: fix to not test for old contracts

* feat: `rollup gasPrices` RPC endpoint (#1136)

* feature: l2geth  endpoint

* chore: add changeset

Co-authored-by: Liam Horne <liam@lihorne.com>

* Adds l2 standard bridge to contracts markdown file (#1151)

* Version Packages (#1150)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Add more info about our branching strategy to the README (#1114)

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Remove references to OVM_L1ETHGateway in deployments and readme (#1119)

* Keep the user logged in after changing chain (#99)

* Keep the user logged in after changing chain

* Update Nft.js

* Detect if user is in the wrong chain

Co-authored-by: cby3149 <cby3149@outlook.com>
Co-authored-by: CAPtheorem <79423264+CAPtheorem@users.noreply.github.com>

* Merge conflics resolve (#110)

* wip

* gethl2

* wip

* batch submitter

* core utils

* DTL

* message relayer

* contracts

* wip

* Update service.ts

* DTL

* messaage-relayer

* Update yarn.lock

* final 5 files

* [pull] develop from ethereum-optimism:develop (#91)

* chore: reduce hardhat timeout to 20 seconds (#968)

* fix: force LF line endings for scripts to avoid docker problems on Windows (#974)

* fix: use correct line endings for windows

* chore: add changeset

* refactor[contracts]: Turn ExecutionManagerWrapper into a predeployed contract (#808)

* wip: Started working on L2 contract testing revamp

* test: clean tests for ProxyEOA

* style: clean imports for ProxyEOA tests

* test: port tests for ECDSAContractAccount

* fix tests and add wrapper to dump

* fix: add em wrapper to l2 deploy

* ffix: add comments to wrapper contract

* fix: add more comments

* fix: add smock comment for unbind

* Update packages/smock/src/smockit/binding.ts

* maintenance[contracts]: use dashes in chain container names (#819)

* maintenance: use dashes in chain container names

* chore: add changeset

* feat[contracts]: temporarily disable EOA upgrades (#857)

* feat[contracts]: disable eoa upgrades temporarily

* chore: add changeset

* Update OVM_ProxyEOA.sol

* fix: turn upgrade into a noop

* lint: fix

* feat[contracts]: Update Lib_AddressManager.AddressSet event to speed up data transport layer (#820)

* feat: update and improve AddressSet event

* chore: add changeset

* Update Lib_AddressManager.sol

* Reduce gas costs of deposits (#667)

* Remove messageNonce from BaseCrossDomainMessenger and use CTC queue lenght instead

Remove Abs_BaseCrossDomainMessenger and restore dedicated nonce generation in OVM_L2CrossDomainMessenger

Fix typo

* Remove sentMessages mapping from L1CrossDomainMessenger storage
and use the nonce to check for existence of replayed transaction

* Refactor out common library function for getting cross domain calldata

* Post rebase fixes

* Use the queueIndex to check the transaction was enqueued

* Fix tests for L1CrossDomainMessenger.replayMessage
Also make that test work with an actual CanonicalTransactionChain implementation rather than a smock

* Lint fixes

* Optimise the resolve calls into the AddressManager lib

* Rename the nonce parameter to be clear

* Update test name

Co-authored-by: ben-chain <ben@pseudonym.party>

* Rename getXDomainCalldata to encodeXDomainCalldata to match the new Lib_CrossDomainUtils

Co-authored-by: ben-chain <ben@pseudonym.party>

* optimism: bump gaslimit to 10 million #870 (#871)

* optimism: bump gaslimit to 10million

* chore: add changeset

* optimism: bump max gaslimit to 10 mil

* chore: add changeset

* chore: remove unnecessary changeset

* chore: remove unnecessary changeset

Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>

* fix: use correct contract name in tests (#921)

* fix: disable upgradability from ECDSA Account (#885)

* l2geth: remove `SignatureHashType` (#752)

* l2geth: remove tx type

* l2geth: no longer parse type in rollup client

* chore: add changeset

* chore: remove extra sighash params

* fix: do not check txtype in integration tests

Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>

* feat[contracts]: introduce OVM_GasPriceOracle (#912)

* feat[contracts]: congestion price oracle

* chore: add changeset

* contracts: gas price oracle (#917)

* contracts: gas price oracle

* tests: update

* fees: fix tests

* contracts: simplify gas price oracle

* lint: fix

* test: execution price is at the 1st storage slot

* chore: rename predeploy to GasPriceOracle

* chore: rename gas price oracle test name

Co-authored-by: Mark Tyneway <mark.tyneway@gmail.com>
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>

* fix: configure max gas limit to 11m (#928)

Uniswap V3 contracts require that, otherwise they throw call exceptions at deployment

* Consolidate Predeploy Addresses (#931)

* added library for predeploy addresses

* refactor tests and other packages to use exported predeploys

* revert library usage in OVM_ECDSAContractAccount

* lint

* added newline

* fixed address typos

Co-authored-by: rajivpo <rajivpatel-oconnor@Rajivs-MacBook-Pro-2.local>
Co-authored-by: smartcontracts <kelvinfichter@gmail.com>

* chore: remove yarn-error.log and gitignore it (#956)

* feat[contracts]: Replace Lib_RingBuffer with a much simpler Lib_Buffer (#821)

* feat[contracts]: replace Lib_RingBuffer with a simpler Lib_Buffer

* chore: changeset

* test: add tests for Lib_Buffer

* lint: fix

* test: add extra coverage for Lib_Buffer

* Update packages/contracts/contracts/optimistic-ethereum/libraries/utils/Lib_Buffer.sol

Co-authored-by: ben-chain <ben@pseudonym.party>

* add some extra comments

Co-authored-by: ben-chain <ben@pseudonym.party>

* fix(contracts): import predeploys (#982)

* fix(contracts): import predeploys

* fix: lint

* feat: add hardhat deploy instructions to readme (#965)

* feat: add deployment instructions to readme

* Add changeset

* fix style

* Update README.md

* feat: fees v2 (#976)

* l2 geth: new fee logic

* l2 geth: migrate to fees package

* core-utils: new fee scheme

* chore: add changeset

* l2geth: delete dead code

* integration-tests: fix typo

* integration-tests: fixes

* fees: use fee scalar

* lint: fix

* rollup: correct gas payment comparison

* fix(integration-tests): do not hardcode gas price

* core-utils: update with new scheme

* l2geth: refactor rollup oracle

* l2geth: clean up DoEstimateGas

* l2geth: implement latest scheme

* tests: fix up

* lint: fix

* l2geth: better sycn service test

* optimism: rename to TxGasLimit

* fee: fix docstring

* tests: fix

* variables: rename

* l2geth: prevent users from sending txs with too high of a fee

* integration-tests: fix import

* integration-tests: fix type

* integration-tests: fix gas limits

* lint: fix

* l2geth: log error

Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>

* Add static analysis action (#848)

* Add static analysis github action
setup python and install slither

* Add nvmrc file for setting node to v14.17

* Update slither command run to link missing contract packages from monorepo root

* Add steps for installing dependencies

* Add yarn build step to github action

* Enable colour in github action for static analysis

* Disable certain detectors

* Ensure slither does not fail build

* Add instructions on running static analysis to monorepo readme

* build(deps): bump ws from 7.4.4 to 7.4.6 in /ops/docker/hardhat (#987)

Bumps [ws](https://github.com/websockets/ws) from 7.4.4 to 7.4.6.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/7.4.4...7.4.6)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fix[l2geth]: fix accidental merge conflict (#994)

* feat[message-relayer]: relay tx generator (#952)

* feat[message-relayer]: relay tx generator

* whoops, I burned our infura key

* fix minor bug

* add comments

* add more comments and clean stuff up

* add empty test descriptions

* add tests

* move smock to dev deps

* chore: add changeset

* minor cleanup to merkle tree proof function

* use bignumber math to avoid nested await

* use a better interface

* minor fixes and simplifications

* backwards compatible dtl syncing (#986)

* kovan: fix attempt

* kovan: db fix

* kovan: types are strings from db

* l2geth: parse things as strings

* chore: add changeset

* dtl: also stringify the range query

* geth: dereference

* geth: assign err

* dtl: handle null

* dtl: fix unit tests

* fix[smock]: fix broken call assertions for overloaded functions  (#996)

* fix[smock]: fix broken call assertions for overloaded functions

* chore: add changeset

* minor correction and add a test

* add a test for non-overloaded functions

* fix[message-relayer]: fix failing test because of merge with develop (#1000)

* fix[message-relayer]: remove spreadsheet mode (#998)

* fix[message-relayer]: remove spreadsheet mode

* chore: add changeset

* Lower local rollup timestamp refresh (#985)

* update rollup timestamp refresh

* increase refresh time to 5s

* feat: fees v3 (#999)

* core-utils: fee impl v3

* l2geth: fees v3 impl

* integration-tests: update for fees v3

* chore: add changeset

* fix: typo

* integration-tests: fix and generalize

* fees: update fee scalar

* l2geth: check gas in the mempool behind usingovm

* tests: fix up

* l2geth: remove dead var

* truffle: fix config

* fix: remove dead coders (#1001)

* chore: delete dead coders

* chore: add changeset

* dtl: remove dead imports

* core-utils: delete dead tests

* batch-submitter: remove txtype

* chore: add changeset

* docs[message-relayer]: add a README and improve the interface for generating proofs (#1002)

* docs[message-relayer]: add basic docs and clean up an interface

* chore: add changeset

* dtl: log error stack for failed http request (#995)

* dtl: log error stack for failed http request

* chore: add changeset

* Add rpc-proxy service for whitelisting JSON RPC methods to the sequencer. (#945)

* Add healthcheck endpoint for rpc-proxy
Added ethereum-nginx-proxy source
updated README and docker image build

* Check ETH_CALLS_ALLOWED is set, clean up comments, remove old Dockerfile

* Pass additional information across domains via token gateways (#824)

* feat(contracts): add from and data args to L1ERC20Gateway

fix(integration): add gasLimit to fundUser

refactor(contracts): add data to gateway events
add changeset

fix(integration): provide data in outboundTransfer

refactor(contracts): reset Abs_L2TokenGateway to Abs_L2DepositedToken

refactor(contracts): fix mismatched names

* feat[contracts]: add custom gas arg to gateway

fix(contracts): take max of user vs. default gas

* fix(integrations): update ovm-eth function call

* fix(integration): remove unecessary explicit gasLimit

* test(contracts): 32kb transfer, 9MM gas

* fix(contracts): fixup comment, bytes arg last

* fix(integration): args order in integrations

* fix(contracts): remove unused L2 gas arg

* fix(contracts): limit data that can be passed to L2

* fix(integration): better tests for data length

* test: check for error on too large data

* Experimental: specify gaslimit in before hook

* fix(integration): add l2 gas argument

* fix: increase gas on fundUser

* fix(contracts): remove duplicate max size limit

* fix(integration): fine tune gas amounts

* lint

* fix: large data test

* fix(integration): set gas closer to real cost

* fix(contracts): remove unused bridge variables
These variables were the default gas amounts for cross domain messages

* fix(contracts): Reorder args

Place dynamic length args last

* fix(integration): update estimateGas values

* fix(integration): reset eth withdraw estimate to 21000

* fix(integration): update expected gas amount

* fix(integration): reduce gas amount for ETH withdraw

* More consistent style for Constant values (#991)

* chore(contracts): make container addresses be constants
chore(contracts): consistent style for constant vars

* chore(contracts): add internal on predeploy constants

* feat: deployment config for fee oracle contract (#936)

* feat[contracts]: add GasPriceOracle w/o predeploy

Based on #912

* feat[contracts]: congestion price oracle

* chore: add changeset

* contracts: gas price oracle (#917)

* contracts: gas price oracle

* tests: update

* fees: fix tests

* contracts: simplify gas price oracle

* lint: fix

* test: execution price is at the 1st storage slot

* chore: rename predeploy to GasPriceOracle

* chore: rename gas price oracle test name

Co-authored-by: Mark Tyneway <mark.tyneway@gmail.com>
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>

* Add an L2 deploy script for gas oracle contract

* Add a kovan deployment artifact

* Add deployment to readme

* Add extra validation & initial execution price

* Update README.md

* Fix execution price logic

* Perform new deployment with final contract

* contracts: better require in ovm gas price oracle

* Deploy L2GasPriceOracle

* Update contract to use new fee logic & rename to gas

* Deploy updated contract

* Fix lint

* gas price oracle: do not restrict gas price

* gas price oracle: new deployment

* tests: delete dead test

Co-authored-by: smartcontracts <kelvinfichter@gmail.com>
Co-authored-by: Mark Tyneway <mark.tyneway@gmail.com>
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>

* ops: expose debug namespace (#1007)

* develop merge fixes

* refactor[l2geth]: queue origin type (#975)

* refactor: queueOrigin type

* Convert queueOrigin to uint8 in encode

* Add changeset

* Regenerate json marshall

* style: combine lines

* Add Stringer for QueueOrigin

* Turn QueueOrigin into uint8

* l2geth: gen tx meta fix

* l2geth: gen tx meta fix

* lint

Co-authored-by: Mark Tyneway <mark.tyneway@gmail.com>

* fix(sync-service): prevent underflows (#1015)

* fix(sync-service): prevent underflows

* chore: add changeset

* chore: remove dead confirmation depth

* chore: remove eth1conf depth from rollup config

* test: remove duplicate value in array (#1014)

* ci: tag docker image for canary with abbreviated GITHUB_SHA (#1006)

* ci: tag docker image for canary with abbreviated GITHUB_SHA

* ci: update from 6 bytes to 8 bytes of abbreviation

* refactor: improve logging for transactions being submitted to chain with gasPrice (#1016)

* refactor: improve logging for transactions being submitted to chain with gasPrice

* lint: apply lint autofixes

* dtl: remove stringify from db logic + more overflow protection (#1010)

* dtl: remove stringify from db logic

* l2geth: overflow protection

* dtl: overflow protection

* chore: add changeset

* ci: upload logs for failed integration tests (#1020)

* fix(dtl): improve slow blocking JSON parsing that occurs during l2 sync (#1019)

The use of eth_getBlockRange returns a large response which is very
slow to parse in ethersjs, and can block the event loop for upwards
of multiple seconds.

When this happens, incoming http requests will likely timeout and fail.

Instead, we will parse the incoming http stream directly with the bfj
package, which yields the event loop periodically so that we don't
fail to serve requests.

* fix: lint errors in dtl (#1025)

* fix[dtl]: fix dtl bug breaking verifiers (#1011)

* fix[dtl]: fix dtl bug breaking verifiers

* tweaks so tests pass

* chore: add changeset

* fix: deterministic blockhashes (#1032)

* config: set etherbase

* l2geth: add deterministic clique key

* l2geth: default value

* chore: add changeset

* test: add sync test for deterministic blockhash

Co-authored-by: Kevin Ho <kevinjho1996@gmail.com>

* Version Packages (#978)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* ci: add sync test's own workflow (#1031)

* fix(dtl): incorrect parsing of eth_getBlockRange result (#1037)

* Version Packages (#1045)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* fix: no gas refund (#1043)

* l2geth: remove the gas refund

* chore: add changeset

* refactor[contracts]: remove one-off GasPriceOracle deployment file (#1046)

* refactor[contracts]: remove one-off gpo deployment

* chore: add changeset

* feat[contracts]: introduce new L1ChugSplashProxy contract (#1009)

* feat[contracts]: add L1ChugSplashProxy

* improve comments slightly

* start adding tests

* add more tests

* make the system pausable

* added another test

* add some extra comments

* Update packages/contracts/test/contracts/chugsplash/L1ChugSplashProxy.spec.ts

Co-authored-by: Maurelian <maurelian@protonmail.ch>

* Update packages/contracts/test/contracts/chugsplash/L1ChugSplashProxy.spec.ts

Co-authored-by: Maurelian <maurelian@protonmail.ch>

* chore: add changeset

* address review feedback

Co-authored-by: Maurelian <maurelian@protonmail.ch>

* feat[contracts]: add sequencer fee wallet (#1029)

* wip: first draft of the fee wallet

* add fee wallet to dump

* rename to sequencer vault

* add L1 fee wallet to geth config

* add unit tests

* fix geth linting error

* add a basic integration test

* fix broken integration test

* add test for correct storage slot

* add integration test for fee withdrawal

* fix typo in integration tests

* fix a bug bin integration tests

* Update OVM_SequencerFeeVault.sol

* fix bug in contract tests

* chore: add changeset

* fix bug in contract tests

* build(deps): bump glob-parent from 5.1.1 to 5.1.2 (#1036)

Bumps [glob-parent](https://github.com/gulpjs/glob-parent) from 5.1.1 to 5.1.2.
- [Release notes](https://github.com/gulpjs/glob-parent/releases)
- [Changelog](https://github.com/gulpjs/glob-parent/blob/main/CHANGELOG.md)
- [Commits](https://github.com/gulpjs/glob-parent/compare/v5.1.1...v5.1.2)

---
updated-dependencies:
- dependency-name: glob-parent
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: smartcontracts <kelvinfichter@gmail.com>
Co-authored-by: Liam Horne <liam@lihorne.com>

* fix: predeploy gasprice oracle (#1039)

* l2geth: delete extra config options

* l2geth: stop using extra config options

* l2geth: more stop using extra config options

* chore: add changeset

* l2geth: add new config for gpo owner

* chore: add changeset

* l2geth: fix tests

* tests: fix build

* l2geth: optimize loops (#1027)

* l2geth: optimize loops

* l2geth: stop ticker when done

* l2geth: don't wait for first tick

* chore: add changeset

* Enable custom tagging of release docker image (#1048)

* ci: enable custom tagging of release docker image

* ci: refactor to add prerelease prefix for secuirty

* doc: typo

* ci: fix indentation issue of canary workflow

* ci: fix typo with GITHUB_SHA

* fix: typo in USE_HARDHAT config (#1023)

* fix: abi encoded tx (#1049)

* contracts: don't double rlp decode

* chore: add changeset

* lint: fix

* deps: update

* linting: cleanup

* feat: contracts: use selector

* fix: contracts: use typescript

* contracts: use interface

* l2geth: bump to go 1.15 (#1058)

* l2geth: bump to go 1.15

* chore: add changeset

* Change monotonicity band-aid code to log warnings not errors (#1060)

* refactor: change monotonicity band-aid code to log warnings not errors

* build: add changeset

* feat(contracts, l2geth): native ETH value support for ovmCALL (#1038)

* feat(contracts): add ovmCALL-types with native value

* add ovmCALLVALUE context

* add ovmBALANCE

* test success and revert cases

* test empty contract case

* chore: lint

* test(integration-tests): ovmCALL-types with value (compiler and wrapper)

* fix ovmDELEGATECALL type, update tests

* add ovmSELFBALANCE

* fix ovmDELEGATECALL jumping to CALL

* chore: lint

* fix(contracts): account for intrinsic gas of OVM_ETH sends

* fix(contracts): merge conflict bug

* fix(contracts): update gas benchmark

* feat(contracts, integration-tests): use new value-compatible compiler

* feat(contracts,l2geth): support value calls in OVM_ECDSAContractAccount

* fix(contracts): ovmDELEGATECALL does not change message context

* feat(contracts): sending value between EOAs

* test(integration-tests): ovmDELEGATECALL preserves ovmCALLVALUE

* test(integration-tests): assert ovmSELFBALANCEs correct

* test(integration-tests): intrinsic gas for eth value calls

* test(integration-tests): update gas values

* chore(contracts): lint

* feat(contracts, l2geth): eth_calls with nonzero value

* chore: minor fixups and comments based on PR feedback

* test(integration-tests): add requested tests from PR reviews

* test(integration-tests): ovmSELFBALANCE is preserved in ovmDELEGATECALLs

* fix(contracts): fix bug where ovmDELEGATECALL could fail if balance was lower than the ovmCALLVALUE

* chore: add changeset

* fix(contracts): update intrinsic gas for worst-case value sends

* chore: address final PR nits/improvements

Co-authored-by: Kelvin Fichter <kelvinfichter@gmail.com>

* Add erc1271 support to contract account (#1052)

* add ERC1271 support, failing unit tests

* add integration test for isValidSignature

* remove .only

* lint

* add changeset

* clean up 1271 tests and lint

* switch back to using waffle wallet

* lint

* fix import

* feat[contracts]: slightly better account funding for hardhat accounts (rebased) (#1065)

* feat[contracts]: better account funding for hardhat accounts

* add a sleep to avoid any potential problems

* chore: add changeset

* fix: bug with gas estimation in funding step

* fix: limit to 20 accounts max

Co-authored-by: Kelvin Fichter <kelvinfichter@gmail.com>

* Ensure Sentry is correctly set up for DTL and MR (#1054)

* refactor: add logger and metrics to options for BaseService

* refactor: thread sentryOptions through from message-relayer into BaseService

* refactor: ensure DTL Logger is using Sentry for errors

* style: lint base-service.ts

* refactor: init Sentry on batch-submitter too

* refactor: init Sentry on message-relayer too

* refactor: pass in basic logger to MessageRelayerService

* build: provide changeset

* fix: correct usage of use-sentry boolean config

* refactor: appropriately type loggingOptions

* build: add @sentry/node

* build: add @sentry/node to message-relayer and fix linting issue

* Add more logging information to monotonicity violation logs (#1066)

* refactor: log idx of monotonicity violation from batch

* build: add changeset

* temporarily disable hardhat example tests (#1071)

* fix: monotonicity auto healer (#1070)

* fix: monotonicity auto healer

* add: changeset

* Version Packages (#1053)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Standard token bridge (#988)

* Remove abstract token gateway and deposited token implementations

* Further simplification of bridge contracts

* Standart token bridge and L2 token implementation

* Fix spacing

* Implement case when a bad deposit happens to a nonexistent L1<>L2 token pair

* Use SafeMath in common token bridge accounting

* test(contracts): fix finalizeWithdrawal test

* fix(contracts): use SafeERC20 on token deposits

* Rename OVM_L1ERC20Gateway to OVM_L1ERC20Bridge contract

* Rename iOVM_L1ERC20Gateway to iOVM_L1ERC20Bridge contract

* Cleanup gateway to bridge rename

* Better name for the mapping holding l1->l2 deposit amounts

* Use OZ SafeMath

* Rename local variables in OVM_L2DepositedERC20 from gateway to bridge

* Merge ETH and ERC20 bridge contracts

* Rename OVM_L1ERC20Bridge to OVM_L1StandardBridge and fix tests from merging the ETH and ERC20 bridges

* Better name for iAbs_BaseCrossDomainMessenger -> iOVM_CrossDomainMessenger

* Correct the bounce back of deposit sender and recipient properties

* Remove obsoleted event from OVM_L2DepositedERC20

* chore(contracts): change references from ETHGateway to Bridge

* Fix a linting error

* fix(contracts): add bridge to deployer

* Split off ERC20Bridge interface for the purposes
of being reused in custom ERC20 bridges

* Split off interface natspec definitions

* Draft version of OVM_L2DepositedERC20 splitted into a standard L2 erc20: L2StandardERC20 and
a common L2 bridge: OVM_L2StandardBridge

* style(contracts): define L1_ETH_ADDRESS as constant

* test(integration): update interface to use depositETH

* test(contracts): fix OVM_L1StandardBridge tests

* test(contracts): fix L2 Standard Bridge tests

* test(contracts): lint and remove an obsolete test case

* Fix modifier check to comply with the L2 bridge distinction from L2 token

* Simplify address <> interface casting in bridges

* Ensure natspec comments are correct
also add l1 and l2 token params to WithdrawalInitiated event for consistency

* Fix issues in L1 and L2 bridges to ensure
cross domain messages are sent only between the two bridges
also adjusted withdrawals to send to either finalizeETHWithdrawal or finalizeERC20Withdrawal
depending on which asset is being withdrawn

* Remove AddressManager from the L1 standard bridge

* REVERT ME: instruments cross domain enabled

* fix(contracts): remove Address Manager from L1 Bridge

* feat(contracts): make L2 Standard Bridge a predeploy

* WIP: update deployments for standard bridges

* WIP: update deployments for standard bridges

* l2geth: TEMP log contract calls

* chore(l2geth): replace eth gateway with standard bridge

* fix(contracts): make contract-deployment/config work

* WIP fix(integration): update integration tests for bridge

* Remove ovmEth from L1 Standard bridge as obsoleted

* Separate ERC20 standard implementation from L2 bridge

* Formatting fixes

* chore(l2geth): replace eth gateway with standard bridge

* Revert "REVERT ME: instruments cross domain enabled"

This reverts commit d5bb8f8f67974d0a3e65fc000f08858328a4bbbc.

* fix: lint ts

* Implement EIP-165 in the Standard L2 ERC20 token
Also switch that to be based off the OpenZeppelin default implementation plus mint and burn
Additionally remove the obsoleted iOVM_ERC20

* fix(contracts): add deployment check on bridge proxy
fix(contracts): whitespace
fix(contracts): init bridge implementation with non-zero address

* Remove dependency on Ownable contract for the StandardERC20 token on L2

* fix(contracts): update deployment scripts

* fix: lint

* remove debugging code

* fix: correct rpc get balance slot

* restore l2 cross domain messenger

* fix: lint

* Add a test for a non compliant token deposit

* Only allow EOAs to deposit ETH and ERC20

* Add comments and tests for ERC165 implementation

* Decide against using explicit ETH MOCK address as we're not using it for checks

* Fix linting issues

* Add onlyEOAContract restriction to standard bridge withdrawals

* Update codehashes in L2 Standard bridge

* fix(ops): remove unintentionally added file

* feat(contracts): add expectApproxGasCost function

* fix(integration): proper arrayify input on fundUser

* fix(integration): proper gas value checks

* Revert "Add onlyEOAContract restriction to standard bridge withdrawals"

This reverts commit 2713c06ceb2609e4f13718e1034a4d76210d9758.

* fix(contracts): removed unused expectApproxGasCost for now

* fix(contracts): update OVM_SequencerFeeVault for bridge changes

* lint

* Update deployment for L1 Bridge w/ ChugSplash

* Revert "l2geth: TEMP log contract calls"

This reverts commit 21d42259278449f221bf34605162229b3d9d4fa9.

* Apply suggestions from code review

* Apply suggestions from code review

* fix(contracts): deploy with chugsplash proxy

* fix(contracts): add working bridge and chugsplash proxy deployment

* fix(contracts,integration): 500k gas for depositETH

* comment(contracts): describe failed deposit handling on l2

* Apply suggestions from code review

Co-authored-by: ben-chain <ben@pseudonym.party>

* docs: add changeset

* fix(integration): set working l2 gas amount on funduser

* test(integration): add receive() test

* fix(contracts): reset receive to 1.2MM l2 gas

* test(examples): skip l1-l2 example test for now

* fix(contracts): drop hardcoded gas to 500k in receive()

* fix(contracts): use abi.encodeWithSignature

* fix(contracts): resolve merge conflicts

* feat(integration): add expectApprox for flexible gas testing

* fix(integration): fix failing gas tests

* fix: incorrect l2 gas for deposit

* Update utils.ts

* fix(workflow): disable l1-l2 example until npm imports are fixed

* chore: final round of PR review nits and tests

Co-authored-by: Maurelian <maurelian@protonmail.ch>
Co-authored-by: Mark Tyneway <mark.tyneway@gmail.com>
Co-authored-by: ben-chain <ben@pseudonym.party>
Co-authored-by: Kelvin Fichter <kelvinfichter@gmail.com>

* fix: comment out codeowners (#1073)

* fix: use predeploy constant lib for em wrapper (#1075)

* fix: use predeploy constant lib for em wrapper

* chore: add changeset

* fix[l2geth]: off-by-one sometimes breaking replica sync (#1082)

* fix[l2geth]: off-by-one sometimes breaking replica sync

* chore: add changeset

* fix(l2geth): Log 'end of OVM execution' correctly (#1080)

* refactor[contracts]: move account contracts to predeploy folder (#1085)

* refactor[contracts]: move account contracts to predeploy folder

* chore: add changeset

* maintenance[contracts]: rename precompiles test folder to predeploys (#1086)

* fix[bs]: disambiguate generic submission errors (#1051)

* fix[bs]: disambiguate generic submission errors

* add cases for errors

* separate out errors from transaction reverts with reasons

* remove extraneous errors

* WETH deposit and withdraw on OVM_ETH (#1083)

* feat(contracts): add no-op WETH9 functionality to OVM_ETH

* working WETH deposit and withdraw + tests

* add changeset

* address PR feedback

* update WETH9 contract implementation

* add fallback to WETH9

* add fallback and revert withdraw test

* update nit comment

Co-authored-by: ben <ben@pseudonym.party>

* Also move the accounts interface to iOVM/predeploys (#1087)

* refactor[contracts]: move account interface to predeploy folder

* chore: add changeset

* Version Packages (#1089)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* fix: use -z flag for var unset in canary

* Use Eslint instead of Tslint (#1005)

* removed tslint

* forgot to commit files

* made .eslintrc.js consistent for all subdirs and other cleanup

* [removed] includes and files keys from tsconfig.json

* removed file level linting exceptions and added details to line level

* added changeset

* fixed newly introduced linting errors from rebase

* enable json import for batch submitter

* removed ecdsa-coder

* maybe a tsconfig issue?

* Update deploy.ts

Co-authored-by: smartcontracts <kelvinfichter@gmail.com>
Co-authored-by: platocrat <37757724+platocrat@users.noreply.github.com>

* metrics[batch-submitter]: add new batch submitter metrics (#1074)

* metrics[batch-submitter]: add new batch submitter metrics

* chore: changeset

* account for failed submissions

* Fix canary publishing (#1093)

* ci: fix custom docker tag

* ci: use new env file

* ci: use outputs from previous job

* ci: fix headers of jobs

* ci: inherit canary tag from builder

* feat[ci]: upload logs for sync tests if failure (#1098)

* deploy: goerli 0.4.0 (#1099)

* deployments: goerli 0.4.0 rc

* readme: update

* chore: add changeset

* fix[dtl]: defend against RPC provider missing events (#1084)

* fix[dtl]: defend against RPC provider missing events

* chore: add changeset

* respond to review comments

* better error handling for missing handlers

* deploy: kovan v.4.0 rc (#1101)

* deploy: kovan v0.4.0 rc

* chore: add changeset

* readme: update

* maintenance[monorepo]: first pass update to README (#1106)

* maintenance[monorepo]: first pass update to README

Doing some relatively minor updates to the README just to clean things up a bit.

* replying to review comments

* Move the metric prefix string to a label (#1047)

Added changeset and fixes
Changeset to patch

* fix[smock]: add support for hardhat 2.4.0 (#1112)

* fix[smock]: add support for hardhat 2.4.0

* chore: add changeset

* lint: fix

* build(deps): bump hosted-git-info from 2.8.8 to 2.8.9 (#1064)

Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.8.8 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases)
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md)
- [Commits](https://github.com/npm/hosted-git-info/compare/v2.8.8...v2.8.9)

---
updated-dependencies:
- dependency-name: hosted-git-info
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: smartcontracts <kelvinfichter@gmail.com>

* Misc. small improvements to README (#1115)

* Update README.md

* Update README.md

* fix[dtl]: use the same L2 chain ID everywhere (#1122)

* fix[dtl]: use the same L2 chain ID everywhere

* chore: add changeset

* fix: make sync tests only on workflow dispatch (#1123)

* fix[dtl]: remove old stringification function (#1134)

* fix[dtl]: remove old stringification function

* chore: add changeset

* fix[dtl]: log server errors as ERROR instead of INFO (#1133)

* fix[dtl]: log server errors as ERROR instead of INFO

* chore: add changeset

* Contracts: connectL1Contracts & connectL2Contracts  (#713)

* Contracts: connect-contracts

* Trying to resolve build problems

* connect-contracts build working

* Adds artifacts-ovm back to gitignore

* Removes incorrect changes

* Adds copy-artifacts script

* Adds test file (not working yet)

* fix: incorrect contract instantiation

* Improves tests and removes old deployment versions

* Single source of truth for predeploy addresses

* Reverts deployments/README.md

* Makes connect-contracts more DRY

* Adds missing @ethersproject/abstract-signer dependency

* Adds argument evaluation

* Adds L1Contracts and L2Contracts types

* Attempts removing artifacts-ovm again

* Adds webpack config (not working yet)

* build: add artifacts to dist (#776)

* Updates lint rule

* Adds l2 imports

* Fixes dependency tree bug

* Removes webpack stuff

* Fixing package.json issues and adds .DS_Store to gitignore

* Removes test-contracts script

* Reverting script change

* Adds comments

* Adds comment

* Renames deployments folders

* Fixes linting errors

* Generates markdown

* build: add deployments directory to Dockerfiles

* Removes unneeded contracts, improves error handling and tests

* Adds changeset

* yarn.lock

* Removes console.log

* Changes from minor to patch version

* Fixes lint errors

Co-authored-by: Kelvin Fichter <kelvinfichter@gmail.com>
Co-authored-by: Liam Horne <liam@lihorne.com>
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>

* fix: prevent overflow in abi encoding (#1135)

* l2geth: prevent overflow in abi encoding to ovm codec tx

* chore: add changeset

* tests: replica syncing (#981)

* [wip] add l2_dtl and replica images

* passing basic dummy tx test

* add erc20 test

* add sync test to ci

Co-authored-by: Mark Tyneway <mark.tyneway@gmail.com>

* fix[relayer]: update exported files list in package.json (#1138)

* fix[relayer]: update exported files

* chore: add changeset

* fix: import path (#1141)

* fix: correct import path for altered contract path

* chore: add changeset

* refactor: improve logging for batch submission timeout scenarios (#1120)

* Add highest L1 and L2 block number Gauge metrics to DTL (#1125)

* build: add prom-client to data-transport-layer

* refactor: thread metrics more carefully through data-transport-layer; add two new metrics

* style: fix some style issues

* refactor: make metrics mandatory

* refactor: move metrics register code to top of file

* style: apply linting

* refactor: move promethesus initialization after express

* refactor: move promBundle call up, provide registry

* build: add changeset

* Improve Watcher ability to find transactions (#1107)

* remove listeners and use loop to find tx receipt

* add yarn ready

* moved filters inside loop

* [added] changeset

* Add minimal vscode settings and extensions (#1109)

* chore: add minimal vscode settings and extensions

* chore: Add "files.trimTrailingWhitespace" to vscode native config

* chore: replace vscode prettier plugin with eslint plugin

* fix[contracts]: remove part of MultiMessageRelayer deployment (#1144)

* fix[contracts]: remove part of MultiMessageRelayer deployment

* chore: add changeset

* Define L1 Starting block via OwnershipTransferred rather than AddressSet (#1129)

* Update service.ts

* Create thirty-years-look.md

Co-authored-by: smartcontracts <kelvinfichter@gmail.com>

* Easy fix for broken watchers (#1121)

* Easy fix for broken watchers

* Ran yarn changeset

Co-authored-by: Liam Horne <liam@lihorne.com>

* feat: go packages (#1111)

* go: add utils module

* readme: update

* Version Packages (#1094)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* build: add husky pre-commit hook to lint (#1146)

* feat[contracts]: add mainnet deploy script (#1147)

* Add mainnet deploy script

* Update mainnet.sh

* Address PR review feedback

* feat: mainnet contract deployment 0.4.0 (#1148)

* feat: mainnet contract deployment 0.4.0

* feat: deployments readme

* chore: add changeset

* contracts: remove dead contract

* contracts: remove dead config

* tests: fix to not test for old contracts

* feat: `rollup gasPrices` RPC endpoint (#1136)

* feature: l2geth  endpoint

* chore: add changeset

Co-authored-by: Liam Horne <liam@lihorne.com>

* Adds l2 standard bridge to contracts markdown file (#1151)

* Version Packages (#1150)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Add more info about our branching strategy to the README (#1114)

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Remove references to OVM_L1ETHGateway in deployments and readme (#1119)

Co-authored-by: Maurelian <maurelian@protonmail.ch>
Co-authored-by: smartcontracts <kelvinfichter@gmail.com>
Co-authored-by: Elena Gesheva <elena@arenabg.com>
Co-authored-by: ben-chain <ben@pseudonym.party>
Co-authored-by: Mark Tyneway <mark.tyneway@gmail.com>
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
Co-authored-by: Karl Floersch <karl@karlfloersch.com>
Co-authored-by: Rajiv Patel-O'Connor <rajiv.patel.oconnor@gmail.com>
Co-authored-by: rajivpo <rajivpatel-oconnor@Rajivs-MacBook-Pro-2.local>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kevin Ho <kevinjho1996@gmail.com>
Co-authored-by: Ben Wilson <82120899+optimisticben@users.noreply.github.com>
Co-authored-by: Liam Horne <liam@lihorne.com>
Co-authored-by: Tim Myers <timmyers09@gmail.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Annie Ke <annieke8@gmail.com>
Co-authored-by: platocrat <37757724+platocrat@users.noreply.github.com>
Co-authored-by: Matt Masurka <m.masurka@gmail.com>
Co-authored-by: CAPtheorem <79423264+CAPtheorem@users.noreply.github.com>
Co-authored-by: Alejandro Santander <Palebluedot@gmail.com>

* Re-apply key changes on top of optimism most current develop

* Add docker-compose-replica.yml (#109)

* Create docker-compose-replica.yml

* Add replica service

* Update docker-compose-omgx-replica.yml

Co-authored-by: CAPtheorem <79423264+CAPtheorem@users.noreply.github.com>

* fix linter; patch gethl2

* configure the deployer correctly

* fix proposer / batch submitter

* update chainIDs

* update rpc test

* Create README_OMGX.md

* upstream - needs more work

* Adds delay to watcher (#1159)

* Adds delay to watcher

* Simplifies delay

* Adds changeset

* Fix wallet test

* Fix deployment test

* Add Python

* Update Dockerfile.omgx_monorepo

* Remove package-lock

* fix: bind dtl functions for missing event codepath (#1161)

* dtl: bind this in L1 missing element error handlers

* dtl: add additional logline

* chore: add changeset

* dtl: add more metrics

* dtl: use counter instead of gauge

Co-authored-by: Kevin Ho <kevinjho1996@gmail.com>

* fix: remove 'editor.formatOnSave' from global settings' (#1163)

* merge conflicts

* Update pre-commit

* Version Packages (#1167)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* minor

* Update pre-commit

* Fix wallet test (#119)

* Fix wallet test

* Fix deployment test

* Add Python

* Update Dockerfile.omgx_monorepo

* Remove package-lock

Co-authored-by: CAPtheorem <79423264+CAPtheorem@users.noreply.github.com>

* Reapply standard changes on top of current develop

* Update package.json

* doc: add notes for releasing new versions with changesets (#1166)

* Bind correct object to method handler in DTL (#1168)

* fix: bind correct object to method handler

* build: add changeset

* Version Packages (#1169)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Fix web wallet

* Fix integration test (#124)

* Fix integration test (#125)

* Fix integration test

* Fix integration test

* Fix wallet_react

* Fix lint test

* Remove package-lock

* Update integration.yml

* Fix wallet deployer

* Collect docker log

* Fix l1-l2-deposit-withdrawal test

* Fix sync test

* Add chainID to deployer config

* make sync tests dispatch only

Co-authored-by: CAPtheorem <79423264+CAPtheorem@users.noreply.github.com>

* Add short contribution section to primary README (#1157)

* Add short contribution section to primary README

* Update README.md

* fix: prevent batch submitter from submitting batches if low on ETH

* build: add changeset

* Eslint ignore the hardhat folder

* Update README.md

* Beginning to add working examples

* hardhart and waffle example tests

* document/check waffle

* test l1-l2 example

* add patch-package

* Update package.json

* build: ensure lint only staged files on commit

* refactor: do not run --fix on lint-staged

* refactor: *.{ts,js} for eslint regex

* l2geth: rollup client explicitly checks for >= 400 errors

* l2geth: sync service retries connection to remote server

* l2geth: test errors returning from remote

* chore: add changeset

* syncservice: nit

* feat[message-relayer]: add easy relay tool

* chore: add changeset

* upkeep[monorepo]: add changeset info to README

* merge conflict squash

* Daily sync up (#137)

* build: ensure lint only staged files on commit

* refactor: do not run --fix on lint-staged

* refactor: *.{ts,js} for eslint regex

* l2geth: rollup client explicitly checks for >= 400 errors

* l2geth: sync service retries connection to remote server

* l2geth: test errors returning from remote

* chore: add changeset

* syncservice: nit

* feat[message-relayer]: add easy relay tool

* chore: add changeset

* upkeep[monorepo]: add changeset info to README

Co-authored-by: Liam Horne <liam@lihorne.com>
Co-authored-by: Mark Tyneway <mark.tyneway@gmail.com>
Co-authored-by: Kelvin Fichter <kelvin@optimism.io>
Co-authored-by: smartcontracts <kelvinfichter@gmail.com>

* build: set up eslint prettier correctly

* style: run yarn lint --fix at root

* build: add necessary packages to workspace root

* build: remove --format stylish

* build: set semvery ranges to match across packages

* build: set up prettierrc.js for monorepo

* refactor: rename Range to BlockRange

* build: set up correct working directories

* build: set up lint:fix to use eslint not prettier

* style: run lint:fix on all code

* build: remove prettier extension recommendation

* style: update configuration to include babel-eslint for .js linting

* build: set concurrency to 1 to prevent git add errors on lerna lint

* github actions: bump geth CI golang version

* fix(contracts): prevent L2->L1 calls to system contracts

* Update message relayer fast contracts (#139)

* prepare for wallet reorg

* Create yarn.lock

* fix hardhat bug

* merge conflict resolve

* daily sync up (#141)

* build: set up eslint prettier correctly

* style: run yarn lint --fix at root

* build: add necessary packages to workspace root

* build: remove --format stylish

* build: set semvery ranges to match across packages

* build: set up prettierrc.js for monorepo

* refactor: rename Range to BlockRange

* build: set up correct working directories

* build: set up lint:fix to use eslint not prettier

* style: run lint:fix on all code

* build: remove prettier extension recommendation

* style: update configuration to include babel-eslint for .js linting

* build: set concurrency to 1 to prevent git add errors on lerna lint

* fix(contracts): prevent L2->L1 calls to system contracts

Co-authored-by: Liam Horne <liam@lihorne.com>
Co-authored-by: ben <ben@pseudonym.party>

* Add Factory contract for creating standard ERC20 tokens
compliant with the standard bridge

* Disallow 0 address for l1 token when creating l2 standard token

* Fix linting issue

* Add deployment script for the L2 token factory

* Fix deploy script OVM_L2StandardTokenFactory constructor params

* Add changeset

* Cleanup deployment script for OVM_L2StandardTokenFactory
and fix a solidity linting error

* refactor(integration): Add clarity to the expectApprox function signature

* fix: skip codechecks for PRs from external repos

* DRAFT move react wallet and the contracts to more clear folders (#138)

* DRAFT move react wallet and the contracts to more clear folders

* merging the axios integration chagnes

* updated the message-relayer-fast contracts

* integrate message-relayer-fast into standard dockers

* Dockerize the message-relayer-fast

* update Readme.md

* remove duplicated contracts - just keep everything in /contracts

* add deploy for fast messenger

* message-relayer-fast testing

* Update serve.sh

* Delete yarn.lock

* Update constants.ts

* Create yarn.lock

* Update constants.ts

* Update function-manipulation.spec.ts

* increase the retries and other minor fixes

* Improved documentation

* fix omgx integration tests

* Update omgx-integration.yml

* integration test remove duplicated tests

* Fix units test configuration

* Update docker-compose-omgx-services.yml

* integration test setup fixes

* fix wallet integration test

* fix for crash on return

* integration tests for `message-relayer-fast`

* Update env.ts

* Autodeploy Token Bridges

* Update wallet contracts

* Update utils.ts

* improve omgx integration tests

* Add address manager address to GH actions for now

Co-authored-by: sahil kashetwar <>
Co-authored-by: Sahil k <sahil@enya.ai>
Co-authored-by: cby3149 <cby3149@outlook.com>

* merge conflicts

* GH actions regular changes

* husky

* Daily sync up (#144)

* build: set up eslint prettier correctly

* style: run yarn lint --fix at root

* build: add necessary packages to workspace root

* build: remove --format stylish

* build: set semvery ranges to match across packages

* build: set up prettierrc.js for monorepo

* refactor: rename Range to BlockRange

* build: set up correct working directories

* build: set up lint:fix to use eslint not prettier

* style: run lint:fix on all code

* build: remove prettier extension recommendation

* style: update configuration to include babel-eslint for .js linting

* build: set concurrency to 1 to prevent git add errors on lerna lint

* github actions: bump geth CI golang version

* fix(contracts): prevent L2->L1 calls to system contracts

* Add Factory contract for creating standard ERC20 tokens
compliant with the standard bridge

* Disallow 0 address for l1 token when creating l2 standard token

* Fix linting issue

* Add deployment script for the L2 token factory

* Fix deploy script OVM_L2StandardTokenFactory constructor params

* Add changeset

* Cleanup deployment script for OVM_L2StandardTokenFactory
and fix a solidity linting error

* refactor(integration): Add clarity to the expectApprox function signature

* fix: skip codechecks for PRs from external repos

Co-authored-by: Liam Horne <liam@lihorne.com>
Co-authored-by: Mark Tyneway <mark.tyneway@gmail.com>
Co-authored-by: ben <ben@pseudonym.party>
Co-authored-by: elenadimitrova <elena@arenabg.com>
Co-authored-by: Reggie Gomez <reggieag@gmail.com>
Co-authored-by: smartcontracts <kelvinfichter@gmail.com>

* docker: pin to alpine 3.13 for l2geth

A bug has appeared when older versions of Docker are used to build
alpine based images in alpine version 3.14. To prevent this problem
from happening to the users, this PR pins the version to 3.13.

The observed problem is that `make` cannot run any command and
the error message states `Operation not permitted.` Removing
`make` was one way to solve the problem but that would increase
the diff from upstream geth.

See these links for details:
https://github.com/alpinelinux/docker-alpine/issues/182
https://wiki.alpinelinux.org/wiki/Release_Notes_for_Alpine_3.14.0

* fix: update statement for skipping codechecks

* contracts: add set-l2-gasprice task

This task allows a user to update the L2 gas price using hardhat.
An example of doing so would be:

```bash
$ export CONTRACTS_DEPLOYER_KEY=0x..
$ CONTRACTS_RPC_URL=https://kovan.optimism.io npx hardhat set-l2-gasprice \
    --l2-gas-price 1
```

This hardcodes the predeploy address of the `OVM_GasPriceOracle` smart
contract and the Owner must be used to do the updating, otherwise the
transaction will revert.

* removed unused functions from core utils

* [added] changeset

* next gen integration tests for the OMGX stack (#149)

* next gen integration tests for the OMGX stack

* finish first pass integration test outline

* move LP tests to the `message-relayer-fast`

* Update omgx-integration.yml

* add more tests to message-relayer-fast

* connect up the .env variables

* hard code URIs

* Update utils.ts

* Update omgx-integration.yml

* fix - should have been 8080

* Update omgx-integration.yml

* which address to use?

* Update omgx-integration.yml

* removing not needed code

* remove superfluous logging code

* Update utils.ts

* Update utils.ts

* additional comments and formatting improvements

* fix: use older changes on tests (#152)

* fix: use older structure

* correct messenger

* LP fees on the correct side

* correct messenger

* rearrange depl order

Co-authored-by: Souradeep Das <dsouradeep2@gmail.com>

* Update README_OMGX.md (#150)

Refactored some changes and added some comments I thought might be helpful for people.

Co-authored-by: CAPtheorem <79423264+CAPtheorem@users.noreply.github.com>

* tests: re-enable all tests (#155)

* re-enable all tests

* re-enable all tests

* Add solhint to contracts package

* Turn off compiler-version rule in solhint

* Add suggestions by @maurelian
https://github.com/ethereum-optimism/optimism/pull/1033#issuecomment-866146467

* Change solhint output formatting to table

* Disable contract-name-camelcase rule in solhint

* Fix max-line-length linting issues in contracts

* Fix quotes linting issues in contracts

* Remove private-vars-leading-underscore rule in solhint

* Add contracts linting to github action

* Fix for hardhat account balance parsing

* Disable generating the bytecodeHash in hardhat contract artifacts

* Review fixes

* Fix review notes

* Fix smockit for a change in hardhat ^2.4.0
which changes the way it parses errors from returndata
Fix provided by @smartcontracts

* dtl: configurable gas price backend

Adds a new config option `--l1-gas-price-backend` or
`DATA_TRANSPORT_LAYER_L1_GAS_PRICE_BACKEND` that can be set to `l1` or
`l2`. This impacts the behavior of the HTTP endpoint `GET /eth/gasprice`
by changing what is queried to return the L1 gas price. The L1 gas price
is required to compute the L2 fee since the L2 fee consists of
`L1 gas price * L1 gas used + L1 gas price * L2 gas limit`. If the L1
gas price differs too much between different L2 providers, then users
using `eth_estimateGas` may submit transactions with too low of a fee
and be unable to submit transactions to the sequencer.

By configuring the DTL to use L2 as the L1 gas price backend, it will
call the Sequencer's RPC endpoint `rollup_gasPrices` which returns the
L1 and L2 gas prices from the point of view of the sequencer. The L2 gas
price exists in the state, so that will always be the same between the
sequencer and any replicas. The L1 gas price does not live on chain, so
querying for it from the sequencer directly will ensure that users send
transactions with a fee that is large enough.

Also adds eth/gasprice info to README.

* Remove bl wl service  (#154)

* replace `bl-wl` with direct calls the `omgx_deployer`

* Update docker-compose-omgx-services.yml

* Update up_local.sh

* Add CORS headers to http servers

* updated frontend to use the two new HTTP servers for the addresses

* update webwallet to work with both local and rinkeby

* Add missing .env variables to GH actions

* re-enable docker tages

* re-enable wallet transaction history

* Update up_local.sh

* Update up_local.sh

* Add flag to omgx_deployer to only serve addresses w/o deploying new contracts

* Update docker-compose-omgx-services.yml

* Add back tagging system and improved reliability of GH actions

* removed commented out service

* add rinkeby token addresses (#161)

Co-authored-by: CAPtheorem <79423264+CAPtheorem@users.noreply.github.com>

* fix: lint deploy-l2 folder in contracts

* Add AWS integration (#159)

* Add AWS integration

* Remove artifacts

* updated ops_omgx/README.md and added .github/workflows/deploy2aws-integration.yml and .github/workflows/push2aws.yml

* add automated provision and deletion of an ec2 instance for running the integration tests

Co-authored-by: Petar Denev <pdenev@gmail.com>

* fix: update CI to avoid running out of memory

* Version Packages

* ci: release latest image tags on release

* feat: update README to include info about rebasing

* Add op_exporter for sequencer metrics and health endoint
Added metric for sequencer health
Added Dockerfile for op_exporter;
Fixed Dockerfile path

* merge conflicts

* re-comment out the usual GH actions

* feat[integration-tests]: make tests work for prod networks

* chore: add changeset

* Increase client_body_buffer_size for rpc-proxy
Added client_max_body_size to rpc-proxy config

* l2geth: use `hexutil.Big` to prevent overflows

The `RollupClient` decodes the JSON from the DTL as a uint64,
this updates it to be a `big.Int`

Includes a test for the value field that ensures it does not overflow

* ci(contracts): only run codecov if contracts package is modified

In order to skip running the CodeCov job when it isn't relevant, a new job was added to the ts-packges workflow. For a PR, this job identifies all the files modified between the base branch and the tip of the PR branch, and writes to a variable which can be used to decide if subsequent jobs should run.

Github Actions provides an easy method for achieving this at the level of a workflow, but not for specific jobs within a workflow.

* Version Packages

* chore(ci): Skip codecov on push events

* feat: add workflow for running SNX test suite

* go: implement gasprices package

The `gasprices` package implements the logic that updates
L2 gasprices on the Optimistic Ethereum Network.

Co-authored-by: Karl Floersch <karl@karlfloersch.com>

* gas-oracle: implement and test

This commit adds the `gas-oracle` which is an offchain entity
that sends transactions to L2 to update the gas price. It must
be configured with a private key as the `OVM_GasPriceOracle`
is owned.

The `gas-oracle` is added to the changesets setup.

Tests are included as well as CI. Dockerizing will happen
in a follow up PR.

* gas-oracle: ci + docker build/publish

Adds a dockerfile for the `gas-oracle` as well as adding it as
a service in the `docker-compose.yaml`. It is not enabled by
default due to memory issues in CI already happening occasionally
where the integration tests are oom killed.

The `gas-oracle` is configured with a key that owns the
`OVM_GasPriceOracle`.

This PR adds the `gas-oracle` to the Github Actions
workflow that is responsible for publishing the docker images.

* Add replica (#169)

* fix: update erc20 deposits (#166)

* fix: update erc20 deposits

* fix: auto default token

Co-authored-by: CAPtheorem <79423264+CAPtheorem@users.noreply.github.com>

* resolve merge conflicts

* Update docker-compose.yml

* Update docker-compose.yml

* [pull] develop from ethereum-optimism:develop (#164)

* contracts: add set-l2-gasprice task

This task allows a user to update the L2 gas price using hardhat.
An example of doing so would be:

```bash
$ export CONTRACTS_DEPLOYER_KEY=0x..
$ CONTRACTS_RPC_URL=https://kovan.optimism.io npx hardhat set-l2-gasprice \
    --l2-gas-price 1
```

This hardcodes the predeploy address of the `OVM_GasPriceOracle` smart
contract and the Owner must be used to do the updating, otherwise the
transaction will revert.

* Add op_exporter for sequencer metrics and health endoint
Added metric for sequencer health
Added Dockerfile for op_exporter;
Fixed Dockerfile path

* feat[integration-tests]: make tests work for prod networks

* chore: add changeset

* Increase client_body_buffer_size for rpc-proxy
Added client_max_body_size to rpc-proxy config

* l2geth: use `hexutil.Big` to prevent overflows

The `RollupClient` decodes the JSON from the DTL as a uint64,
this updates it to be a `big.Int`

Includes a test for the value field that ensures it does not overflow

* ci(contracts): only run codecov if contracts package is modified

In order to skip running the CodeCov job when it isn't relevant, a new job was added to the ts-packges workflow. For a PR, this job identifies all the files modified between the base branch and the tip of the PR branch, and writes to a variable which can be used to decide if subsequent jobs should run.

Github Actions provides an easy method for achieving this at the level of a workflow, but not for specific jobs within a workflow.

* Version Packages

* chore(ci): Skip codecov on push events

* feat: add workflow for running SNX test suite

* go: implement gasprices package

The `gasprices` package implements the logic that updates
L2 gasprices on the Optimistic Ethereum Network.

Co-authored-by: Karl Floersch <karl@karlfloersch.com>

* gas-oracle: implement and test

This commit adds the `gas-oracle` which is an offchain entity
that sends transactions to L2 to update the gas price. It must
be configured with a private key as the `OVM_GasPriceOracle`
is owned.

The `gas-oracle` is added to the changesets setup.

Tests are included as well as CI. Dockerizing will happen
in a follow up PR.

* gas-oracle: ci + docker build/publish

Adds a dockerfile for the `gas-oracle` as well as adding it as
a service in the `docker-compose.yaml`. It is not enabled by
default due to memory issues in CI already happening occasionally
where the integration tests are oom killed.

The `gas-oracle` is configured with a key that owns the
`OVM_GasPriceOracle`.

This PR adds the `gas-oracle` to the Github Actions
workflow that is responsible for publishing the docker images.

Co-authored-by: Mark Tyneway <mark.tyneway@gmail.com>
Co-authored-by: Ben Wilson <bwilson@optimism.io>
Co-authored-by: Kelvin Fichter <kelvin@optimism.io>
Co-authored-by: smartcontracts <kelvinfichter@gmail.com>
Co-authored-by: Ben Wilson <82120899+optimisticben@users.noreply.github.com>
Co-authored-by: Kevin Ho <kevinjho1996@gmail.com>
Co-authored-by: Liam Horne <liam@lihorne.com>
Co-authored-by: Maurelian <maurelian@protonmail.ch>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Karl Floersch <karl@karlfloersch.com>

* Update docker-compose.yml

* adding l1-l2 test ecs scheduled task that does verify communication between L1 and L2 and L2 to L1 (#167)

Co-…
InoMurko added a commit to omgnetwork/optimism that referenced this issue Jul 15, 2021
* fix[relayer]: update exported files list in package.json (#1138)

* fix[relayer]: update exported files

* chore: add changeset

* fix: import path (#1141)

* fix: correct import path for altered contract path

* chore: add changeset

* refactor: improve logging for batch submission timeout scenarios (#1120)

* Fixed CrossDomainMessenger name (#96)

* Add highest L1 and L2 block number Gauge metrics to DTL (#1125)

* build: add prom-client to data-transport-layer

* refactor: thread metrics more carefully through data-transport-layer; add two new metrics

* style: fix some style issues

* refactor: make metrics mandatory

* refactor: move metrics register code to top of file

* style: apply linting

* refactor: move promethesus initialization after express

* refactor: move promBundle call up, provide registry

* build: add changeset

* Improve Watcher ability to find transactions (#1107)

* remove listeners and use loop to find tx receipt

* add yarn ready

* moved filters inside loop

* [added] changeset

* Add minimal vscode settings and extensions (#1109)

* chore: add minimal vscode settings and extensions

* chore: Add "files.trimTrailingWhitespace" to vscode native config

* chore: replace vscode prettier plugin with eslint plugin

* fix[contracts]: remove part of MultiMessageRelayer deployment (#1144)

* fix[contracts]: remove part of MultiMessageRelayer deployment

* chore: add changeset

* Define L1 Starting block via OwnershipTransferred rather than AddressSet (#1129)

* Update service.ts

* Create thirty-years-look.md

Co-authored-by: smartcontracts <kelvinfichter@gmail.com>

* Easy fix for broken watchers (#1121)

* Easy fix for broken watchers

* Ran yarn changeset

Co-authored-by: Liam Horne <liam@lihorne.com>

* feat: go packages (#1111)

* go: add utils module

* readme: update

* Version Packages (#1094)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* build: add husky pre-commit hook to lint (#1146)

* feat[contracts]: add mainnet deploy script (#1147)

* Add mainnet deploy script

* Update mainnet.sh

* Address PR review feedback

* feat: mainnet contract deployment 0.4.0 (#1148)

* feat: mainnet contract deployment 0.4.0

* feat: deployments readme

* chore: add changeset

* contracts: remove dead contract

* contracts: remove dead config

* tests: fix to not test for old contracts

* feat: `rollup gasPrices` RPC endpoint (#1136)

* feature: l2geth  endpoint

* chore: add changeset

Co-authored-by: Liam Horne <liam@lihorne.com>

* Adds l2 standard bridge to contracts markdown file (#1151)

* Version Packages (#1150)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Add more info about our branching strategy to the README (#1114)

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Remove references to OVM_L1ETHGateway in deployments and readme (#1119)

* Keep the user logged in after changing chain (#99)

* Keep the user logged in after changing chain

* Update Nft.js

* Detect if user is in the wrong chain

Co-authored-by: cby3149 <cby3149@outlook.com>
Co-authored-by: CAPtheorem <79423264+CAPtheorem@users.noreply.github.com>

* Merge conflics resolve (#110)

* wip

* gethl2

* wip

* batch submitter

* core utils

* DTL

* message relayer

* contracts

* wip

* Update service.ts

* DTL

* messaage-relayer

* Update yarn.lock

* final 5 files

* [pull] develop from ethereum-optimism:develop (#91)

* chore: reduce hardhat timeout to 20 seconds (#968)

* fix: force LF line endings for scripts to avoid docker problems on Windows (#974)

* fix: use correct line endings for windows

* chore: add changeset

* refactor[contracts]: Turn ExecutionManagerWrapper into a predeployed contract (#808)

* wip: Started working on L2 contract testing revamp

* test: clean tests for ProxyEOA

* style: clean imports for ProxyEOA tests

* test: port tests for ECDSAContractAccount

* fix tests and add wrapper to dump

* fix: add em wrapper to l2 deploy

* ffix: add comments to wrapper contract

* fix: add more comments

* fix: add smock comment for unbind

* Update packages/smock/src/smockit/binding.ts

* maintenance[contracts]: use dashes in chain container names (#819)

* maintenance: use dashes in chain container names

* chore: add changeset

* feat[contracts]: temporarily disable EOA upgrades (#857)

* feat[contracts]: disable eoa upgrades temporarily

* chore: add changeset

* Update OVM_ProxyEOA.sol

* fix: turn upgrade into a noop

* lint: fix

* feat[contracts]: Update Lib_AddressManager.AddressSet event to speed up data transport layer (#820)

* feat: update and improve AddressSet event

* chore: add changeset

* Update Lib_AddressManager.sol

* Reduce gas costs of deposits (#667)

* Remove messageNonce from BaseCrossDomainMessenger and use CTC queue lenght instead

Remove Abs_BaseCrossDomainMessenger and restore dedicated nonce generation in OVM_L2CrossDomainMessenger

Fix typo

* Remove sentMessages mapping from L1CrossDomainMessenger storage
and use the nonce to check for existence of replayed transaction

* Refactor out common library function for getting cross domain calldata

* Post rebase fixes

* Use the queueIndex to check the transaction was enqueued

* Fix tests for L1CrossDomainMessenger.replayMessage
Also make that test work with an actual CanonicalTransactionChain implementation rather than a smock

* Lint fixes

* Optimise the resolve calls into the AddressManager lib

* Rename the nonce parameter to be clear

* Update test name

Co-authored-by: ben-chain <ben@pseudonym.party>

* Rename getXDomainCalldata to encodeXDomainCalldata to match the new Lib_CrossDomainUtils

Co-authored-by: ben-chain <ben@pseudonym.party>

* optimism: bump gaslimit to 10 million #870 (#871)

* optimism: bump gaslimit to 10million

* chore: add changeset

* optimism: bump max gaslimit to 10 mil

* chore: add changeset

* chore: remove unnecessary changeset

* chore: remove unnecessary changeset

Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>

* fix: use correct contract name in tests (#921)

* fix: disable upgradability from ECDSA Account (#885)

* l2geth: remove `SignatureHashType` (#752)

* l2geth: remove tx type

* l2geth: no longer parse type in rollup client

* chore: add changeset

* chore: remove extra sighash params

* fix: do not check txtype in integration tests

Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>

* feat[contracts]: introduce OVM_GasPriceOracle (#912)

* feat[contracts]: congestion price oracle

* chore: add changeset

* contracts: gas price oracle (#917)

* contracts: gas price oracle

* tests: update

* fees: fix tests

* contracts: simplify gas price oracle

* lint: fix

* test: execution price is at the 1st storage slot

* chore: rename predeploy to GasPriceOracle

* chore: rename gas price oracle test name

Co-authored-by: Mark Tyneway <mark.tyneway@gmail.com>
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>

* fix: configure max gas limit to 11m (#928)

Uniswap V3 contracts require that, otherwise they throw call exceptions at deployment

* Consolidate Predeploy Addresses (#931)

* added library for predeploy addresses

* refactor tests and other packages to use exported predeploys

* revert library usage in OVM_ECDSAContractAccount

* lint

* added newline

* fixed address typos

Co-authored-by: rajivpo <rajivpatel-oconnor@Rajivs-MacBook-Pro-2.local>
Co-authored-by: smartcontracts <kelvinfichter@gmail.com>

* chore: remove yarn-error.log and gitignore it (#956)

* feat[contracts]: Replace Lib_RingBuffer with a much simpler Lib_Buffer (#821)

* feat[contracts]: replace Lib_RingBuffer with a simpler Lib_Buffer

* chore: changeset

* test: add tests for Lib_Buffer

* lint: fix

* test: add extra coverage for Lib_Buffer

* Update packages/contracts/contracts/optimistic-ethereum/libraries/utils/Lib_Buffer.sol

Co-authored-by: ben-chain <ben@pseudonym.party>

* add some extra comments

Co-authored-by: ben-chain <ben@pseudonym.party>

* fix(contracts): import predeploys (#982)

* fix(contracts): import predeploys

* fix: lint

* feat: add hardhat deploy instructions to readme (#965)

* feat: add deployment instructions to readme

* Add changeset

* fix style

* Update README.md

* feat: fees v2 (#976)

* l2 geth: new fee logic

* l2 geth: migrate to fees package

* core-utils: new fee scheme

* chore: add changeset

* l2geth: delete dead code

* integration-tests: fix typo

* integration-tests: fixes

* fees: use fee scalar

* lint: fix

* rollup: correct gas payment comparison

* fix(integration-tests): do not hardcode gas price

* core-utils: update with new scheme

* l2geth: refactor rollup oracle

* l2geth: clean up DoEstimateGas

* l2geth: implement latest scheme

* tests: fix up

* lint: fix

* l2geth: better sycn service test

* optimism: rename to TxGasLimit

* fee: fix docstring

* tests: fix

* variables: rename

* l2geth: prevent users from sending txs with too high of a fee

* integration-tests: fix import

* integration-tests: fix type

* integration-tests: fix gas limits

* lint: fix

* l2geth: log error

Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>

* Add static analysis action (#848)

* Add static analysis github action
setup python and install slither

* Add nvmrc file for setting node to v14.17

* Update slither command run to link missing contract packages from monorepo root

* Add steps for installing dependencies

* Add yarn build step to github action

* Enable colour in github action for static analysis

* Disable certain detectors

* Ensure slither does not fail build

* Add instructions on running static analysis to monorepo readme

* build(deps): bump ws from 7.4.4 to 7.4.6 in /ops/docker/hardhat (#987)

Bumps [ws](https://github.com/websockets/ws) from 7.4.4 to 7.4.6.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/7.4.4...7.4.6)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fix[l2geth]: fix accidental merge conflict (#994)

* feat[message-relayer]: relay tx generator (#952)

* feat[message-relayer]: relay tx generator

* whoops, I burned our infura key

* fix minor bug

* add comments

* add more comments and clean stuff up

* add empty test descriptions

* add tests

* move smock to dev deps

* chore: add changeset

* minor cleanup to merkle tree proof function

* use bignumber math to avoid nested await

* use a better interface

* minor fixes and simplifications

* backwards compatible dtl syncing (#986)

* kovan: fix attempt

* kovan: db fix

* kovan: types are strings from db

* l2geth: parse things as strings

* chore: add changeset

* dtl: also stringify the range query

* geth: dereference

* geth: assign err

* dtl: handle null

* dtl: fix unit tests

* fix[smock]: fix broken call assertions for overloaded functions  (#996)

* fix[smock]: fix broken call assertions for overloaded functions

* chore: add changeset

* minor correction and add a test

* add a test for non-overloaded functions

* fix[message-relayer]: fix failing test because of merge with develop (#1000)

* fix[message-relayer]: remove spreadsheet mode (#998)

* fix[message-relayer]: remove spreadsheet mode

* chore: add changeset

* Lower local rollup timestamp refresh (#985)

* update rollup timestamp refresh

* increase refresh time to 5s

* feat: fees v3 (#999)

* core-utils: fee impl v3

* l2geth: fees v3 impl

* integration-tests: update for fees v3

* chore: add changeset

* fix: typo

* integration-tests: fix and generalize

* fees: update fee scalar

* l2geth: check gas in the mempool behind usingovm

* tests: fix up

* l2geth: remove dead var

* truffle: fix config

* fix: remove dead coders (#1001)

* chore: delete dead coders

* chore: add changeset

* dtl: remove dead imports

* core-utils: delete dead tests

* batch-submitter: remove txtype

* chore: add changeset

* docs[message-relayer]: add a README and improve the interface for generating proofs (#1002)

* docs[message-relayer]: add basic docs and clean up an interface

* chore: add changeset

* dtl: log error stack for failed http request (#995)

* dtl: log error stack for failed http request

* chore: add changeset

* Add rpc-proxy service for whitelisting JSON RPC methods to the sequencer. (#945)

* Add healthcheck endpoint for rpc-proxy
Added ethereum-nginx-proxy source
updated README and docker image build

* Check ETH_CALLS_ALLOWED is set, clean up comments, remove old Dockerfile

* Pass additional information across domains via token gateways (#824)

* feat(contracts): add from and data args to L1ERC20Gateway

fix(integration): add gasLimit to fundUser

refactor(contracts): add data to gateway events
add changeset

fix(integration): provide data in outboundTransfer

refactor(contracts): reset Abs_L2TokenGateway to Abs_L2DepositedToken

refactor(contracts): fix mismatched names

* feat[contracts]: add custom gas arg to gateway

fix(contracts): take max of user vs. default gas

* fix(integrations): update ovm-eth function call

* fix(integration): remove unecessary explicit gasLimit

* test(contracts): 32kb transfer, 9MM gas

* fix(contracts): fixup comment, bytes arg last

* fix(integration): args order in integrations

* fix(contracts): remove unused L2 gas arg

* fix(contracts): limit data that can be passed to L2

* fix(integration): better tests for data length

* test: check for error on too large data

* Experimental: specify gaslimit in before hook

* fix(integration): add l2 gas argument

* fix: increase gas on fundUser

* fix(contracts): remove duplicate max size limit

* fix(integration): fine tune gas amounts

* lint

* fix: large data test

* fix(integration): set gas closer to real cost

* fix(contracts): remove unused bridge variables
These variables were the default gas amounts for cross domain messages

* fix(contracts): Reorder args

Place dynamic length args last

* fix(integration): update estimateGas values

* fix(integration): reset eth withdraw estimate to 21000

* fix(integration): update expected gas amount

* fix(integration): reduce gas amount for ETH withdraw

* More consistent style for Constant values (#991)

* chore(contracts): make container addresses be constants
chore(contracts): consistent style for constant vars

* chore(contracts): add internal on predeploy constants

* feat: deployment config for fee oracle contract (#936)

* feat[contracts]: add GasPriceOracle w/o predeploy

Based on #912

* feat[contracts]: congestion price oracle

* chore: add changeset

* contracts: gas price oracle (#917)

* contracts: gas price oracle

* tests: update

* fees: fix tests

* contracts: simplify gas price oracle

* lint: fix

* test: execution price is at the 1st storage slot

* chore: rename predeploy to GasPriceOracle

* chore: rename gas price oracle test name

Co-authored-by: Mark Tyneway <mark.tyneway@gmail.com>
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>

* Add an L2 deploy script for gas oracle contract

* Add a kovan deployment artifact

* Add deployment to readme

* Add extra validation & initial execution price

* Update README.md

* Fix execution price logic

* Perform new deployment with final contract

* contracts: better require in ovm gas price oracle

* Deploy L2GasPriceOracle

* Update contract to use new fee logic & rename to gas

* Deploy updated contract

* Fix lint

* gas price oracle: do not restrict gas price

* gas price oracle: new deployment

* tests: delete dead test

Co-authored-by: smartcontracts <kelvinfichter@gmail.com>
Co-authored-by: Mark Tyneway <mark.tyneway@gmail.com>
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>

* ops: expose debug namespace (#1007)

* develop merge fixes

* refactor[l2geth]: queue origin type (#975)

* refactor: queueOrigin type

* Convert queueOrigin to uint8 in encode

* Add changeset

* Regenerate json marshall

* style: combine lines

* Add Stringer for QueueOrigin

* Turn QueueOrigin into uint8

* l2geth: gen tx meta fix

* l2geth: gen tx meta fix

* lint

Co-authored-by: Mark Tyneway <mark.tyneway@gmail.com>

* fix(sync-service): prevent underflows (#1015)

* fix(sync-service): prevent underflows

* chore: add changeset

* chore: remove dead confirmation depth

* chore: remove eth1conf depth from rollup config

* test: remove duplicate value in array (#1014)

* ci: tag docker image for canary with abbreviated GITHUB_SHA (#1006)

* ci: tag docker image for canary with abbreviated GITHUB_SHA

* ci: update from 6 bytes to 8 bytes of abbreviation

* refactor: improve logging for transactions being submitted to chain with gasPrice (#1016)

* refactor: improve logging for transactions being submitted to chain with gasPrice

* lint: apply lint autofixes

* dtl: remove stringify from db logic + more overflow protection (#1010)

* dtl: remove stringify from db logic

* l2geth: overflow protection

* dtl: overflow protection

* chore: add changeset

* ci: upload logs for failed integration tests (#1020)

* fix(dtl): improve slow blocking JSON parsing that occurs during l2 sync (#1019)

The use of eth_getBlockRange returns a large response which is very
slow to parse in ethersjs, and can block the event loop for upwards
of multiple seconds.

When this happens, incoming http requests will likely timeout and fail.

Instead, we will parse the incoming http stream directly with the bfj
package, which yields the event loop periodically so that we don't
fail to serve requests.

* fix: lint errors in dtl (#1025)

* fix[dtl]: fix dtl bug breaking verifiers (#1011)

* fix[dtl]: fix dtl bug breaking verifiers

* tweaks so tests pass

* chore: add changeset

* fix: deterministic blockhashes (#1032)

* config: set etherbase

* l2geth: add deterministic clique key

* l2geth: default value

* chore: add changeset

* test: add sync test for deterministic blockhash

Co-authored-by: Kevin Ho <kevinjho1996@gmail.com>

* Version Packages (#978)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* ci: add sync test's own workflow (#1031)

* fix(dtl): incorrect parsing of eth_getBlockRange result (#1037)

* Version Packages (#1045)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* fix: no gas refund (#1043)

* l2geth: remove the gas refund

* chore: add changeset

* refactor[contracts]: remove one-off GasPriceOracle deployment file (#1046)

* refactor[contracts]: remove one-off gpo deployment

* chore: add changeset

* feat[contracts]: introduce new L1ChugSplashProxy contract (#1009)

* feat[contracts]: add L1ChugSplashProxy

* improve comments slightly

* start adding tests

* add more tests

* make the system pausable

* added another test

* add some extra comments

* Update packages/contracts/test/contracts/chugsplash/L1ChugSplashProxy.spec.ts

Co-authored-by: Maurelian <maurelian@protonmail.ch>

* Update packages/contracts/test/contracts/chugsplash/L1ChugSplashProxy.spec.ts

Co-authored-by: Maurelian <maurelian@protonmail.ch>

* chore: add changeset

* address review feedback

Co-authored-by: Maurelian <maurelian@protonmail.ch>

* feat[contracts]: add sequencer fee wallet (#1029)

* wip: first draft of the fee wallet

* add fee wallet to dump

* rename to sequencer vault

* add L1 fee wallet to geth config

* add unit tests

* fix geth linting error

* add a basic integration test

* fix broken integration test

* add test for correct storage slot

* add integration test for fee withdrawal

* fix typo in integration tests

* fix a bug bin integration tests

* Update OVM_SequencerFeeVault.sol

* fix bug in contract tests

* chore: add changeset

* fix bug in contract tests

* build(deps): bump glob-parent from 5.1.1 to 5.1.2 (#1036)

Bumps [glob-parent](https://github.com/gulpjs/glob-parent) from 5.1.1 to 5.1.2.
- [Release notes](https://github.com/gulpjs/glob-parent/releases)
- [Changelog](https://github.com/gulpjs/glob-parent/blob/main/CHANGELOG.md)
- [Commits](https://github.com/gulpjs/glob-parent/compare/v5.1.1...v5.1.2)

---
updated-dependencies:
- dependency-name: glob-parent
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: smartcontracts <kelvinfichter@gmail.com>
Co-authored-by: Liam Horne <liam@lihorne.com>

* fix: predeploy gasprice oracle (#1039)

* l2geth: delete extra config options

* l2geth: stop using extra config options

* l2geth: more stop using extra config options

* chore: add changeset

* l2geth: add new config for gpo owner

* chore: add changeset

* l2geth: fix tests

* tests: fix build

* l2geth: optimize loops (#1027)

* l2geth: optimize loops

* l2geth: stop ticker when done

* l2geth: don't wait for first tick

* chore: add changeset

* Enable custom tagging of release docker image (#1048)

* ci: enable custom tagging of release docker image

* ci: refactor to add prerelease prefix for secuirty

* doc: typo

* ci: fix indentation issue of canary workflow

* ci: fix typo with GITHUB_SHA

* fix: typo in USE_HARDHAT config (#1023)

* fix: abi encoded tx (#1049)

* contracts: don't double rlp decode

* chore: add changeset

* lint: fix

* deps: update

* linting: cleanup

* feat: contracts: use selector

* fix: contracts: use typescript

* contracts: use interface

* l2geth: bump to go 1.15 (#1058)

* l2geth: bump to go 1.15

* chore: add changeset

* Change monotonicity band-aid code to log warnings not errors (#1060)

* refactor: change monotonicity band-aid code to log warnings not errors

* build: add changeset

* feat(contracts, l2geth): native ETH value support for ovmCALL (#1038)

* feat(contracts): add ovmCALL-types with native value

* add ovmCALLVALUE context

* add ovmBALANCE

* test success and revert cases

* test empty contract case

* chore: lint

* test(integration-tests): ovmCALL-types with value (compiler and wrapper)

* fix ovmDELEGATECALL type, update tests

* add ovmSELFBALANCE

* fix ovmDELEGATECALL jumping to CALL

* chore: lint

* fix(contracts): account for intrinsic gas of OVM_ETH sends

* fix(contracts): merge conflict bug

* fix(contracts): update gas benchmark

* feat(contracts, integration-tests): use new value-compatible compiler

* feat(contracts,l2geth): support value calls in OVM_ECDSAContractAccount

* fix(contracts): ovmDELEGATECALL does not change message context

* feat(contracts): sending value between EOAs

* test(integration-tests): ovmDELEGATECALL preserves ovmCALLVALUE

* test(integration-tests): assert ovmSELFBALANCEs correct

* test(integration-tests): intrinsic gas for eth value calls

* test(integration-tests): update gas values

* chore(contracts): lint

* feat(contracts, l2geth): eth_calls with nonzero value

* chore: minor fixups and comments based on PR feedback

* test(integration-tests): add requested tests from PR reviews

* test(integration-tests): ovmSELFBALANCE is preserved in ovmDELEGATECALLs

* fix(contracts): fix bug where ovmDELEGATECALL could fail if balance was lower than the ovmCALLVALUE

* chore: add changeset

* fix(contracts): update intrinsic gas for worst-case value sends

* chore: address final PR nits/improvements

Co-authored-by: Kelvin Fichter <kelvinfichter@gmail.com>

* Add erc1271 support to contract account (#1052)

* add ERC1271 support, failing unit tests

* add integration test for isValidSignature

* remove .only

* lint

* add changeset

* clean up 1271 tests and lint

* switch back to using waffle wallet

* lint

* fix import

* feat[contracts]: slightly better account funding for hardhat accounts (rebased) (#1065)

* feat[contracts]: better account funding for hardhat accounts

* add a sleep to avoid any potential problems

* chore: add changeset

* fix: bug with gas estimation in funding step

* fix: limit to 20 accounts max

Co-authored-by: Kelvin Fichter <kelvinfichter@gmail.com>

* Ensure Sentry is correctly set up for DTL and MR (#1054)

* refactor: add logger and metrics to options for BaseService

* refactor: thread sentryOptions through from message-relayer into BaseService

* refactor: ensure DTL Logger is using Sentry for errors

* style: lint base-service.ts

* refactor: init Sentry on batch-submitter too

* refactor: init Sentry on message-relayer too

* refactor: pass in basic logger to MessageRelayerService

* build: provide changeset

* fix: correct usage of use-sentry boolean config

* refactor: appropriately type loggingOptions

* build: add @sentry/node

* build: add @sentry/node to message-relayer and fix linting issue

* Add more logging information to monotonicity violation logs (#1066)

* refactor: log idx of monotonicity violation from batch

* build: add changeset

* temporarily disable hardhat example tests (#1071)

* fix: monotonicity auto healer (#1070)

* fix: monotonicity auto healer

* add: changeset

* Version Packages (#1053)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Standard token bridge (#988)

* Remove abstract token gateway and deposited token implementations

* Further simplification of bridge contracts

* Standart token bridge and L2 token implementation

* Fix spacing

* Implement case when a bad deposit happens to a nonexistent L1<>L2 token pair

* Use SafeMath in common token bridge accounting

* test(contracts): fix finalizeWithdrawal test

* fix(contracts): use SafeERC20 on token deposits

* Rename OVM_L1ERC20Gateway to OVM_L1ERC20Bridge contract

* Rename iOVM_L1ERC20Gateway to iOVM_L1ERC20Bridge contract

* Cleanup gateway to bridge rename

* Better name for the mapping holding l1->l2 deposit amounts

* Use OZ SafeMath

* Rename local variables in OVM_L2DepositedERC20 from gateway to bridge

* Merge ETH and ERC20 bridge contracts

* Rename OVM_L1ERC20Bridge to OVM_L1StandardBridge and fix tests from merging the ETH and ERC20 bridges

* Better name for iAbs_BaseCrossDomainMessenger -> iOVM_CrossDomainMessenger

* Correct the bounce back of deposit sender and recipient properties

* Remove obsoleted event from OVM_L2DepositedERC20

* chore(contracts): change references from ETHGateway to Bridge

* Fix a linting error

* fix(contracts): add bridge to deployer

* Split off ERC20Bridge interface for the purposes
of being reused in custom ERC20 bridges

* Split off interface natspec definitions

* Draft version of OVM_L2DepositedERC20 splitted into a standard L2 erc20: L2StandardERC20 and
a common L2 bridge: OVM_L2StandardBridge

* style(contracts): define L1_ETH_ADDRESS as constant

* test(integration): update interface to use depositETH

* test(contracts): fix OVM_L1StandardBridge tests

* test(contracts): fix L2 Standard Bridge tests

* test(contracts): lint and remove an obsolete test case

* Fix modifier check to comply with the L2 bridge distinction from L2 token

* Simplify address <> interface casting in bridges

* Ensure natspec comments are correct
also add l1 and l2 token params to WithdrawalInitiated event for consistency

* Fix issues in L1 and L2 bridges to ensure
cross domain messages are sent only between the two bridges
also adjusted withdrawals to send to either finalizeETHWithdrawal or finalizeERC20Withdrawal
depending on which asset is being withdrawn

* Remove AddressManager from the L1 standard bridge

* REVERT ME: instruments cross domain enabled

* fix(contracts): remove Address Manager from L1 Bridge

* feat(contracts): make L2 Standard Bridge a predeploy

* WIP: update deployments for standard bridges

* WIP: update deployments for standard bridges

* l2geth: TEMP log contract calls

* chore(l2geth): replace eth gateway with standard bridge

* fix(contracts): make contract-deployment/config work

* WIP fix(integration): update integration tests for bridge

* Remove ovmEth from L1 Standard bridge as obsoleted

* Separate ERC20 standard implementation from L2 bridge

* Formatting fixes

* chore(l2geth): replace eth gateway with standard bridge

* Revert "REVERT ME: instruments cross domain enabled"

This reverts commit d5bb8f8f67974d0a3e65fc000f08858328a4bbbc.

* fix: lint ts

* Implement EIP-165 in the Standard L2 ERC20 token
Also switch that to be based off the OpenZeppelin default implementation plus mint and burn
Additionally remove the obsoleted iOVM_ERC20

* fix(contracts): add deployment check on bridge proxy
fix(contracts): whitespace
fix(contracts): init bridge implementation with non-zero address

* Remove dependency on Ownable contract for the StandardERC20 token on L2

* fix(contracts): update deployment scripts

* fix: lint

* remove debugging code

* fix: correct rpc get balance slot

* restore l2 cross domain messenger

* fix: lint

* Add a test for a non compliant token deposit

* Only allow EOAs to deposit ETH and ERC20

* Add comments and tests for ERC165 implementation

* Decide against using explicit ETH MOCK address as we're not using it for checks

* Fix linting issues

* Add onlyEOAContract restriction to standard bridge withdrawals

* Update codehashes in L2 Standard bridge

* fix(ops): remove unintentionally added file

* feat(contracts): add expectApproxGasCost function

* fix(integration): proper arrayify input on fundUser

* fix(integration): proper gas value checks

* Revert "Add onlyEOAContract restriction to standard bridge withdrawals"

This reverts commit 2713c06ceb2609e4f13718e1034a4d76210d9758.

* fix(contracts): removed unused expectApproxGasCost for now

* fix(contracts): update OVM_SequencerFeeVault for bridge changes

* lint

* Update deployment for L1 Bridge w/ ChugSplash

* Revert "l2geth: TEMP log contract calls"

This reverts commit 21d42259278449f221bf34605162229b3d9d4fa9.

* Apply suggestions from code review

* Apply suggestions from code review

* fix(contracts): deploy with chugsplash proxy

* fix(contracts): add working bridge and chugsplash proxy deployment

* fix(contracts,integration): 500k gas for depositETH

* comment(contracts): describe failed deposit handling on l2

* Apply suggestions from code review

Co-authored-by: ben-chain <ben@pseudonym.party>

* docs: add changeset

* fix(integration): set working l2 gas amount on funduser

* test(integration): add receive() test

* fix(contracts): reset receive to 1.2MM l2 gas

* test(examples): skip l1-l2 example test for now

* fix(contracts): drop hardcoded gas to 500k in receive()

* fix(contracts): use abi.encodeWithSignature

* fix(contracts): resolve merge conflicts

* feat(integration): add expectApprox for flexible gas testing

* fix(integration): fix failing gas tests

* fix: incorrect l2 gas for deposit

* Update utils.ts

* fix(workflow): disable l1-l2 example until npm imports are fixed

* chore: final round of PR review nits and tests

Co-authored-by: Maurelian <maurelian@protonmail.ch>
Co-authored-by: Mark Tyneway <mark.tyneway@gmail.com>
Co-authored-by: ben-chain <ben@pseudonym.party>
Co-authored-by: Kelvin Fichter <kelvinfichter@gmail.com>

* fix: comment out codeowners (#1073)

* fix: use predeploy constant lib for em wrapper (#1075)

* fix: use predeploy constant lib for em wrapper

* chore: add changeset

* fix[l2geth]: off-by-one sometimes breaking replica sync (#1082)

* fix[l2geth]: off-by-one sometimes breaking replica sync

* chore: add changeset

* fix(l2geth): Log 'end of OVM execution' correctly (#1080)

* refactor[contracts]: move account contracts to predeploy folder (#1085)

* refactor[contracts]: move account contracts to predeploy folder

* chore: add changeset

* maintenance[contracts]: rename precompiles test folder to predeploys (#1086)

* fix[bs]: disambiguate generic submission errors (#1051)

* fix[bs]: disambiguate generic submission errors

* add cases for errors

* separate out errors from transaction reverts with reasons

* remove extraneous errors

* WETH deposit and withdraw on OVM_ETH (#1083)

* feat(contracts): add no-op WETH9 functionality to OVM_ETH

* working WETH deposit and withdraw + tests

* add changeset

* address PR feedback

* update WETH9 contract implementation

* add fallback to WETH9

* add fallback and revert withdraw test

* update nit comment

Co-authored-by: ben <ben@pseudonym.party>

* Also move the accounts interface to iOVM/predeploys (#1087)

* refactor[contracts]: move account interface to predeploy folder

* chore: add changeset

* Version Packages (#1089)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* fix: use -z flag for var unset in canary

* Use Eslint instead of Tslint (#1005)

* removed tslint

* forgot to commit files

* made .eslintrc.js consistent for all subdirs and other cleanup

* [removed] includes and files keys from tsconfig.json

* removed file level linting exceptions and added details to line level

* added changeset

* fixed newly introduced linting errors from rebase

* enable json import for batch submitter

* removed ecdsa-coder

* maybe a tsconfig issue?

* Update deploy.ts

Co-authored-by: smartcontracts <kelvinfichter@gmail.com>
Co-authored-by: platocrat <37757724+platocrat@users.noreply.github.com>

* metrics[batch-submitter]: add new batch submitter metrics (#1074)

* metrics[batch-submitter]: add new batch submitter metrics

* chore: changeset

* account for failed submissions

* Fix canary publishing (#1093)

* ci: fix custom docker tag

* ci: use new env file

* ci: use outputs from previous job

* ci: fix headers of jobs

* ci: inherit canary tag from builder

* feat[ci]: upload logs for sync tests if failure (#1098)

* deploy: goerli 0.4.0 (#1099)

* deployments: goerli 0.4.0 rc

* readme: update

* chore: add changeset

* fix[dtl]: defend against RPC provider missing events (#1084)

* fix[dtl]: defend against RPC provider missing events

* chore: add changeset

* respond to review comments

* better error handling for missing handlers

* deploy: kovan v.4.0 rc (#1101)

* deploy: kovan v0.4.0 rc

* chore: add changeset

* readme: update

* maintenance[monorepo]: first pass update to README (#1106)

* maintenance[monorepo]: first pass update to README

Doing some relatively minor updates to the README just to clean things up a bit.

* replying to review comments

* Move the metric prefix string to a label (#1047)

Added changeset and fixes
Changeset to patch

* fix[smock]: add support for hardhat 2.4.0 (#1112)

* fix[smock]: add support for hardhat 2.4.0

* chore: add changeset

* lint: fix

* build(deps): bump hosted-git-info from 2.8.8 to 2.8.9 (#1064)

Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.8.8 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases)
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md)
- [Commits](https://github.com/npm/hosted-git-info/compare/v2.8.8...v2.8.9)

---
updated-dependencies:
- dependency-name: hosted-git-info
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: smartcontracts <kelvinfichter@gmail.com>

* Misc. small improvements to README (#1115)

* Update README.md

* Update README.md

* fix[dtl]: use the same L2 chain ID everywhere (#1122)

* fix[dtl]: use the same L2 chain ID everywhere

* chore: add changeset

* fix: make sync tests only on workflow dispatch (#1123)

* fix[dtl]: remove old stringification function (#1134)

* fix[dtl]: remove old stringification function

* chore: add changeset

* fix[dtl]: log server errors as ERROR instead of INFO (#1133)

* fix[dtl]: log server errors as ERROR instead of INFO

* chore: add changeset

* Contracts: connectL1Contracts & connectL2Contracts  (#713)

* Contracts: connect-contracts

* Trying to resolve build problems

* connect-contracts build working

* Adds artifacts-ovm back to gitignore

* Removes incorrect changes

* Adds copy-artifacts script

* Adds test file (not working yet)

* fix: incorrect contract instantiation

* Improves tests and removes old deployment versions

* Single source of truth for predeploy addresses

* Reverts deployments/README.md

* Makes connect-contracts more DRY

* Adds missing @ethersproject/abstract-signer dependency

* Adds argument evaluation

* Adds L1Contracts and L2Contracts types

* Attempts removing artifacts-ovm again

* Adds webpack config (not working yet)

* build: add artifacts to dist (#776)

* Updates lint rule

* Adds l2 imports

* Fixes dependency tree bug

* Removes webpack stuff

* Fixing package.json issues and adds .DS_Store to gitignore

* Removes test-contracts script

* Reverting script change

* Adds comments

* Adds comment

* Renames deployments folders

* Fixes linting errors

* Generates markdown

* build: add deployments directory to Dockerfiles

* Removes unneeded contracts, improves error handling and tests

* Adds changeset

* yarn.lock

* Removes console.log

* Changes from minor to patch version

* Fixes lint errors

Co-authored-by: Kelvin Fichter <kelvinfichter@gmail.com>
Co-authored-by: Liam Horne <liam@lihorne.com>
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>

* fix: prevent overflow in abi encoding (#1135)

* l2geth: prevent overflow in abi encoding to ovm codec tx

* chore: add changeset

* tests: replica syncing (#981)

* [wip] add l2_dtl and replica images

* passing basic dummy tx test

* add erc20 test

* add sync test to ci

Co-authored-by: Mark Tyneway <mark.tyneway@gmail.com>

* fix[relayer]: update exported files list in package.json (#1138)

* fix[relayer]: update exported files

* chore: add changeset

* fix: import path (#1141)

* fix: correct import path for altered contract path

* chore: add changeset

* refactor: improve logging for batch submission timeout scenarios (#1120)

* Add highest L1 and L2 block number Gauge metrics to DTL (#1125)

* build: add prom-client to data-transport-layer

* refactor: thread metrics more carefully through data-transport-layer; add two new metrics

* style: fix some style issues

* refactor: make metrics mandatory

* refactor: move metrics register code to top of file

* style: apply linting

* refactor: move promethesus initialization after express

* refactor: move promBundle call up, provide registry

* build: add changeset

* Improve Watcher ability to find transactions (#1107)

* remove listeners and use loop to find tx receipt

* add yarn ready

* moved filters inside loop

* [added] changeset

* Add minimal vscode settings and extensions (#1109)

* chore: add minimal vscode settings and extensions

* chore: Add "files.trimTrailingWhitespace" to vscode native config

* chore: replace vscode prettier plugin with eslint plugin

* fix[contracts]: remove part of MultiMessageRelayer deployment (#1144)

* fix[contracts]: remove part of MultiMessageRelayer deployment

* chore: add changeset

* Define L1 Starting block via OwnershipTransferred rather than AddressSet (#1129)

* Update service.ts

* Create thirty-years-look.md

Co-authored-by: smartcontracts <kelvinfichter@gmail.com>

* Easy fix for broken watchers (#1121)

* Easy fix for broken watchers

* Ran yarn changeset

Co-authored-by: Liam Horne <liam@lihorne.com>

* feat: go packages (#1111)

* go: add utils module

* readme: update

* Version Packages (#1094)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* build: add husky pre-commit hook to lint (#1146)

* feat[contracts]: add mainnet deploy script (#1147)

* Add mainnet deploy script

* Update mainnet.sh

* Address PR review feedback

* feat: mainnet contract deployment 0.4.0 (#1148)

* feat: mainnet contract deployment 0.4.0

* feat: deployments readme

* chore: add changeset

* contracts: remove dead contract

* contracts: remove dead config

* tests: fix to not test for old contracts

* feat: `rollup gasPrices` RPC endpoint (#1136)

* feature: l2geth  endpoint

* chore: add changeset

Co-authored-by: Liam Horne <liam@lihorne.com>

* Adds l2 standard bridge to contracts markdown file (#1151)

* Version Packages (#1150)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Add more info about our branching strategy to the README (#1114)

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Remove references to OVM_L1ETHGateway in deployments and readme (#1119)

Co-authored-by: Maurelian <maurelian@protonmail.ch>
Co-authored-by: smartcontracts <kelvinfichter@gmail.com>
Co-authored-by: Elena Gesheva <elena@arenabg.com>
Co-authored-by: ben-chain <ben@pseudonym.party>
Co-authored-by: Mark Tyneway <mark.tyneway@gmail.com>
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
Co-authored-by: Karl Floersch <karl@karlfloersch.com>
Co-authored-by: Rajiv Patel-O'Connor <rajiv.patel.oconnor@gmail.com>
Co-authored-by: rajivpo <rajivpatel-oconnor@Rajivs-MacBook-Pro-2.local>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kevin Ho <kevinjho1996@gmail.com>
Co-authored-by: Ben Wilson <82120899+optimisticben@users.noreply.github.com>
Co-authored-by: Liam Horne <liam@lihorne.com>
Co-authored-by: Tim Myers <timmyers09@gmail.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Annie Ke <annieke8@gmail.com>
Co-authored-by: platocrat <37757724+platocrat@users.noreply.github.com>
Co-authored-by: Matt Masurka <m.masurka@gmail.com>
Co-authored-by: CAPtheorem <79423264+CAPtheorem@users.noreply.github.com>
Co-authored-by: Alejandro Santander <Palebluedot@gmail.com>

* Re-apply key changes on top of optimism most current develop

* Add docker-compose-replica.yml (#109)

* Create docker-compose-replica.yml

* Add replica service

* Update docker-compose-omgx-replica.yml

Co-authored-by: CAPtheorem <79423264+CAPtheorem@users.noreply.github.com>

* fix linter; patch gethl2

* configure the deployer correctly

* fix proposer / batch submitter

* update chainIDs

* update rpc test

* Create README_OMGX.md

* upstream - needs more work

* Adds delay to watcher (#1159)

* Adds delay to watcher

* Simplifies delay

* Adds changeset

* Fix wallet test

* Fix deployment test

* Add Python

* Update Dockerfile.omgx_monorepo

* Remove package-lock

* fix: bind dtl functions for missing event codepath (#1161)

* dtl: bind this in L1 missing element error handlers

* dtl: add additional logline

* chore: add changeset

* dtl: add more metrics

* dtl: use counter instead of gauge

Co-authored-by: Kevin Ho <kevinjho1996@gmail.com>

* fix: remove 'editor.formatOnSave' from global settings' (#1163)

* merge conflicts

* Update pre-commit

* Version Packages (#1167)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* minor

* Update pre-commit

* Fix wallet test (#119)

* Fix wallet test

* Fix deployment test

* Add Python

* Update Dockerfile.omgx_monorepo

* Remove package-lock

Co-authored-by: CAPtheorem <79423264+CAPtheorem@users.noreply.github.com>

* Reapply standard changes on top of current develop

* Update package.json

* doc: add notes for releasing new versions with changesets (#1166)

* Bind correct object to method handler in DTL (#1168)

* fix: bind correct object to method handler

* build: add changeset

* Version Packages (#1169)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Fix web wallet

* Fix integration test (#124)

* Fix integration test (#125)

* Fix integration test

* Fix integration test

* Fix wallet_react

* Fix lint test

* Remove package-lock

* Update integration.yml

* Fix wallet deployer

* Collect docker log

* Fix l1-l2-deposit-withdrawal test

* Fix sync test

* Add chainID to deployer config

* make sync tests dispatch only

Co-authored-by: CAPtheorem <79423264+CAPtheorem@users.noreply.github.com>

* Add short contribution section to primary README (#1157)

* Add short contribution section to primary README

* Update README.md

* fix: prevent batch submitter from submitting batches if low on ETH

* build: add changeset

* Eslint ignore the hardhat folder

* Update README.md

* Beginning to add working examples

* hardhart and waffle example tests

* document/check waffle

* test l1-l2 example

* add patch-package

* Update package.json

* build: ensure lint only staged files on commit

* refactor: do not run --fix on lint-staged

* refactor: *.{ts,js} for eslint regex

* l2geth: rollup client explicitly checks for >= 400 errors

* l2geth: sync service retries connection to remote server

* l2geth: test errors returning from remote

* chore: add changeset

* syncservice: nit

* feat[message-relayer]: add easy relay tool

* chore: add changeset

* upkeep[monorepo]: add changeset info to README

* merge conflict squash

* Daily sync up (#137)

* build: ensure lint only staged files on commit

* refactor: do not run --fix on lint-staged

* refactor: *.{ts,js} for eslint regex

* l2geth: rollup client explicitly checks for >= 400 errors

* l2geth: sync service retries connection to remote server

* l2geth: test errors returning from remote

* chore: add changeset

* syncservice: nit

* feat[message-relayer]: add easy relay tool

* chore: add changeset

* upkeep[monorepo]: add changeset info to README

Co-authored-by: Liam Horne <liam@lihorne.com>
Co-authored-by: Mark Tyneway <mark.tyneway@gmail.com>
Co-authored-by: Kelvin Fichter <kelvin@optimism.io>
Co-authored-by: smartcontracts <kelvinfichter@gmail.com>

* build: set up eslint prettier correctly

* style: run yarn lint --fix at root

* build: add necessary packages to workspace root

* build: remove --format stylish

* build: set semvery ranges to match across packages

* build: set up prettierrc.js for monorepo

* refactor: rename Range to BlockRange

* build: set up correct working directories

* build: set up lint:fix to use eslint not prettier

* style: run lint:fix on all code

* build: remove prettier extension recommendation

* style: update configuration to include babel-eslint for .js linting

* build: set concurrency to 1 to prevent git add errors on lerna lint

* github actions: bump geth CI golang version

* fix(contracts): prevent L2->L1 calls to system contracts

* Update message relayer fast contracts (#139)

* prepare for wallet reorg

* Create yarn.lock

* fix hardhat bug

* merge conflict resolve

* daily sync up (#141)

* build: set up eslint prettier correctly

* style: run yarn lint --fix at root

* build: add necessary packages to workspace root

* build: remove --format stylish

* build: set semvery ranges to match across packages

* build: set up prettierrc.js for monorepo

* refactor: rename Range to BlockRange

* build: set up correct working directories

* build: set up lint:fix to use eslint not prettier

* style: run lint:fix on all code

* build: remove prettier extension recommendation

* style: update configuration to include babel-eslint for .js linting

* build: set concurrency to 1 to prevent git add errors on lerna lint

* fix(contracts): prevent L2->L1 calls to system contracts

Co-authored-by: Liam Horne <liam@lihorne.com>
Co-authored-by: ben <ben@pseudonym.party>

* Add Factory contract for creating standard ERC20 tokens
compliant with the standard bridge

* Disallow 0 address for l1 token when creating l2 standard token

* Fix linting issue

* Add deployment script for the L2 token factory

* Fix deploy script OVM_L2StandardTokenFactory constructor params

* Add changeset

* Cleanup deployment script for OVM_L2StandardTokenFactory
and fix a solidity linting error

* refactor(integration): Add clarity to the expectApprox function signature

* fix: skip codechecks for PRs from external repos

* DRAFT move react wallet and the contracts to more clear folders (#138)

* DRAFT move react wallet and the contracts to more clear folders

* merging the axios integration chagnes

* updated the message-relayer-fast contracts

* integrate message-relayer-fast into standard dockers

* Dockerize the message-relayer-fast

* update Readme.md

* remove duplicated contracts - just keep everything in /contracts

* add deploy for fast messenger

* message-relayer-fast testing

* Update serve.sh

* Delete yarn.lock

* Update constants.ts

* Create yarn.lock

* Update constants.ts

* Update function-manipulation.spec.ts

* increase the retries and other minor fixes

* Improved documentation

* fix omgx integration tests

* Update omgx-integration.yml

* integration test remove duplicated tests

* Fix units test configuration

* Update docker-compose-omgx-services.yml

* integration test setup fixes

* fix wallet integration test

* fix for crash on return

* integration tests for `message-relayer-fast`

* Update env.ts

* Autodeploy Token Bridges

* Update wallet contracts

* Update utils.ts

* improve omgx integration tests

* Add address manager address to GH actions for now

Co-authored-by: sahil kashetwar <>
Co-authored-by: Sahil k <sahil@enya.ai>
Co-authored-by: cby3149 <cby3149@outlook.com>

* merge conflicts

* GH actions regular changes

* husky

* Daily sync up (#144)

* build: set up eslint prettier correctly

* style: run yarn lint --fix at root

* build: add necessary packages to workspace root

* build: remove --format stylish

* build: set semvery ranges to match across packages

* build: set up prettierrc.js for monorepo

* refactor: rename Range to BlockRange

* build: set up correct working directories

* build: set up lint:fix to use eslint not prettier

* style: run lint:fix on all code

* build: remove prettier extension recommendation

* style: update configuration to include babel-eslint for .js linting

* build: set concurrency to 1 to prevent git add errors on lerna lint

* github actions: bump geth CI golang version

* fix(contracts): prevent L2->L1 calls to system contracts

* Add Factory contract for creating standard ERC20 tokens
compliant with the standard bridge

* Disallow 0 address for l1 token when creating l2 standard token

* Fix linting issue

* Add deployment script for the L2 token factory

* Fix deploy script OVM_L2StandardTokenFactory constructor params

* Add changeset

* Cleanup deployment script for OVM_L2StandardTokenFactory
and fix a solidity linting error

* refactor(integration): Add clarity to the expectApprox function signature

* fix: skip codechecks for PRs from external repos

Co-authored-by: Liam Horne <liam@lihorne.com>
Co-authored-by: Mark Tyneway <mark.tyneway@gmail.com>
Co-authored-by: ben <ben@pseudonym.party>
Co-authored-by: elenadimitrova <elena@arenabg.com>
Co-authored-by: Reggie Gomez <reggieag@gmail.com>
Co-authored-by: smartcontracts <kelvinfichter@gmail.com>

* docker: pin to alpine 3.13 for l2geth

A bug has appeared when older versions of Docker are used to build
alpine based images in alpine version 3.14. To prevent this problem
from happening to the users, this PR pins the version to 3.13.

The observed problem is that `make` cannot run any command and
the error message states `Operation not permitted.` Removing
`make` was one way to solve the problem but that would increase
the diff from upstream geth.

See these links for details:
https://github.com/alpinelinux/docker-alpine/issues/182
https://wiki.alpinelinux.org/wiki/Release_Notes_for_Alpine_3.14.0

* fix: update statement for skipping codechecks

* contracts: add set-l2-gasprice task

This task allows a user to update the L2 gas price using hardhat.
An example of doing so would be:

```bash
$ export CONTRACTS_DEPLOYER_KEY=0x..
$ CONTRACTS_RPC_URL=https://kovan.optimism.io npx hardhat set-l2-gasprice \
    --l2-gas-price 1
```

This hardcodes the predeploy address of the `OVM_GasPriceOracle` smart
contract and the Owner must be used to do the updating, otherwise the
transaction will revert.

* removed unused functions from core utils

* [added] changeset

* next gen integration tests for the OMGX stack (#149)

* next gen integration tests for the OMGX stack

* finish first pass integration test outline

* move LP tests to the `message-relayer-fast`

* Update omgx-integration.yml

* add more tests to message-relayer-fast

* connect up the .env variables

* hard code URIs

* Update utils.ts

* Update omgx-integration.yml

* fix - should have been 8080

* Update omgx-integration.yml

* which address to use?

* Update omgx-integration.yml

* removing not needed code

* remove superfluous logging code

* Update utils.ts

* Update utils.ts

* additional comments and formatting improvements

* fix: use older changes on tests (#152)

* fix: use older structure

* correct messenger

* LP fees on the correct side

* correct messenger

* rearrange depl order

Co-authored-by: Souradeep Das <dsouradeep2@gmail.com>

* Update README_OMGX.md (#150)

Refactored some changes and added some comments I thought might be helpful for people.

Co-authored-by: CAPtheorem <79423264+CAPtheorem@users.noreply.github.com>

* tests: re-enable all tests (#155)

* re-enable all tests

* re-enable all tests

* Add solhint to contracts package

* Turn off compiler-version rule in solhint

* Add suggestions by @maurelian
https://github.com/ethereum-optimism/optimism/pull/1033#issuecomment-866146467

* Change solhint output formatting to table

* Disable contract-name-camelcase rule in solhint

* Fix max-line-length linting issues in contracts

* Fix quotes linting issues in contracts

* Remove private-vars-leading-underscore rule in solhint

* Add contracts linting to github action

* Fix for hardhat account balance parsing

* Disable generating the bytecodeHash in hardhat contract artifacts

* Review fixes

* Fix review notes

* Fix smockit for a change in hardhat ^2.4.0
which changes the way it parses errors from returndata
Fix provided by @smartcontracts

* dtl: configurable gas price backend

Adds a new config option `--l1-gas-price-backend` or
`DATA_TRANSPORT_LAYER_L1_GAS_PRICE_BACKEND` that can be set to `l1` or
`l2`. This impacts the behavior of the HTTP endpoint `GET /eth/gasprice`
by changing what is queried to return the L1 gas price. The L1 gas price
is required to compute the L2 fee since the L2 fee consists of
`L1 gas price * L1 gas used + L1 gas price * L2 gas limit`. If the L1
gas price differs too much between different L2 providers, then users
using `eth_estimateGas` may submit transactions with too low of a fee
and be unable to submit transactions to the sequencer.

By configuring the DTL to use L2 as the L1 gas price backend, it will
call the Sequencer's RPC endpoint `rollup_gasPrices` which returns the
L1 and L2 gas prices from the point of view of the sequencer. The L2 gas
price exists in the state, so that will always be the same between the
sequencer and any replicas. The L1 gas price does not live on chain, so
querying for it from the sequencer directly will ensure that users send
transactions with a fee that is large enough.

Also adds eth/gasprice info to README.

* Remove bl wl service  (#154)

* replace `bl-wl` with direct calls the `omgx_deployer`

* Update docker-compose-omgx-services.yml

* Update up_local.sh

* Add CORS headers to http servers

* updated frontend to use the two new HTTP servers for the addresses

* update webwallet to work with both local and rinkeby

* Add missing .env variables to GH actions

* re-enable docker tages

* re-enable wallet transaction history

* Update up_local.sh

* Update up_local.sh

* Add flag to omgx_deployer to only serve addresses w/o deploying new contracts

* Update docker-compose-omgx-services.yml

* Add back tagging system and improved reliability of GH actions

* removed commented out service

* add rinkeby token addresses (#161)

Co-authored-by: CAPtheorem <79423264+CAPtheorem@users.noreply.github.com>

* fix: lint deploy-l2 folder in contracts

* Add AWS integration (#159)

* Add AWS integration

* Remove artifacts

* updated ops_omgx/README.md and added .github/workflows/deploy2aws-integration.yml and .github/workflows/push2aws.yml

* add automated provision and deletion of an ec2 instance for running the integration tests

Co-authored-by: Petar Denev <pdenev@gmail.com>

* fix: update CI to avoid running out of memory

* Version Packages

* ci: release latest image tags on release

* feat: update README to include info about rebasing

* Add op_exporter for sequencer metrics and health endoint
Added metric for sequencer health
Added Dockerfile for op_exporter;
Fixed Dockerfile path

* merge conflicts

* re-comment out the usual GH actions

* feat[integration-tests]: make tests work for prod networks

* chore: add changeset

* Increase client_body_buffer_size for rpc-proxy
Added client_max_body_size to rpc-proxy config

* l2geth: use `hexutil.Big` to prevent overflows

The `RollupClient` decodes the JSON from the DTL as a uint64,
this updates it to be a `big.Int`

Includes a test for the value field that ensures it does not overflow

* ci(contracts): only run codecov if contracts package is modified

In order to skip running the CodeCov job when it isn't relevant, a new job was added to the ts-packges workflow. For a PR, this job identifies all the files modified between the base branch and the tip of the PR branch, and writes to a variable which can be used to decide if subsequent jobs should run.

Github Actions provides an easy method for achieving this at the level of a workflow, but not for specific jobs within a workflow.

* Version Packages

* chore(ci): Skip codecov on push events

* feat: add workflow for running SNX test suite

* go: implement gasprices package

The `gasprices` package implements the logic that updates
L2 gasprices on the Optimistic Ethereum Network.

Co-authored-by: Karl Floersch <karl@karlfloersch.com>

* gas-oracle: implement and test

This commit adds the `gas-oracle` which is an offchain entity
that sends transactions to L2 to update the gas price. It must
be configured with a private key as the `OVM_GasPriceOracle`
is owned.

The `gas-oracle` is added to the changesets setup.

Tests are included as well as CI. Dockerizing will happen
in a follow up PR.

* gas-oracle: ci + docker build/publish

Adds a dockerfile for the `gas-oracle` as well as adding it as
a service in the `docker-compose.yaml`. It is not enabled by
default due to memory issues in CI already happening occasionally
where the integration tests are oom killed.

The `gas-oracle` is configured with a key that owns the
`OVM_GasPriceOracle`.

This PR adds the `gas-oracle` to the Github Actions
workflow that is responsible for publishing the docker images.

* Add replica (#169)

* fix: update erc20 deposits (#166)

* fix: update erc20 deposits

* fix: auto default token

Co-authored-by: CAPtheorem <79423264+CAPtheorem@users.noreply.github.com>

* resolve merge conflicts

* Update docker-compose.yml

* Update docker-compose.yml

* [pull] develop from ethereum-optimism:develop (#164)

* contracts: add set-l2-gasprice task

This task allows a user to update the L2 gas price using hardhat.
An example of doing so would be:

```bash
$ export CONTRACTS_DEPLOYER_KEY=0x..
$ CONTRACTS_RPC_URL=https://kovan.optimism.io npx hardhat set-l2-gasprice \
    --l2-gas-price 1
```

This hardcodes the predeploy address of the `OVM_GasPriceOracle` smart
contract and the Owner must be used to do the updating, otherwise the
transaction will revert.

* Add op_exporter for sequencer metrics and health endoint
Added metric for sequencer health
Added Dockerfile for op_exporter;
Fixed Dockerfile path

* feat[integration-tests]: make tests work for prod networks

* chore: add changeset

* Increase client_body_buffer_size for rpc-proxy
Added client_max_body_size to rpc-proxy config

* l2geth: use `hexutil.Big` to prevent overflows

The `RollupClient` decodes the JSON from the DTL as a uint64,
this updates it to be a `big.Int`

Includes a test for the value field that ensures it does not overflow

* ci(contracts): only run codecov if contracts package is modified

In order to skip running the CodeCov job when it isn't relevant, a new job was added to the ts-packges workflow. For a PR, this job identifies all the files modified between the base branch and the tip of the PR branch, and writes to a variable which can be used to decide if subsequent jobs should run.

Github Actions provides an easy method for achieving this at the level of a workflow, but not for specific jobs within a workflow.

* Version Packages

* chore(ci): Skip codecov on push events

* feat: add workflow for running SNX test suite

* go: implement gasprices package

The `gasprices` package implements the logic that updates
L2 gasprices on the Optimistic Ethereum Network.

Co-authored-by: Karl Floersch <karl@karlfloersch.com>

* gas-oracle: implement and test

This commit adds the `gas-oracle` which is an offchain entity
that sends transactions to L2 to update the gas price. It must
be configured with a private key as the `OVM_GasPriceOracle`
is owned.

The `gas-oracle` is added to the changesets setup.

Tests are included as well as CI. Dockerizing will happen
in a follow up PR.

* gas-oracle: ci + docker build/publish

Adds a dockerfile for the `gas-oracle` as well as adding it as
a service in the `docker-compose.yaml`. It is not enabled by
default due to memory issues in CI already happening occasionally
where the integration tests are oom killed.

The `gas-oracle` is configured with a key that owns the
`OVM_GasPriceOracle`.

This PR adds the `gas-oracle` to the Github Actions
workflow that is responsible for publishing the docker images.

Co-authored-by: Mark Tyneway <mark.tyneway@gmail.com>
Co-authored-by: Ben Wilson <bwilson@optimism.io>
Co-authored-by: Kelvin Fichter <kelvin@optimism.io>
Co-authored-by: smartcontracts <kelvinfichter@gmail.com>
Co-authored-by: Ben Wilson <82120899+optimisticben@users.noreply.github.com>
Co-authored-by: Kevin Ho <kevinjho1996@gmail.com>
Co-authored-by: Liam Horne <liam@lihorne.com>
Co-authored-by: Maurelian <maurelian@protonmail.ch>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Karl Floersch <karl@karlfloersch.com>

* Update docker-compose.yml

* adding l1-l2 test ecs scheduled task that does verify communication between L1 and L2 and L2 to L1 (#167)

Co-authored-by: CAPtheorem <79423264+CAPtheorem@users.noreply.github.com>

* Update docker-compose.yml

* daily update (#170)

* contracts: add set-l2-gasprice task

This task allows a user to update the L2 …
InoMurko added a commit to omgnetwork/optimism that referenced this issue Jul 15, 2021
* fix: import path (#1141)

* fix: correct import path for altered contract path

* chore: add changeset

* refactor: improve logging for batch submission timeout scenarios (#1120)

* Fixed CrossDomainMessenger name (#96)

* Add highest L1 and L2 block number Gauge metrics to DTL (#1125)

* build: add prom-client to data-transport-layer

* refactor: thread metrics more carefully through data-transport-layer; add two new metrics

* style: fix some style issues

* refactor: make metrics mandatory

* refactor: move metrics register code to top of file

* style: apply linting

* refactor: move promethesus initialization after express

* refactor: move promBundle call up, provide registry

* build: add changeset

* Improve Watcher ability to find transactions (#1107)

* remove listeners and use loop to find tx receipt

* add yarn ready

* moved filters inside loop

* [added] changeset

* Add minimal vscode settings and extensions (#1109)

* chore: add minimal vscode settings and extensions

* chore: Add "files.trimTrailingWhitespace" to vscode native config

* chore: replace vscode prettier plugin with eslint plugin

* fix[contracts]: remove part of MultiMessageRelayer deployment (#1144)

* fix[contracts]: remove part of MultiMessageRelayer deployment

* chore: add changeset

* Define L1 Starting block via OwnershipTransferred rather than AddressSet (#1129)

* Update service.ts

* Create thirty-years-look.md

Co-authored-by: smartcontracts <kelvinfichter@gmail.com>

* Easy fix for broken watchers (#1121)

* Easy fix for broken watchers

* Ran yarn changeset

Co-authored-by: Liam Horne <liam@lihorne.com>

* feat: go packages (#1111)

* go: add utils module

* readme: update

* Version Packages (#1094)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* build: add husky pre-commit hook to lint (#1146)

* feat[contracts]: add mainnet deploy script (#1147)

* Add mainnet deploy script

* Update mainnet.sh

* Address PR review feedback

* feat: mainnet contract deployment 0.4.0 (#1148)

* feat: mainnet contract deployment 0.4.0

* feat: deployments readme

* chore: add changeset

* contracts: remove dead contract

* contracts: remove dead config

* tests: fix to not test for old contracts

* feat: `rollup gasPrices` RPC endpoint (#1136)

* feature: l2geth  endpoint

* chore: add changeset

Co-authored-by: Liam Horne <liam@lihorne.com>

* Adds l2 standard bridge to contracts markdown file (#1151)

* Version Packages (#1150)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Add more info about our branching strategy to the README (#1114)

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Remove references to OVM_L1ETHGateway in deployments and readme (#1119)

* Keep the user logged in after changing chain (#99)

* Keep the user logged in after changing chain

* Update Nft.js

* Detect if user is in the wrong chain

Co-authored-by: cby3149 <cby3149@outlook.com>
Co-authored-by: CAPtheorem <79423264+CAPtheorem@users.noreply.github.com>

* Merge conflics resolve (#110)

* wip

* gethl2

* wip

* batch submitter

* core utils

* DTL

* message relayer

* contracts

* wip

* Update service.ts

* DTL

* messaage-relayer

* Update yarn.lock

* final 5 files

* [pull] develop from ethereum-optimism:develop (#91)

* chore: reduce hardhat timeout to 20 seconds (#968)

* fix: force LF line endings for scripts to avoid docker problems on Windows (#974)

* fix: use correct line endings for windows

* chore: add changeset

* refactor[contracts]: Turn ExecutionManagerWrapper into a predeployed contract (#808)

* wip: Started working on L2 contract testing revamp

* test: clean tests for ProxyEOA

* style: clean imports for ProxyEOA tests

* test: port tests for ECDSAContractAccount

* fix tests and add wrapper to dump

* fix: add em wrapper to l2 deploy

* ffix: add comments to wrapper contract

* fix: add more comments

* fix: add smock comment for unbind

* Update packages/smock/src/smockit/binding.ts

* maintenance[contracts]: use dashes in chain container names (#819)

* maintenance: use dashes in chain container names

* chore: add changeset

* feat[contracts]: temporarily disable EOA upgrades (#857)

* feat[contracts]: disable eoa upgrades temporarily

* chore: add changeset

* Update OVM_ProxyEOA.sol

* fix: turn upgrade into a noop

* lint: fix

* feat[contracts]: Update Lib_AddressManager.AddressSet event to speed up data transport layer (#820)

* feat: update and improve AddressSet event

* chore: add changeset

* Update Lib_AddressManager.sol

* Reduce gas costs of deposits (#667)

* Remove messageNonce from BaseCrossDomainMessenger and use CTC queue lenght instead

Remove Abs_BaseCrossDomainMessenger and restore dedicated nonce generation in OVM_L2CrossDomainMessenger

Fix typo

* Remove sentMessages mapping from L1CrossDomainMessenger storage
and use the nonce to check for existence of replayed transaction

* Refactor out common library function for getting cross domain calldata

* Post rebase fixes

* Use the queueIndex to check the transaction was enqueued

* Fix tests for L1CrossDomainMessenger.replayMessage
Also make that test work with an actual CanonicalTransactionChain implementation rather than a smock

* Lint fixes

* Optimise the resolve calls into the AddressManager lib

* Rename the nonce parameter to be clear

* Update test name

Co-authored-by: ben-chain <ben@pseudonym.party>

* Rename getXDomainCalldata to encodeXDomainCalldata to match the new Lib_CrossDomainUtils

Co-authored-by: ben-chain <ben@pseudonym.party>

* optimism: bump gaslimit to 10 million #870 (#871)

* optimism: bump gaslimit to 10million

* chore: add changeset

* optimism: bump max gaslimit to 10 mil

* chore: add changeset

* chore: remove unnecessary changeset

* chore: remove unnecessary changeset

Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>

* fix: use correct contract name in tests (#921)

* fix: disable upgradability from ECDSA Account (#885)

* l2geth: remove `SignatureHashType` (#752)

* l2geth: remove tx type

* l2geth: no longer parse type in rollup client

* chore: add changeset

* chore: remove extra sighash params

* fix: do not check txtype in integration tests

Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>

* feat[contracts]: introduce OVM_GasPriceOracle (#912)

* feat[contracts]: congestion price oracle

* chore: add changeset

* contracts: gas price oracle (#917)

* contracts: gas price oracle

* tests: update

* fees: fix tests

* contracts: simplify gas price oracle

* lint: fix

* test: execution price is at the 1st storage slot

* chore: rename predeploy to GasPriceOracle

* chore: rename gas price oracle test name

Co-authored-by: Mark Tyneway <mark.tyneway@gmail.com>
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>

* fix: configure max gas limit to 11m (#928)

Uniswap V3 contracts require that, otherwise they throw call exceptions at deployment

* Consolidate Predeploy Addresses (#931)

* added library for predeploy addresses

* refactor tests and other packages to use exported predeploys

* revert library usage in OVM_ECDSAContractAccount

* lint

* added newline

* fixed address typos

Co-authored-by: rajivpo <rajivpatel-oconnor@Rajivs-MacBook-Pro-2.local>
Co-authored-by: smartcontracts <kelvinfichter@gmail.com>

* chore: remove yarn-error.log and gitignore it (#956)

* feat[contracts]: Replace Lib_RingBuffer with a much simpler Lib_Buffer (#821)

* feat[contracts]: replace Lib_RingBuffer with a simpler Lib_Buffer

* chore: changeset

* test: add tests for Lib_Buffer

* lint: fix

* test: add extra coverage for Lib_Buffer

* Update packages/contracts/contracts/optimistic-ethereum/libraries/utils/Lib_Buffer.sol

Co-authored-by: ben-chain <ben@pseudonym.party>

* add some extra comments

Co-authored-by: ben-chain <ben@pseudonym.party>

* fix(contracts): import predeploys (#982)

* fix(contracts): import predeploys

* fix: lint

* feat: add hardhat deploy instructions to readme (#965)

* feat: add deployment instructions to readme

* Add changeset

* fix style

* Update README.md

* feat: fees v2 (#976)

* l2 geth: new fee logic

* l2 geth: migrate to fees package

* core-utils: new fee scheme

* chore: add changeset

* l2geth: delete dead code

* integration-tests: fix typo

* integration-tests: fixes

* fees: use fee scalar

* lint: fix

* rollup: correct gas payment comparison

* fix(integration-tests): do not hardcode gas price

* core-utils: update with new scheme

* l2geth: refactor rollup oracle

* l2geth: clean up DoEstimateGas

* l2geth: implement latest scheme

* tests: fix up

* lint: fix

* l2geth: better sycn service test

* optimism: rename to TxGasLimit

* fee: fix docstring

* tests: fix

* variables: rename

* l2geth: prevent users from sending txs with too high of a fee

* integration-tests: fix import

* integration-tests: fix type

* integration-tests: fix gas limits

* lint: fix

* l2geth: log error

Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>

* Add static analysis action (#848)

* Add static analysis github action
setup python and install slither

* Add nvmrc file for setting node to v14.17

* Update slither command run to link missing contract packages from monorepo root

* Add steps for installing dependencies

* Add yarn build step to github action

* Enable colour in github action for static analysis

* Disable certain detectors

* Ensure slither does not fail build

* Add instructions on running static analysis to monorepo readme

* build(deps): bump ws from 7.4.4 to 7.4.6 in /ops/docker/hardhat (#987)

Bumps [ws](https://github.com/websockets/ws) from 7.4.4 to 7.4.6.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/7.4.4...7.4.6)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fix[l2geth]: fix accidental merge conflict (#994)

* feat[message-relayer]: relay tx generator (#952)

* feat[message-relayer]: relay tx generator

* whoops, I burned our infura key

* fix minor bug

* add comments

* add more comments and clean stuff up

* add empty test descriptions

* add tests

* move smock to dev deps

* chore: add changeset

* minor cleanup to merkle tree proof function

* use bignumber math to avoid nested await

* use a better interface

* minor fixes and simplifications

* backwards compatible dtl syncing (#986)

* kovan: fix attempt

* kovan: db fix

* kovan: types are strings from db

* l2geth: parse things as strings

* chore: add changeset

* dtl: also stringify the range query

* geth: dereference

* geth: assign err

* dtl: handle null

* dtl: fix unit tests

* fix[smock]: fix broken call assertions for overloaded functions  (#996)

* fix[smock]: fix broken call assertions for overloaded functions

* chore: add changeset

* minor correction and add a test

* add a test for non-overloaded functions

* fix[message-relayer]: fix failing test because of merge with develop (#1000)

* fix[message-relayer]: remove spreadsheet mode (#998)

* fix[message-relayer]: remove spreadsheet mode

* chore: add changeset

* Lower local rollup timestamp refresh (#985)

* update rollup timestamp refresh

* increase refresh time to 5s

* feat: fees v3 (#999)

* core-utils: fee impl v3

* l2geth: fees v3 impl

* integration-tests: update for fees v3

* chore: add changeset

* fix: typo

* integration-tests: fix and generalize

* fees: update fee scalar

* l2geth: check gas in the mempool behind usingovm

* tests: fix up

* l2geth: remove dead var

* truffle: fix config

* fix: remove dead coders (#1001)

* chore: delete dead coders

* chore: add changeset

* dtl: remove dead imports

* core-utils: delete dead tests

* batch-submitter: remove txtype

* chore: add changeset

* docs[message-relayer]: add a README and improve the interface for generating proofs (#1002)

* docs[message-relayer]: add basic docs and clean up an interface

* chore: add changeset

* dtl: log error stack for failed http request (#995)

* dtl: log error stack for failed http request

* chore: add changeset

* Add rpc-proxy service for whitelisting JSON RPC methods to the sequencer. (#945)

* Add healthcheck endpoint for rpc-proxy
Added ethereum-nginx-proxy source
updated README and docker image build

* Check ETH_CALLS_ALLOWED is set, clean up comments, remove old Dockerfile

* Pass additional information across domains via token gateways (#824)

* feat(contracts): add from and data args to L1ERC20Gateway

fix(integration): add gasLimit to fundUser

refactor(contracts): add data to gateway events
add changeset

fix(integration): provide data in outboundTransfer

refactor(contracts): reset Abs_L2TokenGateway to Abs_L2DepositedToken

refactor(contracts): fix mismatched names

* feat[contracts]: add custom gas arg to gateway

fix(contracts): take max of user vs. default gas

* fix(integrations): update ovm-eth function call

* fix(integration): remove unecessary explicit gasLimit

* test(contracts): 32kb transfer, 9MM gas

* fix(contracts): fixup comment, bytes arg last

* fix(integration): args order in integrations

* fix(contracts): remove unused L2 gas arg

* fix(contracts): limit data that can be passed to L2

* fix(integration): better tests for data length

* test: check for error on too large data

* Experimental: specify gaslimit in before hook

* fix(integration): add l2 gas argument

* fix: increase gas on fundUser

* fix(contracts): remove duplicate max size limit

* fix(integration): fine tune gas amounts

* lint

* fix: large data test

* fix(integration): set gas closer to real cost

* fix(contracts): remove unused bridge variables
These variables were the default gas amounts for cross domain messages

* fix(contracts): Reorder args

Place dynamic length args last

* fix(integration): update estimateGas values

* fix(integration): reset eth withdraw estimate to 21000

* fix(integration): update expected gas amount

* fix(integration): reduce gas amount for ETH withdraw

* More consistent style for Constant values (#991)

* chore(contracts): make container addresses be constants
chore(contracts): consistent style for constant vars

* chore(contracts): add internal on predeploy constants

* feat: deployment config for fee oracle contract (#936)

* feat[contracts]: add GasPriceOracle w/o predeploy

Based on #912

* feat[contracts]: congestion price oracle

* chore: add changeset

* contracts: gas price oracle (#917)

* contracts: gas price oracle

* tests: update

* fees: fix tests

* contracts: simplify gas price oracle

* lint: fix

* test: execution price is at the 1st storage slot

* chore: rename predeploy to GasPriceOracle

* chore: rename gas price oracle test name

Co-authored-by: Mark Tyneway <mark.tyneway@gmail.com>
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>

* Add an L2 deploy script for gas oracle contract

* Add a kovan deployment artifact

* Add deployment to readme

* Add extra validation & initial execution price

* Update README.md

* Fix execution price logic

* Perform new deployment with final contract

* contracts: better require in ovm gas price oracle

* Deploy L2GasPriceOracle

* Update contract to use new fee logic & rename to gas

* Deploy updated contract

* Fix lint

* gas price oracle: do not restrict gas price

* gas price oracle: new deployment

* tests: delete dead test

Co-authored-by: smartcontracts <kelvinfichter@gmail.com>
Co-authored-by: Mark Tyneway <mark.tyneway@gmail.com>
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>

* ops: expose debug namespace (#1007)

* develop merge fixes

* refactor[l2geth]: queue origin type (#975)

* refactor: queueOrigin type

* Convert queueOrigin to uint8 in encode

* Add changeset

* Regenerate json marshall

* style: combine lines

* Add Stringer for QueueOrigin

* Turn QueueOrigin into uint8

* l2geth: gen tx meta fix

* l2geth: gen tx meta fix

* lint

Co-authored-by: Mark Tyneway <mark.tyneway@gmail.com>

* fix(sync-service): prevent underflows (#1015)

* fix(sync-service): prevent underflows

* chore: add changeset

* chore: remove dead confirmation depth

* chore: remove eth1conf depth from rollup config

* test: remove duplicate value in array (#1014)

* ci: tag docker image for canary with abbreviated GITHUB_SHA (#1006)

* ci: tag docker image for canary with abbreviated GITHUB_SHA

* ci: update from 6 bytes to 8 bytes of abbreviation

* refactor: improve logging for transactions being submitted to chain with gasPrice (#1016)

* refactor: improve logging for transactions being submitted to chain with gasPrice

* lint: apply lint autofixes

* dtl: remove stringify from db logic + more overflow protection (#1010)

* dtl: remove stringify from db logic

* l2geth: overflow protection

* dtl: overflow protection

* chore: add changeset

* ci: upload logs for failed integration tests (#1020)

* fix(dtl): improve slow blocking JSON parsing that occurs during l2 sync (#1019)

The use of eth_getBlockRange returns a large response which is very
slow to parse in ethersjs, and can block the event loop for upwards
of multiple seconds.

When this happens, incoming http requests will likely timeout and fail.

Instead, we will parse the incoming http stream directly with the bfj
package, which yields the event loop periodically so that we don't
fail to serve requests.

* fix: lint errors in dtl (#1025)

* fix[dtl]: fix dtl bug breaking verifiers (#1011)

* fix[dtl]: fix dtl bug breaking verifiers

* tweaks so tests pass

* chore: add changeset

* fix: deterministic blockhashes (#1032)

* config: set etherbase

* l2geth: add deterministic clique key

* l2geth: default value

* chore: add changeset

* test: add sync test for deterministic blockhash

Co-authored-by: Kevin Ho <kevinjho1996@gmail.com>

* Version Packages (#978)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* ci: add sync test's own workflow (#1031)

* fix(dtl): incorrect parsing of eth_getBlockRange result (#1037)

* Version Packages (#1045)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* fix: no gas refund (#1043)

* l2geth: remove the gas refund

* chore: add changeset

* refactor[contracts]: remove one-off GasPriceOracle deployment file (#1046)

* refactor[contracts]: remove one-off gpo deployment

* chore: add changeset

* feat[contracts]: introduce new L1ChugSplashProxy contract (#1009)

* feat[contracts]: add L1ChugSplashProxy

* improve comments slightly

* start adding tests

* add more tests

* make the system pausable

* added another test

* add some extra comments

* Update packages/contracts/test/contracts/chugsplash/L1ChugSplashProxy.spec.ts

Co-authored-by: Maurelian <maurelian@protonmail.ch>

* Update packages/contracts/test/contracts/chugsplash/L1ChugSplashProxy.spec.ts

Co-authored-by: Maurelian <maurelian@protonmail.ch>

* chore: add changeset

* address review feedback

Co-authored-by: Maurelian <maurelian@protonmail.ch>

* feat[contracts]: add sequencer fee wallet (#1029)

* wip: first draft of the fee wallet

* add fee wallet to dump

* rename to sequencer vault

* add L1 fee wallet to geth config

* add unit tests

* fix geth linting error

* add a basic integration test

* fix broken integration test

* add test for correct storage slot

* add integration test for fee withdrawal

* fix typo in integration tests

* fix a bug bin integration tests

* Update OVM_SequencerFeeVault.sol

* fix bug in contract tests

* chore: add changeset

* fix bug in contract tests

* build(deps): bump glob-parent from 5.1.1 to 5.1.2 (#1036)

Bumps [glob-parent](https://github.com/gulpjs/glob-parent) from 5.1.1 to 5.1.2.
- [Release notes](https://github.com/gulpjs/glob-parent/releases)
- [Changelog](https://github.com/gulpjs/glob-parent/blob/main/CHANGELOG.md)
- [Commits](https://github.com/gulpjs/glob-parent/compare/v5.1.1...v5.1.2)

---
updated-dependencies:
- dependency-name: glob-parent
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: smartcontracts <kelvinfichter@gmail.com>
Co-authored-by: Liam Horne <liam@lihorne.com>

* fix: predeploy gasprice oracle (#1039)

* l2geth: delete extra config options

* l2geth: stop using extra config options

* l2geth: more stop using extra config options

* chore: add changeset

* l2geth: add new config for gpo owner

* chore: add changeset

* l2geth: fix tests

* tests: fix build

* l2geth: optimize loops (#1027)

* l2geth: optimize loops

* l2geth: stop ticker when done

* l2geth: don't wait for first tick

* chore: add changeset

* Enable custom tagging of release docker image (#1048)

* ci: enable custom tagging of release docker image

* ci: refactor to add prerelease prefix for secuirty

* doc: typo

* ci: fix indentation issue of canary workflow

* ci: fix typo with GITHUB_SHA

* fix: typo in USE_HARDHAT config (#1023)

* fix: abi encoded tx (#1049)

* contracts: don't double rlp decode

* chore: add changeset

* lint: fix

* deps: update

* linting: cleanup

* feat: contracts: use selector

* fix: contracts: use typescript

* contracts: use interface

* l2geth: bump to go 1.15 (#1058)

* l2geth: bump to go 1.15

* chore: add changeset

* Change monotonicity band-aid code to log warnings not errors (#1060)

* refactor: change monotonicity band-aid code to log warnings not errors

* build: add changeset

* feat(contracts, l2geth): native ETH value support for ovmCALL (#1038)

* feat(contracts): add ovmCALL-types with native value

* add ovmCALLVALUE context

* add ovmBALANCE

* test success and revert cases

* test empty contract case

* chore: lint

* test(integration-tests): ovmCALL-types with value (compiler and wrapper)

* fix ovmDELEGATECALL type, update tests

* add ovmSELFBALANCE

* fix ovmDELEGATECALL jumping to CALL

* chore: lint

* fix(contracts): account for intrinsic gas of OVM_ETH sends

* fix(contracts): merge conflict bug

* fix(contracts): update gas benchmark

* feat(contracts, integration-tests): use new value-compatible compiler

* feat(contracts,l2geth): support value calls in OVM_ECDSAContractAccount

* fix(contracts): ovmDELEGATECALL does not change message context

* feat(contracts): sending value between EOAs

* test(integration-tests): ovmDELEGATECALL preserves ovmCALLVALUE

* test(integration-tests): assert ovmSELFBALANCEs correct

* test(integration-tests): intrinsic gas for eth value calls

* test(integration-tests): update gas values

* chore(contracts): lint

* feat(contracts, l2geth): eth_calls with nonzero value

* chore: minor fixups and comments based on PR feedback

* test(integration-tests): add requested tests from PR reviews

* test(integration-tests): ovmSELFBALANCE is preserved in ovmDELEGATECALLs

* fix(contracts): fix bug where ovmDELEGATECALL could fail if balance was lower than the ovmCALLVALUE

* chore: add changeset

* fix(contracts): update intrinsic gas for worst-case value sends

* chore: address final PR nits/improvements

Co-authored-by: Kelvin Fichter <kelvinfichter@gmail.com>

* Add erc1271 support to contract account (#1052)

* add ERC1271 support, failing unit tests

* add integration test for isValidSignature

* remove .only

* lint

* add changeset

* clean up 1271 tests and lint

* switch back to using waffle wallet

* lint

* fix import

* feat[contracts]: slightly better account funding for hardhat accounts (rebased) (#1065)

* feat[contracts]: better account funding for hardhat accounts

* add a sleep to avoid any potential problems

* chore: add changeset

* fix: bug with gas estimation in funding step

* fix: limit to 20 accounts max

Co-authored-by: Kelvin Fichter <kelvinfichter@gmail.com>

* Ensure Sentry is correctly set up for DTL and MR (#1054)

* refactor: add logger and metrics to options for BaseService

* refactor: thread sentryOptions through from message-relayer into BaseService

* refactor: ensure DTL Logger is using Sentry for errors

* style: lint base-service.ts

* refactor: init Sentry on batch-submitter too

* refactor: init Sentry on message-relayer too

* refactor: pass in basic logger to MessageRelayerService

* build: provide changeset

* fix: correct usage of use-sentry boolean config

* refactor: appropriately type loggingOptions

* build: add @sentry/node

* build: add @sentry/node to message-relayer and fix linting issue

* Add more logging information to monotonicity violation logs (#1066)

* refactor: log idx of monotonicity violation from batch

* build: add changeset

* temporarily disable hardhat example tests (#1071)

* fix: monotonicity auto healer (#1070)

* fix: monotonicity auto healer

* add: changeset

* Version Packages (#1053)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Standard token bridge (#988)

* Remove abstract token gateway and deposited token implementations

* Further simplification of bridge contracts

* Standart token bridge and L2 token implementation

* Fix spacing

* Implement case when a bad deposit happens to a nonexistent L1<>L2 token pair

* Use SafeMath in common token bridge accounting

* test(contracts): fix finalizeWithdrawal test

* fix(contracts): use SafeERC20 on token deposits

* Rename OVM_L1ERC20Gateway to OVM_L1ERC20Bridge contract

* Rename iOVM_L1ERC20Gateway to iOVM_L1ERC20Bridge contract

* Cleanup gateway to bridge rename

* Better name for the mapping holding l1->l2 deposit amounts

* Use OZ SafeMath

* Rename local variables in OVM_L2DepositedERC20 from gateway to bridge

* Merge ETH and ERC20 bridge contracts

* Rename OVM_L1ERC20Bridge to OVM_L1StandardBridge and fix tests from merging the ETH and ERC20 bridges

* Better name for iAbs_BaseCrossDomainMessenger -> iOVM_CrossDomainMessenger

* Correct the bounce back of deposit sender and recipient properties

* Remove obsoleted event from OVM_L2DepositedERC20

* chore(contracts): change references from ETHGateway to Bridge

* Fix a linting error

* fix(contracts): add bridge to deployer

* Split off ERC20Bridge interface for the purposes
of being reused in custom ERC20 bridges

* Split off interface natspec definitions

* Draft version of OVM_L2DepositedERC20 splitted into a standard L2 erc20: L2StandardERC20 and
a common L2 bridge: OVM_L2StandardBridge

* style(contracts): define L1_ETH_ADDRESS as constant

* test(integration): update interface to use depositETH

* test(contracts): fix OVM_L1StandardBridge tests

* test(contracts): fix L2 Standard Bridge tests

* test(contracts): lint and remove an obsolete test case

* Fix modifier check to comply with the L2 bridge distinction from L2 token

* Simplify address <> interface casting in bridges

* Ensure natspec comments are correct
also add l1 and l2 token params to WithdrawalInitiated event for consistency

* Fix issues in L1 and L2 bridges to ensure
cross domain messages are sent only between the two bridges
also adjusted withdrawals to send to either finalizeETHWithdrawal or finalizeERC20Withdrawal
depending on which asset is being withdrawn

* Remove AddressManager from the L1 standard bridge

* REVERT ME: instruments cross domain enabled

* fix(contracts): remove Address Manager from L1 Bridge

* feat(contracts): make L2 Standard Bridge a predeploy

* WIP: update deployments for standard bridges

* WIP: update deployments for standard bridges

* l2geth: TEMP log contract calls

* chore(l2geth): replace eth gateway with standard bridge

* fix(contracts): make contract-deployment/config work

* WIP fix(integration): update integration tests for bridge

* Remove ovmEth from L1 Standard bridge as obsoleted

* Separate ERC20 standard implementation from L2 bridge

* Formatting fixes

* chore(l2geth): replace eth gateway with standard bridge

* Revert "REVERT ME: instruments cross domain enabled"

This reverts commit d5bb8f8f67974d0a3e65fc000f08858328a4bbbc.

* fix: lint ts

* Implement EIP-165 in the Standard L2 ERC20 token
Also switch that to be based off the OpenZeppelin default implementation plus mint and burn
Additionally remove the obsoleted iOVM_ERC20

* fix(contracts): add deployment check on bridge proxy
fix(contracts): whitespace
fix(contracts): init bridge implementation with non-zero address

* Remove dependency on Ownable contract for the StandardERC20 token on L2

* fix(contracts): update deployment scripts

* fix: lint

* remove debugging code

* fix: correct rpc get balance slot

* restore l2 cross domain messenger

* fix: lint

* Add a test for a non compliant token deposit

* Only allow EOAs to deposit ETH and ERC20

* Add comments and tests for ERC165 implementation

* Decide against using explicit ETH MOCK address as we're not using it for checks

* Fix linting issues

* Add onlyEOAContract restriction to standard bridge withdrawals

* Update codehashes in L2 Standard bridge

* fix(ops): remove unintentionally added file

* feat(contracts): add expectApproxGasCost function

* fix(integration): proper arrayify input on fundUser

* fix(integration): proper gas value checks

* Revert "Add onlyEOAContract restriction to standard bridge withdrawals"

This reverts commit 2713c06ceb2609e4f13718e1034a4d76210d9758.

* fix(contracts): removed unused expectApproxGasCost for now

* fix(contracts): update OVM_SequencerFeeVault for bridge changes

* lint

* Update deployment for L1 Bridge w/ ChugSplash

* Revert "l2geth: TEMP log contract calls"

This reverts commit 21d42259278449f221bf34605162229b3d9d4fa9.

* Apply suggestions from code review

* Apply suggestions from code review

* fix(contracts): deploy with chugsplash proxy

* fix(contracts): add working bridge and chugsplash proxy deployment

* fix(contracts,integration): 500k gas for depositETH

* comment(contracts): describe failed deposit handling on l2

* Apply suggestions from code review

Co-authored-by: ben-chain <ben@pseudonym.party>

* docs: add changeset

* fix(integration): set working l2 gas amount on funduser

* test(integration): add receive() test

* fix(contracts): reset receive to 1.2MM l2 gas

* test(examples): skip l1-l2 example test for now

* fix(contracts): drop hardcoded gas to 500k in receive()

* fix(contracts): use abi.encodeWithSignature

* fix(contracts): resolve merge conflicts

* feat(integration): add expectApprox for flexible gas testing

* fix(integration): fix failing gas tests

* fix: incorrect l2 gas for deposit

* Update utils.ts

* fix(workflow): disable l1-l2 example until npm imports are fixed

* chore: final round of PR review nits and tests

Co-authored-by: Maurelian <maurelian@protonmail.ch>
Co-authored-by: Mark Tyneway <mark.tyneway@gmail.com>
Co-authored-by: ben-chain <ben@pseudonym.party>
Co-authored-by: Kelvin Fichter <kelvinfichter@gmail.com>

* fix: comment out codeowners (#1073)

* fix: use predeploy constant lib for em wrapper (#1075)

* fix: use predeploy constant lib for em wrapper

* chore: add changeset

* fix[l2geth]: off-by-one sometimes breaking replica sync (#1082)

* fix[l2geth]: off-by-one sometimes breaking replica sync

* chore: add changeset

* fix(l2geth): Log 'end of OVM execution' correctly (#1080)

* refactor[contracts]: move account contracts to predeploy folder (#1085)

* refactor[contracts]: move account contracts to predeploy folder

* chore: add changeset

* maintenance[contracts]: rename precompiles test folder to predeploys (#1086)

* fix[bs]: disambiguate generic submission errors (#1051)

* fix[bs]: disambiguate generic submission errors

* add cases for errors

* separate out errors from transaction reverts with reasons

* remove extraneous errors

* WETH deposit and withdraw on OVM_ETH (#1083)

* feat(contracts): add no-op WETH9 functionality to OVM_ETH

* working WETH deposit and withdraw + tests

* add changeset

* address PR feedback

* update WETH9 contract implementation

* add fallback to WETH9

* add fallback and revert withdraw test

* update nit comment

Co-authored-by: ben <ben@pseudonym.party>

* Also move the accounts interface to iOVM/predeploys (#1087)

* refactor[contracts]: move account interface to predeploy folder

* chore: add changeset

* Version Packages (#1089)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* fix: use -z flag for var unset in canary

* Use Eslint instead of Tslint (#1005)

* removed tslint

* forgot to commit files

* made .eslintrc.js consistent for all subdirs and other cleanup

* [removed] includes and files keys from tsconfig.json

* removed file level linting exceptions and added details to line level

* added changeset

* fixed newly introduced linting errors from rebase

* enable json import for batch submitter

* removed ecdsa-coder

* maybe a tsconfig issue?

* Update deploy.ts

Co-authored-by: smartcontracts <kelvinfichter@gmail.com>
Co-authored-by: platocrat <37757724+platocrat@users.noreply.github.com>

* metrics[batch-submitter]: add new batch submitter metrics (#1074)

* metrics[batch-submitter]: add new batch submitter metrics

* chore: changeset

* account for failed submissions

* Fix canary publishing (#1093)

* ci: fix custom docker tag

* ci: use new env file

* ci: use outputs from previous job

* ci: fix headers of jobs

* ci: inherit canary tag from builder

* feat[ci]: upload logs for sync tests if failure (#1098)

* deploy: goerli 0.4.0 (#1099)

* deployments: goerli 0.4.0 rc

* readme: update

* chore: add changeset

* fix[dtl]: defend against RPC provider missing events (#1084)

* fix[dtl]: defend against RPC provider missing events

* chore: add changeset

* respond to review comments

* better error handling for missing handlers

* deploy: kovan v.4.0 rc (#1101)

* deploy: kovan v0.4.0 rc

* chore: add changeset

* readme: update

* maintenance[monorepo]: first pass update to README (#1106)

* maintenance[monorepo]: first pass update to README

Doing some relatively minor updates to the README just to clean things up a bit.

* replying to review comments

* Move the metric prefix string to a label (#1047)

Added changeset and fixes
Changeset to patch

* fix[smock]: add support for hardhat 2.4.0 (#1112)

* fix[smock]: add support for hardhat 2.4.0

* chore: add changeset

* lint: fix

* build(deps): bump hosted-git-info from 2.8.8 to 2.8.9 (#1064)

Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.8.8 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases)
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md)
- [Commits](https://github.com/npm/hosted-git-info/compare/v2.8.8...v2.8.9)

---
updated-dependencies:
- dependency-name: hosted-git-info
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: smartcontracts <kelvinfichter@gmail.com>

* Misc. small improvements to README (#1115)

* Update README.md

* Update README.md

* fix[dtl]: use the same L2 chain ID everywhere (#1122)

* fix[dtl]: use the same L2 chain ID everywhere

* chore: add changeset

* fix: make sync tests only on workflow dispatch (#1123)

* fix[dtl]: remove old stringification function (#1134)

* fix[dtl]: remove old stringification function

* chore: add changeset

* fix[dtl]: log server errors as ERROR instead of INFO (#1133)

* fix[dtl]: log server errors as ERROR instead of INFO

* chore: add changeset

* Contracts: connectL1Contracts & connectL2Contracts  (#713)

* Contracts: connect-contracts

* Trying to resolve build problems

* connect-contracts build working

* Adds artifacts-ovm back to gitignore

* Removes incorrect changes

* Adds copy-artifacts script

* Adds test file (not working yet)

* fix: incorrect contract instantiation

* Improves tests and removes old deployment versions

* Single source of truth for predeploy addresses

* Reverts deployments/README.md

* Makes connect-contracts more DRY

* Adds missing @ethersproject/abstract-signer dependency

* Adds argument evaluation

* Adds L1Contracts and L2Contracts types

* Attempts removing artifacts-ovm again

* Adds webpack config (not working yet)

* build: add artifacts to dist (#776)

* Updates lint rule

* Adds l2 imports

* Fixes dependency tree bug

* Removes webpack stuff

* Fixing package.json issues and adds .DS_Store to gitignore

* Removes test-contracts script

* Reverting script change

* Adds comments

* Adds comment

* Renames deployments folders

* Fixes linting errors

* Generates markdown

* build: add deployments directory to Dockerfiles

* Removes unneeded contracts, improves error handling and tests

* Adds changeset

* yarn.lock

* Removes console.log

* Changes from minor to patch version

* Fixes lint errors

Co-authored-by: Kelvin Fichter <kelvinfichter@gmail.com>
Co-authored-by: Liam Horne <liam@lihorne.com>
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>

* fix: prevent overflow in abi encoding (#1135)

* l2geth: prevent overflow in abi encoding to ovm codec tx

* chore: add changeset

* tests: replica syncing (#981)

* [wip] add l2_dtl and replica images

* passing basic dummy tx test

* add erc20 test

* add sync test to ci

Co-authored-by: Mark Tyneway <mark.tyneway@gmail.com>

* fix[relayer]: update exported files list in package.json (#1138)

* fix[relayer]: update exported files

* chore: add changeset

* fix: import path (#1141)

* fix: correct import path for altered contract path

* chore: add changeset

* refactor: improve logging for batch submission timeout scenarios (#1120)

* Add highest L1 and L2 block number Gauge metrics to DTL (#1125)

* build: add prom-client to data-transport-layer

* refactor: thread metrics more carefully through data-transport-layer; add two new metrics

* style: fix some style issues

* refactor: make metrics mandatory

* refactor: move metrics register code to top of file

* style: apply linting

* refactor: move promethesus initialization after express

* refactor: move promBundle call up, provide registry

* build: add changeset

* Improve Watcher ability to find transactions (#1107)

* remove listeners and use loop to find tx receipt

* add yarn ready

* moved filters inside loop

* [added] changeset

* Add minimal vscode settings and extensions (#1109)

* chore: add minimal vscode settings and extensions

* chore: Add "files.trimTrailingWhitespace" to vscode native config

* chore: replace vscode prettier plugin with eslint plugin

* fix[contracts]: remove part of MultiMessageRelayer deployment (#1144)

* fix[contracts]: remove part of MultiMessageRelayer deployment

* chore: add changeset

* Define L1 Starting block via OwnershipTransferred rather than AddressSet (#1129)

* Update service.ts

* Create thirty-years-look.md

Co-authored-by: smartcontracts <kelvinfichter@gmail.com>

* Easy fix for broken watchers (#1121)

* Easy fix for broken watchers

* Ran yarn changeset

Co-authored-by: Liam Horne <liam@lihorne.com>

* feat: go packages (#1111)

* go: add utils module

* readme: update

* Version Packages (#1094)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* build: add husky pre-commit hook to lint (#1146)

* feat[contracts]: add mainnet deploy script (#1147)

* Add mainnet deploy script

* Update mainnet.sh

* Address PR review feedback

* feat: mainnet contract deployment 0.4.0 (#1148)

* feat: mainnet contract deployment 0.4.0

* feat: deployments readme

* chore: add changeset

* contracts: remove dead contract

* contracts: remove dead config

* tests: fix to not test for old contracts

* feat: `rollup gasPrices` RPC endpoint (#1136)

* feature: l2geth  endpoint

* chore: add changeset

Co-authored-by: Liam Horne <liam@lihorne.com>

* Adds l2 standard bridge to contracts markdown file (#1151)

* Version Packages (#1150)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Add more info about our branching strategy to the README (#1114)

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Remove references to OVM_L1ETHGateway in deployments and readme (#1119)

Co-authored-by: Maurelian <maurelian@protonmail.ch>
Co-authored-by: smartcontracts <kelvinfichter@gmail.com>
Co-authored-by: Elena Gesheva <elena@arenabg.com>
Co-authored-by: ben-chain <ben@pseudonym.party>
Co-authored-by: Mark Tyneway <mark.tyneway@gmail.com>
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
Co-authored-by: Karl Floersch <karl@karlfloersch.com>
Co-authored-by: Rajiv Patel-O'Connor <rajiv.patel.oconnor@gmail.com>
Co-authored-by: rajivpo <rajivpatel-oconnor@Rajivs-MacBook-Pro-2.local>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kevin Ho <kevinjho1996@gmail.com>
Co-authored-by: Ben Wilson <82120899+optimisticben@users.noreply.github.com>
Co-authored-by: Liam Horne <liam@lihorne.com>
Co-authored-by: Tim Myers <timmyers09@gmail.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Annie Ke <annieke8@gmail.com>
Co-authored-by: platocrat <37757724+platocrat@users.noreply.github.com>
Co-authored-by: Matt Masurka <m.masurka@gmail.com>
Co-authored-by: CAPtheorem <79423264+CAPtheorem@users.noreply.github.com>
Co-authored-by: Alejandro Santander <Palebluedot@gmail.com>

* Re-apply key changes on top of optimism most current develop

* Add docker-compose-replica.yml (#109)

* Create docker-compose-replica.yml

* Add replica service

* Update docker-compose-omgx-replica.yml

Co-authored-by: CAPtheorem <79423264+CAPtheorem@users.noreply.github.com>

* fix linter; patch gethl2

* configure the deployer correctly

* fix proposer / batch submitter

* update chainIDs

* update rpc test

* Create README_OMGX.md

* upstream - needs more work

* Adds delay to watcher (#1159)

* Adds delay to watcher

* Simplifies delay

* Adds changeset

* Fix wallet test

* Fix deployment test

* Add Python

* Update Dockerfile.omgx_monorepo

* Remove package-lock

* fix: bind dtl functions for missing event codepath (#1161)

* dtl: bind this in L1 missing element error handlers

* dtl: add additional logline

* chore: add changeset

* dtl: add more metrics

* dtl: use counter instead of gauge

Co-authored-by: Kevin Ho <kevinjho1996@gmail.com>

* fix: remove 'editor.formatOnSave' from global settings' (#1163)

* merge conflicts

* Update pre-commit

* Version Packages (#1167)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* minor

* Update pre-commit

* Fix wallet test (#119)

* Fix wallet test

* Fix deployment test

* Add Python

* Update Dockerfile.omgx_monorepo

* Remove package-lock

Co-authored-by: CAPtheorem <79423264+CAPtheorem@users.noreply.github.com>

* Reapply standard changes on top of current develop

* Update package.json

* doc: add notes for releasing new versions with changesets (#1166)

* Bind correct object to method handler in DTL (#1168)

* fix: bind correct object to method handler

* build: add changeset

* Version Packages (#1169)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Fix web wallet

* Fix integration test (#124)

* Fix integration test (#125)

* Fix integration test

* Fix integration test

* Fix wallet_react

* Fix lint test

* Remove package-lock

* Update integration.yml

* Fix wallet deployer

* Collect docker log

* Fix l1-l2-deposit-withdrawal test

* Fix sync test

* Add chainID to deployer config

* make sync tests dispatch only

Co-authored-by: CAPtheorem <79423264+CAPtheorem@users.noreply.github.com>

* Add short contribution section to primary README (#1157)

* Add short contribution section to primary README

* Update README.md

* fix: prevent batch submitter from submitting batches if low on ETH

* build: add changeset

* Eslint ignore the hardhat folder

* Update README.md

* Beginning to add working examples

* hardhart and waffle example tests

* document/check waffle

* test l1-l2 example

* add patch-package

* Update package.json

* build: ensure lint only staged files on commit

* refactor: do not run --fix on lint-staged

* refactor: *.{ts,js} for eslint regex

* l2geth: rollup client explicitly checks for >= 400 errors

* l2geth: sync service retries connection to remote server

* l2geth: test errors returning from remote

* chore: add changeset

* syncservice: nit

* feat[message-relayer]: add easy relay tool

* chore: add changeset

* upkeep[monorepo]: add changeset info to README

* merge conflict squash

* Daily sync up (#137)

* build: ensure lint only staged files on commit

* refactor: do not run --fix on lint-staged

* refactor: *.{ts,js} for eslint regex

* l2geth: rollup client explicitly checks for >= 400 errors

* l2geth: sync service retries connection to remote server

* l2geth: test errors returning from remote

* chore: add changeset

* syncservice: nit

* feat[message-relayer]: add easy relay tool

* chore: add changeset

* upkeep[monorepo]: add changeset info to README

Co-authored-by: Liam Horne <liam@lihorne.com>
Co-authored-by: Mark Tyneway <mark.tyneway@gmail.com>
Co-authored-by: Kelvin Fichter <kelvin@optimism.io>
Co-authored-by: smartcontracts <kelvinfichter@gmail.com>

* build: set up eslint prettier correctly

* style: run yarn lint --fix at root

* build: add necessary packages to workspace root

* build: remove --format stylish

* build: set semvery ranges to match across packages

* build: set up prettierrc.js for monorepo

* refactor: rename Range to BlockRange

* build: set up correct working directories

* build: set up lint:fix to use eslint not prettier

* style: run lint:fix on all code

* build: remove prettier extension recommendation

* style: update configuration to include babel-eslint for .js linting

* build: set concurrency to 1 to prevent git add errors on lerna lint

* github actions: bump geth CI golang version

* fix(contracts): prevent L2->L1 calls to system contracts

* Update message relayer fast contracts (#139)

* prepare for wallet reorg

* Create yarn.lock

* fix hardhat bug

* merge conflict resolve

* daily sync up (#141)

* build: set up eslint prettier correctly

* style: run yarn lint --fix at root

* build: add necessary packages to workspace root

* build: remove --format stylish

* build: set semvery ranges to match across packages

* build: set up prettierrc.js for monorepo

* refactor: rename Range to BlockRange

* build: set up correct working directories

* build: set up lint:fix to use eslint not prettier

* style: run lint:fix on all code

* build: remove prettier extension recommendation

* style: update configuration to include babel-eslint for .js linting

* build: set concurrency to 1 to prevent git add errors on lerna lint

* fix(contracts): prevent L2->L1 calls to system contracts

Co-authored-by: Liam Horne <liam@lihorne.com>
Co-authored-by: ben <ben@pseudonym.party>

* Add Factory contract for creating standard ERC20 tokens
compliant with the standard bridge

* Disallow 0 address for l1 token when creating l2 standard token

* Fix linting issue

* Add deployment script for the L2 token factory

* Fix deploy script OVM_L2StandardTokenFactory constructor params

* Add changeset

* Cleanup deployment script for OVM_L2StandardTokenFactory
and fix a solidity linting error

* refactor(integration): Add clarity to the expectApprox function signature

* fix: skip codechecks for PRs from external repos

* DRAFT move react wallet and the contracts to more clear folders (#138)

* DRAFT move react wallet and the contracts to more clear folders

* merging the axios integration chagnes

* updated the message-relayer-fast contracts

* integrate message-relayer-fast into standard dockers

* Dockerize the message-relayer-fast

* update Readme.md

* remove duplicated contracts - just keep everything in /contracts

* add deploy for fast messenger

* message-relayer-fast testing

* Update serve.sh

* Delete yarn.lock

* Update constants.ts

* Create yarn.lock

* Update constants.ts

* Update function-manipulation.spec.ts

* increase the retries and other minor fixes

* Improved documentation

* fix omgx integration tests

* Update omgx-integration.yml

* integration test remove duplicated tests

* Fix units test configuration

* Update docker-compose-omgx-services.yml

* integration test setup fixes

* fix wallet integration test

* fix for crash on return

* integration tests for `message-relayer-fast`

* Update env.ts

* Autodeploy Token Bridges

* Update wallet contracts

* Update utils.ts

* improve omgx integration tests

* Add address manager address to GH actions for now

Co-authored-by: sahil kashetwar <>
Co-authored-by: Sahil k <sahil@enya.ai>
Co-authored-by: cby3149 <cby3149@outlook.com>

* merge conflicts

* GH actions regular changes

* husky

* Daily sync up (#144)

* build: set up eslint prettier correctly

* style: run yarn lint --fix at root

* build: add necessary packages to workspace root

* build: remove --format stylish

* build: set semvery ranges to match across packages

* build: set up prettierrc.js for monorepo

* refactor: rename Range to BlockRange

* build: set up correct working directories

* build: set up lint:fix to use eslint not prettier

* style: run lint:fix on all code

* build: remove prettier extension recommendation

* style: update configuration to include babel-eslint for .js linting

* build: set concurrency to 1 to prevent git add errors on lerna lint

* github actions: bump geth CI golang version

* fix(contracts): prevent L2->L1 calls to system contracts

* Add Factory contract for creating standard ERC20 tokens
compliant with the standard bridge

* Disallow 0 address for l1 token when creating l2 standard token

* Fix linting issue

* Add deployment script for the L2 token factory

* Fix deploy script OVM_L2StandardTokenFactory constructor params

* Add changeset

* Cleanup deployment script for OVM_L2StandardTokenFactory
and fix a solidity linting error

* refactor(integration): Add clarity to the expectApprox function signature

* fix: skip codechecks for PRs from external repos

Co-authored-by: Liam Horne <liam@lihorne.com>
Co-authored-by: Mark Tyneway <mark.tyneway@gmail.com>
Co-authored-by: ben <ben@pseudonym.party>
Co-authored-by: elenadimitrova <elena@arenabg.com>
Co-authored-by: Reggie Gomez <reggieag@gmail.com>
Co-authored-by: smartcontracts <kelvinfichter@gmail.com>

* docker: pin to alpine 3.13 for l2geth

A bug has appeared when older versions of Docker are used to build
alpine based images in alpine version 3.14. To prevent this problem
from happening to the users, this PR pins the version to 3.13.

The observed problem is that `make` cannot run any command and
the error message states `Operation not permitted.` Removing
`make` was one way to solve the problem but that would increase
the diff from upstream geth.

See these links for details:
https://github.com/alpinelinux/docker-alpine/issues/182
https://wiki.alpinelinux.org/wiki/Release_Notes_for_Alpine_3.14.0

* fix: update statement for skipping codechecks

* contracts: add set-l2-gasprice task

This task allows a user to update the L2 gas price using hardhat.
An example of doing so would be:

```bash
$ export CONTRACTS_DEPLOYER_KEY=0x..
$ CONTRACTS_RPC_URL=https://kovan.optimism.io npx hardhat set-l2-gasprice \
    --l2-gas-price 1
```

This hardcodes the predeploy address of the `OVM_GasPriceOracle` smart
contract and the Owner must be used to do the updating, otherwise the
transaction will revert.

* removed unused functions from core utils

* [added] changeset

* next gen integration tests for the OMGX stack (#149)

* next gen integration tests for the OMGX stack

* finish first pass integration test outline

* move LP tests to the `message-relayer-fast`

* Update omgx-integration.yml

* add more tests to message-relayer-fast

* connect up the .env variables

* hard code URIs

* Update utils.ts

* Update omgx-integration.yml

* fix - should have been 8080

* Update omgx-integration.yml

* which address to use?

* Update omgx-integration.yml

* removing not needed code

* remove superfluous logging code

* Update utils.ts

* Update utils.ts

* additional comments and formatting improvements

* fix: use older changes on tests (#152)

* fix: use older structure

* correct messenger

* LP fees on the correct side

* correct messenger

* rearrange depl order

Co-authored-by: Souradeep Das <dsouradeep2@gmail.com>

* Update README_OMGX.md (#150)

Refactored some changes and added some comments I thought might be helpful for people.

Co-authored-by: CAPtheorem <79423264+CAPtheorem@users.noreply.github.com>

* tests: re-enable all tests (#155)

* re-enable all tests

* re-enable all tests

* Add solhint to contracts package

* Turn off compiler-version rule in solhint

* Add suggestions by @maurelian
https://github.com/ethereum-optimism/optimism/pull/1033#issuecomment-866146467

* Change solhint output formatting to table

* Disable contract-name-camelcase rule in solhint

* Fix max-line-length linting issues in contracts

* Fix quotes linting issues in contracts

* Remove private-vars-leading-underscore rule in solhint

* Add contracts linting to github action

* Fix for hardhat account balance parsing

* Disable generating the bytecodeHash in hardhat contract artifacts

* Review fixes

* Fix review notes

* Fix smockit for a change in hardhat ^2.4.0
which changes the way it parses errors from returndata
Fix provided by @smartcontracts

* dtl: configurable gas price backend

Adds a new config option `--l1-gas-price-backend` or
`DATA_TRANSPORT_LAYER_L1_GAS_PRICE_BACKEND` that can be set to `l1` or
`l2`. This impacts the behavior of the HTTP endpoint `GET /eth/gasprice`
by changing what is queried to return the L1 gas price. The L1 gas price
is required to compute the L2 fee since the L2 fee consists of
`L1 gas price * L1 gas used + L1 gas price * L2 gas limit`. If the L1
gas price differs too much between different L2 providers, then users
using `eth_estimateGas` may submit transactions with too low of a fee
and be unable to submit transactions to the sequencer.

By configuring the DTL to use L2 as the L1 gas price backend, it will
call the Sequencer's RPC endpoint `rollup_gasPrices` which returns the
L1 and L2 gas prices from the point of view of the sequencer. The L2 gas
price exists in the state, so that will always be the same between the
sequencer and any replicas. The L1 gas price does not live on chain, so
querying for it from the sequencer directly will ensure that users send
transactions with a fee that is large enough.

Also adds eth/gasprice info to README.

* Remove bl wl service  (#154)

* replace `bl-wl` with direct calls the `omgx_deployer`

* Update docker-compose-omgx-services.yml

* Update up_local.sh

* Add CORS headers to http servers

* updated frontend to use the two new HTTP servers for the addresses

* update webwallet to work with both local and rinkeby

* Add missing .env variables to GH actions

* re-enable docker tages

* re-enable wallet transaction history

* Update up_local.sh

* Update up_local.sh

* Add flag to omgx_deployer to only serve addresses w/o deploying new contracts

* Update docker-compose-omgx-services.yml

* Add back tagging system and improved reliability of GH actions

* removed commented out service

* add rinkeby token addresses (#161)

Co-authored-by: CAPtheorem <79423264+CAPtheorem@users.noreply.github.com>

* fix: lint deploy-l2 folder in contracts

* Add AWS integration (#159)

* Add AWS integration

* Remove artifacts

* updated ops_omgx/README.md and added .github/workflows/deploy2aws-integration.yml and .github/workflows/push2aws.yml

* add automated provision and deletion of an ec2 instance for running the integration tests

Co-authored-by: Petar Denev <pdenev@gmail.com>

* fix: update CI to avoid running out of memory

* Version Packages

* ci: release latest image tags on release

* feat: update README to include info about rebasing

* Add op_exporter for sequencer metrics and health endoint
Added metric for sequencer health
Added Dockerfile for op_exporter;
Fixed Dockerfile path

* merge conflicts

* re-comment out the usual GH actions

* feat[integration-tests]: make tests work for prod networks

* chore: add changeset

* Increase client_body_buffer_size for rpc-proxy
Added client_max_body_size to rpc-proxy config

* l2geth: use `hexutil.Big` to prevent overflows

The `RollupClient` decodes the JSON from the DTL as a uint64,
this updates it to be a `big.Int`

Includes a test for the value field that ensures it does not overflow

* ci(contracts): only run codecov if contracts package is modified

In order to skip running the CodeCov job when it isn't relevant, a new job was added to the ts-packges workflow. For a PR, this job identifies all the files modified between the base branch and the tip of the PR branch, and writes to a variable which can be used to decide if subsequent jobs should run.

Github Actions provides an easy method for achieving this at the level of a workflow, but not for specific jobs within a workflow.

* Version Packages

* chore(ci): Skip codecov on push events

* feat: add workflow for running SNX test suite

* go: implement gasprices package

The `gasprices` package implements the logic that updates
L2 gasprices on the Optimistic Ethereum Network.

Co-authored-by: Karl Floersch <karl@karlfloersch.com>

* gas-oracle: implement and test

This commit adds the `gas-oracle` which is an offchain entity
that sends transactions to L2 to update the gas price. It must
be configured with a private key as the `OVM_GasPriceOracle`
is owned.

The `gas-oracle` is added to the changesets setup.

Tests are included as well as CI. Dockerizing will happen
in a follow up PR.

* gas-oracle: ci + docker build/publish

Adds a dockerfile for the `gas-oracle` as well as adding it as
a service in the `docker-compose.yaml`. It is not enabled by
default due to memory issues in CI already happening occasionally
where the integration tests are oom killed.

The `gas-oracle` is configured with a key that owns the
`OVM_GasPriceOracle`.

This PR adds the `gas-oracle` to the Github Actions
workflow that is responsible for publishing the docker images.

* Add replica (#169)

* fix: update erc20 deposits (#166)

* fix: update erc20 deposits

* fix: auto default token

Co-authored-by: CAPtheorem <79423264+CAPtheorem@users.noreply.github.com>

* resolve merge conflicts

* Update docker-compose.yml

* Update docker-compose.yml

* [pull] develop from ethereum-optimism:develop (#164)

* contracts: add set-l2-gasprice task

This task allows a user to update the L2 gas price using hardhat.
An example of doing so would be:

```bash
$ export CONTRACTS_DEPLOYER_KEY=0x..
$ CONTRACTS_RPC_URL=https://kovan.optimism.io npx hardhat set-l2-gasprice \
    --l2-gas-price 1
```

This hardcodes the predeploy address of the `OVM_GasPriceOracle` smart
contract and the Owner must be used to do the updating, otherwise the
transaction will revert.

* Add op_exporter for sequencer metrics and health endoint
Added metric for sequencer health
Added Dockerfile for op_exporter;
Fixed Dockerfile path

* feat[integration-tests]: make tests work for prod networks

* chore: add changeset

* Increase client_body_buffer_size for rpc-proxy
Added client_max_body_size to rpc-proxy config

* l2geth: use `hexutil.Big` to prevent overflows

The `RollupClient` decodes the JSON from the DTL as a uint64,
this updates it to be a `big.Int`

Includes a test for the value field that ensures it does not overflow

* ci(contracts): only run codecov if contracts package is modified

In order to skip running the CodeCov job when it isn't relevant, a new job was added to the ts-packges workflow. For a PR, this job identifies all the files modified between the base branch and the tip of the PR branch, and writes to a variable which can be used to decide if subsequent jobs should run.

Github Actions provides an easy method for achieving this at the level of a workflow, but not for specific jobs within a workflow.

* Version Packages

* chore(ci): Skip codecov on push events

* feat: add workflow for running SNX test suite

* go: implement gasprices package

The `gasprices` package implements the logic that updates
L2 gasprices on the Optimistic Ethereum Network.

Co-authored-by: Karl Floersch <karl@karlfloersch.com>

* gas-oracle: implement and test

This commit adds the `gas-oracle` which is an offchain entity
that sends transactions to L2 to update the gas price. It must
be configured with a private key as the `OVM_GasPriceOracle`
is owned.

The `gas-oracle` is added to the changesets setup.

Tests are included as well as CI. Dockerizing will happen
in a follow up PR.

* gas-oracle: ci + docker build/publish

Adds a dockerfile for the `gas-oracle` as well as adding it as
a service in the `docker-compose.yaml`. It is not enabled by
default due to memory issues in CI already happening occasionally
where the integration tests are oom killed.

The `gas-oracle` is configured with a key that owns the
`OVM_GasPriceOracle`.

This PR adds the `gas-oracle` to the Github Actions
workflow that is responsible for publishing the docker images.

Co-authored-by: Mark Tyneway <mark.tyneway@gmail.com>
Co-authored-by: Ben Wilson <bwilson@optimism.io>
Co-authored-by: Kelvin Fichter <kelvin@optimism.io>
Co-authored-by: smartcontracts <kelvinfichter@gmail.com>
Co-authored-by: Ben Wilson <82120899+optimisticben@users.noreply.github.com>
Co-authored-by: Kevin Ho <kevinjho1996@gmail.com>
Co-authored-by: Liam Horne <liam@lihorne.com>
Co-authored-by: Maurelian <maurelian@protonmail.ch>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Karl Floersch <karl@karlfloersch.com>

* Update docker-compose.yml

* adding l1-l2 test ecs scheduled task that does verify communication between L1 and L2 and L2 to L1 (#167)

Co-authored-by: CAPtheorem <79423264+CAPtheorem@users.noreply.github.com>

* Update docker-compose.yml

* daily update (#170)

* contracts: add set-l2-gasprice task

This task allows a user to update the L2 gas price using hardhat.
An example of doing so would be:

```bash
$ export CONTRACTS_DEPLOYER_KEY=0x..
$ CONTRACTS_RPC_URL=https://…
InoMurko added a commit to omgnetwork/optimism that referenced this issue Jul 18, 2021
* fix: import path (#1141)

* fix: correct import path for altered contract path

* chore: add changeset

* refactor: improve logging for batch submission timeout scenarios (#1120)

* Fixed CrossDomainMessenger name (#96)

* Add highest L1 and L2 block number Gauge metrics to DTL (#1125)

* build: add prom-client to data-transport-layer

* refactor: thread metrics more carefully through data-transport-layer; add two new metrics

* style: fix some style issues

* refactor: make metrics mandatory

* refactor: move metrics register code to top of file

* style: apply linting

* refactor: move promethesus initialization after express

* refactor: move promBundle call up, provide registry

* build: add changeset

* Improve Watcher ability to find transactions (#1107)

* remove listeners and use loop to find tx receipt

* add yarn ready

* moved filters inside loop

* [added] changeset

* Add minimal vscode settings and extensions (#1109)

* chore: add minimal vscode settings and extensions

* chore: Add "files.trimTrailingWhitespace" to vscode native config

* chore: replace vscode prettier plugin with eslint plugin

* fix[contracts]: remove part of MultiMessageRelayer deployment (#1144)

* fix[contracts]: remove part of MultiMessageRelayer deployment

* chore: add changeset

* Define L1 Starting block via OwnershipTransferred rather than AddressSet (#1129)

* Update service.ts

* Create thirty-years-look.md

Co-authored-by: smartcontracts <kelvinfichter@gmail.com>

* Easy fix for broken watchers (#1121)

* Easy fix for broken watchers

* Ran yarn changeset

Co-authored-by: Liam Horne <liam@lihorne.com>

* feat: go packages (#1111)

* go: add utils module

* readme: update

* Version Packages (#1094)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* build: add husky pre-commit hook to lint (#1146)

* feat[contracts]: add mainnet deploy script (#1147)

* Add mainnet deploy script

* Update mainnet.sh

* Address PR review feedback

* feat: mainnet contract deployment 0.4.0 (#1148)

* feat: mainnet contract deployment 0.4.0

* feat: deployments readme

* chore: add changeset

* contracts: remove dead contract

* contracts: remove dead config

* tests: fix to not test for old contracts

* feat: `rollup gasPrices` RPC endpoint (#1136)

* feature: l2geth  endpoint

* chore: add changeset

Co-authored-by: Liam Horne <liam@lihorne.com>

* Adds l2 standard bridge to contracts markdown file (#1151)

* Version Packages (#1150)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Add more info about our branching strategy to the README (#1114)

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Remove references to OVM_L1ETHGateway in deployments and readme (#1119)

* Keep the user logged in after changing chain (#99)

* Keep the user logged in after changing chain

* Update Nft.js

* Detect if user is in the wrong chain

Co-authored-by: cby3149 <cby3149@outlook.com>
Co-authored-by: CAPtheorem <79423264+CAPtheorem@users.noreply.github.com>

* Merge conflics resolve (#110)

* wip

* gethl2

* wip

* batch submitter

* core utils

* DTL

* message relayer

* contracts

* wip

* Update service.ts

* DTL

* messaage-relayer

* Update yarn.lock

* final 5 files

* [pull] develop from ethereum-optimism:develop (#91)

* chore: reduce hardhat timeout to 20 seconds (#968)

* fix: force LF line endings for scripts to avoid docker problems on Windows (#974)

* fix: use correct line endings for windows

* chore: add changeset

* refactor[contracts]: Turn ExecutionManagerWrapper into a predeployed contract (#808)

* wip: Started working on L2 contract testing revamp

* test: clean tests for ProxyEOA

* style: clean imports for ProxyEOA tests

* test: port tests for ECDSAContractAccount

* fix tests and add wrapper to dump

* fix: add em wrapper to l2 deploy

* ffix: add comments to wrapper contract

* fix: add more comments

* fix: add smock comment for unbind

* Update packages/smock/src/smockit/binding.ts

* maintenance[contracts]: use dashes in chain container names (#819)

* maintenance: use dashes in chain container names

* chore: add changeset

* feat[contracts]: temporarily disable EOA upgrades (#857)

* feat[contracts]: disable eoa upgrades temporarily

* chore: add changeset

* Update OVM_ProxyEOA.sol

* fix: turn upgrade into a noop

* lint: fix

* feat[contracts]: Update Lib_AddressManager.AddressSet event to speed up data transport layer (#820)

* feat: update and improve AddressSet event

* chore: add changeset

* Update Lib_AddressManager.sol

* Reduce gas costs of deposits (#667)

* Remove messageNonce from BaseCrossDomainMessenger and use CTC queue lenght instead

Remove Abs_BaseCrossDomainMessenger and restore dedicated nonce generation in OVM_L2CrossDomainMessenger

Fix typo

* Remove sentMessages mapping from L1CrossDomainMessenger storage
and use the nonce to check for existence of replayed transaction

* Refactor out common library function for getting cross domain calldata

* Post rebase fixes

* Use the queueIndex to check the transaction was enqueued

* Fix tests for L1CrossDomainMessenger.replayMessage
Also make that test work with an actual CanonicalTransactionChain implementation rather than a smock

* Lint fixes

* Optimise the resolve calls into the AddressManager lib

* Rename the nonce parameter to be clear

* Update test name

Co-authored-by: ben-chain <ben@pseudonym.party>

* Rename getXDomainCalldata to encodeXDomainCalldata to match the new Lib_CrossDomainUtils

Co-authored-by: ben-chain <ben@pseudonym.party>

* optimism: bump gaslimit to 10 million #870 (#871)

* optimism: bump gaslimit to 10million

* chore: add changeset

* optimism: bump max gaslimit to 10 mil

* chore: add changeset

* chore: remove unnecessary changeset

* chore: remove unnecessary changeset

Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>

* fix: use correct contract name in tests (#921)

* fix: disable upgradability from ECDSA Account (#885)

* l2geth: remove `SignatureHashType` (#752)

* l2geth: remove tx type

* l2geth: no longer parse type in rollup client

* chore: add changeset

* chore: remove extra sighash params

* fix: do not check txtype in integration tests

Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>

* feat[contracts]: introduce OVM_GasPriceOracle (#912)

* feat[contracts]: congestion price oracle

* chore: add changeset

* contracts: gas price oracle (#917)

* contracts: gas price oracle

* tests: update

* fees: fix tests

* contracts: simplify gas price oracle

* lint: fix

* test: execution price is at the 1st storage slot

* chore: rename predeploy to GasPriceOracle

* chore: rename gas price oracle test name

Co-authored-by: Mark Tyneway <mark.tyneway@gmail.com>
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>

* fix: configure max gas limit to 11m (#928)

Uniswap V3 contracts require that, otherwise they throw call exceptions at deployment

* Consolidate Predeploy Addresses (#931)

* added library for predeploy addresses

* refactor tests and other packages to use exported predeploys

* revert library usage in OVM_ECDSAContractAccount

* lint

* added newline

* fixed address typos

Co-authored-by: rajivpo <rajivpatel-oconnor@Rajivs-MacBook-Pro-2.local>
Co-authored-by: smartcontracts <kelvinfichter@gmail.com>

* chore: remove yarn-error.log and gitignore it (#956)

* feat[contracts]: Replace Lib_RingBuffer with a much simpler Lib_Buffer (#821)

* feat[contracts]: replace Lib_RingBuffer with a simpler Lib_Buffer

* chore: changeset

* test: add tests for Lib_Buffer

* lint: fix

* test: add extra coverage for Lib_Buffer

* Update packages/contracts/contracts/optimistic-ethereum/libraries/utils/Lib_Buffer.sol

Co-authored-by: ben-chain <ben@pseudonym.party>

* add some extra comments

Co-authored-by: ben-chain <ben@pseudonym.party>

* fix(contracts): import predeploys (#982)

* fix(contracts): import predeploys

* fix: lint

* feat: add hardhat deploy instructions to readme (#965)

* feat: add deployment instructions to readme

* Add changeset

* fix style

* Update README.md

* feat: fees v2 (#976)

* l2 geth: new fee logic

* l2 geth: migrate to fees package

* core-utils: new fee scheme

* chore: add changeset

* l2geth: delete dead code

* integration-tests: fix typo

* integration-tests: fixes

* fees: use fee scalar

* lint: fix

* rollup: correct gas payment comparison

* fix(integration-tests): do not hardcode gas price

* core-utils: update with new scheme

* l2geth: refactor rollup oracle

* l2geth: clean up DoEstimateGas

* l2geth: implement latest scheme

* tests: fix up

* lint: fix

* l2geth: better sycn service test

* optimism: rename to TxGasLimit

* fee: fix docstring

* tests: fix

* variables: rename

* l2geth: prevent users from sending txs with too high of a fee

* integration-tests: fix import

* integration-tests: fix type

* integration-tests: fix gas limits

* lint: fix

* l2geth: log error

Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>

* Add static analysis action (#848)

* Add static analysis github action
setup python and install slither

* Add nvmrc file for setting node to v14.17

* Update slither command run to link missing contract packages from monorepo root

* Add steps for installing dependencies

* Add yarn build step to github action

* Enable colour in github action for static analysis

* Disable certain detectors

* Ensure slither does not fail build

* Add instructions on running static analysis to monorepo readme

* build(deps): bump ws from 7.4.4 to 7.4.6 in /ops/docker/hardhat (#987)

Bumps [ws](https://github.com/websockets/ws) from 7.4.4 to 7.4.6.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/7.4.4...7.4.6)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fix[l2geth]: fix accidental merge conflict (#994)

* feat[message-relayer]: relay tx generator (#952)

* feat[message-relayer]: relay tx generator

* whoops, I burned our infura key

* fix minor bug

* add comments

* add more comments and clean stuff up

* add empty test descriptions

* add tests

* move smock to dev deps

* chore: add changeset

* minor cleanup to merkle tree proof function

* use bignumber math to avoid nested await

* use a better interface

* minor fixes and simplifications

* backwards compatible dtl syncing (#986)

* kovan: fix attempt

* kovan: db fix

* kovan: types are strings from db

* l2geth: parse things as strings

* chore: add changeset

* dtl: also stringify the range query

* geth: dereference

* geth: assign err

* dtl: handle null

* dtl: fix unit tests

* fix[smock]: fix broken call assertions for overloaded functions  (#996)

* fix[smock]: fix broken call assertions for overloaded functions

* chore: add changeset

* minor correction and add a test

* add a test for non-overloaded functions

* fix[message-relayer]: fix failing test because of merge with develop (#1000)

* fix[message-relayer]: remove spreadsheet mode (#998)

* fix[message-relayer]: remove spreadsheet mode

* chore: add changeset

* Lower local rollup timestamp refresh (#985)

* update rollup timestamp refresh

* increase refresh time to 5s

* feat: fees v3 (#999)

* core-utils: fee impl v3

* l2geth: fees v3 impl

* integration-tests: update for fees v3

* chore: add changeset

* fix: typo

* integration-tests: fix and generalize

* fees: update fee scalar

* l2geth: check gas in the mempool behind usingovm

* tests: fix up

* l2geth: remove dead var

* truffle: fix config

* fix: remove dead coders (#1001)

* chore: delete dead coders

* chore: add changeset

* dtl: remove dead imports

* core-utils: delete dead tests

* batch-submitter: remove txtype

* chore: add changeset

* docs[message-relayer]: add a README and improve the interface for generating proofs (#1002)

* docs[message-relayer]: add basic docs and clean up an interface

* chore: add changeset

* dtl: log error stack for failed http request (#995)

* dtl: log error stack for failed http request

* chore: add changeset

* Add rpc-proxy service for whitelisting JSON RPC methods to the sequencer. (#945)

* Add healthcheck endpoint for rpc-proxy
Added ethereum-nginx-proxy source
updated README and docker image build

* Check ETH_CALLS_ALLOWED is set, clean up comments, remove old Dockerfile

* Pass additional information across domains via token gateways (#824)

* feat(contracts): add from and data args to L1ERC20Gateway

fix(integration): add gasLimit to fundUser

refactor(contracts): add data to gateway events
add changeset

fix(integration): provide data in outboundTransfer

refactor(contracts): reset Abs_L2TokenGateway to Abs_L2DepositedToken

refactor(contracts): fix mismatched names

* feat[contracts]: add custom gas arg to gateway

fix(contracts): take max of user vs. default gas

* fix(integrations): update ovm-eth function call

* fix(integration): remove unecessary explicit gasLimit

* test(contracts): 32kb transfer, 9MM gas

* fix(contracts): fixup comment, bytes arg last

* fix(integration): args order in integrations

* fix(contracts): remove unused L2 gas arg

* fix(contracts): limit data that can be passed to L2

* fix(integration): better tests for data length

* test: check for error on too large data

* Experimental: specify gaslimit in before hook

* fix(integration): add l2 gas argument

* fix: increase gas on fundUser

* fix(contracts): remove duplicate max size limit

* fix(integration): fine tune gas amounts

* lint

* fix: large data test

* fix(integration): set gas closer to real cost

* fix(contracts): remove unused bridge variables
These variables were the default gas amounts for cross domain messages

* fix(contracts): Reorder args

Place dynamic length args last

* fix(integration): update estimateGas values

* fix(integration): reset eth withdraw estimate to 21000

* fix(integration): update expected gas amount

* fix(integration): reduce gas amount for ETH withdraw

* More consistent style for Constant values (#991)

* chore(contracts): make container addresses be constants
chore(contracts): consistent style for constant vars

* chore(contracts): add internal on predeploy constants

* feat: deployment config for fee oracle contract (#936)

* feat[contracts]: add GasPriceOracle w/o predeploy

Based on #912

* feat[contracts]: congestion price oracle

* chore: add changeset

* contracts: gas price oracle (#917)

* contracts: gas price oracle

* tests: update

* fees: fix tests

* contracts: simplify gas price oracle

* lint: fix

* test: execution price is at the 1st storage slot

* chore: rename predeploy to GasPriceOracle

* chore: rename gas price oracle test name

Co-authored-by: Mark Tyneway <mark.tyneway@gmail.com>
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>

* Add an L2 deploy script for gas oracle contract

* Add a kovan deployment artifact

* Add deployment to readme

* Add extra validation & initial execution price

* Update README.md

* Fix execution price logic

* Perform new deployment with final contract

* contracts: better require in ovm gas price oracle

* Deploy L2GasPriceOracle

* Update contract to use new fee logic & rename to gas

* Deploy updated contract

* Fix lint

* gas price oracle: do not restrict gas price

* gas price oracle: new deployment

* tests: delete dead test

Co-authored-by: smartcontracts <kelvinfichter@gmail.com>
Co-authored-by: Mark Tyneway <mark.tyneway@gmail.com>
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>

* ops: expose debug namespace (#1007)

* develop merge fixes

* refactor[l2geth]: queue origin type (#975)

* refactor: queueOrigin type

* Convert queueOrigin to uint8 in encode

* Add changeset

* Regenerate json marshall

* style: combine lines

* Add Stringer for QueueOrigin

* Turn QueueOrigin into uint8

* l2geth: gen tx meta fix

* l2geth: gen tx meta fix

* lint

Co-authored-by: Mark Tyneway <mark.tyneway@gmail.com>

* fix(sync-service): prevent underflows (#1015)

* fix(sync-service): prevent underflows

* chore: add changeset

* chore: remove dead confirmation depth

* chore: remove eth1conf depth from rollup config

* test: remove duplicate value in array (#1014)

* ci: tag docker image for canary with abbreviated GITHUB_SHA (#1006)

* ci: tag docker image for canary with abbreviated GITHUB_SHA

* ci: update from 6 bytes to 8 bytes of abbreviation

* refactor: improve logging for transactions being submitted to chain with gasPrice (#1016)

* refactor: improve logging for transactions being submitted to chain with gasPrice

* lint: apply lint autofixes

* dtl: remove stringify from db logic + more overflow protection (#1010)

* dtl: remove stringify from db logic

* l2geth: overflow protection

* dtl: overflow protection

* chore: add changeset

* ci: upload logs for failed integration tests (#1020)

* fix(dtl): improve slow blocking JSON parsing that occurs during l2 sync (#1019)

The use of eth_getBlockRange returns a large response which is very
slow to parse in ethersjs, and can block the event loop for upwards
of multiple seconds.

When this happens, incoming http requests will likely timeout and fail.

Instead, we will parse the incoming http stream directly with the bfj
package, which yields the event loop periodically so that we don't
fail to serve requests.

* fix: lint errors in dtl (#1025)

* fix[dtl]: fix dtl bug breaking verifiers (#1011)

* fix[dtl]: fix dtl bug breaking verifiers

* tweaks so tests pass

* chore: add changeset

* fix: deterministic blockhashes (#1032)

* config: set etherbase

* l2geth: add deterministic clique key

* l2geth: default value

* chore: add changeset

* test: add sync test for deterministic blockhash

Co-authored-by: Kevin Ho <kevinjho1996@gmail.com>

* Version Packages (#978)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* ci: add sync test's own workflow (#1031)

* fix(dtl): incorrect parsing of eth_getBlockRange result (#1037)

* Version Packages (#1045)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* fix: no gas refund (#1043)

* l2geth: remove the gas refund

* chore: add changeset

* refactor[contracts]: remove one-off GasPriceOracle deployment file (#1046)

* refactor[contracts]: remove one-off gpo deployment

* chore: add changeset

* feat[contracts]: introduce new L1ChugSplashProxy contract (#1009)

* feat[contracts]: add L1ChugSplashProxy

* improve comments slightly

* start adding tests

* add more tests

* make the system pausable

* added another test

* add some extra comments

* Update packages/contracts/test/contracts/chugsplash/L1ChugSplashProxy.spec.ts

Co-authored-by: Maurelian <maurelian@protonmail.ch>

* Update packages/contracts/test/contracts/chugsplash/L1ChugSplashProxy.spec.ts

Co-authored-by: Maurelian <maurelian@protonmail.ch>

* chore: add changeset

* address review feedback

Co-authored-by: Maurelian <maurelian@protonmail.ch>

* feat[contracts]: add sequencer fee wallet (#1029)

* wip: first draft of the fee wallet

* add fee wallet to dump

* rename to sequencer vault

* add L1 fee wallet to geth config

* add unit tests

* fix geth linting error

* add a basic integration test

* fix broken integration test

* add test for correct storage slot

* add integration test for fee withdrawal

* fix typo in integration tests

* fix a bug bin integration tests

* Update OVM_SequencerFeeVault.sol

* fix bug in contract tests

* chore: add changeset

* fix bug in contract tests

* build(deps): bump glob-parent from 5.1.1 to 5.1.2 (#1036)

Bumps [glob-parent](https://github.com/gulpjs/glob-parent) from 5.1.1 to 5.1.2.
- [Release notes](https://github.com/gulpjs/glob-parent/releases)
- [Changelog](https://github.com/gulpjs/glob-parent/blob/main/CHANGELOG.md)
- [Commits](https://github.com/gulpjs/glob-parent/compare/v5.1.1...v5.1.2)

---
updated-dependencies:
- dependency-name: glob-parent
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: smartcontracts <kelvinfichter@gmail.com>
Co-authored-by: Liam Horne <liam@lihorne.com>

* fix: predeploy gasprice oracle (#1039)

* l2geth: delete extra config options

* l2geth: stop using extra config options

* l2geth: more stop using extra config options

* chore: add changeset

* l2geth: add new config for gpo owner

* chore: add changeset

* l2geth: fix tests

* tests: fix build

* l2geth: optimize loops (#1027)

* l2geth: optimize loops

* l2geth: stop ticker when done

* l2geth: don't wait for first tick

* chore: add changeset

* Enable custom tagging of release docker image (#1048)

* ci: enable custom tagging of release docker image

* ci: refactor to add prerelease prefix for secuirty

* doc: typo

* ci: fix indentation issue of canary workflow

* ci: fix typo with GITHUB_SHA

* fix: typo in USE_HARDHAT config (#1023)

* fix: abi encoded tx (#1049)

* contracts: don't double rlp decode

* chore: add changeset

* lint: fix

* deps: update

* linting: cleanup

* feat: contracts: use selector

* fix: contracts: use typescript

* contracts: use interface

* l2geth: bump to go 1.15 (#1058)

* l2geth: bump to go 1.15

* chore: add changeset

* Change monotonicity band-aid code to log warnings not errors (#1060)

* refactor: change monotonicity band-aid code to log warnings not errors

* build: add changeset

* feat(contracts, l2geth): native ETH value support for ovmCALL (#1038)

* feat(contracts): add ovmCALL-types with native value

* add ovmCALLVALUE context

* add ovmBALANCE

* test success and revert cases

* test empty contract case

* chore: lint

* test(integration-tests): ovmCALL-types with value (compiler and wrapper)

* fix ovmDELEGATECALL type, update tests

* add ovmSELFBALANCE

* fix ovmDELEGATECALL jumping to CALL

* chore: lint

* fix(contracts): account for intrinsic gas of OVM_ETH sends

* fix(contracts): merge conflict bug

* fix(contracts): update gas benchmark

* feat(contracts, integration-tests): use new value-compatible compiler

* feat(contracts,l2geth): support value calls in OVM_ECDSAContractAccount

* fix(contracts): ovmDELEGATECALL does not change message context

* feat(contracts): sending value between EOAs

* test(integration-tests): ovmDELEGATECALL preserves ovmCALLVALUE

* test(integration-tests): assert ovmSELFBALANCEs correct

* test(integration-tests): intrinsic gas for eth value calls

* test(integration-tests): update gas values

* chore(contracts): lint

* feat(contracts, l2geth): eth_calls with nonzero value

* chore: minor fixups and comments based on PR feedback

* test(integration-tests): add requested tests from PR reviews

* test(integration-tests): ovmSELFBALANCE is preserved in ovmDELEGATECALLs

* fix(contracts): fix bug where ovmDELEGATECALL could fail if balance was lower than the ovmCALLVALUE

* chore: add changeset

* fix(contracts): update intrinsic gas for worst-case value sends

* chore: address final PR nits/improvements

Co-authored-by: Kelvin Fichter <kelvinfichter@gmail.com>

* Add erc1271 support to contract account (#1052)

* add ERC1271 support, failing unit tests

* add integration test for isValidSignature

* remove .only

* lint

* add changeset

* clean up 1271 tests and lint

* switch back to using waffle wallet

* lint

* fix import

* feat[contracts]: slightly better account funding for hardhat accounts (rebased) (#1065)

* feat[contracts]: better account funding for hardhat accounts

* add a sleep to avoid any potential problems

* chore: add changeset

* fix: bug with gas estimation in funding step

* fix: limit to 20 accounts max

Co-authored-by: Kelvin Fichter <kelvinfichter@gmail.com>

* Ensure Sentry is correctly set up for DTL and MR (#1054)

* refactor: add logger and metrics to options for BaseService

* refactor: thread sentryOptions through from message-relayer into BaseService

* refactor: ensure DTL Logger is using Sentry for errors

* style: lint base-service.ts

* refactor: init Sentry on batch-submitter too

* refactor: init Sentry on message-relayer too

* refactor: pass in basic logger to MessageRelayerService

* build: provide changeset

* fix: correct usage of use-sentry boolean config

* refactor: appropriately type loggingOptions

* build: add @sentry/node

* build: add @sentry/node to message-relayer and fix linting issue

* Add more logging information to monotonicity violation logs (#1066)

* refactor: log idx of monotonicity violation from batch

* build: add changeset

* temporarily disable hardhat example tests (#1071)

* fix: monotonicity auto healer (#1070)

* fix: monotonicity auto healer

* add: changeset

* Version Packages (#1053)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Standard token bridge (#988)

* Remove abstract token gateway and deposited token implementations

* Further simplification of bridge contracts

* Standart token bridge and L2 token implementation

* Fix spacing

* Implement case when a bad deposit happens to a nonexistent L1<>L2 token pair

* Use SafeMath in common token bridge accounting

* test(contracts): fix finalizeWithdrawal test

* fix(contracts): use SafeERC20 on token deposits

* Rename OVM_L1ERC20Gateway to OVM_L1ERC20Bridge contract

* Rename iOVM_L1ERC20Gateway to iOVM_L1ERC20Bridge contract

* Cleanup gateway to bridge rename

* Better name for the mapping holding l1->l2 deposit amounts

* Use OZ SafeMath

* Rename local variables in OVM_L2DepositedERC20 from gateway to bridge

* Merge ETH and ERC20 bridge contracts

* Rename OVM_L1ERC20Bridge to OVM_L1StandardBridge and fix tests from merging the ETH and ERC20 bridges

* Better name for iAbs_BaseCrossDomainMessenger -> iOVM_CrossDomainMessenger

* Correct the bounce back of deposit sender and recipient properties

* Remove obsoleted event from OVM_L2DepositedERC20

* chore(contracts): change references from ETHGateway to Bridge

* Fix a linting error

* fix(contracts): add bridge to deployer

* Split off ERC20Bridge interface for the purposes
of being reused in custom ERC20 bridges

* Split off interface natspec definitions

* Draft version of OVM_L2DepositedERC20 splitted into a standard L2 erc20: L2StandardERC20 and
a common L2 bridge: OVM_L2StandardBridge

* style(contracts): define L1_ETH_ADDRESS as constant

* test(integration): update interface to use depositETH

* test(contracts): fix OVM_L1StandardBridge tests

* test(contracts): fix L2 Standard Bridge tests

* test(contracts): lint and remove an obsolete test case

* Fix modifier check to comply with the L2 bridge distinction from L2 token

* Simplify address <> interface casting in bridges

* Ensure natspec comments are correct
also add l1 and l2 token params to WithdrawalInitiated event for consistency

* Fix issues in L1 and L2 bridges to ensure
cross domain messages are sent only between the two bridges
also adjusted withdrawals to send to either finalizeETHWithdrawal or finalizeERC20Withdrawal
depending on which asset is being withdrawn

* Remove AddressManager from the L1 standard bridge

* REVERT ME: instruments cross domain enabled

* fix(contracts): remove Address Manager from L1 Bridge

* feat(contracts): make L2 Standard Bridge a predeploy

* WIP: update deployments for standard bridges

* WIP: update deployments for standard bridges

* l2geth: TEMP log contract calls

* chore(l2geth): replace eth gateway with standard bridge

* fix(contracts): make contract-deployment/config work

* WIP fix(integration): update integration tests for bridge

* Remove ovmEth from L1 Standard bridge as obsoleted

* Separate ERC20 standard implementation from L2 bridge

* Formatting fixes

* chore(l2geth): replace eth gateway with standard bridge

* Revert "REVERT ME: instruments cross domain enabled"

This reverts commit d5bb8f8f67974d0a3e65fc000f08858328a4bbbc.

* fix: lint ts

* Implement EIP-165 in the Standard L2 ERC20 token
Also switch that to be based off the OpenZeppelin default implementation plus mint and burn
Additionally remove the obsoleted iOVM_ERC20

* fix(contracts): add deployment check on bridge proxy
fix(contracts): whitespace
fix(contracts): init bridge implementation with non-zero address

* Remove dependency on Ownable contract for the StandardERC20 token on L2

* fix(contracts): update deployment scripts

* fix: lint

* remove debugging code

* fix: correct rpc get balance slot

* restore l2 cross domain messenger

* fix: lint

* Add a test for a non compliant token deposit

* Only allow EOAs to deposit ETH and ERC20

* Add comments and tests for ERC165 implementation

* Decide against using explicit ETH MOCK address as we're not using it for checks

* Fix linting issues

* Add onlyEOAContract restriction to standard bridge withdrawals

* Update codehashes in L2 Standard bridge

* fix(ops): remove unintentionally added file

* feat(contracts): add expectApproxGasCost function

* fix(integration): proper arrayify input on fundUser

* fix(integration): proper gas value checks

* Revert "Add onlyEOAContract restriction to standard bridge withdrawals"

This reverts commit 2713c06ceb2609e4f13718e1034a4d76210d9758.

* fix(contracts): removed unused expectApproxGasCost for now

* fix(contracts): update OVM_SequencerFeeVault for bridge changes

* lint

* Update deployment for L1 Bridge w/ ChugSplash

* Revert "l2geth: TEMP log contract calls"

This reverts commit 21d42259278449f221bf34605162229b3d9d4fa9.

* Apply suggestions from code review

* Apply suggestions from code review

* fix(contracts): deploy with chugsplash proxy

* fix(contracts): add working bridge and chugsplash proxy deployment

* fix(contracts,integration): 500k gas for depositETH

* comment(contracts): describe failed deposit handling on l2

* Apply suggestions from code review

Co-authored-by: ben-chain <ben@pseudonym.party>

* docs: add changeset

* fix(integration): set working l2 gas amount on funduser

* test(integration): add receive() test

* fix(contracts): reset receive to 1.2MM l2 gas

* test(examples): skip l1-l2 example test for now

* fix(contracts): drop hardcoded gas to 500k in receive()

* fix(contracts): use abi.encodeWithSignature

* fix(contracts): resolve merge conflicts

* feat(integration): add expectApprox for flexible gas testing

* fix(integration): fix failing gas tests

* fix: incorrect l2 gas for deposit

* Update utils.ts

* fix(workflow): disable l1-l2 example until npm imports are fixed

* chore: final round of PR review nits and tests

Co-authored-by: Maurelian <maurelian@protonmail.ch>
Co-authored-by: Mark Tyneway <mark.tyneway@gmail.com>
Co-authored-by: ben-chain <ben@pseudonym.party>
Co-authored-by: Kelvin Fichter <kelvinfichter@gmail.com>

* fix: comment out codeowners (#1073)

* fix: use predeploy constant lib for em wrapper (#1075)

* fix: use predeploy constant lib for em wrapper

* chore: add changeset

* fix[l2geth]: off-by-one sometimes breaking replica sync (#1082)

* fix[l2geth]: off-by-one sometimes breaking replica sync

* chore: add changeset

* fix(l2geth): Log 'end of OVM execution' correctly (#1080)

* refactor[contracts]: move account contracts to predeploy folder (#1085)

* refactor[contracts]: move account contracts to predeploy folder

* chore: add changeset

* maintenance[contracts]: rename precompiles test folder to predeploys (#1086)

* fix[bs]: disambiguate generic submission errors (#1051)

* fix[bs]: disambiguate generic submission errors

* add cases for errors

* separate out errors from transaction reverts with reasons

* remove extraneous errors

* WETH deposit and withdraw on OVM_ETH (#1083)

* feat(contracts): add no-op WETH9 functionality to OVM_ETH

* working WETH deposit and withdraw + tests

* add changeset

* address PR feedback

* update WETH9 contract implementation

* add fallback to WETH9

* add fallback and revert withdraw test

* update nit comment

Co-authored-by: ben <ben@pseudonym.party>

* Also move the accounts interface to iOVM/predeploys (#1087)

* refactor[contracts]: move account interface to predeploy folder

* chore: add changeset

* Version Packages (#1089)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* fix: use -z flag for var unset in canary

* Use Eslint instead of Tslint (#1005)

* removed tslint

* forgot to commit files

* made .eslintrc.js consistent for all subdirs and other cleanup

* [removed] includes and files keys from tsconfig.json

* removed file level linting exceptions and added details to line level

* added changeset

* fixed newly introduced linting errors from rebase

* enable json import for batch submitter

* removed ecdsa-coder

* maybe a tsconfig issue?

* Update deploy.ts

Co-authored-by: smartcontracts <kelvinfichter@gmail.com>
Co-authored-by: platocrat <37757724+platocrat@users.noreply.github.com>

* metrics[batch-submitter]: add new batch submitter metrics (#1074)

* metrics[batch-submitter]: add new batch submitter metrics

* chore: changeset

* account for failed submissions

* Fix canary publishing (#1093)

* ci: fix custom docker tag

* ci: use new env file

* ci: use outputs from previous job

* ci: fix headers of jobs

* ci: inherit canary tag from builder

* feat[ci]: upload logs for sync tests if failure (#1098)

* deploy: goerli 0.4.0 (#1099)

* deployments: goerli 0.4.0 rc

* readme: update

* chore: add changeset

* fix[dtl]: defend against RPC provider missing events (#1084)

* fix[dtl]: defend against RPC provider missing events

* chore: add changeset

* respond to review comments

* better error handling for missing handlers

* deploy: kovan v.4.0 rc (#1101)

* deploy: kovan v0.4.0 rc

* chore: add changeset

* readme: update

* maintenance[monorepo]: first pass update to README (#1106)

* maintenance[monorepo]: first pass update to README

Doing some relatively minor updates to the README just to clean things up a bit.

* replying to review comments

* Move the metric prefix string to a label (#1047)

Added changeset and fixes
Changeset to patch

* fix[smock]: add support for hardhat 2.4.0 (#1112)

* fix[smock]: add support for hardhat 2.4.0

* chore: add changeset

* lint: fix

* build(deps): bump hosted-git-info from 2.8.8 to 2.8.9 (#1064)

Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.8.8 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases)
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md)
- [Commits](https://github.com/npm/hosted-git-info/compare/v2.8.8...v2.8.9)

---
updated-dependencies:
- dependency-name: hosted-git-info
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: smartcontracts <kelvinfichter@gmail.com>

* Misc. small improvements to README (#1115)

* Update README.md

* Update README.md

* fix[dtl]: use the same L2 chain ID everywhere (#1122)

* fix[dtl]: use the same L2 chain ID everywhere

* chore: add changeset

* fix: make sync tests only on workflow dispatch (#1123)

* fix[dtl]: remove old stringification function (#1134)

* fix[dtl]: remove old stringification function

* chore: add changeset

* fix[dtl]: log server errors as ERROR instead of INFO (#1133)

* fix[dtl]: log server errors as ERROR instead of INFO

* chore: add changeset

* Contracts: connectL1Contracts & connectL2Contracts  (#713)

* Contracts: connect-contracts

* Trying to resolve build problems

* connect-contracts build working

* Adds artifacts-ovm back to gitignore

* Removes incorrect changes

* Adds copy-artifacts script

* Adds test file (not working yet)

* fix: incorrect contract instantiation

* Improves tests and removes old deployment versions

* Single source of truth for predeploy addresses

* Reverts deployments/README.md

* Makes connect-contracts more DRY

* Adds missing @ethersproject/abstract-signer dependency

* Adds argument evaluation

* Adds L1Contracts and L2Contracts types

* Attempts removing artifacts-ovm again

* Adds webpack config (not working yet)

* build: add artifacts to dist (#776)

* Updates lint rule

* Adds l2 imports

* Fixes dependency tree bug

* Removes webpack stuff

* Fixing package.json issues and adds .DS_Store to gitignore

* Removes test-contracts script

* Reverting script change

* Adds comments

* Adds comment

* Renames deployments folders

* Fixes linting errors

* Generates markdown

* build: add deployments directory to Dockerfiles

* Removes unneeded contracts, improves error handling and tests

* Adds changeset

* yarn.lock

* Removes console.log

* Changes from minor to patch version

* Fixes lint errors

Co-authored-by: Kelvin Fichter <kelvinfichter@gmail.com>
Co-authored-by: Liam Horne <liam@lihorne.com>
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>

* fix: prevent overflow in abi encoding (#1135)

* l2geth: prevent overflow in abi encoding to ovm codec tx

* chore: add changeset

* tests: replica syncing (#981)

* [wip] add l2_dtl and replica images

* passing basic dummy tx test

* add erc20 test

* add sync test to ci

Co-authored-by: Mark Tyneway <mark.tyneway@gmail.com>

* fix[relayer]: update exported files list in package.json (#1138)

* fix[relayer]: update exported files

* chore: add changeset

* fix: import path (#1141)

* fix: correct import path for altered contract path

* chore: add changeset

* refactor: improve logging for batch submission timeout scenarios (#1120)

* Add highest L1 and L2 block number Gauge metrics to DTL (#1125)

* build: add prom-client to data-transport-layer

* refactor: thread metrics more carefully through data-transport-layer; add two new metrics

* style: fix some style issues

* refactor: make metrics mandatory

* refactor: move metrics register code to top of file

* style: apply linting

* refactor: move promethesus initialization after express

* refactor: move promBundle call up, provide registry

* build: add changeset

* Improve Watcher ability to find transactions (#1107)

* remove listeners and use loop to find tx receipt

* add yarn ready

* moved filters inside loop

* [added] changeset

* Add minimal vscode settings and extensions (#1109)

* chore: add minimal vscode settings and extensions

* chore: Add "files.trimTrailingWhitespace" to vscode native config

* chore: replace vscode prettier plugin with eslint plugin

* fix[contracts]: remove part of MultiMessageRelayer deployment (#1144)

* fix[contracts]: remove part of MultiMessageRelayer deployment

* chore: add changeset

* Define L1 Starting block via OwnershipTransferred rather than AddressSet (#1129)

* Update service.ts

* Create thirty-years-look.md

Co-authored-by: smartcontracts <kelvinfichter@gmail.com>

* Easy fix for broken watchers (#1121)

* Easy fix for broken watchers

* Ran yarn changeset

Co-authored-by: Liam Horne <liam@lihorne.com>

* feat: go packages (#1111)

* go: add utils module

* readme: update

* Version Packages (#1094)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* build: add husky pre-commit hook to lint (#1146)

* feat[contracts]: add mainnet deploy script (#1147)

* Add mainnet deploy script

* Update mainnet.sh

* Address PR review feedback

* feat: mainnet contract deployment 0.4.0 (#1148)

* feat: mainnet contract deployment 0.4.0

* feat: deployments readme

* chore: add changeset

* contracts: remove dead contract

* contracts: remove dead config

* tests: fix to not test for old contracts

* feat: `rollup gasPrices` RPC endpoint (#1136)

* feature: l2geth  endpoint

* chore: add changeset

Co-authored-by: Liam Horne <liam@lihorne.com>

* Adds l2 standard bridge to contracts markdown file (#1151)

* Version Packages (#1150)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Add more info about our branching strategy to the README (#1114)

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Remove references to OVM_L1ETHGateway in deployments and readme (#1119)

Co-authored-by: Maurelian <maurelian@protonmail.ch>
Co-authored-by: smartcontracts <kelvinfichter@gmail.com>
Co-authored-by: Elena Gesheva <elena@arenabg.com>
Co-authored-by: ben-chain <ben@pseudonym.party>
Co-authored-by: Mark Tyneway <mark.tyneway@gmail.com>
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
Co-authored-by: Karl Floersch <karl@karlfloersch.com>
Co-authored-by: Rajiv Patel-O'Connor <rajiv.patel.oconnor@gmail.com>
Co-authored-by: rajivpo <rajivpatel-oconnor@Rajivs-MacBook-Pro-2.local>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kevin Ho <kevinjho1996@gmail.com>
Co-authored-by: Ben Wilson <82120899+optimisticben@users.noreply.github.com>
Co-authored-by: Liam Horne <liam@lihorne.com>
Co-authored-by: Tim Myers <timmyers09@gmail.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Annie Ke <annieke8@gmail.com>
Co-authored-by: platocrat <37757724+platocrat@users.noreply.github.com>
Co-authored-by: Matt Masurka <m.masurka@gmail.com>
Co-authored-by: CAPtheorem <79423264+CAPtheorem@users.noreply.github.com>
Co-authored-by: Alejandro Santander <Palebluedot@gmail.com>

* Re-apply key changes on top of optimism most current develop

* Add docker-compose-replica.yml (#109)

* Create docker-compose-replica.yml

* Add replica service

* Update docker-compose-omgx-replica.yml

Co-authored-by: CAPtheorem <79423264+CAPtheorem@users.noreply.github.com>

* fix linter; patch gethl2

* configure the deployer correctly

* fix proposer / batch submitter

* update chainIDs

* update rpc test

* Create README_OMGX.md

* upstream - needs more work

* Adds delay to watcher (#1159)

* Adds delay to watcher

* Simplifies delay

* Adds changeset

* Fix wallet test

* Fix deployment test

* Add Python

* Update Dockerfile.omgx_monorepo

* Remove package-lock

* fix: bind dtl functions for missing event codepath (#1161)

* dtl: bind this in L1 missing element error handlers

* dtl: add additional logline

* chore: add changeset

* dtl: add more metrics

* dtl: use counter instead of gauge

Co-authored-by: Kevin Ho <kevinjho1996@gmail.com>

* fix: remove 'editor.formatOnSave' from global settings' (#1163)

* merge conflicts

* Update pre-commit

* Version Packages (#1167)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* minor

* Update pre-commit

* Fix wallet test (#119)

* Fix wallet test

* Fix deployment test

* Add Python

* Update Dockerfile.omgx_monorepo

* Remove package-lock

Co-authored-by: CAPtheorem <79423264+CAPtheorem@users.noreply.github.com>

* Reapply standard changes on top of current develop

* Update package.json

* doc: add notes for releasing new versions with changesets (#1166)

* Bind correct object to method handler in DTL (#1168)

* fix: bind correct object to method handler

* build: add changeset

* Version Packages (#1169)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Fix web wallet

* Fix integration test (#124)

* Fix integration test (#125)

* Fix integration test

* Fix integration test

* Fix wallet_react

* Fix lint test

* Remove package-lock

* Update integration.yml

* Fix wallet deployer

* Collect docker log

* Fix l1-l2-deposit-withdrawal test

* Fix sync test

* Add chainID to deployer config

* make sync tests dispatch only

Co-authored-by: CAPtheorem <79423264+CAPtheorem@users.noreply.github.com>

* Add short contribution section to primary README (#1157)

* Add short contribution section to primary README

* Update README.md

* fix: prevent batch submitter from submitting batches if low on ETH

* build: add changeset

* Eslint ignore the hardhat folder

* Update README.md

* Beginning to add working examples

* hardhart and waffle example tests

* document/check waffle

* test l1-l2 example

* add patch-package

* Update package.json

* build: ensure lint only staged files on commit

* refactor: do not run --fix on lint-staged

* refactor: *.{ts,js} for eslint regex

* l2geth: rollup client explicitly checks for >= 400 errors

* l2geth: sync service retries connection to remote server

* l2geth: test errors returning from remote

* chore: add changeset

* syncservice: nit

* feat[message-relayer]: add easy relay tool

* chore: add changeset

* upkeep[monorepo]: add changeset info to README

* merge conflict squash

* Daily sync up (#137)

* build: ensure lint only staged files on commit

* refactor: do not run --fix on lint-staged

* refactor: *.{ts,js} for eslint regex

* l2geth: rollup client explicitly checks for >= 400 errors

* l2geth: sync service retries connection to remote server

* l2geth: test errors returning from remote

* chore: add changeset

* syncservice: nit

* feat[message-relayer]: add easy relay tool

* chore: add changeset

* upkeep[monorepo]: add changeset info to README

Co-authored-by: Liam Horne <liam@lihorne.com>
Co-authored-by: Mark Tyneway <mark.tyneway@gmail.com>
Co-authored-by: Kelvin Fichter <kelvin@optimism.io>
Co-authored-by: smartcontracts <kelvinfichter@gmail.com>

* build: set up eslint prettier correctly

* style: run yarn lint --fix at root

* build: add necessary packages to workspace root

* build: remove --format stylish

* build: set semvery ranges to match across packages

* build: set up prettierrc.js for monorepo

* refactor: rename Range to BlockRange

* build: set up correct working directories

* build: set up lint:fix to use eslint not prettier

* style: run lint:fix on all code

* build: remove prettier extension recommendation

* style: update configuration to include babel-eslint for .js linting

* build: set concurrency to 1 to prevent git add errors on lerna lint

* github actions: bump geth CI golang version

* fix(contracts): prevent L2->L1 calls to system contracts

* Update message relayer fast contracts (#139)

* prepare for wallet reorg

* Create yarn.lock

* fix hardhat bug

* merge conflict resolve

* daily sync up (#141)

* build: set up eslint prettier correctly

* style: run yarn lint --fix at root

* build: add necessary packages to workspace root

* build: remove --format stylish

* build: set semvery ranges to match across packages

* build: set up prettierrc.js for monorepo

* refactor: rename Range to BlockRange

* build: set up correct working directories

* build: set up lint:fix to use eslint not prettier

* style: run lint:fix on all code

* build: remove prettier extension recommendation

* style: update configuration to include babel-eslint for .js linting

* build: set concurrency to 1 to prevent git add errors on lerna lint

* fix(contracts): prevent L2->L1 calls to system contracts

Co-authored-by: Liam Horne <liam@lihorne.com>
Co-authored-by: ben <ben@pseudonym.party>

* Add Factory contract for creating standard ERC20 tokens
compliant with the standard bridge

* Disallow 0 address for l1 token when creating l2 standard token

* Fix linting issue

* Add deployment script for the L2 token factory

* Fix deploy script OVM_L2StandardTokenFactory constructor params

* Add changeset

* Cleanup deployment script for OVM_L2StandardTokenFactory
and fix a solidity linting error

* refactor(integration): Add clarity to the expectApprox function signature

* fix: skip codechecks for PRs from external repos

* DRAFT move react wallet and the contracts to more clear folders (#138)

* DRAFT move react wallet and the contracts to more clear folders

* merging the axios integration chagnes

* updated the message-relayer-fast contracts

* integrate message-relayer-fast into standard dockers

* Dockerize the message-relayer-fast

* update Readme.md

* remove duplicated contracts - just keep everything in /contracts

* add deploy for fast messenger

* message-relayer-fast testing

* Update serve.sh

* Delete yarn.lock

* Update constants.ts

* Create yarn.lock

* Update constants.ts

* Update function-manipulation.spec.ts

* increase the retries and other minor fixes

* Improved documentation

* fix omgx integration tests

* Update omgx-integration.yml

* integration test remove duplicated tests

* Fix units test configuration

* Update docker-compose-omgx-services.yml

* integration test setup fixes

* fix wallet integration test

* fix for crash on return

* integration tests for `message-relayer-fast`

* Update env.ts

* Autodeploy Token Bridges

* Update wallet contracts

* Update utils.ts

* improve omgx integration tests

* Add address manager address to GH actions for now

Co-authored-by: sahil kashetwar <>
Co-authored-by: Sahil k <sahil@enya.ai>
Co-authored-by: cby3149 <cby3149@outlook.com>

* merge conflicts

* GH actions regular changes

* husky

* Daily sync up (#144)

* build: set up eslint prettier correctly

* style: run yarn lint --fix at root

* build: add necessary packages to workspace root

* build: remove --format stylish

* build: set semvery ranges to match across packages

* build: set up prettierrc.js for monorepo

* refactor: rename Range to BlockRange

* build: set up correct working directories

* build: set up lint:fix to use eslint not prettier

* style: run lint:fix on all code

* build: remove prettier extension recommendation

* style: update configuration to include babel-eslint for .js linting

* build: set concurrency to 1 to prevent git add errors on lerna lint

* github actions: bump geth CI golang version

* fix(contracts): prevent L2->L1 calls to system contracts

* Add Factory contract for creating standard ERC20 tokens
compliant with the standard bridge

* Disallow 0 address for l1 token when creating l2 standard token

* Fix linting issue

* Add deployment script for the L2 token factory

* Fix deploy script OVM_L2StandardTokenFactory constructor params

* Add changeset

* Cleanup deployment script for OVM_L2StandardTokenFactory
and fix a solidity linting error

* refactor(integration): Add clarity to the expectApprox function signature

* fix: skip codechecks for PRs from external repos

Co-authored-by: Liam Horne <liam@lihorne.com>
Co-authored-by: Mark Tyneway <mark.tyneway@gmail.com>
Co-authored-by: ben <ben@pseudonym.party>
Co-authored-by: elenadimitrova <elena@arenabg.com>
Co-authored-by: Reggie Gomez <reggieag@gmail.com>
Co-authored-by: smartcontracts <kelvinfichter@gmail.com>

* docker: pin to alpine 3.13 for l2geth

A bug has appeared when older versions of Docker are used to build
alpine based images in alpine version 3.14. To prevent this problem
from happening to the users, this PR pins the version to 3.13.

The observed problem is that `make` cannot run any command and
the error message states `Operation not permitted.` Removing
`make` was one way to solve the problem but that would increase
the diff from upstream geth.

See these links for details:
https://github.com/alpinelinux/docker-alpine/issues/182
https://wiki.alpinelinux.org/wiki/Release_Notes_for_Alpine_3.14.0

* fix: update statement for skipping codechecks

* contracts: add set-l2-gasprice task

This task allows a user to update the L2 gas price using hardhat.
An example of doing so would be:

```bash
$ export CONTRACTS_DEPLOYER_KEY=0x..
$ CONTRACTS_RPC_URL=https://kovan.optimism.io npx hardhat set-l2-gasprice \
    --l2-gas-price 1
```

This hardcodes the predeploy address of the `OVM_GasPriceOracle` smart
contract and the Owner must be used to do the updating, otherwise the
transaction will revert.

* removed unused functions from core utils

* [added] changeset

* next gen integration tests for the OMGX stack (#149)

* next gen integration tests for the OMGX stack

* finish first pass integration test outline

* move LP tests to the `message-relayer-fast`

* Update omgx-integration.yml

* add more tests to message-relayer-fast

* connect up the .env variables

* hard code URIs

* Update utils.ts

* Update omgx-integration.yml

* fix - should have been 8080

* Update omgx-integration.yml

* which address to use?

* Update omgx-integration.yml

* removing not needed code

* remove superfluous logging code

* Update utils.ts

* Update utils.ts

* additional comments and formatting improvements

* fix: use older changes on tests (#152)

* fix: use older structure

* correct messenger

* LP fees on the correct side

* correct messenger

* rearrange depl order

Co-authored-by: Souradeep Das <dsouradeep2@gmail.com>

* Update README_OMGX.md (#150)

Refactored some changes and added some comments I thought might be helpful for people.

Co-authored-by: CAPtheorem <79423264+CAPtheorem@users.noreply.github.com>

* tests: re-enable all tests (#155)

* re-enable all tests

* re-enable all tests

* Add solhint to contracts package

* Turn off compiler-version rule in solhint

* Add suggestions by @maurelian
https://github.com/ethereum-optimism/optimism/pull/1033#issuecomment-866146467

* Change solhint output formatting to table

* Disable contract-name-camelcase rule in solhint

* Fix max-line-length linting issues in contracts

* Fix quotes linting issues in contracts

* Remove private-vars-leading-underscore rule in solhint

* Add contracts linting to github action

* Fix for hardhat account balance parsing

* Disable generating the bytecodeHash in hardhat contract artifacts

* Review fixes

* Fix review notes

* Fix smockit for a change in hardhat ^2.4.0
which changes the way it parses errors from returndata
Fix provided by @smartcontracts

* dtl: configurable gas price backend

Adds a new config option `--l1-gas-price-backend` or
`DATA_TRANSPORT_LAYER_L1_GAS_PRICE_BACKEND` that can be set to `l1` or
`l2`. This impacts the behavior of the HTTP endpoint `GET /eth/gasprice`
by changing what is queried to return the L1 gas price. The L1 gas price
is required to compute the L2 fee since the L2 fee consists of
`L1 gas price * L1 gas used + L1 gas price * L2 gas limit`. If the L1
gas price differs too much between different L2 providers, then users
using `eth_estimateGas` may submit transactions with too low of a fee
and be unable to submit transactions to the sequencer.

By configuring the DTL to use L2 as the L1 gas price backend, it will
call the Sequencer's RPC endpoint `rollup_gasPrices` which returns the
L1 and L2 gas prices from the point of view of the sequencer. The L2 gas
price exists in the state, so that will always be the same between the
sequencer and any replicas. The L1 gas price does not live on chain, so
querying for it from the sequencer directly will ensure that users send
transactions with a fee that is large enough.

Also adds eth/gasprice info to README.

* Remove bl wl service  (#154)

* replace `bl-wl` with direct calls the `omgx_deployer`

* Update docker-compose-omgx-services.yml

* Update up_local.sh

* Add CORS headers to http servers

* updated frontend to use the two new HTTP servers for the addresses

* update webwallet to work with both local and rinkeby

* Add missing .env variables to GH actions

* re-enable docker tages

* re-enable wallet transaction history

* Update up_local.sh

* Update up_local.sh

* Add flag to omgx_deployer to only serve addresses w/o deploying new contracts

* Update docker-compose-omgx-services.yml

* Add back tagging system and improved reliability of GH actions

* removed commented out service

* add rinkeby token addresses (#161)

Co-authored-by: CAPtheorem <79423264+CAPtheorem@users.noreply.github.com>

* fix: lint deploy-l2 folder in contracts

* Add AWS integration (#159)

* Add AWS integration

* Remove artifacts

* updated ops_omgx/README.md and added .github/workflows/deploy2aws-integration.yml and .github/workflows/push2aws.yml

* add automated provision and deletion of an ec2 instance for running the integration tests

Co-authored-by: Petar Denev <pdenev@gmail.com>

* fix: update CI to avoid running out of memory

* Version Packages

* ci: release latest image tags on release

* feat: update README to include info about rebasing

* Add op_exporter for sequencer metrics and health endoint
Added metric for sequencer health
Added Dockerfile for op_exporter;
Fixed Dockerfile path

* merge conflicts

* re-comment out the usual GH actions

* feat[integration-tests]: make tests work for prod networks

* chore: add changeset

* Increase client_body_buffer_size for rpc-proxy
Added client_max_body_size to rpc-proxy config

* l2geth: use `hexutil.Big` to prevent overflows

The `RollupClient` decodes the JSON from the DTL as a uint64,
this updates it to be a `big.Int`

Includes a test for the value field that ensures it does not overflow

* ci(contracts): only run codecov if contracts package is modified

In order to skip running the CodeCov job when it isn't relevant, a new job was added to the ts-packges workflow. For a PR, this job identifies all the files modified between the base branch and the tip of the PR branch, and writes to a variable which can be used to decide if subsequent jobs should run.

Github Actions provides an easy method for achieving this at the level of a workflow, but not for specific jobs within a workflow.

* Version Packages

* chore(ci): Skip codecov on push events

* feat: add workflow for running SNX test suite

* go: implement gasprices package

The `gasprices` package implements the logic that updates
L2 gasprices on the Optimistic Ethereum Network.

Co-authored-by: Karl Floersch <karl@karlfloersch.com>

* gas-oracle: implement and test

This commit adds the `gas-oracle` which is an offchain entity
that sends transactions to L2 to update the gas price. It must
be configured with a private key as the `OVM_GasPriceOracle`
is owned.

The `gas-oracle` is added to the changesets setup.

Tests are included as well as CI. Dockerizing will happen
in a follow up PR.

* gas-oracle: ci + docker build/publish

Adds a dockerfile for the `gas-oracle` as well as adding it as
a service in the `docker-compose.yaml`. It is not enabled by
default due to memory issues in CI already happening occasionally
where the integration tests are oom killed.

The `gas-oracle` is configured with a key that owns the
`OVM_GasPriceOracle`.

This PR adds the `gas-oracle` to the Github Actions
workflow that is responsible for publishing the docker images.

* Add replica (#169)

* fix: update erc20 deposits (#166)

* fix: update erc20 deposits

* fix: auto default token

Co-authored-by: CAPtheorem <79423264+CAPtheorem@users.noreply.github.com>

* resolve merge conflicts

* Update docker-compose.yml

* Update docker-compose.yml

* [pull] develop from ethereum-optimism:develop (#164)

* contracts: add set-l2-gasprice task

This task allows a user to update the L2 gas price using hardhat.
An example of doing so would be:

```bash
$ export CONTRACTS_DEPLOYER_KEY=0x..
$ CONTRACTS_RPC_URL=https://kovan.optimism.io npx hardhat set-l2-gasprice \
    --l2-gas-price 1
```

This hardcodes the predeploy address of the `OVM_GasPriceOracle` smart
contract and the Owner must be used to do the updating, otherwise the
transaction will revert.

* Add op_exporter for sequencer metrics and health endoint
Added metric for sequencer health
Added Dockerfile for op_exporter;
Fixed Dockerfile path

* feat[integration-tests]: make tests work for prod networks

* chore: add changeset

* Increase client_body_buffer_size for rpc-proxy
Added client_max_body_size to rpc-proxy config

* l2geth: use `hexutil.Big` to prevent overflows

The `RollupClient` decodes the JSON from the DTL as a uint64,
this updates it to be a `big.Int`

Includes a test for the value field that ensures it does not overflow

* ci(contracts): only run codecov if contracts package is modified

In order to skip running the CodeCov job when it isn't relevant, a new job was added to the ts-packges workflow. For a PR, this job identifies all the files modified between the base branch and the tip of the PR branch, and writes to a variable which can be used to decide if subsequent jobs should run.

Github Actions provides an easy method for achieving this at the level of a workflow, but not for specific jobs within a workflow.

* Version Packages

* chore(ci): Skip codecov on push events

* feat: add workflow for running SNX test suite

* go: implement gasprices package

The `gasprices` package implements the logic that updates
L2 gasprices on the Optimistic Ethereum Network.

Co-authored-by: Karl Floersch <karl@karlfloersch.com>

* gas-oracle: implement and test

This commit adds the `gas-oracle` which is an offchain entity
that sends transactions to L2 to update the gas price. It must
be configured with a private key as the `OVM_GasPriceOracle`
is owned.

The `gas-oracle` is added to the changesets setup.

Tests are included as well as CI. Dockerizing will happen
in a follow up PR.

* gas-oracle: ci + docker build/publish

Adds a dockerfile for the `gas-oracle` as well as adding it as
a service in the `docker-compose.yaml`. It is not enabled by
default due to memory issues in CI already happening occasionally
where the integration tests are oom killed.

The `gas-oracle` is configured with a key that owns the
`OVM_GasPriceOracle`.

This PR adds the `gas-oracle` to the Github Actions
workflow that is responsible for publishing the docker images.

Co-authored-by: Mark Tyneway <mark.tyneway@gmail.com>
Co-authored-by: Ben Wilson <bwilson@optimism.io>
Co-authored-by: Kelvin Fichter <kelvin@optimism.io>
Co-authored-by: smartcontracts <kelvinfichter@gmail.com>
Co-authored-by: Ben Wilson <82120899+optimisticben@users.noreply.github.com>
Co-authored-by: Kevin Ho <kevinjho1996@gmail.com>
Co-authored-by: Liam Horne <liam@lihorne.com>
Co-authored-by: Maurelian <maurelian@protonmail.ch>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Karl Floersch <karl@karlfloersch.com>

* Update docker-compose.yml

* adding l1-l2 test ecs scheduled task that does verify communication between L1 and L2 and L2 to L1 (#167)

Co-authored-by: CAPtheorem <79423264+CAPtheorem@users.noreply.github.com>

* Update docker-compose.yml

* daily update (#170)

* contracts: add set-l2-gasprice task

This task allows a user to update the L2 gas price using hardhat.
An example of doing so would be:

```bash
$ export CONTRACTS_DEPLOYER_KEY=0x..
$ CONTRACTS_RPC_URL=https://…
@qifengzhang007
Copy link

qifengzhang007 commented Jul 20, 2021

I encountered the same error as you when compiling nginx.

Then I switched to version alpine:3.12 、alpine:3.13,Found that both are OK!


// Omit irrelevant code

RUN  \
                addgroup  -S www  &&  adduser www  -D -S -s /bin/sh -G www  \
                && wget -P /home/soft  https://github.com/vozlt/nginx-module-vts/archive/v0.1.18.tar.gz  \
                && wget -P /home/soft  http://nginx.org/download/nginx-1.21.1.tar.gz   \
                && wget -P /home/soft  https://ftp.pcre.org/pub/pcre/pcre-8.44.tar.gz    \
                &&  cd /home/soft  && tar -zxf nginx-1.21.1.tar.gz  &&  tar  -zxf  v0.1.18.tar.gz   && tar  -zxf  pcre-8.44.tar.gz  \
                &&  cd /home/soft/nginx-1.21.1  \
                &&  ./configure --user=www --group=www --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module  --with-http_v2_module --with-http_gzip_static_module --with-stream --with-http_sub_module  --with-pcre=/home/soft/pcre-8.44   --add-module=/home/soft/nginx-module-vts-0.1.18  \
                &&  make && make install  \

// Omit irrelevant code

The error is as follows:

make -f objs/Makefile
make: make: Operation not permitted
make: *** [Makefile:10: build] Error 127

@jufemaiz
Copy link

Confirming that this is failing.

Docker 20.10.5
Compose 1.28.5

Gist: https://gist.github.com/jufemaiz/a5512eb7f87a0f33f512b806dec49e5a

Related: docker-library/golang#378

@jufemaiz
Copy link

Now for the fun part.

Docker 20.10.6 and 20.10.7 both work.

@andypost
Copy link

As release notes said update of docker required
https://wiki.alpinelinux.org/wiki/Release_Notes_for_Alpine_3.14.0#faccessat2

@jufemaiz
Copy link

jufemaiz commented Jul 28, 2021

As release notes said update of docker required
https://wiki.alpinelinux.org/wiki/Release_Notes_for_Alpine_3.14.0#faccessat2

Sure, but it also says:

Docker 20.10.0 (which contains moby commit a181391) or greater

Which is incorrect. Docker 20.10.5 is incompatible.

@Hello71
Copy link

Hello71 commented Aug 5, 2021

As release notes said update of docker required
https://wiki.alpinelinux.org/wiki/Release_Notes_for_Alpine_3.14.0#faccessat2

Sure, but it also says:

Docker 20.10.0 (which contains moby commit a181391) or greater

Which is incorrect. Docker 20.10.5 is incompatible.

you cannot stop reading nine words in. AND is the very next word, in all caps. for those unfortunately living with dyslexia, i have now set the already all-caps AND in additional bold and italic font.

@jufemaiz
Copy link

jufemaiz commented Aug 6, 2021

Suggest toning down the antagonism and the use of medical conditions as slurs @Hello71.

Looks like I failed to add I'm using the Docker for Mac solution. Ergo any attempt to validate the libseccomp version and compatibility of the host is destined for failure as far as I can tell for non-linux solutions. As point two notes, the existence of Docker for Mac or Windows as a solution is known, so surely there's a reasonable expectation that the version of Docker Desktop recommended would have been validated.

Cheers for the contribution to the release notes.

wperron added a commit to denoland/deno_docker that referenced this issue Aug 11, 2021
Make does not work with alpine 3.14, this commit pins the alpine version
to 3.13 to fix the issue. The root cause seems to be [this issue][1] with
Alpine and Docker 20.10.5 and earlier. How this issue presents itself in
other container runtimes is unclear, but consensus seems to be that
reverting to alpine 3.13 fixes the issue.

[1] alpinelinux/docker-alpine#182

Fixes #152
@Hello71
Copy link

Hello71 commented Aug 16, 2021

Suggest toning down the antagonism and the use of medical conditions as slurs @Hello71.

it is not i who started any "antagonism".

Docker 20.10.0 (which contains moby commit a181391) or greater

Which is incorrect. Docker 20.10.5 is incompatible.

i generously assumed that you accidentally misread the documentation instead of gratuitously insulting the release notes that i spent several hours writing and revising to be comprehensive and clear.

i suggest you spend 2.5 minutes (244 words times 100 wpm for "remedial students" on advanced material) reading it; in all likelihood, that is less time than you've spent cherry-picking fragments of it and unnecessarily downgrading and upgrading Docker.

with that in mind, you have apparently still not read the release notes, since you say:

As point two notes, the existence of Docker for Mac or Windows as a solution is known, so surely there's a reasonable expectation that the version of Docker Desktop recommended would have been validated.

it was validated; stop insulting my work. the Alpine Linux 3.14 release notes say:

if using Docker Desktop for Windows or Mac, this is part of Docker Desktop 3.3.0

when using Docker Desktop, you cannot cite only the Docker Engine version number. you also cannot stop reading fourteen words in and shrug "well i'm using docker desktop so wHy iSNt iT WorKInG". as explained in both the Alpine and Docker Desktop release notes, newer versions of Docker Desktop contain newer Docker Engine, but also newer runc:

Docker Desktop 3.2.1: Docker Engine 20.10.5
Docker Desktop 3.3.0: runc v1.0.0-rc93
Docker Desktop 3.3.2: Docker Engine 20.10.6

and here, we return to the Alpine Linux 3.14 release notes, which says that Docker Desktop 3.3.0 contains runc v1.0.0-rc93, which satisfies the faccessat2 requirement for Alpine Linux 3.14.

this was already pointed out to you at docker-library/golang#378 (quote in full, emphasis added):

Yep, as noted in docker-library/php#1177, this is something related to the containerization combined with newer musl. If you're not on the latest release of Docker, libseccomp, and runc, I'd suggest starting with an update to all of those.


if, after fully reading the Alpine release notes, anybody is still experiencing this issue, please post:

  1. docker version (not docker --version) and docker info. if you don't have access to the Docker host, then your provider name and relevant information (e.g. advertised VM configuration).
  2. if you are using Docker Desktop, then the Docker Desktop version
  3. full docker invocation, input (e.g. Dockerfile or stdin), and output

to avoid cluttering the issue, please use <details> element for big output, e.g. https://gist.github.com/ericclemmons/b146fe5da72ca1f706b2ef72a20ac39d.

i appreciate any information that can help improve the usability and reliability of Alpine Linux, and am willing to assist (for free!) in resolving issues. i do not appreciate wasting volunteer support time and propagating misinformation instead of spending two minutes to properly read the documentation. if you don't want to read the documentation, that's fine (although your loss), but don't subsequently go around complaining that nothing works properly and you have no idea why.

@mmachatschek
Copy link

mmachatschek commented Aug 27, 2021

@Hello71 I run into this problem too. Here is my configuration to reproduce the issue.

As far as I can tell, my system meets the minimum requirements mentioned in the Alpine 3.14 release notes.

  1. Docker version >= 20.10.0
  2. runc >= 1.0.0-rc93
  3. libseccomp >= 2.4.4

The command scmp_sys_resolver faccessat2 returns 439 both on the host and within the container.

Docker version:
docker version
Client: Docker Engine - Community
 Version:           20.10.8
 API version:       1.41
 Go version:        go1.16.6
 Git commit:        3967b7d
 Built:             Fri Jul 30 19:54:27 2021
 OS/Arch:           linux/amd64
 Context:           default
 Experimental:      true

Server: Docker Engine - Community
 Engine:
  Version:          20.10.8
  API version:      1.41 (minimum version 1.12)
  Go version:       go1.16.6
  Git commit:       75249d8
  Built:            Fri Jul 30 19:52:33 2021
  OS/Arch:          linux/amd64
  Experimental:     true
 containerd:
  Version:          1.4.9
  GitCommit:        e25210fe30a0a703442421b0f60afac609f950a3
 runc:
  Version:          1.0.1
  GitCommit:        v1.0.1-0-g4144b63
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0
Docker info:
docker info
Client:
 Context:    default
 Debug Mode: false
 Plugins:
  app: Docker App (Docker Inc., v0.9.1-beta3)
  buildx: Build with BuildKit (Docker Inc., v0.6.1-docker)
  scan: Docker Scan (Docker Inc., v0.8.0)

Server:
 Containers: 72
  Running: 3
  Paused: 0
  Stopped: 69
 Images: 226
 Server Version: 20.10.8
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Native Overlay Diff: true
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 Cgroup Version: 1
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 io.containerd.runtime.v1.linux runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: e25210fe30a0a703442421b0f60afac609f950a3
 runc version: v1.0.1-0-g4144b63
 init version: de40ad0
 Security Options:
  apparmor
  seccomp
   Profile: default
 Kernel Version: 5.11.0-27-generic
 Operating System: Ubuntu 20.04.3 LTS
 OSType: linux
 Architecture: x86_64
 CPUs: 6
 Total Memory: 31.25GiB
 Name: pc
 ID: DJIM:XOB3:EFYW:YAJ6:GVTD:XQI5:5R5Z:PUD4:CMRE:AJKW:5OCF:562V
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Registry: https://index.docker.io/v1/
 Labels:
 Experimental: true
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false
Dockerfile:
FROM php:8.0.10-fpm-alpine3.14

RUN set -ex \
    && apk update \
    && apk add --no-cache --update $PHPIZE_DEPS imagemagick libgomp imagemagick-dev \
    && pecl install imagick-3.5.1 \
    && docker-php-ext-enable imagick
Docker build output:

Invokation:

docker build -f Dockerfile .
[+] Building 20.7s (5/5) FINISHED                                                                                                                                                                                  
 => [internal] load build definition from Dockerfile                                                                                                                                                     0.1s 
 => => transferring dockerfile: 37B                                                                                                                                                                           0.0s 
 => [internal] load .dockerignore                                                                                                                                                                             0.1s 
 => => transferring context: 35B                                                                                                                                                                              0.0s 
 => [internal] load metadata for docker.io/library/php:8.0.10-fpm-alpine3.14                                                                                                                                  1.6s 
 => CACHED [1/2] FROM docker.io/library/php:8.0.10-fpm-alpine3.14@sha256:72801f7e6f8495775dd05a9973980e4aaa106983fb58a13d3ce2aa3602b56e6a                                                                     0.0s 
 => => resolve docker.io/library/php:8.0.10-fpm-alpine3.14@sha256:72801f7e6f8495775dd05a9973980e4aaa106983fb58a13d3ce2aa3602b56e6a                                                                            0.0s 
 => ERROR [2/2] RUN set -ex     && apk update     && apk add --no-cache --update autoconf   dpkg-dev dpkg   file   g++   gcc   libc-dev   make   pkgconf   re2c imagemagick libgomp imagemagick-dev     &&   19.1s 
------
[2/2] RUN set -ex     && apk update     && apk add --no-cache --update autoconf              dpkg-dev dpkg           file            g++             gcc             libc-dev                make            pkgconf            re2c imagemagick libgomp imagemagick-dev     && pecl install imagick-3.5.1     && docker-php-ext-enable imagick:                                                                                   
#5 0.161 + apk update                                                                                                                                                                                              #5 0.165 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/x86_64/APKINDEX.tar.gz                   
#5 0.530 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/x86_64/APKINDEX.tar.gz                                                                                                                        
#5 0.852 v3.14.1-91-gdd3221bd34 [https://dl-cdn.alpinelinux.org/alpine/v3.14/main]                       
#5 0.852 v3.14.1-93-ga8c38d09be [https://dl-cdn.alpinelinux.org/alpine/v3.14/community]                  
#5 0.852 OK: 14935 distinct packages available                                                           
#5 0.874 + apk add --no-cache --update autoconf dpkg-dev dpkg file g++ gcc libc-dev make pkgconf re2c imagemagick libgomp imagemagick-dev                                                                          #5 0.878 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/x86_64/APKINDEX.tar.gz                   
#5 1.091 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/x86_64/APKINDEX.tar.gz                                                                                                                        
#5 1.347 (1/79) Installing m4 (1.4.18-r2)                                                                                                                                                                          
#5 1.370 (2/79) Installing libbz2 (1.0.8-r1)
#5 1.391 (3/79) Installing perl (5.32.1-r0)
#5 2.026 (4/79) Installing autoconf (2.71-r0)
#5 2.073 (5/79) Installing dpkg (1.20.9-r0)
#5 2.111 (6/79) Installing pkgconf (1.7.4-r0)
#5 2.135 (7/79) Installing dpkg-dev (1.20.9-r0)
#5 2.171 (8/79) Installing libmagic (5.40-r1)
#5 2.243 (9/79) Installing file (5.40-r1)
#5 2.259 (10/79) Installing libgcc (10.3.1_git20210424-r2)
#5 2.282 (11/79) Installing libstdc++ (10.3.1_git20210424-r2)
#5 2.340 (12/79) Installing binutils (2.35.2-r2)
#5 2.464 (13/79) Installing libgomp (10.3.1_git20210424-r2)
#5 2.493 (14/79) Installing libatomic (10.3.1_git20210424-r2)
#5 2.514 (15/79) Installing libgphobos (10.3.1_git20210424-r2)
#5 2.619 (16/79) Installing gmp (6.2.1-r0)                                                                                                                                                                         
#5 2.650 (17/79) Installing isl22 (0.22-r0)
#5 2.717 (18/79) Installing mpfr4 (4.1.0-r0)
#5 2.823 (19/79) Installing mpc1 (1.2.1-r0)
#5 2.849 (20/79) Installing gcc (10.3.1_git20210424-r2)
#5 4.096 (21/79) Installing musl-dev (1.2.2-r3)
#5 4.241 (22/79) Installing libc-dev (0.7.2-r3)
#5 4.257 (23/79) Installing g++ (10.3.1_git20210424-r2)
#5 5.028 (24/79) Installing libxau (1.0.9-r0)
#5 5.062 (25/79) Installing libmd (1.0.3-r0)
#5 5.092 (26/79) Installing libbsd (0.11.3-r0)
#5 5.117 (27/79) Installing libxdmcp (1.1.3-r0)
#5 5.142 (28/79) Installing libxcb (1.14-r2)
#5 5.203 (29/79) Installing libx11 (1.7.2-r0)
#5 5.268 (30/79) Installing libxext (1.3.4-r0)
#5 5.295 (31/79) Installing expat (2.4.1-r0)
#5 5.322 (32/79) Installing libpng (1.6.37-r1)
#5 5.353 (33/79) Installing freetype (2.10.4-r1)
#5 5.403 (34/79) Installing libuuid (2.37-r0)
#5 5.422 (35/79) Installing fontconfig (2.13.1-r4)
#5 5.469 (36/79) Installing lcms2 (2.12-r1)
#5 5.494 (37/79) Installing libltdl (2.4.6-r7)
#5 5.523 (38/79) Installing imagemagick-libs (7.0.11.13-r0)
#5 5.600 (39/79) Installing libxrender (0.9.10-r3)
#5 5.617 (40/79) Installing pixman (0.40.0-r2)
#5 5.668 (41/79) Installing cairo (1.16.0-r3)
#5 5.723 (42/79) Installing libffi (3.3-r2)
#5 5.741 (43/79) Installing libintl (0.21-r0)
#5 5.762 (44/79) Installing libblkid (2.37-r0)
#5 5.796 (45/79) Installing libmount (2.37-r0)
#5 5.829 (46/79) Installing pcre (8.44-r0)
#5 5.869 (47/79) Installing glib (2.68.3-r0)
#5 5.953 (48/79) Installing dbus-libs (1.12.20-r2)
#5 5.981 (49/79) Installing avahi-libs (0.8-r5)
#5 6.006 (50/79) Installing nettle (3.7.2-r0)
#5 6.055 (51/79) Installing p11-kit (0.23.22-r0)
#5 6.087 (52/79) Installing libtasn1 (4.17.0-r0)
#5 6.111 (53/79) Installing libunistring (0.9.10-r1) 
#5 6.155 (54/79) Installing gnutls (3.7.1-r0)
#5 6.212 (55/79) Installing cups-libs (2.3.3-r2)
#5 6.255 (56/79) Installing jbig2dec (0.19-r0)
#5 6.284 (57/79) Installing libjpeg-turbo (2.1.0-r0) 
#5 6.339 (58/79) Installing libwebp (1.2.0-r2)
#5 6.381 (59/79) Installing zstd-libs (1.4.9-r1)
#5 6.424 (60/79) Installing tiff (4.2.0-r1)
#5 6.460 (61/79) Installing ghostscript (9.54.0-r0)
#5 7.184 (62/79) Installing aom-libs (1.0.0-r3)
#5 7.266 (63/79) Installing libde265 (1.0.8-r1)
#5 7.313 (64/79) Installing x265-libs (3.4-r0)
#5 7.377 (65/79) Installing libheif (1.12.0-r0)
#5 7.412 (66/79) Installing cairo-gobject (1.16.0-r3)
#5 7.436 (67/79) Installing shared-mime-info (2.1-r0)
#5 7.495 (68/79) Installing gdk-pixbuf (2.42.6-r0)
#5 7.523 (69/79) Installing libxft (2.3.3-r0)
#5 7.546 (70/79) Installing fribidi (1.0.10-r0)
#5 7.570 (71/79) Installing graphite2 (1.3.14-r0)
#5 7.595 (72/79) Installing harfbuzz (2.8.1-r0)                                                                                                                                                                    
#5 7.658 (73/79) Installing pango (1.48.5-r0)                                                                                                                                                                      
#5 7.699 (74/79) Installing librsvg (2.50.4-r1)
#5 7.855 (75/79) Installing imagemagick (7.0.11.13-r0)
#5 7.935 (76/79) Installing imagemagick-c++ (7.0.11.13-r0)
#5 7.964 (77/79) Installing imagemagick-dev (7.0.11.13-r0)
#5 8.006 (78/79) Installing make (4.3-r0)
#5 8.037 (79/79) Installing re2c (2.1.1-r0)
#5 8.096 Executing busybox-1.33.1-r3.trigger
#5 8.101 Executing fontconfig-2.13.1-r4.trigger
#5 10.11 Executing shared-mime-info-2.1-r0.trigger
#5 11.86 Executing gdk-pixbuf-2.42.6-r0.trigger
#5 11.88 OK: 360 MiB in 111 packages
#5 11.91 + pecl install imagick-3.5.1
#5 14.67 downloading imagick-3.5.1.tgz ...
#5 14.67 Starting to download imagick-3.5.1.tgz (301,411 bytes)
#5 14.78 .............................................................done: 301,411 bytes
#5 16.46 33 source files, building
#5 16.46 running: phpize
#5 16.47 Configuring for:
#5 16.47 PHP Api Version:         20200930
#5 16.47 Zend Module Api No:      20200930
#5 16.47 Zend Extension Api No:   420200930
#5 16.79 configure.ac:18: warning: $as_echo is obsolete; use AS_ECHO(["message"]) instead
#5 16.79 build/php.m4:2072: PHP_CONFIG_NICE is expanded from...
#5 16.79 configure.ac:18: the top level
#5 16.79 configure.ac:161: warning: The macro `AC_LANG_C' is obsolete.
#5 16.79 configure.ac:161: You should run autoupdate.
#5 16.79 ./lib/autoconf/c.m4:72: AC_LANG_C is expanded from...
#5 16.79 build/libtool.m4:2728: _LT_AC_LANG_C_CONFIG is expanded from...
#5 16.79 build/libtool.m4:2727: AC_LIBTOOL_LANG_C_CONFIG is expanded from...
#5 16.79 build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from...
#5 16.79 build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from...
#5 16.79 build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from...
#5 16.79 configure.ac:161: the top level
#5 16.79 configure.ac:161: warning: The macro `AC_LANG_C' is obsolete.
#5 16.79 configure.ac:161: You should run autoupdate.
#5 16.79 ./lib/autoconf/c.m4:72: AC_LANG_C is expanded from...
#5 16.79 lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
#5 16.79 lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
#5 16.79 ./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
#5 16.79 ./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
#5 16.79 build/libtool.m4:561: _LT_AC_LOCK is expanded from...
#5 16.79 build/libtool.m4:1185: AC_LIBTOOL_SYS_HARD_LINK_LOCKS is expanded from...
#5 16.79 build/libtool.m4:2728: _LT_AC_LANG_C_CONFIG is expanded from...
#5 16.79 build/libtool.m4:2727: AC_LIBTOOL_LANG_C_CONFIG is expanded from...
#5 16.79 build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from...
#5 16.79 build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from...
#5 16.79 build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from...
#5 16.79 configure.ac:161: the top level
#5 16.79 configure.ac:161: warning: The macro `AC_TRY_LINK' is obsolete.
#5 16.79 configure.ac:161: You should run autoupdate.
#5 16.80 ./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from...
#5 16.80 lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
#5 16.80 lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
#5 16.80 ./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
#5 16.80 ./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
#5 16.80 build/libtool.m4:561: _LT_AC_LOCK is expanded from...
#5 16.80 build/libtool.m4:1185: AC_LIBTOOL_SYS_HARD_LINK_LOCKS is expanded from...
#5 16.80 build/libtool.m4:2728: _LT_AC_LANG_C_CONFIG is expanded from...
#5 16.80 build/libtool.m4:2727: AC_LIBTOOL_LANG_C_CONFIG is expanded from...
#5 16.80 build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from...
#5 16.80 build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from...
#5 16.80 build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from...
#5 16.80 configure.ac:161: the top level
#5 16.80 configure.ac:161: warning: back quotes and double quotes must not be escaped in: $as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe
#5 16.80 build/libtool.m4:1185: AC_LIBTOOL_SYS_HARD_LINK_LOCKS is expanded from...
#5 16.80 build/libtool.m4:2728: _LT_AC_LANG_C_CONFIG is expanded from...
#5 16.80 build/libtool.m4:2727: AC_LIBTOOL_LANG_C_CONFIG is expanded from...
#5 16.80 build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from...
#5 16.80 build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from...
#5 16.80 build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from...
#5 16.80 configure.ac:161: the top level
#5 16.80 configure.ac:161: warning: back quotes and double quotes must not be escaped in: $as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe
#5 16.80 build/libtool.m4:1185: AC_LIBTOOL_SYS_HARD_LINK_LOCKS is expanded from...
#5 16.80 build/libtool.m4:2728: _LT_AC_LANG_C_CONFIG is expanded from...
#5 16.80 build/libtool.m4:2727: AC_LIBTOOL_LANG_C_CONFIG is expanded from...
#5 16.80 build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from...
#5 16.80 build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from...
#5 16.80 build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from...
#5 16.80 configure.ac:161: the top level
#5 16.80 configure.ac:161: warning: back quotes and double quotes must not be escaped in: $as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist
#5 16.80 build/libtool.m4:1918: _LT_AC_TAGCONFIG is expanded from...
#5 16.80 build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from...
#5 16.80 build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from...
#5 16.80 build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from...
#5 16.80 configure.ac:161: the top level
#5 16.80 configure.ac:161: warning: back quotes and double quotes must not be escaped in: $as_me: WARNING: output file \`$ofile' does not exist
#5 16.80 build/libtool.m4:1918: _LT_AC_TAGCONFIG is expanded from...
#5 16.80 build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from...
#5 16.80 build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from...
#5 16.80 build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from...
#5 16.80 configure.ac:161: the top level
#5 16.80 configure.ac:161: warning: back quotes and double quotes must not be escaped in: $as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script
#5 16.80 build/libtool.m4:1918: _LT_AC_TAGCONFIG is expanded from...
#5 16.80 build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from...
#5 16.80 build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from...
#5 16.80 build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from...
#5 16.80 configure.ac:161: the top level
#5 16.80 configure.ac:161: warning: back quotes and double quotes must not be escaped in: $as_me: WARNING: output file \`$ofile' does not look like a libtool script
#5 16.80 build/libtool.m4:1918: _LT_AC_TAGCONFIG is expanded from...
#5 16.80 build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from...
#5 16.80 build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from...
#5 16.80 build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from...
#5 16.80 configure.ac:161: the top level
#5 16.80 configure.ac:161: warning: back quotes and double quotes must not be escaped in: $as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'
#5 16.80 build/libtool.m4:1918: _LT_AC_TAGCONFIG is expanded from...
#5 16.80 build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from...                                                                                                                                                 
#5 16.80 build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from...
#5 16.80 build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from...
#5 16.80 configure.ac:161: the top level
#5 16.80 configure.ac:161: warning: back quotes and double quotes must not be escaped in: $as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'
#5 16.80 build/libtool.m4:1918: _LT_AC_TAGCONFIG is expanded from...
#5 16.80 build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from...
#5 16.80 build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from...
#5 16.80 build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from...
#5 16.80 configure.ac:161: the top level
#5 16.80 configure.ac:161: warning: back quotes and double quotes must not be escaped in: tag name \"$tagname\" already exists
#5 16.80 build/libtool.m4:1918: _LT_AC_TAGCONFIG is expanded from...
#5 16.80 build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from...
#5 16.80 build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from...
#5 16.80 build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from...
#5 16.80 configure.ac:161: the top level
#5 16.80 configure.ac:161: warning: The macro `AC_LANG_CPLUSPLUS' is obsolete.
#5 16.80 configure.ac:161: You should run autoupdate.
#5 16.80 ./lib/autoconf/c.m4:262: AC_LANG_CPLUSPLUS is expanded from...
#5 16.80 build/libtool.m4:2810: _LT_AC_LANG_CXX_CONFIG is expanded from...
#5 16.80 build/libtool.m4:2809: AC_LIBTOOL_LANG_CXX_CONFIG is expanded from...
#5 16.80 build/libtool.m4:1918: _LT_AC_TAGCONFIG is expanded from...
#5 16.80 build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from...
#5 16.80 build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from...
#5 16.80 build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from...
#5 16.80 configure.ac:161: the top level
#5 16.80 configure.ac:161: warning: back quotes and double quotes must not be escaped in: $as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe
#5 16.80 build/libtool.m4:1185: AC_LIBTOOL_SYS_HARD_LINK_LOCKS is expanded from...
#5 16.80 build/libtool.m4:2810: _LT_AC_LANG_CXX_CONFIG is expanded from...
#5 16.80 build/libtool.m4:2809: AC_LIBTOOL_LANG_CXX_CONFIG is expanded from...
#5 16.80 build/libtool.m4:1918: _LT_AC_TAGCONFIG is expanded from...
#5 16.80 build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from...
#5 16.80 build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from...
#5 16.80 build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from...
#5 16.80 configure.ac:161: the top level
#5 16.80 configure.ac:161: warning: back quotes and double quotes must not be escaped in: $as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe
#5 16.80 build/libtool.m4:1185: AC_LIBTOOL_SYS_HARD_LINK_LOCKS is expanded from...
#5 16.80 build/libtool.m4:2810: _LT_AC_LANG_CXX_CONFIG is expanded from...
#5 16.80 build/libtool.m4:2809: AC_LIBTOOL_LANG_CXX_CONFIG is expanded from...
#5 16.80 build/libtool.m4:1918: _LT_AC_TAGCONFIG is expanded from...
#5 16.80 build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from...
#5 16.80 build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from...
#5 16.80 build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from...
#5 16.80 configure.ac:161: the top level
#5 17.27 Please provide the prefix of ImageMagick installation [autodetect] : building in /tmp/pear/temp/pear-build-defaultuserFJdAoC/imagick-3.5.1
#5 17.27 running: /tmp/pear/temp/imagick/configure --with-php-config=/usr/local/bin/php-config --with-imagick
#5 17.36 checking for grep that handles long lines and -e... /bin/grep
#5 17.36 checking for egrep... /bin/grep -E
#5 17.36 checking for a sed that does not truncate output... /bin/sed
#5 17.37 checking for pkg-config... /usr/bin/pkg-config
#5 17.37 checking pkg-config is at least version 0.9.0... yes
#5 17.37 checking for cc... cc
#5 17.44 checking whether the C compiler works... yes
#5 17.44 checking for C compiler default output file name... a.out
#5 17.48 checking for suffix of executables...
#5 17.51 checking whether we are cross compiling... no                                                                                                                                                             
#5 17.53 checking for suffix of object files... o                                                                                                                                                                  
#5 17.55 checking whether the compiler supports GNU C... yes                                                                                                                                                       
#5 17.58 checking whether cc accepts -g... yes
#5 17.64 checking for cc option to enable C11 features... none needed
#5 17.66 checking how to run the C preprocessor... cc -E
#5 17.70 checking for icc... no
#5 17.71 checking for suncc... no
#5 17.71 checking for system library directory... lib
#5 17.72 checking if compiler supports -R... no
#5 17.75 checking if compiler supports -Wl,-rpath,... yes
#5 17.80 checking build system type... x86_64-pc-linux-musl
#5 17.80 checking host system type... x86_64-pc-linux-musl
#5 17.80 checking target system type... x86_64-pc-linux-musl
#5 17.88 checking for PHP prefix... /usr/local
#5 17.88 checking for PHP includes... -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/
date/lib
#5 17.88 checking for PHP extension directory... /usr/local/lib/php/extensions/no-debug-non-zts-20200930
#5 17.88 checking for PHP installed headers prefix... /usr/local/include/php
#5 17.89 checking if debug is enabled... no
#5 17.91 checking if zts is enabled... no
#5 17.91 checking for gawk... no
#5 17.91 checking for nawk... no
#5 17.91 checking for awk... awk
#5 17.91 checking if awk is broken... no
#5 17.91 checking whether to enable the imagick extension... yes, shared
#5 17.91 checking for pkg-config... /usr/bin/pkg-config
#5 17.91 checking ImageMagick MagickWand API configuration program... checking Testing /usr/local/bin/MagickWand-config... Doesn't exist
#5 17.91 checking Testing /usr/bin/MagickWand-config... It exists
#5 17.91 found in /usr/bin/MagickWand-config
#5 17.91 checking if ImageMagick version is at least 6.2.4... found version 7.0.11-13 Q16 HDRI
#5 17.92 checking for MagickWand.h or magick-wand.h header... user location /usr/include/ImageMagick-7/MagickWand/MagickWand.h
#5 17.92 checking PHP version is at least 5.3.2... yes. found 8.0.10
#5 17.92 libs
#5 17.92 -lMagickWand-7.Q16HDRI -lMagickCore-7.Q16HDRI
#5 17.92 
#5 17.92 
#5 17.99 checking for MagickGetVersion... yes
#5 18.01 checking omp_pause_resource_all usability... yes
#5 18.05 checking Which flavour of OpenMP to link... checking for omp_pause_resource_all... no
#5 18.08 checking for __omp_pause_resource_all... no 
#5 18.12 checking for omp_pause_resource_all in -lgomp... yes
#5 18.17 GCC flavoured OpenMP
#5 18.18 checking for a sed that does not truncate output... /bin/sed
#5 18.20 checking for ld used by cc... /usr/x86_64-alpine-linux-musl/bin/ld
#5 18.20 checking if the linker (/usr/x86_64-alpine-linux-musl/bin/ld) is GNU ld... yes
#5 18.20 checking for /usr/x86_64-alpine-linux-musl/bin/ld option to reload object files... -r
#5 18.20 checking for BSD-compatible nm... /usr/bin/nm -B
#5 18.20 checking whether ln -s works... yes
#5 18.20 checking how to recognize dependent libraries... pass_all
#5 18.24 checking for stdio.h... yes
#5 18.26 checking for stdlib.h... yes
#5 18.28 checking for string.h... yes
#5 18.30 checking for inttypes.h... yes
#5 18.32 checking for stdint.h... yes
#5 18.34 checking for strings.h... yes
#5 18.36 checking for sys/stat.h... yes
#5 18.39 checking for sys/types.h... yes
#5 18.41 checking for unistd.h... yes
#5 18.43 checking for dlfcn.h... yes
#5 18.43 checking the maximum length of command line arguments... 98304
#5 18.49 checking command to parse /usr/bin/nm -B output from cc object... ok
#5 18.49 checking for objdir... .libs
#5 18.49 checking for ar... ar
#5 18.49 checking for ranlib... ranlib
#5 18.49 checking for strip... strip
#5 18.59 checking if cc supports -fno-rtti -fno-exceptions... no
#5 18.59 checking for cc option to produce PIC... -fPIC
#5 18.61 checking if cc PIC flag -fPIC works... yes
#5 18.65 checking if cc static flag -static works... yes
#5 18.68 checking if cc supports -c -o file.o... yes 
#5 18.70 checking whether the cc linker (/usr/x86_64-alpine-linux-musl/bin/ld -m elf_x86_64) supports shared libraries... yes
#5 18.75 checking whether -lc should be explicitly linked in... no
#5 18.76 checking dynamic linker characteristics... GNU/Linux ld.so
#5 18.76 checking how to hardcode library paths into programs... immediate
#5 18.76 checking whether stripping libraries is possible... yes
#5 18.76 checking if libtool supports shared libraries... yes
#5 18.76 checking whether to build shared libraries... yes
#5 18.76 checking whether to build static libraries... no
#5 18.82 
#5 18.82 creating libtool
#5 18.85 appending configuration tag "CXX" to libtool
#5 18.90 configure: patching config.h.in
#5 18.91 configure: creating ./config.status
#5 18.94 config.status: creating config.h
#5 19.03 running: make
#5 19.03 /bin/sh /tmp/pear/temp/pear-build-defaultuserFJdAoC/imagick-3.5.1/libtool --mode=compile cc -I. -I/tmp/pear/temp/imagick -I/tmp/pear/temp/pear-build-defaultuserFJdAoC/imagick-3.5.1/include -I/tmp/pear/t
emp/pear-build-defaultuserFJdAoC/imagick-3.5.1/main -I/tmp/pear/temp/imagick -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/includ
e/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/include/ImageMagick-7  -DHAVE_CONFIG_H  -g -O2   -I/usr/include/ImageMagick-7 -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16  -c /tmp/pear/temp/im
agick/imagick_file.c -o imagick_file.lo
#5 19.03 make: /bin/sh: Operation not permitted
#5 19.03 make: *** [Makefile:209: imagick_file.lo] Error 127
#5 19.05 ERROR: `make' failed
------
error: failed to solve: executor failed running [/bin/sh -c set -ex     && apk update     && apk add --no-cache --update $PHPIZE_DEPS imagemagick libgomp imagemagick-dev     && pecl install imagick-3.5.1     && 
docker-php-ext-enable imagick]: buildkit-runc did not terminate successfully

@Hello71
Copy link

Hello71 commented Aug 27, 2021

@mmachatschek thank you for providing the information. you're not using any sort of nested Docker/dind? it also seems that you've enabled buildkit somewhere. can you try overriding it with DOCKER_BUILDKIT=0 docker build -f Dockerfile .?

@mmachatschek
Copy link

@Hello71 Executing docker build without buildkit didn't work for me so I reinstalled docker.
After reinstalling I was able to execute docker build issues.

Before reinstalling I turned of the experimental mode with the same result.

Now I installed docker with rootless mode and it started working with the 3.14 alpine release. The difference in the docker info output is that the apparmour security option is gone (I don't know if apparmour is not installed with rootless mode).

docker info output:
Client:                                                                                                                                                                                                            
 Context:    default                                                                                                                                                                                               
 Debug Mode: false
 Plugins:   
  app: Docker App (Docker Inc., v0.9.1-beta3)
  buildx: Build with BuildKit (Docker Inc., v0.6.1-docker)
  scan: Docker Scan (Docker Inc., v0.8.0)
                                                    
Server:                
 Containers: 0              
  Running: 0     
  Paused: 0               
  Stopped: 0        
 Images: 4        
 Server Version: 20.10.8
 Storage Driver: overlay2
  Backing Filesystem: extfs                       
  Supports d_type: true                                                                                  
  Native Overlay Diff: false
  userxattr: true                                                                                        
 Logging Driver: json-file
 Cgroup Driver: none     
 Cgroup Version: 1                                                                                       
 Plugins:                       
  Volume: local       
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
 Swarm: inactive   
 Runtimes: io.containerd.runc.v2 io.containerd.runtime.v1.linux runc
 Default Runtime: runc            
 Init Binary: docker-init            
 containerd version: e25210fe30a0a703442421b0f60afac609f950a3
 runc version: v1.0.1-0-g4144b63
 init version: de40ad0
 Security Options:     
  seccomp           
   Profile: default                                                                                      
  rootless                                        
 Kernel Version: 5.11.0-27-generic
 Operating System: Ubuntu 20.04.3 LTS 
 OSType: linux
 Architecture: x86_64
 CPUs: 6             
 Total Memory: 31.25GiB
 Name: pc        
 ID: YQBO:LPZS:SSB4:7KAD:4CKU:AYZC:DCZU:LAAT:MQQ5:LFSH:UUWP:D6H5
 Docker Root Dir: /home/owner/.local/share/docker                                                                                                                                                                 
 Debug Mode: false                                                                                                                                                                                                 
 Registry: https://index.docker.io/v1/                                                                                                                                                                             
 Labels:
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false

@ncopa
Copy link
Contributor

ncopa commented Aug 27, 2021

I wonder if it would make more sense to ask docker community for help fixing this. The bug is in docker and libseccomp and is triggered by any use of faccess2(2) regardless of distro.

I suggest that we close this issue unless there are any specific ideas what we can do to fix it on the Alpine side.

@ncopa ncopa closed this as completed Aug 27, 2021
@AndrewSav
Copy link

AndrewSav commented Jan 22, 2022

Just on the off chance, someone has a similar situation like me: I also experienced this issue, when Docker (on linux) was latest version, and libseccomp and scmp_sys_resolver faccessat2 returned 439. In my case the issue was that I had a rogue very old runc in /usr/local/bin that was used instead of the correct one in /usr/bin. Once I deleted it, it started working.

On this note, the instructions on that wiki seem inaccurate, it's not "at least one of the following". runc had to be the correct version to work. Even with the up-to-date docker it failed with an older runc.

@jikunbupt
Copy link

jikunbupt commented May 27, 2022

I use Alpine with version 3.15.4,also met this problem。But when I use docker desktop which docker version is 20.10.14,this problem is not reproduced。so,you can try this method。

@thediveo
Copy link

thediveo commented Jun 8, 2023

Okay folks, Docker 24.0.2, runc 1.1.7, libseccomp 2.5.4 ... so this should pass, right?

Alpine images: 3.17, 3.18

Except, it doesn't: doas throws up with "doas: Operation not permitted". And yes, the syscall is there. How to deal with this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests