Skip to content

Conversation

@adonesky1
Copy link
Contributor

@adonesky1 adonesky1 commented May 4, 2021

The goal of this PR is to complete the pattern proposed in this PR . We had begun to build utility methods in the extension repo to select the appropriate url generation method (using either custom network, chainId or networkId). Here I've continued the work of lifting these selector methods into the etherscan-link repo. Ideally the selector methods (getBlockExplorerLink, getAccountLink, getTokenTrackerLink) would have a matching function signature/api however they have slightly different required arguments.

Included work:

  • Lifts getAccountLink from extension repo
    • Lifts corresponding tests
  • Lifts tests for getBlockExplorerLink over from extension repo.
  • Creates getTokenTrackerLink for selecting appropriate token-tracker url generation method.

@adonesky1 adonesky1 requested a review from a team as a code owner May 4, 2021 15:08
@adonesky1 adonesky1 changed the title add tests for getBlockExplorerUrlForTx lift getAccountLink / add tests for getBlockExplorerUrlForTx May 4, 2021
@adonesky1 adonesky1 changed the title lift getAccountLink / add tests for getBlockExplorerUrlForTx Lift getAccountLink / Create getTokenTracker / Add tests for getBlockExplorerUrlForTx May 4, 2021
@adonesky1 adonesky1 force-pushed the add-getBlockExplorerUrlForTx-tests branch from 1e2aaaf to d8bb45c Compare May 4, 2021 18:58
@adonesky1 adonesky1 force-pushed the add-getBlockExplorerUrlForTx-tests branch from d8bb45c to a432a28 Compare May 4, 2021 20:44
Copy link
Contributor

@brad-decker brad-decker left a comment

Choose a reason for hiding this comment

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

sweet, looks good to me!

@adonesky1 adonesky1 merged commit e4f3843 into main May 5, 2021
@adonesky1 adonesky1 deleted the add-getBlockExplorerUrlForTx-tests branch May 5, 2021 14:18
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.

2 participants