git.delta.rocks / unique-network / refs/commits / 93efc9e5e22c

difftreelog

genetate evm stubs & fix abiWriter for struct

PraetorP2022-11-23parent: #48762e7.patch.diff
in: master

13 files changed

modifiedcrates/evm-coder/src/abi/impls.rsdiffbeforeafterboth
184184
185impl AbiWrite for Property {185impl AbiWrite for Property {
186 fn abi_write(&self, writer: &mut AbiWriter) {186 fn abi_write(&self, writer: &mut AbiWriter) {
187 self.key.abi_write(writer);187 (&self.key, &self.value).abi_write(writer);
188 self.value.abi_write(writer);
189 }188 }
190}189}
191190
modifiedcrates/evm-coder/src/abi/traits.rsdiffbeforeafterboth
50 }50 }
51}51}
52
53impl<T: AbiWrite> AbiWrite for &T {
54 fn abi_write(&self, writer: &mut AbiWriter) {
55 T::abi_write(self, writer);
56 }
57}
5258
modifiedpallets/fungible/src/stubs/UniqueFungible.soldiffbeforeafterboth
437 bytes value;437 bytes value;
438}438}
439439
440/// @dev the ERC-165 identifier for this interface is 0x29f4dcd9440/// @dev the ERC-165 identifier for this interface is 0x5b7038cf
441contract ERC20UniqueExtensions is Dummy, ERC165 {441contract ERC20UniqueExtensions is Dummy, ERC165 {
442 /// @notice A description for the collection.442 /// @notice A description for the collection.
443 /// @dev EVM selector for this function is: 0x7284e416,443 /// @dev EVM selector for this function is: 0x7284e416,
modifiedpallets/nonfungible/src/erc.rsdiffbeforeafterboth
725 &self,725 &self,
726 token_id: uint256,726 token_id: uint256,
727 keys: Vec<string>,727 keys: Vec<string>,
728 ) -> Result<Vec<(string, bytes)>> {728 ) -> Result<Vec<PropertyStruct>> {
729 let keys = keys729 let keys = keys
730 .into_iter()730 .into_iter()
731 .map(|key| {731 .map(|key| {
745 let key = string::from_utf8(p.key.to_vec())745 let key = string::from_utf8(p.key.to_vec())
746 .map_err(|e| Error::Revert(alloc::format!("{}", e)))?;746 .map_err(|e| Error::Revert(alloc::format!("{}", e)))?;
747 let value = bytes(p.value.to_vec());747 let value = bytes(p.value.to_vec());
748 Ok((key, value))748 Ok(PropertyStruct { key, value })
749 })749 })
750 .collect::<Result<Vec<_>>>()750 .collect::<Result<Vec<_>>>()
751 }751 }
modifiedpallets/nonfungible/src/stubs/UniqueNFT.soldiffbeforeafterboth
188 /// @return Vector of properties key/value pairs.188 /// @return Vector of properties key/value pairs.
189 /// @dev EVM selector for this function is: 0x285fb8e6,189 /// @dev EVM selector for this function is: 0x285fb8e6,
190 /// or in textual repr: collectionProperties(string[])190 /// or in textual repr: collectionProperties(string[])
191 function collectionProperties(string[] memory keys) public view returns (Tuple23[] memory) {191 function collectionProperties(string[] memory keys) public view returns (Tuple27[] memory) {
192 require(false, stub_error);192 require(false, stub_error);
193 keys;193 keys;
194 dummy;194 dummy;
195 return new Tuple23[](0);195 return new Tuple27[](0);
196 }196 }
197197
198 // /// Set the sponsor of the collection.198 // /// Set the sponsor of the collection.
253 /// @return Tuble with sponsor address and his substrate mirror. If there is no confirmed sponsor error "Contract has no sponsor" throw.253 /// @return Tuble with sponsor address and his substrate mirror. If there is no confirmed sponsor error "Contract has no sponsor" throw.
254 /// @dev EVM selector for this function is: 0x6ec0a9f1,254 /// @dev EVM selector for this function is: 0x6ec0a9f1,
255 /// or in textual repr: collectionSponsor()255 /// or in textual repr: collectionSponsor()
256 function collectionSponsor() public view returns (Tuple26 memory) {256 function collectionSponsor() public view returns (Tuple30 memory) {
257 require(false, stub_error);257 require(false, stub_error);
258 dummy;258 dummy;
259 return Tuple26(0x0000000000000000000000000000000000000000, 0);259 return Tuple30(0x0000000000000000000000000000000000000000, 0);
260 }260 }
261261
262 /// Set limits for the collection.262 /// Set limits for the collection.
527}527}
528528
529/// @dev anonymous struct529/// @dev anonymous struct
530struct Tuple26 {530struct Tuple30 {
531 address field_0;531 address field_0;
532 uint256 field_1;532 uint256 field_1;
533}533}
534534
535/// @dev anonymous struct535/// @dev anonymous struct
536struct Tuple23 {536struct Tuple27 {
537 string field_0;537 string field_0;
538 bytes field_1;538 bytes field_1;
539}539}
682}682}
683683
684/// @title Unique extensions for ERC721.684/// @title Unique extensions for ERC721.
685/// @dev the ERC-165 identifier for this interface is 0x0e9fc611685/// @dev the ERC-165 identifier for this interface is 0xb8f094a0
686contract ERC721UniqueExtensions is Dummy, ERC165 {686contract ERC721UniqueExtensions is Dummy, ERC165 {
687 /// @notice A descriptive name for a collection of NFTs in this contract687 /// @notice A descriptive name for a collection of NFTs in this contract
688 /// @dev EVM selector for this function is: 0x06fdde03,688 /// @dev EVM selector for this function is: 0x06fdde03,
730 /// @return Vector of properties key/value pairs.730 /// @return Vector of properties key/value pairs.
731 /// @dev EVM selector for this function is: 0xefc26c69,731 /// @dev EVM selector for this function is: 0xefc26c69,
732 /// or in textual repr: tokenProperties(uint256,string[])732 /// or in textual repr: tokenProperties(uint256,string[])
733 function tokenProperties(uint256 tokenId, string[] memory keys) public view returns (Tuple8[] memory) {733 function tokenProperties(uint256 tokenId, string[] memory keys) public view returns (Property[] memory) {
734 require(false, stub_error);734 require(false, stub_error);
735 tokenId;735 tokenId;
736 keys;736 keys;
737 dummy;737 dummy;
738 return new Tuple8[](0);738 return new Property[](0);
739 }739 }
740740
741 /// @notice Set or reaffirm the approved address for an NFT741 /// @notice Set or reaffirm the approved address for an NFT
861 // /// @param tokens array of pairs of token ID and token URI for minted tokens861 // /// @param tokens array of pairs of token ID and token URI for minted tokens
862 // /// @dev EVM selector for this function is: 0x36543006,862 // /// @dev EVM selector for this function is: 0x36543006,
863 // /// or in textual repr: mintBulkWithTokenURI(address,(uint256,string)[])863 // /// or in textual repr: mintBulkWithTokenURI(address,(uint256,string)[])
864 // function mintBulkWithTokenURI(address to, Tuple11[] memory tokens) public returns (bool) {864 // function mintBulkWithTokenURI(address to, Tuple15[] memory tokens) public returns (bool) {
865 // require(false, stub_error);865 // require(false, stub_error);
866 // to;866 // to;
867 // tokens;867 // tokens;
872}872}
873873
874/// @dev anonymous struct874/// @dev anonymous struct
875struct Tuple11 {875struct Tuple15 {
876 uint256 field_0;876 uint256 field_0;
877 string field_1;877 string field_1;
878}878}
879
880/// @dev anonymous struct
881struct Tuple8 {
882 string field_0;
883 bytes field_1;
884}
885879
886/// @title ERC-721 Non-Fungible Token Standard, optional enumeration extension880/// @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
887/// @dev See https://eips.ethereum.org/EIPS/eip-721881/// @dev See https://eips.ethereum.org/EIPS/eip-721
modifiedpallets/refungible/src/erc.rsdiffbeforeafterboth
753 &self,753 &self,
754 token_id: uint256,754 token_id: uint256,
755 keys: Vec<string>,755 keys: Vec<string>,
756 ) -> Result<Vec<(string, bytes)>> {756 ) -> Result<Vec<PropertyStruct>> {
757 let keys = keys757 let keys = keys
758 .into_iter()758 .into_iter()
759 .map(|key| {759 .map(|key| {
773 let key = string::from_utf8(p.key.to_vec())773 let key = string::from_utf8(p.key.to_vec())
774 .map_err(|e| Error::Revert(alloc::format!("{}", e)))?;774 .map_err(|e| Error::Revert(alloc::format!("{}", e)))?;
775 let value = bytes(p.value.to_vec());775 let value = bytes(p.value.to_vec());
776 Ok((key, value))776 Ok(PropertyStruct { key, value })
777 })777 })
778 .collect::<Result<Vec<_>>>()778 .collect::<Result<Vec<_>>>()
779 }779 }
modifiedpallets/refungible/src/stubs/UniqueRefungible.soldiffbeforeafterboth
188 /// @return Vector of properties key/value pairs.188 /// @return Vector of properties key/value pairs.
189 /// @dev EVM selector for this function is: 0x285fb8e6,189 /// @dev EVM selector for this function is: 0x285fb8e6,
190 /// or in textual repr: collectionProperties(string[])190 /// or in textual repr: collectionProperties(string[])
191 function collectionProperties(string[] memory keys) public view returns (Tuple22[] memory) {191 function collectionProperties(string[] memory keys) public view returns (Tuple26[] memory) {
192 require(false, stub_error);192 require(false, stub_error);
193 keys;193 keys;
194 dummy;194 dummy;
195 return new Tuple22[](0);195 return new Tuple26[](0);
196 }196 }
197197
198 // /// Set the sponsor of the collection.198 // /// Set the sponsor of the collection.
253 /// @return Tuble with sponsor address and his substrate mirror. If there is no confirmed sponsor error "Contract has no sponsor" throw.253 /// @return Tuble with sponsor address and his substrate mirror. If there is no confirmed sponsor error "Contract has no sponsor" throw.
254 /// @dev EVM selector for this function is: 0x6ec0a9f1,254 /// @dev EVM selector for this function is: 0x6ec0a9f1,
255 /// or in textual repr: collectionSponsor()255 /// or in textual repr: collectionSponsor()
256 function collectionSponsor() public view returns (Tuple25 memory) {256 function collectionSponsor() public view returns (Tuple29 memory) {
257 require(false, stub_error);257 require(false, stub_error);
258 dummy;258 dummy;
259 return Tuple25(0x0000000000000000000000000000000000000000, 0);259 return Tuple29(0x0000000000000000000000000000000000000000, 0);
260 }260 }
261261
262 /// Set limits for the collection.262 /// Set limits for the collection.
527}527}
528528
529/// @dev anonymous struct529/// @dev anonymous struct
530struct Tuple25 {530struct Tuple29 {
531 address field_0;531 address field_0;
532 uint256 field_1;532 uint256 field_1;
533}533}
534534
535/// @dev anonymous struct535/// @dev anonymous struct
536struct Tuple22 {536struct Tuple26 {
537 string field_0;537 string field_0;
538 bytes field_1;538 bytes field_1;
539}539}
680}680}
681681
682/// @title Unique extensions for ERC721.682/// @title Unique extensions for ERC721.
683/// @dev the ERC-165 identifier for this interface is 0xab243667683/// @dev the ERC-165 identifier for this interface is 0x1d4b64d6
684contract ERC721UniqueExtensions is Dummy, ERC165 {684contract ERC721UniqueExtensions is Dummy, ERC165 {
685 /// @notice A descriptive name for a collection of NFTs in this contract685 /// @notice A descriptive name for a collection of NFTs in this contract
686 /// @dev EVM selector for this function is: 0x06fdde03,686 /// @dev EVM selector for this function is: 0x06fdde03,
728 /// @return Vector of properties key/value pairs.728 /// @return Vector of properties key/value pairs.
729 /// @dev EVM selector for this function is: 0xefc26c69,729 /// @dev EVM selector for this function is: 0xefc26c69,
730 /// or in textual repr: tokenProperties(uint256,string[])730 /// or in textual repr: tokenProperties(uint256,string[])
731 function tokenProperties(uint256 tokenId, string[] memory keys) public view returns (Tuple8[] memory) {731 function tokenProperties(uint256 tokenId, string[] memory keys) public view returns (Property[] memory) {
732 require(false, stub_error);732 require(false, stub_error);
733 tokenId;733 tokenId;
734 keys;734 keys;
735 dummy;735 dummy;
736 return new Tuple8[](0);736 return new Property[](0);
737 }737 }
738738
739 /// @notice Transfer ownership of an RFT739 /// @notice Transfer ownership of an RFT
849 // /// @param tokens array of pairs of token ID and token URI for minted tokens849 // /// @param tokens array of pairs of token ID and token URI for minted tokens
850 // /// @dev EVM selector for this function is: 0x36543006,850 // /// @dev EVM selector for this function is: 0x36543006,
851 // /// or in textual repr: mintBulkWithTokenURI(address,(uint256,string)[])851 // /// or in textual repr: mintBulkWithTokenURI(address,(uint256,string)[])
852 // function mintBulkWithTokenURI(address to, Tuple10[] memory tokens) public returns (bool) {852 // function mintBulkWithTokenURI(address to, Tuple14[] memory tokens) public returns (bool) {
853 // require(false, stub_error);853 // require(false, stub_error);
854 // to;854 // to;
855 // tokens;855 // tokens;
871}871}
872872
873/// @dev anonymous struct873/// @dev anonymous struct
874struct Tuple10 {874struct Tuple14 {
875 uint256 field_0;875 uint256 field_0;
876 string field_1;876 string field_1;
877}877}
878
879/// @dev anonymous struct
880struct Tuple8 {
881 string field_0;
882 bytes field_1;
883}
884878
885/// @title ERC-721 Non-Fungible Token Standard, optional enumeration extension879/// @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
886/// @dev See https://eips.ethereum.org/EIPS/eip-721880/// @dev See https://eips.ethereum.org/EIPS/eip-721
modifiedtests/src/eth/abi/nonFungible.jsondiffbeforeafterboth
249 { "internalType": "string", "name": "field_0", "type": "string" },249 { "internalType": "string", "name": "field_0", "type": "string" },
250 { "internalType": "bytes", "name": "field_1", "type": "bytes" }250 { "internalType": "bytes", "name": "field_1", "type": "bytes" }
251 ],251 ],
252 "internalType": "struct Tuple23[]",252 "internalType": "struct Tuple27[]",
253 "name": "",253 "name": "",
254 "type": "tuple[]"254 "type": "tuple[]"
255 }255 }
273 { "internalType": "address", "name": "field_0", "type": "address" },273 { "internalType": "address", "name": "field_0", "type": "address" },
274 { "internalType": "uint256", "name": "field_1", "type": "uint256" }274 { "internalType": "uint256", "name": "field_1", "type": "uint256" }
275 ],275 ],
276 "internalType": "struct Tuple26",276 "internalType": "struct Tuple30",
277 "name": "",277 "name": "",
278 "type": "tuple"278 "type": "tuple"
279 }279 }
674 "outputs": [674 "outputs": [
675 {675 {
676 "components": [676 "components": [
677 { "internalType": "string", "name": "field_0", "type": "string" },677 { "internalType": "string", "name": "key", "type": "string" },
678 { "internalType": "bytes", "name": "field_1", "type": "bytes" }678 { "internalType": "bytes", "name": "value", "type": "bytes" }
679 ],679 ],
680 "internalType": "struct Tuple8[]",680 "internalType": "struct Property[]",
681 "name": "",681 "name": "",
682 "type": "tuple[]"682 "type": "tuple[]"
683 }683 }
modifiedtests/src/eth/abi/reFungible.jsondiffbeforeafterboth
231 { "internalType": "string", "name": "field_0", "type": "string" },231 { "internalType": "string", "name": "field_0", "type": "string" },
232 { "internalType": "bytes", "name": "field_1", "type": "bytes" }232 { "internalType": "bytes", "name": "field_1", "type": "bytes" }
233 ],233 ],
234 "internalType": "struct Tuple22[]",234 "internalType": "struct Tuple26[]",
235 "name": "",235 "name": "",
236 "type": "tuple[]"236 "type": "tuple[]"
237 }237 }
255 { "internalType": "address", "name": "field_0", "type": "address" },255 { "internalType": "address", "name": "field_0", "type": "address" },
256 { "internalType": "uint256", "name": "field_1", "type": "uint256" }256 { "internalType": "uint256", "name": "field_1", "type": "uint256" }
257 ],257 ],
258 "internalType": "struct Tuple25",258 "internalType": "struct Tuple29",
259 "name": "",259 "name": "",
260 "type": "tuple"260 "type": "tuple"
261 }261 }
665 "outputs": [665 "outputs": [
666 {666 {
667 "components": [667 "components": [
668 { "internalType": "string", "name": "field_0", "type": "string" },668 { "internalType": "string", "name": "key", "type": "string" },
669 { "internalType": "bytes", "name": "field_1", "type": "bytes" }669 { "internalType": "bytes", "name": "value", "type": "bytes" }
670 ],670 ],
671 "internalType": "struct Tuple8[]",671 "internalType": "struct Property[]",
672 "name": "",672 "name": "",
673 "type": "tuple[]"673 "type": "tuple[]"
674 }674 }
modifiedtests/src/eth/api/UniqueFungible.soldiffbeforeafterboth
290 bytes value;290 bytes value;
291}291}
292292
293/// @dev the ERC-165 identifier for this interface is 0x29f4dcd9293/// @dev the ERC-165 identifier for this interface is 0x5b7038cf
294interface ERC20UniqueExtensions is Dummy, ERC165 {294interface ERC20UniqueExtensions is Dummy, ERC165 {
295 /// @notice A description for the collection.295 /// @notice A description for the collection.
296 /// @dev EVM selector for this function is: 0x7284e416,296 /// @dev EVM selector for this function is: 0x7284e416,
modifiedtests/src/eth/api/UniqueNFT.soldiffbeforeafterboth
45 /// @param properties settable properties45 /// @param properties settable properties
46 /// @dev EVM selector for this function is: 0x14ed3a6e,46 /// @dev EVM selector for this function is: 0x14ed3a6e,
47 /// or in textual repr: setProperties(uint256,(string,bytes)[])47 /// or in textual repr: setProperties(uint256,(string,bytes)[])
48 function setProperties(uint256 tokenId, Tuple21[] memory properties) external;48 function setProperties(uint256 tokenId, Property[] memory properties) external;
4949
50 // /// @notice Delete token property value.50 // /// @notice Delete token property value.
51 // /// @dev Throws error if `msg.sender` has no permission to edit the property.51 // /// @dev Throws error if `msg.sender` has no permission to edit the property.
95 /// @param properties Vector of properties key/value pair.95 /// @param properties Vector of properties key/value pair.
96 /// @dev EVM selector for this function is: 0x50b26b2a,96 /// @dev EVM selector for this function is: 0x50b26b2a,
97 /// or in textual repr: setCollectionProperties((string,bytes)[])97 /// or in textual repr: setCollectionProperties((string,bytes)[])
98 function setCollectionProperties(Tuple21[] memory properties) external;98 function setCollectionProperties(Property[] memory properties) external;
9999
100 // /// Delete collection property.100 // /// Delete collection property.
101 // ///101 // ///
127 /// @return Vector of properties key/value pairs.127 /// @return Vector of properties key/value pairs.
128 /// @dev EVM selector for this function is: 0x285fb8e6,128 /// @dev EVM selector for this function is: 0x285fb8e6,
129 /// or in textual repr: collectionProperties(string[])129 /// or in textual repr: collectionProperties(string[])
130 function collectionProperties(string[] memory keys) external view returns (Tuple21[] memory);130 function collectionProperties(string[] memory keys) external view returns (Tuple25[] memory);
131131
132 // /// Set the sponsor of the collection.132 // /// Set the sponsor of the collection.
133 // ///133 // ///
169 /// @return Tuble with sponsor address and his substrate mirror. If there is no confirmed sponsor error "Contract has no sponsor" throw.169 /// @return Tuble with sponsor address and his substrate mirror. If there is no confirmed sponsor error "Contract has no sponsor" throw.
170 /// @dev EVM selector for this function is: 0x6ec0a9f1,170 /// @dev EVM selector for this function is: 0x6ec0a9f1,
171 /// or in textual repr: collectionSponsor()171 /// or in textual repr: collectionSponsor()
172 function collectionSponsor() external view returns (Tuple24 memory);172 function collectionSponsor() external view returns (Tuple28 memory);
173173
174 /// Set limits for the collection.174 /// Set limits for the collection.
175 /// @dev Throws error if limit not found.175 /// @dev Throws error if limit not found.
346}346}
347347
348/// @dev anonymous struct348/// @dev anonymous struct
349struct Tuple24 {349struct Tuple28 {
350 address field_0;350 address field_0;
351 uint256 field_1;351 uint256 field_1;
352}352}
353353
354/// @dev anonymous struct354/// @dev anonymous struct
355struct Tuple21 {355struct Tuple25 {
356 string field_0;356 string field_0;
357 bytes field_1;357 bytes field_1;
358}358}
452}452}
453453
454/// @title Unique extensions for ERC721.454/// @title Unique extensions for ERC721.
455/// @dev the ERC-165 identifier for this interface is 0x244543ee455/// @dev the ERC-165 identifier for this interface is 0xb8f094a0
456interface ERC721UniqueExtensions is Dummy, ERC165 {456interface ERC721UniqueExtensions is Dummy, ERC165 {
457 /// @notice A descriptive name for a collection of NFTs in this contract457 /// @notice A descriptive name for a collection of NFTs in this contract
458 /// @dev EVM selector for this function is: 0x06fdde03,458 /// @dev EVM selector for this function is: 0x06fdde03,
483 /// @return Vector of properties key/value pairs.483 /// @return Vector of properties key/value pairs.
484 /// @dev EVM selector for this function is: 0xefc26c69,484 /// @dev EVM selector for this function is: 0xefc26c69,
485 /// or in textual repr: tokenProperties(uint256,string[])485 /// or in textual repr: tokenProperties(uint256,string[])
486 function tokenProperties(uint256 tokenId, string[] memory keys) external view returns (Tuple7[] memory);486 function tokenProperties(uint256 tokenId, string[] memory keys) external view returns (Property[] memory);
487487
488 /// @notice Set or reaffirm the approved address for an NFT488 /// @notice Set or reaffirm the approved address for an NFT
489 /// @dev The zero address indicates there is no approved address.489 /// @dev The zero address indicates there is no approved address.
567 // /// @param tokens array of pairs of token ID and token URI for minted tokens567 // /// @param tokens array of pairs of token ID and token URI for minted tokens
568 // /// @dev EVM selector for this function is: 0x36543006,568 // /// @dev EVM selector for this function is: 0x36543006,
569 // /// or in textual repr: mintBulkWithTokenURI(address,(uint256,string)[])569 // /// or in textual repr: mintBulkWithTokenURI(address,(uint256,string)[])
570 // function mintBulkWithTokenURI(address to, Tuple10[] memory tokens) external returns (bool);570 // function mintBulkWithTokenURI(address to, Tuple13[] memory tokens) external returns (bool);
571571
572}572}
573573
574/// @dev anonymous struct574/// @dev anonymous struct
575struct Tuple10 {575struct Tuple13 {
576 uint256 field_0;576 uint256 field_0;
577 string field_1;577 string field_1;
578}578}
579
580/// @dev anonymous struct
581struct Tuple7 {
582 string field_0;
583 bytes field_1;
584}
585579
586/// @title ERC-721 Non-Fungible Token Standard, optional enumeration extension580/// @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
587/// @dev See https://eips.ethereum.org/EIPS/eip-721581/// @dev See https://eips.ethereum.org/EIPS/eip-721
modifiedtests/src/eth/api/UniqueRefungible.soldiffbeforeafterboth
127 /// @return Vector of properties key/value pairs.127 /// @return Vector of properties key/value pairs.
128 /// @dev EVM selector for this function is: 0x285fb8e6,128 /// @dev EVM selector for this function is: 0x285fb8e6,
129 /// or in textual repr: collectionProperties(string[])129 /// or in textual repr: collectionProperties(string[])
130 function collectionProperties(string[] memory keys) external view returns (Tuple22[] memory);130 function collectionProperties(string[] memory keys) external view returns (Tuple24[] memory);
131131
132 // /// Set the sponsor of the collection.132 // /// Set the sponsor of the collection.
133 // ///133 // ///
169 /// @return Tuble with sponsor address and his substrate mirror. If there is no confirmed sponsor error "Contract has no sponsor" throw.169 /// @return Tuble with sponsor address and his substrate mirror. If there is no confirmed sponsor error "Contract has no sponsor" throw.
170 /// @dev EVM selector for this function is: 0x6ec0a9f1,170 /// @dev EVM selector for this function is: 0x6ec0a9f1,
171 /// or in textual repr: collectionSponsor()171 /// or in textual repr: collectionSponsor()
172 function collectionSponsor() external view returns (Tuple25 memory);172 function collectionSponsor() external view returns (Tuple27 memory);
173173
174 /// Set limits for the collection.174 /// Set limits for the collection.
175 /// @dev Throws error if limit not found.175 /// @dev Throws error if limit not found.
346}346}
347347
348/// @dev anonymous struct348/// @dev anonymous struct
349struct Tuple25 {349struct Tuple27 {
350 address field_0;350 address field_0;
351 uint256 field_1;351 uint256 field_1;
352}352}
353353
354/// @dev anonymous struct354/// @dev anonymous struct
355struct Tuple22 {355struct Tuple24 {
356 string field_0;356 string field_0;
357 bytes field_1;357 bytes field_1;
358}358}
450}450}
451451
452/// @title Unique extensions for ERC721.452/// @title Unique extensions for ERC721.
453/// @dev the ERC-165 identifier for this interface is 0xab243667453/// @dev the ERC-165 identifier for this interface is 0x1d4b64d6
454interface ERC721UniqueExtensions is Dummy, ERC165 {454interface ERC721UniqueExtensions is Dummy, ERC165 {
455 /// @notice A descriptive name for a collection of NFTs in this contract455 /// @notice A descriptive name for a collection of NFTs in this contract
456 /// @dev EVM selector for this function is: 0x06fdde03,456 /// @dev EVM selector for this function is: 0x06fdde03,
481 /// @return Vector of properties key/value pairs.481 /// @return Vector of properties key/value pairs.
482 /// @dev EVM selector for this function is: 0xefc26c69,482 /// @dev EVM selector for this function is: 0xefc26c69,
483 /// or in textual repr: tokenProperties(uint256,string[])483 /// or in textual repr: tokenProperties(uint256,string[])
484 function tokenProperties(uint256 tokenId, string[] memory keys) external view returns (Tuple7[] memory);484 function tokenProperties(uint256 tokenId, string[] memory keys) external view returns (Property[] memory);
485485
486 /// @notice Transfer ownership of an RFT486 /// @notice Transfer ownership of an RFT
487 /// @dev Throws unless `msg.sender` is the current owner. Throws if `to`487 /// @dev Throws unless `msg.sender` is the current owner. Throws if `to`
560 // /// @param tokens array of pairs of token ID and token URI for minted tokens560 // /// @param tokens array of pairs of token ID and token URI for minted tokens
561 // /// @dev EVM selector for this function is: 0x36543006,561 // /// @dev EVM selector for this function is: 0x36543006,
562 // /// or in textual repr: mintBulkWithTokenURI(address,(uint256,string)[])562 // /// or in textual repr: mintBulkWithTokenURI(address,(uint256,string)[])
563 // function mintBulkWithTokenURI(address to, Tuple10[] memory tokens) external returns (bool);563 // function mintBulkWithTokenURI(address to, Tuple12[] memory tokens) external returns (bool);
564564
565 /// Returns EVM address for refungible token565 /// Returns EVM address for refungible token
566 ///566 ///
571}571}
572572
573/// @dev anonymous struct573/// @dev anonymous struct
574struct Tuple10 {574struct Tuple12 {
575 uint256 field_0;575 uint256 field_0;
576 string field_1;576 string field_1;
577}577}
578
579/// @dev anonymous struct
580struct Tuple7 {
581 string field_0;
582 bytes field_1;
583}
584578
585/// @title ERC-721 Non-Fungible Token Standard, optional enumeration extension579/// @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
586/// @dev See https://eips.ethereum.org/EIPS/eip-721580/// @dev See https://eips.ethereum.org/EIPS/eip-721
modifiedtests/src/eth/base.test.tsdiffbeforeafterboth
117 });117 });
118118
119 itEth('ERC721UniqueExtensions support', async ({helper}) => {119 itEth('ERC721UniqueExtensions support', async ({helper}) => {
120 await checkInterface(helper, '0x922a115f', true, true);120 await checkInterface(helper, '0xb8f094a0', true, true);
121 });121 });
122122
123 itEth('ERC721Burnable - 0x42966c68 - support', async ({helper}) => {123 itEth('ERC721Burnable - 0x42966c68 - support', async ({helper}) => {