-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat: ecosystem configuration #61
Conversation
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.
Beautiful
@@ -23,6 +23,7 @@ const baseSchema = z.object({ | |||
BRIDGE_HUB_ADDRESS: addressSchema, | |||
SHARED_BRIDGE_ADDRESS: addressSchema, | |||
STATE_MANAGER_ADDRESSES: addressArraySchema, | |||
ENVIRONMENT: z.enum(["mainnet", "testnet", "local"]).default("mainnet"), |
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.
Might want to indicate that mainnet
is the default somewhere in the docs? (.env.example, README, etc)
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.
will do it in another PR where I attack all documentation and read me detailed 🫡
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.
Lets get rid of any L2 related helper/config and tackle it on the following pr
apps/api/src/common/config/index.ts
Outdated
const getL2Chain = (environment: "mainnet" | "testnet" | "local") => { | ||
switch (environment) { | ||
case "mainnet": | ||
return zksync; | ||
case "testnet": | ||
return zksyncSepoliaTestnet; | ||
case "local": | ||
return zksyncLocalNode; | ||
} | ||
}; | ||
|
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.
lets remove this function, since its not what we want as we talked offline :)
🤖 Linear
Closes ZKS-211
Description
DummyPricingProvider
(jic)PricingProviderFactory
ENVIRONMENT
variable to switch between mainnet, testnet or local