Skip to content

Commit

Permalink
Merge pull request #5 from WyattMufson/nft
Browse files Browse the repository at this point in the history
Update tokensOf and the metadata schema
  • Loading branch information
hal0x2328 authored Aug 2, 2019
2 parents 74c6b42 + 982f6a6 commit f0c7e99
Showing 1 changed file with 8 additions and 16 deletions.
24 changes: 8 additions & 16 deletions nep-11.mediawiki
Original file line number Diff line number Diff line change
Expand Up @@ -162,23 +162,11 @@ If the <code>owner</code> is an unused address, or it's not the owner of the spe
public static enumerator tokensOf(byte[] owner)
</pre>

Returns an <code>enumerator</code> that contains all the tokens owned by the specified address.
Returns an <code>enumerator</code> that contains all of the token ids owned by the specified address.

The parameter <code>owner</code> SHOULD be a 20-byte address.
If not, this method SHOULD <code>throw</code> an exception.

The returned tokens should be in the following format:
<pre>
{
"id": <ID>,
"properties": properties(<ID>),
...
}
</pre>

It must have the fields <code>id</code> and <code>properties</code>.
It can contain other dApp-specific fields.

====properties====

<pre>
Expand All @@ -200,15 +188,19 @@ If not, this method SHOULD <code>throw</code> an exception.
"properties": {
"name": {
"type": "string",
"description": "Identifies the asset to which this NFT represents"
"description": "Identifies the asset to which this NFT represents."
},
"description": {
"type": "string",
"description": "Describes the asset to which this NFT represents"
"description": "Describes the asset to which this NFT represents."
},
"image": {
"type": "string",
"description": "A URI pointing to a resource with mime type image/* representing the asset to which this NFT represents. Consider making any images at a width between 320 and 1080 pixels and aspect ratio between 1.91:1 and 4:5 inclusive."
"description": "Optional. A URI pointing to a resource with mime type image/* representing the asset to which this NFT represents. Consider making any images at a width between 320 and 1080 pixels and aspect ratio between 1.91:1 and 4:5 inclusive."
},
"tokenURI": {
"type": "string",
"description": "Optional. A distinct URI for a given asset."
}
}
}
Expand Down

0 comments on commit f0c7e99

Please sign in to comment.