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

Add metadata to nft-simple #137

Merged
merged 2 commits into from
Mar 26, 2021
Merged

Add metadata to nft-simple #137

merged 2 commits into from
Mar 26, 2021

Conversation

mikedotexe
Copy link
Contributor

@mikedotexe mikedotexe commented Mar 26, 2021

Used what we have on the spec (transient link) https://nomicon-pr-174.onrender.com/Standards/NonFungibleToken/Metadata.html

Test with CLI via (replace mike.testnet with yours):

near create-account 171.mike.testnet --masterAccount mike.testnet && near deploy 171.mike.testnet --wasmFile res/nft_simple.wasm --initFunction new --initArgs '{"owner_id": "171.mike.testnet", "metadata": {"spec":"nft-1.0.0", "name": "Jon Gold", "symbol": "WHY"} }'

near call 171.mike.testnet nft_mint '{"token_id": "0", "metadata": {"title": "Obsidian", "description": "Black as the night"} }' --accountId 171.mike.testnet --amount 0.0079

near view 171.mike.testnet nft_total_supply ''

near view 171.mike.testnet nft_metadata ''

near view 171.mike.testnet nft_token '{"token_id": "0"}'

@mikedotexe
Copy link
Contributor Author

I'm going to merge this in the next half hour if there are no objects, I think it's going to be harder to have a few different PRs for various NFT standards

@mikedotexe mikedotexe merged commit 75b02a4 into nft-simple Mar 26, 2021
@mikedotexe mikedotexe deleted the nft-simple-metadata branch March 26, 2021 20:25
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.

2 participants