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

feat: add NFT standard #3

Merged
merged 22 commits into from
May 20, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update nft-standard.md
  • Loading branch information
friedger authored Jan 4, 2021
commit c978f091e1ae948bb73bf121ffe753a2de350d06
13 changes: 12 additions & 1 deletion nft-standard.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ This SIP is made available under the terms of the Creative Commons CC0 1.0 Unive
This SIP’s copyright is held by the Stacks Open Internet Foundation.

## Introduction
Tokens are digital assets that are registered on the Stacks blockchain through a smart contract. A non-fungible token (NFT) is a token that is globally unique and that users can identify through its identifier. The smart contract that registers the NFTs defines a name for the group of NFTs.

NFTs are enumerated, the id starts at 1 and the current last id is provided by the smart contract.

## Specification

Expand All @@ -31,8 +33,11 @@ This SIP’s copyright is held by the Stacks Open Internet Foundation.
;; Name, limited to 32 chars
(name () (string-ascii 32))

;; Icon URL, limited to 2048 chars
;; Icon URL for group of NFTs, limited to 2048 chars
(icon-url () (string-ascii 2048))

;; Icon URL per NFT , limited to 2048 chars
(icon-url (uint) (string-ascii 2048))

;; Token ID, limited to uint range
(last-token-id () uint)
Expand All @@ -57,8 +62,14 @@ This SIP’s copyright is held by the Stacks Open Internet Foundation.
```
## Related Work

https://eips.ethereum.org/EIPS/eip-721
https://www.ledger.com/academy/what-are-nft


## Backwards Compatibility

Not applicable

## Activation

## Reference Implementations