Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants