-
Notifications
You must be signed in to change notification settings - Fork 132
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
Simple NFT #129
Simple NFT #129
Conversation
Co-authored-by: Bowen Wang <bowenwang1996@users.noreply.github.com>
This PR should be against |
* nft-simple: add metadata for token and contract, for init and minting fns, and nft_metadata fn * update nft_simple WASM file
…er (#135) * update add callback to approvals with NonFungibleTokenApprovalsReceiver * allow passing of deposit > 1 yocto when approve account id * remove revoke_all callback and fix args * finalized on_approve/revoke callbacks * standards updates, enforce approval_id nonce, update nameing, remove revoke_approval callback * fire approval callback no matter what * clean up interface and deposit issues * no bump approval on internal_transfer * review edits OMG * nft_approve: if account is already approver, don't check for attached deposit, refund if given * add optional promise to nft_approve, fix approval id per entry via HashMap, add TokenReturnObject * correct u64s that need to be U64 * nft-simple: add 6 basic unit tests * review edits: remove return val on nft_approve, update sizing for hashmap * remove as_return * simplify Token struct, use U64, remove unnecessary helpers * nft-simple: add exquisite corpse and simulation tests, ft wasm * nft-simple: add to simulation tests w/ exquisite corpse to demonstrate nft_approve * Rework NFT simple contract * use near-sdk 3.1.0, simplify sim tests to use basic test-nft contract Co-authored-by: Mike Purvis <mikedotexe@gmail.com> Co-authored-by: Evgeny Kuzyakov <ek@nearprotocol.com>
We're trying to stick with the merged spec on this one, thanks tho! It is slightly odd |
Updated the initial description of this PR with changes I think we need before merging. |
Closing in favor of putting this in the contract standards in the sdk near/near-sdk-rs#361 |
Remaining items as I see it:
NonFungibleTokenCore
trait has mixed other standards in there, including approvals and enumeration. Let's separate these into different traits and corresponding files.