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

tool: Bridge Transfer Tracer #806

Open
yourbuddyconner opened this issue Sep 19, 2021 · 4 comments
Open

tool: Bridge Transfer Tracer #806

yourbuddyconner opened this issue Sep 19, 2021 · 4 comments
Labels
typescript Typescript dev work required

Comments

@yourbuddyconner
Copy link
Contributor

yourbuddyconner commented Sep 19, 2021

Input:

  • Transaction hash corresponding to Send call on BridgeRouter.
  • Originating Network name

Output:
List of message hops and their relative timing. Use the events emitted at each step to correlate, see Sequence Diagram for more information.

Extra Credit:
Output tracing diagram showing message latency across the various hops.

@yourbuddyconner yourbuddyconner added the typescript Typescript dev work required label Sep 19, 2021
@yourbuddyconner yourbuddyconner changed the title tool: Message Tracer tool: Bridge Transfer Tracer Sep 20, 2021
@yourbuddyconner
Copy link
Contributor Author

yourbuddyconner commented Sep 20, 2021

How this will work:

  • Origin Chain: Get Transaction via transactionHash
  • Origin Chain: Get Send event, extract _destination and _recipient
  • Origin Chain: Get Dispatch event, extract _leafIndex, _committedRoot, _messageHash
  • Origin Chain: Get Update event, extract _committedRoot
  • Destination Chain: Get Update event, extract _committedRoot
  • Destination Chain: Get Process event, extract _messageHash
  • Destination Chain: Get Transfer event, extract address

@prestwich
Copy link
Contributor

@anna-carroll
Copy link
Contributor

related:
#815
#641 (comment)
#579 (comment)

@yourbuddyconner
Copy link
Contributor Author

First crack at this, not great, lots of this should end up in the multi-provider library as convenience functions: https://gist.github.com/yourbuddyconner/8e64948061247d21975b5c50292e4c9e

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
typescript Typescript dev work required
Projects
None yet
Development

No branches or pull requests

3 participants