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
--- a/pallets/unique/src/eth/stubs/CollectionHelpers.sol
+++ b/pallets/unique/src/eth/stubs/CollectionHelpers.sol
@@ -29,7 +29,7 @@
 	);
 }
 
-// Selector: 20947cd0
+// Selector: 86a0d929
 contract CollectionHelpers is Dummy, ERC165, CollectionHelpersEvents {
 	// Selector: createNonfungibleCollection(string,string,string) e34a6844
 	function createNonfungibleCollection(
@@ -45,6 +45,22 @@
 		return 0x0000000000000000000000000000000000000000;
 	}
 
+	// Selector: createERC721MetadataCompatibleCollection(string,string,string,string) a634a5f9
+	function createERC721MetadataCompatibleCollection(
+		string memory name,
+		string memory description,
+		string memory tokenPrefix,
+		string memory baseUri
+	) public returns (address) {
+		require(false, stub_error);
+		name;
+		description;
+		tokenPrefix;
+		baseUri;
+		dummy = 0;
+		return 0x0000000000000000000000000000000000000000;
+	}
+
 	// Selector: isCollectionExist(address) c3de1494
 	function isCollectionExist(address collectionAddress)
 		public
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
before · tests/src/eth/collectionHelpersAbi.json
1[2  {3    "anonymous": false,4    "inputs": [5      {6        "indexed": true,7        "internalType": "address",8        "name": "owner",9        "type": "address"10      },11      {12        "indexed": true,13        "internalType": "address",14        "name": "collectionId",15        "type": "address"16      }17    ],18    "name": "CollectionCreated",19    "type": "event"20  },21  {22    "inputs": [23      { "internalType": "string", "name": "name", "type": "string" },24      { "internalType": "string", "name": "description", "type": "string" },25      { "internalType": "string", "name": "tokenPrefix", "type": "string" }26    ],27    "name": "createNonfungibleCollection",28    "outputs": [{ "internalType": "address", "name": "", "type": "address" }],29    "stateMutability": "nonpayable",30    "type": "function"31  },32  {33    "inputs": [34      {35        "internalType": "address",36        "name": "collectionAddress",37        "type": "address"38      }39    ],40    "name": "isCollectionExist",41    "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],42    "stateMutability": "view",43    "type": "function"44  },45  {46    "inputs": [47      { "internalType": "bytes4", "name": "interfaceID", "type": "bytes4" }48    ],49    "name": "supportsInterface",50    "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],51    "stateMutability": "view",52    "type": "function"53  }54]
after · tests/src/eth/collectionHelpersAbi.json
1[2  {3    "anonymous": false,4    "inputs": [5      {6        "indexed": true,7        "internalType": "address",8        "name": "owner",9        "type": "address"10      },11      {12        "indexed": true,13        "internalType": "address",14        "name": "collectionId",15        "type": "address"16      }17    ],18    "name": "CollectionCreated",19    "type": "event"20  },21  {22    "inputs": [23      { "internalType": "string", "name": "name", "type": "string" },24      { "internalType": "string", "name": "description", "type": "string" },25      { "internalType": "string", "name": "tokenPrefix", "type": "string" },26      { "internalType": "string", "name": "baseUri", "type": "string" }27    ],28    "name": "createERC721MetadataCompatibleCollection",29    "outputs": [{ "internalType": "address", "name": "", "type": "address" }],30    "stateMutability": "nonpayable",31    "type": "function"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    ],39    "name": "createNonfungibleCollection",40    "outputs": [{ "internalType": "address", "name": "", "type": "address" }],41    "stateMutability": "nonpayable",42    "type": "function"43  },44  {45    "inputs": [46      {47        "internalType": "address",48        "name": "collectionAddress",49        "type": "address"50      }51    ],52    "name": "isCollectionExist",53    "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],54    "stateMutability": "view",55    "type": "function"56  },57  {58    "inputs": [59      { "internalType": "bytes4", "name": "interfaceID", "type": "bytes4" }60    ],61    "name": "supportsInterface",62    "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],63    "stateMutability": "view",64    "type": "function"65  }66]