-
Notifications
You must be signed in to change notification settings - Fork 277
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] #1650: tidy up data_model
#1645
Conversation
967e626
to
bcc7539
Compare
Codecov Report
@@ Coverage Diff @@
## iroha2-dev #1645 +/- ##
==============================================
+ Coverage 77.18% 77.36% +0.18%
==============================================
Files 127 128 +1
Lines 20403 20403
==============================================
+ Hits 15748 15785 +37
+ Misses 4655 4618 -37
Continue to review full report at Codecov.
|
c1ec6af
to
537a2e4
Compare
537a2e4
to
674e256
Compare
45b4d5a
to
1751048
Compare
data_model/src/lib.rs
Outdated
/// The [`Transaction`]'s payload. | ||
pub payload: Payload, | ||
/// [`Transaction`]'s [`Signature`]s. | ||
pub signatures: SignaturesOf<Payload>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
had to made these fields public
4c91b29
to
3056fb7
Compare
3056fb7
to
fa4cd44
Compare
data_model
data_model
ed35796
to
25b64c5
Compare
25b64c5
to
fa4cd44
Compare
DEFAULT_MAX_LOG_LEVEL | ||
} | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a consideration. Do you think it would be better to move all configurations into the config
crate, and privatise some of the fields?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did this only because I had to, otherwise dependencies would bleed between crates. Namely, iroha_data_model
would have to be dependecy of crates with configuration or the other way around and logically they shouldn't be
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but yes, this can be repeated if dynamic configuration is added for those config fields. Maybe I should comment that somewhere?
fa4cd44
to
206355d
Compare
…Block Signed-off-by: Marin Veršić <marin.versic101@gmail.com>
Signed-off-by: Marin Veršić <marin.versic101@gmail.com>
Signed-off-by: Marin Veršić <marin.versic101@gmail.com>
Signed-off-by: Marin Veršić <marin.versic101@gmail.com>
Signed-off-by: Marin Veršić <marin.versic101@gmail.com>
206355d
to
391dbd2
Compare
Signed-off-by: Marin Veršić marin.versic101@gmail.com
Description of the Change
World
fromdata_model
intowsv
as it will never be used by clients.IntoSchema
for blocks and transitive dependencies as a preparation for block streamingQuery
->ExecutableQuery
,QueryOutput
->Query
roles
feature inconsistenciesdata_model
. Will be used for block streamingIssue
Closes #1650
Benefits
decoupled
iroha_client
andiroha_core
libraries. Client should never depend on corePossible Drawbacks
Usage Examples or Tests [optional]
Alternate Designs [optional]