git.delta.rocks / unique-network / refs/commits / 011ab4685f48

difftreelog

chore update stubs

Grigoriy Simonov2022-10-26parent: #c388a1a.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
@@ -24,7 +24,7 @@
 }
 
 /// @title Contract, which allows users to operate with collections
-/// @dev the ERC-165 identifier for this interface is 0xd8b36039
+/// @dev the ERC-165 identifier for this interface is 0x7dea03b1
 contract CollectionHelpers is Dummy, ERC165, CollectionHelpersEvents {
 	/// Create an NFT collection
 	/// @param name Name of the collection
@@ -73,23 +73,6 @@
 		name;
 		description;
 		tokenPrefix;
-		dummy = 0;
-		return 0x0000000000000000000000000000000000000000;
-	}
-
-	/// @dev EVM selector for this function is: 0xa5596388,
-	///  or in textual repr: createERC721MetadataCompatibleRFTCollection(string,string,string,string)
-	function createERC721MetadataCompatibleRFTCollection(
-		string memory name,
-		string memory description,
-		string memory tokenPrefix,
-		string memory baseUri
-	) public payable returns (address) {
-		require(false, stub_error);
-		name;
-		description;
-		tokenPrefix;
-		baseUri;
 		dummy = 0;
 		return 0x0000000000000000000000000000000000000000;
 	}
modifiedtests/src/eth/api/CollectionHelpers.soldiffbeforeafterboth
--- a/tests/src/eth/api/CollectionHelpers.sol
+++ b/tests/src/eth/api/CollectionHelpers.sol
@@ -19,7 +19,7 @@
 }
 
 /// @title Contract, which allows users to operate with collections
-/// @dev the ERC-165 identifier for this interface is 0xd8b36039
+/// @dev the ERC-165 identifier for this interface is 0x7dea03b1
 interface CollectionHelpers is Dummy, ERC165, CollectionHelpersEvents {
 	/// Create an NFT collection
 	/// @param name Name of the collection
@@ -49,15 +49,6 @@
 		string memory name,
 		string memory description,
 		string memory tokenPrefix
-	) external payable returns (address);
-
-	/// @dev EVM selector for this function is: 0xa5596388,
-	///  or in textual repr: createERC721MetadataCompatibleRFTCollection(string,string,string,string)
-	function createERC721MetadataCompatibleRFTCollection(
-		string memory name,
-		string memory description,
-		string memory tokenPrefix,
-		string memory baseUri
 	) external payable returns (address);
 
 	/// @dev EVM selector for this function is: 0x7335b79f,
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    "anonymous": false,23    "inputs": [24      {25        "indexed": true,26        "internalType": "address",27        "name": "collectionId",28        "type": "address"29      }30    ],31    "name": "CollectionDestroyed",32    "type": "event"33  },34  {35    "inputs": [],36    "name": "collectionCreationFee",37    "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],38    "stateMutability": "view",39    "type": "function"40  },41  {42    "inputs": [43      { "internalType": "string", "name": "name", "type": "string" },44      { "internalType": "string", "name": "description", "type": "string" },45      { "internalType": "string", "name": "tokenPrefix", "type": "string" },46      { "internalType": "string", "name": "baseUri", "type": "string" }47    ],48    "name": "createERC721MetadataCompatibleRFTCollection",49    "outputs": [{ "internalType": "address", "name": "", "type": "address" }],50    "stateMutability": "payable",51    "type": "function"52  },53  {54    "inputs": [55      { "internalType": "string", "name": "name", "type": "string" },56      { "internalType": "uint8", "name": "decimals", "type": "uint8" },57      { "internalType": "string", "name": "description", "type": "string" },58      { "internalType": "string", "name": "tokenPrefix", "type": "string" }59    ],60    "name": "createFTCollection",61    "outputs": [{ "internalType": "address", "name": "", "type": "address" }],62    "stateMutability": "payable",63    "type": "function"64  },65  {66    "inputs": [67      { "internalType": "string", "name": "name", "type": "string" },68      { "internalType": "string", "name": "description", "type": "string" },69      { "internalType": "string", "name": "tokenPrefix", "type": "string" }70    ],71    "name": "createNFTCollection",72    "outputs": [{ "internalType": "address", "name": "", "type": "address" }],73    "stateMutability": "payable",74    "type": "function"75  },76  {77    "inputs": [78      { "internalType": "string", "name": "name", "type": "string" },79      { "internalType": "string", "name": "description", "type": "string" },80      { "internalType": "string", "name": "tokenPrefix", "type": "string" }81    ],82    "name": "createRFTCollection",83    "outputs": [{ "internalType": "address", "name": "", "type": "address" }],84    "stateMutability": "payable",85    "type": "function"86  },87  {88    "inputs": [89      {90        "internalType": "address",91        "name": "collectionAddress",92        "type": "address"93      }94    ],95    "name": "destroyCollection",96    "outputs": [],97    "stateMutability": "nonpayable",98    "type": "function"99  },100  {101    "inputs": [102      {103        "internalType": "address",104        "name": "collectionAddress",105        "type": "address"106      }107    ],108    "name": "isCollectionExist",109    "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],110    "stateMutability": "view",111    "type": "function"112  },113  {114    "inputs": [115      { "internalType": "address", "name": "collection", "type": "address" },116      { "internalType": "string", "name": "baseUri", "type": "string" }117    ],118    "name": "makeCollectionERC721MetadataCompatible",119    "outputs": [],120    "stateMutability": "nonpayable",121    "type": "function"122  },123  {124    "inputs": [125      { "internalType": "bytes4", "name": "interfaceID", "type": "bytes4" }126    ],127    "name": "supportsInterface",128    "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],129    "stateMutability": "view",130    "type": "function"131  }132]
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    "anonymous": false,23    "inputs": [24      {25        "indexed": true,26        "internalType": "address",27        "name": "collectionId",28        "type": "address"29      }30    ],31    "name": "CollectionDestroyed",32    "type": "event"33  },34  {35    "inputs": [],36    "name": "collectionCreationFee",37    "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],38    "stateMutability": "view",39    "type": "function"40  },41  {42    "inputs": [43      { "internalType": "string", "name": "name", "type": "string" },44      { "internalType": "uint8", "name": "decimals", "type": "uint8" },45      { "internalType": "string", "name": "description", "type": "string" },46      { "internalType": "string", "name": "tokenPrefix", "type": "string" }47    ],48    "name": "createFTCollection",49    "outputs": [{ "internalType": "address", "name": "", "type": "address" }],50    "stateMutability": "payable",51    "type": "function"52  },53  {54    "inputs": [55      { "internalType": "string", "name": "name", "type": "string" },56      { "internalType": "string", "name": "description", "type": "string" },57      { "internalType": "string", "name": "tokenPrefix", "type": "string" }58    ],59    "name": "createNFTCollection",60    "outputs": [{ "internalType": "address", "name": "", "type": "address" }],61    "stateMutability": "payable",62    "type": "function"63  },64  {65    "inputs": [66      { "internalType": "string", "name": "name", "type": "string" },67      { "internalType": "string", "name": "description", "type": "string" },68      { "internalType": "string", "name": "tokenPrefix", "type": "string" }69    ],70    "name": "createRFTCollection",71    "outputs": [{ "internalType": "address", "name": "", "type": "address" }],72    "stateMutability": "payable",73    "type": "function"74  },75  {76    "inputs": [77      {78        "internalType": "address",79        "name": "collectionAddress",80        "type": "address"81      }82    ],83    "name": "destroyCollection",84    "outputs": [],85    "stateMutability": "nonpayable",86    "type": "function"87  },88  {89    "inputs": [90      {91        "internalType": "address",92        "name": "collectionAddress",93        "type": "address"94      }95    ],96    "name": "isCollectionExist",97    "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],98    "stateMutability": "view",99    "type": "function"100  },101  {102    "inputs": [103      { "internalType": "address", "name": "collection", "type": "address" },104      { "internalType": "string", "name": "baseUri", "type": "string" }105    ],106    "name": "makeCollectionERC721MetadataCompatible",107    "outputs": [],108    "stateMutability": "nonpayable",109    "type": "function"110  },111  {112    "inputs": [113      { "internalType": "bytes4", "name": "interfaceID", "type": "bytes4" }114    ],115    "name": "supportsInterface",116    "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],117    "stateMutability": "view",118    "type": "function"119  }120]