Skip to content

Commit c110d6a

Browse files
author
Tore Kasper Frederiksen
committed
Added Hu's suggestions
1 parent 256f2fc commit c110d6a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

ERCs/ERC5XXX draft.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
### eip: 5???
2-
### title: Executable Script extention for Token Contracts
2+
### title: Executable Script extension for Token Contracts
33
### description: Add a scriptURI to point to point to an executable script associated with the functionality of the token.
4-
### author: James (@JamesSmartCell), Weiwu (@weiwu-zhang), Tore Frederiksen
4+
### author: James (@JamesSmartCell), Weiwu (@weiwu-zhang), Tore Frederiksen (@jot2re)
55
### discussions-to:
66
### status: Draft
77
### type: Standards Track
88
### category: ERC
99
### created: 2022-05-03
1010
### requires:
1111
### Abstract
12-
This standard is an interface that adds a scriptURI for locating executable scripts associated with the token.
12+
This standard is an interface that adds a `scriptURI()` function for locating executable scripts associated with the token.
1313

1414
### Motivation
1515
Often NFT authors want to provide some user functionality to their tokens, e.g. through scripts. This should done in a safe way, without opening the user to potential scams. By packaging a link to official scripts, created by the token minter, within the token itself, users can be sure they are using the correct script.
1616

17-
This ERC proposes adding a scriptURI which is a structure containing an array of URIs to external resources in IPFS, github, a cloud provider, etc.
17+
This ERC proposes adding a scriptURI which is a structure containing an array of URIs to external resources in IPFS, GitHub, a cloud provider, etc.
1818
Each scriptURI semantically contains access information to access a *single* signed script, stored in one or more off-chain locations.
1919
Concretely each element in the array contains a pair of URIs, one to the script itself, and one to a signature of the script.
2020

@@ -111,10 +111,10 @@ interface IERC5XXX {
111111
/// @notice Get the scriptURI for the contract
112112
/// @return The scriptURI
113113
function getScriptURI() external view returns(ScriptURI memory);
114-
114+
115115
/// @notice Get the scriptURI for the contract
116116
/// @return The scriptURI
117-
function getVerificationKey) external view returns(address memory);
117+
function getVerificationKey() external view returns(address memory);
118118
119119
120120
/// @notice Update the scriptURI
@@ -146,7 +146,7 @@ The interface MUST be implemented under the following constraints:
146146

147147

148148
### Rationale
149-
Using this method avoids the need for building secure and certified centralised hosting and allow scripts to be hosted anywhere: IPFS, github or cloud storage.
149+
Using this method avoids the need for building secure and certified centralised hosting and allow scripts to be hosted anywhere: IPFS, GitHub or cloud storage.
150150

151151
### Backwards Compatibility
152152
This standard is compatible with all Token standards (ERC20, 721, 777, 1155 etc).

0 commit comments

Comments
 (0)