difftreelog
misc: generate apis
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
@@ -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
tests/src/eth/api/CollectionHelpers.soldiffbeforeafterboth20 );20 );21}21}222223// Selector: 20947cd023// Selector: 86a0d92924interface CollectionHelpers is Dummy, ERC165, CollectionHelpersEvents {24interface CollectionHelpers is Dummy, ERC165, CollectionHelpersEvents {25 // Selector: createNonfungibleCollection(string,string,string) e34a684425 // Selector: createNonfungibleCollection(string,string,string) e34a684426 function createNonfungibleCollection(26 function createNonfungibleCollection(29 string memory tokenPrefix29 string memory tokenPrefix30 ) external returns (address);30 ) external returns (address);3132 // Selector: createERC721MetadataCompatibleCollection(string,string,string,string) a634a5f933 function createERC721MetadataCompatibleCollection(34 string memory name,35 string memory description,36 string memory tokenPrefix,37 string memory baseUri38 ) external returns (address);313932 // Selector: isCollectionExist(address) c3de149440 // Selector: isCollectionExist(address) c3de149433 function isCollectionExist(address collectionAddress)41 function isCollectionExist(address collectionAddress)tests/src/eth/collectionHelpersAbi.jsondiffbeforeafterboth--- a/tests/src/eth/collectionHelpersAbi.json
+++ b/tests/src/eth/collectionHelpersAbi.json
@@ -22,6 +22,18 @@
"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": "createERC721MetadataCompatibleCollection",
+ "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ { "internalType": "string", "name": "name", "type": "string" },
+ { "internalType": "string", "name": "description", "type": "string" },
{ "internalType": "string", "name": "tokenPrefix", "type": "string" }
],
"name": "createNonfungibleCollection",