git.delta.rocks / unique-network / refs/commits / 6fca5f33938a

difftreelog

chore regenerate evm-coder files

Yaroslav Bolyukin2022-08-03parent: #f732634.patch.diff
in: master

9 files changed

modifiedpallets/nonfungible/src/stubs/UniqueNFT.rawdiffbeforeafterboth

binary blob — no preview

modifiedpallets/nonfungible/src/stubs/UniqueNFT.soldiffbeforeafterboth
300 }300 }
301301
302 // @notice A distinct Uniform Resource Identifier (URI) for a given asset.302 // @notice A distinct Uniform Resource Identifier (URI) for a given asset.
303 // @dev Throws if `tokenId` is not a valid NFT. URIs are defined in RFC303 //
304 // 3986. The URI may point to a JSON file that conforms to the "ERC721304 // @dev If the token has a `url` property and it is not empty, it is returned.
305 // Metadata JSON Schema".305 // 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`.
306 // If the collection property `baseURI` is empty or absent, return "" (empty string)
307 // otherwise, if token property `suffix` present and is non-empty, return concatenation of baseURI and suffix
308 // otherwise, return concatenation of `baseURI` and stringified token id (decimal stringifying, without paddings).
309 //
306 // @return token's const_metadata310 // @return token's const_metadata
307 //311 //
308 // Selector: tokenURI(uint256) c87b56dd312 // Selector: tokenURI(uint256) c87b56dd
modifiedpallets/refungible/src/stubs/UniqueRefungible.rawdiffbeforeafterboth

binary blob — no preview

modifiedpallets/refungible/src/stubs/UniqueRefungibleToken.rawdiffbeforeafterboth

binary blob — no preview

modifiedpallets/unique/src/eth/stubs/CollectionHelpers.rawdiffbeforeafterboth

binary blob — no preview

modifiedpallets/unique/src/eth/stubs/CollectionHelpers.soldiffbeforeafterboth
29 );29 );
30}30}
3131
32// Selector: c20653fc32// Selector: 675f3074
33contract CollectionHelpers is Dummy, ERC165, CollectionHelpersEvents {33contract CollectionHelpers is Dummy, ERC165, CollectionHelpersEvents {
34 // Create an NFT collection
35 // @param name Name of the collection
36 // @param description Informative description of the collection
37 // @param token_prefix Token prefix to represent the collection tokens in UI and user applications
38 // @return address Address of the newly created collection
39 //
34 // Selector: createNonfungibleCollection(string,string,string) e34a684440 // Selector: createNonfungibleCollection(string,string,string) e34a6844
35 function createNonfungibleCollection(41 function createNonfungibleCollection(
36 string memory name,42 string memory name,
75 return 0x0000000000000000000000000000000000000000;81 return 0x0000000000000000000000000000000000000000;
76 }82 }
7783
84 // Selector: createERC721MetadataCompatibleRFTCollection(string,string,string,string) a5596388
85 function createERC721MetadataCompatibleRFTCollection(
86 string memory name,
87 string memory description,
88 string memory tokenPrefix,
89 string memory baseUri
90 ) public returns (address) {
91 require(false, stub_error);
92 name;
93 description;
94 tokenPrefix;
95 baseUri;
96 dummy = 0;
97 return 0x0000000000000000000000000000000000000000;
98 }
99
100 // Check if a collection exists
101 // @param collection_address Address of the collection in question
102 // @return bool Does the collection exist?
103 //
78 // Selector: isCollectionExist(address) c3de1494104 // Selector: isCollectionExist(address) c3de1494
79 function isCollectionExist(address collectionAddress)105 function isCollectionExist(address collectionAddress)
80 public106 public
modifiedtests/src/eth/api/CollectionHelpers.soldiffbeforeafterboth
20 );20 );
21}21}
2222
23// Selector: c20653fc23// Selector: 675f3074
24interface CollectionHelpers is Dummy, ERC165, CollectionHelpersEvents {24interface CollectionHelpers is Dummy, ERC165, CollectionHelpersEvents {
25 // Create an NFT collection
26 // @param name Name of the collection
27 // @param description Informative description of the collection
28 // @param token_prefix Token prefix to represent the collection tokens in UI and user applications
29 // @return address Address of the newly created collection
30 //
25 // Selector: createNonfungibleCollection(string,string,string) e34a684431 // Selector: createNonfungibleCollection(string,string,string) e34a6844
26 function createNonfungibleCollection(32 function createNonfungibleCollection(
27 string memory name,33 string memory name,
44 string memory tokenPrefix50 string memory tokenPrefix
45 ) external view returns (address);51 ) external view returns (address);
4652
53 // Selector: createERC721MetadataCompatibleRFTCollection(string,string,string,string) a5596388
54 function createERC721MetadataCompatibleRFTCollection(
55 string memory name,
56 string memory description,
57 string memory tokenPrefix,
58 string memory baseUri
59 ) external returns (address);
60
61 // Check if a collection exists
62 // @param collection_address Address of the collection in question
63 // @return bool Does the collection exist?
64 //
47 // Selector: isCollectionExist(address) c3de149465 // Selector: isCollectionExist(address) c3de1494
48 function isCollectionExist(address collectionAddress)66 function isCollectionExist(address collectionAddress)
49 external67 external
modifiedtests/src/eth/api/UniqueNFT.soldiffbeforeafterboth
203 function symbol() external view returns (string memory);203 function symbol() external view returns (string memory);
204204
205 // @notice A distinct Uniform Resource Identifier (URI) for a given asset.205 // @notice A distinct Uniform Resource Identifier (URI) for a given asset.
206 // @dev Throws if `tokenId` is not a valid NFT. URIs are defined in RFC206 //
207 // 3986. The URI may point to a JSON file that conforms to the "ERC721207 // @dev If the token has a `url` property and it is not empty, it is returned.
208 // Metadata JSON Schema".208 // 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`.
209 // If the collection property `baseURI` is empty or absent, return "" (empty string)
210 // otherwise, if token property `suffix` present and is non-empty, return concatenation of baseURI and suffix
211 // otherwise, return concatenation of `baseURI` and stringified token id (decimal stringifying, without paddings).
212 //
209 // @return token's const_metadata213 // @return token's const_metadata
210 //214 //
211 // Selector: tokenURI(uint256) c87b56dd215 // Selector: tokenURI(uint256) c87b56dd
modifiedtests/src/eth/collectionHelpersAbi.jsondiffbeforeafterboth
30 "stateMutability": "nonpayable",30 "stateMutability": "nonpayable",
31 "type": "function"31 "type": "function"
32 },32 },
33 {
34 "inputs": [
35 { "internalType": "string", "name": "name", "type": "string" },
36 { "internalType": "string", "name": "description", "type": "string" },
37 { "internalType": "string", "name": "tokenPrefix", "type": "string" },
38 { "internalType": "string", "name": "baseUri", "type": "string" }
39 ],
40 "name": "createERC721MetadataCompatibleRFTCollection",
41 "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
42 "stateMutability": "nonpayable",
43 "type": "function"
44 },
33 {45 {
34 "inputs": [46 "inputs": [
35 { "internalType": "string", "name": "name", "type": "string" },47 { "internalType": "string", "name": "name", "type": "string" },