-
Notifications
You must be signed in to change notification settings - Fork 0
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
Fix/approval change #3
Conversation
This change comes about because with Multi Token standard there may be many holders of a single token id. It may be gas prohibitive to return back all of the approval data for a token in the Token response. The solution was to introduce a new method called mt_token_approvals which allows one to iterate through, the list of token approvals for a specific token id. This is a minimal addition that allows consumers of the data to find all the approvals for a particular token id.
Overall, these changes look pretty good. I think it makes sense to have the two new functions as you have them. Adding to what's here, I think we need to update the Rationale: the most natural structure to keep track of approvals is by using 3 nested maps, basically And also, Thoughts? |
I think these adjustments make sense pushing up some changes in a few |
@jriemann PTAL we let me know what you think. |
LGTM. Thanks for making the changes. |
Prior to this fix, we had singular representation for token_ids that may have many owners. There was no way to resolve approvals for those types of tokens, typically ft style tokens. This change links together the owners of the accounts to the ft. So when an approval occurs we can resolve which account to transfer the tokens from as well as handle resolution of transfer failures from a singular token id with many owners.
86272b5
to
0805d5b
Compare
No description provided.