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(side-dag): update APIs #1071

Merged
merged 1 commit into from
Jul 18, 2024
Merged

feat(side-dag): update APIs #1071

merged 1 commit into from
Jul 18, 2024

Conversation

glevco
Copy link
Contributor

@glevco glevco commented Jun 20, 2024

Motivation

Update API response models to include side-dag and Proof-of-Authority related data.

Acceptance Criteria

  • Add NATIVE_TOKEN_NAME and NATIVE_TOKEN_SYMBOL to HathorSettings and to the /v1a/version API.
  • Add DECIMAL_PLACES and genesis hashes to the /v1a/version API.
  • Update PoaBlock.to_json() to include PoA fields.
  • Implement poa.get_signer_index_and_public_key() and update PoaBlockVerifier to use it.
  • Add missing PoaBlock timestamp verification.
  • Change pre-argument parsers to use create_parser(), adding support for environment variables.

Checklist

  • If you are requesting a merge into master, confirm this code is production-ready and can be included in future releases as soon as it gets merged

@glevco glevco self-assigned this Jun 20, 2024
@glevco glevco force-pushed the feat/side-dag/apis branch from d5add1e to fcab293 Compare June 20, 2024 13:33
@glevco glevco marked this pull request as ready for review June 20, 2024 13:35
@glevco glevco requested review from jansegre and msbrogli as code owners June 20, 2024 13:35
Copy link

codecov bot commented Jun 20, 2024

Codecov Report

Attention: Patch coverage is 84.00000% with 8 lines in your changes missing coverage. Please review.

Project coverage is 85.07%. Comparing base (b3f3d3e) to head (fc3a749).

Files Patch % Lines
hathor/transaction/poa/poa_block.py 46.66% 8 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1071      +/-   ##
==========================================
- Coverage   85.08%   85.07%   -0.01%     
==========================================
  Files         309      309              
  Lines       23396    23421      +25     
  Branches     3529     3534       +5     
==========================================
+ Hits        19906    19926      +20     
- Misses       2790     2797       +7     
+ Partials      700      698       -2     

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

@glevco glevco changed the base branch from tests/side-dag to refactor/misc-improvements June 20, 2024 14:38
@glevco glevco force-pushed the feat/side-dag/apis branch 2 times, most recently from d93bc97 to a4f3e1b Compare June 20, 2024 15:04
@glevco glevco force-pushed the refactor/misc-improvements branch from 4c360b0 to d7b0002 Compare July 5, 2024 18:10
@glevco glevco force-pushed the feat/side-dag/apis branch from 6d715f6 to e2b69ec Compare July 5, 2024 18:20
hathor/cli/side_dag.py Show resolved Hide resolved
hathor/cli/util.py Show resolved Hide resolved
hathor/consensus/poa/poa.py Outdated Show resolved Hide resolved
hathor/transaction/poa/poa_block.py Outdated Show resolved Hide resolved
hathor/verification/poa_block_verifier.py Outdated Show resolved Hide resolved
hathor/verification/poa_block_verifier.py Outdated Show resolved Hide resolved
@glevco glevco force-pushed the refactor/misc-improvements branch from d7b0002 to 14c8403 Compare July 8, 2024 21:23
@glevco glevco force-pushed the feat/side-dag/apis branch from e2b69ec to 1579702 Compare July 8, 2024 21:24
msbrogli
msbrogli previously approved these changes Jul 12, 2024
jansegre
jansegre previously approved these changes Jul 12, 2024
@glevco glevco force-pushed the refactor/misc-improvements branch 3 times, most recently from eead7ac to 6a9693d Compare July 15, 2024 20:20
@glevco glevco changed the base branch from refactor/misc-improvements to tests/side-dag July 15, 2024 20:35
@glevco glevco force-pushed the feat/side-dag/apis branch 2 times, most recently from 6cafbdf to bbea340 Compare July 15, 2024 20:38
@glevco glevco force-pushed the tests/side-dag branch 2 times, most recently from c1b770d to 59295e8 Compare July 18, 2024 15:46
Base automatically changed from tests/side-dag to master July 18, 2024 16:30
@glevco glevco dismissed stale reviews from jansegre and msbrogli July 18, 2024 16:30

The base branch was changed.

@glevco glevco force-pushed the feat/side-dag/apis branch from bbea340 to fc3a749 Compare July 18, 2024 16:52
@glevco glevco merged commit 66eec5a into master Jul 18, 2024
12 checks passed
@glevco glevco deleted the feat/side-dag/apis branch July 18, 2024 19:04
This was referenced Jul 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants