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

Generic Bech32Address class, Cosmos, Zilliqa and Binance use it. #709

Merged
merged 10 commits into from
Nov 6, 2019

Conversation

optout21
Copy link
Contributor

@optout21 optout21 commented Nov 3, 2019

Description

New generic Bech32 address class;
Cosmos, Zilliqa and Binance addresses derived from it.
Fixes #635 .

Types of changes

  • Refactor

Checklist

  • Also use it by Harmony.
  • Also use it by IoTeX.
  • Also use it by SegwitAddress.

Squashed commit of the following:
    Binance address based on Bech32Address.
    Generic Bech32Address class, Cosmos and Zilliqa use it.
@codecov
Copy link

codecov bot commented Nov 4, 2019

Codecov Report

Merging #709 into master will decrease coverage by 0.02%.
The diff coverage is 91.12%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #709      +/-   ##
==========================================
- Coverage   85.35%   85.32%   -0.03%     
==========================================
  Files         297      302       +5     
  Lines        8297     8287      -10     
==========================================
- Hits         7082     7071      -11     
- Misses       1215     1216       +1
Impacted Files Coverage Δ
src/Bitcoin/SegwitAddress.h 62.5% <ø> (ø) ⬆️
src/interface/TWSegwitAddress.cpp 60.86% <ø> (ø) ⬆️
src/Binance/Address.cpp 100% <100%> (ø)
src/IoTeX/Address.h 100% <100%> (ø) ⬆️
src/IoTeX/Address.cpp 100% <100%> (+6.25%) ⬆️
src/interface/TWZilliqaAddress.cpp 91.66% <100%> (ø) ⬆️
src/Bech32Address.h 100% <100%> (ø)
src/Zilliqa/Address.h 100% <100%> (ø) ⬆️
src/Cosmos/Address.h 100% <100%> (ø) ⬆️
src/Binance/Address.h 100% <100%> (ø)
... and 14 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 0805204...2f91c8a. Read the comment docs.

src/Bech32Address.h Outdated Show resolved Hide resolved
@hewigovens
Copy link
Contributor

Should we also updateTWHarmonyAddress, TWIoTeXAddress, TWZilliqaAddress and TWCosmosAddress?

@optout21
Copy link
Contributor Author

optout21 commented Nov 4, 2019

Should we also updateTWHarmonyAddress, TWIoTeXAddress, TWZilliqaAddress and TWCosmosAddress?

I did along the way, they are affected only a little bit.

@optout21 optout21 changed the title [WIP] Generic Bech32Address class, Cosmos, Zilliqa and Binance use it. Generic Bech32Address class, Cosmos, Zilliqa and Binance use it. Nov 4, 2019
@optout21
Copy link
Contributor Author

optout21 commented Nov 4, 2019

Ready for review

src/Binance/Address.h Outdated Show resolved Hide resolved
src/IoTeX/Address.cpp Outdated Show resolved Hide resolved
@hewigovens hewigovens merged commit ed2190b into master Nov 6, 2019
@hewigovens hewigovens deleted the bech32addr-635 branch November 6, 2019 02:48
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.

Refactor Cosmos::Address to general Bech32Address
4 participants