[DEPRECATED] This repository is now deprecated in favour of the new development monorepo.
Contains an executable batch submitter service which watches L1 and a local L2 node and submits batches to the
CanonicalTransactionChain
& StateCommitmentChain
based on its local information.
All configuration is done via environment variables. See all variables at .env.example; copy into a .env
file before running.
yarn
in the base directoryyarn build
yarn start
Before running, set the DEBUG
environment variable to specify the verbosity level. It must be made up of comma-separated values of patterns to match in debug logs. Here's a few common options:
debug*
- Will match all debug statements -- very verboseinfo*
- Will match all info statements -- less verbose, useful in most caseswarn*
- Will match all warnings -- recommended at a minimumerror*
- Will match all errors -- would not omit thisExamples:
export DEBUG=info*,error*,warn*
export DEBUG=info*,error*,warn*,debug*
yarn test
yarn lint
; auto-fix with yarn lint --fix
You may test a submission locally against a local Hardhat fork.
.env
field L1_NODE_WEB3_URL
to the local Hardhat url. Depending on which network you are using, update ADDRESS_MANAGER_ADDRESS
according to the Regenesis repo.L2_NODE_WEB3_URL
is correctly set and has transactions to submit.yarn build
to build your changes.yarn start
. It will automatically start submitting pending transactions from L2.