Skip to content

refactor: utils#133

Merged
faustbrian merged 3 commits intoArkEcosystemArchive:developfrom
sleepdefic1t:refactor/utils
Aug 20, 2019
Merged

refactor: utils#133
faustbrian merged 3 commits intoArkEcosystemArchive:developfrom
sleepdefic1t:refactor/utils

Conversation

@sleepdefic1t
Copy link
Contributor

This PR refactors the utils directory, and Message and Slot classes to be more Core-like and well-defined in their scope.

Specifically, this PR does the following:

  • moves Slots & Message to the crypto dir.
  • moves crypto_helpers to the utils dir.
  • moves json.h to the utils dir.
  • updates all relevant internal files and tests.
  • updates the Arduino IDE bash script.
  • updates CMake and PIO examples.
  • updates the changelog.

What kind of change does this PR introduce?

  • Refactor

Does this PR introduce a breaking change?

  • Yes
  • No

Does this PR release a new version?

  • Yes
  • No

If yes, please describe the impact and migration path for existing applications:

The PR fulfills these requirements:

  • It's submitted to the develop branch, not the master branch
  • All tests are passing
  • New/updated tests are included

This PR refactors the utils directory to be more Core-like and well-defined.

Spefically, this PR does the following:
- moves Slots & Message to the `crypto` dir.
- moves `crypto_helpers` to the `utils` dir.
- moves `json.h` to the `utils` dir.
- updates all relevant files and tests.
- updates the Arduino IDE bash script.
- updates CMake and PIO examples.
- updates the changelog.
@ghost ghost added Complexity: High More than 256 lines changed. Type: Refactor The pull request improves or enhances an existing implementation. Status: In Progress The issue or pull request is being worked on. labels Aug 19, 2019
@codecov-io
Copy link

codecov-io commented Aug 19, 2019

Codecov Report

Merging #133 into develop will decrease coverage by 0.03%.
The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #133      +/-   ##
===========================================
- Coverage    91.48%   91.44%   -0.04%     
===========================================
  Files           33       33              
  Lines          881      877       -4     
===========================================
- Hits           806      802       -4     
  Misses          75       75
Impacted Files Coverage Δ
src/transactions/serializer.cpp 88.52% <ø> (ø) ⬆️
src/include/cpp-crypto/crypto/message.hpp 100% <ø> (ø)
src/transactions/transaction.cpp 89.52% <ø> (ø) ⬆️
src/crypto/curve.cpp 100% <ø> (ø) ⬆️
src/utils/crypto_helpers.h 100% <ø> (ø)
src/transactions/deserializer.cpp 88.38% <ø> (ø) ⬆️
src/transactions/builder.cpp 77.14% <100%> (ø) ⬆️
src/crypto/slot.cpp 100% <100%> (ø)
src/crypto/message.cpp 100% <100%> (ø)
... and 1 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 98437b1...73d9bea. Read the comment docs.

@sleepdefic1t sleepdefic1t marked this pull request as ready for review August 19, 2019 22:05
drop unnecessary guard statement
@faustbrian faustbrian merged commit 8d7e531 into ArkEcosystemArchive:develop Aug 20, 2019
@ghost ghost removed the Status: In Progress The issue or pull request is being worked on. label Aug 20, 2019
@sleepdefic1t sleepdefic1t deleted the refactor/utils branch August 20, 2019 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Complexity: High More than 256 lines changed. Type: Refactor The pull request improves or enhances an existing implementation.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants