Skip to content

Conversation

@maximopalopoli
Copy link
Collaborator

Description

This PR updates the explorer URL printed after a proof submission. Also left a comment explaining that the default URL used is the one for mainnet, and in case the explorer's URL changes for another network, it should change here too.

Type of change

Please delete options that are not relevant.

  • New feature
  • Bug fix
  • Optimization
  • Refactor

Checklist

  • “Hotfix” to testnet, everything else to staging
  • Linked to Github Issue
  • This change depends on code or research by an external entity
    • Acknowledgements were updated to give credit
  • Unit tests added
  • This change requires new documentation.
    • Documentation has been added/updated.
  • This change is an Optimization
    • Benchmarks added/run
  • Has a known issue
  • If your PR changes the Operator compatibility (Ex: Upgrade prover versions)
    • This PR adds compatibility for operator for both versions and do not change batcher/docs/examples
    • This PR updates batcher and docs/examples to the newer version. This requires the operator are already updated to be compatible

@maximopalopoli maximopalopoli self-assigned this Jun 19, 2025
@maximopalopoli maximopalopoli marked this pull request as ready for review June 19, 2025 13:58
Copy link
Contributor

@MauroToscano MauroToscano left a comment

Choose a reason for hiding this comment

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

A follow up making the Network a reference would be nice, to avoid all this cloning. Maybe wallet can be a reference too

let base_url = match submit_args.network.clone().into() {
// Note: in case the explorer address changes for other networks, we should add an arm to this
// match with that network since the default URL used here is the mainnet one
Network::Holesky => "https://holesky.explorer.alignedlayer.com/batches/0x",
Copy link
Collaborator

Choose a reason for hiding this comment

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

There is missing to add the other networks

  • Stage
  • Mainnet
  • MainnetStage
  • Devnet

Generally we use devnet as default

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done in c5b2f65

@JuArce JuArce added this pull request to the merge queue Jun 24, 2025
Merged via the queue into staging with commit 37e8e60 Jun 24, 2025
3 checks passed
@JuArce JuArce deleted the fix/update-explorer-url-proof-submit branch June 24, 2025 18:19
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.

4 participants