git.delta.rocks / unique-network / refs/commits / b40c0a2825ea

difftreelog

misc: generate apis

Trubnikov Sergey2022-07-19parent: #a5d6975.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
29 );29 );
30}30}
3131
32// Selector: 20947cd032// Selector: 86a0d929
33contract CollectionHelpers is Dummy, ERC165, CollectionHelpersEvents {33contract CollectionHelpers is Dummy, ERC165, CollectionHelpersEvents {
34 // Selector: createNonfungibleCollection(string,string,string) e34a684434 // Selector: createNonfungibleCollection(string,string,string) e34a6844
35 function createNonfungibleCollection(35 function createNonfungibleCollection(
45 return 0x0000000000000000000000000000000000000000;45 return 0x0000000000000000000000000000000000000000;
46 }46 }
47
48 // Selector: createERC721MetadataCompatibleCollection(string,string,string,string) a634a5f9
49 function createERC721MetadataCompatibleCollection(
50 string memory name,
51 string memory description,
52 string memory tokenPrefix,
53 string memory baseUri
54 ) public returns (address) {
55 require(false, stub_error);
56 name;
57 description;
58 tokenPrefix;
59 baseUri;
60 dummy = 0;
61 return 0x0000000000000000000000000000000000000000;
62 }
4763
48 // Selector: isCollectionExist(address) c3de149464 // Selector: isCollectionExist(address) c3de1494
49 function isCollectionExist(address collectionAddress)65 function isCollectionExist(address collectionAddress)
modifiedtests/src/eth/api/CollectionHelpers.soldiffbeforeafterboth
20 );20 );
21}21}
2222
23// Selector: 20947cd023// Selector: 86a0d929
24interface CollectionHelpers is Dummy, ERC165, CollectionHelpersEvents {24interface CollectionHelpers is Dummy, ERC165, CollectionHelpersEvents {
25 // Selector: createNonfungibleCollection(string,string,string) e34a684425 // Selector: createNonfungibleCollection(string,string,string) e34a6844
26 function createNonfungibleCollection(26 function createNonfungibleCollection(
29 string memory tokenPrefix29 string memory tokenPrefix
30 ) external returns (address);30 ) external returns (address);
31
32 // Selector: createERC721MetadataCompatibleCollection(string,string,string,string) a634a5f9
33 function createERC721MetadataCompatibleCollection(
34 string memory name,
35 string memory description,
36 string memory tokenPrefix,
37 string memory baseUri
38 ) external returns (address);
3139
32 // Selector: isCollectionExist(address) c3de149440 // Selector: isCollectionExist(address) c3de1494
33 function isCollectionExist(address collectionAddress)41 function isCollectionExist(address collectionAddress)
modifiedtests/src/eth/collectionHelpersAbi.jsondiffbeforeafterboth
18 "name": "CollectionCreated",18 "name": "CollectionCreated",
19 "type": "event"19 "type": "event"
20 },20 },
21 {
22 "inputs": [
23 { "internalType": "string", "name": "name", "type": "string" },
24 { "internalType": "string", "name": "description", "type": "string" },
25 { "internalType": "string", "name": "tokenPrefix", "type": "string" },
26 { "internalType": "string", "name": "baseUri", "type": "string" }
27 ],
28 "name": "createERC721MetadataCompatibleCollection",
29 "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
30 "stateMutability": "nonpayable",
31 "type": "function"
32 },
21 {33 {
22 "inputs": [34 "inputs": [
23 { "internalType": "string", "name": "name", "type": "string" },35 { "internalType": "string", "name": "name", "type": "string" },