git.delta.rocks / unique-network / refs/commits / 5c36133bb18f

difftreelog

chore regenerate stubs

Yaroslav Bolyukin2022-10-13parent: #825818b.patch.diff
in: master

8 files changed

modifiedpallets/nonfungible/src/stubs/UniqueNFT.rawdiffbeforeafterboth

binary blob — no preview

modifiedpallets/nonfungible/src/stubs/UniqueNFT.soldiffbeforeafterboth
17 }17 }
18}18}
19
20/// @title ERC-721 Non-Fungible Token Standard, optional metadata extension
21/// @dev See https://eips.ethereum.org/EIPS/eip-721
22/// @dev the ERC-165 identifier for this interface is 0x5b5e139f
23contract ERC721Metadata is Dummy, ERC165 {
24 // /// @notice A descriptive name for a collection of NFTs in this contract
25 // /// @dev real implementation of this function lies in `ERC721UniqueExtensions`
26 // /// @dev EVM selector for this function is: 0x06fdde03,
27 // /// or in textual repr: name()
28 // function name() public view returns (string memory) {
29 // require(false, stub_error);
30 // dummy;
31 // return "";
32 // }
33
34 // /// @notice An abbreviated name for NFTs in this contract
35 // /// @dev real implementation of this function lies in `ERC721UniqueExtensions`
36 // /// @dev EVM selector for this function is: 0x95d89b41,
37 // /// or in textual repr: symbol()
38 // function symbol() public view returns (string memory) {
39 // require(false, stub_error);
40 // dummy;
41 // return "";
42 // }
43
44 /// @notice A distinct Uniform Resource Identifier (URI) for a given asset.
45 ///
46 /// @dev If the token has a `url` property and it is not empty, it is returned.
47 /// Else If the collection does not have a property with key `schemaName` or its value is not equal to `ERC721Metadata`, it return an error `tokenURI not set`.
48 /// If the collection property `baseURI` is empty or absent, return "" (empty string)
49 /// otherwise, if token property `suffix` present and is non-empty, return concatenation of baseURI and suffix
50 /// otherwise, return concatenation of `baseURI` and stringified token id (decimal stringifying, without paddings).
51 ///
52 /// @return token's const_metadata
53 /// @dev EVM selector for this function is: 0xc87b56dd,
54 /// or in textual repr: tokenURI(uint256)
55 function tokenURI(uint256 tokenId) public view returns (string memory) {
56 require(false, stub_error);
57 tokenId;
58 dummy;
59 return "";
60 }
61}
6219
63/// @title A contract that allows to set and delete token properties and change token property permissions.20/// @title A contract that allows to set and delete token properties and change token property permissions.
64/// @dev the ERC-165 identifier for this interface is 0x4136937721/// @dev the ERC-165 identifier for this interface is 0x41369377
220 /// @return Tuble with sponsor address and his substrate mirror. If there is no confirmed sponsor error "Contract has no sponsor" throw.177 /// @return Tuble with sponsor address and his substrate mirror. If there is no confirmed sponsor error "Contract has no sponsor" throw.
221 /// @dev EVM selector for this function is: 0x6ec0a9f1,178 /// @dev EVM selector for this function is: 0x6ec0a9f1,
222 /// or in textual repr: collectionSponsor()179 /// or in textual repr: collectionSponsor()
223 function collectionSponsor() public view returns (Tuple15 memory) {180 function collectionSponsor() public view returns (Tuple17 memory) {
224 require(false, stub_error);181 require(false, stub_error);
225 dummy;182 dummy;
226 return Tuple15(0x0000000000000000000000000000000000000000, 0);183 return Tuple17(0x0000000000000000000000000000000000000000, 0);
227 }184 }
228185
229 /// Set limits for the collection.186 /// Set limits for the collection.
402 /// If address is canonical then substrate mirror is zero and vice versa.359 /// If address is canonical then substrate mirror is zero and vice versa.
403 /// @dev EVM selector for this function is: 0xdf727d3b,360 /// @dev EVM selector for this function is: 0xdf727d3b,
404 /// or in textual repr: collectionOwner()361 /// or in textual repr: collectionOwner()
405 function collectionOwner() public view returns (Tuple15 memory) {362 function collectionOwner() public view returns (Tuple17 memory) {
406 require(false, stub_error);363 require(false, stub_error);
407 dummy;364 dummy;
408 return Tuple15(0x0000000000000000000000000000000000000000, 0);365 return Tuple17(0x0000000000000000000000000000000000000000, 0);
409 }366 }
410367
411 /// Changes collection owner to another account368 /// Changes collection owner to another account
422}379}
423380
424/// @dev anonymous struct381/// @dev anonymous struct
425struct Tuple15 {382struct Tuple17 {
426 address field_0;383 address field_0;
427 uint256 field_1;384 uint256 field_1;
428}385}
386
387/// @title ERC-721 Non-Fungible Token Standard, optional metadata extension
388/// @dev See https://eips.ethereum.org/EIPS/eip-721
389/// @dev the ERC-165 identifier for this interface is 0x5b5e139f
390contract ERC721Metadata is Dummy, ERC165 {
391 // /// @notice A descriptive name for a collection of NFTs in this contract
392 // /// @dev real implementation of this function lies in `ERC721UniqueExtensions`
393 // /// @dev EVM selector for this function is: 0x06fdde03,
394 // /// or in textual repr: name()
395 // function name() public view returns (string memory) {
396 // require(false, stub_error);
397 // dummy;
398 // return "";
399 // }
400
401 // /// @notice An abbreviated name for NFTs in this contract
402 // /// @dev real implementation of this function lies in `ERC721UniqueExtensions`
403 // /// @dev EVM selector for this function is: 0x95d89b41,
404 // /// or in textual repr: symbol()
405 // function symbol() public view returns (string memory) {
406 // require(false, stub_error);
407 // dummy;
408 // return "";
409 // }
410
411 /// @notice A distinct Uniform Resource Identifier (URI) for a given asset.
412 ///
413 /// @dev If the token has a `url` property and it is not empty, it is returned.
414 /// Else If the collection does not have a property with key `schemaName` or its value is not equal to `ERC721Metadata`, it return an error `tokenURI not set`.
415 /// If the collection property `baseURI` is empty or absent, return "" (empty string)
416 /// otherwise, if token property `suffix` present and is non-empty, return concatenation of baseURI and suffix
417 /// otherwise, return concatenation of `baseURI` and stringified token id (decimal stringifying, without paddings).
418 ///
419 /// @return token's const_metadata
420 /// @dev EVM selector for this function is: 0xc87b56dd,
421 /// or in textual repr: tokenURI(uint256)
422 function tokenURI(uint256 tokenId) public view returns (string memory) {
423 require(false, stub_error);
424 tokenId;
425 dummy;
426 return "";
427 }
428}
429429
430/// @title ERC721 Token that can be irreversibly burned (destroyed).430/// @title ERC721 Token that can be irreversibly burned (destroyed).
431/// @dev the ERC-165 identifier for this interface is 0x42966c68431/// @dev the ERC-165 identifier for this interface is 0x42966c68
790 ERC721UniqueExtensions,790 ERC721UniqueExtensions,
791 ERC721Mintable,791 ERC721Mintable,
792 ERC721Burnable,792 ERC721Burnable,
793 ERC721Metadata,
793 Collection,794 Collection,
794 TokenProperties,795 TokenProperties
795 ERC721Metadata
796{}796{}
797797
modifiedpallets/refungible/src/stubs/UniqueRefungible.rawdiffbeforeafterboth

binary blob — no preview

modifiedpallets/refungible/src/stubs/UniqueRefungible.soldiffbeforeafterboth
17 }17 }
18}18}
19
20/// @dev the ERC-165 identifier for this interface is 0x5b5e139f
21contract ERC721Metadata is Dummy, ERC165 {
22 /// @notice A descriptive name for a collection of RFTs in this contract
23 /// @dev EVM selector for this function is: 0x06fdde03,
24 /// or in textual repr: name()
25 function name() public view returns (string memory) {
26 require(false, stub_error);
27 dummy;
28 return "";
29 }
30
31 /// @notice An abbreviated name for RFTs in this contract
32 /// @dev EVM selector for this function is: 0x95d89b41,
33 /// or in textual repr: symbol()
34 function symbol() public view returns (string memory) {
35 require(false, stub_error);
36 dummy;
37 return "";
38 }
39
40 /// @notice A distinct Uniform Resource Identifier (URI) for a given asset.
41 ///
42 /// @dev If the token has a `url` property and it is not empty, it is returned.
43 /// Else If the collection does not have a property with key `schemaName` or its value is not equal to `ERC721Metadata`, it return an error `tokenURI not set`.
44 /// If the collection property `baseURI` is empty or absent, return "" (empty string)
45 /// otherwise, if token property `suffix` present and is non-empty, return concatenation of baseURI and suffix
46 /// otherwise, return concatenation of `baseURI` and stringified token id (decimal stringifying, without paddings).
47 ///
48 /// @return token's const_metadata
49 /// @dev EVM selector for this function is: 0xc87b56dd,
50 /// or in textual repr: tokenURI(uint256)
51 function tokenURI(uint256 tokenId) public view returns (string memory) {
52 require(false, stub_error);
53 tokenId;
54 dummy;
55 return "";
56 }
57}
5819
59/// @title A contract that allows to set and delete token properties and change token property permissions.20/// @title A contract that allows to set and delete token properties and change token property permissions.
60/// @dev the ERC-165 identifier for this interface is 0x4136937721/// @dev the ERC-165 identifier for this interface is 0x41369377
216 /// @return Tuble with sponsor address and his substrate mirror. If there is no confirmed sponsor error "Contract has no sponsor" throw.177 /// @return Tuble with sponsor address and his substrate mirror. If there is no confirmed sponsor error "Contract has no sponsor" throw.
217 /// @dev EVM selector for this function is: 0x6ec0a9f1,178 /// @dev EVM selector for this function is: 0x6ec0a9f1,
218 /// or in textual repr: collectionSponsor()179 /// or in textual repr: collectionSponsor()
219 function collectionSponsor() public view returns (Tuple15 memory) {180 function collectionSponsor() public view returns (Tuple17 memory) {
220 require(false, stub_error);181 require(false, stub_error);
221 dummy;182 dummy;
222 return Tuple15(0x0000000000000000000000000000000000000000, 0);183 return Tuple17(0x0000000000000000000000000000000000000000, 0);
223 }184 }
224185
225 /// Set limits for the collection.186 /// Set limits for the collection.
398 /// If address is canonical then substrate mirror is zero and vice versa.359 /// If address is canonical then substrate mirror is zero and vice versa.
399 /// @dev EVM selector for this function is: 0xdf727d3b,360 /// @dev EVM selector for this function is: 0xdf727d3b,
400 /// or in textual repr: collectionOwner()361 /// or in textual repr: collectionOwner()
401 function collectionOwner() public view returns (Tuple15 memory) {362 function collectionOwner() public view returns (Tuple17 memory) {
402 require(false, stub_error);363 require(false, stub_error);
403 dummy;364 dummy;
404 return Tuple15(0x0000000000000000000000000000000000000000, 0);365 return Tuple17(0x0000000000000000000000000000000000000000, 0);
405 }366 }
406367
407 /// Changes collection owner to another account368 /// Changes collection owner to another account
418}379}
419380
420/// @dev anonymous struct381/// @dev anonymous struct
421struct Tuple15 {382struct Tuple17 {
422 address field_0;383 address field_0;
423 uint256 field_1;384 uint256 field_1;
424}385}
386
387/// @dev the ERC-165 identifier for this interface is 0x5b5e139f
388contract ERC721Metadata is Dummy, ERC165 {
389 // /// @notice A descriptive name for a collection of NFTs in this contract
390 // /// @dev real implementation of this function lies in `ERC721UniqueExtensions`
391 // /// @dev EVM selector for this function is: 0x06fdde03,
392 // /// or in textual repr: name()
393 // function name() public view returns (string memory) {
394 // require(false, stub_error);
395 // dummy;
396 // return "";
397 // }
398
399 // /// @notice An abbreviated name for NFTs in this contract
400 // /// @dev real implementation of this function lies in `ERC721UniqueExtensions`
401 // /// @dev EVM selector for this function is: 0x95d89b41,
402 // /// or in textual repr: symbol()
403 // function symbol() public view returns (string memory) {
404 // require(false, stub_error);
405 // dummy;
406 // return "";
407 // }
408
409 /// @notice A distinct Uniform Resource Identifier (URI) for a given asset.
410 ///
411 /// @dev If the token has a `url` property and it is not empty, it is returned.
412 /// Else If the collection does not have a property with key `schemaName` or its value is not equal to `ERC721Metadata`, it return an error `tokenURI not set`.
413 /// If the collection property `baseURI` is empty or absent, return "" (empty string)
414 /// otherwise, if token property `suffix` present and is non-empty, return concatenation of baseURI and suffix
415 /// otherwise, return concatenation of `baseURI` and stringified token id (decimal stringifying, without paddings).
416 ///
417 /// @return token's const_metadata
418 /// @dev EVM selector for this function is: 0xc87b56dd,
419 /// or in textual repr: tokenURI(uint256)
420 function tokenURI(uint256 tokenId) public view returns (string memory) {
421 require(false, stub_error);
422 tokenId;
423 dummy;
424 return "";
425 }
426}
425427
426/// @title ERC721 Token that can be irreversibly burned (destroyed).428/// @title ERC721 Token that can be irreversibly burned (destroyed).
427/// @dev the ERC-165 identifier for this interface is 0x42966c68429/// @dev the ERC-165 identifier for this interface is 0x42966c68
502}504}
503505
504/// @title Unique extensions for ERC721.506/// @title Unique extensions for ERC721.
505/// @dev the ERC-165 identifier for this interface is 0x7c3bef89507/// @dev the ERC-165 identifier for this interface is 0xef1eaacb
506contract ERC721UniqueExtensions is Dummy, ERC165 {508contract ERC721UniqueExtensions is Dummy, ERC165 {
509 /// @notice A descriptive name for a collection of NFTs in this contract
510 /// @dev EVM selector for this function is: 0x06fdde03,
511 /// or in textual repr: name()
512 function name() public view returns (string memory) {
513 require(false, stub_error);
514 dummy;
515 return "";
516 }
517
518 /// @notice An abbreviated name for NFTs in this contract
519 /// @dev EVM selector for this function is: 0x95d89b41,
520 /// or in textual repr: symbol()
521 function symbol() public view returns (string memory) {
522 require(false, stub_error);
523 dummy;
524 return "";
525 }
526
507 /// @notice Transfer ownership of an RFT527 /// @notice Transfer ownership of an RFT
508 /// @dev Throws unless `msg.sender` is the current owner. Throws if `to`528 /// @dev Throws unless `msg.sender` is the current owner. Throws if `to`
780 ERC721UniqueExtensions,800 ERC721UniqueExtensions,
781 ERC721Mintable,801 ERC721Mintable,
782 ERC721Burnable,802 ERC721Burnable,
803 ERC721Metadata,
783 Collection,804 Collection,
784 TokenProperties,805 TokenProperties
785 ERC721Metadata
786{}806{}
787807
modifiedtests/src/eth/api/UniqueNFT.soldiffbeforeafterboth
12 function supportsInterface(bytes4 interfaceID) external view returns (bool);12 function supportsInterface(bytes4 interfaceID) external view returns (bool);
13}13}
14
15/// @title ERC-721 Non-Fungible Token Standard, optional metadata extension
16/// @dev See https://eips.ethereum.org/EIPS/eip-721
17/// @dev the ERC-165 identifier for this interface is 0x5b5e139f
18interface ERC721Metadata is Dummy, ERC165 {
19 // /// @notice A descriptive name for a collection of NFTs in this contract
20 // /// @dev real implementation of this function lies in `ERC721UniqueExtensions`
21 // /// @dev EVM selector for this function is: 0x06fdde03,
22 // /// or in textual repr: name()
23 // function name() external view returns (string memory);
24
25 // /// @notice An abbreviated name for NFTs in this contract
26 // /// @dev real implementation of this function lies in `ERC721UniqueExtensions`
27 // /// @dev EVM selector for this function is: 0x95d89b41,
28 // /// or in textual repr: symbol()
29 // function symbol() external view returns (string memory);
30
31 /// @notice A distinct Uniform Resource Identifier (URI) for a given asset.
32 ///
33 /// @dev If the token has a `url` property and it is not empty, it is returned.
34 /// Else If the collection does not have a property with key `schemaName` or its value is not equal to `ERC721Metadata`, it return an error `tokenURI not set`.
35 /// If the collection property `baseURI` is empty or absent, return "" (empty string)
36 /// otherwise, if token property `suffix` present and is non-empty, return concatenation of baseURI and suffix
37 /// otherwise, return concatenation of `baseURI` and stringified token id (decimal stringifying, without paddings).
38 ///
39 /// @return token's const_metadata
40 /// @dev EVM selector for this function is: 0xc87b56dd,
41 /// or in textual repr: tokenURI(uint256)
42 function tokenURI(uint256 tokenId) external view returns (string memory);
43}
4414
45/// @title A contract that allows to set and delete token properties and change token property permissions.15/// @title A contract that allows to set and delete token properties and change token property permissions.
46/// @dev the ERC-165 identifier for this interface is 0x4136937716/// @dev the ERC-165 identifier for this interface is 0x41369377
150 /// @return Tuble with sponsor address and his substrate mirror. If there is no confirmed sponsor error "Contract has no sponsor" throw.120 /// @return Tuble with sponsor address and his substrate mirror. If there is no confirmed sponsor error "Contract has no sponsor" throw.
151 /// @dev EVM selector for this function is: 0x6ec0a9f1,121 /// @dev EVM selector for this function is: 0x6ec0a9f1,
152 /// or in textual repr: collectionSponsor()122 /// or in textual repr: collectionSponsor()
153 function collectionSponsor() external view returns (Tuple15 memory);123 function collectionSponsor() external view returns (Tuple17 memory);
154124
155 /// Set limits for the collection.125 /// Set limits for the collection.
156 /// @dev Throws error if limit not found.126 /// @dev Throws error if limit not found.
267 /// If address is canonical then substrate mirror is zero and vice versa.237 /// If address is canonical then substrate mirror is zero and vice versa.
268 /// @dev EVM selector for this function is: 0xdf727d3b,238 /// @dev EVM selector for this function is: 0xdf727d3b,
269 /// or in textual repr: collectionOwner()239 /// or in textual repr: collectionOwner()
270 function collectionOwner() external view returns (Tuple15 memory);240 function collectionOwner() external view returns (Tuple17 memory);
271241
272 /// Changes collection owner to another account242 /// Changes collection owner to another account
273 ///243 ///
279}249}
280250
281/// @dev anonymous struct251/// @dev anonymous struct
282struct Tuple15 {252struct Tuple17 {
283 address field_0;253 address field_0;
284 uint256 field_1;254 uint256 field_1;
285}255}
256
257/// @title ERC-721 Non-Fungible Token Standard, optional metadata extension
258/// @dev See https://eips.ethereum.org/EIPS/eip-721
259/// @dev the ERC-165 identifier for this interface is 0x5b5e139f
260interface ERC721Metadata is Dummy, ERC165 {
261 // /// @notice A descriptive name for a collection of NFTs in this contract
262 // /// @dev real implementation of this function lies in `ERC721UniqueExtensions`
263 // /// @dev EVM selector for this function is: 0x06fdde03,
264 // /// or in textual repr: name()
265 // function name() external view returns (string memory);
266
267 // /// @notice An abbreviated name for NFTs in this contract
268 // /// @dev real implementation of this function lies in `ERC721UniqueExtensions`
269 // /// @dev EVM selector for this function is: 0x95d89b41,
270 // /// or in textual repr: symbol()
271 // function symbol() external view returns (string memory);
272
273 /// @notice A distinct Uniform Resource Identifier (URI) for a given asset.
274 ///
275 /// @dev If the token has a `url` property and it is not empty, it is returned.
276 /// Else If the collection does not have a property with key `schemaName` or its value is not equal to `ERC721Metadata`, it return an error `tokenURI not set`.
277 /// If the collection property `baseURI` is empty or absent, return "" (empty string)
278 /// otherwise, if token property `suffix` present and is non-empty, return concatenation of baseURI and suffix
279 /// otherwise, return concatenation of `baseURI` and stringified token id (decimal stringifying, without paddings).
280 ///
281 /// @return token's const_metadata
282 /// @dev EVM selector for this function is: 0xc87b56dd,
283 /// or in textual repr: tokenURI(uint256)
284 function tokenURI(uint256 tokenId) external view returns (string memory);
285}
286286
287/// @title ERC721 Token that can be irreversibly burned (destroyed).287/// @title ERC721 Token that can be irreversibly burned (destroyed).
288/// @dev the ERC-165 identifier for this interface is 0x42966c68288/// @dev the ERC-165 identifier for this interface is 0x42966c68
523 ERC721UniqueExtensions,523 ERC721UniqueExtensions,
524 ERC721Mintable,524 ERC721Mintable,
525 ERC721Burnable,525 ERC721Burnable,
526 ERC721Metadata,
526 Collection,527 Collection,
527 TokenProperties,528 TokenProperties
528 ERC721Metadata
529{}529{}
530530
modifiedtests/src/eth/api/UniqueRefungible.soldiffbeforeafterboth
12 function supportsInterface(bytes4 interfaceID) external view returns (bool);12 function supportsInterface(bytes4 interfaceID) external view returns (bool);
13}13}
14
15/// @dev the ERC-165 identifier for this interface is 0x5b5e139f
16interface ERC721Metadata is Dummy, ERC165 {
17 /// @notice A descriptive name for a collection of RFTs in this contract
18 /// @dev EVM selector for this function is: 0x06fdde03,
19 /// or in textual repr: name()
20 function name() external view returns (string memory);
21
22 /// @notice An abbreviated name for RFTs in this contract
23 /// @dev EVM selector for this function is: 0x95d89b41,
24 /// or in textual repr: symbol()
25 function symbol() external view returns (string memory);
26
27 /// @notice A distinct Uniform Resource Identifier (URI) for a given asset.
28 ///
29 /// @dev If the token has a `url` property and it is not empty, it is returned.
30 /// Else If the collection does not have a property with key `schemaName` or its value is not equal to `ERC721Metadata`, it return an error `tokenURI not set`.
31 /// If the collection property `baseURI` is empty or absent, return "" (empty string)
32 /// otherwise, if token property `suffix` present and is non-empty, return concatenation of baseURI and suffix
33 /// otherwise, return concatenation of `baseURI` and stringified token id (decimal stringifying, without paddings).
34 ///
35 /// @return token's const_metadata
36 /// @dev EVM selector for this function is: 0xc87b56dd,
37 /// or in textual repr: tokenURI(uint256)
38 function tokenURI(uint256 tokenId) external view returns (string memory);
39}
4014
41/// @title A contract that allows to set and delete token properties and change token property permissions.15/// @title A contract that allows to set and delete token properties and change token property permissions.
42/// @dev the ERC-165 identifier for this interface is 0x4136937716/// @dev the ERC-165 identifier for this interface is 0x41369377
146 /// @return Tuble with sponsor address and his substrate mirror. If there is no confirmed sponsor error "Contract has no sponsor" throw.120 /// @return Tuble with sponsor address and his substrate mirror. If there is no confirmed sponsor error "Contract has no sponsor" throw.
147 /// @dev EVM selector for this function is: 0x6ec0a9f1,121 /// @dev EVM selector for this function is: 0x6ec0a9f1,
148 /// or in textual repr: collectionSponsor()122 /// or in textual repr: collectionSponsor()
149 function collectionSponsor() external view returns (Tuple15 memory);123 function collectionSponsor() external view returns (Tuple17 memory);
150124
151 /// Set limits for the collection.125 /// Set limits for the collection.
152 /// @dev Throws error if limit not found.126 /// @dev Throws error if limit not found.
263 /// If address is canonical then substrate mirror is zero and vice versa.237 /// If address is canonical then substrate mirror is zero and vice versa.
264 /// @dev EVM selector for this function is: 0xdf727d3b,238 /// @dev EVM selector for this function is: 0xdf727d3b,
265 /// or in textual repr: collectionOwner()239 /// or in textual repr: collectionOwner()
266 function collectionOwner() external view returns (Tuple15 memory);240 function collectionOwner() external view returns (Tuple17 memory);
267241
268 /// Changes collection owner to another account242 /// Changes collection owner to another account
269 ///243 ///
275}249}
276250
277/// @dev anonymous struct251/// @dev anonymous struct
278struct Tuple15 {252struct Tuple17 {
279 address field_0;253 address field_0;
280 uint256 field_1;254 uint256 field_1;
281}255}
256
257/// @dev the ERC-165 identifier for this interface is 0x5b5e139f
258interface ERC721Metadata is Dummy, ERC165 {
259 // /// @notice A descriptive name for a collection of NFTs in this contract
260 // /// @dev real implementation of this function lies in `ERC721UniqueExtensions`
261 // /// @dev EVM selector for this function is: 0x06fdde03,
262 // /// or in textual repr: name()
263 // function name() external view returns (string memory);
264
265 // /// @notice An abbreviated name for NFTs in this contract
266 // /// @dev real implementation of this function lies in `ERC721UniqueExtensions`
267 // /// @dev EVM selector for this function is: 0x95d89b41,
268 // /// or in textual repr: symbol()
269 // function symbol() external view returns (string memory);
270
271 /// @notice A distinct Uniform Resource Identifier (URI) for a given asset.
272 ///
273 /// @dev If the token has a `url` property and it is not empty, it is returned.
274 /// Else If the collection does not have a property with key `schemaName` or its value is not equal to `ERC721Metadata`, it return an error `tokenURI not set`.
275 /// If the collection property `baseURI` is empty or absent, return "" (empty string)
276 /// otherwise, if token property `suffix` present and is non-empty, return concatenation of baseURI and suffix
277 /// otherwise, return concatenation of `baseURI` and stringified token id (decimal stringifying, without paddings).
278 ///
279 /// @return token's const_metadata
280 /// @dev EVM selector for this function is: 0xc87b56dd,
281 /// or in textual repr: tokenURI(uint256)
282 function tokenURI(uint256 tokenId) external view returns (string memory);
283}
282284
283/// @title ERC721 Token that can be irreversibly burned (destroyed).285/// @title ERC721 Token that can be irreversibly burned (destroyed).
284/// @dev the ERC-165 identifier for this interface is 0x42966c68286/// @dev the ERC-165 identifier for this interface is 0x42966c68
334}336}
335337
336/// @title Unique extensions for ERC721.338/// @title Unique extensions for ERC721.
337/// @dev the ERC-165 identifier for this interface is 0x7c3bef89339/// @dev the ERC-165 identifier for this interface is 0xef1eaacb
338interface ERC721UniqueExtensions is Dummy, ERC165 {340interface ERC721UniqueExtensions is Dummy, ERC165 {
341 /// @notice A descriptive name for a collection of NFTs in this contract
342 /// @dev EVM selector for this function is: 0x06fdde03,
343 /// or in textual repr: name()
344 function name() external view returns (string memory);
345
346 /// @notice An abbreviated name for NFTs in this contract
347 /// @dev EVM selector for this function is: 0x95d89b41,
348 /// or in textual repr: symbol()
349 function symbol() external view returns (string memory);
350
339 /// @notice Transfer ownership of an RFT351 /// @notice Transfer ownership of an RFT
340 /// @dev Throws unless `msg.sender` is the current owner. Throws if `to`352 /// @dev Throws unless `msg.sender` is the current owner. Throws if `to`
516 ERC721UniqueExtensions,528 ERC721UniqueExtensions,
517 ERC721Mintable,529 ERC721Mintable,
518 ERC721Burnable,530 ERC721Burnable,
531 ERC721Metadata,
519 Collection,532 Collection,
520 TokenProperties,533 TokenProperties
521 ERC721Metadata
522{}534{}
523535
modifiedtests/src/eth/nonFungibleAbi.jsondiffbeforeafterboth
154 { "internalType": "address", "name": "field_0", "type": "address" },154 { "internalType": "address", "name": "field_0", "type": "address" },
155 { "internalType": "uint256", "name": "field_1", "type": "uint256" }155 { "internalType": "uint256", "name": "field_1", "type": "uint256" }
156 ],156 ],
157 "internalType": "struct Tuple15",157 "internalType": "struct Tuple17",
158 "name": "",158 "name": "",
159 "type": "tuple"159 "type": "tuple"
160 }160 }
178 { "internalType": "address", "name": "field_0", "type": "address" },178 { "internalType": "address", "name": "field_0", "type": "address" },
179 { "internalType": "uint256", "name": "field_1", "type": "uint256" }179 { "internalType": "uint256", "name": "field_1", "type": "uint256" }
180 ],180 ],
181 "internalType": "struct Tuple15",181 "internalType": "struct Tuple17",
182 "name": "",182 "name": "",
183 "type": "tuple"183 "type": "tuple"
184 }184 }
modifiedtests/src/eth/reFungibleAbi.jsondiffbeforeafterboth
154 { "internalType": "address", "name": "field_0", "type": "address" },154 { "internalType": "address", "name": "field_0", "type": "address" },
155 { "internalType": "uint256", "name": "field_1", "type": "uint256" }155 { "internalType": "uint256", "name": "field_1", "type": "uint256" }
156 ],156 ],
157 "internalType": "struct Tuple15",157 "internalType": "struct Tuple17",
158 "name": "",158 "name": "",
159 "type": "tuple"159 "type": "tuple"
160 }160 }
178 { "internalType": "address", "name": "field_0", "type": "address" },178 { "internalType": "address", "name": "field_0", "type": "address" },
179 { "internalType": "uint256", "name": "field_1", "type": "uint256" }179 { "internalType": "uint256", "name": "field_1", "type": "uint256" }
180 ],180 ],
181 "internalType": "struct Tuple15",181 "internalType": "struct Tuple17",
182 "name": "",182 "name": "",
183 "type": "tuple"183 "type": "tuple"
184 }184 }