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

#66 Unifying data types and fake data in staking #67

Merged

Conversation

memasdeligeorgakis
Copy link
Contributor

@memasdeligeorgakis memasdeligeorgakis commented Sep 16, 2022

What does this PR do

  • cleaned up staking-related types
    • It nests Validator in staking data
    • cleans up the naming
  • changed all fake data to go through actions
    • removes the fake data from the component's directory
    • all fake data runs through actions and redux

FAQ

Q: Why is the data drilled down through a few layers?
A: While it is quite many, I feel that this view is very likely to change, or even be completely reshuffled for desktop/mobile. So this way maintaining several views for this data will be quick to refactor. So I feel that doing any changes in these stateless views will be very cheap.

image

image

* cleaned up staking related types
@github-actions
Copy link
Contributor

github-actions bot commented Sep 16, 2022

@github-actions github-actions bot temporarily deployed to pull request September 16, 2022 14:59 Inactive
@memasdeligeorgakis
Copy link
Contributor Author

I did not add tests for the actions as they are just placeholders, likely when we fetch real data we have to add some logic to the actions.

@github-actions github-actions bot temporarily deployed to pull request September 19, 2022 08:49 Inactive
Copy link
Collaborator

@jurevans jurevans left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! I only left a couple very minor comments, just cleaning up old comments

myStaking: MyStaking[],
allValidators: Validator[]
): MyValidators[] => {
// try {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like maybe this try { was intended to be removed

tableConfigurations={myBalancesConfigurations}
/>

{/* my validators */}
<Table
title="My Validators"
data={myValidatorData}
// data={myValidatorData}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Definitely not a big deal, but this comment could be removed.

@memasdeligeorgakis memasdeligeorgakis merged commit 6bb47eb into main Oct 4, 2022
@mateuszjasiuk mateuszjasiuk deleted the feat/66_unify_types_and_fake_data_fetching_in_staking branch September 13, 2024 09:28
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.

2 participants