lifinance / widget

LI.FI Widget for cross-chain bridging and swapping. It will drive your multi-chain strategy and attract new users from everywhere.
https://li.fi/widget
Apache License 2.0
117 stars 76 forks source link

feat: add explorer link to the support card #292

Closed DNR500 closed 1 month ago

DNR500 commented 1 month ago

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

github-actions[bot] commented 1 month ago

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

github-actions[bot] commented 1 month ago

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

github-actions[bot] commented 1 month ago

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

github-actions[bot] commented 1 month ago

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