difftreelog
misk: Update stubs
in: master
9 files changed
pallets/fungible/src/stubs/UniqueFungible.soldiffbeforeafterboth334pragma solidity >=0.8.0 <0.9.0;4pragma solidity >=0.8.0 <0.9.0;556<<<<<<< HEAD6/// @dev common stubs holder7/// @dev common stubs holder8=======9// Anonymous struct10struct Tuple0 {11 address field_0;12 uint256 field_1;13}1415// Common stubs holder16>>>>>>> misk: Update stubs7contract Dummy {17contract Dummy {8 uint8 dummy;18 uint8 dummy;9 string stub_error = "this contract is implemented in native";19 string stub_error = "this contract is implemented in native";21 }31 }22}32}233334<<<<<<< HEAD24/// @title A contract that allows you to work with collections.35/// @title A contract that allows you to work with collections.25/// @dev the ERC-165 identifier for this interface is 0xffe4da2336/// @dev the ERC-165 identifier for this interface is 0xffe4da2337=======38// Inline39contract ERC20Events {40 event Transfer(address indexed from, address indexed to, uint256 value);41 event Approval(42 address indexed owner,43 address indexed spender,44 uint256 value45 );46}4748<<<<<<< HEAD49// Selector: 79cc679050contract ERC20UniqueExtensions is Dummy, ERC165 {51 // Selector: burnFrom(address,uint256) 79cc679052 function burnFrom(address from, uint256 amount) public returns (bool) {53 require(false, stub_error);54 from;55 amount;56 dummy = 0;57 return false;58 }59}6061// Selector: 942e8b2262contract ERC20 is Dummy, ERC165, ERC20Events {63 // Selector: name() 06fdde0364 function name() public view returns (string memory) {65 require(false, stub_error);66 dummy;67 return "";68 }6970 // Selector: symbol() 95d89b4171 function symbol() public view returns (string memory) {72 require(false, stub_error);73 dummy;74 return "";75 }7677 // Selector: totalSupply() 18160ddd78 function totalSupply() public view returns (uint256) {79 require(false, stub_error);80 dummy;81 return 0;82 }8384 // Selector: decimals() 313ce56785 function decimals() public view returns (uint8) {86 require(false, stub_error);87 dummy;88 return 0;89 }9091 // Selector: balanceOf(address) 70a0823192 function balanceOf(address owner) public view returns (uint256) {93 require(false, stub_error);94 owner;95 dummy;96 return 0;97 }9899 // Selector: transfer(address,uint256) a9059cbb100 function transfer(address to, uint256 amount) public returns (bool) {101 require(false, stub_error);102 to;103 amount;104 dummy = 0;105 return false;106 }107108 // Selector: transferFrom(address,address,uint256) 23b872dd109 function transferFrom(110 address from,111 address to,112 uint256 amount113 ) public returns (bool) {114 require(false, stub_error);115 from;116 to;117 amount;118 dummy = 0;119 return false;120 }121122 // Selector: approve(address,uint256) 095ea7b3123 function approve(address spender, uint256 amount) public returns (bool) {124 require(false, stub_error);125 spender;126 amount;127 dummy = 0;128 return false;129 }130131 // Selector: allowance(address,address) dd62ed3e132 function allowance(address owner, address spender)133 public134 view135 returns (uint256)136 {137 require(false, stub_error);138 owner;139 spender;140 dummy;141 return 0;142 }143}144145// Selector: ffe4da23146=======147// Selector: 765e2fae148>>>>>>> misk: Update stubs149>>>>>>> misk: Update stubs26contract Collection is Dummy, ERC165 {150contract Collection is Dummy, ERC165 {27 /// Set collection property.151 /// Set collection property.28 ///152 ///82 dummy = 0;206 dummy = 0;83 }207 }84208209<<<<<<< HEAD85 /// Collection sponsorship confirmation.210 /// Collection sponsorship confirmation.86 ///211 ///87 /// @dev After setting the sponsor for the collection, it must be confirmed with this function.212 /// @dev After setting the sponsor for the collection, it must be confirmed with this function.88 /// @dev EVM selector for this function is: 0x3c50e97a,213 /// @dev EVM selector for this function is: 0x3c50e97a,89 /// or in textual repr: confirmCollectionSponsorship()214 /// or in textual repr: confirmCollectionSponsorship()215=======216 // Set the substrate sponsor of the collection.217 //218 // @dev In order for sponsorship to work, it must be confirmed on behalf of the sponsor.219 //220 // @param sponsor Substrate address of the sponsor from whose account funds will be debited for operations with the contract.221 //222 // Selector: setCollectionSponsorSubstrate(uint256) c74d6751223 function setCollectionSponsorSubstrate(uint256 sponsor) public {224 require(false, stub_error);225 sponsor;226 dummy = 0;227 }228229 // Selector: hasCollectionPendingSponsor() 058ac185230 function hasCollectionPendingSponsor() public view returns (bool) {231 require(false, stub_error);232 dummy;233 return false;234 }235236 // Collection sponsorship confirmation.237 //238 // @dev After setting the sponsor for the collection, it must be confirmed with this function.239 //240 // Selector: confirmCollectionSponsorship() 3c50e97a241>>>>>>> misk: Update stubs90 function confirmCollectionSponsorship() public {242 function confirmCollectionSponsorship() public {91 require(false, stub_error);243 require(false, stub_error);92 dummy = 0;244 dummy = 0;93 }245 }94246247<<<<<<< HEAD95 /// Set limits for the collection.248 /// Set limits for the collection.96 /// @dev Throws error if limit not found.249 /// @dev Throws error if limit not found.97 /// @param limit Name of the limit. Valid names:250 /// @param limit Name of the limit. Valid names:104 /// @param value Value of the limit.257 /// @param value Value of the limit.105 /// @dev EVM selector for this function is: 0x6a3841db,258 /// @dev EVM selector for this function is: 0x6a3841db,106 /// or in textual repr: setCollectionLimit(string,uint32)259 /// or in textual repr: setCollectionLimit(string,uint32)260=======261 // Remove collection sponsor.262 //263 // Selector: removeCollectionSponsor() 6e0326a3264 function removeCollectionSponsor() public {265 require(false, stub_error);266 dummy = 0;267 }268269 // Get current sponsor.270 //271 // @return Tuble with sponsor address and his substrate mirror. If there is no confirmed sponsor error "Contract has no sponsor" throw.272 //273 // Selector: getCollectionSponsor() b66bbc14274 function getCollectionSponsor() public view returns (Tuple0 memory) {275 require(false, stub_error);276 dummy;277 return Tuple0(0x0000000000000000000000000000000000000000, 0);278 }279280 // Set limits for the collection.281 // @dev Throws error if limit not found.282 // @param limit Name of the limit. Valid names:283 // "accountTokenOwnershipLimit",284 // "sponsoredDataSize",285 // "sponsoredDataRateLimit",286 // "tokenLimit",287 // "sponsorTransferTimeout",288 // "sponsorApproveTimeout"289 // @param value Value of the limit.290 //291 // Selector: setCollectionLimit(string,uint32) 6a3841db292>>>>>>> misk: Update stubs107 function setCollectionLimit(string memory limit, uint32 value) public {293 function setCollectionLimit(string memory limit, uint32 value) public {108 require(false, stub_error);294 require(false, stub_error);109 limit;295 limit;pallets/nonfungible/src/stubs/UniqueNFT.soldiffbeforeafterboth334pragma solidity >=0.8.0 <0.9.0;4pragma solidity >=0.8.0 <0.9.0;556<<<<<<< HEAD6/// @dev common stubs holder7/// @dev common stubs holder8=======9// Anonymous struct10struct Tuple0 {11 uint256 field_0;12 string field_1;13}1415// Anonymous struct16struct Tuple1 {17 address field_0;18 uint256 field_1;19}2021// Common stubs holder22>>>>>>> misk: Update stubs7contract Dummy {23contract Dummy {8 uint8 dummy;24 uint8 dummy;9 string stub_error = "this contract is implemented in native";25 string stub_error = "this contract is implemented in native";465 }481 }466}482}467483484<<<<<<< HEAD468/// @title Unique extensions for ERC721.485/// @title Unique extensions for ERC721.469/// @dev the ERC-165 identifier for this interface is 0xd74d154f486/// @dev the ERC-165 identifier for this interface is 0xd74d154f487=======488<<<<<<< HEAD489// Selector: 780e9d63490contract ERC721Enumerable is Dummy, ERC165 {491 // @notice Enumerate valid NFTs492 // @param index A counter less than `totalSupply()`493 // @return The token identifier for the `index`th NFT,494 // (sort order not specified)495 //496 // Selector: tokenByIndex(uint256) 4f6ccce7497 function tokenByIndex(uint256 index) public view returns (uint256) {498 require(false, stub_error);499 index;500 dummy;501 return 0;502 }503504 // @dev Not implemented505 //506 // Selector: tokenOfOwnerByIndex(address,uint256) 2f745c59507 function tokenOfOwnerByIndex(address owner, uint256 index)508 public509 view510 returns (uint256)511 {512 require(false, stub_error);513 owner;514 index;515 dummy;516 return 0;517 }518519 // @notice Count NFTs tracked by this contract520 // @return A count of valid NFTs tracked by this contract, where each one of521 // them has an assigned and queryable owner not equal to the zero address522 //523 // Selector: totalSupply() 18160ddd524 function totalSupply() public view returns (uint256) {525 require(false, stub_error);526 dummy;527 return 0;528 }529}530531// Selector: d74d154f532>>>>>>> misk: Update stubs470contract ERC721UniqueExtensions is Dummy, ERC165 {533contract ERC721UniqueExtensions is Dummy, ERC165 {471 /// @notice Transfer ownership of an NFT534 /// @notice Transfer ownership of an NFT472 /// @dev Throws unless `msg.sender` is the current owner. Throws if `to`535 /// @dev Throws unless `msg.sender` is the current owner. Throws if `to`543 }606 }544}607}545608609<<<<<<< HEAD546/// @dev anonymous struct610/// @dev anonymous struct547struct Tuple8 {611struct Tuple8 {548 uint256 field_0;612 uint256 field_0;549 string field_1;613 string field_1;550}614}615=======616// Selector: ffe4da23617=======618// Selector: 765e2fae619>>>>>>> misk: Update stubs620contract Collection is Dummy, ERC165 {621 // Set collection property.622 //623 // @param key Property key.624 // @param value Propery value.625 //626 // Selector: setCollectionProperty(string,bytes) 2f073f66627 function setCollectionProperty(string memory key, bytes memory value)628 public629 {630 require(false, stub_error);631 key;632 value;633 dummy = 0;634 }635>>>>>>> misk: Update stubs551636552/// @title ERC-721 Non-Fungible Token Standard, optional enumeration extension637/// @title ERC-721 Non-Fungible Token Standard, optional enumeration extension553/// @dev See https://eips.ethereum.org/EIPS/eip-721638/// @dev See https://eips.ethereum.org/EIPS/eip-721578 owner;663 owner;579 index;664 index;580 dummy;665 dummy;666<<<<<<< HEAD581 return 0;667 return 0;668=======669 return hex"";670 }671672 // Set the sponsor of the collection.673 //674 // @dev In order for sponsorship to work, it must be confirmed on behalf of the sponsor.675 //676 // @param sponsor Address of the sponsor from whose account funds will be debited for operations with the contract.677 //678 // Selector: setCollectionSponsor(address) 7623402e679 function setCollectionSponsor(address sponsor) public {680 require(false, stub_error);681 sponsor;682 dummy = 0;683 }684685 // Set the substrate sponsor of the collection.686 //687 // @dev In order for sponsorship to work, it must be confirmed on behalf of the sponsor.688 //689 // @param sponsor Substrate address of the sponsor from whose account funds will be debited for operations with the contract.690 //691 // Selector: setCollectionSponsorSubstrate(uint256) c74d6751692 function setCollectionSponsorSubstrate(uint256 sponsor) public {693 require(false, stub_error);694 sponsor;695 dummy = 0;696 }697698 // Selector: hasCollectionPendingSponsor() 058ac185699 function hasCollectionPendingSponsor() public view returns (bool) {700 require(false, stub_error);701 dummy;702 return false;703 }704705 // Collection sponsorship confirmation.706 //707 // @dev After setting the sponsor for the collection, it must be confirmed with this function.708 //709 // Selector: confirmCollectionSponsorship() 3c50e97a710 function confirmCollectionSponsorship() public {711 require(false, stub_error);712 dummy = 0;713 }714715 // Remove collection sponsor.716 //717 // Selector: removeCollectionSponsor() 6e0326a3718 function removeCollectionSponsor() public {719 require(false, stub_error);720 dummy = 0;721 }722723 // Get current sponsor.724 //725 // @return Tuble with sponsor address and his substrate mirror. If there is no confirmed sponsor error "Contract has no sponsor" throw.726 //727 // Selector: getCollectionSponsor() b66bbc14728 function getCollectionSponsor() public view returns (Tuple1 memory) {729 require(false, stub_error);730 dummy;731 return Tuple1(0x0000000000000000000000000000000000000000, 0);732 }733734 // Set limits for the collection.735 // @dev Throws error if limit not found.736 // @param limit Name of the limit. Valid names:737 // "accountTokenOwnershipLimit",738 // "sponsoredDataSize",739 // "sponsoredDataRateLimit",740 // "tokenLimit",741 // "sponsorTransferTimeout",742 // "sponsorApproveTimeout"743 // @param value Value of the limit.744 //745 // Selector: setCollectionLimit(string,uint32) 6a3841db746 function setCollectionLimit(string memory limit, uint32 value) public {747 require(false, stub_error);748 limit;749 value;750 dummy = 0;751>>>>>>> misk: Update stubs582 }752 }583753584 /// @notice Count NFTs tracked by this contract754 /// @notice Count NFTs tracked by this contractpallets/refungible/src/stubs/UniqueRefungible.soldiffbeforeafterboth334pragma solidity >=0.8.0 <0.9.0;4pragma solidity >=0.8.0 <0.9.0;556<<<<<<< HEAD6/// @dev common stubs holder7/// @dev common stubs holder8=======9// Anonymous struct10struct Tuple0 {11 uint256 field_0;12 string field_1;13}1415// Anonymous struct16struct Tuple1 {17 address field_0;18 uint256 field_1;19}2021// Common stubs holder22>>>>>>> misk: Update stubs7contract Dummy {23contract Dummy {8 uint8 dummy;24 uint8 dummy;9 string stub_error = "this contract is implemented in native";25 string stub_error = "this contract is implemented in native";465 }481 }466}482}467483484<<<<<<< HEAD468/// @title Unique extensions for ERC721.485/// @title Unique extensions for ERC721.469/// @dev the ERC-165 identifier for this interface is 0x7c3bef89486/// @dev the ERC-165 identifier for this interface is 0x7c3bef89487=======488<<<<<<< HEAD489// Selector: 780e9d63490contract ERC721Enumerable is Dummy, ERC165 {491 // @notice Enumerate valid RFTs492 // @param index A counter less than `totalSupply()`493 // @return The token identifier for the `index`th NFT,494 // (sort order not specified)495 //496 // Selector: tokenByIndex(uint256) 4f6ccce7497 function tokenByIndex(uint256 index) public view returns (uint256) {498 require(false, stub_error);499 index;500 dummy;501 return 0;502 }503504 // Not implemented505 //506 // Selector: tokenOfOwnerByIndex(address,uint256) 2f745c59507 function tokenOfOwnerByIndex(address owner, uint256 index)508 public509 view510 returns (uint256)511 {512 require(false, stub_error);513 owner;514 index;515 dummy;516 return 0;517 }518519 // @notice Count RFTs tracked by this contract520 // @return A count of valid RFTs tracked by this contract, where each one of521 // them has an assigned and queryable owner not equal to the zero address522 //523 // Selector: totalSupply() 18160ddd524 function totalSupply() public view returns (uint256) {525 require(false, stub_error);526 dummy;527 return 0;528 }529}530531// Selector: 7c3bef89532>>>>>>> misk: Update stubs470contract ERC721UniqueExtensions is Dummy, ERC165 {533contract ERC721UniqueExtensions is Dummy, ERC165 {471 /// @notice Transfer ownership of an RFT534 /// @notice Transfer ownership of an RFT472 /// @dev Throws unless `msg.sender` is the current owner. Throws if `to`535 /// @dev Throws unless `msg.sender` is the current owner. Throws if `to`557 }620 }558}621}559622623<<<<<<< HEAD560/// @dev anonymous struct624/// @dev anonymous struct561struct Tuple8 {625struct Tuple8 {562 uint256 field_0;626 uint256 field_0;563 string field_1;627 string field_1;564}628}629=======630// Selector: ffe4da23631=======632// Selector: 765e2fae633>>>>>>> misk: Update stubs634contract Collection is Dummy, ERC165 {635 // Set collection property.636 //637 // @param key Property key.638 // @param value Propery value.639 //640 // Selector: setCollectionProperty(string,bytes) 2f073f66641 function setCollectionProperty(string memory key, bytes memory value)642 public643 {644 require(false, stub_error);645 key;646 value;647 dummy = 0;648 }649>>>>>>> misk: Update stubs565650566/// @title ERC-721 Non-Fungible Token Standard, optional enumeration extension651/// @title ERC-721 Non-Fungible Token Standard, optional enumeration extension567/// @dev See https://eips.ethereum.org/EIPS/eip-721652/// @dev See https://eips.ethereum.org/EIPS/eip-721592 owner;677 owner;593 index;678 index;594 dummy;679 dummy;680<<<<<<< HEAD595 return 0;681 return 0;682=======683 return hex"";684 }685686 // Set the sponsor of the collection.687 //688 // @dev In order for sponsorship to work, it must be confirmed on behalf of the sponsor.689 //690 // @param sponsor Address of the sponsor from whose account funds will be debited for operations with the contract.691 //692 // Selector: setCollectionSponsor(address) 7623402e693 function setCollectionSponsor(address sponsor) public {694 require(false, stub_error);695 sponsor;696 dummy = 0;697 }698699 // Set the substrate sponsor of the collection.700 //701 // @dev In order for sponsorship to work, it must be confirmed on behalf of the sponsor.702 //703 // @param sponsor Substrate address of the sponsor from whose account funds will be debited for operations with the contract.704 //705 // Selector: setCollectionSponsorSubstrate(uint256) c74d6751706 function setCollectionSponsorSubstrate(uint256 sponsor) public {707 require(false, stub_error);708 sponsor;709 dummy = 0;710 }711712 // Selector: hasCollectionPendingSponsor() 058ac185713 function hasCollectionPendingSponsor() public view returns (bool) {714 require(false, stub_error);715 dummy;716 return false;717 }718719 // Collection sponsorship confirmation.720 //721 // @dev After setting the sponsor for the collection, it must be confirmed with this function.722 //723 // Selector: confirmCollectionSponsorship() 3c50e97a724 function confirmCollectionSponsorship() public {725 require(false, stub_error);726 dummy = 0;727 }728729 // Remove collection sponsor.730 //731 // Selector: removeCollectionSponsor() 6e0326a3732 function removeCollectionSponsor() public {733 require(false, stub_error);734 dummy = 0;735 }736737 // Get current sponsor.738 //739 // @return Tuble with sponsor address and his substrate mirror. If there is no confirmed sponsor error "Contract has no sponsor" throw.740 //741 // Selector: getCollectionSponsor() b66bbc14742 function getCollectionSponsor() public view returns (Tuple1 memory) {743 require(false, stub_error);744 dummy;745 return Tuple1(0x0000000000000000000000000000000000000000, 0);746 }747748 // Set limits for the collection.749 // @dev Throws error if limit not found.750 // @param limit Name of the limit. Valid names:751 // "accountTokenOwnershipLimit",752 // "sponsoredDataSize",753 // "sponsoredDataRateLimit",754 // "tokenLimit",755 // "sponsorTransferTimeout",756 // "sponsorApproveTimeout"757 // @param value Value of the limit.758 //759 // Selector: setCollectionLimit(string,uint32) 6a3841db760 function setCollectionLimit(string memory limit, uint32 value) public {761 require(false, stub_error);762 limit;763 value;764 dummy = 0;765>>>>>>> misk: Update stubs596 }766 }597767598 /// @notice Count RFTs tracked by this contract768 /// @notice Count RFTs tracked by this contracttests/src/eth/api/UniqueFungible.soldiffbeforeafterboth334pragma solidity >=0.8.0 <0.9.0;4pragma solidity >=0.8.0 <0.9.0;556<<<<<<< HEAD6/// @dev common stubs holder7/// @dev common stubs holder8=======9// Anonymous struct10struct Tuple0 {11 address field_0;12 uint256 field_1;13}1415// Common stubs holder16>>>>>>> misk: Update stubs7interface Dummy {17interface Dummy {8189}19}12 function supportsInterface(bytes4 interfaceID) external view returns (bool);22 function supportsInterface(bytes4 interfaceID) external view returns (bool);13}23}142425<<<<<<< HEAD15/// @title A contract that allows you to work with collections.26/// @title A contract that allows you to work with collections.16/// @dev the ERC-165 identifier for this interface is 0xffe4da2327/// @dev the ERC-165 identifier for this interface is 0xffe4da2328=======29// Inline30interface ERC20Events {31 event Transfer(address indexed from, address indexed to, uint256 value);32 event Approval(33 address indexed owner,34 address indexed spender,35 uint256 value36 );37}3839<<<<<<< HEAD40// Selector: 79cc679041interface ERC20UniqueExtensions is Dummy, ERC165 {42 // Selector: burnFrom(address,uint256) 79cc679043 function burnFrom(address from, uint256 amount) external returns (bool);44}4546// Selector: 942e8b2247interface ERC20 is Dummy, ERC165, ERC20Events {48 // Selector: name() 06fdde0349 function name() external view returns (string memory);5051 // Selector: symbol() 95d89b4152 function symbol() external view returns (string memory);5354 // Selector: totalSupply() 18160ddd55 function totalSupply() external view returns (uint256);5657 // Selector: decimals() 313ce56758 function decimals() external view returns (uint8);5960 // Selector: balanceOf(address) 70a0823161 function balanceOf(address owner) external view returns (uint256);6263 // Selector: transfer(address,uint256) a9059cbb64 function transfer(address to, uint256 amount) external returns (bool);6566 // Selector: transferFrom(address,address,uint256) 23b872dd67 function transferFrom(68 address from,69 address to,70 uint256 amount71 ) external returns (bool);7273 // Selector: approve(address,uint256) 095ea7b374 function approve(address spender, uint256 amount) external returns (bool);7576 // Selector: allowance(address,address) dd62ed3e77 function allowance(address owner, address spender)78 external79 view80 returns (uint256);81}8283// Selector: ffe4da2384=======85// Selector: 765e2fae86>>>>>>> misk: Update stubs87>>>>>>> misk: Update stubs17interface Collection is Dummy, ERC165 {88interface Collection is Dummy, ERC165 {18 /// Set collection property.89 /// Set collection property.19 ///90 ///53 /// or in textual repr: setCollectionSponsor(address)124 /// or in textual repr: setCollectionSponsor(address)54 function setCollectionSponsor(address sponsor) external;125 function setCollectionSponsor(address sponsor) external;55126127<<<<<<< HEAD56 /// Collection sponsorship confirmation.128 /// Collection sponsorship confirmation.57 ///129 ///58 /// @dev After setting the sponsor for the collection, it must be confirmed with this function.130 /// @dev After setting the sponsor for the collection, it must be confirmed with this function.72 /// @param value Value of the limit.144 /// @param value Value of the limit.73 /// @dev EVM selector for this function is: 0x6a3841db,145 /// @dev EVM selector for this function is: 0x6a3841db,74 /// or in textual repr: setCollectionLimit(string,uint32)146 /// or in textual repr: setCollectionLimit(string,uint32)147=======148 // Set the substrate sponsor of the collection.149 //150 // @dev In order for sponsorship to work, it must be confirmed on behalf of the sponsor.151 //152 // @param sponsor Substrate address of the sponsor from whose account funds will be debited for operations with the contract.153 //154 // Selector: setCollectionSponsorSubstrate(uint256) c74d6751155 function setCollectionSponsorSubstrate(uint256 sponsor) external;156157 // Selector: hasCollectionPendingSponsor() 058ac185158 function hasCollectionPendingSponsor() external view returns (bool);159160 // Collection sponsorship confirmation.161 //162 // @dev After setting the sponsor for the collection, it must be confirmed with this function.163 //164 // Selector: confirmCollectionSponsorship() 3c50e97a165 function confirmCollectionSponsorship() external;166167 // Remove collection sponsor.168 //169 // Selector: removeCollectionSponsor() 6e0326a3170 function removeCollectionSponsor() external;171172 // Get current sponsor.173 //174 // @return Tuble with sponsor address and his substrate mirror. If there is no confirmed sponsor error "Contract has no sponsor" throw.175 //176 // Selector: getCollectionSponsor() b66bbc14177 function getCollectionSponsor() external view returns (Tuple0 memory);178179 // Set limits for the collection.180 // @dev Throws error if limit not found.181 // @param limit Name of the limit. Valid names:182 // "accountTokenOwnershipLimit",183 // "sponsoredDataSize",184 // "sponsoredDataRateLimit",185 // "tokenLimit",186 // "sponsorTransferTimeout",187 // "sponsorApproveTimeout"188 // @param value Value of the limit.189 //190 // Selector: setCollectionLimit(string,uint32) 6a3841db191>>>>>>> misk: Update stubs75 function setCollectionLimit(string memory limit, uint32 value) external;192 function setCollectionLimit(string memory limit, uint32 value) external;7619377 /// Set limits for the collection.194 /// Set limits for the collection.tests/src/eth/api/UniqueNFT.soldiffbeforeafterboth334pragma solidity >=0.8.0 <0.9.0;4pragma solidity >=0.8.0 <0.9.0;556<<<<<<< HEAD6/// @dev common stubs holder7/// @dev common stubs holder8=======9// Anonymous struct10struct Tuple0 {11 uint256 field_0;12 string field_1;13}1415// Anonymous struct16struct Tuple1 {17 address field_0;18 uint256 field_1;19}2021// Common stubs holder22>>>>>>> misk: Update stubs7interface Dummy {23interface Dummy {8249}25}305 function finishMinting() external returns (bool);321 function finishMinting() external returns (bool);306}322}307323324<<<<<<< HEAD308/// @title Unique extensions for ERC721.325/// @title Unique extensions for ERC721.309/// @dev the ERC-165 identifier for this interface is 0xd74d154f326/// @dev the ERC-165 identifier for this interface is 0xd74d154f327=======328<<<<<<< HEAD329// Selector: 780e9d63330interface ERC721Enumerable is Dummy, ERC165 {331 // @notice Enumerate valid NFTs332 // @param index A counter less than `totalSupply()`333 // @return The token identifier for the `index`th NFT,334 // (sort order not specified)335 //336 // Selector: tokenByIndex(uint256) 4f6ccce7337 function tokenByIndex(uint256 index) external view returns (uint256);338339 // @dev Not implemented340 //341 // Selector: tokenOfOwnerByIndex(address,uint256) 2f745c59342 function tokenOfOwnerByIndex(address owner, uint256 index)343 external344 view345 returns (uint256);346347 // @notice Count NFTs tracked by this contract348 // @return A count of valid NFTs tracked by this contract, where each one of349 // them has an assigned and queryable owner not equal to the zero address350 //351 // Selector: totalSupply() 18160ddd352 function totalSupply() external view returns (uint256);353}354355// Selector: d74d154f356>>>>>>> misk: Update stubs310interface ERC721UniqueExtensions is Dummy, ERC165 {357interface ERC721UniqueExtensions is Dummy, ERC165 {311 /// @notice Transfer ownership of an NFT358 /// @notice Transfer ownership of an NFT312 /// @dev Throws unless `msg.sender` is the current owner. Throws if `to`359 /// @dev Throws unless `msg.sender` is the current owner. Throws if `to`355 returns (bool);402 returns (bool);356}403}357404405<<<<<<< HEAD358/// @dev anonymous struct406/// @dev anonymous struct359struct Tuple8 {407struct Tuple8 {360 uint256 field_0;408 uint256 field_0;361 string field_1;409 string field_1;362}410}411=======412// Selector: ffe4da23413=======414// Selector: 765e2fae415>>>>>>> misk: Update stubs416interface Collection is Dummy, ERC165 {417 // Set collection property.418 //419 // @param key Property key.420 // @param value Propery value.421 //422 // Selector: setCollectionProperty(string,bytes) 2f073f66423 function setCollectionProperty(string memory key, bytes memory value)424 external;425>>>>>>> misk: Update stubs363426364/// @title ERC-721 Non-Fungible Token Standard, optional enumeration extension427/// @title ERC-721 Non-Fungible Token Standard, optional enumeration extension365/// @dev See https://eips.ethereum.org/EIPS/eip-721428/// @dev See https://eips.ethereum.org/EIPS/eip-721379 function tokenOfOwnerByIndex(address owner, uint256 index)442 function tokenOfOwnerByIndex(address owner, uint256 index)380 external443 external381 view444 view445<<<<<<< HEAD382 returns (uint256);446 returns (uint256);447=======448 returns (bytes memory);449450 // Set the sponsor of the collection.451 //452 // @dev In order for sponsorship to work, it must be confirmed on behalf of the sponsor.453 //454 // @param sponsor Address of the sponsor from whose account funds will be debited for operations with the contract.455 //456 // Selector: setCollectionSponsor(address) 7623402e457 function setCollectionSponsor(address sponsor) external;458459 // Set the substrate sponsor of the collection.460 //461 // @dev In order for sponsorship to work, it must be confirmed on behalf of the sponsor.462 //463 // @param sponsor Substrate address of the sponsor from whose account funds will be debited for operations with the contract.464 //465 // Selector: setCollectionSponsorSubstrate(uint256) c74d6751466 function setCollectionSponsorSubstrate(uint256 sponsor) external;467468 // Selector: hasCollectionPendingSponsor() 058ac185469 function hasCollectionPendingSponsor() external view returns (bool);470471 // Collection sponsorship confirmation.472 //473 // @dev After setting the sponsor for the collection, it must be confirmed with this function.474 //475 // Selector: confirmCollectionSponsorship() 3c50e97a476 function confirmCollectionSponsorship() external;477478 // Remove collection sponsor.479 //480 // Selector: removeCollectionSponsor() 6e0326a3481 function removeCollectionSponsor() external;482483 // Get current sponsor.484 //485 // @return Tuble with sponsor address and his substrate mirror. If there is no confirmed sponsor error "Contract has no sponsor" throw.486 //487 // Selector: getCollectionSponsor() b66bbc14488 function getCollectionSponsor() external view returns (Tuple1 memory);489490 // Set limits for the collection.491 // @dev Throws error if limit not found.492 // @param limit Name of the limit. Valid names:493 // "accountTokenOwnershipLimit",494 // "sponsoredDataSize",495 // "sponsoredDataRateLimit",496 // "tokenLimit",497 // "sponsorTransferTimeout",498 // "sponsorApproveTimeout"499 // @param value Value of the limit.500 //501 // Selector: setCollectionLimit(string,uint32) 6a3841db502 function setCollectionLimit(string memory limit, uint32 value) external;503504 // Set limits for the collection.505 // @dev Throws error if limit not found.506 // @param limit Name of the limit. Valid names:507 // "ownerCanTransfer",508 // "ownerCanDestroy",509 // "transfersEnabled"510 // @param value Value of the limit.511 //512 // Selector: setCollectionLimit(string,bool) 993b7fba513 function setCollectionLimit(string memory limit, bool value) external;514515 // Get contract address.516 //517 // Selector: contractAddress() f6b4dfb4518 function contractAddress() external view returns (address);519520 // Add collection admin by substrate address.521 // @param new_admin Substrate administrator address.522 //523 // Selector: addCollectionAdminSubstrate(uint256) 5730062b524 function addCollectionAdminSubstrate(uint256 newAdmin) external;525>>>>>>> misk: Update stubs383526384 /// @notice Count NFTs tracked by this contract527 /// @notice Count NFTs tracked by this contract385 /// @return A count of valid NFTs tracked by this contract, where each one of528 /// @return A count of valid NFTs tracked by this contract, where each one oftests/src/eth/api/UniqueRefungible.soldiffbeforeafterboth334pragma solidity >=0.8.0 <0.9.0;4pragma solidity >=0.8.0 <0.9.0;556<<<<<<< HEAD6/// @dev common stubs holder7/// @dev common stubs holder8=======9// Anonymous struct10struct Tuple0 {11 uint256 field_0;12 string field_1;13}1415// Anonymous struct16struct Tuple1 {17 address field_0;18 uint256 field_1;19}2021// Common stubs holder22>>>>>>> misk: Update stubs7interface Dummy {23interface Dummy {8249}25}305 function finishMinting() external returns (bool);321 function finishMinting() external returns (bool);306}322}307323324<<<<<<< HEAD308/// @title Unique extensions for ERC721.325/// @title Unique extensions for ERC721.309/// @dev the ERC-165 identifier for this interface is 0x7c3bef89326/// @dev the ERC-165 identifier for this interface is 0x7c3bef89327=======328<<<<<<< HEAD329// Selector: 780e9d63330interface ERC721Enumerable is Dummy, ERC165 {331 // @notice Enumerate valid RFTs332 // @param index A counter less than `totalSupply()`333 // @return The token identifier for the `index`th NFT,334 // (sort order not specified)335 //336 // Selector: tokenByIndex(uint256) 4f6ccce7337 function tokenByIndex(uint256 index) external view returns (uint256);338339 // Not implemented340 //341 // Selector: tokenOfOwnerByIndex(address,uint256) 2f745c59342 function tokenOfOwnerByIndex(address owner, uint256 index)343 external344 view345 returns (uint256);346347 // @notice Count RFTs tracked by this contract348 // @return A count of valid RFTs tracked by this contract, where each one of349 // them has an assigned and queryable owner not equal to the zero address350 //351 // Selector: totalSupply() 18160ddd352 function totalSupply() external view returns (uint256);353}354355// Selector: 7c3bef89356>>>>>>> misk: Update stubs310interface ERC721UniqueExtensions is Dummy, ERC165 {357interface ERC721UniqueExtensions is Dummy, ERC165 {311 /// @notice Transfer ownership of an RFT358 /// @notice Transfer ownership of an RFT312 /// @dev Throws unless `msg.sender` is the current owner. Throws if `to`359 /// @dev Throws unless `msg.sender` is the current owner. Throws if `to`367 returns (address);414 returns (address);368}415}369416417<<<<<<< HEAD370/// @dev anonymous struct418/// @dev anonymous struct371struct Tuple8 {419struct Tuple8 {372 uint256 field_0;420 uint256 field_0;373 string field_1;421 string field_1;374}422}423=======424// Selector: ffe4da23425=======426// Selector: 765e2fae427>>>>>>> misk: Update stubs428interface Collection is Dummy, ERC165 {429 // Set collection property.430 //431 // @param key Property key.432 // @param value Propery value.433 //434 // Selector: setCollectionProperty(string,bytes) 2f073f66435 function setCollectionProperty(string memory key, bytes memory value)436 external;437>>>>>>> misk: Update stubs375438376/// @title ERC-721 Non-Fungible Token Standard, optional enumeration extension439/// @title ERC-721 Non-Fungible Token Standard, optional enumeration extension377/// @dev See https://eips.ethereum.org/EIPS/eip-721440/// @dev See https://eips.ethereum.org/EIPS/eip-721391 function tokenOfOwnerByIndex(address owner, uint256 index)454 function tokenOfOwnerByIndex(address owner, uint256 index)392 external455 external393 view456 view457<<<<<<< HEAD394 returns (uint256);458 returns (uint256);459=======460 returns (bytes memory);461462 // Set the sponsor of the collection.463 //464 // @dev In order for sponsorship to work, it must be confirmed on behalf of the sponsor.465 //466 // @param sponsor Address of the sponsor from whose account funds will be debited for operations with the contract.467 //468 // Selector: setCollectionSponsor(address) 7623402e469 function setCollectionSponsor(address sponsor) external;470471 // Set the substrate sponsor of the collection.472 //473 // @dev In order for sponsorship to work, it must be confirmed on behalf of the sponsor.474 //475 // @param sponsor Substrate address of the sponsor from whose account funds will be debited for operations with the contract.476 //477 // Selector: setCollectionSponsorSubstrate(uint256) c74d6751478 function setCollectionSponsorSubstrate(uint256 sponsor) external;479480 // Selector: hasCollectionPendingSponsor() 058ac185481 function hasCollectionPendingSponsor() external view returns (bool);482483 // Collection sponsorship confirmation.484 //485 // @dev After setting the sponsor for the collection, it must be confirmed with this function.486 //487 // Selector: confirmCollectionSponsorship() 3c50e97a488 function confirmCollectionSponsorship() external;489490 // Remove collection sponsor.491 //492 // Selector: removeCollectionSponsor() 6e0326a3493 function removeCollectionSponsor() external;494495 // Get current sponsor.496 //497 // @return Tuble with sponsor address and his substrate mirror. If there is no confirmed sponsor error "Contract has no sponsor" throw.498 //499 // Selector: getCollectionSponsor() b66bbc14500 function getCollectionSponsor() external view returns (Tuple1 memory);501502 // Set limits for the collection.503 // @dev Throws error if limit not found.504 // @param limit Name of the limit. Valid names:505 // "accountTokenOwnershipLimit",506 // "sponsoredDataSize",507 // "sponsoredDataRateLimit",508 // "tokenLimit",509 // "sponsorTransferTimeout",510 // "sponsorApproveTimeout"511 // @param value Value of the limit.512 //513 // Selector: setCollectionLimit(string,uint32) 6a3841db514 function setCollectionLimit(string memory limit, uint32 value) external;515516 // Set limits for the collection.517 // @dev Throws error if limit not found.518 // @param limit Name of the limit. Valid names:519 // "ownerCanTransfer",520 // "ownerCanDestroy",521 // "transfersEnabled"522 // @param value Value of the limit.523 //524 // Selector: setCollectionLimit(string,bool) 993b7fba525 function setCollectionLimit(string memory limit, bool value) external;526527 // Get contract address.528 //529 // Selector: contractAddress() f6b4dfb4530 function contractAddress() external view returns (address);531532 // Add collection admin by substrate address.533 // @param new_admin Substrate administrator address.534 //535 // Selector: addCollectionAdminSubstrate(uint256) 5730062b536 function addCollectionAdminSubstrate(uint256 newAdmin) external;537>>>>>>> misk: Update stubs395538396 /// @notice Count RFTs tracked by this contract539 /// @notice Count RFTs tracked by this contract397 /// @return A count of valid RFTs tracked by this contract, where each one of540 /// @return A count of valid RFTs tracked by this contract, where each one oftests/src/eth/fungibleAbi.jsondiffbeforeafterboth170 },170 },171 {171 {172 "inputs": [],172 "inputs": [],173 "name": "getCollectionSponsor",174 "outputs": [175 {176 "components": [177 { "internalType": "address", "name": "field_0", "type": "address" },178 { "internalType": "uint256", "name": "field_1", "type": "uint256" }179 ],180 "internalType": "struct Tuple0",181 "name": "",182 "type": "tuple"183 }184 ],185 "stateMutability": "view",186 "type": "function"187 },188 {189 "inputs": [],190 "name": "hasCollectionPendingSponsor",191 "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],192 "stateMutability": "view",193 "type": "function"194 },195 {196 "inputs": [],173 "name": "name",197 "name": "name",174 "outputs": [{ "internalType": "string", "name": "", "type": "string" }],198 "outputs": [{ "internalType": "string", "name": "", "type": "string" }],175 "stateMutability": "view",199 "stateMutability": "view",194 "type": "function"218 "type": "function"195 },219 },196 {220 {221 "inputs": [],222 "name": "removeCollectionSponsor",223 "outputs": [],224 "stateMutability": "nonpayable",225 "type": "function"226 },227 {197 "inputs": [228 "inputs": [198 { "internalType": "address", "name": "user", "type": "address" }229 { "internalType": "address", "name": "user", "type": "address" }199 ],230 ],278 },309 },279 {310 {280 "inputs": [311 "inputs": [312<<<<<<< HEAD281 { "internalType": "address", "name": "newOwner", "type": "address" }313 { "internalType": "address", "name": "newOwner", "type": "address" }282 ],314 ],283 "name": "setOwner",315 "name": "setOwner",290 { "internalType": "uint256", "name": "newOwner", "type": "uint256" }322 { "internalType": "uint256", "name": "newOwner", "type": "uint256" }291 ],323 ],292 "name": "setOwnerSubstrate",324 "name": "setOwnerSubstrate",325=======326 { "internalType": "uint256", "name": "sponsor", "type": "uint256" }327 ],328 "name": "setCollectionSponsorSubstrate",329>>>>>>> misk: Update stubs293 "outputs": [],330 "outputs": [],294 "stateMutability": "nonpayable",331 "stateMutability": "nonpayable",295 "type": "function"332 "type": "function"tests/src/eth/nonFungibleAbi.jsondiffbeforeafterboth200 "type": "function"200 "type": "function"201 },201 },202 {202 {203 "inputs": [],204 "name": "getCollectionSponsor",205 "outputs": [206 {207 "components": [208 { "internalType": "address", "name": "field_0", "type": "address" },209 { "internalType": "uint256", "name": "field_1", "type": "uint256" }210 ],211 "internalType": "struct Tuple1",212 "name": "",213 "type": "tuple"214 }215 ],216 "stateMutability": "view",217 "type": "function"218 },219 {220 "inputs": [],221 "name": "hasCollectionPendingSponsor",222 "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],223 "stateMutability": "view",224 "type": "function"225 },226 {203 "inputs": [227 "inputs": [204 { "internalType": "address", "name": "owner", "type": "address" },228 { "internalType": "address", "name": "owner", "type": "address" },205 { "internalType": "address", "name": "operator", "type": "address" }229 { "internalType": "address", "name": "operator", "type": "address" }335 "type": "function"359 "type": "function"336 },360 },337 {361 {362 "inputs": [],363 "name": "removeCollectionSponsor",364 "outputs": [],365 "stateMutability": "nonpayable",366 "type": "function"367 },368 {338 "inputs": [369 "inputs": [339 { "internalType": "address", "name": "user", "type": "address" }370 { "internalType": "address", "name": "user", "type": "address" }340 ],371 ],452 },483 },453 {484 {454 "inputs": [485 "inputs": [486<<<<<<< HEAD455 { "internalType": "address", "name": "newOwner", "type": "address" }487 { "internalType": "address", "name": "newOwner", "type": "address" }456 ],488 ],457 "name": "setOwner",489 "name": "setOwner",464 { "internalType": "uint256", "name": "newOwner", "type": "uint256" }496 { "internalType": "uint256", "name": "newOwner", "type": "uint256" }465 ],497 ],466 "name": "setOwnerSubstrate",498 "name": "setOwnerSubstrate",499=======500 { "internalType": "uint256", "name": "sponsor", "type": "uint256" }501 ],502 "name": "setCollectionSponsorSubstrate",503>>>>>>> misk: Update stubs467 "outputs": [],504 "outputs": [],468 "stateMutability": "nonpayable",505 "stateMutability": "nonpayable",469 "type": "function"506 "type": "function"tests/src/eth/reFungibleAbi.jsondiffbeforeafterboth200 "type": "function"200 "type": "function"201 },201 },202 {202 {203 "inputs": [],204 "name": "getCollectionSponsor",205 "outputs": [206 {207 "components": [208 { "internalType": "address", "name": "field_0", "type": "address" },209 { "internalType": "uint256", "name": "field_1", "type": "uint256" }210 ],211 "internalType": "struct Tuple1",212 "name": "",213 "type": "tuple"214 }215 ],216 "stateMutability": "view",217 "type": "function"218 },219 {220 "inputs": [],221 "name": "hasCollectionPendingSponsor",222 "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],223 "stateMutability": "view",224 "type": "function"225 },226 {203 "inputs": [227 "inputs": [204 { "internalType": "address", "name": "owner", "type": "address" },228 { "internalType": "address", "name": "owner", "type": "address" },205 { "internalType": "address", "name": "operator", "type": "address" }229 { "internalType": "address", "name": "operator", "type": "address" }335 "type": "function"359 "type": "function"336 },360 },337 {361 {362 "inputs": [],363 "name": "removeCollectionSponsor",364 "outputs": [],365 "stateMutability": "nonpayable",366 "type": "function"367 },368 {338 "inputs": [369 "inputs": [339 { "internalType": "address", "name": "user", "type": "address" }370 { "internalType": "address", "name": "user", "type": "address" }340 ],371 ],452 },483 },453 {484 {454 "inputs": [485 "inputs": [486<<<<<<< HEAD455 { "internalType": "address", "name": "newOwner", "type": "address" }487 { "internalType": "address", "name": "newOwner", "type": "address" }456 ],488 ],457 "name": "setOwner",489 "name": "setOwner",464 { "internalType": "uint256", "name": "newOwner", "type": "uint256" }496 { "internalType": "uint256", "name": "newOwner", "type": "uint256" }465 ],497 ],466 "name": "setOwnerSubstrate",498 "name": "setOwnerSubstrate",499=======500 { "internalType": "uint256", "name": "sponsor", "type": "uint256" }501 ],502 "name": "setCollectionSponsorSubstrate",503>>>>>>> misk: Update stubs467 "outputs": [],504 "outputs": [],468 "stateMutability": "nonpayable",505 "stateMutability": "nonpayable",469 "type": "function"506 "type": "function"