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.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;
}
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 event CollectionDestroyed(address indexed collectionId);19}2021/// @title Contract, which allows users to operate with collections22/// @dev the ERC-165 identifier for this interface is 0xd8b3603923interface CollectionHelpers is Dummy, ERC165, CollectionHelpersEvents {24 /// Create an NFT collection25 /// @param name Name of the collection26 /// @param description Informative description of the collection27 /// @param tokenPrefix Token prefix to represent the collection tokens in UI and user applications28 /// @return address Address of the newly created collection29 /// @dev EVM selector for this function is: 0x844af658,30 /// or in textual repr: createNFTCollection(string,string,string)31 function createNFTCollection(32 string memory name,33 string memory description,34 string memory tokenPrefix35 ) external payable returns (address);3637 // /// Create an NFT collection38 // /// @param name Name of the collection39 // /// @param description Informative description of the collection40 // /// @param tokenPrefix Token prefix to represent the collection tokens in UI and user applications41 // /// @return address Address of the newly created collection42 // /// @dev EVM selector for this function is: 0xe34a6844,43 // /// or in textual repr: createNonfungibleCollection(string,string,string)44 // function createNonfungibleCollection(string memory name, string memory description, string memory tokenPrefix) external payable returns (address);4546 /// @dev EVM selector for this function is: 0xab173450,47 /// or in textual repr: createRFTCollection(string,string,string)48 function createRFTCollection(49 string memory name,50 string memory description,51 string memory tokenPrefix52 ) external payable returns (address);5354 /// @dev EVM selector for this function is: 0xa5596388,55 /// or in textual repr: createERC721MetadataCompatibleRFTCollection(string,string,string,string)56 function createERC721MetadataCompatibleRFTCollection(57 string memory name,58 string memory description,59 string memory tokenPrefix,60 string memory baseUri61 ) external payable returns (address);6263 /// @dev EVM selector for this function is: 0x7335b79f,64 /// or in textual repr: createFTCollection(string,uint8,string,string)65 function createFTCollection(66 string memory name,67 uint8 decimals,68 string memory description,69 string memory tokenPrefix70 ) external payable returns (address);7172 /// @dev EVM selector for this function is: 0x85624258,73 /// or in textual repr: makeCollectionERC721MetadataCompatible(address,string)74 function makeCollectionERC721MetadataCompatible(address collection, string memory baseUri) external;7576 /// @dev EVM selector for this function is: 0x564e321f,77 /// or in textual repr: destroyCollection(address)78 function destroyCollection(address collectionAddress) external;7980 /// Check if a collection exists81 /// @param collectionAddress Address of the collection in question82 /// @return bool Does the collection exist?83 /// @dev EVM selector for this function is: 0xc3de1494,84 /// or in textual repr: isCollectionExist(address)85 function isCollectionExist(address collectionAddress) external view returns (bool);8687 /// @dev EVM selector for this function is: 0xd23a7ab1,88 /// or in textual repr: collectionCreationFee()89 function collectionCreationFee() external view returns (uint256);90}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 event CollectionDestroyed(address indexed collectionId);19}2021/// @title Contract, which allows users to operate with collections22/// @dev the ERC-165 identifier for this interface is 0x7dea03b123interface CollectionHelpers is Dummy, ERC165, CollectionHelpersEvents {24 /// Create an NFT collection25 /// @param name Name of the collection26 /// @param description Informative description of the collection27 /// @param tokenPrefix Token prefix to represent the collection tokens in UI and user applications28 /// @return address Address of the newly created collection29 /// @dev EVM selector for this function is: 0x844af658,30 /// or in textual repr: createNFTCollection(string,string,string)31 function createNFTCollection(32 string memory name,33 string memory description,34 string memory tokenPrefix35 ) external payable returns (address);3637 // /// Create an NFT collection38 // /// @param name Name of the collection39 // /// @param description Informative description of the collection40 // /// @param tokenPrefix Token prefix to represent the collection tokens in UI and user applications41 // /// @return address Address of the newly created collection42 // /// @dev EVM selector for this function is: 0xe34a6844,43 // /// or in textual repr: createNonfungibleCollection(string,string,string)44 // function createNonfungibleCollection(string memory name, string memory description, string memory tokenPrefix) external payable returns (address);4546 /// @dev EVM selector for this function is: 0xab173450,47 /// or in textual repr: createRFTCollection(string,string,string)48 function createRFTCollection(49 string memory name,50 string memory description,51 string memory tokenPrefix52 ) external payable returns (address);5354 /// @dev EVM selector for this function is: 0x7335b79f,55 /// or in textual repr: createFTCollection(string,uint8,string,string)56 function createFTCollection(57 string memory name,58 uint8 decimals,59 string memory description,60 string memory tokenPrefix61 ) external payable returns (address);6263 /// @dev EVM selector for this function is: 0x85624258,64 /// or in textual repr: makeCollectionERC721MetadataCompatible(address,string)65 function makeCollectionERC721MetadataCompatible(address collection, string memory baseUri) external;6667 /// @dev EVM selector for this function is: 0x564e321f,68 /// or in textual repr: destroyCollection(address)69 function destroyCollection(address collectionAddress) external;7071 /// Check if a collection exists72 /// @param collectionAddress Address of the collection in question73 /// @return bool Does the collection exist?74 /// @dev EVM selector for this function is: 0xc3de1494,75 /// or in textual repr: isCollectionExist(address)76 function isCollectionExist(address collectionAddress) external view returns (bool);7778 /// @dev EVM selector for this function is: 0xd23a7ab1,79 /// or in textual repr: collectionCreationFee()80 function collectionCreationFee() external view returns (uint256);81}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" }