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

L2 bots unification #558

Draft
wants to merge 23 commits into
base: main
Choose a base branch
from
Draft

L2 bots unification #558

wants to merge 23 commits into from

Conversation

arwer13
Copy link
Contributor

@arwer13 arwer13 commented Jun 6, 2024

Gathering l2 bots under the same directory eliminating excessive code duplication.

@arwer13 arwer13 changed the title POC of l2 bots unification on Scroll example L2 bots unification Jun 6, 2024
const PROD = "prod";


function parseCommandLineArgs() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we don't use it at all.
Just remove it

return { l2NetworkName, runMode };
}

const main = async () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd prefer to call file just main.ts

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • need to add read .env capability
  • we need to opent http server for grabbing prom metrics


const version = {
desc: `${commitHashShort}${commitHashSuffux} (${commitMsgShort})`,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In local infra we don't need it anymore


FROM base as builder

ARG L2_NETWORK_NAME
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pass env though linux .env

@@ -0,0 +1,34 @@
[
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

speaking about abi.

Move it please into root 'brief' folder like in steth. Because we have to have smt some and also we have to add here grpc capabilities.


export const ETH_DECIMALS = new BigNumber(10).pow(18)
export const MAINNET_CHAIN_ID = 1
export const DRPC_URL = 'https://eth.drpc.org/'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

must be read from .env variables

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

Successfully merging this pull request may close these issues.

2 participants