git.delta.rocks / unique-network / refs/commits / 9e7b960e54f6

difftreelog

chore generate stubs & fix docs

PraetorP2022-12-16parent: #e624910.patch.diff
in: master

13 files changed

modifiedpallets/common/src/eth.rsdiffbeforeafterboth
164 /// Is it possible to send tokens from this collection between users.172 /// Is it possible to send tokens from this collection between users.
165 TransferEnabled,173 TransferEnabled,
166}174}
175/// Ethereum representation of `NestingPermissions` (see [`up_data_structs::NestingPermissions`]) fields as an enumeration.
167#[derive(Default, Debug, Clone, Copy, AbiCoder)]176#[derive(Default, Debug, Clone, Copy, AbiCoder)]
168#[repr(u8)]177#[repr(u8)]
169pub enum CollectionPermissions {178pub enum CollectionPermissions {
179 /// Owner of token can nest tokens under it.
170 #[default]180 #[default]
171 CollectionAdmin,
172 TokenOwner,181 TokenOwner,
182
183 /// Admin of token collection can nest tokens under token.
184 CollectionAdmin,
173}185}
174186
175/// Ethereum representation of TokenPermissions (see [`up_data_structs::PropertyPermission`]) fields as an enumeration.187/// Ethereum representation of TokenPermissions (see [`up_data_structs::PropertyPermission`]) fields as an enumeration.
modifiedpallets/fungible/src/stubs/UniqueFungible.rawdiffbeforeafterboth

binary blob — no preview

modifiedpallets/fungible/src/stubs/UniqueFungible.soldiffbeforeafterboth
173 /// Return `false` if a limit not set.173 /// Return `false` if a limit not set.
174 /// @dev EVM selector for this function is: 0xf63bc572,174 /// @dev EVM selector for this function is: 0xf63bc572,
175 /// or in textual repr: collectionLimits()175 /// or in textual repr: collectionLimits()
176 function collectionLimits() public view returns (Tuple20[] memory) {176 function collectionLimits() public view returns (Tuple23[] memory) {
177 require(false, stub_error);177 require(false, stub_error);
178 dummy;178 dummy;
179 return new Tuple20[](0);179 return new Tuple23[](0);
180 }180 }
181181
182 /// Set limits for the collection.182 /// Set limits for the collection.
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
288 function collectionNestingRestrictedCollectionIds() public view returns (Tuple26 memory) {287 function collectionNestingRestrictedCollectionIds() public view returns (Tuple29 memory) {
289 require(false, stub_error);288 require(false, stub_error);
290 dummy;289 dummy;
291 return Tuple26(false, new uint256[](0));290 return Tuple29(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
298 }291 }
299292
300 /// Returns permissions for a collection293 /// Returns permissions for a collection
301 /// @dev EVM selector for this function is: 0x5b2eaf4b,294 /// @dev EVM selector for this function is: 0x5b2eaf4b,
302 /// or in textual repr: collectionNestingPermissions()295 /// or in textual repr: collectionNestingPermissions()
303<<<<<<< HEAD
304 function collectionNestingPermissions() public view returns (Tuple29[] memory) {296 function collectionNestingPermissions() public view returns (Tuple32[] memory) {
305 require(false, stub_error);297 require(false, stub_error);
306 dummy;298 dummy;
307 return new Tuple29[](0);299 return new Tuple32[](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
314 }300 }
315301
316 /// Set the collection access method.302 /// Set the collection access method.
490}476}
491477
492/// @dev anonymous struct478/// @dev anonymous struct
493<<<<<<< HEAD
494struct Tuple29 {479struct Tuple32 {
495=======
496struct Tuple27 {
497>>>>>>> 09f69700... chore: generate stubs
498 CollectionPermissions field_0;480 CollectionPermissions field_0;
499 bool field_1;481 bool field_1;
500}482}
501483
502/// @dev anonymous struct484/// @dev anonymous struct
503<<<<<<< HEAD
504struct Tuple26 {485struct Tuple29 {
505=======
506struct Tuple24 {
507>>>>>>> 09f69700... chore: generate stubs
508 bool field_0;486 bool field_0;
509 uint256[] field_1;487 uint256[] field_1;
510}488}
532}510}
533511
534/// @dev anonymous struct512/// @dev anonymous struct
535struct Tuple20 {513struct Tuple23 {
536 CollectionLimits field_0;514 CollectionLimits field_0;
537 bool field_1;515 bool field_1;
538 uint256 field_2;516 uint256 field_2;
modifiedpallets/nonfungible/src/stubs/UniqueNFT.rawdiffbeforeafterboth

binary blob — no preview

modifiedpallets/nonfungible/src/stubs/UniqueNFT.soldiffbeforeafterboth
42 /// @param permissions Permissions for keys.42 /// @param permissions Permissions for keys.
43 /// @dev EVM selector for this function is: 0xbd92983a,43 /// @dev EVM selector for this function is: 0xbd92983a,
44 /// or in textual repr: setTokenPropertyPermissions((string,(uint8,bool)[])[])44 /// or in textual repr: setTokenPropertyPermissions((string,(uint8,bool)[])[])
45<<<<<<< HEAD
46 function setTokenPropertyPermissions(Tuple59[] memory permissions) public {45 function setTokenPropertyPermissions(Tuple61[] memory permissions) public {
47=======
48 function setTokenPropertyPermissions(Tuple56[] memory permissions) public {
49>>>>>>> 9e929f90... chore: generate stubs & types
50 require(false, stub_error);46 require(false, stub_error);
51 permissions;47 permissions;
52 dummy = 0;48 dummy = 0;
55 /// @notice Get permissions for token properties.51 /// @notice Get permissions for token properties.
56 /// @dev EVM selector for this function is: 0xf23d7790,52 /// @dev EVM selector for this function is: 0xf23d7790,
57 /// or in textual repr: tokenPropertyPermissions()53 /// or in textual repr: tokenPropertyPermissions()
58<<<<<<< HEAD
59 function tokenPropertyPermissions() public view returns (Tuple59[] memory) {54 function tokenPropertyPermissions() public view returns (Tuple61[] memory) {
60 require(false, stub_error);55 require(false, stub_error);
61 dummy;56 dummy;
62 return new Tuple59[](0);57 return new Tuple61[](0);
63=======
64 function tokenPropertyPermissions() public view returns (Tuple56[] memory) {
65 require(false, stub_error);
66 dummy;
67 return new Tuple56[](0);
68>>>>>>> 9e929f90... chore: generate stubs & types
69 }58 }
7059
71 // /// @notice Set token property value.60 // /// @notice Set token property value.
155}144}
156145
157/// @dev anonymous struct146/// @dev anonymous struct
158<<<<<<< HEAD
159struct Tuple59 {147struct Tuple61 {
160 string field_0;148 string field_0;
161 Tuple57[] field_1;149 Tuple59[] field_1;
162}150}
163151
164/// @dev anonymous struct152/// @dev anonymous struct
165struct Tuple57 {153struct Tuple59 {
166=======
167struct Tuple56 {
168 string field_0;
169 Tuple54[] field_1;
170}
171
172/// @dev anonymous struct
173struct Tuple54 {
174>>>>>>> 9e929f90... chore: generate stubs & types
175 EthTokenPermissions field_0;154 EthTokenPermissions field_0;
176 bool field_1;155 bool field_1;
177}156}
332 /// Return `false` if a limit not set.311 /// Return `false` if a limit not set.
333 /// @dev EVM selector for this function is: 0xf63bc572,312 /// @dev EVM selector for this function is: 0xf63bc572,
334 /// or in textual repr: collectionLimits()313 /// or in textual repr: collectionLimits()
335 function collectionLimits() public view returns (Tuple33[] memory) {314 function collectionLimits() public view returns (Tuple35[] memory) {
336 require(false, stub_error);315 require(false, stub_error);
337 dummy;316 dummy;
338 return new Tuple33[](0);317 return new Tuple35[](0);
339 }318 }
340319
341 /// Set limits for the collection.320 /// Set limits for the collection.
443 /// Returns nesting for a collection422 /// Returns nesting for a collection
444 /// @dev EVM selector for this function is: 0x22d25bfe,423 /// @dev EVM selector for this function is: 0x22d25bfe,
445 /// or in textual repr: collectionNestingRestrictedCollectionIds()424 /// or in textual repr: collectionNestingRestrictedCollectionIds()
446<<<<<<< HEAD
447 function collectionNestingRestrictedCollectionIds() public view returns (Tuple39 memory) {425 function collectionNestingRestrictedCollectionIds() public view returns (Tuple41 memory) {
448 require(false, stub_error);426 require(false, stub_error);
449 dummy;427 dummy;
450 return Tuple39(false, new uint256[](0));428 return Tuple41(false, new uint256[](0));
451=======
452 function collectionNestingRestrictedCollectionIds() public view returns (Tuple36 memory) {
453 require(false, stub_error);
454 dummy;
455 return Tuple36(false, new uint256[](0));
456>>>>>>> 09f69700... chore: generate stubs
457 }429 }
458430
459 /// Returns permissions for a collection431 /// Returns permissions for a collection
460 /// @dev EVM selector for this function is: 0x5b2eaf4b,432 /// @dev EVM selector for this function is: 0x5b2eaf4b,
461 /// or in textual repr: collectionNestingPermissions()433 /// or in textual repr: collectionNestingPermissions()
462<<<<<<< HEAD
463 function collectionNestingPermissions() public view returns (Tuple42[] memory) {434 function collectionNestingPermissions() public view returns (Tuple44[] memory) {
464 require(false, stub_error);435 require(false, stub_error);
465 dummy;436 dummy;
466 return new Tuple42[](0);437 return new Tuple44[](0);
467=======
468 function collectionNestingPermissions() public view returns (Tuple39[] memory) {
469 require(false, stub_error);
470 dummy;
471 return new Tuple39[](0);
472>>>>>>> 09f69700... chore: generate stubs
473 }438 }
474439
475 /// Set the collection access method.440 /// Set the collection access method.
649}614}
650615
651/// @dev anonymous struct616/// @dev anonymous struct
652<<<<<<< HEAD
653struct Tuple42 {617struct Tuple44 {
654=======
655struct Tuple39 {
656>>>>>>> 09f69700... chore: generate stubs
657 CollectionPermissions field_0;618 CollectionPermissions field_0;
658 bool field_1;619 bool field_1;
659}620}
660621
661/// @dev anonymous struct622/// @dev anonymous struct
662<<<<<<< HEAD
663struct Tuple39 {623struct Tuple41 {
664=======
665struct Tuple36 {
666>>>>>>> 09f69700... chore: generate stubs
667 bool field_0;624 bool field_0;
668 uint256[] field_1;625 uint256[] field_1;
669}626}
670627
671<<<<<<< HEAD
672/// @dev [`CollectionLimits`](up_data_structs::CollectionLimits) representation for EVM.628/// @dev [`CollectionLimits`](up_data_structs::CollectionLimits) representation for EVM.
673enum CollectionLimits {629enum CollectionLimits {
674 /// @dev How many tokens can a user have on one account.630 /// @dev How many tokens can a user have on one account.
692}648}
693649
694/// @dev anonymous struct650/// @dev anonymous struct
695struct Tuple33 {651struct Tuple35 {
696 CollectionLimits field_0;652 CollectionLimits field_0;
697 bool field_1;653 bool field_1;
698 uint256 field_2;654 uint256 field_2;
699}
700
701/// @dev anonymous struct
702struct Tuple32 {
703 address field_0;
704 uint256 field_1;
705}655}
706656
707=======
708>>>>>>> 0bf15e6f... fixed tests&tuple instead of struct, refactored `refungible` pallet
709=======
710>>>>>>> 09f69700... chore: generate stubs
711/// @title ERC-721 Non-Fungible Token Standard, optional metadata extension657/// @title ERC-721 Non-Fungible Token Standard, optional metadata extension
712/// @dev See https://eips.ethereum.org/EIPS/eip-721658/// @dev See https://eips.ethereum.org/EIPS/eip-721
713/// @dev the ERC-165 identifier for this interface is 0x5b5e139f659/// @dev the ERC-165 identifier for this interface is 0x5b5e139f
modifiedpallets/refungible/src/stubs/UniqueRefungible.rawdiffbeforeafterboth

binary blob — no preview

modifiedpallets/refungible/src/stubs/UniqueRefungible.soldiffbeforeafterboth
42 /// @param permissions Permissions for keys.42 /// @param permissions Permissions for keys.
43 /// @dev EVM selector for this function is: 0xbd92983a,43 /// @dev EVM selector for this function is: 0xbd92983a,
44 /// or in textual repr: setTokenPropertyPermissions((string,(uint8,bool)[])[])44 /// or in textual repr: setTokenPropertyPermissions((string,(uint8,bool)[])[])
45<<<<<<< HEAD
46 function setTokenPropertyPermissions(Tuple58[] memory permissions) public {45 function setTokenPropertyPermissions(Tuple60[] memory permissions) public {
47=======
48 function setTokenPropertyPermissions(Tuple55[] memory permissions) public {
49>>>>>>> 9e929f90... chore: generate stubs & types
50 require(false, stub_error);46 require(false, stub_error);
51 permissions;47 permissions;
52 dummy = 0;48 dummy = 0;
55 /// @notice Get permissions for token properties.51 /// @notice Get permissions for token properties.
56 /// @dev EVM selector for this function is: 0xf23d7790,52 /// @dev EVM selector for this function is: 0xf23d7790,
57 /// or in textual repr: tokenPropertyPermissions()53 /// or in textual repr: tokenPropertyPermissions()
58<<<<<<< HEAD
59 function tokenPropertyPermissions() public view returns (Tuple58[] memory) {54 function tokenPropertyPermissions() public view returns (Tuple60[] memory) {
60 require(false, stub_error);55 require(false, stub_error);
61 dummy;56 dummy;
62 return new Tuple58[](0);57 return new Tuple60[](0);
63=======
64 function tokenPropertyPermissions() public view returns (Tuple55[] memory) {
65 require(false, stub_error);
66 dummy;
67 return new Tuple55[](0);
68>>>>>>> 9e929f90... chore: generate stubs & types
69 }58 }
7059
71 // /// @notice Set token property value.60 // /// @notice Set token property value.
155}144}
156145
157/// @dev anonymous struct146/// @dev anonymous struct
158<<<<<<< HEAD
159struct Tuple58 {147struct Tuple60 {
160 string field_0;148 string field_0;
161 Tuple56[] field_1;149 Tuple58[] field_1;
162}150}
163151
164/// @dev anonymous struct152/// @dev anonymous struct
165struct Tuple56 {153struct Tuple58 {
166=======
167struct Tuple55 {
168 string field_0;
169 Tuple53[] field_1;
170}
171
172/// @dev anonymous struct
173struct Tuple53 {
174>>>>>>> 9e929f90... chore: generate stubs & types
175 EthTokenPermissions field_0;154 EthTokenPermissions field_0;
176 bool field_1;155 bool field_1;
177}156}
332 /// Return `false` if a limit not set.311 /// Return `false` if a limit not set.
333 /// @dev EVM selector for this function is: 0xf63bc572,312 /// @dev EVM selector for this function is: 0xf63bc572,
334 /// or in textual repr: collectionLimits()313 /// or in textual repr: collectionLimits()
335 function collectionLimits() public view returns (Tuple32[] memory) {314 function collectionLimits() public view returns (Tuple34[] memory) {
336 require(false, stub_error);315 require(false, stub_error);
337 dummy;316 dummy;
338 return new Tuple32[](0);317 return new Tuple34[](0);
339 }318 }
340319
341 /// Set limits for the collection.320 /// Set limits for the collection.
443 /// Returns nesting for a collection422 /// Returns nesting for a collection
444 /// @dev EVM selector for this function is: 0x22d25bfe,423 /// @dev EVM selector for this function is: 0x22d25bfe,
445 /// or in textual repr: collectionNestingRestrictedCollectionIds()424 /// or in textual repr: collectionNestingRestrictedCollectionIds()
446<<<<<<< HEAD
447 function collectionNestingRestrictedCollectionIds() public view returns (Tuple38 memory) {425 function collectionNestingRestrictedCollectionIds() public view returns (Tuple40 memory) {
448 require(false, stub_error);426 require(false, stub_error);
449 dummy;427 dummy;
450 return Tuple38(false, new uint256[](0));428 return Tuple40(false, new uint256[](0));
451=======
452 function collectionNestingRestrictedCollectionIds() public view returns (Tuple35 memory) {
453 require(false, stub_error);
454 dummy;
455 return Tuple35(false, new uint256[](0));
456>>>>>>> 09f69700... chore: generate stubs
457 }429 }
458430
459 /// Returns permissions for a collection431 /// Returns permissions for a collection
460 /// @dev EVM selector for this function is: 0x5b2eaf4b,432 /// @dev EVM selector for this function is: 0x5b2eaf4b,
461 /// or in textual repr: collectionNestingPermissions()433 /// or in textual repr: collectionNestingPermissions()
462<<<<<<< HEAD
463 function collectionNestingPermissions() public view returns (Tuple41[] memory) {434 function collectionNestingPermissions() public view returns (Tuple43[] memory) {
464 require(false, stub_error);435 require(false, stub_error);
465 dummy;436 dummy;
466 return new Tuple41[](0);437 return new Tuple43[](0);
467=======
468 function collectionNestingPermissions() public view returns (Tuple38[] memory) {
469 require(false, stub_error);
470 dummy;
471 return new Tuple38[](0);
472>>>>>>> 09f69700... chore: generate stubs
473 }438 }
474439
475 /// Set the collection access method.440 /// Set the collection access method.
649}614}
650615
651/// @dev anonymous struct616/// @dev anonymous struct
652<<<<<<< HEAD
653struct Tuple41 {617struct Tuple43 {
654=======
655struct Tuple38 {
656>>>>>>> 09f69700... chore: generate stubs
657 CollectionPermissions field_0;618 CollectionPermissions field_0;
658 bool field_1;619 bool field_1;
659}620}
660621
661/// @dev anonymous struct622/// @dev anonymous struct
662<<<<<<< HEAD
663struct Tuple38 {623struct Tuple40 {
664=======
665struct Tuple35 {
666>>>>>>> 09f69700... chore: generate stubs
667 bool field_0;624 bool field_0;
668 uint256[] field_1;625 uint256[] field_1;
669}626}
670627
671<<<<<<< HEAD
672/// @dev [`CollectionLimits`](up_data_structs::CollectionLimits) representation for EVM.628/// @dev [`CollectionLimits`](up_data_structs::CollectionLimits) representation for EVM.
673enum CollectionLimits {629enum CollectionLimits {
674 /// @dev How many tokens can a user have on one account.630 /// @dev How many tokens can a user have on one account.
692}648}
693649
694/// @dev anonymous struct650/// @dev anonymous struct
695struct Tuple32 {651struct Tuple34 {
696 CollectionLimits field_0;652 CollectionLimits field_0;
697 bool field_1;653 bool field_1;
698 uint256 field_2;654 uint256 field_2;
699}
700
701/// @dev anonymous struct
702struct Tuple31 {
703 address field_0;
704 uint256 field_1;
705}655}
706656
707=======
708>>>>>>> 09f69700... chore: generate stubs
709/// @dev the ERC-165 identifier for this interface is 0x5b5e139f657/// @dev the ERC-165 identifier for this interface is 0x5b5e139f
710contract ERC721Metadata is Dummy, ERC165 {658contract ERC721Metadata is Dummy, ERC165 {
711 // /// @notice A descriptive name for a collection of NFTs in this contract659 // /// @notice A descriptive name for a collection of NFTs in this contract
modifiedtests/src/eth/abi/fungible.jsondiffbeforeafterboth
220 { "internalType": "bool", "name": "field_1", "type": "bool" },220 { "internalType": "bool", "name": "field_1", "type": "bool" },
221 { "internalType": "uint256", "name": "field_2", "type": "uint256" }221 { "internalType": "uint256", "name": "field_2", "type": "uint256" }
222 ],222 ],
223 "internalType": "struct Tuple20[]",223 "internalType": "struct Tuple23[]",
224 "name": "",224 "name": "",
225 "type": "tuple[]"225 "type": "tuple[]"
226 }226 }
241 },241 },
242 { "internalType": "bool", "name": "field_1", "type": "bool" }242 { "internalType": "bool", "name": "field_1", "type": "bool" }
243 ],243 ],
244<<<<<<< HEAD244 "internalType": "struct Tuple32[]",
245 "internalType": "struct Tuple29[]",
246=======
247 "internalType": "struct Tuple27[]",
248>>>>>>> 09f69700... chore: generate stubs
249 "name": "",245 "name": "",
250 "type": "tuple[]"246 "type": "tuple[]"
251 }247 }
266 "type": "uint256[]"262 "type": "uint256[]"
267 }263 }
268 ],264 ],
269<<<<<<< HEAD265 "internalType": "struct Tuple29",
270 "internalType": "struct Tuple26",
271=======
272 "internalType": "struct Tuple24",
273>>>>>>> 09f69700... chore: generate stubs
274 "name": "",266 "name": "",
275 "type": "tuple"267 "type": "tuple"
276 }268 }
modifiedtests/src/eth/abi/nonFungible.jsondiffbeforeafterboth
250 { "internalType": "bool", "name": "field_1", "type": "bool" },250 { "internalType": "bool", "name": "field_1", "type": "bool" },
251 { "internalType": "uint256", "name": "field_2", "type": "uint256" }251 { "internalType": "uint256", "name": "field_2", "type": "uint256" }
252 ],252 ],
253 "internalType": "struct Tuple33[]",253 "internalType": "struct Tuple35[]",
254 "name": "",254 "name": "",
255 "type": "tuple[]"255 "type": "tuple[]"
256 }256 }
271 },271 },
272 { "internalType": "bool", "name": "field_1", "type": "bool" }272 { "internalType": "bool", "name": "field_1", "type": "bool" }
273 ],273 ],
274<<<<<<< HEAD274 "internalType": "struct Tuple44[]",
275 "internalType": "struct Tuple42[]",
276=======
277 "internalType": "struct Tuple39[]",
278>>>>>>> 09f69700... chore: generate stubs
279 "name": "",275 "name": "",
280 "type": "tuple[]"276 "type": "tuple[]"
281 }277 }
296 "type": "uint256[]"292 "type": "uint256[]"
297 }293 }
298 ],294 ],
299<<<<<<< HEAD295 "internalType": "struct Tuple41",
300 "internalType": "struct Tuple39",
301=======
302 "internalType": "struct Tuple36",
303>>>>>>> 09f69700... chore: generate stubs
304 "name": "",296 "name": "",
305 "type": "tuple"297 "type": "tuple"
306 }298 }
770 },762 },
771 { "internalType": "bool", "name": "field_1", "type": "bool" }763 { "internalType": "bool", "name": "field_1", "type": "bool" }
772 ],764 ],
773<<<<<<< HEAD765 "internalType": "struct Tuple59[]",
774 "internalType": "struct Tuple57[]",
775=======
776 "internalType": "struct Tuple54[]",
777>>>>>>> 9e929f90... chore: generate stubs & types
778 "name": "field_1",766 "name": "field_1",
779 "type": "tuple[]"767 "type": "tuple[]"
780 }768 }
781 ],769 ],
782<<<<<<< HEAD770 "internalType": "struct Tuple61[]",
783 "internalType": "struct Tuple59[]",
784=======
785 "internalType": "struct Tuple56[]",
786>>>>>>> 9e929f90... chore: generate stubs & types
787 "name": "permissions",771 "name": "permissions",
788 "type": "tuple[]"772 "type": "tuple[]"
789 }773 }
844 },828 },
845 { "internalType": "bool", "name": "field_1", "type": "bool" }829 { "internalType": "bool", "name": "field_1", "type": "bool" }
846 ],830 ],
847<<<<<<< HEAD831 "internalType": "struct Tuple59[]",
848 "internalType": "struct Tuple57[]",
849=======
850 "internalType": "struct Tuple54[]",
851>>>>>>> 9e929f90... chore: generate stubs & types
852 "name": "field_1",832 "name": "field_1",
853 "type": "tuple[]"833 "type": "tuple[]"
854 }834 }
855 ],835 ],
856<<<<<<< HEAD836 "internalType": "struct Tuple61[]",
857 "internalType": "struct Tuple59[]",
858=======
859 "internalType": "struct Tuple56[]",
860>>>>>>> 9e929f90... chore: generate stubs & types
861 "name": "",837 "name": "",
862 "type": "tuple[]"838 "type": "tuple[]"
863 }839 }
modifiedtests/src/eth/abi/reFungible.jsondiffbeforeafterboth
232 { "internalType": "bool", "name": "field_1", "type": "bool" },232 { "internalType": "bool", "name": "field_1", "type": "bool" },
233 { "internalType": "uint256", "name": "field_2", "type": "uint256" }233 { "internalType": "uint256", "name": "field_2", "type": "uint256" }
234 ],234 ],
235 "internalType": "struct Tuple32[]",235 "internalType": "struct Tuple34[]",
236 "name": "",236 "name": "",
237 "type": "tuple[]"237 "type": "tuple[]"
238 }238 }
253 },253 },
254 { "internalType": "bool", "name": "field_1", "type": "bool" }254 { "internalType": "bool", "name": "field_1", "type": "bool" }
255 ],255 ],
256<<<<<<< HEAD256 "internalType": "struct Tuple43[]",
257 "internalType": "struct Tuple41[]",
258=======
259 "internalType": "struct Tuple38[]",
260>>>>>>> 09f69700... chore: generate stubs
261 "name": "",257 "name": "",
262 "type": "tuple[]"258 "type": "tuple[]"
263 }259 }
278 "type": "uint256[]"274 "type": "uint256[]"
279 }275 }
280 ],276 ],
281<<<<<<< HEAD277 "internalType": "struct Tuple40",
282 "internalType": "struct Tuple38",
283=======
284 "internalType": "struct Tuple35",
285>>>>>>> 09f69700... chore: generate stubs
286 "name": "",278 "name": "",
287 "type": "tuple"279 "type": "tuple"
288 }280 }
752 },744 },
753 { "internalType": "bool", "name": "field_1", "type": "bool" }745 { "internalType": "bool", "name": "field_1", "type": "bool" }
754 ],746 ],
755<<<<<<< HEAD747 "internalType": "struct Tuple58[]",
756 "internalType": "struct Tuple56[]",
757=======
758 "internalType": "struct Tuple53[]",
759>>>>>>> 9e929f90... chore: generate stubs & types
760 "name": "field_1",748 "name": "field_1",
761 "type": "tuple[]"749 "type": "tuple[]"
762 }750 }
763 ],751 ],
764<<<<<<< HEAD752 "internalType": "struct Tuple60[]",
765 "internalType": "struct Tuple58[]",
766=======
767 "internalType": "struct Tuple55[]",
768>>>>>>> 9e929f90... chore: generate stubs & types
769 "name": "permissions",753 "name": "permissions",
770 "type": "tuple[]"754 "type": "tuple[]"
771 }755 }
835 },819 },
836 { "internalType": "bool", "name": "field_1", "type": "bool" }820 { "internalType": "bool", "name": "field_1", "type": "bool" }
837 ],821 ],
838<<<<<<< HEAD822 "internalType": "struct Tuple58[]",
839 "internalType": "struct Tuple56[]",
840=======
841 "internalType": "struct Tuple53[]",
842>>>>>>> 9e929f90... chore: generate stubs & types
843 "name": "field_1",823 "name": "field_1",
844 "type": "tuple[]"824 "type": "tuple[]"
845 }825 }
846 ],826 ],
847<<<<<<< HEAD827 "internalType": "struct Tuple60[]",
848 "internalType": "struct Tuple58[]",
849=======
850 "internalType": "struct Tuple55[]",
851>>>>>>> 9e929f90... chore: generate stubs & types
852 "name": "",828 "name": "",
853 "type": "tuple[]"829 "type": "tuple[]"
854 }830 }
modifiedtests/src/eth/api/UniqueFungible.soldiffbeforeafterboth
119 /// Return `false` if a limit not set.119 /// Return `false` if a limit not set.
120 /// @dev EVM selector for this function is: 0xf63bc572,120 /// @dev EVM selector for this function is: 0xf63bc572,
121 /// or in textual repr: collectionLimits()121 /// or in textual repr: collectionLimits()
122 function collectionLimits() external view returns (Tuple19[] memory);122 function collectionLimits() external view returns (Tuple21[] memory);
123123
124 /// Set limits for the collection.124 /// Set limits for the collection.
125 /// @dev Throws error if limit not found.125 /// @dev Throws error if limit not found.
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
195 function collectionNestingRestrictedCollectionIds() external view returns (Tuple24 memory);194 function collectionNestingRestrictedCollectionIds() external view returns (Tuple26 memory);
196=======
197 function collectionNestingRestrictedCollectionIds() external view returns (Tuple22 memory);
198>>>>>>> 09f69700... chore: generate stubs
199195
200 /// Returns permissions for a collection196 /// Returns permissions for a collection
201 /// @dev EVM selector for this function is: 0x5b2eaf4b,197 /// @dev EVM selector for this function is: 0x5b2eaf4b,
202 /// or in textual repr: collectionNestingPermissions()198 /// or in textual repr: collectionNestingPermissions()
203<<<<<<< HEAD
204 function collectionNestingPermissions() external view returns (Tuple27[] memory);199 function collectionNestingPermissions() external view returns (Tuple29[] memory);
205=======
206 function collectionNestingPermissions() external view returns (Tuple25[] memory);
207>>>>>>> 09f69700... chore: generate stubs
208200
209 /// Set the collection access method.201 /// Set the collection access method.
210 /// @param mode Access mode202 /// @param mode Access mode
319}311}
320312
321/// @dev anonymous struct313/// @dev anonymous struct
322<<<<<<< HEAD
323struct Tuple27 {314struct Tuple29 {
324=======
325struct Tuple25 {
326>>>>>>> 09f69700... chore: generate stubs
327 CollectionPermissions field_0;315 CollectionPermissions field_0;
328 bool field_1;316 bool field_1;
329}317}
334}322}
335323
336/// @dev anonymous struct324/// @dev anonymous struct
337<<<<<<< HEAD
338struct Tuple24 {325struct Tuple26 {
339=======
340struct Tuple22 {
341>>>>>>> 09f69700... chore: generate stubs
342 bool field_0;326 bool field_0;
343 uint256[] field_1;327 uint256[] field_1;
344}328}
366}350}
367351
368/// @dev anonymous struct352/// @dev anonymous struct
369struct Tuple19 {353struct Tuple21 {
370 CollectionLimits field_0;354 CollectionLimits field_0;
371 bool field_1;355 bool field_1;
372 uint256 field_2;356 uint256 field_2;
modifiedtests/src/eth/api/UniqueNFT.soldiffbeforeafterboth
30 /// @param permissions Permissions for keys.30 /// @param permissions Permissions for keys.
31 /// @dev EVM selector for this function is: 0xbd92983a,31 /// @dev EVM selector for this function is: 0xbd92983a,
32 /// or in textual repr: setTokenPropertyPermissions((string,(uint8,bool)[])[])32 /// or in textual repr: setTokenPropertyPermissions((string,(uint8,bool)[])[])
33<<<<<<< HEAD
34 function setTokenPropertyPermissions(Tuple52[] memory permissions) external;33 function setTokenPropertyPermissions(Tuple53[] memory permissions) external;
35=======
36 function setTokenPropertyPermissions(Tuple49[] memory permissions) external;
37>>>>>>> 9e929f90... chore: generate stubs & types
3834
39 /// @notice Get permissions for token properties.35 /// @notice Get permissions for token properties.
40 /// @dev EVM selector for this function is: 0xf23d7790,36 /// @dev EVM selector for this function is: 0xf23d7790,
41 /// or in textual repr: tokenPropertyPermissions()37 /// or in textual repr: tokenPropertyPermissions()
42<<<<<<< HEAD
43 function tokenPropertyPermissions() external view returns (Tuple52[] memory);38 function tokenPropertyPermissions() external view returns (Tuple53[] memory);
44=======
45 function tokenPropertyPermissions() external view returns (Tuple49[] memory);
46>>>>>>> 9e929f90... chore: generate stubs & types
4739
48 // /// @notice Set token property value.40 // /// @notice Set token property value.
49 // /// @dev Throws error if `msg.sender` has no permission to edit the property.41 // /// @dev Throws error if `msg.sender` has no permission to edit the property.
105}97}
10698
107/// @dev anonymous struct99/// @dev anonymous struct
108<<<<<<< HEAD
109struct Tuple52 {100struct Tuple53 {
110 string field_0;101 string field_0;
111 Tuple50[] field_1;102 Tuple51[] field_1;
112}103}
113104
114/// @dev anonymous struct105/// @dev anonymous struct
115struct Tuple50 {106struct Tuple51 {
116=======
117struct Tuple49 {
118 string field_0;
119 Tuple47[] field_1;
120}
121
122/// @dev anonymous struct
123struct Tuple47 {
124>>>>>>> 9e929f90... chore: generate stubs & types
125 EthTokenPermissions field_0;107 EthTokenPermissions field_0;
126 bool field_1;108 bool field_1;
127}109}
233 /// Return `false` if a limit not set.215 /// Return `false` if a limit not set.
234 /// @dev EVM selector for this function is: 0xf63bc572,216 /// @dev EVM selector for this function is: 0xf63bc572,
235 /// or in textual repr: collectionLimits()217 /// or in textual repr: collectionLimits()
236 function collectionLimits() external view returns (Tuple30[] memory);218 function collectionLimits() external view returns (Tuple31[] memory);
237219
238 /// Set limits for the collection.220 /// Set limits for the collection.
239 /// @dev Throws error if limit not found.221 /// @dev Throws error if limit not found.
305 /// Returns nesting for a collection287 /// Returns nesting for a collection
306 /// @dev EVM selector for this function is: 0x22d25bfe,288 /// @dev EVM selector for this function is: 0x22d25bfe,
307 /// or in textual repr: collectionNestingRestrictedCollectionIds()289 /// or in textual repr: collectionNestingRestrictedCollectionIds()
308<<<<<<< HEAD
309 function collectionNestingRestrictedCollectionIds() external view returns (Tuple35 memory);290 function collectionNestingRestrictedCollectionIds() external view returns (Tuple36 memory);
310=======
311 function collectionNestingRestrictedCollectionIds() external view returns (Tuple32 memory);
312>>>>>>> 09f69700... chore: generate stubs
313291
314 /// Returns permissions for a collection292 /// Returns permissions for a collection
315 /// @dev EVM selector for this function is: 0x5b2eaf4b,293 /// @dev EVM selector for this function is: 0x5b2eaf4b,
316 /// or in textual repr: collectionNestingPermissions()294 /// or in textual repr: collectionNestingPermissions()
317<<<<<<< HEAD
318 function collectionNestingPermissions() external view returns (Tuple38[] memory);295 function collectionNestingPermissions() external view returns (Tuple39[] memory);
319=======
320 function collectionNestingPermissions() external view returns (Tuple35[] memory);
321>>>>>>> 09f69700... chore: generate stubs
322296
323 /// Set the collection access method.297 /// Set the collection access method.
324 /// @param mode Access mode298 /// @param mode Access mode
433}407}
434408
435/// @dev anonymous struct409/// @dev anonymous struct
436<<<<<<< HEAD
437struct Tuple38 {410struct Tuple39 {
438=======
439struct Tuple35 {
440>>>>>>> 09f69700... chore: generate stubs
441 CollectionPermissions field_0;411 CollectionPermissions field_0;
442 bool field_1;412 bool field_1;
443}413}
448}418}
449419
450/// @dev anonymous struct420/// @dev anonymous struct
451<<<<<<< HEAD
452struct Tuple35 {421struct Tuple36 {
453=======
454struct Tuple32 {
455>>>>>>> 09f69700... chore: generate stubs
456 bool field_0;422 bool field_0;
457 uint256[] field_1;423 uint256[] field_1;
458}424}
459425
460<<<<<<< HEAD
461/// @dev [`CollectionLimits`](up_data_structs::CollectionLimits) representation for EVM.426/// @dev [`CollectionLimits`](up_data_structs::CollectionLimits) representation for EVM.
462enum CollectionLimits {427enum CollectionLimits {
463 /// @dev How many tokens can a user have on one account.428 /// @dev How many tokens can a user have on one account.
481}446}
482447
483/// @dev anonymous struct448/// @dev anonymous struct
484struct Tuple30 {449struct Tuple31 {
485 CollectionLimits field_0;450 CollectionLimits field_0;
486 bool field_1;451 bool field_1;
487 uint256 field_2;452 uint256 field_2;
488}
489
490/// @dev anonymous struct
491struct Tuple27 {
492 address field_0;
493 uint256 field_1;
494}453}
495454
496=======
497>>>>>>> 0bf15e6f... fixed tests&tuple instead of struct, refactored `refungible` pallet
498=======
499>>>>>>> 09f69700... chore: generate stubs
500/// @title ERC-721 Non-Fungible Token Standard, optional metadata extension455/// @title ERC-721 Non-Fungible Token Standard, optional metadata extension
501/// @dev See https://eips.ethereum.org/EIPS/eip-721456/// @dev See https://eips.ethereum.org/EIPS/eip-721
502/// @dev the ERC-165 identifier for this interface is 0x5b5e139f457/// @dev the ERC-165 identifier for this interface is 0x5b5e139f
modifiedtests/src/eth/api/UniqueRefungible.soldiffbeforeafterboth
30 /// @param permissions Permissions for keys.30 /// @param permissions Permissions for keys.
31 /// @dev EVM selector for this function is: 0xbd92983a,31 /// @dev EVM selector for this function is: 0xbd92983a,
32 /// or in textual repr: setTokenPropertyPermissions((string,(uint8,bool)[])[])32 /// or in textual repr: setTokenPropertyPermissions((string,(uint8,bool)[])[])
33<<<<<<< HEAD
34 function setTokenPropertyPermissions(Tuple51[] memory permissions) external;33 function setTokenPropertyPermissions(Tuple52[] memory permissions) external;
35=======
36 function setTokenPropertyPermissions(Tuple48[] memory permissions) external;
37>>>>>>> 9e929f90... chore: generate stubs & types
3834
39 /// @notice Get permissions for token properties.35 /// @notice Get permissions for token properties.
40 /// @dev EVM selector for this function is: 0xf23d7790,36 /// @dev EVM selector for this function is: 0xf23d7790,
41 /// or in textual repr: tokenPropertyPermissions()37 /// or in textual repr: tokenPropertyPermissions()
42<<<<<<< HEAD
43 function tokenPropertyPermissions() external view returns (Tuple51[] memory);38 function tokenPropertyPermissions() external view returns (Tuple52[] memory);
44=======
45 function tokenPropertyPermissions() external view returns (Tuple48[] memory);
46>>>>>>> 9e929f90... chore: generate stubs & types
4739
48 // /// @notice Set token property value.40 // /// @notice Set token property value.
49 // /// @dev Throws error if `msg.sender` has no permission to edit the property.41 // /// @dev Throws error if `msg.sender` has no permission to edit the property.
105}97}
10698
107/// @dev anonymous struct99/// @dev anonymous struct
108<<<<<<< HEAD
109struct Tuple51 {100struct Tuple52 {
110 string field_0;101 string field_0;
111 Tuple49[] field_1;102 Tuple50[] field_1;
112}103}
113104
114/// @dev anonymous struct105/// @dev anonymous struct
115struct Tuple49 {106struct Tuple50 {
116=======
117struct Tuple48 {
118 string field_0;
119 Tuple46[] field_1;
120}
121
122/// @dev anonymous struct
123struct Tuple46 {
124>>>>>>> 9e929f90... chore: generate stubs & types
125 EthTokenPermissions field_0;107 EthTokenPermissions field_0;
126 bool field_1;108 bool field_1;
127}109}
233 /// Return `false` if a limit not set.215 /// Return `false` if a limit not set.
234 /// @dev EVM selector for this function is: 0xf63bc572,216 /// @dev EVM selector for this function is: 0xf63bc572,
235 /// or in textual repr: collectionLimits()217 /// or in textual repr: collectionLimits()
236 function collectionLimits() external view returns (Tuple29[] memory);218 function collectionLimits() external view returns (Tuple30[] memory);
237219
238 /// Set limits for the collection.220 /// Set limits for the collection.
239 /// @dev Throws error if limit not found.221 /// @dev Throws error if limit not found.
305 /// Returns nesting for a collection287 /// Returns nesting for a collection
306 /// @dev EVM selector for this function is: 0x22d25bfe,288 /// @dev EVM selector for this function is: 0x22d25bfe,
307 /// or in textual repr: collectionNestingRestrictedCollectionIds()289 /// or in textual repr: collectionNestingRestrictedCollectionIds()
308<<<<<<< HEAD
309 function collectionNestingRestrictedCollectionIds() external view returns (Tuple34 memory);290 function collectionNestingRestrictedCollectionIds() external view returns (Tuple35 memory);
310=======
311 function collectionNestingRestrictedCollectionIds() external view returns (Tuple31 memory);
312>>>>>>> 09f69700... chore: generate stubs
313291
314 /// Returns permissions for a collection292 /// Returns permissions for a collection
315 /// @dev EVM selector for this function is: 0x5b2eaf4b,293 /// @dev EVM selector for this function is: 0x5b2eaf4b,
316 /// or in textual repr: collectionNestingPermissions()294 /// or in textual repr: collectionNestingPermissions()
317<<<<<<< HEAD
318 function collectionNestingPermissions() external view returns (Tuple37[] memory);295 function collectionNestingPermissions() external view returns (Tuple38[] memory);
319=======
320 function collectionNestingPermissions() external view returns (Tuple34[] memory);
321>>>>>>> 09f69700... chore: generate stubs
322296
323 /// Set the collection access method.297 /// Set the collection access method.
324 /// @param mode Access mode298 /// @param mode Access mode
433}407}
434408
435/// @dev anonymous struct409/// @dev anonymous struct
436<<<<<<< HEAD
437struct Tuple37 {410struct Tuple38 {
438=======
439struct Tuple34 {
440>>>>>>> 09f69700... chore: generate stubs
441 CollectionPermissions field_0;411 CollectionPermissions field_0;
442 bool field_1;412 bool field_1;
443}413}
448}418}
449419
450/// @dev anonymous struct420/// @dev anonymous struct
451<<<<<<< HEAD
452struct Tuple34 {421struct Tuple35 {
453=======
454struct Tuple31 {
455>>>>>>> 09f69700... chore: generate stubs
456 bool field_0;422 bool field_0;
457 uint256[] field_1;423 uint256[] field_1;
458}424}
459425
460<<<<<<< HEAD
461/// @dev [`CollectionLimits`](up_data_structs::CollectionLimits) representation for EVM.426/// @dev [`CollectionLimits`](up_data_structs::CollectionLimits) representation for EVM.
462enum CollectionLimits {427enum CollectionLimits {
463 /// @dev How many tokens can a user have on one account.428 /// @dev How many tokens can a user have on one account.
481}446}
482447
483/// @dev anonymous struct448/// @dev anonymous struct
484struct Tuple29 {449struct Tuple30 {
485 CollectionLimits field_0;450 CollectionLimits field_0;
486 bool field_1;451 bool field_1;
487 uint256 field_2;452 uint256 field_2;
488}
489
490/// @dev anonymous struct
491struct Tuple26 {
492 address field_0;
493 uint256 field_1;
494}453}
495454
496=======
497>>>>>>> 0bf15e6f... fixed tests&tuple instead of struct, refactored `refungible` pallet
498=======
499>>>>>>> 09f69700... chore: generate stubs
500/// @dev the ERC-165 identifier for this interface is 0x5b5e139f455/// @dev the ERC-165 identifier for this interface is 0x5b5e139f
501interface ERC721Metadata is Dummy, ERC165 {456interface ERC721Metadata is Dummy, ERC165 {
502 // /// @notice A descriptive name for a collection of NFTs in this contract457 // /// @notice A descriptive name for a collection of NFTs in this contract