difftreelog
misc: update stubs
in: master
14 files changed
pallets/evm-contract-helpers/src/stubs/ContractHelpers.soldiffbeforeafterboth--- a/pallets/evm-contract-helpers/src/stubs/ContractHelpers.sol
+++ b/pallets/evm-contract-helpers/src/stubs/ContractHelpers.sol
@@ -21,20 +21,8 @@
}
}
-<<<<<<< HEAD
-<<<<<<< HEAD
/// @title Magic contract, which allows users to reconfigure other contracts
/// @dev the ERC-165 identifier for this interface is 0xd77fab70
-=======
-<<<<<<< HEAD
-// Selector: 6073d917
-=======
-// Selector: 06fc42e9
->>>>>>> path: add stubs
->>>>>>> path: add stubs
-=======
-// Selector: 6073d917
->>>>>>> misc: update stubs
contract ContractHelpers is Dummy, ERC165 {
/// Get user, which deployed specified contract
/// @dev May return zero address in case if contract is deployed
@@ -56,24 +44,11 @@
return 0x0000000000000000000000000000000000000000;
}
-<<<<<<< HEAD
-<<<<<<< HEAD
/// Set sponsor.
/// @param contractAddress Contract for which a sponsor is being established.
/// @param sponsor User address who set as pending sponsor.
/// @dev EVM selector for this function is: 0xf01fba93,
/// or in textual repr: setSponsor(address,address)
-=======
-<<<<<<< HEAD
-=======
->>>>>>> misc: update stubs
- // Set sponsor.
- //
- // @param contract_address Contract for which a sponsor is being established.
- // @param sponsor User address who set as pending sponsor.
- //
- // Selector: setSponsor(address,address) f01fba93
->>>>>>> path: add stubs
function setSponsor(address contractAddress, address sponsor) public {
require(false, stub_error);
contractAddress;
@@ -81,46 +56,22 @@
dummy = 0;
}
-<<<<<<< HEAD
-<<<<<<< HEAD
/// Set contract as self sponsored.
///
/// @param contractAddress Contract for which a self sponsoring is being enabled.
/// @dev EVM selector for this function is: 0x89f7d9ae,
/// or in textual repr: selfSponsoredEnable(address)
-=======
-<<<<<<< HEAD
-=======
->>>>>>> misc: update stubs
- // Set contract as self sponsored.
- //
- // @param contract_address Contract for which a self sponsoring is being enabled.
- //
- // Selector: selfSponsoredEnable(address) 89f7d9ae
->>>>>>> path: add stubs
function selfSponsoredEnable(address contractAddress) public {
require(false, stub_error);
contractAddress;
dummy = 0;
}
-<<<<<<< HEAD
-<<<<<<< HEAD
/// Remove sponsor.
///
/// @param contractAddress Contract for which a sponsorship is being removed.
/// @dev EVM selector for this function is: 0xef784250,
/// or in textual repr: removeSponsor(address)
-=======
-<<<<<<< HEAD
-=======
->>>>>>> misc: update stubs
- // Remove sponsor.
- //
- // @param contract_address Contract for which a sponsorship is being removed.
- //
- // Selector: removeSponsor(address) ef784250
->>>>>>> path: add stubs
function removeSponsor(address contractAddress) public {
require(false, stub_error);
contractAddress;
@@ -170,25 +121,12 @@
return false;
}
-<<<<<<< HEAD
-<<<<<<< HEAD
/// Check tat contract has pending sponsor.
///
/// @param contractAddress The contract for which the presence of a pending sponsor is checked.
/// @return **true** if contract has pending sponsor.
/// @dev EVM selector for this function is: 0x39b9b242,
/// or in textual repr: hasPendingSponsor(address)
-=======
-<<<<<<< HEAD
-=======
->>>>>>> misc: update stubs
- // Check tat contract has pending sponsor.
- //
- // @param contract_address The contract for which the presence of a pending sponsor is checked.
- // @return **true** if contract has pending sponsor.
- //
- // Selector: hasPendingSponsor(address) 39b9b242
->>>>>>> path: add stubs
function hasPendingSponsor(address contractAddress)
public
view
pallets/fungible/src/stubs/UniqueFungible.rawdiffbeforeafterbothbinary blob — no preview
pallets/fungible/src/stubs/UniqueFungible.soldiffbeforeafterboth--- a/pallets/fungible/src/stubs/UniqueFungible.sol
+++ b/pallets/fungible/src/stubs/UniqueFungible.sol
@@ -3,17 +3,7 @@
pragma solidity >=0.8.0 <0.9.0;
-<<<<<<< HEAD
/// @dev common stubs holder
-=======
-// Anonymous struct
-struct Tuple0 {
- address field_0;
- uint256 field_1;
-}
-
-// Common stubs holder
->>>>>>> misk: Update stubs
contract Dummy {
uint8 dummy;
string stub_error = "this contract is implemented in native";
@@ -31,125 +21,8 @@
}
}
-<<<<<<< HEAD
/// @title A contract that allows you to work with collections.
-/// @dev the ERC-165 identifier for this interface is 0xffe4da23
-=======
-// Inline
-contract ERC20Events {
- event Transfer(address indexed from, address indexed to, uint256 value);
- event Approval(
- address indexed owner,
- address indexed spender,
- uint256 value
- );
-}
-
-// Selector: 79cc6790
-contract ERC20UniqueExtensions is Dummy, ERC165 {
- // Selector: burnFrom(address,uint256) 79cc6790
- function burnFrom(address from, uint256 amount) public returns (bool) {
- require(false, stub_error);
- from;
- amount;
- dummy = 0;
- return false;
- }
-}
-
-// Selector: 942e8b22
-contract ERC20 is Dummy, ERC165, ERC20Events {
- // Selector: name() 06fdde03
- function name() public view returns (string memory) {
- require(false, stub_error);
- dummy;
- return "";
- }
-
- // Selector: symbol() 95d89b41
- function symbol() public view returns (string memory) {
- require(false, stub_error);
- dummy;
- return "";
- }
-
- // Selector: totalSupply() 18160ddd
- function totalSupply() public view returns (uint256) {
- require(false, stub_error);
- dummy;
- return 0;
- }
-
- // Selector: decimals() 313ce567
- function decimals() public view returns (uint8) {
- require(false, stub_error);
- dummy;
- return 0;
- }
-
- // Selector: balanceOf(address) 70a08231
- function balanceOf(address owner) public view returns (uint256) {
- require(false, stub_error);
- owner;
- dummy;
- return 0;
- }
-
- // Selector: transfer(address,uint256) a9059cbb
- function transfer(address to, uint256 amount) public returns (bool) {
- require(false, stub_error);
- to;
- amount;
- dummy = 0;
- return false;
- }
-
- // Selector: transferFrom(address,address,uint256) 23b872dd
- function transferFrom(
- address from,
- address to,
- uint256 amount
- ) public returns (bool) {
- require(false, stub_error);
- from;
- to;
- amount;
- dummy = 0;
- return false;
- }
-
- // Selector: approve(address,uint256) 095ea7b3
- function approve(address spender, uint256 amount) public returns (bool) {
- require(false, stub_error);
- spender;
- amount;
- dummy = 0;
- return false;
- }
-
- // Selector: allowance(address,address) dd62ed3e
- function allowance(address owner, address spender)
- public
- view
- returns (uint256)
- {
- require(false, stub_error);
- owner;
- spender;
- dummy;
- return 0;
- }
-}
-
-<<<<<<< HEAD
-// Selector: ffe4da23
-=======
-// Selector: 765e2fae
->>>>>>> misk: Update stubs
->>>>>>> misk: Update stubs
-=======
-// Selector: e54be640
->>>>>>> misc: update stubs
+/// @dev the ERC-165 identifier for this interface is 0xe54be640
contract Collection is Dummy, ERC165 {
/// Set collection property.
///
@@ -209,45 +82,56 @@
dummy = 0;
}
-<<<<<<< HEAD
- /// Collection sponsorship confirmation.
+ /// Set the substrate sponsor of the collection.
+ ///
+ /// @dev In order for sponsorship to work, it must be confirmed on behalf of the sponsor.
///
- /// @dev After setting the sponsor for the collection, it must be confirmed with this function.
- /// @dev EVM selector for this function is: 0x3c50e97a,
- /// or in textual repr: confirmCollectionSponsorship()
-=======
- // Set the substrate sponsor of the collection.
- //
- // @dev In order for sponsorship to work, it must be confirmed on behalf of the sponsor.
- //
- // @param sponsor Substrate address of the sponsor from whose account funds will be debited for operations with the contract.
- //
- // Selector: setCollectionSponsorSubstrate(uint256) c74d6751
+ /// @param sponsor Substrate address of the sponsor from whose account funds will be debited for operations with the contract.
+ /// @dev EVM selector for this function is: 0xc74d6751,
+ /// or in textual repr: setCollectionSponsorSubstrate(uint256)
function setCollectionSponsorSubstrate(uint256 sponsor) public {
require(false, stub_error);
sponsor;
dummy = 0;
}
- // Selector: hasCollectionPendingSponsor() 058ac185
+ /// @dev EVM selector for this function is: 0x058ac185,
+ /// or in textual repr: hasCollectionPendingSponsor()
function hasCollectionPendingSponsor() public view returns (bool) {
require(false, stub_error);
dummy;
return false;
}
- // Collection sponsorship confirmation.
- //
- // @dev After setting the sponsor for the collection, it must be confirmed with this function.
- //
- // Selector: confirmCollectionSponsorship() 3c50e97a
->>>>>>> misk: Update stubs
+ /// Collection sponsorship confirmation.
+ ///
+ /// @dev After setting the sponsor for the collection, it must be confirmed with this function.
+ /// @dev EVM selector for this function is: 0x3c50e97a,
+ /// or in textual repr: confirmCollectionSponsorship()
function confirmCollectionSponsorship() public {
require(false, stub_error);
dummy = 0;
}
-<<<<<<< HEAD
+ /// Remove collection sponsor.
+ /// @dev EVM selector for this function is: 0x6e0326a3,
+ /// or in textual repr: removeCollectionSponsor()
+ function removeCollectionSponsor() public {
+ require(false, stub_error);
+ dummy = 0;
+ }
+
+ /// Get current sponsor.
+ ///
+ /// @return Tuble with sponsor address and his substrate mirror. If there is no confirmed sponsor error "Contract has no sponsor" throw.
+ /// @dev EVM selector for this function is: 0xb66bbc14,
+ /// or in textual repr: getCollectionSponsor()
+ function getCollectionSponsor() public view returns (Tuple6 memory) {
+ require(false, stub_error);
+ dummy;
+ return Tuple6(0x0000000000000000000000000000000000000000, 0);
+ }
+
/// Set limits for the collection.
/// @dev Throws error if limit not found.
/// @param limit Name of the limit. Valid names:
@@ -260,39 +144,6 @@
/// @param value Value of the limit.
/// @dev EVM selector for this function is: 0x6a3841db,
/// or in textual repr: setCollectionLimit(string,uint32)
-=======
- // Remove collection sponsor.
- //
- // Selector: removeCollectionSponsor() 6e0326a3
- function removeCollectionSponsor() public {
- require(false, stub_error);
- dummy = 0;
- }
-
- // Get current sponsor.
- //
- // @return Tuble with sponsor address and his substrate mirror. If there is no confirmed sponsor error "Contract has no sponsor" throw.
- //
- // Selector: getCollectionSponsor() b66bbc14
- function getCollectionSponsor() public view returns (Tuple0 memory) {
- require(false, stub_error);
- dummy;
- return Tuple0(0x0000000000000000000000000000000000000000, 0);
- }
-
- // Set limits for the collection.
- // @dev Throws error if limit not found.
- // @param limit Name of the limit. Valid names:
- // "accountTokenOwnershipLimit",
- // "sponsoredDataSize",
- // "sponsoredDataRateLimit",
- // "tokenLimit",
- // "sponsorTransferTimeout",
- // "sponsorApproveTimeout"
- // @param value Value of the limit.
- //
- // Selector: setCollectionLimit(string,uint32) 6a3841db
->>>>>>> misk: Update stubs
function setCollectionLimit(string memory limit, uint32 value) public {
require(false, stub_error);
limit;
@@ -499,6 +350,12 @@
}
}
+/// @dev anonymous struct
+struct Tuple6 {
+ address field_0;
+ uint256 field_1;
+}
+
/// @dev the ERC-165 identifier for this interface is 0x79cc6790
contract ERC20UniqueExtensions is Dummy, ERC165 {
/// @dev EVM selector for this function is: 0x79cc6790,
pallets/nonfungible/src/stubs/UniqueNFT.rawdiffbeforeafterbothbinary blob — no preview
pallets/nonfungible/src/stubs/UniqueNFT.soldiffbeforeafterboth--- a/pallets/nonfungible/src/stubs/UniqueNFT.sol
+++ b/pallets/nonfungible/src/stubs/UniqueNFT.sol
@@ -3,23 +3,7 @@
pragma solidity >=0.8.0 <0.9.0;
-<<<<<<< HEAD
/// @dev common stubs holder
-=======
-// Anonymous struct
-struct Tuple0 {
- uint256 field_0;
- string field_1;
-}
-
-// Anonymous struct
-struct Tuple1 {
- address field_0;
- uint256 field_1;
-}
-
-// Common stubs holder
->>>>>>> misk: Update stubs
contract Dummy {
uint8 dummy;
string stub_error = "this contract is implemented in native";
@@ -115,7 +99,7 @@
}
/// @title A contract that allows you to work with collections.
-/// @dev the ERC-165 identifier for this interface is 0xffe4da23
+/// @dev the ERC-165 identifier for this interface is 0xe54be640
contract Collection is Dummy, ERC165 {
/// Set collection property.
///
@@ -175,6 +159,27 @@
dummy = 0;
}
+ /// Set the substrate sponsor of the collection.
+ ///
+ /// @dev In order for sponsorship to work, it must be confirmed on behalf of the sponsor.
+ ///
+ /// @param sponsor Substrate address of the sponsor from whose account funds will be debited for operations with the contract.
+ /// @dev EVM selector for this function is: 0xc74d6751,
+ /// or in textual repr: setCollectionSponsorSubstrate(uint256)
+ function setCollectionSponsorSubstrate(uint256 sponsor) public {
+ require(false, stub_error);
+ sponsor;
+ dummy = 0;
+ }
+
+ /// @dev EVM selector for this function is: 0x058ac185,
+ /// or in textual repr: hasCollectionPendingSponsor()
+ function hasCollectionPendingSponsor() public view returns (bool) {
+ require(false, stub_error);
+ dummy;
+ return false;
+ }
+
/// Collection sponsorship confirmation.
///
/// @dev After setting the sponsor for the collection, it must be confirmed with this function.
@@ -185,6 +190,25 @@
dummy = 0;
}
+ /// Remove collection sponsor.
+ /// @dev EVM selector for this function is: 0x6e0326a3,
+ /// or in textual repr: removeCollectionSponsor()
+ function removeCollectionSponsor() public {
+ require(false, stub_error);
+ dummy = 0;
+ }
+
+ /// Get current sponsor.
+ ///
+ /// @return Tuble with sponsor address and his substrate mirror. If there is no confirmed sponsor error "Contract has no sponsor" throw.
+ /// @dev EVM selector for this function is: 0xb66bbc14,
+ /// or in textual repr: getCollectionSponsor()
+ function getCollectionSponsor() public view returns (Tuple17 memory) {
+ require(false, stub_error);
+ dummy;
+ return Tuple17(0x0000000000000000000000000000000000000000, 0);
+ }
+
/// Set limits for the collection.
/// @dev Throws error if limit not found.
/// @param limit Name of the limit. Valid names:
@@ -403,6 +427,12 @@
}
}
+/// @dev anonymous struct
+struct Tuple17 {
+ address field_0;
+ uint256 field_1;
+}
+
/// @title ERC721 Token that can be irreversibly burned (destroyed).
/// @dev the ERC-165 identifier for this interface is 0x42966c68
contract ERC721Burnable is Dummy, ERC165 {
@@ -481,58 +511,8 @@
}
}
-<<<<<<< HEAD
-<<<<<<< HEAD
/// @title Unique extensions for ERC721.
/// @dev the ERC-165 identifier for this interface is 0xd74d154f
-=======
-<<<<<<< HEAD
-=======
->>>>>>> misc: update stubs
-// Selector: 780e9d63
-contract ERC721Enumerable is Dummy, ERC165 {
- // @notice Enumerate valid NFTs
- // @param index A counter less than `totalSupply()`
- // @return The token identifier for the `index`th NFT,
- // (sort order not specified)
- //
- // Selector: tokenByIndex(uint256) 4f6ccce7
- function tokenByIndex(uint256 index) public view returns (uint256) {
- require(false, stub_error);
- index;
- dummy;
- return 0;
- }
-
- // @dev Not implemented
- //
- // Selector: tokenOfOwnerByIndex(address,uint256) 2f745c59
- function tokenOfOwnerByIndex(address owner, uint256 index)
- public
- view
- returns (uint256)
- {
- require(false, stub_error);
- owner;
- index;
- dummy;
- return 0;
- }
-
- // @notice Count NFTs tracked by this contract
- // @return A count of valid NFTs tracked by this contract, where each one of
- // them has an assigned and queryable owner not equal to the zero address
- //
- // Selector: totalSupply() 18160ddd
- function totalSupply() public view returns (uint256) {
- require(false, stub_error);
- dummy;
- return 0;
- }
-}
-
-// Selector: d74d154f
->>>>>>> misk: Update stubs
contract ERC721UniqueExtensions is Dummy, ERC165 {
/// @notice Transfer ownership of an NFT
/// @dev Throws unless `msg.sender` is the current owner. Throws if `to`
@@ -609,37 +589,11 @@
}
}
-<<<<<<< HEAD
-<<<<<<< HEAD
/// @dev anonymous struct
struct Tuple8 {
uint256 field_0;
string field_1;
}
-=======
-// Selector: ffe4da23
-=======
-// Selector: 765e2fae
->>>>>>> misk: Update stubs
-=======
-// Selector: e54be640
->>>>>>> misc: update stubs
-contract Collection is Dummy, ERC165 {
- // Set collection property.
- //
- // @param key Property key.
- // @param value Propery value.
- //
- // Selector: setCollectionProperty(string,bytes) 2f073f66
- function setCollectionProperty(string memory key, bytes memory value)
- public
- {
- require(false, stub_error);
- key;
- value;
- dummy = 0;
- }
->>>>>>> misk: Update stubs
/// @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
/// @dev See https://eips.ethereum.org/EIPS/eip-721
@@ -670,92 +624,7 @@
owner;
index;
dummy;
-<<<<<<< HEAD
return 0;
-=======
- return hex"";
- }
-
- // Set the sponsor of the collection.
- //
- // @dev In order for sponsorship to work, it must be confirmed on behalf of the sponsor.
- //
- // @param sponsor Address of the sponsor from whose account funds will be debited for operations with the contract.
- //
- // Selector: setCollectionSponsor(address) 7623402e
- function setCollectionSponsor(address sponsor) public {
- require(false, stub_error);
- sponsor;
- dummy = 0;
- }
-
- // Set the substrate sponsor of the collection.
- //
- // @dev In order for sponsorship to work, it must be confirmed on behalf of the sponsor.
- //
- // @param sponsor Substrate address of the sponsor from whose account funds will be debited for operations with the contract.
- //
- // Selector: setCollectionSponsorSubstrate(uint256) c74d6751
- function setCollectionSponsorSubstrate(uint256 sponsor) public {
- require(false, stub_error);
- sponsor;
- dummy = 0;
- }
-
- // Selector: hasCollectionPendingSponsor() 058ac185
- function hasCollectionPendingSponsor() public view returns (bool) {
- require(false, stub_error);
- dummy;
- return false;
- }
-
- // Collection sponsorship confirmation.
- //
- // @dev After setting the sponsor for the collection, it must be confirmed with this function.
- //
- // Selector: confirmCollectionSponsorship() 3c50e97a
- function confirmCollectionSponsorship() public {
- require(false, stub_error);
- dummy = 0;
- }
-
- // Remove collection sponsor.
- //
- // Selector: removeCollectionSponsor() 6e0326a3
- function removeCollectionSponsor() public {
- require(false, stub_error);
- dummy = 0;
- }
-
- // Get current sponsor.
- //
- // @return Tuble with sponsor address and his substrate mirror. If there is no confirmed sponsor error "Contract has no sponsor" throw.
- //
- // Selector: getCollectionSponsor() b66bbc14
- function getCollectionSponsor() public view returns (Tuple1 memory) {
- require(false, stub_error);
- dummy;
- return Tuple1(0x0000000000000000000000000000000000000000, 0);
- }
-
- // Set limits for the collection.
- // @dev Throws error if limit not found.
- // @param limit Name of the limit. Valid names:
- // "accountTokenOwnershipLimit",
- // "sponsoredDataSize",
- // "sponsoredDataRateLimit",
- // "tokenLimit",
- // "sponsorTransferTimeout",
- // "sponsorApproveTimeout"
- // @param value Value of the limit.
- //
- // Selector: setCollectionLimit(string,uint32) 6a3841db
- function setCollectionLimit(string memory limit, uint32 value) public {
- require(false, stub_error);
- limit;
- value;
- dummy = 0;
->>>>>>> misk: Update stubs
}
/// @notice Count NFTs tracked by this contract
pallets/refungible/src/stubs/UniqueRefungible.rawdiffbeforeafterbothbinary blob — no preview
pallets/refungible/src/stubs/UniqueRefungible.soldiffbeforeafterboth--- a/pallets/refungible/src/stubs/UniqueRefungible.sol
+++ b/pallets/refungible/src/stubs/UniqueRefungible.sol
@@ -3,23 +3,7 @@
pragma solidity >=0.8.0 <0.9.0;
-<<<<<<< HEAD
/// @dev common stubs holder
-=======
-// Anonymous struct
-struct Tuple0 {
- uint256 field_0;
- string field_1;
-}
-
-// Anonymous struct
-struct Tuple1 {
- address field_0;
- uint256 field_1;
-}
-
-// Common stubs holder
->>>>>>> misk: Update stubs
contract Dummy {
uint8 dummy;
string stub_error = "this contract is implemented in native";
@@ -115,7 +99,7 @@
}
/// @title A contract that allows you to work with collections.
-/// @dev the ERC-165 identifier for this interface is 0xffe4da23
+/// @dev the ERC-165 identifier for this interface is 0xe54be640
contract Collection is Dummy, ERC165 {
/// Set collection property.
///
@@ -175,6 +159,27 @@
dummy = 0;
}
+ /// Set the substrate sponsor of the collection.
+ ///
+ /// @dev In order for sponsorship to work, it must be confirmed on behalf of the sponsor.
+ ///
+ /// @param sponsor Substrate address of the sponsor from whose account funds will be debited for operations with the contract.
+ /// @dev EVM selector for this function is: 0xc74d6751,
+ /// or in textual repr: setCollectionSponsorSubstrate(uint256)
+ function setCollectionSponsorSubstrate(uint256 sponsor) public {
+ require(false, stub_error);
+ sponsor;
+ dummy = 0;
+ }
+
+ /// @dev EVM selector for this function is: 0x058ac185,
+ /// or in textual repr: hasCollectionPendingSponsor()
+ function hasCollectionPendingSponsor() public view returns (bool) {
+ require(false, stub_error);
+ dummy;
+ return false;
+ }
+
/// Collection sponsorship confirmation.
///
/// @dev After setting the sponsor for the collection, it must be confirmed with this function.
@@ -185,6 +190,25 @@
dummy = 0;
}
+ /// Remove collection sponsor.
+ /// @dev EVM selector for this function is: 0x6e0326a3,
+ /// or in textual repr: removeCollectionSponsor()
+ function removeCollectionSponsor() public {
+ require(false, stub_error);
+ dummy = 0;
+ }
+
+ /// Get current sponsor.
+ ///
+ /// @return Tuble with sponsor address and his substrate mirror. If there is no confirmed sponsor error "Contract has no sponsor" throw.
+ /// @dev EVM selector for this function is: 0xb66bbc14,
+ /// or in textual repr: getCollectionSponsor()
+ function getCollectionSponsor() public view returns (Tuple17 memory) {
+ require(false, stub_error);
+ dummy;
+ return Tuple17(0x0000000000000000000000000000000000000000, 0);
+ }
+
/// Set limits for the collection.
/// @dev Throws error if limit not found.
/// @param limit Name of the limit. Valid names:
@@ -403,6 +427,12 @@
}
}
+/// @dev anonymous struct
+struct Tuple17 {
+ address field_0;
+ uint256 field_1;
+}
+
/// @title ERC721 Token that can be irreversibly burned (destroyed).
/// @dev the ERC-165 identifier for this interface is 0x42966c68
contract ERC721Burnable is Dummy, ERC165 {
@@ -481,58 +511,8 @@
}
}
-<<<<<<< HEAD
-<<<<<<< HEAD
/// @title Unique extensions for ERC721.
/// @dev the ERC-165 identifier for this interface is 0x7c3bef89
-=======
-<<<<<<< HEAD
-=======
->>>>>>> misc: update stubs
-// Selector: 780e9d63
-contract ERC721Enumerable is Dummy, ERC165 {
- // @notice Enumerate valid RFTs
- // @param index A counter less than `totalSupply()`
- // @return The token identifier for the `index`th NFT,
- // (sort order not specified)
- //
- // Selector: tokenByIndex(uint256) 4f6ccce7
- function tokenByIndex(uint256 index) public view returns (uint256) {
- require(false, stub_error);
- index;
- dummy;
- return 0;
- }
-
- // Not implemented
- //
- // Selector: tokenOfOwnerByIndex(address,uint256) 2f745c59
- function tokenOfOwnerByIndex(address owner, uint256 index)
- public
- view
- returns (uint256)
- {
- require(false, stub_error);
- owner;
- index;
- dummy;
- return 0;
- }
-
- // @notice Count RFTs tracked by this contract
- // @return A count of valid RFTs tracked by this contract, where each one of
- // them has an assigned and queryable owner not equal to the zero address
- //
- // Selector: totalSupply() 18160ddd
- function totalSupply() public view returns (uint256) {
- require(false, stub_error);
- dummy;
- return 0;
- }
-}
-
-// Selector: 7c3bef89
->>>>>>> misk: Update stubs
contract ERC721UniqueExtensions is Dummy, ERC165 {
/// @notice Transfer ownership of an RFT
/// @dev Throws unless `msg.sender` is the current owner. Throws if `to`
@@ -623,37 +603,11 @@
}
}
-<<<<<<< HEAD
-<<<<<<< HEAD
/// @dev anonymous struct
struct Tuple8 {
uint256 field_0;
string field_1;
}
-=======
-// Selector: ffe4da23
-=======
-// Selector: 765e2fae
->>>>>>> misk: Update stubs
-=======
-// Selector: e54be640
->>>>>>> misc: update stubs
-contract Collection is Dummy, ERC165 {
- // Set collection property.
- //
- // @param key Property key.
- // @param value Propery value.
- //
- // Selector: setCollectionProperty(string,bytes) 2f073f66
- function setCollectionProperty(string memory key, bytes memory value)
- public
- {
- require(false, stub_error);
- key;
- value;
- dummy = 0;
- }
->>>>>>> misk: Update stubs
/// @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
/// @dev See https://eips.ethereum.org/EIPS/eip-721
@@ -684,92 +638,7 @@
owner;
index;
dummy;
-<<<<<<< HEAD
return 0;
-=======
- return hex"";
- }
-
- // Set the sponsor of the collection.
- //
- // @dev In order for sponsorship to work, it must be confirmed on behalf of the sponsor.
- //
- // @param sponsor Address of the sponsor from whose account funds will be debited for operations with the contract.
- //
- // Selector: setCollectionSponsor(address) 7623402e
- function setCollectionSponsor(address sponsor) public {
- require(false, stub_error);
- sponsor;
- dummy = 0;
- }
-
- // Set the substrate sponsor of the collection.
- //
- // @dev In order for sponsorship to work, it must be confirmed on behalf of the sponsor.
- //
- // @param sponsor Substrate address of the sponsor from whose account funds will be debited for operations with the contract.
- //
- // Selector: setCollectionSponsorSubstrate(uint256) c74d6751
- function setCollectionSponsorSubstrate(uint256 sponsor) public {
- require(false, stub_error);
- sponsor;
- dummy = 0;
- }
-
- // Selector: hasCollectionPendingSponsor() 058ac185
- function hasCollectionPendingSponsor() public view returns (bool) {
- require(false, stub_error);
- dummy;
- return false;
- }
-
- // Collection sponsorship confirmation.
- //
- // @dev After setting the sponsor for the collection, it must be confirmed with this function.
- //
- // Selector: confirmCollectionSponsorship() 3c50e97a
- function confirmCollectionSponsorship() public {
- require(false, stub_error);
- dummy = 0;
- }
-
- // Remove collection sponsor.
- //
- // Selector: removeCollectionSponsor() 6e0326a3
- function removeCollectionSponsor() public {
- require(false, stub_error);
- dummy = 0;
- }
-
- // Get current sponsor.
- //
- // @return Tuble with sponsor address and his substrate mirror. If there is no confirmed sponsor error "Contract has no sponsor" throw.
- //
- // Selector: getCollectionSponsor() b66bbc14
- function getCollectionSponsor() public view returns (Tuple1 memory) {
- require(false, stub_error);
- dummy;
- return Tuple1(0x0000000000000000000000000000000000000000, 0);
- }
-
- // Set limits for the collection.
- // @dev Throws error if limit not found.
- // @param limit Name of the limit. Valid names:
- // "accountTokenOwnershipLimit",
- // "sponsoredDataSize",
- // "sponsoredDataRateLimit",
- // "tokenLimit",
- // "sponsorTransferTimeout",
- // "sponsorApproveTimeout"
- // @param value Value of the limit.
- //
- // Selector: setCollectionLimit(string,uint32) 6a3841db
- function setCollectionLimit(string memory limit, uint32 value) public {
- require(false, stub_error);
- limit;
- value;
- dummy = 0;
->>>>>>> misk: Update stubs
}
/// @notice Count RFTs tracked by this contract
tests/src/eth/api/ContractHelpers.soldiffbeforeafterboth--- a/tests/src/eth/api/ContractHelpers.sol
+++ b/tests/src/eth/api/ContractHelpers.sol
@@ -12,20 +12,8 @@
function supportsInterface(bytes4 interfaceID) external view returns (bool);
}
-<<<<<<< HEAD
-<<<<<<< HEAD
/// @title Magic contract, which allows users to reconfigure other contracts
/// @dev the ERC-165 identifier for this interface is 0xd77fab70
-=======
-<<<<<<< HEAD
-// Selector: 6073d917
-=======
-// Selector: 06fc42e9
->>>>>>> path: add stubs
->>>>>>> path: add stubs
-=======
-// Selector: 6073d917
->>>>>>> misc: update stubs
interface ContractHelpers is Dummy, ERC165 {
/// Get user, which deployed specified contract
/// @dev May return zero address in case if contract is deployed
@@ -41,24 +29,11 @@
view
returns (address);
-<<<<<<< HEAD
-<<<<<<< HEAD
/// Set sponsor.
/// @param contractAddress Contract for which a sponsor is being established.
/// @param sponsor User address who set as pending sponsor.
/// @dev EVM selector for this function is: 0xf01fba93,
/// or in textual repr: setSponsor(address,address)
-=======
-<<<<<<< HEAD
-=======
->>>>>>> misc: update stubs
- // Set sponsor.
- //
- // @param contract_address Contract for which a sponsor is being established.
- // @param sponsor User address who set as pending sponsor.
- //
- // Selector: setSponsor(address,address) f01fba93
->>>>>>> path: add stubs
function setSponsor(address contractAddress, address sponsor) external;
/// Set contract as self sponsored.
@@ -84,28 +59,17 @@
/// or in textual repr: confirmSponsorship(address)
function confirmSponsorship(address contractAddress) external;
-<<<<<<< HEAD
/// Get current sponsor.
///
/// @param contractAddress The contract for which a sponsor is requested.
/// @return Tuble with sponsor address and his substrate mirror. If there is no confirmed sponsor error "Contract has no sponsor" throw.
/// @dev EVM selector for this function is: 0x743fc745,
/// or in textual repr: getSponsor(address)
-=======
- // Get current sponsor.
- //
- // @param contract_address The contract for which a sponsor is requested.
- // @return Tuble with sponsor address and his substrate mirror. If there is no confirmed sponsor error "Contract has no sponsor" throw.
- //
- // Selector: getSponsor(address) 743fc745
->>>>>>> path: add stubs
function getSponsor(address contractAddress)
external
view
returns (Tuple0 memory);
-<<<<<<< HEAD
-<<<<<<< HEAD
/// Check tat contract has confirmed sponsor.
///
/// @param contractAddress The contract for which the presence of a confirmed sponsor is checked.
@@ -120,25 +84,6 @@
/// @return **true** if contract has pending sponsor.
/// @dev EVM selector for this function is: 0x39b9b242,
/// or in textual repr: hasPendingSponsor(address)
-=======
-<<<<<<< HEAD
-=======
->>>>>>> misc: update stubs
- // Check tat contract has confirmed sponsor.
- //
- // @param contract_address The contract for which the presence of a confirmed sponsor is checked.
- // @return **true** if contract has confirmed sponsor.
- //
- // Selector: hasSponsor(address) 97418603
- function hasSponsor(address contractAddress) external view returns (bool);
-
- // Check tat contract has pending sponsor.
- //
- // @param contract_address The contract for which the presence of a pending sponsor is checked.
- // @return **true** if contract has pending sponsor.
- //
- // Selector: hasPendingSponsor(address) 39b9b242
->>>>>>> path: add stubs
function hasPendingSponsor(address contractAddress)
external
view
tests/src/eth/api/UniqueFungible.soldiffbeforeafterboth--- a/tests/src/eth/api/UniqueFungible.sol
+++ b/tests/src/eth/api/UniqueFungible.sol
@@ -3,17 +3,7 @@
pragma solidity >=0.8.0 <0.9.0;
-<<<<<<< HEAD
/// @dev common stubs holder
-=======
-// Anonymous struct
-struct Tuple0 {
- address field_0;
- uint256 field_1;
-}
-
-// Common stubs holder
->>>>>>> misk: Update stubs
interface Dummy {
}
@@ -22,72 +12,8 @@
function supportsInterface(bytes4 interfaceID) external view returns (bool);
}
-<<<<<<< HEAD
/// @title A contract that allows you to work with collections.
-/// @dev the ERC-165 identifier for this interface is 0xffe4da23
-=======
-// Inline
-interface ERC20Events {
- event Transfer(address indexed from, address indexed to, uint256 value);
- event Approval(
- address indexed owner,
- address indexed spender,
- uint256 value
- );
-}
-
-// Selector: 79cc6790
-interface ERC20UniqueExtensions is Dummy, ERC165 {
- // Selector: burnFrom(address,uint256) 79cc6790
- function burnFrom(address from, uint256 amount) external returns (bool);
-}
-
-// Selector: 942e8b22
-interface ERC20 is Dummy, ERC165, ERC20Events {
- // Selector: name() 06fdde03
- function name() external view returns (string memory);
-
- // Selector: symbol() 95d89b41
- function symbol() external view returns (string memory);
-
- // Selector: totalSupply() 18160ddd
- function totalSupply() external view returns (uint256);
-
- // Selector: decimals() 313ce567
- function decimals() external view returns (uint8);
-
- // Selector: balanceOf(address) 70a08231
- function balanceOf(address owner) external view returns (uint256);
-
- // Selector: transfer(address,uint256) a9059cbb
- function transfer(address to, uint256 amount) external returns (bool);
-
- // Selector: transferFrom(address,address,uint256) 23b872dd
- function transferFrom(
- address from,
- address to,
- uint256 amount
- ) external returns (bool);
-
- // Selector: approve(address,uint256) 095ea7b3
- function approve(address spender, uint256 amount) external returns (bool);
-
- // Selector: allowance(address,address) dd62ed3e
- function allowance(address owner, address spender)
- external
- view
- returns (uint256);
-}
-
-<<<<<<< HEAD
-// Selector: ffe4da23
-=======
-// Selector: 765e2fae
->>>>>>> misk: Update stubs
->>>>>>> misk: Update stubs
-=======
-// Selector: e54be640
->>>>>>> misc: update stubs
+/// @dev the ERC-165 identifier for this interface is 0xe54be640
interface Collection is Dummy, ERC165 {
/// Set collection property.
///
@@ -127,7 +53,19 @@
/// or in textual repr: setCollectionSponsor(address)
function setCollectionSponsor(address sponsor) external;
-<<<<<<< HEAD
+ /// Set the substrate sponsor of the collection.
+ ///
+ /// @dev In order for sponsorship to work, it must be confirmed on behalf of the sponsor.
+ ///
+ /// @param sponsor Substrate address of the sponsor from whose account funds will be debited for operations with the contract.
+ /// @dev EVM selector for this function is: 0xc74d6751,
+ /// or in textual repr: setCollectionSponsorSubstrate(uint256)
+ function setCollectionSponsorSubstrate(uint256 sponsor) external;
+
+ /// @dev EVM selector for this function is: 0x058ac185,
+ /// or in textual repr: hasCollectionPendingSponsor()
+ function hasCollectionPendingSponsor() external view returns (bool);
+
/// Collection sponsorship confirmation.
///
/// @dev After setting the sponsor for the collection, it must be confirmed with this function.
@@ -135,6 +73,18 @@
/// or in textual repr: confirmCollectionSponsorship()
function confirmCollectionSponsorship() external;
+ /// Remove collection sponsor.
+ /// @dev EVM selector for this function is: 0x6e0326a3,
+ /// or in textual repr: removeCollectionSponsor()
+ function removeCollectionSponsor() external;
+
+ /// Get current sponsor.
+ ///
+ /// @return Tuble with sponsor address and his substrate mirror. If there is no confirmed sponsor error "Contract has no sponsor" throw.
+ /// @dev EVM selector for this function is: 0xb66bbc14,
+ /// or in textual repr: getCollectionSponsor()
+ function getCollectionSponsor() external view returns (Tuple6 memory);
+
/// Set limits for the collection.
/// @dev Throws error if limit not found.
/// @param limit Name of the limit. Valid names:
@@ -147,51 +97,6 @@
/// @param value Value of the limit.
/// @dev EVM selector for this function is: 0x6a3841db,
/// or in textual repr: setCollectionLimit(string,uint32)
-=======
- // Set the substrate sponsor of the collection.
- //
- // @dev In order for sponsorship to work, it must be confirmed on behalf of the sponsor.
- //
- // @param sponsor Substrate address of the sponsor from whose account funds will be debited for operations with the contract.
- //
- // Selector: setCollectionSponsorSubstrate(uint256) c74d6751
- function setCollectionSponsorSubstrate(uint256 sponsor) external;
-
- // Selector: hasCollectionPendingSponsor() 058ac185
- function hasCollectionPendingSponsor() external view returns (bool);
-
- // Collection sponsorship confirmation.
- //
- // @dev After setting the sponsor for the collection, it must be confirmed with this function.
- //
- // Selector: confirmCollectionSponsorship() 3c50e97a
- function confirmCollectionSponsorship() external;
-
- // Remove collection sponsor.
- //
- // Selector: removeCollectionSponsor() 6e0326a3
- function removeCollectionSponsor() external;
-
- // Get current sponsor.
- //
- // @return Tuble with sponsor address and his substrate mirror. If there is no confirmed sponsor error "Contract has no sponsor" throw.
- //
- // Selector: getCollectionSponsor() b66bbc14
- function getCollectionSponsor() external view returns (Tuple0 memory);
-
- // Set limits for the collection.
- // @dev Throws error if limit not found.
- // @param limit Name of the limit. Valid names:
- // "accountTokenOwnershipLimit",
- // "sponsoredDataSize",
- // "sponsoredDataRateLimit",
- // "tokenLimit",
- // "sponsorTransferTimeout",
- // "sponsorApproveTimeout"
- // @param value Value of the limit.
- //
- // Selector: setCollectionLimit(string,uint32) 6a3841db
->>>>>>> misk: Update stubs
function setCollectionLimit(string memory limit, uint32 value) external;
/// Set limits for the collection.
@@ -320,6 +225,12 @@
function setOwnerSubstrate(uint256 newOwner) external;
}
+/// @dev anonymous struct
+struct Tuple6 {
+ address field_0;
+ uint256 field_1;
+}
+
/// @dev the ERC-165 identifier for this interface is 0x79cc6790
interface ERC20UniqueExtensions is Dummy, ERC165 {
/// @dev EVM selector for this function is: 0x79cc6790,
tests/src/eth/api/UniqueNFT.soldiffbeforeafterboth--- a/tests/src/eth/api/UniqueNFT.sol
+++ b/tests/src/eth/api/UniqueNFT.sol
@@ -3,23 +3,7 @@
pragma solidity >=0.8.0 <0.9.0;
-<<<<<<< HEAD
/// @dev common stubs holder
-=======
-// Anonymous struct
-struct Tuple0 {
- uint256 field_0;
- string field_1;
-}
-
-// Anonymous struct
-struct Tuple1 {
- address field_0;
- uint256 field_1;
-}
-
-// Common stubs holder
->>>>>>> misk: Update stubs
interface Dummy {
}
@@ -81,7 +65,7 @@
}
/// @title A contract that allows you to work with collections.
-/// @dev the ERC-165 identifier for this interface is 0xffe4da23
+/// @dev the ERC-165 identifier for this interface is 0xe54be640
interface Collection is Dummy, ERC165 {
/// Set collection property.
///
@@ -121,6 +105,19 @@
/// or in textual repr: setCollectionSponsor(address)
function setCollectionSponsor(address sponsor) external;
+ /// Set the substrate sponsor of the collection.
+ ///
+ /// @dev In order for sponsorship to work, it must be confirmed on behalf of the sponsor.
+ ///
+ /// @param sponsor Substrate address of the sponsor from whose account funds will be debited for operations with the contract.
+ /// @dev EVM selector for this function is: 0xc74d6751,
+ /// or in textual repr: setCollectionSponsorSubstrate(uint256)
+ function setCollectionSponsorSubstrate(uint256 sponsor) external;
+
+ /// @dev EVM selector for this function is: 0x058ac185,
+ /// or in textual repr: hasCollectionPendingSponsor()
+ function hasCollectionPendingSponsor() external view returns (bool);
+
/// Collection sponsorship confirmation.
///
/// @dev After setting the sponsor for the collection, it must be confirmed with this function.
@@ -128,6 +125,18 @@
/// or in textual repr: confirmCollectionSponsorship()
function confirmCollectionSponsorship() external;
+ /// Remove collection sponsor.
+ /// @dev EVM selector for this function is: 0x6e0326a3,
+ /// or in textual repr: removeCollectionSponsor()
+ function removeCollectionSponsor() external;
+
+ /// Get current sponsor.
+ ///
+ /// @return Tuble with sponsor address and his substrate mirror. If there is no confirmed sponsor error "Contract has no sponsor" throw.
+ /// @dev EVM selector for this function is: 0xb66bbc14,
+ /// or in textual repr: getCollectionSponsor()
+ function getCollectionSponsor() external view returns (Tuple17 memory);
+
/// Set limits for the collection.
/// @dev Throws error if limit not found.
/// @param limit Name of the limit. Valid names:
@@ -268,6 +277,12 @@
function setOwnerSubstrate(uint256 newOwner) external;
}
+/// @dev anonymous struct
+struct Tuple17 {
+ address field_0;
+ uint256 field_1;
+}
+
/// @title ERC721 Token that can be irreversibly burned (destroyed).
/// @dev the ERC-165 identifier for this interface is 0x42966c68
interface ERC721Burnable is Dummy, ERC165 {
@@ -321,42 +336,8 @@
function finishMinting() external returns (bool);
}
-<<<<<<< HEAD
-<<<<<<< HEAD
/// @title Unique extensions for ERC721.
/// @dev the ERC-165 identifier for this interface is 0xd74d154f
-=======
-<<<<<<< HEAD
-=======
->>>>>>> misc: update stubs
-// Selector: 780e9d63
-interface ERC721Enumerable is Dummy, ERC165 {
- // @notice Enumerate valid NFTs
- // @param index A counter less than `totalSupply()`
- // @return The token identifier for the `index`th NFT,
- // (sort order not specified)
- //
- // Selector: tokenByIndex(uint256) 4f6ccce7
- function tokenByIndex(uint256 index) external view returns (uint256);
-
- // @dev Not implemented
- //
- // Selector: tokenOfOwnerByIndex(address,uint256) 2f745c59
- function tokenOfOwnerByIndex(address owner, uint256 index)
- external
- view
- returns (uint256);
-
- // @notice Count NFTs tracked by this contract
- // @return A count of valid NFTs tracked by this contract, where each one of
- // them has an assigned and queryable owner not equal to the zero address
- //
- // Selector: totalSupply() 18160ddd
- function totalSupply() external view returns (uint256);
-}
-
-// Selector: d74d154f
->>>>>>> misk: Update stubs
interface ERC721UniqueExtensions is Dummy, ERC165 {
/// @notice Transfer ownership of an NFT
/// @dev Throws unless `msg.sender` is the current owner. Throws if `to`
@@ -405,31 +386,11 @@
returns (bool);
}
-<<<<<<< HEAD
-<<<<<<< HEAD
/// @dev anonymous struct
struct Tuple8 {
uint256 field_0;
string field_1;
}
-=======
-// Selector: ffe4da23
-=======
-// Selector: 765e2fae
->>>>>>> misk: Update stubs
-=======
-// Selector: e54be640
->>>>>>> misc: update stubs
-interface Collection is Dummy, ERC165 {
- // Set collection property.
- //
- // @param key Property key.
- // @param value Propery value.
- //
- // Selector: setCollectionProperty(string,bytes) 2f073f66
- function setCollectionProperty(string memory key, bytes memory value)
- external;
->>>>>>> misk: Update stubs
/// @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
/// @dev See https://eips.ethereum.org/EIPS/eip-721
@@ -449,87 +410,7 @@
function tokenOfOwnerByIndex(address owner, uint256 index)
external
view
-<<<<<<< HEAD
returns (uint256);
-=======
- returns (bytes memory);
-
- // Set the sponsor of the collection.
- //
- // @dev In order for sponsorship to work, it must be confirmed on behalf of the sponsor.
- //
- // @param sponsor Address of the sponsor from whose account funds will be debited for operations with the contract.
- //
- // Selector: setCollectionSponsor(address) 7623402e
- function setCollectionSponsor(address sponsor) external;
-
- // Set the substrate sponsor of the collection.
- //
- // @dev In order for sponsorship to work, it must be confirmed on behalf of the sponsor.
- //
- // @param sponsor Substrate address of the sponsor from whose account funds will be debited for operations with the contract.
- //
- // Selector: setCollectionSponsorSubstrate(uint256) c74d6751
- function setCollectionSponsorSubstrate(uint256 sponsor) external;
-
- // Selector: hasCollectionPendingSponsor() 058ac185
- function hasCollectionPendingSponsor() external view returns (bool);
-
- // Collection sponsorship confirmation.
- //
- // @dev After setting the sponsor for the collection, it must be confirmed with this function.
- //
- // Selector: confirmCollectionSponsorship() 3c50e97a
- function confirmCollectionSponsorship() external;
-
- // Remove collection sponsor.
- //
- // Selector: removeCollectionSponsor() 6e0326a3
- function removeCollectionSponsor() external;
-
- // Get current sponsor.
- //
- // @return Tuble with sponsor address and his substrate mirror. If there is no confirmed sponsor error "Contract has no sponsor" throw.
- //
- // Selector: getCollectionSponsor() b66bbc14
- function getCollectionSponsor() external view returns (Tuple1 memory);
-
- // Set limits for the collection.
- // @dev Throws error if limit not found.
- // @param limit Name of the limit. Valid names:
- // "accountTokenOwnershipLimit",
- // "sponsoredDataSize",
- // "sponsoredDataRateLimit",
- // "tokenLimit",
- // "sponsorTransferTimeout",
- // "sponsorApproveTimeout"
- // @param value Value of the limit.
- //
- // Selector: setCollectionLimit(string,uint32) 6a3841db
- function setCollectionLimit(string memory limit, uint32 value) external;
-
- // Set limits for the collection.
- // @dev Throws error if limit not found.
- // @param limit Name of the limit. Valid names:
- // "ownerCanTransfer",
- // "ownerCanDestroy",
- // "transfersEnabled"
- // @param value Value of the limit.
- //
- // Selector: setCollectionLimit(string,bool) 993b7fba
- function setCollectionLimit(string memory limit, bool value) external;
-
- // Get contract address.
- //
- // Selector: contractAddress() f6b4dfb4
- function contractAddress() external view returns (address);
-
- // Add collection admin by substrate address.
- // @param new_admin Substrate administrator address.
- //
- // Selector: addCollectionAdminSubstrate(uint256) 5730062b
- function addCollectionAdminSubstrate(uint256 newAdmin) external;
->>>>>>> misk: Update stubs
/// @notice Count NFTs tracked by this contract
/// @return A count of valid NFTs tracked by this contract, where each one of
tests/src/eth/api/UniqueRefungible.soldiffbeforeafterboth--- a/tests/src/eth/api/UniqueRefungible.sol
+++ b/tests/src/eth/api/UniqueRefungible.sol
@@ -3,23 +3,7 @@
pragma solidity >=0.8.0 <0.9.0;
-<<<<<<< HEAD
/// @dev common stubs holder
-=======
-// Anonymous struct
-struct Tuple0 {
- uint256 field_0;
- string field_1;
-}
-
-// Anonymous struct
-struct Tuple1 {
- address field_0;
- uint256 field_1;
-}
-
-// Common stubs holder
->>>>>>> misk: Update stubs
interface Dummy {
}
@@ -81,7 +65,7 @@
}
/// @title A contract that allows you to work with collections.
-/// @dev the ERC-165 identifier for this interface is 0xffe4da23
+/// @dev the ERC-165 identifier for this interface is 0xe54be640
interface Collection is Dummy, ERC165 {
/// Set collection property.
///
@@ -121,6 +105,19 @@
/// or in textual repr: setCollectionSponsor(address)
function setCollectionSponsor(address sponsor) external;
+ /// Set the substrate sponsor of the collection.
+ ///
+ /// @dev In order for sponsorship to work, it must be confirmed on behalf of the sponsor.
+ ///
+ /// @param sponsor Substrate address of the sponsor from whose account funds will be debited for operations with the contract.
+ /// @dev EVM selector for this function is: 0xc74d6751,
+ /// or in textual repr: setCollectionSponsorSubstrate(uint256)
+ function setCollectionSponsorSubstrate(uint256 sponsor) external;
+
+ /// @dev EVM selector for this function is: 0x058ac185,
+ /// or in textual repr: hasCollectionPendingSponsor()
+ function hasCollectionPendingSponsor() external view returns (bool);
+
/// Collection sponsorship confirmation.
///
/// @dev After setting the sponsor for the collection, it must be confirmed with this function.
@@ -128,6 +125,18 @@
/// or in textual repr: confirmCollectionSponsorship()
function confirmCollectionSponsorship() external;
+ /// Remove collection sponsor.
+ /// @dev EVM selector for this function is: 0x6e0326a3,
+ /// or in textual repr: removeCollectionSponsor()
+ function removeCollectionSponsor() external;
+
+ /// Get current sponsor.
+ ///
+ /// @return Tuble with sponsor address and his substrate mirror. If there is no confirmed sponsor error "Contract has no sponsor" throw.
+ /// @dev EVM selector for this function is: 0xb66bbc14,
+ /// or in textual repr: getCollectionSponsor()
+ function getCollectionSponsor() external view returns (Tuple17 memory);
+
/// Set limits for the collection.
/// @dev Throws error if limit not found.
/// @param limit Name of the limit. Valid names:
@@ -268,6 +277,12 @@
function setOwnerSubstrate(uint256 newOwner) external;
}
+/// @dev anonymous struct
+struct Tuple17 {
+ address field_0;
+ uint256 field_1;
+}
+
/// @title ERC721 Token that can be irreversibly burned (destroyed).
/// @dev the ERC-165 identifier for this interface is 0x42966c68
interface ERC721Burnable is Dummy, ERC165 {
@@ -321,42 +336,8 @@
function finishMinting() external returns (bool);
}
-<<<<<<< HEAD
-<<<<<<< HEAD
/// @title Unique extensions for ERC721.
/// @dev the ERC-165 identifier for this interface is 0x7c3bef89
-=======
-<<<<<<< HEAD
-=======
->>>>>>> misc: update stubs
-// Selector: 780e9d63
-interface ERC721Enumerable is Dummy, ERC165 {
- // @notice Enumerate valid RFTs
- // @param index A counter less than `totalSupply()`
- // @return The token identifier for the `index`th NFT,
- // (sort order not specified)
- //
- // Selector: tokenByIndex(uint256) 4f6ccce7
- function tokenByIndex(uint256 index) external view returns (uint256);
-
- // Not implemented
- //
- // Selector: tokenOfOwnerByIndex(address,uint256) 2f745c59
- function tokenOfOwnerByIndex(address owner, uint256 index)
- external
- view
- returns (uint256);
-
- // @notice Count RFTs tracked by this contract
- // @return A count of valid RFTs tracked by this contract, where each one of
- // them has an assigned and queryable owner not equal to the zero address
- //
- // Selector: totalSupply() 18160ddd
- function totalSupply() external view returns (uint256);
-}
-
-// Selector: 7c3bef89
->>>>>>> misk: Update stubs
interface ERC721UniqueExtensions is Dummy, ERC165 {
/// @notice Transfer ownership of an RFT
/// @dev Throws unless `msg.sender` is the current owner. Throws if `to`
@@ -417,31 +398,11 @@
returns (address);
}
-<<<<<<< HEAD
-<<<<<<< HEAD
/// @dev anonymous struct
struct Tuple8 {
uint256 field_0;
string field_1;
}
-=======
-// Selector: ffe4da23
-=======
-// Selector: 765e2fae
->>>>>>> misk: Update stubs
-=======
-// Selector: e54be640
->>>>>>> misc: update stubs
-interface Collection is Dummy, ERC165 {
- // Set collection property.
- //
- // @param key Property key.
- // @param value Propery value.
- //
- // Selector: setCollectionProperty(string,bytes) 2f073f66
- function setCollectionProperty(string memory key, bytes memory value)
- external;
->>>>>>> misk: Update stubs
/// @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
/// @dev See https://eips.ethereum.org/EIPS/eip-721
@@ -461,87 +422,7 @@
function tokenOfOwnerByIndex(address owner, uint256 index)
external
view
-<<<<<<< HEAD
returns (uint256);
-=======
- returns (bytes memory);
-
- // Set the sponsor of the collection.
- //
- // @dev In order for sponsorship to work, it must be confirmed on behalf of the sponsor.
- //
- // @param sponsor Address of the sponsor from whose account funds will be debited for operations with the contract.
- //
- // Selector: setCollectionSponsor(address) 7623402e
- function setCollectionSponsor(address sponsor) external;
-
- // Set the substrate sponsor of the collection.
- //
- // @dev In order for sponsorship to work, it must be confirmed on behalf of the sponsor.
- //
- // @param sponsor Substrate address of the sponsor from whose account funds will be debited for operations with the contract.
- //
- // Selector: setCollectionSponsorSubstrate(uint256) c74d6751
- function setCollectionSponsorSubstrate(uint256 sponsor) external;
-
- // Selector: hasCollectionPendingSponsor() 058ac185
- function hasCollectionPendingSponsor() external view returns (bool);
-
- // Collection sponsorship confirmation.
- //
- // @dev After setting the sponsor for the collection, it must be confirmed with this function.
- //
- // Selector: confirmCollectionSponsorship() 3c50e97a
- function confirmCollectionSponsorship() external;
-
- // Remove collection sponsor.
- //
- // Selector: removeCollectionSponsor() 6e0326a3
- function removeCollectionSponsor() external;
-
- // Get current sponsor.
- //
- // @return Tuble with sponsor address and his substrate mirror. If there is no confirmed sponsor error "Contract has no sponsor" throw.
- //
- // Selector: getCollectionSponsor() b66bbc14
- function getCollectionSponsor() external view returns (Tuple1 memory);
-
- // Set limits for the collection.
- // @dev Throws error if limit not found.
- // @param limit Name of the limit. Valid names:
- // "accountTokenOwnershipLimit",
- // "sponsoredDataSize",
- // "sponsoredDataRateLimit",
- // "tokenLimit",
- // "sponsorTransferTimeout",
- // "sponsorApproveTimeout"
- // @param value Value of the limit.
- //
- // Selector: setCollectionLimit(string,uint32) 6a3841db
- function setCollectionLimit(string memory limit, uint32 value) external;
-
- // Set limits for the collection.
- // @dev Throws error if limit not found.
- // @param limit Name of the limit. Valid names:
- // "ownerCanTransfer",
- // "ownerCanDestroy",
- // "transfersEnabled"
- // @param value Value of the limit.
- //
- // Selector: setCollectionLimit(string,bool) 993b7fba
- function setCollectionLimit(string memory limit, bool value) external;
-
- // Get contract address.
- //
- // Selector: contractAddress() f6b4dfb4
- function contractAddress() external view returns (address);
-
- // Add collection admin by substrate address.
- // @param new_admin Substrate administrator address.
- //
- // Selector: addCollectionAdminSubstrate(uint256) 5730062b
- function addCollectionAdminSubstrate(uint256 newAdmin) external;
->>>>>>> misk: Update stubs
/// @notice Count RFTs tracked by this contract
/// @return A count of valid RFTs tracked by this contract, where each one of
tests/src/eth/fungibleAbi.jsondiffbeforeafterboth1[2 {3 "anonymous": false,4 "inputs": [5 {6 "indexed": true,7 "internalType": "address",8 "name": "owner",9 "type": "address"10 },11 {12 "indexed": true,13 "internalType": "address",14 "name": "spender",15 "type": "address"16 },17 {18 "indexed": false,19 "internalType": "uint256",20 "name": "value",21 "type": "uint256"22 }23 ],24 "name": "Approval",25 "type": "event"26 },27 {28 "anonymous": false,29 "inputs": [30 {31 "indexed": true,32 "internalType": "address",33 "name": "from",34 "type": "address"35 },36 {37 "indexed": true,38 "internalType": "address",39 "name": "to",40 "type": "address"41 },42 {43 "indexed": false,44 "internalType": "uint256",45 "name": "value",46 "type": "uint256"47 }48 ],49 "name": "Transfer",50 "type": "event"51 },52 {53 "inputs": [54 { "internalType": "address", "name": "newAdmin", "type": "address" }55 ],56 "name": "addCollectionAdmin",57 "outputs": [],58 "stateMutability": "nonpayable",59 "type": "function"60 },61 {62 "inputs": [63 { "internalType": "uint256", "name": "newAdmin", "type": "uint256" }64 ],65 "name": "addCollectionAdminSubstrate",66 "outputs": [],67 "stateMutability": "nonpayable",68 "type": "function"69 },70 {71 "inputs": [72 { "internalType": "address", "name": "user", "type": "address" }73 ],74 "name": "addToCollectionAllowList",75 "outputs": [],76 "stateMutability": "nonpayable",77 "type": "function"78 },79 {80 "inputs": [81 { "internalType": "address", "name": "owner", "type": "address" },82 { "internalType": "address", "name": "spender", "type": "address" }83 ],84 "name": "allowance",85 "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],86 "stateMutability": "view",87 "type": "function"88 },89 {90 "inputs": [91 { "internalType": "address", "name": "spender", "type": "address" },92 { "internalType": "uint256", "name": "amount", "type": "uint256" }93 ],94 "name": "approve",95 "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],96 "stateMutability": "nonpayable",97 "type": "function"98 },99 {100 "inputs": [101 { "internalType": "address", "name": "owner", "type": "address" }102 ],103 "name": "balanceOf",104 "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],105 "stateMutability": "view",106 "type": "function"107 },108 {109 "inputs": [110 { "internalType": "address", "name": "from", "type": "address" },111 { "internalType": "uint256", "name": "amount", "type": "uint256" }112 ],113 "name": "burnFrom",114 "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],115 "stateMutability": "nonpayable",116 "type": "function"117 },118 {119 "inputs": [{ "internalType": "string", "name": "key", "type": "string" }],120 "name": "collectionProperty",121 "outputs": [{ "internalType": "bytes", "name": "", "type": "bytes" }],122 "stateMutability": "view",123 "type": "function"124 },125 {126 "inputs": [],127 "name": "confirmCollectionSponsorship",128 "outputs": [],129 "stateMutability": "nonpayable",130 "type": "function"131 },132 {133 "inputs": [],134 "name": "contractAddress",135 "outputs": [{ "internalType": "address", "name": "", "type": "address" }],136 "stateMutability": "view",137 "type": "function"138 },139 {140 "inputs": [],141 "name": "decimals",142 "outputs": [{ "internalType": "uint8", "name": "", "type": "uint8" }],143 "stateMutability": "view",144 "type": "function"145 },146 {147 "inputs": [{ "internalType": "string", "name": "key", "type": "string" }],148 "name": "deleteCollectionProperty",149 "outputs": [],150 "stateMutability": "nonpayable",151 "type": "function"152 },153 {154 "inputs": [],155 "name": "getCollectionSponsor",156 "outputs": [157 {158 "components": [159 { "internalType": "address", "name": "field_0", "type": "address" },160 { "internalType": "uint256", "name": "field_1", "type": "uint256" }161 ],162 "internalType": "struct Tuple0",163 "name": "",164 "type": "tuple"165 }166 ],167 "stateMutability": "view",168 "type": "function"169 },170 {171 "inputs": [],172 "name": "hasCollectionPendingSponsor",173 "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],174 "stateMutability": "view",175 "type": "function"176 },177 {178 "inputs": [179 { "internalType": "address", "name": "user", "type": "address" }180 ],181 "name": "isOwnerOrAdmin",182 "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],183 "stateMutability": "view",184 "type": "function"185 },186 {187 "inputs": [188 { "internalType": "uint256", "name": "user", "type": "uint256" }189 ],190 "name": "isOwnerOrAdminSubstrate",191 "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],192 "stateMutability": "view",193 "type": "function"194 },195 {196 "inputs": [],197 "name": "name",198 "outputs": [{ "internalType": "string", "name": "", "type": "string" }],199 "stateMutability": "view",200 "type": "function"201 },202 {203 "inputs": [204 { "internalType": "address", "name": "admin", "type": "address" }205 ],206 "name": "removeCollectionAdmin",207 "outputs": [],208 "stateMutability": "nonpayable",209 "type": "function"210 },211 {212 "inputs": [213 { "internalType": "uint256", "name": "admin", "type": "uint256" }214 ],215 "name": "removeCollectionAdminSubstrate",216 "outputs": [],217 "stateMutability": "nonpayable",218 "type": "function"219 },220 {221 "inputs": [],222 "name": "removeCollectionSponsor",223 "outputs": [],224 "stateMutability": "nonpayable",225 "type": "function"226 },227 {228 "inputs": [229 { "internalType": "address", "name": "user", "type": "address" }230 ],231 "name": "removeFromCollectionAllowList",232 "outputs": [],233 "stateMutability": "nonpayable",234 "type": "function"235 },236 {237 "inputs": [{ "internalType": "uint8", "name": "mode", "type": "uint8" }],238 "name": "setCollectionAccess",239 "outputs": [],240 "stateMutability": "nonpayable",241 "type": "function"242 },243 {244 "inputs": [245 { "internalType": "string", "name": "limit", "type": "string" },246 { "internalType": "uint32", "name": "value", "type": "uint32" }247 ],248 "name": "setCollectionLimit",249 "outputs": [],250 "stateMutability": "nonpayable",251 "type": "function"252 },253 {254 "inputs": [255 { "internalType": "string", "name": "limit", "type": "string" },256 { "internalType": "bool", "name": "value", "type": "bool" }257 ],258 "name": "setCollectionLimit",259 "outputs": [],260 "stateMutability": "nonpayable",261 "type": "function"262 },263 {264 "inputs": [{ "internalType": "bool", "name": "mode", "type": "bool" }],265 "name": "setCollectionMintMode",266 "outputs": [],267 "stateMutability": "nonpayable",268 "type": "function"269 },270 {271 "inputs": [{ "internalType": "bool", "name": "enable", "type": "bool" }],272 "name": "setCollectionNesting",273 "outputs": [],274 "stateMutability": "nonpayable",275 "type": "function"276 },277 {278 "inputs": [279 { "internalType": "bool", "name": "enable", "type": "bool" },280 {281 "internalType": "address[]",282 "name": "collections",283 "type": "address[]"284 }285 ],286 "name": "setCollectionNesting",287 "outputs": [],288 "stateMutability": "nonpayable",289 "type": "function"290 },291 {292 "inputs": [293 { "internalType": "string", "name": "key", "type": "string" },294 { "internalType": "bytes", "name": "value", "type": "bytes" }295 ],296 "name": "setCollectionProperty",297 "outputs": [],298 "stateMutability": "nonpayable",299 "type": "function"300 },301 {302 "inputs": [303 { "internalType": "address", "name": "sponsor", "type": "address" }304 ],305 "name": "setCollectionSponsor",306 "outputs": [],307 "stateMutability": "nonpayable",308 "type": "function"309 },310 {311 "inputs": [312 { "internalType": "uint256", "name": "sponsor", "type": "uint256" }313 ],314 "name": "setCollectionSponsorSubstrate",315 "outputs": [],316 "stateMutability": "nonpayable",317 "type": "function"318 },319 {320 "inputs": [321 { "internalType": "address", "name": "newOwner", "type": "address" }322 ],323 "name": "setOwner",324 "outputs": [],325 "stateMutability": "nonpayable",326 "type": "function"327 },328 {329 "inputs": [330 { "internalType": "uint256", "name": "newOwner", "type": "uint256" }331 ],332 "name": "setOwnerSubstrate",333 "outputs": [],334 "stateMutability": "nonpayable",335 "type": "function"336 },337 {338 "inputs": [339 { "internalType": "bytes4", "name": "interfaceID", "type": "bytes4" }340 ],341 "name": "supportsInterface",342 "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],343 "stateMutability": "view",344 "type": "function"345 },346 {347 "inputs": [],348 "name": "symbol",349 "outputs": [{ "internalType": "string", "name": "", "type": "string" }],350 "stateMutability": "view",351 "type": "function"352 },353 {354 "inputs": [],355 "name": "totalSupply",356 "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],357 "stateMutability": "view",358 "type": "function"359 },360 {361 "inputs": [362 { "internalType": "address", "name": "to", "type": "address" },363 { "internalType": "uint256", "name": "amount", "type": "uint256" }364 ],365 "name": "transfer",366 "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],367 "stateMutability": "nonpayable",368 "type": "function"369 },370 {371 "inputs": [372 { "internalType": "address", "name": "from", "type": "address" },373 { "internalType": "address", "name": "to", "type": "address" },374 { "internalType": "uint256", "name": "amount", "type": "uint256" }375 ],376 "name": "transferFrom",377 "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],378 "stateMutability": "nonpayable",379 "type": "function"380 },381 {382 "inputs": [],383 "name": "uniqueCollectionType",384 "outputs": [{ "internalType": "string", "name": "", "type": "string" }],385 "stateMutability": "nonpayable",386 "type": "function"387 }388]1[2 {3 "anonymous": false,4 "inputs": [5 {6 "indexed": true,7 "internalType": "address",8 "name": "owner",9 "type": "address"10 },11 {12 "indexed": true,13 "internalType": "address",14 "name": "spender",15 "type": "address"16 },17 {18 "indexed": false,19 "internalType": "uint256",20 "name": "value",21 "type": "uint256"22 }23 ],24 "name": "Approval",25 "type": "event"26 },27 {28 "anonymous": false,29 "inputs": [30 {31 "indexed": true,32 "internalType": "address",33 "name": "from",34 "type": "address"35 },36 {37 "indexed": true,38 "internalType": "address",39 "name": "to",40 "type": "address"41 },42 {43 "indexed": false,44 "internalType": "uint256",45 "name": "value",46 "type": "uint256"47 }48 ],49 "name": "Transfer",50 "type": "event"51 },52 {53 "inputs": [54 { "internalType": "address", "name": "newAdmin", "type": "address" }55 ],56 "name": "addCollectionAdmin",57 "outputs": [],58 "stateMutability": "nonpayable",59 "type": "function"60 },61 {62 "inputs": [63 { "internalType": "uint256", "name": "newAdmin", "type": "uint256" }64 ],65 "name": "addCollectionAdminSubstrate",66 "outputs": [],67 "stateMutability": "nonpayable",68 "type": "function"69 },70 {71 "inputs": [72 { "internalType": "address", "name": "user", "type": "address" }73 ],74 "name": "addToCollectionAllowList",75 "outputs": [],76 "stateMutability": "nonpayable",77 "type": "function"78 },79 {80 "inputs": [81 { "internalType": "address", "name": "owner", "type": "address" },82 { "internalType": "address", "name": "spender", "type": "address" }83 ],84 "name": "allowance",85 "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],86 "stateMutability": "view",87 "type": "function"88 },89 {90 "inputs": [91 { "internalType": "address", "name": "spender", "type": "address" },92 { "internalType": "uint256", "name": "amount", "type": "uint256" }93 ],94 "name": "approve",95 "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],96 "stateMutability": "nonpayable",97 "type": "function"98 },99 {100 "inputs": [101 { "internalType": "address", "name": "owner", "type": "address" }102 ],103 "name": "balanceOf",104 "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],105 "stateMutability": "view",106 "type": "function"107 },108 {109 "inputs": [110 { "internalType": "address", "name": "from", "type": "address" },111 { "internalType": "uint256", "name": "amount", "type": "uint256" }112 ],113 "name": "burnFrom",114 "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],115 "stateMutability": "nonpayable",116 "type": "function"117 },118 {119 "inputs": [{ "internalType": "string", "name": "key", "type": "string" }],120 "name": "collectionProperty",121 "outputs": [{ "internalType": "bytes", "name": "", "type": "bytes" }],122 "stateMutability": "view",123 "type": "function"124 },125 {126 "inputs": [],127 "name": "confirmCollectionSponsorship",128 "outputs": [],129 "stateMutability": "nonpayable",130 "type": "function"131 },132 {133 "inputs": [],134 "name": "contractAddress",135 "outputs": [{ "internalType": "address", "name": "", "type": "address" }],136 "stateMutability": "view",137 "type": "function"138 },139 {140 "inputs": [],141 "name": "decimals",142 "outputs": [{ "internalType": "uint8", "name": "", "type": "uint8" }],143 "stateMutability": "view",144 "type": "function"145 },146 {147 "inputs": [{ "internalType": "string", "name": "key", "type": "string" }],148 "name": "deleteCollectionProperty",149 "outputs": [],150 "stateMutability": "nonpayable",151 "type": "function"152 },153 {154 "inputs": [],155 "name": "getCollectionSponsor",156 "outputs": [157 {158 "components": [159 { "internalType": "address", "name": "field_0", "type": "address" },160 { "internalType": "uint256", "name": "field_1", "type": "uint256" }161 ],162 "internalType": "struct Tuple6",163 "name": "",164 "type": "tuple"165 }166 ],167 "stateMutability": "view",168 "type": "function"169 },170 {171 "inputs": [],172 "name": "hasCollectionPendingSponsor",173 "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],174 "stateMutability": "view",175 "type": "function"176 },177 {178 "inputs": [179 { "internalType": "address", "name": "user", "type": "address" }180 ],181 "name": "isOwnerOrAdmin",182 "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],183 "stateMutability": "view",184 "type": "function"185 },186 {187 "inputs": [188 { "internalType": "uint256", "name": "user", "type": "uint256" }189 ],190 "name": "isOwnerOrAdminSubstrate",191 "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],192 "stateMutability": "view",193 "type": "function"194 },195 {196 "inputs": [],197 "name": "name",198 "outputs": [{ "internalType": "string", "name": "", "type": "string" }],199 "stateMutability": "view",200 "type": "function"201 },202 {203 "inputs": [204 { "internalType": "address", "name": "admin", "type": "address" }205 ],206 "name": "removeCollectionAdmin",207 "outputs": [],208 "stateMutability": "nonpayable",209 "type": "function"210 },211 {212 "inputs": [213 { "internalType": "uint256", "name": "admin", "type": "uint256" }214 ],215 "name": "removeCollectionAdminSubstrate",216 "outputs": [],217 "stateMutability": "nonpayable",218 "type": "function"219 },220 {221 "inputs": [],222 "name": "removeCollectionSponsor",223 "outputs": [],224 "stateMutability": "nonpayable",225 "type": "function"226 },227 {228 "inputs": [229 { "internalType": "address", "name": "user", "type": "address" }230 ],231 "name": "removeFromCollectionAllowList",232 "outputs": [],233 "stateMutability": "nonpayable",234 "type": "function"235 },236 {237 "inputs": [{ "internalType": "uint8", "name": "mode", "type": "uint8" }],238 "name": "setCollectionAccess",239 "outputs": [],240 "stateMutability": "nonpayable",241 "type": "function"242 },243 {244 "inputs": [245 { "internalType": "string", "name": "limit", "type": "string" },246 { "internalType": "uint32", "name": "value", "type": "uint32" }247 ],248 "name": "setCollectionLimit",249 "outputs": [],250 "stateMutability": "nonpayable",251 "type": "function"252 },253 {254 "inputs": [255 { "internalType": "string", "name": "limit", "type": "string" },256 { "internalType": "bool", "name": "value", "type": "bool" }257 ],258 "name": "setCollectionLimit",259 "outputs": [],260 "stateMutability": "nonpayable",261 "type": "function"262 },263 {264 "inputs": [{ "internalType": "bool", "name": "mode", "type": "bool" }],265 "name": "setCollectionMintMode",266 "outputs": [],267 "stateMutability": "nonpayable",268 "type": "function"269 },270 {271 "inputs": [{ "internalType": "bool", "name": "enable", "type": "bool" }],272 "name": "setCollectionNesting",273 "outputs": [],274 "stateMutability": "nonpayable",275 "type": "function"276 },277 {278 "inputs": [279 { "internalType": "bool", "name": "enable", "type": "bool" },280 {281 "internalType": "address[]",282 "name": "collections",283 "type": "address[]"284 }285 ],286 "name": "setCollectionNesting",287 "outputs": [],288 "stateMutability": "nonpayable",289 "type": "function"290 },291 {292 "inputs": [293 { "internalType": "string", "name": "key", "type": "string" },294 { "internalType": "bytes", "name": "value", "type": "bytes" }295 ],296 "name": "setCollectionProperty",297 "outputs": [],298 "stateMutability": "nonpayable",299 "type": "function"300 },301 {302 "inputs": [303 { "internalType": "address", "name": "sponsor", "type": "address" }304 ],305 "name": "setCollectionSponsor",306 "outputs": [],307 "stateMutability": "nonpayable",308 "type": "function"309 },310 {311 "inputs": [312 { "internalType": "uint256", "name": "sponsor", "type": "uint256" }313 ],314 "name": "setCollectionSponsorSubstrate",315 "outputs": [],316 "stateMutability": "nonpayable",317 "type": "function"318 },319 {320 "inputs": [321 { "internalType": "address", "name": "newOwner", "type": "address" }322 ],323 "name": "setOwner",324 "outputs": [],325 "stateMutability": "nonpayable",326 "type": "function"327 },328 {329 "inputs": [330 { "internalType": "uint256", "name": "newOwner", "type": "uint256" }331 ],332 "name": "setOwnerSubstrate",333 "outputs": [],334 "stateMutability": "nonpayable",335 "type": "function"336 },337 {338 "inputs": [339 { "internalType": "bytes4", "name": "interfaceID", "type": "bytes4" }340 ],341 "name": "supportsInterface",342 "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],343 "stateMutability": "view",344 "type": "function"345 },346 {347 "inputs": [],348 "name": "symbol",349 "outputs": [{ "internalType": "string", "name": "", "type": "string" }],350 "stateMutability": "view",351 "type": "function"352 },353 {354 "inputs": [],355 "name": "totalSupply",356 "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],357 "stateMutability": "view",358 "type": "function"359 },360 {361 "inputs": [362 { "internalType": "address", "name": "to", "type": "address" },363 { "internalType": "uint256", "name": "amount", "type": "uint256" }364 ],365 "name": "transfer",366 "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],367 "stateMutability": "nonpayable",368 "type": "function"369 },370 {371 "inputs": [372 { "internalType": "address", "name": "from", "type": "address" },373 { "internalType": "address", "name": "to", "type": "address" },374 { "internalType": "uint256", "name": "amount", "type": "uint256" }375 ],376 "name": "transferFrom",377 "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],378 "stateMutability": "nonpayable",379 "type": "function"380 },381 {382 "inputs": [],383 "name": "uniqueCollectionType",384 "outputs": [{ "internalType": "string", "name": "", "type": "string" }],385 "stateMutability": "nonpayable",386 "type": "function"387 }388]tests/src/eth/nonFungibleAbi.jsondiffbeforeafterboth--- a/tests/src/eth/nonFungibleAbi.json
+++ b/tests/src/eth/nonFungibleAbi.json
@@ -208,7 +208,7 @@
{ "internalType": "address", "name": "field_0", "type": "address" },
{ "internalType": "uint256", "name": "field_1", "type": "uint256" }
],
- "internalType": "struct Tuple1",
+ "internalType": "struct Tuple17",
"name": "",
"type": "tuple"
}
tests/src/eth/reFungibleAbi.jsondiffbeforeafterboth--- a/tests/src/eth/reFungibleAbi.json
+++ b/tests/src/eth/reFungibleAbi.json
@@ -208,7 +208,7 @@
{ "internalType": "address", "name": "field_0", "type": "address" },
{ "internalType": "uint256", "name": "field_1", "type": "uint256" }
],
- "internalType": "struct Tuple1",
+ "internalType": "struct Tuple17",
"name": "",
"type": "tuple"
}