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
Greg/967/stake distribution artifact #980
Conversation
0810db0
to
69a7170
Compare
5233ca2
to
d3b42bb
Compare
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.
Few comments but looks good otherwise!
@@ -62,6 +62,7 @@ export default function MithrilStakeDistributionsList(props) { | |||
<Card.Title>{mithrilStakeDistribution.hash}</Card.Title> | |||
<ListGroup variant="flush" className="data-list-group"> | |||
<ListGroup.Item>Epoch: {mithrilStakeDistribution.epoch}</ListGroup.Item> | |||
<ListGroup.Item>Created: {mithrilStakeDistribution.created_at}</ListGroup.Item> |
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.
Maybe we can add this in a separate PR if this is a breaking change for the explorer?
This may break the pre-release
and release
environments until they run this PR.
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.
Alternatively you can show this field only if it exist with something like this (note the usage of the date function to show the date to the user using his timezone & format):
{mithrilStakeDistribution.created_at &&
<ListGroup.Item>Created: {new Date(mithrilStakeDistribution.created_at).toLocaleString()}</ListGroup.Item>
}
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.
This commit has been isolated into a new branch so we can deploy the explorer on its own.
5a3f582
to
d3b42bb
Compare
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.
LGTM
fee9669
to
96d8f2e
Compare
Content
This PR adds missing fields in the StakeDistribution signed entities. It will ease the forging of the signature on the client.
Pre-submit checklist
Comments
This is code refactoring, it will not change the user experience.
Issue(s)
Closes #967