Skip to content

feat: add citrea and alphabetical ordering - #173

Merged
DenhamPreen merged 6 commits into
mainfrom
dp/citrea-devnet-hypersync
Sep 4, 2024
Merged

DenhamPreen merged 6 commits into
mainfrom
dp/citrea-devnet-hypersync

Conversation

@DenhamPreen

Copy link
Copy Markdown
Contributor

No description provided.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I did the ordering manually as both supermaven & chatgpt where changing the logic. Was tedious 😅

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Bummer! Thanks, I like the alphabetical ordering. Maybe it's best to add a quick test to ensure people are adding these values in alphabetical order 😅

ArbitrumNova = 42170,

#[subenum(HypersyncNetwork, NetworkWithExplorer, GraphNetwork)]
Goerli = 5,

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Goerli didn't make sense to be second, I get having eth 1st as its popular but I don't think we should be opinionated on network popularity. Sensible to be alphabetical to me

Comment on lines +114 to +116
#[subenum(HypersyncNetwork)]
// blocksout: https://explorer.devnet.citrea.xyz/
CitreaDevnet = 62298,

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This is the only addition. It would be nice to have in a release for my workshop tomorrow but I can also work around it for now.

Comment on lines +194 to +196
// Still syncing
// #[subenum(HypersyncNetwork)]
// KakarotSepolia = 1802203764,

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This is not synced so commented out

| Network::ArbitrumSepolia => 0,
| Network::ArbitrumOne
| Network::ArbitrumSepolia
| Network::CitreaDevnet

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Citrea is reorg resistant 👍

@@ -269,81 +346,81 @@ impl Network {
pub fn get_confirmed_block_threshold(&self) -> i32 {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

this ordering is just for readability

@DenhamPreen

Copy link
Copy Markdown
Contributor Author

Looking at the test now

@JonoPrest

Copy link
Copy Markdown
Collaborator

Can we add this to enforce people adding in alphabetical order in future? #174

@JonoPrest JonoPrest left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks Den, sorry about the issues with the help doc 🙏🏼

@JonoPrest

Copy link
Copy Markdown
Collaborator

Should get the test passing: #175

@DenhamPreen
DenhamPreen enabled auto-merge (squash) September 4, 2024 14:32
@DenhamPreen
DenhamPreen merged commit 6ce44ff into main Sep 4, 2024
@DenhamPreen
DenhamPreen deleted the dp/citrea-devnet-hypersync branch September 4, 2024 14:38
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