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: add explorer link to the support card #292

Merged
merged 4 commits into from
Sep 3, 2024

Conversation

DNR500
Copy link
Contributor

@DNR500 DNR500 commented Sep 2, 2024

Jira: LF-9382

Screenshot 2024-09-03 at 12 16 19

This changes the name of the support id card to Transfer Id and adds a link to open a new tab from the card that appears at the end of a transactions on the transaction details page.

It defaults to using LiFi scan - https://scan.li.fi and will open the page

https://scan.li.fi/tx/0x48018bad1907c531fabf0efa509eebf25ee4f0f37c916732648b912c53a7a223

The link is configurable via widget config, for example the addition of the following

const config = {
  ...
  explorerUrl: 'https://jumper.exchange/scan',
  ...
}

Will open the page

https://jumper.exchange/scan/tx/0x48018bad1907c531fabf0efa509eebf25ee4f0f37c916732648b912c53a7a223/

In the config only the base url is needed /tx/{hash} is added internally by the widget

@DNR500 DNR500 added the testing label Sep 2, 2024
Copy link

github-actions bot commented Sep 2, 2024

Hey! This is your new endopint: https://47cb09bc.widget-configurab.pages.dev

Copy link

github-actions bot commented Sep 3, 2024

Hey! This is your new endopint: https://61ce8435.widget-configurab.pages.dev

Copy link

github-actions bot commented Sep 3, 2024

Hey! This is your new endopint: https://40e99b40.widget-configurab.pages.dev

Copy link

github-actions bot commented Sep 3, 2024

Hey! This is your new endopint: https://4304d2a0.widget-configurab.pages.dev

@chybisov chybisov merged commit 0792c15 into main Sep 3, 2024
1 check passed
@chybisov chybisov deleted the configurable-transaction-link branch September 3, 2024 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants