git.delta.rocks / unique-network / refs/commits / 7c531595588c

difftreelog

chore generate stubs

PraetorP2022-12-15parent: #62800e3.patch.diff
in: master

11 files changed

modifiedpallets/fungible/src/stubs/UniqueFungible.rawdiffbeforeafterboth

binary blob — no preview

modifiedpallets/fungible/src/stubs/UniqueFungible.soldiffbeforeafterboth
18}18}
1919
20/// @title A contract that allows you to work with collections.20/// @title A contract that allows you to work with collections.
21/// @dev the ERC-165 identifier for this interface is 0xb5e1747f21/// @dev the ERC-165 identifier for this interface is 0x81172a75
22contract Collection is Dummy, ERC165 {22contract Collection is Dummy, ERC165 {
23 // /// Set collection property.23 // /// Set collection property.
24 // ///24 // ///
191 /// "ownerCanTransfer",191 /// "ownerCanTransfer",
192 /// "ownerCanDestroy",192 /// "ownerCanDestroy",
193 /// "transfersEnabled"193 /// "transfersEnabled"
194 /// @param status enable\disable limit. Works only with `true`.
194 /// @param value Value of the limit.195 /// @param value Value of the limit.
195 /// @dev EVM selector for this function is: 0x88150bd0,196 /// @dev EVM selector for this function is: 0x88150bd0,
196 /// or in textual repr: setCollectionLimit(uint8,bool,uint256)197 /// or in textual repr: setCollectionLimit(uint8,bool,uint256)
283 /// Returns nesting for a collection284 /// Returns nesting for a collection
284 /// @dev EVM selector for this function is: 0x22d25bfe,285 /// @dev EVM selector for this function is: 0x22d25bfe,
285 /// or in textual repr: collectionNestingRestrictedCollectionIds()286 /// or in textual repr: collectionNestingRestrictedCollectionIds()
286 function collectionNestingRestrictedCollectionIds() public view returns (Tuple21 memory) {287 function collectionNestingRestrictedCollectionIds() public view returns (Tuple26 memory) {
287 require(false, stub_error);288 require(false, stub_error);
288 dummy;289 dummy;
289 return Tuple21(false, new uint256[](0));290 return Tuple26(false, new uint256[](0));
290 }291 }
291292
292 /// Returns permissions for a collection293 /// Returns permissions for a collection
293 /// @dev EVM selector for this function is: 0x5b2eaf4b,294 /// @dev EVM selector for this function is: 0x5b2eaf4b,
294 /// or in textual repr: collectionNestingPermissions()295 /// or in textual repr: collectionNestingPermissions()
295 function collectionNestingPermissions() public view returns (Tuple24[] memory) {296 function collectionNestingPermissions() public view returns (Tuple29[] memory) {
296 require(false, stub_error);297 require(false, stub_error);
297 dummy;298 dummy;
298 return new Tuple24[](0);299 return new Tuple29[](0);
299 }300 }
300301
301 /// Set the collection access method.302 /// Set the collection access method.
475}476}
476477
477/// @dev anonymous struct478/// @dev anonymous struct
478struct Tuple24 {479struct Tuple29 {
479 CollectionPermissions field_0;480 CollectionPermissions field_0;
480 bool field_1;481 bool field_1;
481}482}
482483
483/// @dev anonymous struct484/// @dev anonymous struct
484struct Tuple21 {485struct Tuple26 {
485 bool field_0;486 bool field_0;
486 uint256[] field_1;487 uint256[] field_1;
487}488}
489
490enum CollectionLimits {
491 AccountTokenOwnership,
492 SponsoredDataSize,
493 SponsoredDataRateLimit,
494 TokenLimit,
495 SponsorTransferTimeout,
496 SponsorApproveTimeout,
497 OwnerCanTransfer,
498 OwnerCanDestroy,
499 TransferEnabled
500}
501
502/// @dev anonymous struct
503struct Tuple20 {
504 CollectionLimits field_0;
505 bool field_1;
506 uint256 field_2;
507}
488508
489/// @dev Property struct509/// @dev Property struct
490struct Property {510struct Property {
modifiedpallets/nonfungible/src/stubs/UniqueNFT.rawdiffbeforeafterboth

binary blob — no preview

modifiedpallets/nonfungible/src/stubs/UniqueNFT.soldiffbeforeafterboth
151}151}
152152
153/// @title A contract that allows you to work with collections.153/// @title A contract that allows you to work with collections.
154/// @dev the ERC-165 identifier for this interface is 0xb5e1747f154/// @dev the ERC-165 identifier for this interface is 0x81172a75
155contract Collection is Dummy, ERC165 {155contract Collection is Dummy, ERC165 {
156 // /// Set collection property.156 // /// Set collection property.
157 // ///157 // ///
324 /// "ownerCanTransfer",324 /// "ownerCanTransfer",
325 /// "ownerCanDestroy",325 /// "ownerCanDestroy",
326 /// "transfersEnabled"326 /// "transfersEnabled"
327 /// @param status enable\disable limit. Works only with `true`.
327 /// @param value Value of the limit.328 /// @param value Value of the limit.
328 /// @dev EVM selector for this function is: 0x88150bd0,329 /// @dev EVM selector for this function is: 0x88150bd0,
329 /// or in textual repr: setCollectionLimit(uint8,bool,uint256)330 /// or in textual repr: setCollectionLimit(uint8,bool,uint256)
416 /// Returns nesting for a collection417 /// Returns nesting for a collection
417 /// @dev EVM selector for this function is: 0x22d25bfe,418 /// @dev EVM selector for this function is: 0x22d25bfe,
418 /// or in textual repr: collectionNestingRestrictedCollectionIds()419 /// or in textual repr: collectionNestingRestrictedCollectionIds()
419 function collectionNestingRestrictedCollectionIds() public view returns (Tuple34 memory) {420 function collectionNestingRestrictedCollectionIds() public view returns (Tuple39 memory) {
420 require(false, stub_error);421 require(false, stub_error);
421 dummy;422 dummy;
422 return Tuple34(false, new uint256[](0));423 return Tuple39(false, new uint256[](0));
423 }424 }
424425
425 /// Returns permissions for a collection426 /// Returns permissions for a collection
426 /// @dev EVM selector for this function is: 0x5b2eaf4b,427 /// @dev EVM selector for this function is: 0x5b2eaf4b,
427 /// or in textual repr: collectionNestingPermissions()428 /// or in textual repr: collectionNestingPermissions()
428 function collectionNestingPermissions() public view returns (Tuple37[] memory) {429 function collectionNestingPermissions() public view returns (Tuple42[] memory) {
429 require(false, stub_error);430 require(false, stub_error);
430 dummy;431 dummy;
431 return new Tuple37[](0);432 return new Tuple42[](0);
432 }433 }
433434
434 /// Set the collection access method.435 /// Set the collection access method.
608}609}
609610
610/// @dev anonymous struct611/// @dev anonymous struct
611struct Tuple37 {612struct Tuple42 {
612 CollectionPermissions field_0;613 CollectionPermissions field_0;
613 bool field_1;614 bool field_1;
614}615}
615616
616/// @dev anonymous struct617/// @dev anonymous struct
617struct Tuple34 {618struct Tuple39 {
618 bool field_0;619 bool field_0;
619 uint256[] field_1;620 uint256[] field_1;
620}621}
622
623enum CollectionLimits {
624 AccountTokenOwnership,
625 SponsoredDataSize,
626 SponsoredDataRateLimit,
627 TokenLimit,
628 SponsorTransferTimeout,
629 SponsorApproveTimeout,
630 OwnerCanTransfer,
631 OwnerCanDestroy,
632 TransferEnabled
633}
634
635/// @dev anonymous struct
636struct Tuple33 {
637 CollectionLimits field_0;
638 bool field_1;
639 uint256 field_2;
640}
621641
622/// @dev anonymous struct642/// @dev anonymous struct
623struct Tuple30 {643struct Tuple30 {
modifiedpallets/refungible/src/stubs/UniqueRefungible.soldiffbeforeafterboth
152}152}
153153
154/// @title A contract that allows you to work with collections.154/// @title A contract that allows you to work with collections.
155/// @dev the ERC-165 identifier for this interface is 0xb5e1747f155/// @dev the ERC-165 identifier for this interface is 0x81172a75
156contract Collection is Dummy, ERC165 {156contract Collection is Dummy, ERC165 {
157 // /// Set collection property.157 // /// Set collection property.
158 // ///158 // ///
325 /// "ownerCanTransfer",325 /// "ownerCanTransfer",
326 /// "ownerCanDestroy",326 /// "ownerCanDestroy",
327 /// "transfersEnabled"327 /// "transfersEnabled"
328 /// @param status enable\disable limit. Works only with `true`.
328 /// @param value Value of the limit.329 /// @param value Value of the limit.
329 /// @dev EVM selector for this function is: 0x88150bd0,330 /// @dev EVM selector for this function is: 0x88150bd0,
330 /// or in textual repr: setCollectionLimit(uint8,bool,uint256)331 /// or in textual repr: setCollectionLimit(uint8,bool,uint256)
417 /// Returns nesting for a collection418 /// Returns nesting for a collection
418 /// @dev EVM selector for this function is: 0x22d25bfe,419 /// @dev EVM selector for this function is: 0x22d25bfe,
419 /// or in textual repr: collectionNestingRestrictedCollectionIds()420 /// or in textual repr: collectionNestingRestrictedCollectionIds()
420 function collectionNestingRestrictedCollectionIds() public view returns (Tuple33 memory) {421 function collectionNestingRestrictedCollectionIds() public view returns (Tuple38 memory) {
421 require(false, stub_error);422 require(false, stub_error);
422 dummy;423 dummy;
423 return Tuple33(false, new uint256[](0));424 return Tuple38(false, new uint256[](0));
424 }425 }
425426
426 /// Returns permissions for a collection427 /// Returns permissions for a collection
427 /// @dev EVM selector for this function is: 0x5b2eaf4b,428 /// @dev EVM selector for this function is: 0x5b2eaf4b,
428 /// or in textual repr: collectionNestingPermissions()429 /// or in textual repr: collectionNestingPermissions()
429 function collectionNestingPermissions() public view returns (Tuple36[] memory) {430 function collectionNestingPermissions() public view returns (Tuple41[] memory) {
430 require(false, stub_error);431 require(false, stub_error);
431 dummy;432 dummy;
432 return new Tuple36[](0);433 return new Tuple41[](0);
433 }434 }
434435
435 /// Set the collection access method.436 /// Set the collection access method.
609}610}
610611
611/// @dev anonymous struct612/// @dev anonymous struct
612struct Tuple36 {613struct Tuple41 {
613 CollectionPermissions field_0;614 CollectionPermissions field_0;
614 bool field_1;615 bool field_1;
615}616}
616617
617/// @dev anonymous struct618/// @dev anonymous struct
618struct Tuple33 {619struct Tuple38 {
619 bool field_0;620 bool field_0;
620 uint256[] field_1;621 uint256[] field_1;
621}622}
623
624enum CollectionLimits {
625 AccountTokenOwnership,
626 SponsoredDataSize,
627 SponsoredDataRateLimit,
628 TokenLimit,
629 SponsorTransferTimeout,
630 SponsorApproveTimeout,
631 OwnerCanTransfer,
632 OwnerCanDestroy,
633 TransferEnabled
634}
635
636/// @dev anonymous struct
637struct Tuple32 {
638 CollectionLimits field_0;
639 bool field_1;
640 uint256 field_2;
641}
622642
623/// @dev anonymous struct643/// @dev anonymous struct
624struct Tuple29 {644struct Tuple29 {
modifiedtests/src/eth/abi/fungible.jsondiffbeforeafterboth
208 },208 },
209 {209 {
210 "inputs": [],210 "inputs": [],
211<<<<<<< HEAD
212 "name": "collectionNestingPermissions",
213=======
214 "name": "collectionLimits",211 "name": "collectionLimits",
215>>>>>>> 32e011ce... added `collectionLimits` function in `Collection` interface, changed signture for `setCollectionLimit`
216 "outputs": [212 "outputs": [
217 {213 {
218 "components": [214 "components": [
219 {215 {
220<<<<<<< HEAD216 "internalType": "enum CollectionLimits",
221 "internalType": "enum CollectionPermissions",
222 "name": "field_0",217 "name": "field_0",
223 "type": "uint8"218 "type": "uint8"
224 },219 },
225 { "internalType": "bool", "name": "field_1", "type": "bool" }220 { "internalType": "bool", "name": "field_1", "type": "bool" },
221 { "internalType": "uint256", "name": "field_2", "type": "uint256" }
226 ],222 ],
227 "internalType": "struct Tuple24[]",223 "internalType": "struct Tuple20[]",
228=======224 "name": "",
225 "type": "tuple[]"
226 }
227 ],
228 "stateMutability": "view",
229 "type": "function"
230 },
231 {
232 "inputs": [],
233 "name": "collectionNestingPermissions",
234 "outputs": [
235 {
236 "components": [
237 {
229 "internalType": "enum CollectionLimits",238 "internalType": "enum CollectionPermissions",
230 "name": "field_0",239 "name": "field_0",
231 "type": "uint8"240 "type": "uint8"
232 },241 },
233 { "internalType": "bool", "name": "field_1", "type": "bool" },242 { "internalType": "bool", "name": "field_1", "type": "bool" }
234 { "internalType": "uint256", "name": "field_2", "type": "uint256" }
235 ],243 ],
236 "internalType": "struct Tuple20[]",244 "internalType": "struct Tuple29[]",
237>>>>>>> 32e011ce... added `collectionLimits` function in `Collection` interface, changed signture for `setCollectionLimit`
238 "name": "",245 "name": "",
239 "type": "tuple[]"246 "type": "tuple[]"
240 }247 }
244 },251 },
245 {252 {
246 "inputs": [],253 "inputs": [],
247<<<<<<< HEAD
248 "name": "collectionNestingRestrictedCollectionIds",254 "name": "collectionNestingRestrictedCollectionIds",
249 "outputs": [255 "outputs": [
250 {256 {
256 "type": "uint256[]"262 "type": "uint256[]"
257 }263 }
258 ],264 ],
259 "internalType": "struct Tuple21",265 "internalType": "struct Tuple26",
260 "name": "",266 "name": "",
261 "type": "tuple"267 "type": "tuple"
262 }268 }
266 },272 },
267 {273 {
268 "inputs": [],274 "inputs": [],
269=======
270>>>>>>> 32e011ce... added `collectionLimits` function in `Collection` interface, changed signture for `setCollectionLimit`
271 "name": "collectionOwner",275 "name": "collectionOwner",
272 "outputs": [276 "outputs": [
273 {277 {
modifiedtests/src/eth/abi/nonFungible.jsondiffbeforeafterboth
236 "stateMutability": "view",236 "stateMutability": "view",
237 "type": "function"237 "type": "function"
238 },238 },
239 {
240 "inputs": [],
241 "name": "collectionLimits",
242 "outputs": [
243 {
244 "components": [
245 {
246 "internalType": "enum CollectionLimits",
247 "name": "field_0",
248 "type": "uint8"
249 },
250 { "internalType": "bool", "name": "field_1", "type": "bool" },
251 { "internalType": "uint256", "name": "field_2", "type": "uint256" }
252 ],
253 "internalType": "struct Tuple33[]",
254 "name": "",
255 "type": "tuple[]"
256 }
257 ],
258 "stateMutability": "view",
259 "type": "function"
260 },
239 {261 {
240 "inputs": [],262 "inputs": [],
241 "name": "collectionNestingPermissions",263 "name": "collectionNestingPermissions",
249 },271 },
250 { "internalType": "bool", "name": "field_1", "type": "bool" }272 { "internalType": "bool", "name": "field_1", "type": "bool" }
251 ],273 ],
252 "internalType": "struct Tuple37[]",274 "internalType": "struct Tuple42[]",
253 "name": "",275 "name": "",
254 "type": "tuple[]"276 "type": "tuple[]"
255 }277 }
270 "type": "uint256[]"292 "type": "uint256[]"
271 }293 }
272 ],294 ],
273 "internalType": "struct Tuple34",295 "internalType": "struct Tuple39",
274 "name": "",296 "name": "",
275 "type": "tuple"297 "type": "tuple"
276 }298 }
modifiedtests/src/eth/abi/reFungible.jsondiffbeforeafterboth
218 "stateMutability": "view",218 "stateMutability": "view",
219 "type": "function"219 "type": "function"
220 },220 },
221 {
222 "inputs": [],
223 "name": "collectionLimits",
224 "outputs": [
225 {
226 "components": [
227 {
228 "internalType": "enum CollectionLimits",
229 "name": "field_0",
230 "type": "uint8"
231 },
232 { "internalType": "bool", "name": "field_1", "type": "bool" },
233 { "internalType": "uint256", "name": "field_2", "type": "uint256" }
234 ],
235 "internalType": "struct Tuple32[]",
236 "name": "",
237 "type": "tuple[]"
238 }
239 ],
240 "stateMutability": "view",
241 "type": "function"
242 },
221 {243 {
222 "inputs": [],244 "inputs": [],
223 "name": "collectionNestingPermissions",245 "name": "collectionNestingPermissions",
231 },253 },
232 { "internalType": "bool", "name": "field_1", "type": "bool" }254 { "internalType": "bool", "name": "field_1", "type": "bool" }
233 ],255 ],
234 "internalType": "struct Tuple36[]",256 "internalType": "struct Tuple41[]",
235 "name": "",257 "name": "",
236 "type": "tuple[]"258 "type": "tuple[]"
237 }259 }
252 "type": "uint256[]"274 "type": "uint256[]"
253 }275 }
254 ],276 ],
255 "internalType": "struct Tuple33",277 "internalType": "struct Tuple38",
256 "name": "",278 "name": "",
257 "type": "tuple"279 "type": "tuple"
258 }280 }
modifiedtests/src/eth/api/UniqueFungible.soldiffbeforeafterboth
13}13}
1414
15/// @title A contract that allows you to work with collections.15/// @title A contract that allows you to work with collections.
16<<<<<<< HEAD
17/// @dev the ERC-165 identifier for this interface is 0xb5e1747f16/// @dev the ERC-165 identifier for this interface is 0x81172a75
18=======
19/// @dev the ERC-165 identifier for this interface is 0xf8ebdec0
20>>>>>>> 32e011ce... added `collectionLimits` function in `Collection` interface, changed signture for `setCollectionLimit`
21interface Collection is Dummy, ERC165 {17interface Collection is Dummy, ERC165 {
22 // /// Set collection property.18 // /// Set collection property.
23 // ///19 // ///
137 /// "ownerCanTransfer",133 /// "ownerCanTransfer",
138 /// "ownerCanDestroy",134 /// "ownerCanDestroy",
139 /// "transfersEnabled"135 /// "transfersEnabled"
136 /// @param status enable\disable limit. Works only with `true`.
140 /// @param value Value of the limit.137 /// @param value Value of the limit.
141 /// @dev EVM selector for this function is: 0x88150bd0,138 /// @dev EVM selector for this function is: 0x88150bd0,
142 /// or in textual repr: setCollectionLimit(uint8,bool,uint256)139 /// or in textual repr: setCollectionLimit(uint8,bool,uint256)
194 /// Returns nesting for a collection191 /// Returns nesting for a collection
195 /// @dev EVM selector for this function is: 0x22d25bfe,192 /// @dev EVM selector for this function is: 0x22d25bfe,
196 /// or in textual repr: collectionNestingRestrictedCollectionIds()193 /// or in textual repr: collectionNestingRestrictedCollectionIds()
197 function collectionNestingRestrictedCollectionIds() external view returns (Tuple20 memory);194 function collectionNestingRestrictedCollectionIds() external view returns (Tuple24 memory);
198195
199 /// Returns permissions for a collection196 /// Returns permissions for a collection
200 /// @dev EVM selector for this function is: 0x5b2eaf4b,197 /// @dev EVM selector for this function is: 0x5b2eaf4b,
201 /// or in textual repr: collectionNestingPermissions()198 /// or in textual repr: collectionNestingPermissions()
202 function collectionNestingPermissions() external view returns (Tuple23[] memory);199 function collectionNestingPermissions() external view returns (Tuple27[] memory);
203200
204 /// Set the collection access method.201 /// Set the collection access method.
205 /// @param mode Access mode202 /// @param mode Access mode
313 uint256 sub;310 uint256 sub;
314}311}
315312
316<<<<<<< HEAD
317/// @dev anonymous struct313/// @dev anonymous struct
318struct Tuple23 {314struct Tuple27 {
319 CollectionPermissions field_0;315 CollectionPermissions field_0;
320 bool field_1;316 bool field_1;
321}317}
326}322}
327323
328/// @dev anonymous struct324/// @dev anonymous struct
329struct Tuple20 {325struct Tuple24 {
330 bool field_0;326 bool field_0;
331 uint256[] field_1;327 uint256[] field_1;
332=======328}
329
333enum CollectionLimits {330enum CollectionLimits {
334 AccountTokenOwnership,331 AccountTokenOwnership,
335 SponsoredDataSize,332 SponsoredDataSize,
347 CollectionLimits field_0;344 CollectionLimits field_0;
348 bool field_1;345 bool field_1;
349 uint256 field_2;346 uint256 field_2;
350>>>>>>> 32e011ce... added `collectionLimits` function in `Collection` interface, changed signture for `setCollectionLimit`
351}347}
352348
353/// @dev Property struct349/// @dev Property struct
modifiedtests/src/eth/api/UniqueNFT.soldiffbeforeafterboth
104}104}
105105
106/// @title A contract that allows you to work with collections.106/// @title A contract that allows you to work with collections.
107<<<<<<< HEAD
108/// @dev the ERC-165 identifier for this interface is 0xb5e1747f107/// @dev the ERC-165 identifier for this interface is 0x81172a75
109=======
110/// @dev the ERC-165 identifier for this interface is 0xf8ebdec0
111>>>>>>> 32e011ce... added `collectionLimits` function in `Collection` interface, changed signture for `setCollectionLimit`
112interface Collection is Dummy, ERC165 {108interface Collection is Dummy, ERC165 {
113 // /// Set collection property.109 // /// Set collection property.
114 // ///110 // ///
228 /// "ownerCanTransfer",224 /// "ownerCanTransfer",
229 /// "ownerCanDestroy",225 /// "ownerCanDestroy",
230 /// "transfersEnabled"226 /// "transfersEnabled"
227 /// @param status enable\disable limit. Works only with `true`.
231 /// @param value Value of the limit.228 /// @param value Value of the limit.
232 /// @dev EVM selector for this function is: 0x88150bd0,229 /// @dev EVM selector for this function is: 0x88150bd0,
233 /// or in textual repr: setCollectionLimit(uint8,bool,uint256)230 /// or in textual repr: setCollectionLimit(uint8,bool,uint256)
285 /// Returns nesting for a collection282 /// Returns nesting for a collection
286 /// @dev EVM selector for this function is: 0x22d25bfe,283 /// @dev EVM selector for this function is: 0x22d25bfe,
287 /// or in textual repr: collectionNestingRestrictedCollectionIds()284 /// or in textual repr: collectionNestingRestrictedCollectionIds()
288 function collectionNestingRestrictedCollectionIds() external view returns (Tuple31 memory);285 function collectionNestingRestrictedCollectionIds() external view returns (Tuple35 memory);
289286
290 /// Returns permissions for a collection287 /// Returns permissions for a collection
291 /// @dev EVM selector for this function is: 0x5b2eaf4b,288 /// @dev EVM selector for this function is: 0x5b2eaf4b,
292 /// or in textual repr: collectionNestingPermissions()289 /// or in textual repr: collectionNestingPermissions()
293 function collectionNestingPermissions() external view returns (Tuple34[] memory);290 function collectionNestingPermissions() external view returns (Tuple38[] memory);
294291
295 /// Set the collection access method.292 /// Set the collection access method.
296 /// @param mode Access mode293 /// @param mode Access mode
404 uint256 sub;401 uint256 sub;
405}402}
406403
404/// @dev anonymous struct
405struct Tuple38 {
406 CollectionPermissions field_0;
407 bool field_1;
408}
409
410enum CollectionPermissions {
411 CollectionAdmin,
412 TokenOwner
413}
414
415/// @dev anonymous struct
416struct Tuple35 {
417 bool field_0;
418 uint256[] field_1;
419}
420
407enum CollectionLimits {421enum CollectionLimits {
408 AccountTokenOwnership,422 AccountTokenOwnership,
409 SponsoredDataSize,423 SponsoredDataSize,
421 CollectionLimits field_0;435 CollectionLimits field_0;
422 bool field_1;436 bool field_1;
423 uint256 field_2;437 uint256 field_2;
424}
425
426/// @dev anonymous struct
427struct Tuple34 {
428 CollectionPermissions field_0;
429 bool field_1;
430}
431
432enum CollectionPermissions {
433 CollectionAdmin,
434 TokenOwner
435}
436
437/// @dev anonymous struct
438struct Tuple31 {
439 bool field_0;
440 uint256[] field_1;
441}438}
442439
443/// @dev anonymous struct440/// @dev anonymous struct
modifiedtests/src/eth/api/UniqueRefungible.soldiffbeforeafterboth
105}105}
106106
107/// @title A contract that allows you to work with collections.107/// @title A contract that allows you to work with collections.
108<<<<<<< HEAD
109/// @dev the ERC-165 identifier for this interface is 0xb5e1747f108/// @dev the ERC-165 identifier for this interface is 0x81172a75
110=======
111/// @dev the ERC-165 identifier for this interface is 0xf8ebdec0
112>>>>>>> 32e011ce... added `collectionLimits` function in `Collection` interface, changed signture for `setCollectionLimit`
113interface Collection is Dummy, ERC165 {109interface Collection is Dummy, ERC165 {
114 // /// Set collection property.110 // /// Set collection property.
115 // ///111 // ///
229 /// "ownerCanTransfer",225 /// "ownerCanTransfer",
230 /// "ownerCanDestroy",226 /// "ownerCanDestroy",
231 /// "transfersEnabled"227 /// "transfersEnabled"
228 /// @param status enable\disable limit. Works only with `true`.
232 /// @param value Value of the limit.229 /// @param value Value of the limit.
233 /// @dev EVM selector for this function is: 0x88150bd0,230 /// @dev EVM selector for this function is: 0x88150bd0,
234 /// or in textual repr: setCollectionLimit(uint8,bool,uint256)231 /// or in textual repr: setCollectionLimit(uint8,bool,uint256)
286 /// Returns nesting for a collection283 /// Returns nesting for a collection
287 /// @dev EVM selector for this function is: 0x22d25bfe,284 /// @dev EVM selector for this function is: 0x22d25bfe,
288 /// or in textual repr: collectionNestingRestrictedCollectionIds()285 /// or in textual repr: collectionNestingRestrictedCollectionIds()
289 function collectionNestingRestrictedCollectionIds() external view returns (Tuple30 memory);286 function collectionNestingRestrictedCollectionIds() external view returns (Tuple34 memory);
290287
291 /// Returns permissions for a collection288 /// Returns permissions for a collection
292 /// @dev EVM selector for this function is: 0x5b2eaf4b,289 /// @dev EVM selector for this function is: 0x5b2eaf4b,
293 /// or in textual repr: collectionNestingPermissions()290 /// or in textual repr: collectionNestingPermissions()
294 function collectionNestingPermissions() external view returns (Tuple33[] memory);291 function collectionNestingPermissions() external view returns (Tuple37[] memory);
295292
296 /// Set the collection access method.293 /// Set the collection access method.
297 /// @param mode Access mode294 /// @param mode Access mode
405 uint256 sub;402 uint256 sub;
406}403}
407404
405/// @dev anonymous struct
406struct Tuple37 {
407 CollectionPermissions field_0;
408 bool field_1;
409}
410
411enum CollectionPermissions {
412 CollectionAdmin,
413 TokenOwner
414}
415
416/// @dev anonymous struct
417struct Tuple34 {
418 bool field_0;
419 uint256[] field_1;
420}
421
408enum CollectionLimits {422enum CollectionLimits {
409 AccountTokenOwnership,423 AccountTokenOwnership,
410 SponsoredDataSize,424 SponsoredDataSize,
422 CollectionLimits field_0;436 CollectionLimits field_0;
423 bool field_1;437 bool field_1;
424 uint256 field_2;438 uint256 field_2;
425}
426
427/// @dev anonymous struct
428struct Tuple33 {
429 CollectionPermissions field_0;
430 bool field_1;
431}
432
433enum CollectionPermissions {
434 CollectionAdmin,
435 TokenOwner
436}
437
438/// @dev anonymous struct
439struct Tuple30 {
440 bool field_0;
441 uint256[] field_1;
442}439}
443440
444/// @dev anonymous struct441/// @dev anonymous struct