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

Refactor Eth Transaction for EIP2718 #1354

Merged
merged 20 commits into from
Jul 7, 2021
Merged

Refactor Eth Transaction for EIP2718 #1354

merged 20 commits into from
Jul 7, 2021

Conversation

optout21
Copy link
Contributor

@optout21 optout21 commented Apr 2, 2021

Description

Refactor Eth Transaction, for legacy and enveloped EIP2718 transactions. EIP2718 is a prerequisite for upcoming EIP1559 new fee structure, and EIP2718 is part of the Berlin update, expected to to arrive mid-April.
Related to #1322 .

Testing instructions

Unit tests.

Types of changes

  • New feature (non-breaking change which adds functionality)

Checklist

  • Prefix PR title with [WIP] if necessary.
  • Add tests to cover changes as needed.
  • Update documentation as needed.
  • I have read the guidelines for adding a new blockchain
  • If there is a related Issue, mention it in the description (e.g. Fixes #<issue_number> ).

@codecov
Copy link

codecov bot commented Apr 2, 2021

Codecov Report

Merging #1354 (b36507a) into master (0f2c369) will decrease coverage by 0.01%.
The diff coverage is 100.00%.

❗ Current head b36507a differs from pull request most recent head 94a8821. Consider uploading reports for the commit 94a8821 to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1354      +/-   ##
==========================================
- Coverage   95.41%   95.39%   -0.02%     
==========================================
  Files         443      443              
  Lines       13401    13336      -65     
==========================================
- Hits        12786    12722      -64     
+ Misses        615      614       -1     
Impacted Files Coverage Δ
src/Ethereum/RLP.cpp 98.79% <ø> (-0.09%) ⬇️
src/Ethereum/RLP.h 100.00% <ø> (ø)
src/Ethereum/Signer.cpp 98.85% <100.00%> (-0.31%) ⬇️
src/Ethereum/Signer.h 100.00% <100.00%> (ø)
src/Ethereum/Transaction.cpp 100.00% <100.00%> (ø)
src/Ethereum/Transaction.h 100.00% <100.00%> (ø)
src/Wanchain/Signer.cpp 100.00% <100.00%> (ø)
src/Wanchain/Signer.h 100.00% <100.00%> (ø)
src/Bitcoin/CashAddress.cpp 82.22% <0.00%> (-2.40%) ⬇️
src/interface/TWStoredKey.cpp 91.57% <0.00%> (-1.06%) ⬇️
... and 36 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0f2c369...94a8821. Read the comment docs.

@optout21 optout21 changed the title [WIP] Refactor Eth Transaction for EIP2718 Refactor Eth Transaction for EIP2718 Apr 6, 2021
@optout21 optout21 marked this pull request as ready for review April 6, 2021 14:45
src/Ethereum/Signer.cpp Outdated Show resolved Hide resolved
src/Ethereum/Transaction.h Outdated Show resolved Hide resolved
src/Ethereum/Transaction.h Outdated Show resolved Hide resolved
src/Ethereum/Signer.h Outdated Show resolved Hide resolved
@optout21 optout21 requested a review from hewigovens April 8, 2021 11:08
@optout21 optout21 requested a review from vikmeup April 9, 2021 07:44
@optout21
Copy link
Contributor Author

Postpone committing EIP2718 support to the time when EIP1559 is approaching.

@optout21 optout21 closed this Apr 14, 2021
@optout21 optout21 reopened this Jun 30, 2021
@optout21 optout21 marked this pull request as draft June 30, 2021 12:56
@optout21 optout21 marked this pull request as ready for review July 7, 2021 06:37
@optout21 optout21 merged commit a03acbc into master Jul 7, 2021
@optout21 optout21 deleted the ar/eip2718 branch July 7, 2021 21:54
SHH-HaoZhang pushed a commit to monacohq/wallet-core that referenced this pull request Oct 15, 2021
* Add new fields to Ethereum proto.

* Legacy transaction building.

* Typescript test update

* TS test fix

* Compiler warning fix (ios)

* Legacy and Enveloped transactions.

* lSigner.
Refactor Transaction

* AccessList generation test (wip)

* Cleanup, small refactor

* Signer build change, make it more generic.

* Copyright year

* SignatureRSV rename.

* Signer class is static now, no chainID memeber.

* Renames, Legacy

* Minor touches

* Rename, hash

* Minor reorg in sign()

Co-authored-by: Catenocrypt <[email protected]>
cornbread78 pushed a commit to cornbread78/wallet-core that referenced this pull request Dec 22, 2021
* Add new fields to Ethereum proto.

* Legacy transaction building.

* Typescript test update

* TS test fix

* Compiler warning fix (ios)

* Legacy and Enveloped transactions.

* lSigner.
Refactor Transaction

* AccessList generation test (wip)

* Cleanup, small refactor

* Signer build change, make it more generic.

* Copyright year

* SignatureRSV rename.

* Signer class is static now, no chainID memeber.

* Renames, Legacy

* Minor touches

* Rename, hash

* Minor reorg in sign()

Co-authored-by: Catenocrypt <[email protected]>
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.

3 participants