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

enable data in geneis state to be exported #310

Merged
merged 6 commits into from
Jan 5, 2023
Merged

Conversation

taiki1frsh
Copy link
Collaborator

@taiki1frsh taiki1frsh commented Dec 22, 2022

issue #308
(mistook naming branch name)

what i did:

  • Added methods, GetClassAttributesList, GetOwningClassIdLists, GetClassNameIdLists to extract all data for each types
  • To export them in genesis state when to be called export command
  • changed genesis state proto

no tests for the methods yet, but i think this can be merged first. (made the other issue for it already)

@taiki1frsh taiki1frsh marked this pull request as draft December 22, 2022 08:07
@taiki1frsh taiki1frsh marked this pull request as ready for review December 23, 2022 05:04
if err := ValidateClassAttributes(*classAttributes, gs.Params); err != nil {
return err
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

I think more validations will need to be added here for ClassNameIdLists and OwningClassIdLists.
As well as usage of usage of class ids on OwningClassIdLists that's not on ClassNameIdLists

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

i know.
was thinking about whether i should add that kind of validation for those.
But, eventually i didn't do that since x/nftmarket doesn't have those type of validation, too, right?
do you even think i should add here now?

Copy link
Contributor

Choose a reason for hiding this comment

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

Not a mandatory one but would be good to add for completeness.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@mkXultra
what do you think?
should i do this for this PR or do i just put this as an issue and give someone else this task?

Copy link
Contributor

Choose a reason for hiding this comment

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

@taiki1frsh
How long will it take?

Copy link
Collaborator Author

@taiki1frsh taiki1frsh Dec 27, 2022

Choose a reason for hiding this comment

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

@mkXultra
without test, it doesn't take an hour.
with out, i guess around four or five hour.

Copy link
Contributor

@jununifi jununifi left a comment

Choose a reason for hiding this comment

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

LGTM

@taiki1frsh taiki1frsh merged commit 08eb544 into newDevelop Jan 5, 2023
@taiki1frsh taiki1frsh deleted the feat/issue307 branch January 5, 2023 10:17
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.

3 participants