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

Update eth_transactioncount to use mirror (0.8) #557

Merged
merged 1 commit into from
Sep 26, 2022

Conversation

Nana-EC
Copy link
Collaborator

@Nana-EC Nana-EC commented Sep 22, 2022

Update eth_transactionaccount to use mirror node

Signed-off-by: Nana Essilfie-Conduah nana@swirldslabs.com

Description:
Cherry pick #552 to release 0.8

Related issue(s):

Addresses #550

Notes for reviewer:

Checklist

  • Documented (Code comments, README, etc.)
  • Tested (unit, integration, etc.)

Update eth_transactionaccount to use mirror node

Signed-off-by: Nana Essilfie-Conduah <nana@swirldslabs.com>
@Nana-EC Nana-EC changed the title Update eth_transactionaccount to use mirror (#552) Update eth_transactioncount to use mirror (0.8) Sep 22, 2022
@sonarcloud
Copy link

sonarcloud bot commented Sep 22, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@Nana-EC Nana-EC self-assigned this Sep 22, 2022
@Nana-EC Nana-EC added enhancement New feature or request P1 labels Sep 22, 2022
@Nana-EC Nana-EC added this to the 0.8.0 milestone Sep 22, 2022
@codecov-commenter
Copy link

Codecov Report

Base: 74.92% // Head: 74.50% // Decreases project coverage by -0.41% ⚠️

Coverage data is based on head (424d76f) compared to base (a880c87).
Patch coverage: 23.07% of modified lines in pull request are covered.

Additional details and impacted files
@@               Coverage Diff               @@
##           release/0.8     #557      +/-   ##
===============================================
- Coverage        74.92%   74.50%   -0.42%     
===============================================
  Files               12       12              
  Lines              961      969       +8     
  Branches           150      152       +2     
===============================================
+ Hits               720      722       +2     
- Misses             194      198       +4     
- Partials            47       49       +2     
Impacted Files Coverage Δ
packages/relay/src/lib/clients/sdkClient.ts 6.81% <0.00%> (ø)
packages/relay/src/lib/eth.ts 84.00% <28.57%> (-1.02%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

return EthImpl.zeroHex;
} else if (address && !blockNumOrTag) {
// get latest ethereumNonce
const mirrorAccount = await this.mirrorNodeClient.getAccount(address, requestId);
Copy link
Contributor

Choose a reason for hiding this comment

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

I just want to confirm mirror node is now always up to date, not not up to 15 minutes behind anymore.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Correct the api/v1/accounts was always up to data for account info but is now also up to data for balance info.
api/v1/balance is still on the 15 min behind schedule until mirror node updates it's logic

@Nana-EC Nana-EC merged commit 0091f24 into release/0.8 Sep 26, 2022
@Nana-EC Nana-EC deleted the 552-eth-transactioncount-mirror-to-0-8-release branch September 26, 2022 04:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request P1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants