git.delta.rocks / unique-network / refs/commits / 296b31494b12

difftreelog

chore generate stubs

PraetorP2022-12-14parent: #3f089fc.patch.diff
in: master

9 files changed

modifiedpallets/fungible/src/stubs/UniqueFungible.soldiffbeforeafterboth
284 /// Returns nesting for a collection284 /// Returns nesting for a collection
285 /// @dev EVM selector for this function is: 0x22d25bfe,285 /// @dev EVM selector for this function is: 0x22d25bfe,
286 /// or in textual repr: collectionNestingRestrictedCollectionIds()286 /// or in textual repr: collectionNestingRestrictedCollectionIds()
287<<<<<<< HEAD
287 function collectionNestingRestrictedCollectionIds() public view returns (Tuple26 memory) {288 function collectionNestingRestrictedCollectionIds() public view returns (Tuple26 memory) {
288 require(false, stub_error);289 require(false, stub_error);
289 dummy;290 dummy;
290 return Tuple26(false, new uint256[](0));291 return Tuple26(false, new uint256[](0));
292=======
293 function collectionNestingRestrictedCollectionIds() public view returns (Tuple24 memory) {
294 require(false, stub_error);
295 dummy;
296 return Tuple24(false, new uint256[](0));
297>>>>>>> 09f69700... chore: generate stubs
291 }298 }
292299
293 /// Returns permissions for a collection300 /// Returns permissions for a collection
294 /// @dev EVM selector for this function is: 0x5b2eaf4b,301 /// @dev EVM selector for this function is: 0x5b2eaf4b,
295 /// or in textual repr: collectionNestingPermissions()302 /// or in textual repr: collectionNestingPermissions()
303<<<<<<< HEAD
296 function collectionNestingPermissions() public view returns (Tuple29[] memory) {304 function collectionNestingPermissions() public view returns (Tuple29[] memory) {
297 require(false, stub_error);305 require(false, stub_error);
298 dummy;306 dummy;
299 return new Tuple29[](0);307 return new Tuple29[](0);
308=======
309 function collectionNestingPermissions() public view returns (Tuple27[] memory) {
310 require(false, stub_error);
311 dummy;
312 return new Tuple27[](0);
313>>>>>>> 09f69700... chore: generate stubs
300 }314 }
301315
302 /// Set the collection access method.316 /// Set the collection access method.
476}490}
477491
478/// @dev anonymous struct492/// @dev anonymous struct
493<<<<<<< HEAD
479struct Tuple29 {494struct Tuple29 {
495=======
496struct Tuple27 {
497>>>>>>> 09f69700... chore: generate stubs
480 CollectionPermissions field_0;498 CollectionPermissions field_0;
481 bool field_1;499 bool field_1;
482}500}
483501
484/// @dev anonymous struct502/// @dev anonymous struct
503<<<<<<< HEAD
485struct Tuple26 {504struct Tuple26 {
505=======
506struct Tuple24 {
507>>>>>>> 09f69700... chore: generate stubs
486 bool field_0;508 bool field_0;
487 uint256[] field_1;509 uint256[] field_1;
488}510}
modifiedpallets/nonfungible/src/stubs/UniqueNFT.soldiffbeforeafterboth
422 /// Returns nesting for a collection422 /// Returns nesting for a collection
423 /// @dev EVM selector for this function is: 0x22d25bfe,423 /// @dev EVM selector for this function is: 0x22d25bfe,
424 /// or in textual repr: collectionNestingRestrictedCollectionIds()424 /// or in textual repr: collectionNestingRestrictedCollectionIds()
425<<<<<<< HEAD
425 function collectionNestingRestrictedCollectionIds() public view returns (Tuple39 memory) {426 function collectionNestingRestrictedCollectionIds() public view returns (Tuple39 memory) {
426 require(false, stub_error);427 require(false, stub_error);
427 dummy;428 dummy;
428 return Tuple39(false, new uint256[](0));429 return Tuple39(false, new uint256[](0));
430=======
431 function collectionNestingRestrictedCollectionIds() public view returns (Tuple36 memory) {
432 require(false, stub_error);
433 dummy;
434 return Tuple36(false, new uint256[](0));
435>>>>>>> 09f69700... chore: generate stubs
429 }436 }
430437
431 /// Returns permissions for a collection438 /// Returns permissions for a collection
432 /// @dev EVM selector for this function is: 0x5b2eaf4b,439 /// @dev EVM selector for this function is: 0x5b2eaf4b,
433 /// or in textual repr: collectionNestingPermissions()440 /// or in textual repr: collectionNestingPermissions()
441<<<<<<< HEAD
434 function collectionNestingPermissions() public view returns (Tuple42[] memory) {442 function collectionNestingPermissions() public view returns (Tuple42[] memory) {
435 require(false, stub_error);443 require(false, stub_error);
436 dummy;444 dummy;
437 return new Tuple42[](0);445 return new Tuple42[](0);
446=======
447 function collectionNestingPermissions() public view returns (Tuple39[] memory) {
448 require(false, stub_error);
449 dummy;
450 return new Tuple39[](0);
451>>>>>>> 09f69700... chore: generate stubs
438 }452 }
439453
440 /// Set the collection access method.454 /// Set the collection access method.
608 uint256 sub;622 uint256 sub;
609}623}
610624
611<<<<<<< HEAD
612enum CollectionPermissions {625enum CollectionPermissions {
613 CollectionAdmin,626 CollectionAdmin,
614 TokenOwner627 TokenOwner
615}628}
616629
617/// @dev anonymous struct630/// @dev anonymous struct
631<<<<<<< HEAD
618struct Tuple42 {632struct Tuple42 {
633=======
634struct Tuple39 {
635>>>>>>> 09f69700... chore: generate stubs
619 CollectionPermissions field_0;636 CollectionPermissions field_0;
620 bool field_1;637 bool field_1;
621}638}
622639
623/// @dev anonymous struct640/// @dev anonymous struct
641<<<<<<< HEAD
624struct Tuple39 {642struct Tuple39 {
643=======
644struct Tuple36 {
645>>>>>>> 09f69700... chore: generate stubs
625 bool field_0;646 bool field_0;
626 uint256[] field_1;647 uint256[] field_1;
627}648}
628649
650<<<<<<< HEAD
629/// @dev [`CollectionLimits`](up_data_structs::CollectionLimits) representation for EVM.651/// @dev [`CollectionLimits`](up_data_structs::CollectionLimits) representation for EVM.
630enum CollectionLimits {652enum CollectionLimits {
631 /// @dev How many tokens can a user have on one account.653 /// @dev How many tokens can a user have on one account.
663685
664=======686=======
665>>>>>>> 0bf15e6f... fixed tests&tuple instead of struct, refactored `refungible` pallet687>>>>>>> 0bf15e6f... fixed tests&tuple instead of struct, refactored `refungible` pallet
688=======
689>>>>>>> 09f69700... chore: generate stubs
666/// @title ERC-721 Non-Fungible Token Standard, optional metadata extension690/// @title ERC-721 Non-Fungible Token Standard, optional metadata extension
667/// @dev See https://eips.ethereum.org/EIPS/eip-721691/// @dev See https://eips.ethereum.org/EIPS/eip-721
668/// @dev the ERC-165 identifier for this interface is 0x5b5e139f692/// @dev the ERC-165 identifier for this interface is 0x5b5e139f
modifiedpallets/refungible/src/stubs/UniqueRefungible.soldiffbeforeafterboth
422 /// Returns nesting for a collection422 /// Returns nesting for a collection
423 /// @dev EVM selector for this function is: 0x22d25bfe,423 /// @dev EVM selector for this function is: 0x22d25bfe,
424 /// or in textual repr: collectionNestingRestrictedCollectionIds()424 /// or in textual repr: collectionNestingRestrictedCollectionIds()
425<<<<<<< HEAD
425 function collectionNestingRestrictedCollectionIds() public view returns (Tuple38 memory) {426 function collectionNestingRestrictedCollectionIds() public view returns (Tuple38 memory) {
426 require(false, stub_error);427 require(false, stub_error);
427 dummy;428 dummy;
428 return Tuple38(false, new uint256[](0));429 return Tuple38(false, new uint256[](0));
430=======
431 function collectionNestingRestrictedCollectionIds() public view returns (Tuple35 memory) {
432 require(false, stub_error);
433 dummy;
434 return Tuple35(false, new uint256[](0));
435>>>>>>> 09f69700... chore: generate stubs
429 }436 }
430437
431 /// Returns permissions for a collection438 /// Returns permissions for a collection
432 /// @dev EVM selector for this function is: 0x5b2eaf4b,439 /// @dev EVM selector for this function is: 0x5b2eaf4b,
433 /// or in textual repr: collectionNestingPermissions()440 /// or in textual repr: collectionNestingPermissions()
441<<<<<<< HEAD
434 function collectionNestingPermissions() public view returns (Tuple41[] memory) {442 function collectionNestingPermissions() public view returns (Tuple41[] memory) {
435 require(false, stub_error);443 require(false, stub_error);
436 dummy;444 dummy;
437 return new Tuple41[](0);445 return new Tuple41[](0);
446=======
447 function collectionNestingPermissions() public view returns (Tuple38[] memory) {
448 require(false, stub_error);
449 dummy;
450 return new Tuple38[](0);
451>>>>>>> 09f69700... chore: generate stubs
438 }452 }
439453
440 /// Set the collection access method.454 /// Set the collection access method.
614}628}
615629
616/// @dev anonymous struct630/// @dev anonymous struct
631<<<<<<< HEAD
617struct Tuple41 {632struct Tuple41 {
633=======
634struct Tuple38 {
635>>>>>>> 09f69700... chore: generate stubs
618 CollectionPermissions field_0;636 CollectionPermissions field_0;
619 bool field_1;637 bool field_1;
620}638}
621639
622/// @dev anonymous struct640/// @dev anonymous struct
641<<<<<<< HEAD
623struct Tuple38 {642struct Tuple38 {
643=======
644struct Tuple35 {
645>>>>>>> 09f69700... chore: generate stubs
624 bool field_0;646 bool field_0;
625 uint256[] field_1;647 uint256[] field_1;
626}648}
627649
650<<<<<<< HEAD
628/// @dev [`CollectionLimits`](up_data_structs::CollectionLimits) representation for EVM.651/// @dev [`CollectionLimits`](up_data_structs::CollectionLimits) representation for EVM.
629enum CollectionLimits {652enum CollectionLimits {
630 /// @dev How many tokens can a user have on one account.653 /// @dev How many tokens can a user have on one account.
660 uint256 field_1;683 uint256 field_1;
661}684}
662685
686=======
687>>>>>>> 09f69700... chore: generate stubs
663/// @dev the ERC-165 identifier for this interface is 0x5b5e139f688/// @dev the ERC-165 identifier for this interface is 0x5b5e139f
664contract ERC721Metadata is Dummy, ERC165 {689contract ERC721Metadata is Dummy, ERC165 {
665 // /// @notice A descriptive name for a collection of NFTs in this contract690 // /// @notice A descriptive name for a collection of NFTs in this contract
modifiedtests/src/eth/abi/fungible.jsondiffbeforeafterboth
241 },241 },
242 { "internalType": "bool", "name": "field_1", "type": "bool" }242 { "internalType": "bool", "name": "field_1", "type": "bool" }
243 ],243 ],
244<<<<<<< HEAD
244 "internalType": "struct Tuple29[]",245 "internalType": "struct Tuple29[]",
246=======
247 "internalType": "struct Tuple27[]",
248>>>>>>> 09f69700... chore: generate stubs
245 "name": "",249 "name": "",
246 "type": "tuple[]"250 "type": "tuple[]"
247 }251 }
262 "type": "uint256[]"266 "type": "uint256[]"
263 }267 }
264 ],268 ],
269<<<<<<< HEAD
265 "internalType": "struct Tuple26",270 "internalType": "struct Tuple26",
271=======
272 "internalType": "struct Tuple24",
273>>>>>>> 09f69700... chore: generate stubs
266 "name": "",274 "name": "",
267 "type": "tuple"275 "type": "tuple"
268 }276 }
modifiedtests/src/eth/abi/nonFungible.jsondiffbeforeafterboth
271 },271 },
272 { "internalType": "bool", "name": "field_1", "type": "bool" }272 { "internalType": "bool", "name": "field_1", "type": "bool" }
273 ],273 ],
274<<<<<<< HEAD
274 "internalType": "struct Tuple42[]",275 "internalType": "struct Tuple42[]",
276=======
277 "internalType": "struct Tuple39[]",
278>>>>>>> 09f69700... chore: generate stubs
275 "name": "",279 "name": "",
276 "type": "tuple[]"280 "type": "tuple[]"
277 }281 }
292 "type": "uint256[]"296 "type": "uint256[]"
293 }297 }
294 ],298 ],
299<<<<<<< HEAD
295 "internalType": "struct Tuple39",300 "internalType": "struct Tuple39",
301=======
302 "internalType": "struct Tuple36",
303>>>>>>> 09f69700... chore: generate stubs
296 "name": "",304 "name": "",
297 "type": "tuple"305 "type": "tuple"
298 }306 }
modifiedtests/src/eth/abi/reFungible.jsondiffbeforeafterboth
253 },253 },
254 { "internalType": "bool", "name": "field_1", "type": "bool" }254 { "internalType": "bool", "name": "field_1", "type": "bool" }
255 ],255 ],
256<<<<<<< HEAD
256 "internalType": "struct Tuple41[]",257 "internalType": "struct Tuple41[]",
258=======
259 "internalType": "struct Tuple38[]",
260>>>>>>> 09f69700... chore: generate stubs
257 "name": "",261 "name": "",
258 "type": "tuple[]"262 "type": "tuple[]"
259 }263 }
274 "type": "uint256[]"278 "type": "uint256[]"
275 }279 }
276 ],280 ],
281<<<<<<< HEAD
277 "internalType": "struct Tuple38",282 "internalType": "struct Tuple38",
283=======
284 "internalType": "struct Tuple35",
285>>>>>>> 09f69700... chore: generate stubs
278 "name": "",286 "name": "",
279 "type": "tuple"287 "type": "tuple"
280 }288 }
modifiedtests/src/eth/api/UniqueFungible.soldiffbeforeafterboth
191 /// Returns nesting for a collection191 /// Returns nesting for a collection
192 /// @dev EVM selector for this function is: 0x22d25bfe,192 /// @dev EVM selector for this function is: 0x22d25bfe,
193 /// or in textual repr: collectionNestingRestrictedCollectionIds()193 /// or in textual repr: collectionNestingRestrictedCollectionIds()
194<<<<<<< HEAD
194 function collectionNestingRestrictedCollectionIds() external view returns (Tuple24 memory);195 function collectionNestingRestrictedCollectionIds() external view returns (Tuple24 memory);
196=======
197 function collectionNestingRestrictedCollectionIds() external view returns (Tuple22 memory);
198>>>>>>> 09f69700... chore: generate stubs
195199
196 /// Returns permissions for a collection200 /// Returns permissions for a collection
197 /// @dev EVM selector for this function is: 0x5b2eaf4b,201 /// @dev EVM selector for this function is: 0x5b2eaf4b,
198 /// or in textual repr: collectionNestingPermissions()202 /// or in textual repr: collectionNestingPermissions()
203<<<<<<< HEAD
199 function collectionNestingPermissions() external view returns (Tuple27[] memory);204 function collectionNestingPermissions() external view returns (Tuple27[] memory);
205=======
206 function collectionNestingPermissions() external view returns (Tuple25[] memory);
207>>>>>>> 09f69700... chore: generate stubs
200208
201 /// Set the collection access method.209 /// Set the collection access method.
202 /// @param mode Access mode210 /// @param mode Access mode
311}319}
312320
313/// @dev anonymous struct321/// @dev anonymous struct
322<<<<<<< HEAD
314struct Tuple27 {323struct Tuple27 {
324=======
325struct Tuple25 {
326>>>>>>> 09f69700... chore: generate stubs
315 CollectionPermissions field_0;327 CollectionPermissions field_0;
316 bool field_1;328 bool field_1;
317}329}
322}334}
323335
324/// @dev anonymous struct336/// @dev anonymous struct
337<<<<<<< HEAD
325struct Tuple24 {338struct Tuple24 {
339=======
340struct Tuple22 {
341>>>>>>> 09f69700... chore: generate stubs
326 bool field_0;342 bool field_0;
327 uint256[] field_1;343 uint256[] field_1;
328}344}
modifiedtests/src/eth/api/UniqueNFT.soldiffbeforeafterboth
287 /// Returns nesting for a collection287 /// Returns nesting for a collection
288 /// @dev EVM selector for this function is: 0x22d25bfe,288 /// @dev EVM selector for this function is: 0x22d25bfe,
289 /// or in textual repr: collectionNestingRestrictedCollectionIds()289 /// or in textual repr: collectionNestingRestrictedCollectionIds()
290<<<<<<< HEAD
290 function collectionNestingRestrictedCollectionIds() external view returns (Tuple35 memory);291 function collectionNestingRestrictedCollectionIds() external view returns (Tuple35 memory);
292=======
293 function collectionNestingRestrictedCollectionIds() external view returns (Tuple32 memory);
294>>>>>>> 09f69700... chore: generate stubs
291295
292 /// Returns permissions for a collection296 /// Returns permissions for a collection
293 /// @dev EVM selector for this function is: 0x5b2eaf4b,297 /// @dev EVM selector for this function is: 0x5b2eaf4b,
294 /// or in textual repr: collectionNestingPermissions()298 /// or in textual repr: collectionNestingPermissions()
299<<<<<<< HEAD
295 function collectionNestingPermissions() external view returns (Tuple38[] memory);300 function collectionNestingPermissions() external view returns (Tuple38[] memory);
301=======
302 function collectionNestingPermissions() external view returns (Tuple35[] memory);
303>>>>>>> 09f69700... chore: generate stubs
296304
297 /// Set the collection access method.305 /// Set the collection access method.
298 /// @param mode Access mode306 /// @param mode Access mode
406 uint256 sub;414 uint256 sub;
407}415}
408416
417/// @dev anonymous struct
409<<<<<<< HEAD418<<<<<<< HEAD
410/// @dev anonymous struct
411struct Tuple38 {419struct Tuple38 {
420=======
421struct Tuple35 {
422>>>>>>> 09f69700... chore: generate stubs
412 CollectionPermissions field_0;423 CollectionPermissions field_0;
413 bool field_1;424 bool field_1;
414}425}
419}430}
420431
421/// @dev anonymous struct432/// @dev anonymous struct
433<<<<<<< HEAD
422struct Tuple35 {434struct Tuple35 {
435=======
436struct Tuple32 {
437>>>>>>> 09f69700... chore: generate stubs
423 bool field_0;438 bool field_0;
424 uint256[] field_1;439 uint256[] field_1;
425}440}
426441
442<<<<<<< HEAD
427/// @dev [`CollectionLimits`](up_data_structs::CollectionLimits) representation for EVM.443/// @dev [`CollectionLimits`](up_data_structs::CollectionLimits) representation for EVM.
428enum CollectionLimits {444enum CollectionLimits {
429 /// @dev How many tokens can a user have on one account.445 /// @dev How many tokens can a user have on one account.
461477
462=======478=======
463>>>>>>> 0bf15e6f... fixed tests&tuple instead of struct, refactored `refungible` pallet479>>>>>>> 0bf15e6f... fixed tests&tuple instead of struct, refactored `refungible` pallet
480=======
481>>>>>>> 09f69700... chore: generate stubs
464/// @title ERC-721 Non-Fungible Token Standard, optional metadata extension482/// @title ERC-721 Non-Fungible Token Standard, optional metadata extension
465/// @dev See https://eips.ethereum.org/EIPS/eip-721483/// @dev See https://eips.ethereum.org/EIPS/eip-721
466/// @dev the ERC-165 identifier for this interface is 0x5b5e139f484/// @dev the ERC-165 identifier for this interface is 0x5b5e139f
modifiedtests/src/eth/api/UniqueRefungible.soldiffbeforeafterboth
287 /// Returns nesting for a collection287 /// Returns nesting for a collection
288 /// @dev EVM selector for this function is: 0x22d25bfe,288 /// @dev EVM selector for this function is: 0x22d25bfe,
289 /// or in textual repr: collectionNestingRestrictedCollectionIds()289 /// or in textual repr: collectionNestingRestrictedCollectionIds()
290<<<<<<< HEAD
290 function collectionNestingRestrictedCollectionIds() external view returns (Tuple34 memory);291 function collectionNestingRestrictedCollectionIds() external view returns (Tuple34 memory);
292=======
293 function collectionNestingRestrictedCollectionIds() external view returns (Tuple31 memory);
294>>>>>>> 09f69700... chore: generate stubs
291295
292 /// Returns permissions for a collection296 /// Returns permissions for a collection
293 /// @dev EVM selector for this function is: 0x5b2eaf4b,297 /// @dev EVM selector for this function is: 0x5b2eaf4b,
294 /// or in textual repr: collectionNestingPermissions()298 /// or in textual repr: collectionNestingPermissions()
299<<<<<<< HEAD
295 function collectionNestingPermissions() external view returns (Tuple37[] memory);300 function collectionNestingPermissions() external view returns (Tuple37[] memory);
301=======
302 function collectionNestingPermissions() external view returns (Tuple34[] memory);
303>>>>>>> 09f69700... chore: generate stubs
296304
297 /// Set the collection access method.305 /// Set the collection access method.
298 /// @param mode Access mode306 /// @param mode Access mode
406 uint256 sub;414 uint256 sub;
407}415}
408416
417/// @dev anonymous struct
409<<<<<<< HEAD418<<<<<<< HEAD
410/// @dev anonymous struct
411struct Tuple37 {419struct Tuple37 {
420=======
421struct Tuple34 {
422>>>>>>> 09f69700... chore: generate stubs
412 CollectionPermissions field_0;423 CollectionPermissions field_0;
413 bool field_1;424 bool field_1;
414}425}
419}430}
420431
421/// @dev anonymous struct432/// @dev anonymous struct
433<<<<<<< HEAD
422struct Tuple34 {434struct Tuple34 {
435=======
436struct Tuple31 {
437>>>>>>> 09f69700... chore: generate stubs
423 bool field_0;438 bool field_0;
424 uint256[] field_1;439 uint256[] field_1;
425}440}
426441
442<<<<<<< HEAD
427/// @dev [`CollectionLimits`](up_data_structs::CollectionLimits) representation for EVM.443/// @dev [`CollectionLimits`](up_data_structs::CollectionLimits) representation for EVM.
428enum CollectionLimits {444enum CollectionLimits {
429 /// @dev How many tokens can a user have on one account.445 /// @dev How many tokens can a user have on one account.
461477
462=======478=======
463>>>>>>> 0bf15e6f... fixed tests&tuple instead of struct, refactored `refungible` pallet479>>>>>>> 0bf15e6f... fixed tests&tuple instead of struct, refactored `refungible` pallet
480=======
481>>>>>>> 09f69700... chore: generate stubs
464/// @dev the ERC-165 identifier for this interface is 0x5b5e139f482/// @dev the ERC-165 identifier for this interface is 0x5b5e139f
465interface ERC721Metadata is Dummy, ERC165 {483interface ERC721Metadata is Dummy, ERC165 {
466 // /// @notice A descriptive name for a collection of NFTs in this contract484 // /// @notice A descriptive name for a collection of NFTs in this contract