difftreelog
chore update stubs
in: master
4 files changed
pallets/unique/src/eth/stubs/CollectionHelpers.rawdiffbeforeafterbothbinary blob — no preview
pallets/unique/src/eth/stubs/CollectionHelpers.soldiffbeforeafterboth1// SPDX-License-Identifier: OTHER2// This code is automatically generated34pragma solidity >=0.8.0 <0.9.0;56/// @dev common stubs holder7contract Dummy {8 uint8 dummy;9 string stub_error = "this contract is implemented in native";10}1112contract ERC165 is Dummy {13 function supportsInterface(bytes4 interfaceID) external view returns (bool) {14 require(false, stub_error);15 interfaceID;16 return true;17 }18}1920/// @dev inlined interface21contract CollectionHelpersEvents {22 event CollectionCreated(address indexed owner, address indexed collectionId);23 event CollectionDestroyed(address indexed collectionId);24}2526/// @title Contract, which allows users to operate with collections27/// @dev the ERC-165 identifier for this interface is 0xd8b3603928contract CollectionHelpers is Dummy, ERC165, CollectionHelpersEvents {29 /// Create an NFT collection30 /// @param name Name of the collection31 /// @param description Informative description of the collection32 /// @param tokenPrefix Token prefix to represent the collection tokens in UI and user applications33 /// @return address Address of the newly created collection34 /// @dev EVM selector for this function is: 0x844af658,35 /// or in textual repr: createNFTCollection(string,string,string)36 function createNFTCollection(37 string memory name,38 string memory description,39 string memory tokenPrefix40 ) public payable returns (address) {41 require(false, stub_error);42 name;43 description;44 tokenPrefix;45 dummy = 0;46 return 0x0000000000000000000000000000000000000000;47 }4849 // /// Create an NFT collection50 // /// @param name Name of the collection51 // /// @param description Informative description of the collection52 // /// @param tokenPrefix Token prefix to represent the collection tokens in UI and user applications53 // /// @return address Address of the newly created collection54 // /// @dev EVM selector for this function is: 0xe34a6844,55 // /// or in textual repr: createNonfungibleCollection(string,string,string)56 // function createNonfungibleCollection(string memory name, string memory description, string memory tokenPrefix) public payable returns (address) {57 // require(false, stub_error);58 // name;59 // description;60 // tokenPrefix;61 // dummy = 0;62 // return 0x0000000000000000000000000000000000000000;63 // }6465 /// @dev EVM selector for this function is: 0xab173450,66 /// or in textual repr: createRFTCollection(string,string,string)67 function createRFTCollection(68 string memory name,69 string memory description,70 string memory tokenPrefix71 ) public payable returns (address) {72 require(false, stub_error);73 name;74 description;75 tokenPrefix;76 dummy = 0;77 return 0x0000000000000000000000000000000000000000;78 }7980 /// @dev EVM selector for this function is: 0xa5596388,81 /// or in textual repr: createERC721MetadataCompatibleRFTCollection(string,string,string,string)82 function createERC721MetadataCompatibleRFTCollection(83 string memory name,84 string memory description,85 string memory tokenPrefix,86 string memory baseUri87 ) public payable returns (address) {88 require(false, stub_error);89 name;90 description;91 tokenPrefix;92 baseUri;93 dummy = 0;94 return 0x0000000000000000000000000000000000000000;95 }9697 /// @dev EVM selector for this function is: 0x7335b79f,98 /// or in textual repr: createFTCollection(string,uint8,string,string)99 function createFTCollection(100 string memory name,101 uint8 decimals,102 string memory description,103 string memory tokenPrefix104 ) public payable returns (address) {105 require(false, stub_error);106 name;107 decimals;108 description;109 tokenPrefix;110 dummy = 0;111 return 0x0000000000000000000000000000000000000000;112 }113114 /// @dev EVM selector for this function is: 0x85624258,115 /// or in textual repr: makeCollectionERC721MetadataCompatible(address,string)116 function makeCollectionERC721MetadataCompatible(address collection, string memory baseUri) public {117 require(false, stub_error);118 collection;119 baseUri;120 dummy = 0;121 }122123 /// @dev EVM selector for this function is: 0x564e321f,124 /// or in textual repr: destroyCollection(address)125 function destroyCollection(address collectionAddress) public {126 require(false, stub_error);127 collectionAddress;128 dummy = 0;129 }130131 /// Check if a collection exists132 /// @param collectionAddress Address of the collection in question133 /// @return bool Does the collection exist?134 /// @dev EVM selector for this function is: 0xc3de1494,135 /// or in textual repr: isCollectionExist(address)136 function isCollectionExist(address collectionAddress) public view returns (bool) {137 require(false, stub_error);138 collectionAddress;139 dummy;140 return false;141 }142143 /// @dev EVM selector for this function is: 0xd23a7ab1,144 /// or in textual repr: collectionCreationFee()145 function collectionCreationFee() public view returns (uint256) {146 require(false, stub_error);147 dummy;148 return 0;149 }150}tests/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,
tests/src/eth/collectionHelpersAbi.jsondiffbeforeafterboth--- a/tests/src/eth/collectionHelpersAbi.json
+++ b/tests/src/eth/collectionHelpersAbi.json
@@ -41,18 +41,6 @@
{
"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": "createERC721MetadataCompatibleRFTCollection",
- "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- { "internalType": "string", "name": "name", "type": "string" },
{ "internalType": "uint8", "name": "decimals", "type": "uint8" },
{ "internalType": "string", "name": "description", "type": "string" },
{ "internalType": "string", "name": "tokenPrefix", "type": "string" }