git.delta.rocks / unique-network / refs/commits / b40c0a2825ea

difftreelog

misc: generate apis

Trubnikov Sergey2022-07-19parent: #a5d6975.patch.diff
in: master

4 files changed

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: 20947cd032// Selector: 86a0d929
33contract CollectionHelpers is Dummy, ERC165, CollectionHelpersEvents {33contract CollectionHelpers is Dummy, ERC165, CollectionHelpersEvents {
34 // Selector: createNonfungibleCollection(string,string,string) e34a684434 // Selector: createNonfungibleCollection(string,string,string) e34a6844
35 function createNonfungibleCollection(35 function createNonfungibleCollection(
45 return 0x0000000000000000000000000000000000000000;45 return 0x0000000000000000000000000000000000000000;
46 }46 }
47
48 // Selector: createERC721MetadataCompatibleCollection(string,string,string,string) a634a5f9
49 function createERC721MetadataCompatibleCollection(
50 string memory name,
51 string memory description,
52 string memory tokenPrefix,
53 string memory baseUri
54 ) public returns (address) {
55 require(false, stub_error);
56 name;
57 description;
58 tokenPrefix;
59 baseUri;
60 dummy = 0;
61 return 0x0000000000000000000000000000000000000000;
62 }
4763
48 // Selector: isCollectionExist(address) c3de149464 // Selector: isCollectionExist(address) c3de1494
49 function isCollectionExist(address collectionAddress)65 function isCollectionExist(address collectionAddress)
modifiedtests/src/eth/api/CollectionHelpers.soldiffbeforeafterboth
--- a/tests/src/eth/api/CollectionHelpers.sol
+++ b/tests/src/eth/api/CollectionHelpers.sol
@@ -20,7 +20,7 @@
 	);
 }
 
-// Selector: 20947cd0
+// Selector: 86a0d929
 interface CollectionHelpers is Dummy, ERC165, CollectionHelpersEvents {
 	// Selector: createNonfungibleCollection(string,string,string) e34a6844
 	function createNonfungibleCollection(
@@ -29,6 +29,14 @@
 		string memory tokenPrefix
 	) external returns (address);
 
+	// Selector: createERC721MetadataCompatibleCollection(string,string,string,string) a634a5f9
+	function createERC721MetadataCompatibleCollection(
+		string memory name,
+		string memory description,
+		string memory tokenPrefix,
+		string memory baseUri
+	) external returns (address);
+
 	// Selector: isCollectionExist(address) c3de1494
 	function isCollectionExist(address collectionAddress)
 		external
modifiedtests/src/eth/collectionHelpersAbi.jsondiffbeforeafterboth
--- a/tests/src/eth/collectionHelpersAbi.json
+++ b/tests/src/eth/collectionHelpersAbi.json
@@ -22,6 +22,18 @@
     "inputs": [
       { "internalType": "string", "name": "name", "type": "string" },
       { "internalType": "string", "name": "description", "type": "string" },
+      { "internalType": "string", "name": "tokenPrefix", "type": "string" },
+      { "internalType": "string", "name": "baseUri", "type": "string" }
+    ],
+    "name": "createERC721MetadataCompatibleCollection",
+    "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
+    "stateMutability": "nonpayable",
+    "type": "function"
+  },
+  {
+    "inputs": [
+      { "internalType": "string", "name": "name", "type": "string" },
+      { "internalType": "string", "name": "description", "type": "string" },
       { "internalType": "string", "name": "tokenPrefix", "type": "string" }
     ],
     "name": "createNonfungibleCollection",