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: improve gnosis chain configuration #2640

Merged
merged 2 commits into from Oct 18, 2023

Conversation

luzzif
Copy link
Contributor

@luzzif luzzif commented Oct 17, 2023

Motivation

I just wanted to update Gnosis Chain's config in the lib as it was pretty outdated (Gnosis Chain underwent the Shapella upgrade recently and with it comes push0 support for example).

Solution

  • Rename xDai to Gnosis in chain enum
  • Remove mention of xDai in serde/strum
  • Add average blocktime for Gnosis and Chiado
  • Mark Gnosis and Chiado as supporting EIP-1559 and push0
  • Use Gnosisscan as Gnosis' block explorer instead of BlockScout

- rename xdai to gnosis in chain enum
- remove mention of xdai in serde/strum
- add average blocktime for gnosis and chiado
- mark gnosis and chiado as supporting eip 1559 and push0
- use gnosisscan as gnosis' block explorer
Comment on lines 95 to 97
#[strum(to_string = "xdai", serialize = "gnosis", serialize = "gnosis-chain")]
#[serde(alias = "xdai", alias = "gnosis", alias = "gnosis_chain")]
XDai = 100,
#[strum(to_string = "gnosis", serialize = "gnosis-chain")]
#[serde(alias = "gnosis", alias = "gnosis_chain")]
Gnosis = 100,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you keep "xdai" as an alias on both strum and serde to avoid a breaking change?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh sorry, absolutely. Addressed in ab0071b

@mattsse mattsse merged commit d253514 into gakonst:master Oct 18, 2023
18 of 19 checks passed
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.

None yet

3 participants