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

feat: ecosystem configuration #61

Merged
merged 5 commits into from
Aug 30, 2024
Merged

feat: ecosystem configuration #61

merged 5 commits into from
Aug 30, 2024

Conversation

0xnigir1
Copy link
Collaborator

🤖 Linear

Closes ZKS-211

Description

  • Configurable price for DummyPricingProvider (jic)
  • PricingProviderFactory
  • ENVIRONMENT variable to switch between mainnet, testnet or local

@0xnigir1 0xnigir1 requested review from 0xkenj1 and 0xyaco August 29, 2024 20:21
Copy link

linear bot commented Aug 29, 2024

0xyaco
0xyaco previously approved these changes Aug 29, 2024
Copy link
Collaborator

@0xyaco 0xyaco left a 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"),
Copy link
Collaborator

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)

Copy link
Collaborator Author

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 🫡

Copy link
Collaborator

@0xkenj1 0xkenj1 left a 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

Comment on lines 80 to 90
const getL2Chain = (environment: "mainnet" | "testnet" | "local") => {
switch (environment) {
case "mainnet":
return zksync;
case "testnet":
return zksyncSepoliaTestnet;
case "local":
return zksyncLocalNode;
}
};

Copy link
Collaborator

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 :)

@0xnigir1 0xnigir1 merged commit bbdd571 into dev Aug 30, 2024
6 checks passed
@0xnigir1 0xnigir1 deleted the feat/ecosystem-configuration branch August 30, 2024 18:04
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.

3 participants