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: make bridge tasks prettier and display more info for L2 to L1 #783

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

tmigone
Copy link
Contributor

@tmigone tmigone commented Jan 16, 2023

Changes

  • bridge tasks
    • Format GRT amounts to 2 decimal places, makes is easier to read/scan task output
    • Show granular information for withdrawal amounts
    • Show L1 and L2 tx's related to a deposit/withdrawal (where possible, in L1 to L2 arb node rate limiting prevents from getting retryable attempts).

Screen Shot 2023-01-18 at 13 28 05

Signed-off-by: Tomás Migone tomas@edgeandnode.com

Signed-off-by: Tomás Migone <tomas@edgeandnode.com>
@codecov
Copy link

codecov bot commented Jan 16, 2023

Codecov Report

Patch coverage has no change and project coverage change: +1.01% 🎉

Comparison is base (7780911) 91.59% compared to head (436f821) 92.60%.
Report is 187 commits behind head on dev.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev     #783      +/-   ##
==========================================
+ Coverage   91.59%   92.60%   +1.01%     
==========================================
  Files          42       47       +5     
  Lines        1999     2368     +369     
  Branches      361      432      +71     
==========================================
+ Hits         1831     2193     +362     
- Misses        168      175       +7     
Flag Coverage Δ
unittests 92.60% <ø> (+1.01%) ⬆️

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

see 25 files with indirect coverage changes

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

pcarranzav
pcarranzav previously approved these changes Jan 17, 2023
Copy link
Member

@pcarranzav pcarranzav left a comment

Choose a reason for hiding this comment

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

LGTM

Signed-off-by: Tomás Migone <tomas@edgeandnode.com>
pcarranzav
pcarranzav previously approved these changes Jan 23, 2023
Copy link
Member

@pcarranzav pcarranzav left a comment

Choose a reason for hiding this comment

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

LGTM

tasks/bridge/deposits.ts Outdated Show resolved Hide resolved
Signed-off-by: Tomás Migone <tomas@edgeandnode.com>
@@ -37,6 +37,11 @@ task(TASK_BRIDGE_DEPOSITS, 'List deposits initiated on L1GraphTokenGateway')
`Tracking 'DepositFinalized' events on L2GraphTokenGateway (${l2Gateway.address}) from block ${l2StartBlock} onwards`,
)

const amount = await (
Copy link
Member

Choose a reason for hiding this comment

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

did you add this additional query on purpose? if so, it might be better to store the result and use it for depositInitiatedEvents below?

But also, isn't it this redundant with what's printed on line 73?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed!

pcarranzav
pcarranzav previously approved these changes Jan 27, 2023
Copy link
Member

@pcarranzav pcarranzav left a comment

Choose a reason for hiding this comment

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

(I left that small comment above but this still LGTM)

Signed-off-by: Tomás Migone <tomas@edgeandnode.com>
Signed-off-by: Tomás Migone <tomas@edgeandnode.com>
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.

None yet

2 participants