difftreelog
chore regenerate stubs
in: master
4 files changed
pallets/unique/src/eth/stubs/CollectionHelpers.rawdiffbeforeafterbothbinary blob — no preview
pallets/unique/src/eth/stubs/CollectionHelpers.soldiffbeforeafterboth--- a/pallets/unique/src/eth/stubs/CollectionHelpers.sol
+++ b/pallets/unique/src/eth/stubs/CollectionHelpers.sol
@@ -23,7 +23,7 @@
}
/// @title Contract, which allows users to operate with collections
-/// @dev the ERC-165 identifier for this interface is 0x542f5079
+/// @dev the ERC-165 identifier for this interface is 0x58918631
contract CollectionHelpers is Dummy, ERC165, CollectionHelpersEvents {
/// Create an NFT collection
/// @param name Name of the collection
@@ -56,28 +56,11 @@
string memory name,
string memory description,
string memory tokenPrefix
- ) public payable returns (address) {
- require(false, stub_error);
- name;
- description;
- tokenPrefix;
- dummy = 0;
- return 0x0000000000000000000000000000000000000000;
- }
-
- /// @dev EVM selector for this function is: 0xa9e7b5c0,
- /// or in textual repr: createERC721MetadataCompatibleNFTCollection(string,string,string,string)
- function createERC721MetadataCompatibleNFTCollection(
- 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;
}
@@ -88,28 +71,11 @@
string memory name,
string memory description,
string memory tokenPrefix
- ) public payable returns (address) {
- require(false, stub_error);
- 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;
}
tests/src/eth/api/CollectionHelpers.soldiffbeforeafterboth1// SPDX-License-Identifier: OTHER2// This code is automatically generated34pragma solidity >=0.8.0 <0.9.0;56/// @dev common stubs holder7interface Dummy {89}1011interface ERC165 is Dummy {12 function supportsInterface(bytes4 interfaceID) external view returns (bool);13}1415/// @dev inlined interface16interface CollectionHelpersEvents {17 event CollectionCreated(address indexed owner, address indexed collectionId);18}1920/// @title Contract, which allows users to operate with collections21/// @dev the ERC-165 identifier for this interface is 0x542f507922interface CollectionHelpers is Dummy, ERC165, CollectionHelpersEvents {23 /// Create an NFT collection24 /// @param name Name of the collection25 /// @param description Informative description of the collection26 /// @param tokenPrefix Token prefix to represent the collection tokens in UI and user applications27 /// @return address Address of the newly created collection28 /// @dev EVM selector for this function is: 0x844af658,29 /// or in textual repr: createNFTCollection(string,string,string)30 function createNFTCollection(31 string memory name,32 string memory description,33 string memory tokenPrefix34 ) external payable returns (address);3536 /// Create an NFT collection37 /// @param name Name of the collection38 /// @param description Informative description of the collection39 /// @param tokenPrefix Token prefix to represent the collection tokens in UI and user applications40 /// @return address Address of the newly created collection41 /// @dev EVM selector for this function is: 0xe34a6844,42 /// or in textual repr: createNonfungibleCollection(string,string,string)43 function createNonfungibleCollection(44 string memory name,45 string memory description,46 string memory tokenPrefix47 ) external payable returns (address);4849 /// @dev EVM selector for this function is: 0xa9e7b5c0,50 /// or in textual repr: createERC721MetadataCompatibleNFTCollection(string,string,string,string)51 function createERC721MetadataCompatibleNFTCollection(52 string memory name,53 string memory description,54 string memory tokenPrefix,55 string memory baseUri56 ) external payable returns (address);5758 /// @dev EVM selector for this function is: 0xab173450,59 /// or in textual repr: createRFTCollection(string,string,string)60 function createRFTCollection(61 string memory name,62 string memory description,63 string memory tokenPrefix64 ) external payable returns (address);6566 /// @dev EVM selector for this function is: 0xa5596388,67 /// or in textual repr: createERC721MetadataCompatibleRFTCollection(string,string,string,string)68 function createERC721MetadataCompatibleRFTCollection(69 string memory name,70 string memory description,71 string memory tokenPrefix,72 string memory baseUri73 ) external payable returns (address);7475 /// @dev EVM selector for this function is: 0x85624258,76 /// or in textual repr: makeCollectionERC721MetadataCompatible(address,string)77 function makeCollectionERC721MetadataCompatible(address collection, string memory baseUri) external;7879 /// Check if a collection exists80 /// @param collectionAddress Address of the collection in question81 /// @return bool Does the collection exist?82 /// @dev EVM selector for this function is: 0xc3de1494,83 /// or in textual repr: isCollectionExist(address)84 function isCollectionExist(address collectionAddress) external view returns (bool);8586 /// @dev EVM selector for this function is: 0xd23a7ab1,87 /// or in textual repr: collectionCreationFee()88 function collectionCreationFee() external view returns (uint256);89}1// SPDX-License-Identifier: OTHER2// This code is automatically generated34pragma solidity >=0.8.0 <0.9.0;56/// @dev common stubs holder7interface Dummy {89}1011interface ERC165 is Dummy {12 function supportsInterface(bytes4 interfaceID) external view returns (bool);13}1415/// @dev inlined interface16interface CollectionHelpersEvents {17 event CollectionCreated(address indexed owner, address indexed collectionId);18}1920/// @title Contract, which allows users to operate with collections21/// @dev the ERC-165 identifier for this interface is 0x5891863122interface CollectionHelpers is Dummy, ERC165, CollectionHelpersEvents {23 /// Create an NFT collection24 /// @param name Name of the collection25 /// @param description Informative description of the collection26 /// @param tokenPrefix Token prefix to represent the collection tokens in UI and user applications27 /// @return address Address of the newly created collection28 /// @dev EVM selector for this function is: 0x844af658,29 /// or in textual repr: createNFTCollection(string,string,string)30 function createNFTCollection(31 string memory name,32 string memory description,33 string memory tokenPrefix34 ) external payable returns (address);3536 /// Create an NFT collection37 /// @param name Name of the collection38 /// @param description Informative description of the collection39 /// @param tokenPrefix Token prefix to represent the collection tokens in UI and user applications40 /// @return address Address of the newly created collection41 /// @dev EVM selector for this function is: 0xe34a6844,42 /// or in textual repr: createNonfungibleCollection(string,string,string)43 function createNonfungibleCollection(44 string memory name,45 string memory description,46 string memory tokenPrefix47 ) external payable returns (address);4849 /// @dev EVM selector for this function is: 0xab173450,50 /// or in textual repr: createRFTCollection(string,string,string)51 function createRFTCollection(52 string memory name,53 string memory description,54 string memory tokenPrefix55 ) external payable returns (address);5657 /// @dev EVM selector for this function is: 0x85624258,58 /// or in textual repr: makeCollectionERC721MetadataCompatible(address,string)59 function makeCollectionERC721MetadataCompatible(address collection, string memory baseUri) external;6061 /// Check if a collection exists62 /// @param collectionAddress Address of the collection in question63 /// @return bool Does the collection exist?64 /// @dev EVM selector for this function is: 0xc3de1494,65 /// or in textual repr: isCollectionExist(address)66 function isCollectionExist(address collectionAddress) external view returns (bool);6768 /// @dev EVM selector for this function is: 0xd23a7ab1,69 /// or in textual repr: collectionCreationFee()70 function collectionCreationFee() external view returns (uint256);71}tests/src/eth/collectionHelpersAbi.jsondiffbeforeafterboth--- a/tests/src/eth/collectionHelpersAbi.json
+++ b/tests/src/eth/collectionHelpersAbi.json
@@ -29,30 +29,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": "createERC721MetadataCompatibleNFTCollection",
- "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "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": "string", "name": "description", "type": "string" },
{ "internalType": "string", "name": "tokenPrefix", "type": "string" }
],
"name": "createNFTCollection",