-
Notifications
You must be signed in to change notification settings - Fork 8
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
base: main
Are you sure you want to change the base?
L2 bots unification #558
Conversation
const PROD = "prod"; | ||
|
||
|
||
function parseCommandLineArgs() { |
There was a problem hiding this comment.
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 () => { |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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})`, |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 @@ | |||
[ |
There was a problem hiding this comment.
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.
l2-bridges/common/utils/constants.ts
Outdated
|
||
export const ETH_DECIMALS = new BigNumber(10).pow(18) | ||
export const MAINNET_CHAIN_ID = 1 | ||
export const DRPC_URL = 'https://eth.drpc.org/' |
There was a problem hiding this comment.
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
It is not needed because proxies admin and implementation changes are monitored by watching events
Gathering l2 bots under the same directory eliminating excessive code duplication.