-
Notifications
You must be signed in to change notification settings - Fork 18
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
feat: add data pass redeem history query #328
Conversation
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 👍
Later, if you add a query that retrieves history as a redeemer, you can check the history of all pools of the redemeer.
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 👍
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.
gut
…s-addr # Conflicts: # x/datapool/types/pool.pb.go # x/datapool/types/query.pb.go
In current kv store of redeem receipts, we cannot retrieve data pass redeem receipts by redeemer's address. Because the key is composed of poolID, round, and nftID, not redeemer's address.
With the need of getting receipts by redeemer's address in data validator, I made another kv store that the key is composed of redeemer's address and poolID. When redeemer redeems data pass, the redeem history is also stored/updated (
k.appendDataPassRedeemHistory()
).I implemented a query of the redeem history by redeemer's address and pool ID as well.
What I've done