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

Decode transactions that change the content hash of an ENS name #6259

Merged
merged 2 commits into from
Jun 16, 2023

Conversation

LefterisJP
Copy link
Member

Quickly implemented thanks to the prompt by @kelsos that rotki does not decode it yet properly and the python package hint by @decanus and @pcaversaccio

Decoded transaction
2023-06-15_13-27
Decoded content hash
2023-06-15_13-20

Due to filips123/ContentHashPy#1 the
content-hash library coudl not be used in rotki since its dependencies
were too old, they were archived and through transitive dependencies
there were incompatibilities with other rotki dependencies.

We fix this by forkign content-hash and fixing all of its dependencies
to use the more modern multiformats library.

We will also make a PR upstream ofc and if they keep maintaining and
accept the PR will use the upstream instead.
@codecov
Copy link

codecov bot commented Jun 15, 2023

Codecov Report

Merging #6259 (92f046d) into develop (4eda715) will decrease coverage by 6.23%.
The diff coverage is 21.73%.

@@             Coverage Diff             @@
##           develop    #6259      +/-   ##
===========================================
- Coverage    79.92%   73.70%   -6.23%     
===========================================
  Files         1077     1077              
  Lines       118597   118682      +85     
  Branches     10564    10581      +17     
===========================================
- Hits         94793    87470    -7323     
- Misses       22066    29677    +7611     
+ Partials      1738     1535     -203     
Flag Coverage Δ
backend 63.23% <21.73%> (-16.71%) ⬇️

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

Impacted Files Coverage Δ
rotkehlchen/chain/evm/contracts.py 64.28% <ø> (-9.19%) ⬇️
rotkehlchen/chain/ethereum/modules/ens/decoder.py 30.76% <9.09%> (-53.19%) ⬇️
...ehlchen/data_migrations/migrations/migration_10.py 35.00% <35.00%> (ø)
rotkehlchen/chain/aggregator.py 73.49% <66.66%> (-4.42%) ⬇️
rotkehlchen/data_migrations/manager.py 60.41% <100.00%> (-35.42%) ⬇️

... and 214 files with indirect coverage changes

@LefterisJP
Copy link
Member Author

I will merge. The kyber stuff are probably due to me not having rebased the cassetes repo branch I linked to

@LefterisJP LefterisJP merged commit 080b88b into rotki:develop Jun 16, 2023
11 of 13 checks passed
@LefterisJP LefterisJP temporarily deployed to cassette-merge June 16, 2023 07:31 — with GitHub Actions Inactive
@LefterisJP LefterisJP deleted the ens_content_hash branch June 16, 2023 07:31
@rotkibot
Copy link

rotki/test-caching/tree/ens_content_hash was successfully merged

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