-
Notifications
You must be signed in to change notification settings - Fork 143
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(NFT): Add option types and add missing memo parameter #276
feat(NFT): Add option types and add missing memo parameter #276
Conversation
This is to conform with Paras' initial NFT market place
@mikedotexe @mattlockyer Thoughts? |
Hi @willemneal , regarding why the balance is optional, we picked it up from near-examples/nft-market. But it seems it has been changed to be no longer optional (https://github.com/near-examples/nft-market/commit/ba2b5ce07043061059a5482e815433101d4c455f#diff-bd87736f4e1006e27d541b8adc5bc34e439b4c1ce8c234cefc752408d01eb369L130) |
I agree with removing the wrapper on Payout. Don't see its utility. |
I reverted the payout type from this PR. It can be discussed in the future. However, this PR does fix several issues with the current standard, which shouldn't be breaking changes to those that have implemented it. For example, an Option type is encoded the same way as a normal one just isn't a required parameter. Furthermore the memo parameter was missing which is required for |
@mikedotexe Who should I contact on the Dev Platform team? Is there a Dev Platform team? |
2 similar comments
@near/wg-contract-standards I feel this NEP is well-received, so we can cast a vote here. |
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.
We are reaching a consensus, but there is still a chance to influence the decision. I have transitioned this proposal to the final-comment period, and we will make the final vote on the next Contract Standards Working Group call, which will be the last chance to speak before we merge this PR. |
@near/wg-contract-standards – As @frol mentioned above, we would like to schedule a working group meeting to review this NEP. Before we proceed, we would like to get closer to a consensus on this NEP. @abacabadabacaba Could you please fully read this NEP and comment in the thread if you are leaning with approving or rejecting it? Please make sure to include your rationale and any feedback that you have for the author. Thank you. |
I lean with approving this NEP. Adding a memo parameter seems useful given that the underlying transfer function takes it, and making |
Just to resolve ambiguity, I want to re-emphasize that I lean towards approving this NEP extension as it brings useful features in a backward-compatible way, so there is no risk of breaking existing ecosystem. |
As the moderator, I would like to thank the author @willemneal for submitting this NEP extension, and for the @near/wg-contract-standards working group members for your review. Based on the voting indications above, it seems like this proposal is close to a decision. We are therefore scheduling the second Contract Standards Working group meeting next week, where this NEP can enter the final voting stage. We encourage anyone who is interested to join the meeting. Meeting Info |
2494928
to
3859e71
Compare
3859e71
to
1882887
Compare
Thank you to everyone who attended the second Contract Standards Working Group meeting today! The working group members reviewed the NEP and reached the following consensus: Status: Approved
@willemneal Thank you for authoring this NEP! Next Steps:
Implementation Status: Community contributions to the SDKs are welcome! |
This adds the missing memo argument needed by
nft_transfer
and changes types inspired by Paras' usage. Notably using a type alias forPayout
of a hashmap. Also adds more options so that the API is less strict.https://github.com/ParasHQ/paras-marketplace-contract/blob/ac35d84a1af7ea369c3916db32af0dd1e5a43024/paras-marketplace-contract/src/external.rs#L7-L14
nft_transfer_payout
that returns a bad "payout" should still payout to old token owner