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

Update avascan link #1566

Merged
merged 2 commits into from
Nov 15, 2023
Merged

Update avascan link #1566

merged 2 commits into from
Nov 15, 2023

Conversation

bigboydiamonds
Copy link
Collaborator

@bigboydiamonds bigboydiamonds commented Nov 13, 2023

Summary by CodeRabbit

  • Refactor
    • Updated the blockchain explorer URLs for the Avalanche network across different packages to enhance user navigation and data access.

8aad429059da6d73ac47da1d4b3299061e02ab85: synapse-interface preview link
e2e6bc91d1bb2b117a843d9dcb657eabe11b8ae0: synapse-interface preview link
e2e6bc91d1bb2b117a843d9dcb657eabe11b8ae0: explorer-ui preview link

Copy link
Contributor

coderabbitai bot commented Nov 13, 2023

Walkthrough

The recent updates involve a uniform change across multiple files, where the URL for the Avalanche blockchain explorer has been modified. The previous URL 'https://avascan.info/' has been replaced with 'https://avascan.info/blockchain/c/', refining the link to direct users to a more specific subsection of the Avascan website.

Changes

File Path Change Summary
.../constants/chains/master.tsx
.../constants/networks.ts (2 occurrences)
Updated the explorerUrl for the AVALANCHE object and CHAIN_EXPLORER_URLS for ChainId.AVALANCHE from 'https://avascan.info/' to 'https://avascan.info/blockchain/c/'.

🐇 In the code's wintry weave, a link takes its leave, 🌨️

To a new home it hops, where the blockchain never stops. 🏔️✨


Tips

Chat with CodeRabbit Bot (@coderabbitai)

  • If you reply to a review comment from CodeRabbit, the bot will automatically respond.
  • To engage with CodeRabbit bot directly around the specific lines of code in the PR, mention @coderabbitai in your review comment
  • Note: Review comments are made on code diffs or files, not on the PR overview.
  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger a review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai help to get help.

Note: For conversation with the bot, please use the review comments on code diffs or files.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • The JSON schema for the configuration file is available here.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/coderabbit-overrides.v2.json

Copy link

codecov bot commented Nov 13, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (102a36a) 51.26346% compared to head (fe1898f) 51.26346%.
Report is 1 commits behind head on master.

Additional details and impacted files
@@              Coverage Diff              @@
##              master       #1566   +/-   ##
=============================================
  Coverage   51.26346%   51.26346%           
=============================================
  Files            362         362           
  Lines          24694       24694           
  Branches         283         283           
=============================================
  Hits           12659       12659           
  Misses         10807       10807           
  Partials        1228        1228           
Flag Coverage Δ
packages 91.00610% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Review Status

Actionable comments generated: 0

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 4dbe5a8 and e1659e9.
Files selected for processing (1)
  • packages/synapse-interface/constants/chains/master.tsx (1 hunks)
Additional comments: 1
packages/synapse-interface/constants/chains/master.tsx (1)
  • 119-125: The URL change from 'https://avascan.info/' to 'https://avascan.info/blockchain/c/' is specific and seems to point directly to the Avalanche C-Chain explorer. This is a good change if the intention is to direct users to the C-Chain specifically, as Avalanche has multiple chains (X, P, and C). However, ensure that this change is communicated to users if they are accustomed to navigating from the general Avascan homepage to the specific chain explorer.

Copy link

cloudflare-workers-and-pages bot commented Nov 13, 2023

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: fe1898f
Status: ✅  Deploy successful!
Preview URL: https://242d1fe9.sanguine.pages.dev
Branch Preview URL: https://fe-avascan.sanguine.pages.dev

View logs

Copy link
Collaborator

@abtestingalpha abtestingalpha left a comment

Choose a reason for hiding this comment

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

Will need to update explorer link as well

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Review Status

Actionable comments generated: 0

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between e1659e9 and fe1898f.
Files selected for processing (1)
  • packages/explorer-ui/constants/networks.ts (1 hunks)
Additional comments: 1
packages/explorer-ui/constants/networks.ts (1)
  • 296-296: The URL for the Avalanche blockchain explorer has been updated to point to the C-Chain explorer. This change should be verified to ensure that it correctly reflects the intended destination and that there are no other places in the codebase where the old URL might still be used.

Additional Considerations

  • It's important to check if there are any hardcoded URLs in the codebase that might also need updating.
  • Ensure that the updated URL is reflected in all user-facing components where the explorer link might be displayed.
  • Verify that the change does not affect any backend services that might be using the old URL for data retrieval or other purposes.
  • It might be beneficial to search for the old URL string in the entire codebase to ensure that no instances have been missed.
  • If the URL structure is subject to change again in the future, consider implementing a more centralized or configurable approach to manage such URLs to simplify future updates.

@bigboydiamonds
Copy link
Collaborator Author

Will need to update explorer link as well

Updated explorer link fe1898f

@bigboydiamonds bigboydiamonds merged commit 985cefb into master Nov 15, 2023
43 checks passed
@bigboydiamonds bigboydiamonds deleted the fe/avascan branch November 15, 2023 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants