difftreelog
misk: update stubs
in: master
7 files changed
pallets/nonfungible/src/stubs/UniqueNFT.soldiffbeforeafterboth--- a/pallets/nonfungible/src/stubs/UniqueNFT.sol
+++ b/pallets/nonfungible/src/stubs/UniqueNFT.sol
@@ -106,6 +106,7 @@
/// @title A contract that allows you to work with collections.
<<<<<<< HEAD
<<<<<<< HEAD
+<<<<<<< HEAD
/// @dev the ERC-165 identifier for this interface is 0xb3152af3
=======
/// @dev the ERC-165 identifier for this interface is 0x674be726
@@ -113,6 +114,9 @@
=======
/// @dev the ERC-165 identifier for this interface is 0x943ee094
>>>>>>> fix: after rebase
+=======
+/// @dev the ERC-165 identifier for this interface is 0xefe988e0
+>>>>>>> misk: update stubs
contract Collection is Dummy, ERC165 {
/// Set collection property.
///
@@ -130,7 +134,7 @@
/// Set collection properties.
///
/// @param properties Vector of properties key/value pair.
- /// @dev EVM selector for this function is: 0xf90c1ce9,
+ /// @dev EVM selector for this function is: 0x50b26b2a,
/// or in textual repr: setCollectionProperties((string,bytes)[])
function setCollectionProperties(Tuple21[] memory properties) public {
require(false, stub_error);
@@ -152,7 +156,7 @@
/// Delete collection properties.
///
/// @param keys Properties keys.
- /// @dev EVM selector for this function is: 0x56d4684a,
+ /// @dev EVM selector for this function is: 0xee206ee3,
/// or in textual repr: deleteCollectionProperties(string[])
function deleteCollectionProperties(string[] memory keys) public {
require(false, stub_error);
@@ -179,7 +183,7 @@
///
/// @param keys Properties keys. Empty keys for all propertyes.
/// @return Vector of properties key/value pairs.
- /// @dev EVM selector for this function is: 0x5cad7311,
+ /// @dev EVM selector for this function is: 0x285fb8e6,
/// or in textual repr: collectionProperties(string[])
function collectionProperties(string[] memory keys) public view returns (Tuple21[] memory) {
require(false, stub_error);
@@ -206,9 +210,16 @@
/// @dev In order for sponsorship to work, it must be confirmed on behalf of the sponsor.
///
/// @param sponsor Cross account address of the sponsor from whose account funds will be debited for operations with the contract.
+<<<<<<< HEAD
/// @dev EVM selector for this function is: 0x403e96a7,
/// or in textual repr: setCollectionSponsorCross((address,uint256))
function setCollectionSponsorCross(Tuple6 memory sponsor) public {
+=======
+ /// @dev EVM selector for this function is: 0x84a1d5a8,
+ /// or in textual repr: setCollectionSponsorCross(EthCrossAccount)
+ /// or in the expanded repr: setCollectionSponsorCross((address,uint256))
+ function setCollectionSponsorCross(EthCrossAccount memory sponsor) public {
+>>>>>>> misk: update stubs
require(false, stub_error);
sponsor;
dummy = 0;
@@ -248,6 +259,7 @@
/// or in textual repr: collectionSponsor()
<<<<<<< HEAD
<<<<<<< HEAD
+<<<<<<< HEAD
function collectionSponsor() public view returns (Tuple6 memory) {
require(false, stub_error);
dummy;
@@ -264,6 +276,12 @@
dummy;
return Tuple8(0x0000000000000000000000000000000000000000, 0);
>>>>>>> feat: Add custum signature with unlimited nesting.
+=======
+ function collectionSponsor() public view returns (Tuple24 memory) {
+ require(false, stub_error);
+ dummy;
+ return Tuple24(0x0000000000000000000000000000000000000000, 0);
+>>>>>>> misk: update stubs
}
/// Set limits for the collection.
@@ -312,9 +330,16 @@
/// Add collection admin.
/// @param newAdmin Cross account administrator address.
+<<<<<<< HEAD
/// @dev EVM selector for this function is: 0x62e3c7c2,
/// or in textual repr: addCollectionAdminCross((address,uint256))
function addCollectionAdminCross(Tuple6 memory newAdmin) public {
+=======
+ /// @dev EVM selector for this function is: 0x859aa7d6,
+ /// or in textual repr: addCollectionAdminCross(EthCrossAccount)
+ /// or in the expanded repr: addCollectionAdminCross((address,uint256))
+ function addCollectionAdminCross(EthCrossAccount memory newAdmin) public {
+>>>>>>> misk: update stubs
require(false, stub_error);
newAdmin;
dummy = 0;
@@ -322,9 +347,16 @@
/// Remove collection admin.
/// @param admin Cross account administrator address.
+<<<<<<< HEAD
/// @dev EVM selector for this function is: 0x810d1503,
/// or in textual repr: removeCollectionAdminCross((address,uint256))
function removeCollectionAdminCross(Tuple6 memory admin) public {
+=======
+ /// @dev EVM selector for this function is: 0x6c0cd173,
+ /// or in textual repr: removeCollectionAdminCross(EthCrossAccount)
+ /// or in the expanded repr: removeCollectionAdminCross((address,uint256))
+ function removeCollectionAdminCross(EthCrossAccount memory admin) public {
+>>>>>>> misk: update stubs
require(false, stub_error);
admin;
dummy = 0;
@@ -366,7 +398,7 @@
///
/// @param enable If "true" degenerates to nesting: {OwnerRestricted: [1, 2, 3]} else to nesting: 'Disabled'
/// @param collections Addresses of collections that will be available for nesting.
- /// @dev EVM selector for this function is: 0x112d4586,
+ /// @dev EVM selector for this function is: 0x64872396,
/// or in textual repr: setCollectionNesting(bool,address[])
function setCollectionNesting(bool enable, address[] memory collections) public {
require(false, stub_error);
@@ -413,9 +445,16 @@
/// Add user to allowed list.
///
/// @param user User cross account address.
+<<<<<<< HEAD
/// @dev EVM selector for this function is: 0xf074da88,
/// or in textual repr: addToCollectionAllowListCross((address,uint256))
function addToCollectionAllowListCross(Tuple6 memory user) public {
+=======
+ /// @dev EVM selector for this function is: 0xa0184a3a,
+ /// or in textual repr: addToCollectionAllowListCross(EthCrossAccount)
+ /// or in the expanded repr: addToCollectionAllowListCross((address,uint256))
+ function addToCollectionAllowListCross(EthCrossAccount memory user) public {
+>>>>>>> misk: update stubs
require(false, stub_error);
user;
dummy = 0;
@@ -435,9 +474,16 @@
/// Remove user from allowed list.
///
/// @param user User cross account address.
+<<<<<<< HEAD
/// @dev EVM selector for this function is: 0xc00df45c,
/// or in textual repr: removeFromCollectionAllowListCross((address,uint256))
function removeFromCollectionAllowListCross(Tuple6 memory user) public {
+=======
+ /// @dev EVM selector for this function is: 0x09ba452a,
+ /// or in textual repr: removeFromCollectionAllowListCross(EthCrossAccount)
+ /// or in the expanded repr: removeFromCollectionAllowListCross((address,uint256))
+ function removeFromCollectionAllowListCross(EthCrossAccount memory user) public {
+>>>>>>> misk: update stubs
require(false, stub_error);
user;
dummy = 0;
@@ -471,9 +517,16 @@
///
/// @param user User cross account to verify
/// @return "true" if account is the owner or admin
+<<<<<<< HEAD
/// @dev EVM selector for this function is: 0x5aba3351,
/// or in textual repr: isOwnerOrAdminCross((address,uint256))
function isOwnerOrAdminCross(Tuple6 memory user) public view returns (bool) {
+=======
+ /// @dev EVM selector for this function is: 0x3e75a905,
+ /// or in textual repr: isOwnerOrAdminCross(EthCrossAccount)
+ /// or in the expanded repr: isOwnerOrAdminCross((address,uint256))
+ function isOwnerOrAdminCross(EthCrossAccount memory user) public view returns (bool) {
+>>>>>>> misk: update stubs
require(false, stub_error);
user;
dummy;
@@ -499,6 +552,7 @@
/// or in textual repr: collectionOwner()
<<<<<<< HEAD
<<<<<<< HEAD
+<<<<<<< HEAD
function collectionOwner() public view returns (Tuple6 memory) {
require(false, stub_error);
dummy;
@@ -515,6 +569,12 @@
dummy;
return Tuple8(0x0000000000000000000000000000000000000000, 0);
>>>>>>> feat: Add custum signature with unlimited nesting.
+=======
+ function collectionOwner() public view returns (EthCrossAccount memory) {
+ require(false, stub_error);
+ dummy;
+ return EthCrossAccount(0x0000000000000000000000000000000000000000, 0);
+>>>>>>> misk: update stubs
}
/// Changes collection owner to another account
@@ -535,19 +595,33 @@
/// If address is canonical then substrate mirror is zero and vice versa.
/// @dev EVM selector for this function is: 0x5813216b,
/// or in textual repr: collectionAdmins()
+<<<<<<< HEAD
function collectionAdmins() public view returns (Tuple6[] memory) {
require(false, stub_error);
dummy;
return new Tuple6[](0);
+=======
+ function collectionAdmins() public view returns (EthCrossAccount[] memory) {
+ require(false, stub_error);
+ dummy;
+ return new EthCrossAccount[](0);
+>>>>>>> misk: update stubs
}
/// Changes collection owner to another account
///
/// @dev Owner can be changed only by current owner
/// @param newOwner new owner cross account
+<<<<<<< HEAD
/// @dev EVM selector for this function is: 0xbdff793d,
/// or in textual repr: setOwnerCross((address,uint256))
function setOwnerCross(Tuple6 memory newOwner) public {
+=======
+ /// @dev EVM selector for this function is: 0xe5c9913f,
+ /// or in textual repr: setOwnerCross(EthCrossAccount)
+ /// or in the expanded repr: setOwnerCross((address,uint256))
+ function setOwnerCross(EthCrossAccount memory newOwner) public {
+>>>>>>> misk: update stubs
require(false, stub_error);
newOwner;
dummy = 0;
@@ -556,12 +630,24 @@
<<<<<<< HEAD
<<<<<<< HEAD
+<<<<<<< HEAD
/// @dev anonymous struct
struct Tuple19 {
+=======
+/// @dev Cross account struct
+struct EthCrossAccount {
+ address eth;
+ uint256 sub;
+}
+
+/// @dev anonymous struct
+struct Tuple24 {
+>>>>>>> misk: update stubs
address field_0;
uint256 field_1;
}
+<<<<<<< HEAD
/// @title ERC-721 Non-Fungible Token Standard, optional metadata extension
/// @dev See https://eips.ethereum.org/EIPS/eip-721
/// @dev the ERC-165 identifier for this interface is 0x5b5e139f
@@ -608,6 +694,8 @@
=======
>>>>>>> feat: Add custum signature with unlimited nesting.
=======
+=======
+>>>>>>> misk: update stubs
/// @dev anonymous struct
struct Tuple21 {
string field_0;
@@ -717,10 +805,14 @@
/// @title Unique extensions for ERC721.
<<<<<<< HEAD
+<<<<<<< HEAD
/// @dev the ERC-165 identifier for this interface is 0x244543ee
=======
/// @dev the ERC-165 identifier for this interface is 0xcc97cb35
>>>>>>> feat: Add custum signature with unlimited nesting.
+=======
+/// @dev the ERC-165 identifier for this interface is 0xb76006ac
+>>>>>>> misk: update stubs
contract ERC721UniqueExtensions is Dummy, ERC165 {
/// @notice A descriptive name for a collection of NFTs in this contract
/// @dev EVM selector for this function is: 0x06fdde03,
@@ -746,9 +838,16 @@
/// operator of the current owner.
/// @param approved The new substrate address approved NFT controller
/// @param tokenId The NFT to approve
+<<<<<<< HEAD
/// @dev EVM selector for this function is: 0x106fdb59,
/// or in textual repr: approveCross((address,uint256),uint256)
function approveCross(Tuple6 memory approved, uint256 tokenId) public {
+=======
+ /// @dev EVM selector for this function is: 0x0ecd0ab0,
+ /// or in textual repr: approveCross(EthCrossAccount,uint256)
+ /// or in the expanded repr: approveCross((address,uint256),uint256)
+ function approveCross(EthCrossAccount memory approved, uint256 tokenId) public {
+>>>>>>> misk: update stubs
require(false, stub_error);
approved;
tokenId;
@@ -777,6 +876,7 @@
/// @param tokenId The NFT to transfer
/// @dev EVM selector for this function is: 0xd5cf430b,
/// or in textual repr: transferFromCross(EthCrossAccount,EthCrossAccount,uint256)
+ /// or in the expanded repr: transferFromCross((address,uint256),(address,uint256),uint256)
function transferFromCross(
<<<<<<< HEAD
Tuple6 memory from,
@@ -815,9 +915,16 @@
/// if `to` is the zero address. Throws if `tokenId` is not a valid NFT.
/// @param from The current owner of the NFT
/// @param tokenId The NFT to transfer
+<<<<<<< HEAD
/// @dev EVM selector for this function is: 0xa8106d4a,
/// or in textual repr: burnFromCross((address,uint256),uint256)
function burnFromCross(Tuple6 memory from, uint256 tokenId) public {
+=======
+ /// @dev EVM selector for this function is: 0xbb2f5a58,
+ /// or in textual repr: burnFromCross(EthCrossAccount,uint256)
+ /// or in the expanded repr: burnFromCross((address,uint256),uint256)
+ function burnFromCross(EthCrossAccount memory from, uint256 tokenId) public {
+>>>>>>> misk: update stubs
require(false, stub_error);
from;
tokenId;
@@ -873,7 +980,7 @@
/// should be obtained with `nextTokenId` method
/// @param to The new owner
/// @param tokenIds IDs of the minted NFTs
- /// @dev EVM selector for this function is: 0xf9d9a5a3,
+ /// @dev EVM selector for this function is: 0x44a9945e,
/// or in textual repr: mintBulk(address,uint256[])
function mintBulk(address to, uint256[] memory tokenIds) public returns (bool) {
require(false, stub_error);
@@ -888,7 +995,7 @@
/// numbers and first number should be obtained with `nextTokenId` method
/// @param to The new owner
/// @param tokens array of pairs of token ID and token URI for minted tokens
- /// @dev EVM selector for this function is: 0xfd4e2a99,
+ /// @dev EVM selector for this function is: 0x36543006,
/// or in textual repr: mintBulkWithTokenURI(address,(uint256,string)[])
function mintBulkWithTokenURI(address to, Tuple12[] memory tokens) public returns (bool) {
require(false, stub_error);
@@ -907,6 +1014,7 @@
}
<<<<<<< HEAD
+<<<<<<< HEAD
/// @dev anonymous struct
struct Tuple6 {
address field_0;
@@ -925,6 +1033,8 @@
uint256 field_1;
}
+=======
+>>>>>>> misk: update stubs
/// @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
/// @dev See https://eips.ethereum.org/EIPS/eip-721
/// @dev the ERC-165 identifier for this interface is 0x780e9d63
pallets/refungible/src/stubs/UniqueRefungible.soldiffbeforeafterboth--- a/pallets/refungible/src/stubs/UniqueRefungible.sol
+++ b/pallets/refungible/src/stubs/UniqueRefungible.sol
@@ -124,7 +124,7 @@
/// @param properties Vector of properties key/value pair.
/// @dev EVM selector for this function is: 0x50b26b2a,
/// or in textual repr: setCollectionProperties((string,bytes)[])
- function setCollectionProperties(Tuple19[] memory properties) public {
+ function setCollectionProperties(Tuple20[] memory properties) public {
require(false, stub_error);
properties;
dummy = 0;
@@ -173,11 +173,11 @@
/// @return Vector of properties key/value pairs.
/// @dev EVM selector for this function is: 0x285fb8e6,
/// or in textual repr: collectionProperties(string[])
- function collectionProperties(string[] memory keys) public view returns (Tuple19[] memory) {
+ function collectionProperties(string[] memory keys) public view returns (Tuple20[] memory) {
require(false, stub_error);
keys;
dummy;
- return new Tuple19[](0);
+ return new Tuple20[](0);
}
/// Set the sponsor of the collection.
@@ -199,8 +199,14 @@
///
/// @param sponsor Cross account address of the sponsor from whose account funds will be debited for operations with the contract.
/// @dev EVM selector for this function is: 0x84a1d5a8,
+<<<<<<< HEAD
/// or in textual repr: setCollectionSponsorCross((address,uint256))
function setCollectionSponsorCross(Tuple6 memory sponsor) public {
+=======
+ /// or in textual repr: setCollectionSponsorCross(EthCrossAccount)
+ /// or in the expanded repr: setCollectionSponsorCross((address,uint256))
+ function setCollectionSponsorCross(EthCrossAccount memory sponsor) public {
+>>>>>>> misk: update stubs
require(false, stub_error);
sponsor;
dummy = 0;
@@ -238,10 +244,17 @@
/// @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: 0x6ec0a9f1,
/// or in textual repr: collectionSponsor()
+<<<<<<< HEAD
function collectionSponsor() public view returns (Tuple6 memory) {
require(false, stub_error);
dummy;
return Tuple6(0x0000000000000000000000000000000000000000, 0);
+=======
+ function collectionSponsor() public view returns (Tuple23 memory) {
+ require(false, stub_error);
+ dummy;
+ return Tuple23(0x0000000000000000000000000000000000000000, 0);
+>>>>>>> misk: update stubs
}
/// Set limits for the collection.
@@ -291,8 +304,14 @@
/// Add collection admin.
/// @param newAdmin Cross account administrator address.
/// @dev EVM selector for this function is: 0x859aa7d6,
+<<<<<<< HEAD
/// or in textual repr: addCollectionAdminCross((address,uint256))
function addCollectionAdminCross(Tuple6 memory newAdmin) public {
+=======
+ /// or in textual repr: addCollectionAdminCross(EthCrossAccount)
+ /// or in the expanded repr: addCollectionAdminCross((address,uint256))
+ function addCollectionAdminCross(EthCrossAccount memory newAdmin) public {
+>>>>>>> misk: update stubs
require(false, stub_error);
newAdmin;
dummy = 0;
@@ -301,8 +320,14 @@
/// Remove collection admin.
/// @param admin Cross account administrator address.
/// @dev EVM selector for this function is: 0x6c0cd173,
+<<<<<<< HEAD
/// or in textual repr: removeCollectionAdminCross((address,uint256))
function removeCollectionAdminCross(Tuple6 memory admin) public {
+=======
+ /// or in textual repr: removeCollectionAdminCross(EthCrossAccount)
+ /// or in the expanded repr: removeCollectionAdminCross((address,uint256))
+ function removeCollectionAdminCross(EthCrossAccount memory admin) public {
+>>>>>>> misk: update stubs
require(false, stub_error);
admin;
dummy = 0;
@@ -392,8 +417,14 @@
///
/// @param user User cross account address.
/// @dev EVM selector for this function is: 0xa0184a3a,
+<<<<<<< HEAD
/// or in textual repr: addToCollectionAllowListCross((address,uint256))
function addToCollectionAllowListCross(Tuple6 memory user) public {
+=======
+ /// or in textual repr: addToCollectionAllowListCross(EthCrossAccount)
+ /// or in the expanded repr: addToCollectionAllowListCross((address,uint256))
+ function addToCollectionAllowListCross(EthCrossAccount memory user) public {
+>>>>>>> misk: update stubs
require(false, stub_error);
user;
dummy = 0;
@@ -414,8 +445,14 @@
///
/// @param user User cross account address.
/// @dev EVM selector for this function is: 0x09ba452a,
+<<<<<<< HEAD
/// or in textual repr: removeFromCollectionAllowListCross((address,uint256))
function removeFromCollectionAllowListCross(Tuple6 memory user) public {
+=======
+ /// or in textual repr: removeFromCollectionAllowListCross(EthCrossAccount)
+ /// or in the expanded repr: removeFromCollectionAllowListCross((address,uint256))
+ function removeFromCollectionAllowListCross(EthCrossAccount memory user) public {
+>>>>>>> misk: update stubs
require(false, stub_error);
user;
dummy = 0;
@@ -450,8 +487,14 @@
/// @param user User cross account to verify
/// @return "true" if account is the owner or admin
/// @dev EVM selector for this function is: 0x3e75a905,
+<<<<<<< HEAD
/// or in textual repr: isOwnerOrAdminCross((address,uint256))
function isOwnerOrAdminCross(Tuple6 memory user) public view returns (bool) {
+=======
+ /// or in textual repr: isOwnerOrAdminCross(EthCrossAccount)
+ /// or in the expanded repr: isOwnerOrAdminCross((address,uint256))
+ function isOwnerOrAdminCross(EthCrossAccount memory user) public view returns (bool) {
+>>>>>>> misk: update stubs
require(false, stub_error);
user;
dummy;
@@ -471,14 +514,21 @@
/// Get collection owner.
///
- /// @return Tuble with sponsor address and his substrate mirror.
+ /// @return Tuple with sponsor address and his substrate mirror.
/// If address is canonical then substrate mirror is zero and vice versa.
/// @dev EVM selector for this function is: 0xdf727d3b,
/// or in textual repr: collectionOwner()
+<<<<<<< HEAD
function collectionOwner() public view returns (Tuple6 memory) {
require(false, stub_error);
dummy;
return Tuple6(0x0000000000000000000000000000000000000000, 0);
+=======
+ function collectionOwner() public view returns (EthCrossAccount memory) {
+ require(false, stub_error);
+ dummy;
+ return EthCrossAccount(0x0000000000000000000000000000000000000000, 0);
+>>>>>>> misk: update stubs
}
/// Changes collection owner to another account
@@ -499,10 +549,17 @@
/// If address is canonical then substrate mirror is zero and vice versa.
/// @dev EVM selector for this function is: 0x5813216b,
/// or in textual repr: collectionAdmins()
+<<<<<<< HEAD
function collectionAdmins() public view returns (Tuple6[] memory) {
require(false, stub_error);
dummy;
return new Tuple6[](0);
+=======
+ function collectionAdmins() public view returns (EthCrossAccount[] memory) {
+ require(false, stub_error);
+ dummy;
+ return new EthCrossAccount[](0);
+>>>>>>> misk: update stubs
}
/// Changes collection owner to another account
@@ -510,16 +567,34 @@
/// @dev Owner can be changed only by current owner
/// @param newOwner new owner cross account
/// @dev EVM selector for this function is: 0xe5c9913f,
+<<<<<<< HEAD
/// or in textual repr: setOwnerCross((address,uint256))
function setOwnerCross(Tuple6 memory newOwner) public {
+=======
+ /// or in textual repr: setOwnerCross(EthCrossAccount)
+ /// or in the expanded repr: setOwnerCross((address,uint256))
+ function setOwnerCross(EthCrossAccount memory newOwner) public {
+>>>>>>> misk: update stubs
require(false, stub_error);
newOwner;
dummy = 0;
}
}
+/// @dev Cross account struct
+struct EthCrossAccount {
+ address eth;
+ uint256 sub;
+}
+
+/// @dev anonymous struct
+struct Tuple23 {
+ address field_0;
+ uint256 field_1;
+}
+
/// @dev anonymous struct
-struct Tuple19 {
+struct Tuple20 {
string field_0;
bytes field_1;
}
@@ -708,10 +783,16 @@
/// @param to The new owner
/// @param tokenId The RFT to transfer
/// @dev EVM selector for this function is: 0xd5cf430b,
- /// or in textual repr: transferFromCross((address,uint256),(address,uint256),uint256)
+ /// or in textual repr: transferFromCross(EthCrossAccount,EthCrossAccount,uint256)
+ /// or in the expanded repr: transferFromCross((address,uint256),(address,uint256),uint256)
function transferFromCross(
+<<<<<<< HEAD
Tuple6 memory from,
Tuple6 memory to,
+=======
+ EthCrossAccount memory from,
+ EthCrossAccount memory to,
+>>>>>>> misk: update stubs
uint256 tokenId
) public {
require(false, stub_error);
@@ -745,8 +826,14 @@
/// @param from The current owner of the RFT
/// @param tokenId The RFT to transfer
/// @dev EVM selector for this function is: 0xbb2f5a58,
+<<<<<<< HEAD
/// or in textual repr: burnFromCross((address,uint256),uint256)
function burnFromCross(Tuple6 memory from, uint256 tokenId) public {
+=======
+ /// or in textual repr: burnFromCross(EthCrossAccount,uint256)
+ /// or in the expanded repr: burnFromCross((address,uint256),uint256)
+ function burnFromCross(EthCrossAccount memory from, uint256 tokenId) public {
+>>>>>>> misk: update stubs
require(false, stub_error);
from;
tokenId;
@@ -762,6 +849,7 @@
return 0;
}
+<<<<<<< HEAD
// /// @notice Function to mint multiple tokens.
// /// @dev `tokenIds` should be an array of consecutive numbers and first number
// /// should be obtained with `nextTokenId` method
@@ -791,6 +879,37 @@
// dummy = 0;
// return false;
// }
+=======
+ /// @notice Function to mint multiple tokens.
+ /// @dev `tokenIds` should be an array of consecutive numbers and first number
+ /// should be obtained with `nextTokenId` method
+ /// @param to The new owner
+ /// @param tokenIds IDs of the minted RFTs
+ /// @dev EVM selector for this function is: 0x44a9945e,
+ /// or in textual repr: mintBulk(address,uint256[])
+ function mintBulk(address to, uint256[] memory tokenIds) public returns (bool) {
+ require(false, stub_error);
+ to;
+ tokenIds;
+ dummy = 0;
+ return false;
+ }
+
+ /// @notice Function to mint multiple tokens with the given tokenUris.
+ /// @dev `tokenIds` is array of pairs of token ID and token URI. Token IDs should be consecutive
+ /// numbers and first number should be obtained with `nextTokenId` method
+ /// @param to The new owner
+ /// @param tokens array of pairs of token ID and token URI for minted tokens
+ /// @dev EVM selector for this function is: 0x36543006,
+ /// or in textual repr: mintBulkWithTokenURI(address,(uint256,string)[])
+ function mintBulkWithTokenURI(address to, Tuple11[] memory tokens) public returns (bool) {
+ require(false, stub_error);
+ to;
+ tokens;
+ dummy = 0;
+ return false;
+ }
+>>>>>>> misk: update stubs
/// Returns EVM address for refungible token
///
@@ -806,17 +925,24 @@
}
/// @dev anonymous struct
+<<<<<<< HEAD
struct Tuple8 {
+=======
+struct Tuple11 {
+>>>>>>> misk: update stubs
uint256 field_0;
string field_1;
}
+<<<<<<< HEAD
/// @dev anonymous struct
struct Tuple6 {
address field_0;
uint256 field_1;
}
+=======
+>>>>>>> misk: update stubs
/// @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
/// @dev See https://eips.ethereum.org/EIPS/eip-721
/// @dev the ERC-165 identifier for this interface is 0x780e9d63
tests/src/eth/api/UniqueNFT.soldiffbeforeafterboth1// SPDX-License-Identifier: OTHER2// This code is automatically generated34pragma solidity >=0.8.0 <0.9.0;56/// @dev common stubs holder7interface Dummy {89}1011interface ERC165 is Dummy {12 function supportsInterface(bytes4 interfaceID) external view returns (bool);13}1415/// @title A contract that allows to set and delete token properties and change token property permissions.16/// @dev the ERC-165 identifier for this interface is 0x55dba91917interface TokenProperties is Dummy, ERC165 {18 /// @notice Set permissions for token property.19 /// @dev Throws error if `msg.sender` is not admin or owner of the collection.20 /// @param key Property key.21 /// @param isMutable Permission to mutate property.22 /// @param collectionAdmin Permission to mutate property by collection admin if property is mutable.23 /// @param tokenOwner Permission to mutate property by token owner if property is mutable.24 /// @dev EVM selector for this function is: 0x222d97fa,25 /// or in textual repr: setTokenPropertyPermission(string,bool,bool,bool)26 function setTokenPropertyPermission(27 string memory key,28 bool isMutable,29 bool collectionAdmin,30 bool tokenOwner31 ) external;3233 /// @notice Set token property value.34 /// @dev Throws error if `msg.sender` has no permission to edit the property.35 /// @param tokenId ID of the token.36 /// @param key Property key.37 /// @param value Property value.38 /// @dev EVM selector for this function is: 0x1752d67b,39 /// or in textual repr: setProperty(uint256,string,bytes)40 function setProperty(41 uint256 tokenId,42 string memory key,43 bytes memory value44 ) external;4546 /// @notice Set token properties value.47 /// @dev Throws error if `msg.sender` has no permission to edit the property.48 /// @param tokenId ID of the token.49 /// @param properties settable properties50 /// @dev EVM selector for this function is: 0x14ed3a6e,51 /// or in textual repr: setProperties(uint256,(string,bytes)[])52 function setProperties(uint256 tokenId, Tuple19[] memory properties) external;5354 /// @notice Delete token property value.55 /// @dev Throws error if `msg.sender` has no permission to edit the property.56 /// @param tokenId ID of the token.57 /// @param key Property key.58 /// @dev EVM selector for this function is: 0x066111d1,59 /// or in textual repr: deleteProperty(uint256,string)60 function deleteProperty(uint256 tokenId, string memory key) external;6162 /// @notice Get token property value.63 /// @dev Throws error if key not found64 /// @param tokenId ID of the token.65 /// @param key Property key.66 /// @return Property value bytes67 /// @dev EVM selector for this function is: 0x7228c327,68 /// or in textual repr: property(uint256,string)69 function property(uint256 tokenId, string memory key) external view returns (bytes memory);70}7172/// @title A contract that allows you to work with collections.73<<<<<<< HEAD74<<<<<<< HEAD75/// @dev the ERC-165 identifier for this interface is 0xb3152af376=======77/// @dev the ERC-165 identifier for this interface is 0x674be72678>>>>>>> feat: Add custum signature with unlimited nesting.79=======80/// @dev the ERC-165 identifier for this interface is 0x943ee09481>>>>>>> fix: after rebase82interface Collection is Dummy, ERC165 {83 /// Set collection property.84 ///85 /// @param key Property key.86 /// @param value Propery value.87 /// @dev EVM selector for this function is: 0x2f073f66,88 /// or in textual repr: setCollectionProperty(string,bytes)89 function setCollectionProperty(string memory key, bytes memory value) external;9091 /// Set collection properties.92 ///93 /// @param properties Vector of properties key/value pair.94 /// @dev EVM selector for this function is: 0xf90c1ce9,95 /// or in textual repr: setCollectionProperties((string,bytes)[])96 function setCollectionProperties(Tuple21[] memory properties) external;9798 /// Delete collection property.99 ///100 /// @param key Property key.101 /// @dev EVM selector for this function is: 0x7b7debce,102 /// or in textual repr: deleteCollectionProperty(string)103 function deleteCollectionProperty(string memory key) external;104105 /// Delete collection properties.106 ///107 /// @param keys Properties keys.108 /// @dev EVM selector for this function is: 0x56d4684a,109 /// or in textual repr: deleteCollectionProperties(string[])110 function deleteCollectionProperties(string[] memory keys) external;111112 /// Get collection property.113 ///114 /// @dev Throws error if key not found.115 ///116 /// @param key Property key.117 /// @return bytes The property corresponding to the key.118 /// @dev EVM selector for this function is: 0xcf24fd6d,119 /// or in textual repr: collectionProperty(string)120 function collectionProperty(string memory key) external view returns (bytes memory);121122 /// Get collection properties.123 ///124 /// @param keys Properties keys. Empty keys for all propertyes.125 /// @return Vector of properties key/value pairs.126 /// @dev EVM selector for this function is: 0x5cad7311,127 /// or in textual repr: collectionProperties(string[])128 function collectionProperties(string[] memory keys) external view returns (Tuple21[] memory);129130 /// Set the sponsor of the collection.131 ///132 /// @dev In order for sponsorship to work, it must be confirmed on behalf of the sponsor.133 ///134 /// @param sponsor Address of the sponsor from whose account funds will be debited for operations with the contract.135 /// @dev EVM selector for this function is: 0x7623402e,136 /// or in textual repr: setCollectionSponsor(address)137 function setCollectionSponsor(address sponsor) external;138139 /// Set the sponsor of the collection.140 ///141 /// @dev In order for sponsorship to work, it must be confirmed on behalf of the sponsor.142 ///143 /// @param sponsor Cross account address of the sponsor from whose account funds will be debited for operations with the contract.144 /// @dev EVM selector for this function is: 0x403e96a7,145 /// or in textual repr: setCollectionSponsorCross((address,uint256))146 function setCollectionSponsorCross(Tuple6 memory sponsor) external;147148 /// Whether there is a pending sponsor.149 /// @dev EVM selector for this function is: 0x058ac185,150 /// or in textual repr: hasCollectionPendingSponsor()151 function hasCollectionPendingSponsor() external view returns (bool);152153 /// Collection sponsorship confirmation.154 ///155 /// @dev After setting the sponsor for the collection, it must be confirmed with this function.156 /// @dev EVM selector for this function is: 0x3c50e97a,157 /// or in textual repr: confirmCollectionSponsorship()158 function confirmCollectionSponsorship() external;159160 /// Remove collection sponsor.161 /// @dev EVM selector for this function is: 0x6e0326a3,162 /// or in textual repr: removeCollectionSponsor()163 function removeCollectionSponsor() external;164165 /// Get current sponsor.166 ///167 /// @return Tuble with sponsor address and his substrate mirror. If there is no confirmed sponsor error "Contract has no sponsor" throw.168 /// @dev EVM selector for this function is: 0x6ec0a9f1,169 /// or in textual repr: collectionSponsor()170 function collectionSponsor() external view returns (Tuple8 memory);171172 /// Set limits for the collection.173 /// @dev Throws error if limit not found.174 /// @param limit Name of the limit. Valid names:175 /// "accountTokenOwnershipLimit",176 /// "sponsoredDataSize",177 /// "sponsoredDataRateLimit",178 /// "tokenLimit",179 /// "sponsorTransferTimeout",180 /// "sponsorApproveTimeout"181 /// @param value Value of the limit.182 /// @dev EVM selector for this function is: 0x6a3841db,183 /// or in textual repr: setCollectionLimit(string,uint32)184 function setCollectionLimit(string memory limit, uint32 value) external;185186 /// Set limits for the collection.187 /// @dev Throws error if limit not found.188 /// @param limit Name of the limit. Valid names:189 /// "ownerCanTransfer",190 /// "ownerCanDestroy",191 /// "transfersEnabled"192 /// @param value Value of the limit.193 /// @dev EVM selector for this function is: 0x993b7fba,194 /// or in textual repr: setCollectionLimit(string,bool)195 function setCollectionLimit(string memory limit, bool value) external;196197 /// Get contract address.198 /// @dev EVM selector for this function is: 0xf6b4dfb4,199 /// or in textual repr: contractAddress()200 function contractAddress() external view returns (address);201202 /// Add collection admin.203 /// @param newAdmin Cross account administrator address.204 /// @dev EVM selector for this function is: 0x62e3c7c2,205 /// or in textual repr: addCollectionAdminCross((address,uint256))206 function addCollectionAdminCross(Tuple6 memory newAdmin) external;207208 /// Remove collection admin.209 /// @param admin Cross account administrator address.210 /// @dev EVM selector for this function is: 0x810d1503,211 /// or in textual repr: removeCollectionAdminCross((address,uint256))212 function removeCollectionAdminCross(Tuple6 memory admin) external;213214 /// Add collection admin.215 /// @param newAdmin Address of the added administrator.216 /// @dev EVM selector for this function is: 0x92e462c7,217 /// or in textual repr: addCollectionAdmin(address)218 function addCollectionAdmin(address newAdmin) external;219220 /// Remove collection admin.221 ///222 /// @param admin Address of the removed administrator.223 /// @dev EVM selector for this function is: 0xfafd7b42,224 /// or in textual repr: removeCollectionAdmin(address)225 function removeCollectionAdmin(address admin) external;226227 /// Toggle accessibility of collection nesting.228 ///229 /// @param enable If "true" degenerates to nesting: 'Owner' else to nesting: 'Disabled'230 /// @dev EVM selector for this function is: 0x112d4586,231 /// or in textual repr: setCollectionNesting(bool)232 function setCollectionNesting(bool enable) external;233234 /// Toggle accessibility of collection nesting.235 ///236 /// @param enable If "true" degenerates to nesting: {OwnerRestricted: [1, 2, 3]} else to nesting: 'Disabled'237 /// @param collections Addresses of collections that will be available for nesting.238 /// @dev EVM selector for this function is: 0x112d4586,239 /// or in textual repr: setCollectionNesting(bool,address[])240 function setCollectionNesting(bool enable, address[] memory collections) external;241242 /// Set the collection access method.243 /// @param mode Access mode244 /// 0 for Normal245 /// 1 for AllowList246 /// @dev EVM selector for this function is: 0x41835d4c,247 /// or in textual repr: setCollectionAccess(uint8)248 function setCollectionAccess(uint8 mode) external;249250 /// Checks that user allowed to operate with collection.251 ///252 /// @param user User address to check.253 /// @dev EVM selector for this function is: 0xd63a8e11,254 /// or in textual repr: allowed(address)255 function allowed(address user) external view returns (bool);256257 /// Add the user to the allowed list.258 ///259 /// @param user Address of a trusted user.260 /// @dev EVM selector for this function is: 0x67844fe6,261 /// or in textual repr: addToCollectionAllowList(address)262 function addToCollectionAllowList(address user) external;263264 /// Add user to allowed list.265 ///266 /// @param user User cross account address.267 /// @dev EVM selector for this function is: 0xf074da88,268 /// or in textual repr: addToCollectionAllowListCross((address,uint256))269 function addToCollectionAllowListCross(Tuple6 memory user) external;270271 /// Remove the user from the allowed list.272 ///273 /// @param user Address of a removed user.274 /// @dev EVM selector for this function is: 0x85c51acb,275 /// or in textual repr: removeFromCollectionAllowList(address)276 function removeFromCollectionAllowList(address user) external;277278 /// Remove user from allowed list.279 ///280 /// @param user User cross account address.281 /// @dev EVM selector for this function is: 0xc00df45c,282 /// or in textual repr: removeFromCollectionAllowListCross((address,uint256))283 function removeFromCollectionAllowListCross(Tuple6 memory user) external;284285 /// Switch permission for minting.286 ///287 /// @param mode Enable if "true".288 /// @dev EVM selector for this function is: 0x00018e84,289 /// or in textual repr: setCollectionMintMode(bool)290 function setCollectionMintMode(bool mode) external;291292 /// Check that account is the owner or admin of the collection293 ///294 /// @param user account to verify295 /// @return "true" if account is the owner or admin296 /// @dev EVM selector for this function is: 0x9811b0c7,297 /// or in textual repr: isOwnerOrAdmin(address)298 function isOwnerOrAdmin(address user) external view returns (bool);299300 /// Check that account is the owner or admin of the collection301 ///302 /// @param user User cross account to verify303 /// @return "true" if account is the owner or admin304 /// @dev EVM selector for this function is: 0x5aba3351,305 /// or in textual repr: isOwnerOrAdminCross((address,uint256))306 function isOwnerOrAdminCross(Tuple6 memory user) external view returns (bool);307308 /// Returns collection type309 ///310 /// @return `Fungible` or `NFT` or `ReFungible`311 /// @dev EVM selector for this function is: 0xd34b55b8,312 /// or in textual repr: uniqueCollectionType()313 function uniqueCollectionType() external view returns (string memory);314315 /// Get collection owner.316 ///317 /// @return Tuple with sponsor address and his substrate mirror.318 /// If address is canonical then substrate mirror is zero and vice versa.319 /// @dev EVM selector for this function is: 0xdf727d3b,320 /// or in textual repr: collectionOwner()321 function collectionOwner() external view returns (Tuple8 memory);322323 /// Changes collection owner to another account324 ///325 /// @dev Owner can be changed only by current owner326 /// @param newOwner new owner account327 /// @dev EVM selector for this function is: 0x4f53e226,328 /// or in textual repr: changeCollectionOwner(address)329 function changeCollectionOwner(address newOwner) external;330331 /// Get collection administrators332 ///333 /// @return Vector of tuples with admins address and his substrate mirror.334 /// If address is canonical then substrate mirror is zero and vice versa.335 /// @dev EVM selector for this function is: 0x5813216b,336 /// or in textual repr: collectionAdmins()337 function collectionAdmins() external view returns (Tuple6[] memory);338339 /// Changes collection owner to another account340 ///341 /// @dev Owner can be changed only by current owner342 /// @param newOwner new owner cross account343 /// @dev EVM selector for this function is: 0xbdff793d,344 /// or in textual repr: setOwnerCross((address,uint256))345 function setOwnerCross(Tuple6 memory newOwner) external;346}347348<<<<<<< HEAD349/// @dev anonymous struct350struct Tuple19 {351 address field_0;352 uint256 field_1;353}354355<<<<<<< HEAD356/// @title ERC-721 Non-Fungible Token Standard, optional metadata extension357/// @dev See https://eips.ethereum.org/EIPS/eip-721358/// @dev the ERC-165 identifier for this interface is 0x5b5e139f359interface ERC721Metadata is Dummy, ERC165 {360 // /// @notice A descriptive name for a collection of NFTs in this contract361 // /// @dev real implementation of this function lies in `ERC721UniqueExtensions`362 // /// @dev EVM selector for this function is: 0x06fdde03,363 // /// or in textual repr: name()364 // function name() external view returns (string memory);365366 // /// @notice An abbreviated name for NFTs in this contract367 // /// @dev real implementation of this function lies in `ERC721UniqueExtensions`368 // /// @dev EVM selector for this function is: 0x95d89b41,369 // /// or in textual repr: symbol()370 // function symbol() external view returns (string memory);371372 /// @notice A distinct Uniform Resource Identifier (URI) for a given asset.373 ///374 /// @dev If the token has a `url` property and it is not empty, it is returned.375 /// Else If the collection does not have a property with key `schemaName` or its value is not equal to `ERC721Metadata`, it return an error `tokenURI not set`.376 /// If the collection property `baseURI` is empty or absent, return "" (empty string)377 /// otherwise, if token property `suffix` present and is non-empty, return concatenation of baseURI and suffix378 /// otherwise, return concatenation of `baseURI` and stringified token id (decimal stringifying, without paddings).379 ///380 /// @return token's const_metadata381 /// @dev EVM selector for this function is: 0xc87b56dd,382 /// or in textual repr: tokenURI(uint256)383 function tokenURI(uint256 tokenId) external view returns (string memory);384}385386=======387>>>>>>> feat: Add custum signature with unlimited nesting.388=======389/// @dev anonymous struct390struct Tuple21 {391 string field_0;392 bytes field_1;393}394395>>>>>>> fix: after rebase396/// @title ERC721 Token that can be irreversibly burned (destroyed).397/// @dev the ERC-165 identifier for this interface is 0x42966c68398interface ERC721Burnable is Dummy, ERC165 {399 /// @notice Burns a specific ERC721 token.400 /// @dev Throws unless `msg.sender` is the current NFT owner, or an authorized401 /// operator of the current owner.402 /// @param tokenId The NFT to approve403 /// @dev EVM selector for this function is: 0x42966c68,404 /// or in textual repr: burn(uint256)405 function burn(uint256 tokenId) external;406}407408/// @dev inlined interface409interface ERC721UniqueMintableEvents {410 event MintingFinished();411}412413/// @title ERC721 minting logic.414/// @dev the ERC-165 identifier for this interface is 0x476ff149415interface ERC721UniqueMintable is Dummy, ERC165, ERC721UniqueMintableEvents {416 /// @dev EVM selector for this function is: 0x05d2035b,417 /// or in textual repr: mintingFinished()418 function mintingFinished() external view returns (bool);419420 /// @notice Function to mint token.421 /// @param to The new owner422 /// @return uint256 The id of the newly minted token423 /// @dev EVM selector for this function is: 0x6a627842,424 /// or in textual repr: mint(address)425 function mint(address to) external returns (uint256);426427 // /// @notice Function to mint token.428 // /// @dev `tokenId` should be obtained with `nextTokenId` method,429 // /// unlike standard, you can't specify it manually430 // /// @param to The new owner431 // /// @param tokenId ID of the minted NFT432 // /// @dev EVM selector for this function is: 0x40c10f19,433 // /// or in textual repr: mint(address,uint256)434 // function mint(address to, uint256 tokenId) external returns (bool);435436 /// @notice Function to mint token with the given tokenUri.437 /// @param to The new owner438 /// @param tokenUri Token URI that would be stored in the NFT properties439 /// @return uint256 The id of the newly minted token440 /// @dev EVM selector for this function is: 0x45c17782,441 /// or in textual repr: mintWithTokenURI(address,string)442 function mintWithTokenURI(address to, string memory tokenUri) external returns (uint256);443444 // /// @notice Function to mint token with the given tokenUri.445 // /// @dev `tokenId` should be obtained with `nextTokenId` method,446 // /// unlike standard, you can't specify it manually447 // /// @param to The new owner448 // /// @param tokenId ID of the minted NFT449 // /// @param tokenUri Token URI that would be stored in the NFT properties450 // /// @dev EVM selector for this function is: 0x50bb4e7f,451 // /// or in textual repr: mintWithTokenURI(address,uint256,string)452 // function mintWithTokenURI(address to, uint256 tokenId, string memory tokenUri) external returns (bool);453454 /// @dev Not implemented455 /// @dev EVM selector for this function is: 0x7d64bcb4,456 /// or in textual repr: finishMinting()457 function finishMinting() external returns (bool);458}459460/// @title Unique extensions for ERC721.461<<<<<<< HEAD462/// @dev the ERC-165 identifier for this interface is 0x244543ee463=======464/// @dev the ERC-165 identifier for this interface is 0xcc97cb35465>>>>>>> feat: Add custum signature with unlimited nesting.466interface ERC721UniqueExtensions is Dummy, ERC165 {467 /// @notice A descriptive name for a collection of NFTs in this contract468 /// @dev EVM selector for this function is: 0x06fdde03,469 /// or in textual repr: name()470 function name() external view returns (string memory);471472 /// @notice An abbreviated name for NFTs in this contract473 /// @dev EVM selector for this function is: 0x95d89b41,474 /// or in textual repr: symbol()475 function symbol() external view returns (string memory);476477 /// @notice Set or reaffirm the approved address for an NFT478 /// @dev The zero address indicates there is no approved address.479 /// @dev Throws unless `msg.sender` is the current NFT owner, or an authorized480 /// operator of the current owner.481 /// @param approved The new substrate address approved NFT controller482 /// @param tokenId The NFT to approve483 /// @dev EVM selector for this function is: 0x106fdb59,484 /// or in textual repr: approveCross((address,uint256),uint256)485 function approveCross(Tuple6 memory approved, uint256 tokenId) external;486487 /// @notice Transfer ownership of an NFT488 /// @dev Throws unless `msg.sender` is the current owner. Throws if `to`489 /// is the zero address. Throws if `tokenId` is not a valid NFT.490 /// @param to The new owner491 /// @param tokenId The NFT to transfer492 /// @dev EVM selector for this function is: 0xa9059cbb,493 /// or in textual repr: transfer(address,uint256)494 function transfer(address to, uint256 tokenId) external;495496 /// @notice Transfer ownership of an NFT from cross account address to cross account address497 /// @dev Throws unless `msg.sender` is the current owner. Throws if `to`498 /// is the zero address. Throws if `tokenId` is not a valid NFT.499 /// @param from Cross acccount address of current owner500 /// @param to Cross acccount address of new owner501 /// @param tokenId The NFT to transfer502 /// @dev EVM selector for this function is: 0xd5cf430b,503 /// or in textual repr: transferFromCross(EthCrossAccount,EthCrossAccount,uint256)504 function transferFromCross(505<<<<<<< HEAD506 Tuple6 memory from,507 Tuple6 memory to,508=======509 EthCrossAccount memory from,510 EthCrossAccount memory to,511>>>>>>> feat: Add custum signature with unlimited nesting.512 uint256 tokenId513 ) external;514515 /// @notice Burns a specific ERC721 token.516 /// @dev Throws unless `msg.sender` is the current owner or an authorized517 /// operator for this NFT. Throws if `from` is not the current owner. Throws518 /// if `to` is the zero address. Throws if `tokenId` is not a valid NFT.519 /// @param from The current owner of the NFT520 /// @param tokenId The NFT to transfer521 /// @dev EVM selector for this function is: 0x79cc6790,522 /// or in textual repr: burnFrom(address,uint256)523 function burnFrom(address from, uint256 tokenId) external;524525 /// @notice Burns a specific ERC721 token.526 /// @dev Throws unless `msg.sender` is the current owner or an authorized527 /// operator for this NFT. Throws if `from` is not the current owner. Throws528 /// if `to` is the zero address. Throws if `tokenId` is not a valid NFT.529 /// @param from The current owner of the NFT530 /// @param tokenId The NFT to transfer531 /// @dev EVM selector for this function is: 0xa8106d4a,532 /// or in textual repr: burnFromCross((address,uint256),uint256)533 function burnFromCross(Tuple6 memory from, uint256 tokenId) external;534535 /// @notice Returns next free NFT ID.536 /// @dev EVM selector for this function is: 0x75794a3c,537 /// or in textual repr: nextTokenId()538 function nextTokenId() external view returns (uint256);539<<<<<<< HEAD540 // /// @notice Function to mint multiple tokens.541 // /// @dev `tokenIds` should be an array of consecutive numbers and first number542 // /// should be obtained with `nextTokenId` method543 // /// @param to The new owner544 // /// @param tokenIds IDs of the minted NFTs545 // /// @dev EVM selector for this function is: 0x44a9945e,546 // /// or in textual repr: mintBulk(address,uint256[])547 // function mintBulk(address to, uint256[] memory tokenIds) external returns (bool);548549 // /// @notice Function to mint multiple tokens with the given tokenUris.550 // /// @dev `tokenIds` is array of pairs of token ID and token URI. Token IDs should be consecutive551 // /// numbers and first number should be obtained with `nextTokenId` method552 // /// @param to The new owner553 // /// @param tokens array of pairs of token ID and token URI for minted tokens554 // /// @dev EVM selector for this function is: 0x36543006,555 // /// or in textual repr: mintBulkWithTokenURI(address,(uint256,string)[])556 // function mintBulkWithTokenURI(address to, Tuple8[] memory tokens) external returns (bool);557}558559/// @dev anonymous struct560struct Tuple8 {561=======562563 /// @notice Function to mint multiple tokens.564 /// @dev `tokenIds` should be an array of consecutive numbers and first number565 /// should be obtained with `nextTokenId` method566 /// @param to The new owner567 /// @param tokenIds IDs of the minted NFTs568 /// @dev EVM selector for this function is: 0xf9d9a5a3,569 /// or in textual repr: mintBulk(address,uint256[])570 function mintBulk(address to, uint256[] memory tokenIds) external returns (bool);571572 /// @notice Function to mint multiple tokens with the given tokenUris.573 /// @dev `tokenIds` is array of pairs of token ID and token URI. Token IDs should be consecutive574 /// numbers and first number should be obtained with `nextTokenId` method575 /// @param to The new owner576 /// @param tokens array of pairs of token ID and token URI for minted tokens577 /// @dev EVM selector for this function is: 0xfd4e2a99,578 /// or in textual repr: mintBulkWithTokenURI(address,(uint256,string)[])579 function mintBulkWithTokenURI(address to, Tuple12[] memory tokens) external returns (bool);580}581582/// @dev anonymous struct583struct Tuple12 {584>>>>>>> feat: Add custum signature with unlimited nesting.585 uint256 field_0;586 string field_1;587}588589/// @dev anonymous struct590struct Tuple8 {591 address field_0;592 uint256 field_1;593}594595/// @dev anonymous struct596struct Tuple8 {597 address field_0;598 uint256 field_1;599}600601/// @title ERC-721 Non-Fungible Token Standard, optional enumeration extension602/// @dev See https://eips.ethereum.org/EIPS/eip-721603/// @dev the ERC-165 identifier for this interface is 0x780e9d63604interface ERC721Enumerable is Dummy, ERC165 {605 /// @notice Enumerate valid NFTs606 /// @param index A counter less than `totalSupply()`607 /// @return The token identifier for the `index`th NFT,608 /// (sort order not specified)609 /// @dev EVM selector for this function is: 0x4f6ccce7,610 /// or in textual repr: tokenByIndex(uint256)611 function tokenByIndex(uint256 index) external view returns (uint256);612613 /// @dev Not implemented614 /// @dev EVM selector for this function is: 0x2f745c59,615 /// or in textual repr: tokenOfOwnerByIndex(address,uint256)616 function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256);617618 /// @notice Count NFTs tracked by this contract619 /// @return A count of valid NFTs tracked by this contract, where each one of620 /// them has an assigned and queryable owner not equal to the zero address621 /// @dev EVM selector for this function is: 0x18160ddd,622 /// or in textual repr: totalSupply()623 function totalSupply() external view returns (uint256);624}625626/// @dev inlined interface627interface ERC721Events {628 event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);629 event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);630 event ApprovalForAll(address indexed owner, address indexed operator, bool approved);631}632633/// @title ERC-721 Non-Fungible Token Standard634/// @dev See https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md635/// @dev the ERC-165 identifier for this interface is 0x80ac58cd636interface ERC721 is Dummy, ERC165, ERC721Events {637 /// @notice Count all NFTs assigned to an owner638 /// @dev NFTs assigned to the zero address are considered invalid, and this639 /// function throws for queries about the zero address.640 /// @param owner An address for whom to query the balance641 /// @return The number of NFTs owned by `owner`, possibly zero642 /// @dev EVM selector for this function is: 0x70a08231,643 /// or in textual repr: balanceOf(address)644 function balanceOf(address owner) external view returns (uint256);645646 /// @notice Find the owner of an NFT647 /// @dev NFTs assigned to zero address are considered invalid, and queries648 /// about them do throw.649 /// @param tokenId The identifier for an NFT650 /// @return The address of the owner of the NFT651 /// @dev EVM selector for this function is: 0x6352211e,652 /// or in textual repr: ownerOf(uint256)653 function ownerOf(uint256 tokenId) external view returns (address);654655 /// @dev Not implemented656 /// @dev EVM selector for this function is: 0xb88d4fde,657 /// or in textual repr: safeTransferFrom(address,address,uint256,bytes)658 function safeTransferFrom(659 address from,660 address to,661 uint256 tokenId,662 bytes memory data663 ) external;664665 /// @dev Not implemented666 /// @dev EVM selector for this function is: 0x42842e0e,667 /// or in textual repr: safeTransferFrom(address,address,uint256)668 function safeTransferFrom(669 address from,670 address to,671 uint256 tokenId672 ) external;673674 /// @notice Transfer ownership of an NFT -- THE CALLER IS RESPONSIBLE675 /// TO CONFIRM THAT `to` IS CAPABLE OF RECEIVING NFTS OR ELSE676 /// THEY MAY BE PERMANENTLY LOST677 /// @dev Throws unless `msg.sender` is the current owner or an authorized678 /// operator for this NFT. Throws if `from` is not the current owner. Throws679 /// if `to` is the zero address. Throws if `tokenId` is not a valid NFT.680 /// @param from The current owner of the NFT681 /// @param to The new owner682 /// @param tokenId The NFT to transfer683 /// @dev EVM selector for this function is: 0x23b872dd,684 /// or in textual repr: transferFrom(address,address,uint256)685 function transferFrom(686 address from,687 address to,688 uint256 tokenId689 ) external;690691 /// @notice Set or reaffirm the approved address for an NFT692 /// @dev The zero address indicates there is no approved address.693 /// @dev Throws unless `msg.sender` is the current NFT owner, or an authorized694 /// operator of the current owner.695 /// @param approved The new approved NFT controller696 /// @param tokenId The NFT to approve697 /// @dev EVM selector for this function is: 0x095ea7b3,698 /// or in textual repr: approve(address,uint256)699 function approve(address approved, uint256 tokenId) external;700701 /// @dev Not implemented702 /// @dev EVM selector for this function is: 0xa22cb465,703 /// or in textual repr: setApprovalForAll(address,bool)704 function setApprovalForAll(address operator, bool approved) external;705706 /// @dev Not implemented707 /// @dev EVM selector for this function is: 0x081812fc,708 /// or in textual repr: getApproved(uint256)709 function getApproved(uint256 tokenId) external view returns (address);710711 /// @dev Not implemented712 /// @dev EVM selector for this function is: 0xe985e9c5,713 /// or in textual repr: isApprovedForAll(address,address)714 function isApprovedForAll(address owner, address operator) external view returns (address);715}716717interface UniqueNFT is718 Dummy,719 ERC165,720 ERC721,721 ERC721Enumerable,722 ERC721UniqueExtensions,723 ERC721UniqueMintable,724 ERC721Burnable,725 ERC721Metadata,726 Collection,727 TokenProperties728{}1// SPDX-License-Identifier: OTHER2// This code is automatically generated34pragma solidity >=0.8.0 <0.9.0;56/// @dev common stubs holder7interface Dummy {89}1011interface ERC165 is Dummy {12 function supportsInterface(bytes4 interfaceID) external view returns (bool);13}1415/// @title A contract that allows to set and delete token properties and change token property permissions.16/// @dev the ERC-165 identifier for this interface is 0x55dba91917interface TokenProperties is Dummy, ERC165 {18 /// @notice Set permissions for token property.19 /// @dev Throws error if `msg.sender` is not admin or owner of the collection.20 /// @param key Property key.21 /// @param isMutable Permission to mutate property.22 /// @param collectionAdmin Permission to mutate property by collection admin if property is mutable.23 /// @param tokenOwner Permission to mutate property by token owner if property is mutable.24 /// @dev EVM selector for this function is: 0x222d97fa,25 /// or in textual repr: setTokenPropertyPermission(string,bool,bool,bool)26 function setTokenPropertyPermission(27 string memory key,28 bool isMutable,29 bool collectionAdmin,30 bool tokenOwner31 ) external;3233 /// @notice Set token property value.34 /// @dev Throws error if `msg.sender` has no permission to edit the property.35 /// @param tokenId ID of the token.36 /// @param key Property key.37 /// @param value Property value.38 /// @dev EVM selector for this function is: 0x1752d67b,39 /// or in textual repr: setProperty(uint256,string,bytes)40 function setProperty(41 uint256 tokenId,42 string memory key,43 bytes memory value44 ) external;4546 /// @notice Set token properties value.47 /// @dev Throws error if `msg.sender` has no permission to edit the property.48 /// @param tokenId ID of the token.49 /// @param properties settable properties50 /// @dev EVM selector for this function is: 0x14ed3a6e,51 /// or in textual repr: setProperties(uint256,(string,bytes)[])52 function setProperties(uint256 tokenId, Tuple19[] memory properties) external;5354 /// @notice Delete token property value.55 /// @dev Throws error if `msg.sender` has no permission to edit the property.56 /// @param tokenId ID of the token.57 /// @param key Property key.58 /// @dev EVM selector for this function is: 0x066111d1,59 /// or in textual repr: deleteProperty(uint256,string)60 function deleteProperty(uint256 tokenId, string memory key) external;6162 /// @notice Get token property value.63 /// @dev Throws error if key not found64 /// @param tokenId ID of the token.65 /// @param key Property key.66 /// @return Property value bytes67 /// @dev EVM selector for this function is: 0x7228c327,68 /// or in textual repr: property(uint256,string)69 function property(uint256 tokenId, string memory key) external view returns (bytes memory);70}7172/// @title A contract that allows you to work with collections.73<<<<<<< HEAD74<<<<<<< HEAD75<<<<<<< HEAD76/// @dev the ERC-165 identifier for this interface is 0xb3152af377=======78/// @dev the ERC-165 identifier for this interface is 0x674be72679>>>>>>> feat: Add custum signature with unlimited nesting.80=======81/// @dev the ERC-165 identifier for this interface is 0x943ee09482>>>>>>> fix: after rebase83=======84/// @dev the ERC-165 identifier for this interface is 0xefe988e085>>>>>>> misk: update stubs86interface Collection is Dummy, ERC165 {87 /// Set collection property.88 ///89 /// @param key Property key.90 /// @param value Propery value.91 /// @dev EVM selector for this function is: 0x2f073f66,92 /// or in textual repr: setCollectionProperty(string,bytes)93 function setCollectionProperty(string memory key, bytes memory value) external;9495 /// Set collection properties.96 ///97 /// @param properties Vector of properties key/value pair.98 /// @dev EVM selector for this function is: 0x50b26b2a,99 /// or in textual repr: setCollectionProperties((string,bytes)[])100 function setCollectionProperties(Tuple21[] memory properties) external;101102 /// Delete collection property.103 ///104 /// @param key Property key.105 /// @dev EVM selector for this function is: 0x7b7debce,106 /// or in textual repr: deleteCollectionProperty(string)107 function deleteCollectionProperty(string memory key) external;108109 /// Delete collection properties.110 ///111 /// @param keys Properties keys.112 /// @dev EVM selector for this function is: 0xee206ee3,113 /// or in textual repr: deleteCollectionProperties(string[])114 function deleteCollectionProperties(string[] memory keys) external;115116 /// Get collection property.117 ///118 /// @dev Throws error if key not found.119 ///120 /// @param key Property key.121 /// @return bytes The property corresponding to the key.122 /// @dev EVM selector for this function is: 0xcf24fd6d,123 /// or in textual repr: collectionProperty(string)124 function collectionProperty(string memory key) external view returns (bytes memory);125126 /// Get collection properties.127 ///128 /// @param keys Properties keys. Empty keys for all propertyes.129 /// @return Vector of properties key/value pairs.130 /// @dev EVM selector for this function is: 0x285fb8e6,131 /// or in textual repr: collectionProperties(string[])132 function collectionProperties(string[] memory keys) external view returns (Tuple21[] memory);133134 /// Set the sponsor of the collection.135 ///136 /// @dev In order for sponsorship to work, it must be confirmed on behalf of the sponsor.137 ///138 /// @param sponsor Address of the sponsor from whose account funds will be debited for operations with the contract.139 /// @dev EVM selector for this function is: 0x7623402e,140 /// or in textual repr: setCollectionSponsor(address)141 function setCollectionSponsor(address sponsor) external;142143 /// Set the sponsor of the collection.144 ///145 /// @dev In order for sponsorship to work, it must be confirmed on behalf of the sponsor.146 ///147 /// @param sponsor Cross account address of the sponsor from whose account funds will be debited for operations with the contract.148<<<<<<< HEAD149 /// @dev EVM selector for this function is: 0x403e96a7,150 /// or in textual repr: setCollectionSponsorCross((address,uint256))151 function setCollectionSponsorCross(Tuple6 memory sponsor) external;152=======153 /// @dev EVM selector for this function is: 0x84a1d5a8,154 /// or in textual repr: setCollectionSponsorCross(EthCrossAccount)155 /// or in the expanded repr: setCollectionSponsorCross((address,uint256))156 function setCollectionSponsorCross(EthCrossAccount memory sponsor) external;157>>>>>>> misk: update stubs158159 /// Whether there is a pending sponsor.160 /// @dev EVM selector for this function is: 0x058ac185,161 /// or in textual repr: hasCollectionPendingSponsor()162 function hasCollectionPendingSponsor() external view returns (bool);163164 /// Collection sponsorship confirmation.165 ///166 /// @dev After setting the sponsor for the collection, it must be confirmed with this function.167 /// @dev EVM selector for this function is: 0x3c50e97a,168 /// or in textual repr: confirmCollectionSponsorship()169 function confirmCollectionSponsorship() external;170171 /// Remove collection sponsor.172 /// @dev EVM selector for this function is: 0x6e0326a3,173 /// or in textual repr: removeCollectionSponsor()174 function removeCollectionSponsor() external;175176 /// Get current sponsor.177 ///178 /// @return Tuble with sponsor address and his substrate mirror. If there is no confirmed sponsor error "Contract has no sponsor" throw.179 /// @dev EVM selector for this function is: 0x6ec0a9f1,180 /// or in textual repr: collectionSponsor()181 function collectionSponsor() external view returns (Tuple24 memory);182183 /// Set limits for the collection.184 /// @dev Throws error if limit not found.185 /// @param limit Name of the limit. Valid names:186 /// "accountTokenOwnershipLimit",187 /// "sponsoredDataSize",188 /// "sponsoredDataRateLimit",189 /// "tokenLimit",190 /// "sponsorTransferTimeout",191 /// "sponsorApproveTimeout"192 /// @param value Value of the limit.193 /// @dev EVM selector for this function is: 0x6a3841db,194 /// or in textual repr: setCollectionLimit(string,uint32)195 function setCollectionLimit(string memory limit, uint32 value) external;196197 /// Set limits for the collection.198 /// @dev Throws error if limit not found.199 /// @param limit Name of the limit. Valid names:200 /// "ownerCanTransfer",201 /// "ownerCanDestroy",202 /// "transfersEnabled"203 /// @param value Value of the limit.204 /// @dev EVM selector for this function is: 0x993b7fba,205 /// or in textual repr: setCollectionLimit(string,bool)206 function setCollectionLimit(string memory limit, bool value) external;207208 /// Get contract address.209 /// @dev EVM selector for this function is: 0xf6b4dfb4,210 /// or in textual repr: contractAddress()211 function contractAddress() external view returns (address);212213 /// Add collection admin.214 /// @param newAdmin Cross account administrator address.215<<<<<<< HEAD216 /// @dev EVM selector for this function is: 0x62e3c7c2,217 /// or in textual repr: addCollectionAdminCross((address,uint256))218 function addCollectionAdminCross(Tuple6 memory newAdmin) external;219220 /// Remove collection admin.221 /// @param admin Cross account administrator address.222 /// @dev EVM selector for this function is: 0x810d1503,223 /// or in textual repr: removeCollectionAdminCross((address,uint256))224 function removeCollectionAdminCross(Tuple6 memory admin) external;225=======226 /// @dev EVM selector for this function is: 0x859aa7d6,227 /// or in textual repr: addCollectionAdminCross(EthCrossAccount)228 /// or in the expanded repr: addCollectionAdminCross((address,uint256))229 function addCollectionAdminCross(EthCrossAccount memory newAdmin) external;230231 /// Remove collection admin.232 /// @param admin Cross account administrator address.233 /// @dev EVM selector for this function is: 0x6c0cd173,234 /// or in textual repr: removeCollectionAdminCross(EthCrossAccount)235 /// or in the expanded repr: removeCollectionAdminCross((address,uint256))236 function removeCollectionAdminCross(EthCrossAccount memory admin) external;237>>>>>>> misk: update stubs238239 /// Add collection admin.240 /// @param newAdmin Address of the added administrator.241 /// @dev EVM selector for this function is: 0x92e462c7,242 /// or in textual repr: addCollectionAdmin(address)243 function addCollectionAdmin(address newAdmin) external;244245 /// Remove collection admin.246 ///247 /// @param admin Address of the removed administrator.248 /// @dev EVM selector for this function is: 0xfafd7b42,249 /// or in textual repr: removeCollectionAdmin(address)250 function removeCollectionAdmin(address admin) external;251252 /// Toggle accessibility of collection nesting.253 ///254 /// @param enable If "true" degenerates to nesting: 'Owner' else to nesting: 'Disabled'255 /// @dev EVM selector for this function is: 0x112d4586,256 /// or in textual repr: setCollectionNesting(bool)257 function setCollectionNesting(bool enable) external;258259 /// Toggle accessibility of collection nesting.260 ///261 /// @param enable If "true" degenerates to nesting: {OwnerRestricted: [1, 2, 3]} else to nesting: 'Disabled'262 /// @param collections Addresses of collections that will be available for nesting.263 /// @dev EVM selector for this function is: 0x64872396,264 /// or in textual repr: setCollectionNesting(bool,address[])265 function setCollectionNesting(bool enable, address[] memory collections) external;266267 /// Set the collection access method.268 /// @param mode Access mode269 /// 0 for Normal270 /// 1 for AllowList271 /// @dev EVM selector for this function is: 0x41835d4c,272 /// or in textual repr: setCollectionAccess(uint8)273 function setCollectionAccess(uint8 mode) external;274275 /// Checks that user allowed to operate with collection.276 ///277 /// @param user User address to check.278 /// @dev EVM selector for this function is: 0xd63a8e11,279 /// or in textual repr: allowed(address)280 function allowed(address user) external view returns (bool);281282 /// Add the user to the allowed list.283 ///284 /// @param user Address of a trusted user.285 /// @dev EVM selector for this function is: 0x67844fe6,286 /// or in textual repr: addToCollectionAllowList(address)287 function addToCollectionAllowList(address user) external;288289 /// Add user to allowed list.290 ///291 /// @param user User cross account address.292<<<<<<< HEAD293 /// @dev EVM selector for this function is: 0xf074da88,294 /// or in textual repr: addToCollectionAllowListCross((address,uint256))295 function addToCollectionAllowListCross(Tuple6 memory user) external;296=======297 /// @dev EVM selector for this function is: 0xa0184a3a,298 /// or in textual repr: addToCollectionAllowListCross(EthCrossAccount)299 /// or in the expanded repr: addToCollectionAllowListCross((address,uint256))300 function addToCollectionAllowListCross(EthCrossAccount memory user) external;301>>>>>>> misk: update stubs302303 /// Remove the user from the allowed list.304 ///305 /// @param user Address of a removed user.306 /// @dev EVM selector for this function is: 0x85c51acb,307 /// or in textual repr: removeFromCollectionAllowList(address)308 function removeFromCollectionAllowList(address user) external;309310 /// Remove user from allowed list.311 ///312 /// @param user User cross account address.313<<<<<<< HEAD314 /// @dev EVM selector for this function is: 0xc00df45c,315 /// or in textual repr: removeFromCollectionAllowListCross((address,uint256))316 function removeFromCollectionAllowListCross(Tuple6 memory user) external;317=======318 /// @dev EVM selector for this function is: 0x09ba452a,319 /// or in textual repr: removeFromCollectionAllowListCross(EthCrossAccount)320 /// or in the expanded repr: removeFromCollectionAllowListCross((address,uint256))321 function removeFromCollectionAllowListCross(EthCrossAccount memory user) external;322>>>>>>> misk: update stubs323324 /// Switch permission for minting.325 ///326 /// @param mode Enable if "true".327 /// @dev EVM selector for this function is: 0x00018e84,328 /// or in textual repr: setCollectionMintMode(bool)329 function setCollectionMintMode(bool mode) external;330331 /// Check that account is the owner or admin of the collection332 ///333 /// @param user account to verify334 /// @return "true" if account is the owner or admin335 /// @dev EVM selector for this function is: 0x9811b0c7,336 /// or in textual repr: isOwnerOrAdmin(address)337 function isOwnerOrAdmin(address user) external view returns (bool);338339 /// Check that account is the owner or admin of the collection340 ///341 /// @param user User cross account to verify342 /// @return "true" if account is the owner or admin343<<<<<<< HEAD344 /// @dev EVM selector for this function is: 0x5aba3351,345 /// or in textual repr: isOwnerOrAdminCross((address,uint256))346 function isOwnerOrAdminCross(Tuple6 memory user) external view returns (bool);347=======348 /// @dev EVM selector for this function is: 0x3e75a905,349 /// or in textual repr: isOwnerOrAdminCross(EthCrossAccount)350 /// or in the expanded repr: isOwnerOrAdminCross((address,uint256))351 function isOwnerOrAdminCross(EthCrossAccount memory user) external view returns (bool);352>>>>>>> misk: update stubs353354 /// Returns collection type355 ///356 /// @return `Fungible` or `NFT` or `ReFungible`357 /// @dev EVM selector for this function is: 0xd34b55b8,358 /// or in textual repr: uniqueCollectionType()359 function uniqueCollectionType() external view returns (string memory);360361 /// Get collection owner.362 ///363 /// @return Tuple with sponsor address and his substrate mirror.364 /// If address is canonical then substrate mirror is zero and vice versa.365 /// @dev EVM selector for this function is: 0xdf727d3b,366 /// or in textual repr: collectionOwner()367 function collectionOwner() external view returns (EthCrossAccount memory);368369 /// Changes collection owner to another account370 ///371 /// @dev Owner can be changed only by current owner372 /// @param newOwner new owner account373 /// @dev EVM selector for this function is: 0x4f53e226,374 /// or in textual repr: changeCollectionOwner(address)375 function changeCollectionOwner(address newOwner) external;376377 /// Get collection administrators378 ///379 /// @return Vector of tuples with admins address and his substrate mirror.380 /// If address is canonical then substrate mirror is zero and vice versa.381 /// @dev EVM selector for this function is: 0x5813216b,382 /// or in textual repr: collectionAdmins()383<<<<<<< HEAD384 function collectionAdmins() external view returns (Tuple6[] memory);385=======386 function collectionAdmins() external view returns (EthCrossAccount[] memory);387>>>>>>> misk: update stubs388389 /// Changes collection owner to another account390 ///391 /// @dev Owner can be changed only by current owner392 /// @param newOwner new owner cross account393<<<<<<< HEAD394 /// @dev EVM selector for this function is: 0xbdff793d,395 /// or in textual repr: setOwnerCross((address,uint256))396 function setOwnerCross(Tuple6 memory newOwner) external;397=======398 /// @dev EVM selector for this function is: 0xe5c9913f,399 /// or in textual repr: setOwnerCross(EthCrossAccount)400 /// or in the expanded repr: setOwnerCross((address,uint256))401 function setOwnerCross(EthCrossAccount memory newOwner) external;402}403404/// @dev Cross account struct405struct EthCrossAccount {406 address eth;407 uint256 sub;408}409410/// @dev anonymous struct411struct Tuple24 {412 address field_0;413 uint256 field_1;414>>>>>>> misk: update stubs415}416417<<<<<<< HEAD418/// @dev anonymous struct419struct Tuple19 {420 address field_0;421 uint256 field_1;422}423424<<<<<<< HEAD425/// @title ERC-721 Non-Fungible Token Standard, optional metadata extension426/// @dev See https://eips.ethereum.org/EIPS/eip-721427/// @dev the ERC-165 identifier for this interface is 0x5b5e139f428interface ERC721Metadata is Dummy, ERC165 {429 // /// @notice A descriptive name for a collection of NFTs in this contract430 // /// @dev real implementation of this function lies in `ERC721UniqueExtensions`431 // /// @dev EVM selector for this function is: 0x06fdde03,432 // /// or in textual repr: name()433 // function name() external view returns (string memory);434435 // /// @notice An abbreviated name for NFTs in this contract436 // /// @dev real implementation of this function lies in `ERC721UniqueExtensions`437 // /// @dev EVM selector for this function is: 0x95d89b41,438 // /// or in textual repr: symbol()439 // function symbol() external view returns (string memory);440441 /// @notice A distinct Uniform Resource Identifier (URI) for a given asset.442 ///443 /// @dev If the token has a `url` property and it is not empty, it is returned.444 /// Else If the collection does not have a property with key `schemaName` or its value is not equal to `ERC721Metadata`, it return an error `tokenURI not set`.445 /// If the collection property `baseURI` is empty or absent, return "" (empty string)446 /// otherwise, if token property `suffix` present and is non-empty, return concatenation of baseURI and suffix447 /// otherwise, return concatenation of `baseURI` and stringified token id (decimal stringifying, without paddings).448 ///449 /// @return token's const_metadata450 /// @dev EVM selector for this function is: 0xc87b56dd,451 /// or in textual repr: tokenURI(uint256)452 function tokenURI(uint256 tokenId) external view returns (string memory);453}454455=======456>>>>>>> feat: Add custum signature with unlimited nesting.457=======458/// @dev anonymous struct459struct Tuple21 {460 string field_0;461 bytes field_1;462}463464>>>>>>> fix: after rebase465/// @title ERC721 Token that can be irreversibly burned (destroyed).466/// @dev the ERC-165 identifier for this interface is 0x42966c68467interface ERC721Burnable is Dummy, ERC165 {468 /// @notice Burns a specific ERC721 token.469 /// @dev Throws unless `msg.sender` is the current NFT owner, or an authorized470 /// operator of the current owner.471 /// @param tokenId The NFT to approve472 /// @dev EVM selector for this function is: 0x42966c68,473 /// or in textual repr: burn(uint256)474 function burn(uint256 tokenId) external;475}476477/// @dev inlined interface478interface ERC721UniqueMintableEvents {479 event MintingFinished();480}481482/// @title ERC721 minting logic.483/// @dev the ERC-165 identifier for this interface is 0x476ff149484interface ERC721UniqueMintable is Dummy, ERC165, ERC721UniqueMintableEvents {485 /// @dev EVM selector for this function is: 0x05d2035b,486 /// or in textual repr: mintingFinished()487 function mintingFinished() external view returns (bool);488489 /// @notice Function to mint token.490 /// @param to The new owner491 /// @return uint256 The id of the newly minted token492 /// @dev EVM selector for this function is: 0x6a627842,493 /// or in textual repr: mint(address)494 function mint(address to) external returns (uint256);495496 // /// @notice Function to mint token.497 // /// @dev `tokenId` should be obtained with `nextTokenId` method,498 // /// unlike standard, you can't specify it manually499 // /// @param to The new owner500 // /// @param tokenId ID of the minted NFT501 // /// @dev EVM selector for this function is: 0x40c10f19,502 // /// or in textual repr: mint(address,uint256)503 // function mint(address to, uint256 tokenId) external returns (bool);504505 /// @notice Function to mint token with the given tokenUri.506 /// @param to The new owner507 /// @param tokenUri Token URI that would be stored in the NFT properties508 /// @return uint256 The id of the newly minted token509 /// @dev EVM selector for this function is: 0x45c17782,510 /// or in textual repr: mintWithTokenURI(address,string)511 function mintWithTokenURI(address to, string memory tokenUri) external returns (uint256);512513 // /// @notice Function to mint token with the given tokenUri.514 // /// @dev `tokenId` should be obtained with `nextTokenId` method,515 // /// unlike standard, you can't specify it manually516 // /// @param to The new owner517 // /// @param tokenId ID of the minted NFT518 // /// @param tokenUri Token URI that would be stored in the NFT properties519 // /// @dev EVM selector for this function is: 0x50bb4e7f,520 // /// or in textual repr: mintWithTokenURI(address,uint256,string)521 // function mintWithTokenURI(address to, uint256 tokenId, string memory tokenUri) external returns (bool);522523 /// @dev Not implemented524 /// @dev EVM selector for this function is: 0x7d64bcb4,525 /// or in textual repr: finishMinting()526 function finishMinting() external returns (bool);527}528529/// @title Unique extensions for ERC721.530<<<<<<< HEAD531<<<<<<< HEAD532/// @dev the ERC-165 identifier for this interface is 0x244543ee533=======534/// @dev the ERC-165 identifier for this interface is 0xcc97cb35535>>>>>>> feat: Add custum signature with unlimited nesting.536=======537/// @dev the ERC-165 identifier for this interface is 0xb76006ac538>>>>>>> misk: update stubs539interface ERC721UniqueExtensions is Dummy, ERC165 {540 /// @notice A descriptive name for a collection of NFTs in this contract541 /// @dev EVM selector for this function is: 0x06fdde03,542 /// or in textual repr: name()543 function name() external view returns (string memory);544545 /// @notice An abbreviated name for NFTs in this contract546 /// @dev EVM selector for this function is: 0x95d89b41,547 /// or in textual repr: symbol()548 function symbol() external view returns (string memory);549550 /// @notice Set or reaffirm the approved address for an NFT551 /// @dev The zero address indicates there is no approved address.552 /// @dev Throws unless `msg.sender` is the current NFT owner, or an authorized553 /// operator of the current owner.554 /// @param approved The new substrate address approved NFT controller555 /// @param tokenId The NFT to approve556<<<<<<< HEAD557 /// @dev EVM selector for this function is: 0x106fdb59,558 /// or in textual repr: approveCross((address,uint256),uint256)559 function approveCross(Tuple6 memory approved, uint256 tokenId) external;560=======561 /// @dev EVM selector for this function is: 0x0ecd0ab0,562 /// or in textual repr: approveCross(EthCrossAccount,uint256)563 /// or in the expanded repr: approveCross((address,uint256),uint256)564 function approveCross(EthCrossAccount memory approved, uint256 tokenId) external;565>>>>>>> misk: update stubs566567 /// @notice Transfer ownership of an NFT568 /// @dev Throws unless `msg.sender` is the current owner. Throws if `to`569 /// is the zero address. Throws if `tokenId` is not a valid NFT.570 /// @param to The new owner571 /// @param tokenId The NFT to transfer572 /// @dev EVM selector for this function is: 0xa9059cbb,573 /// or in textual repr: transfer(address,uint256)574 function transfer(address to, uint256 tokenId) external;575576 /// @notice Transfer ownership of an NFT from cross account address to cross account address577 /// @dev Throws unless `msg.sender` is the current owner. Throws if `to`578 /// is the zero address. Throws if `tokenId` is not a valid NFT.579 /// @param from Cross acccount address of current owner580 /// @param to Cross acccount address of new owner581 /// @param tokenId The NFT to transfer582 /// @dev EVM selector for this function is: 0xd5cf430b,583 /// or in textual repr: transferFromCross(EthCrossAccount,EthCrossAccount,uint256)584 /// or in the expanded repr: transferFromCross((address,uint256),(address,uint256),uint256)585 function transferFromCross(586<<<<<<< HEAD587 Tuple6 memory from,588 Tuple6 memory to,589=======590 EthCrossAccount memory from,591 EthCrossAccount memory to,592>>>>>>> feat: Add custum signature with unlimited nesting.593 uint256 tokenId594 ) external;595596 /// @notice Burns a specific ERC721 token.597 /// @dev Throws unless `msg.sender` is the current owner or an authorized598 /// operator for this NFT. Throws if `from` is not the current owner. Throws599 /// if `to` is the zero address. Throws if `tokenId` is not a valid NFT.600 /// @param from The current owner of the NFT601 /// @param tokenId The NFT to transfer602 /// @dev EVM selector for this function is: 0x79cc6790,603 /// or in textual repr: burnFrom(address,uint256)604 function burnFrom(address from, uint256 tokenId) external;605606 /// @notice Burns a specific ERC721 token.607 /// @dev Throws unless `msg.sender` is the current owner or an authorized608 /// operator for this NFT. Throws if `from` is not the current owner. Throws609 /// if `to` is the zero address. Throws if `tokenId` is not a valid NFT.610 /// @param from The current owner of the NFT611 /// @param tokenId The NFT to transfer612<<<<<<< HEAD613 /// @dev EVM selector for this function is: 0xa8106d4a,614 /// or in textual repr: burnFromCross((address,uint256),uint256)615 function burnFromCross(Tuple6 memory from, uint256 tokenId) external;616=======617 /// @dev EVM selector for this function is: 0xbb2f5a58,618 /// or in textual repr: burnFromCross(EthCrossAccount,uint256)619 /// or in the expanded repr: burnFromCross((address,uint256),uint256)620 function burnFromCross(EthCrossAccount memory from, uint256 tokenId) external;621>>>>>>> misk: update stubs622623 /// @notice Returns next free NFT ID.624 /// @dev EVM selector for this function is: 0x75794a3c,625 /// or in textual repr: nextTokenId()626 function nextTokenId() external view returns (uint256);627<<<<<<< HEAD628 // /// @notice Function to mint multiple tokens.629 // /// @dev `tokenIds` should be an array of consecutive numbers and first number630 // /// should be obtained with `nextTokenId` method631 // /// @param to The new owner632 // /// @param tokenIds IDs of the minted NFTs633 // /// @dev EVM selector for this function is: 0x44a9945e,634 // /// or in textual repr: mintBulk(address,uint256[])635 // function mintBulk(address to, uint256[] memory tokenIds) external returns (bool);636637 // /// @notice Function to mint multiple tokens with the given tokenUris.638 // /// @dev `tokenIds` is array of pairs of token ID and token URI. Token IDs should be consecutive639 // /// numbers and first number should be obtained with `nextTokenId` method640 // /// @param to The new owner641 // /// @param tokens array of pairs of token ID and token URI for minted tokens642 // /// @dev EVM selector for this function is: 0x36543006,643 // /// or in textual repr: mintBulkWithTokenURI(address,(uint256,string)[])644 // function mintBulkWithTokenURI(address to, Tuple8[] memory tokens) external returns (bool);645}646647/// @dev anonymous struct648struct Tuple8 {649=======650651 /// @notice Function to mint multiple tokens.652 /// @dev `tokenIds` should be an array of consecutive numbers and first number653 /// should be obtained with `nextTokenId` method654 /// @param to The new owner655 /// @param tokenIds IDs of the minted NFTs656 /// @dev EVM selector for this function is: 0x44a9945e,657 /// or in textual repr: mintBulk(address,uint256[])658 function mintBulk(address to, uint256[] memory tokenIds) external returns (bool);659660 /// @notice Function to mint multiple tokens with the given tokenUris.661 /// @dev `tokenIds` is array of pairs of token ID and token URI. Token IDs should be consecutive662 /// numbers and first number should be obtained with `nextTokenId` method663 /// @param to The new owner664 /// @param tokens array of pairs of token ID and token URI for minted tokens665 /// @dev EVM selector for this function is: 0x36543006,666 /// or in textual repr: mintBulkWithTokenURI(address,(uint256,string)[])667 function mintBulkWithTokenURI(address to, Tuple12[] memory tokens) external returns (bool);668}669670/// @dev anonymous struct671struct Tuple12 {672>>>>>>> feat: Add custum signature with unlimited nesting.673 uint256 field_0;674 string field_1;675}676677<<<<<<< HEAD678/// @dev anonymous struct679struct Tuple8 {680 address field_0;681 uint256 field_1;682}683684/// @dev anonymous struct685struct Tuple8 {686 address field_0;687 uint256 field_1;688}689690=======691>>>>>>> misk: update stubs692/// @title ERC-721 Non-Fungible Token Standard, optional enumeration extension693/// @dev See https://eips.ethereum.org/EIPS/eip-721694/// @dev the ERC-165 identifier for this interface is 0x780e9d63695interface ERC721Enumerable is Dummy, ERC165 {696 /// @notice Enumerate valid NFTs697 /// @param index A counter less than `totalSupply()`698 /// @return The token identifier for the `index`th NFT,699 /// (sort order not specified)700 /// @dev EVM selector for this function is: 0x4f6ccce7,701 /// or in textual repr: tokenByIndex(uint256)702 function tokenByIndex(uint256 index) external view returns (uint256);703704 /// @dev Not implemented705 /// @dev EVM selector for this function is: 0x2f745c59,706 /// or in textual repr: tokenOfOwnerByIndex(address,uint256)707 function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256);708709 /// @notice Count NFTs tracked by this contract710 /// @return A count of valid NFTs tracked by this contract, where each one of711 /// them has an assigned and queryable owner not equal to the zero address712 /// @dev EVM selector for this function is: 0x18160ddd,713 /// or in textual repr: totalSupply()714 function totalSupply() external view returns (uint256);715}716717/// @dev inlined interface718interface ERC721Events {719 event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);720 event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);721 event ApprovalForAll(address indexed owner, address indexed operator, bool approved);722}723724/// @title ERC-721 Non-Fungible Token Standard725/// @dev See https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md726/// @dev the ERC-165 identifier for this interface is 0x80ac58cd727interface ERC721 is Dummy, ERC165, ERC721Events {728 /// @notice Count all NFTs assigned to an owner729 /// @dev NFTs assigned to the zero address are considered invalid, and this730 /// function throws for queries about the zero address.731 /// @param owner An address for whom to query the balance732 /// @return The number of NFTs owned by `owner`, possibly zero733 /// @dev EVM selector for this function is: 0x70a08231,734 /// or in textual repr: balanceOf(address)735 function balanceOf(address owner) external view returns (uint256);736737 /// @notice Find the owner of an NFT738 /// @dev NFTs assigned to zero address are considered invalid, and queries739 /// about them do throw.740 /// @param tokenId The identifier for an NFT741 /// @return The address of the owner of the NFT742 /// @dev EVM selector for this function is: 0x6352211e,743 /// or in textual repr: ownerOf(uint256)744 function ownerOf(uint256 tokenId) external view returns (address);745746 /// @dev Not implemented747 /// @dev EVM selector for this function is: 0xb88d4fde,748 /// or in textual repr: safeTransferFrom(address,address,uint256,bytes)749 function safeTransferFrom(750 address from,751 address to,752 uint256 tokenId,753 bytes memory data754 ) external;755756 /// @dev Not implemented757 /// @dev EVM selector for this function is: 0x42842e0e,758 /// or in textual repr: safeTransferFrom(address,address,uint256)759 function safeTransferFrom(760 address from,761 address to,762 uint256 tokenId763 ) external;764765 /// @notice Transfer ownership of an NFT -- THE CALLER IS RESPONSIBLE766 /// TO CONFIRM THAT `to` IS CAPABLE OF RECEIVING NFTS OR ELSE767 /// THEY MAY BE PERMANENTLY LOST768 /// @dev Throws unless `msg.sender` is the current owner or an authorized769 /// operator for this NFT. Throws if `from` is not the current owner. Throws770 /// if `to` is the zero address. Throws if `tokenId` is not a valid NFT.771 /// @param from The current owner of the NFT772 /// @param to The new owner773 /// @param tokenId The NFT to transfer774 /// @dev EVM selector for this function is: 0x23b872dd,775 /// or in textual repr: transferFrom(address,address,uint256)776 function transferFrom(777 address from,778 address to,779 uint256 tokenId780 ) external;781782 /// @notice Set or reaffirm the approved address for an NFT783 /// @dev The zero address indicates there is no approved address.784 /// @dev Throws unless `msg.sender` is the current NFT owner, or an authorized785 /// operator of the current owner.786 /// @param approved The new approved NFT controller787 /// @param tokenId The NFT to approve788 /// @dev EVM selector for this function is: 0x095ea7b3,789 /// or in textual repr: approve(address,uint256)790 function approve(address approved, uint256 tokenId) external;791792 /// @dev Not implemented793 /// @dev EVM selector for this function is: 0xa22cb465,794 /// or in textual repr: setApprovalForAll(address,bool)795 function setApprovalForAll(address operator, bool approved) external;796797 /// @dev Not implemented798 /// @dev EVM selector for this function is: 0x081812fc,799 /// or in textual repr: getApproved(uint256)800 function getApproved(uint256 tokenId) external view returns (address);801802 /// @dev Not implemented803 /// @dev EVM selector for this function is: 0xe985e9c5,804 /// or in textual repr: isApprovedForAll(address,address)805 function isApprovedForAll(address owner, address operator) external view returns (address);806}807808interface UniqueNFT is809 Dummy,810 ERC165,811 ERC721,812 ERC721Enumerable,813 ERC721UniqueExtensions,814 ERC721UniqueMintable,815 ERC721Burnable,816 ERC721Metadata,817 Collection,818 TokenProperties819{}tests/src/eth/api/UniqueRefungible.soldiffbeforeafterboth--- a/tests/src/eth/api/UniqueRefungible.sol
+++ b/tests/src/eth/api/UniqueRefungible.sol
@@ -85,7 +85,7 @@
/// @param properties Vector of properties key/value pair.
/// @dev EVM selector for this function is: 0x50b26b2a,
/// or in textual repr: setCollectionProperties((string,bytes)[])
- function setCollectionProperties(Tuple19[] memory properties) external;
+ function setCollectionProperties(Tuple20[] memory properties) external;
/// Delete collection property.
///
@@ -117,7 +117,7 @@
/// @return Vector of properties key/value pairs.
/// @dev EVM selector for this function is: 0x285fb8e6,
/// or in textual repr: collectionProperties(string[])
- function collectionProperties(string[] memory keys) external view returns (Tuple19[] memory);
+ function collectionProperties(string[] memory keys) external view returns (Tuple20[] memory);
/// Set the sponsor of the collection.
///
@@ -134,8 +134,14 @@
///
/// @param sponsor Cross account address of the sponsor from whose account funds will be debited for operations with the contract.
/// @dev EVM selector for this function is: 0x84a1d5a8,
+<<<<<<< HEAD
/// or in textual repr: setCollectionSponsorCross((address,uint256))
function setCollectionSponsorCross(Tuple6 memory sponsor) external;
+=======
+ /// or in textual repr: setCollectionSponsorCross(EthCrossAccount)
+ /// or in the expanded repr: setCollectionSponsorCross((address,uint256))
+ function setCollectionSponsorCross(EthCrossAccount memory sponsor) external;
+>>>>>>> misk: update stubs
/// Whether there is a pending sponsor.
/// @dev EVM selector for this function is: 0x058ac185,
@@ -159,7 +165,11 @@
/// @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: 0x6ec0a9f1,
/// or in textual repr: collectionSponsor()
+<<<<<<< HEAD
function collectionSponsor() external view returns (Tuple6 memory);
+=======
+ function collectionSponsor() external view returns (Tuple23 memory);
+>>>>>>> misk: update stubs
/// Set limits for the collection.
/// @dev Throws error if limit not found.
@@ -194,14 +204,26 @@
/// Add collection admin.
/// @param newAdmin Cross account administrator address.
/// @dev EVM selector for this function is: 0x859aa7d6,
+<<<<<<< HEAD
/// or in textual repr: addCollectionAdminCross((address,uint256))
function addCollectionAdminCross(Tuple6 memory newAdmin) external;
+=======
+ /// or in textual repr: addCollectionAdminCross(EthCrossAccount)
+ /// or in the expanded repr: addCollectionAdminCross((address,uint256))
+ function addCollectionAdminCross(EthCrossAccount memory newAdmin) external;
+>>>>>>> misk: update stubs
/// Remove collection admin.
/// @param admin Cross account administrator address.
/// @dev EVM selector for this function is: 0x6c0cd173,
+<<<<<<< HEAD
/// or in textual repr: removeCollectionAdminCross((address,uint256))
function removeCollectionAdminCross(Tuple6 memory admin) external;
+=======
+ /// or in textual repr: removeCollectionAdminCross(EthCrossAccount)
+ /// or in the expanded repr: removeCollectionAdminCross((address,uint256))
+ function removeCollectionAdminCross(EthCrossAccount memory admin) external;
+>>>>>>> misk: update stubs
/// Add collection admin.
/// @param newAdmin Address of the added administrator.
@@ -257,8 +279,14 @@
///
/// @param user User cross account address.
/// @dev EVM selector for this function is: 0xa0184a3a,
+<<<<<<< HEAD
/// or in textual repr: addToCollectionAllowListCross((address,uint256))
function addToCollectionAllowListCross(Tuple6 memory user) external;
+=======
+ /// or in textual repr: addToCollectionAllowListCross(EthCrossAccount)
+ /// or in the expanded repr: addToCollectionAllowListCross((address,uint256))
+ function addToCollectionAllowListCross(EthCrossAccount memory user) external;
+>>>>>>> misk: update stubs
/// Remove the user from the allowed list.
///
@@ -271,8 +299,14 @@
///
/// @param user User cross account address.
/// @dev EVM selector for this function is: 0x09ba452a,
+<<<<<<< HEAD
/// or in textual repr: removeFromCollectionAllowListCross((address,uint256))
function removeFromCollectionAllowListCross(Tuple6 memory user) external;
+=======
+ /// or in textual repr: removeFromCollectionAllowListCross(EthCrossAccount)
+ /// or in the expanded repr: removeFromCollectionAllowListCross((address,uint256))
+ function removeFromCollectionAllowListCross(EthCrossAccount memory user) external;
+>>>>>>> misk: update stubs
/// Switch permission for minting.
///
@@ -294,8 +328,14 @@
/// @param user User cross account to verify
/// @return "true" if account is the owner or admin
/// @dev EVM selector for this function is: 0x3e75a905,
+<<<<<<< HEAD
/// or in textual repr: isOwnerOrAdminCross((address,uint256))
function isOwnerOrAdminCross(Tuple6 memory user) external view returns (bool);
+=======
+ /// or in textual repr: isOwnerOrAdminCross(EthCrossAccount)
+ /// or in the expanded repr: isOwnerOrAdminCross((address,uint256))
+ function isOwnerOrAdminCross(EthCrossAccount memory user) external view returns (bool);
+>>>>>>> misk: update stubs
/// Returns collection type
///
@@ -306,11 +346,15 @@
/// Get collection owner.
///
- /// @return Tuble with sponsor address and his substrate mirror.
+ /// @return Tuple with sponsor address and his substrate mirror.
/// If address is canonical then substrate mirror is zero and vice versa.
/// @dev EVM selector for this function is: 0xdf727d3b,
/// or in textual repr: collectionOwner()
+<<<<<<< HEAD
function collectionOwner() external view returns (Tuple6 memory);
+=======
+ function collectionOwner() external view returns (EthCrossAccount memory);
+>>>>>>> misk: update stubs
/// Changes collection owner to another account
///
@@ -326,19 +370,41 @@
/// If address is canonical then substrate mirror is zero and vice versa.
/// @dev EVM selector for this function is: 0x5813216b,
/// or in textual repr: collectionAdmins()
+<<<<<<< HEAD
function collectionAdmins() external view returns (Tuple6[] memory);
+=======
+ function collectionAdmins() external view returns (EthCrossAccount[] memory);
+>>>>>>> misk: update stubs
/// Changes collection owner to another account
///
/// @dev Owner can be changed only by current owner
/// @param newOwner new owner cross account
/// @dev EVM selector for this function is: 0xe5c9913f,
+<<<<<<< HEAD
/// or in textual repr: setOwnerCross((address,uint256))
function setOwnerCross(Tuple6 memory newOwner) external;
+=======
+ /// or in textual repr: setOwnerCross(EthCrossAccount)
+ /// or in the expanded repr: setOwnerCross((address,uint256))
+ function setOwnerCross(EthCrossAccount memory newOwner) external;
+}
+
+/// @dev Cross account struct
+struct EthCrossAccount {
+ address eth;
+ uint256 sub;
+}
+
+/// @dev anonymous struct
+struct Tuple23 {
+ address field_0;
+ uint256 field_1;
+>>>>>>> misk: update stubs
}
/// @dev anonymous struct
-struct Tuple19 {
+struct Tuple20 {
string field_0;
bytes field_1;
}
@@ -465,10 +531,16 @@
/// @param to The new owner
/// @param tokenId The RFT to transfer
/// @dev EVM selector for this function is: 0xd5cf430b,
- /// or in textual repr: transferFromCross((address,uint256),(address,uint256),uint256)
+ /// or in textual repr: transferFromCross(EthCrossAccount,EthCrossAccount,uint256)
+ /// or in the expanded repr: transferFromCross((address,uint256),(address,uint256),uint256)
function transferFromCross(
+<<<<<<< HEAD
Tuple6 memory from,
Tuple6 memory to,
+=======
+ EthCrossAccount memory from,
+ EthCrossAccount memory to,
+>>>>>>> misk: update stubs
uint256 tokenId
) external;
@@ -491,14 +563,21 @@
/// @param from The current owner of the RFT
/// @param tokenId The RFT to transfer
/// @dev EVM selector for this function is: 0xbb2f5a58,
+<<<<<<< HEAD
/// or in textual repr: burnFromCross((address,uint256),uint256)
function burnFromCross(Tuple6 memory from, uint256 tokenId) external;
+=======
+ /// or in textual repr: burnFromCross(EthCrossAccount,uint256)
+ /// or in the expanded repr: burnFromCross((address,uint256),uint256)
+ function burnFromCross(EthCrossAccount memory from, uint256 tokenId) external;
+>>>>>>> misk: update stubs
/// @notice Returns next free RFT ID.
/// @dev EVM selector for this function is: 0x75794a3c,
/// or in textual repr: nextTokenId()
function nextTokenId() external view returns (uint256);
+<<<<<<< HEAD
// /// @notice Function to mint multiple tokens.
// /// @dev `tokenIds` should be an array of consecutive numbers and first number
// /// should be obtained with `nextTokenId` method
@@ -516,6 +595,25 @@
// /// @dev EVM selector for this function is: 0x36543006,
// /// or in textual repr: mintBulkWithTokenURI(address,(uint256,string)[])
// function mintBulkWithTokenURI(address to, Tuple8[] memory tokens) external returns (bool);
+=======
+ /// @notice Function to mint multiple tokens.
+ /// @dev `tokenIds` should be an array of consecutive numbers and first number
+ /// should be obtained with `nextTokenId` method
+ /// @param to The new owner
+ /// @param tokenIds IDs of the minted RFTs
+ /// @dev EVM selector for this function is: 0x44a9945e,
+ /// or in textual repr: mintBulk(address,uint256[])
+ function mintBulk(address to, uint256[] memory tokenIds) external returns (bool);
+
+ /// @notice Function to mint multiple tokens with the given tokenUris.
+ /// @dev `tokenIds` is array of pairs of token ID and token URI. Token IDs should be consecutive
+ /// numbers and first number should be obtained with `nextTokenId` method
+ /// @param to The new owner
+ /// @param tokens array of pairs of token ID and token URI for minted tokens
+ /// @dev EVM selector for this function is: 0x36543006,
+ /// or in textual repr: mintBulkWithTokenURI(address,(uint256,string)[])
+ function mintBulkWithTokenURI(address to, Tuple11[] memory tokens) external returns (bool);
+>>>>>>> misk: update stubs
/// Returns EVM address for refungible token
///
@@ -526,17 +624,24 @@
}
/// @dev anonymous struct
+<<<<<<< HEAD
struct Tuple8 {
+=======
+struct Tuple11 {
+>>>>>>> misk: update stubs
uint256 field_0;
string field_1;
}
+<<<<<<< HEAD
/// @dev anonymous struct
struct Tuple6 {
address field_0;
uint256 field_1;
}
+=======
+>>>>>>> misk: update stubs
/// @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
/// @dev See https://eips.ethereum.org/EIPS/eip-721
/// @dev the ERC-165 identifier for this interface is 0x780e9d63
tests/src/eth/fungibleAbi.jsondiffbeforeafterboth--- a/tests/src/eth/fungibleAbi.json
+++ b/tests/src/eth/fungibleAbi.json
@@ -62,10 +62,15 @@
"inputs": [
{
"components": [
+<<<<<<< HEAD
{ "internalType": "address", "name": "field_0", "type": "address" },
{ "internalType": "uint256", "name": "field_1", "type": "uint256" }
+=======
+ { "internalType": "address", "name": "eth", "type": "address" },
+ { "internalType": "uint256", "name": "sub", "type": "uint256" }
+>>>>>>> misk: update stubs
],
- "internalType": "struct Tuple6",
+ "internalType": "struct EthCrossAccount",
"name": "newAdmin",
"type": "tuple"
}
@@ -88,10 +93,15 @@
"inputs": [
{
"components": [
+<<<<<<< HEAD
{ "internalType": "address", "name": "field_0", "type": "address" },
{ "internalType": "uint256", "name": "field_1", "type": "uint256" }
+=======
+ { "internalType": "address", "name": "eth", "type": "address" },
+ { "internalType": "uint256", "name": "sub", "type": "uint256" }
+>>>>>>> misk: update stubs
],
- "internalType": "struct Tuple6",
+ "internalType": "struct EthCrossAccount",
"name": "user",
"type": "tuple"
}
@@ -134,10 +144,15 @@
"inputs": [
{
"components": [
+<<<<<<< HEAD
{ "internalType": "address", "name": "field_0", "type": "address" },
{ "internalType": "uint256", "name": "field_1", "type": "uint256" }
+=======
+ { "internalType": "address", "name": "eth", "type": "address" },
+ { "internalType": "uint256", "name": "sub", "type": "uint256" }
+>>>>>>> misk: update stubs
],
- "internalType": "struct Tuple6",
+ "internalType": "struct EthCrossAccount",
"name": "spender",
"type": "tuple"
},
@@ -171,10 +186,15 @@
"inputs": [
{
"components": [
+<<<<<<< HEAD
{ "internalType": "address", "name": "field_0", "type": "address" },
{ "internalType": "uint256", "name": "field_1", "type": "uint256" }
+=======
+ { "internalType": "address", "name": "eth", "type": "address" },
+ { "internalType": "uint256", "name": "sub", "type": "uint256" }
+>>>>>>> misk: update stubs
],
- "internalType": "struct Tuple6",
+ "internalType": "struct EthCrossAccount",
"name": "from",
"type": "tuple"
},
@@ -182,6 +202,7 @@
],
"name": "burnFromCross",
"outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
+<<<<<<< HEAD
"stateMutability": "nonpayable",
"type": "function"
},
@@ -191,6 +212,8 @@
],
"name": "changeCollectionOwner",
"outputs": [],
+=======
+>>>>>>> misk: update stubs
"stateMutability": "nonpayable",
"type": "function"
},
@@ -200,10 +223,15 @@
"outputs": [
{
"components": [
+<<<<<<< HEAD
{ "internalType": "address", "name": "field_0", "type": "address" },
{ "internalType": "uint256", "name": "field_1", "type": "uint256" }
+=======
+ { "internalType": "address", "name": "eth", "type": "address" },
+ { "internalType": "uint256", "name": "sub", "type": "uint256" }
+>>>>>>> misk: update stubs
],
- "internalType": "struct Tuple6[]",
+ "internalType": "struct EthCrossAccount[]",
"name": "",
"type": "tuple[]"
}
@@ -217,10 +245,15 @@
"outputs": [
{
"components": [
+<<<<<<< HEAD
{ "internalType": "address", "name": "field_0", "type": "address" },
{ "internalType": "uint256", "name": "field_1", "type": "uint256" }
+=======
+ { "internalType": "address", "name": "eth", "type": "address" },
+ { "internalType": "uint256", "name": "sub", "type": "uint256" }
+>>>>>>> misk: update stubs
],
- "internalType": "struct Tuple6",
+ "internalType": "struct EthCrossAccount",
"name": "",
"type": "tuple"
}
@@ -239,7 +272,7 @@
{ "internalType": "string", "name": "field_0", "type": "string" },
{ "internalType": "bytes", "name": "field_1", "type": "bytes" }
],
- "internalType": "struct Tuple10[]",
+ "internalType": "struct Tuple14[]",
"name": "",
"type": "tuple[]"
}
@@ -263,7 +296,7 @@
{ "internalType": "address", "name": "field_0", "type": "address" },
{ "internalType": "uint256", "name": "field_1", "type": "uint256" }
],
- "internalType": "struct Tuple6",
+ "internalType": "struct Tuple8",
"name": "",
"type": "tuple"
}
@@ -328,10 +361,15 @@
"inputs": [
{
"components": [
+<<<<<<< HEAD
{ "internalType": "address", "name": "field_0", "type": "address" },
{ "internalType": "uint256", "name": "field_1", "type": "uint256" }
+=======
+ { "internalType": "address", "name": "eth", "type": "address" },
+ { "internalType": "uint256", "name": "sub", "type": "uint256" }
+>>>>>>> misk: update stubs
],
- "internalType": "struct Tuple6",
+ "internalType": "struct EthCrossAccount",
"name": "user",
"type": "tuple"
}
@@ -358,7 +396,7 @@
{ "internalType": "address", "name": "field_0", "type": "address" },
{ "internalType": "uint256", "name": "field_1", "type": "uint256" }
],
- "internalType": "struct Tuple6[]",
+ "internalType": "struct Tuple8[]",
"name": "amounts",
"type": "tuple[]"
}
@@ -388,10 +426,15 @@
"inputs": [
{
"components": [
+<<<<<<< HEAD
{ "internalType": "address", "name": "field_0", "type": "address" },
{ "internalType": "uint256", "name": "field_1", "type": "uint256" }
+=======
+ { "internalType": "address", "name": "eth", "type": "address" },
+ { "internalType": "uint256", "name": "sub", "type": "uint256" }
+>>>>>>> misk: update stubs
],
- "internalType": "struct Tuple6",
+ "internalType": "struct EthCrossAccount",
"name": "admin",
"type": "tuple"
}
@@ -421,10 +464,15 @@
"inputs": [
{
"components": [
+<<<<<<< HEAD
{ "internalType": "address", "name": "field_0", "type": "address" },
{ "internalType": "uint256", "name": "field_1", "type": "uint256" }
+=======
+ { "internalType": "address", "name": "eth", "type": "address" },
+ { "internalType": "uint256", "name": "sub", "type": "uint256" }
+>>>>>>> misk: update stubs
],
- "internalType": "struct Tuple6",
+ "internalType": "struct EthCrossAccount",
"name": "user",
"type": "tuple"
}
@@ -496,7 +544,7 @@
{ "internalType": "string", "name": "field_0", "type": "string" },
{ "internalType": "bytes", "name": "field_1", "type": "bytes" }
],
- "internalType": "struct Tuple10[]",
+ "internalType": "struct Tuple14[]",
"name": "properties",
"type": "tuple[]"
}
@@ -529,10 +577,15 @@
"inputs": [
{
"components": [
+<<<<<<< HEAD
{ "internalType": "address", "name": "field_0", "type": "address" },
{ "internalType": "uint256", "name": "field_1", "type": "uint256" }
+=======
+ { "internalType": "address", "name": "eth", "type": "address" },
+ { "internalType": "uint256", "name": "sub", "type": "uint256" }
+>>>>>>> misk: update stubs
],
- "internalType": "struct Tuple6",
+ "internalType": "struct EthCrossAccount",
"name": "sponsor",
"type": "tuple"
}
@@ -544,12 +597,28 @@
},
{
"inputs": [
+<<<<<<< HEAD
{
"components": [
{ "internalType": "address", "name": "field_0", "type": "address" },
{ "internalType": "uint256", "name": "field_1", "type": "uint256" }
+=======
+ { "internalType": "address", "name": "newOwner", "type": "address" }
+ ],
+ "name": "setOwner",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "components": [
+ { "internalType": "address", "name": "eth", "type": "address" },
+ { "internalType": "uint256", "name": "sub", "type": "uint256" }
+>>>>>>> misk: update stubs
],
- "internalType": "struct Tuple6",
+ "internalType": "struct EthCrossAccount",
"name": "newOwner",
"type": "tuple"
}
@@ -607,19 +676,29 @@
"inputs": [
{
"components": [
+<<<<<<< HEAD
{ "internalType": "address", "name": "field_0", "type": "address" },
{ "internalType": "uint256", "name": "field_1", "type": "uint256" }
+=======
+ { "internalType": "address", "name": "eth", "type": "address" },
+ { "internalType": "uint256", "name": "sub", "type": "uint256" }
+>>>>>>> misk: update stubs
],
- "internalType": "struct Tuple6",
+ "internalType": "struct EthCrossAccount",
"name": "from",
"type": "tuple"
},
{
"components": [
+<<<<<<< HEAD
{ "internalType": "address", "name": "field_0", "type": "address" },
{ "internalType": "uint256", "name": "field_1", "type": "uint256" }
+=======
+ { "internalType": "address", "name": "eth", "type": "address" },
+ { "internalType": "uint256", "name": "sub", "type": "uint256" }
+>>>>>>> misk: update stubs
],
- "internalType": "struct Tuple6",
+ "internalType": "struct EthCrossAccount",
"name": "to",
"type": "tuple"
},
tests/src/eth/nonFungibleAbi.jsondiffbeforeafterboth--- a/tests/src/eth/nonFungibleAbi.json
+++ b/tests/src/eth/nonFungibleAbi.json
@@ -93,10 +93,14 @@
"inputs": [
{
"components": [
- { "internalType": "address", "name": "field_0", "type": "address" },
- { "internalType": "uint256", "name": "field_1", "type": "uint256" }
+ { "internalType": "address", "name": "eth", "type": "address" },
+ { "internalType": "uint256", "name": "sub", "type": "uint256" }
],
+<<<<<<< HEAD
"internalType": "struct Tuple6",
+=======
+ "internalType": "struct EthCrossAccount",
+>>>>>>> misk: update stubs
"name": "newAdmin",
"type": "tuple"
}
@@ -119,10 +123,14 @@
"inputs": [
{
"components": [
- { "internalType": "address", "name": "field_0", "type": "address" },
- { "internalType": "uint256", "name": "field_1", "type": "uint256" }
+ { "internalType": "address", "name": "eth", "type": "address" },
+ { "internalType": "uint256", "name": "sub", "type": "uint256" }
],
+<<<<<<< HEAD
"internalType": "struct Tuple6",
+=======
+ "internalType": "struct EthCrossAccount",
+>>>>>>> misk: update stubs
"name": "user",
"type": "tuple"
}
@@ -155,10 +163,14 @@
"inputs": [
{
"components": [
- { "internalType": "address", "name": "field_0", "type": "address" },
- { "internalType": "uint256", "name": "field_1", "type": "uint256" }
+ { "internalType": "address", "name": "eth", "type": "address" },
+ { "internalType": "uint256", "name": "sub", "type": "uint256" }
],
+<<<<<<< HEAD
"internalType": "struct Tuple6",
+=======
+ "internalType": "struct EthCrossAccount",
+>>>>>>> misk: update stubs
"name": "approved",
"type": "tuple"
},
@@ -201,10 +213,14 @@
"inputs": [
{
"components": [
- { "internalType": "address", "name": "field_0", "type": "address" },
- { "internalType": "uint256", "name": "field_1", "type": "uint256" }
+ { "internalType": "address", "name": "eth", "type": "address" },
+ { "internalType": "uint256", "name": "sub", "type": "uint256" }
],
+<<<<<<< HEAD
"internalType": "struct Tuple6",
+=======
+ "internalType": "struct EthCrossAccount",
+>>>>>>> misk: update stubs
"name": "from",
"type": "tuple"
},
@@ -230,10 +246,14 @@
"outputs": [
{
"components": [
- { "internalType": "address", "name": "field_0", "type": "address" },
- { "internalType": "uint256", "name": "field_1", "type": "uint256" }
+ { "internalType": "address", "name": "eth", "type": "address" },
+ { "internalType": "uint256", "name": "sub", "type": "uint256" }
],
+<<<<<<< HEAD
"internalType": "struct Tuple6[]",
+=======
+ "internalType": "struct EthCrossAccount[]",
+>>>>>>> misk: update stubs
"name": "",
"type": "tuple[]"
}
@@ -247,11 +267,12 @@
"outputs": [
{
"components": [
- { "internalType": "address", "name": "field_0", "type": "address" },
- { "internalType": "uint256", "name": "field_1", "type": "uint256" }
+ { "internalType": "address", "name": "eth", "type": "address" },
+ { "internalType": "uint256", "name": "sub", "type": "uint256" }
],
<<<<<<< HEAD
<<<<<<< HEAD
+<<<<<<< HEAD
"internalType": "struct Tuple6",
=======
"internalType": "struct Tuple19",
@@ -259,6 +280,9 @@
=======
"internalType": "struct Tuple8",
>>>>>>> feat: Add custum signature with unlimited nesting.
+=======
+ "internalType": "struct EthCrossAccount",
+>>>>>>> misk: update stubs
"name": "",
"type": "tuple"
}
@@ -319,6 +343,7 @@
],
<<<<<<< HEAD
<<<<<<< HEAD
+<<<<<<< HEAD
"internalType": "struct Tuple6",
=======
"internalType": "struct Tuple19",
@@ -326,6 +351,9 @@
=======
"internalType": "struct Tuple8",
>>>>>>> feat: Add custum signature with unlimited nesting.
+=======
+ "internalType": "struct Tuple24",
+>>>>>>> misk: update stubs
"name": "",
"type": "tuple"
}
@@ -428,10 +456,14 @@
"inputs": [
{
"components": [
- { "internalType": "address", "name": "field_0", "type": "address" },
- { "internalType": "uint256", "name": "field_1", "type": "uint256" }
+ { "internalType": "address", "name": "eth", "type": "address" },
+ { "internalType": "uint256", "name": "sub", "type": "uint256" }
],
+<<<<<<< HEAD
"internalType": "struct Tuple6",
+=======
+ "internalType": "struct EthCrossAccount",
+>>>>>>> misk: update stubs
"name": "user",
"type": "tuple"
}
@@ -556,10 +588,14 @@
"inputs": [
{
"components": [
- { "internalType": "address", "name": "field_0", "type": "address" },
- { "internalType": "uint256", "name": "field_1", "type": "uint256" }
+ { "internalType": "address", "name": "eth", "type": "address" },
+ { "internalType": "uint256", "name": "sub", "type": "uint256" }
],
+<<<<<<< HEAD
"internalType": "struct Tuple6",
+=======
+ "internalType": "struct EthCrossAccount",
+>>>>>>> misk: update stubs
"name": "admin",
"type": "tuple"
}
@@ -589,10 +625,14 @@
"inputs": [
{
"components": [
- { "internalType": "address", "name": "field_0", "type": "address" },
- { "internalType": "uint256", "name": "field_1", "type": "uint256" }
+ { "internalType": "address", "name": "eth", "type": "address" },
+ { "internalType": "uint256", "name": "sub", "type": "uint256" }
],
+<<<<<<< HEAD
"internalType": "struct Tuple6",
+=======
+ "internalType": "struct EthCrossAccount",
+>>>>>>> misk: update stubs
"name": "user",
"type": "tuple"
}
@@ -745,10 +785,14 @@
"inputs": [
{
"components": [
- { "internalType": "address", "name": "field_0", "type": "address" },
- { "internalType": "uint256", "name": "field_1", "type": "uint256" }
+ { "internalType": "address", "name": "eth", "type": "address" },
+ { "internalType": "uint256", "name": "sub", "type": "uint256" }
],
+<<<<<<< HEAD
"internalType": "struct Tuple6",
+=======
+ "internalType": "struct EthCrossAccount",
+>>>>>>> misk: update stubs
"name": "sponsor",
"type": "tuple"
}
@@ -785,6 +829,7 @@
{
"components": [
<<<<<<< HEAD
+<<<<<<< HEAD
{ "internalType": "string", "name": "field_0", "type": "string" },
{ "internalType": "bytes", "name": "field_1", "type": "bytes" }
=======
@@ -795,6 +840,14 @@
"internalType": "struct Tuple19[]",
"name": "properties",
"type": "tuple[]"
+=======
+ { "internalType": "address", "name": "eth", "type": "address" },
+ { "internalType": "uint256", "name": "sub", "type": "uint256" }
+ ],
+ "internalType": "struct EthCrossAccount",
+ "name": "newOwner",
+ "type": "tuple"
+>>>>>>> misk: update stubs
}
],
"name": "setProperties",
tests/src/eth/reFungibleAbi.jsondiffbeforeafterboth--- a/tests/src/eth/reFungibleAbi.json
+++ b/tests/src/eth/reFungibleAbi.json
@@ -93,10 +93,17 @@
"inputs": [
{
"components": [
+<<<<<<< HEAD
{ "internalType": "address", "name": "field_0", "type": "address" },
{ "internalType": "uint256", "name": "field_1", "type": "uint256" }
],
"internalType": "struct Tuple6",
+=======
+ { "internalType": "address", "name": "eth", "type": "address" },
+ { "internalType": "uint256", "name": "sub", "type": "uint256" }
+ ],
+ "internalType": "struct EthCrossAccount",
+>>>>>>> misk: update stubs
"name": "newAdmin",
"type": "tuple"
}
@@ -119,10 +126,17 @@
"inputs": [
{
"components": [
+<<<<<<< HEAD
{ "internalType": "address", "name": "field_0", "type": "address" },
{ "internalType": "uint256", "name": "field_1", "type": "uint256" }
],
"internalType": "struct Tuple6",
+=======
+ { "internalType": "address", "name": "eth", "type": "address" },
+ { "internalType": "uint256", "name": "sub", "type": "uint256" }
+ ],
+ "internalType": "struct EthCrossAccount",
+>>>>>>> misk: update stubs
"name": "user",
"type": "tuple"
}
@@ -183,10 +197,17 @@
"inputs": [
{
"components": [
+<<<<<<< HEAD
{ "internalType": "address", "name": "field_0", "type": "address" },
{ "internalType": "uint256", "name": "field_1", "type": "uint256" }
],
"internalType": "struct Tuple6",
+=======
+ { "internalType": "address", "name": "eth", "type": "address" },
+ { "internalType": "uint256", "name": "sub", "type": "uint256" }
+ ],
+ "internalType": "struct EthCrossAccount",
+>>>>>>> misk: update stubs
"name": "from",
"type": "tuple"
},
@@ -212,10 +233,17 @@
"outputs": [
{
"components": [
+<<<<<<< HEAD
{ "internalType": "address", "name": "field_0", "type": "address" },
{ "internalType": "uint256", "name": "field_1", "type": "uint256" }
],
"internalType": "struct Tuple6[]",
+=======
+ { "internalType": "address", "name": "eth", "type": "address" },
+ { "internalType": "uint256", "name": "sub", "type": "uint256" }
+ ],
+ "internalType": "struct EthCrossAccount[]",
+>>>>>>> misk: update stubs
"name": "",
"type": "tuple[]"
}
@@ -229,10 +257,17 @@
"outputs": [
{
"components": [
+<<<<<<< HEAD
{ "internalType": "address", "name": "field_0", "type": "address" },
{ "internalType": "uint256", "name": "field_1", "type": "uint256" }
],
"internalType": "struct Tuple6",
+=======
+ { "internalType": "address", "name": "eth", "type": "address" },
+ { "internalType": "uint256", "name": "sub", "type": "uint256" }
+ ],
+ "internalType": "struct EthCrossAccount",
+>>>>>>> misk: update stubs
"name": "",
"type": "tuple"
}
@@ -251,7 +286,7 @@
{ "internalType": "string", "name": "field_0", "type": "string" },
{ "internalType": "bytes", "name": "field_1", "type": "bytes" }
],
- "internalType": "struct Tuple19[]",
+ "internalType": "struct Tuple20[]",
"name": "",
"type": "tuple[]"
}
@@ -275,7 +310,11 @@
{ "internalType": "address", "name": "field_0", "type": "address" },
{ "internalType": "uint256", "name": "field_1", "type": "uint256" }
],
+<<<<<<< HEAD
"internalType": "struct Tuple6",
+=======
+ "internalType": "struct Tuple23",
+>>>>>>> misk: update stubs
"name": "",
"type": "tuple"
}
@@ -369,10 +408,17 @@
"inputs": [
{
"components": [
+<<<<<<< HEAD
{ "internalType": "address", "name": "field_0", "type": "address" },
{ "internalType": "uint256", "name": "field_1", "type": "uint256" }
],
"internalType": "struct Tuple6",
+=======
+ { "internalType": "address", "name": "eth", "type": "address" },
+ { "internalType": "uint256", "name": "sub", "type": "uint256" }
+ ],
+ "internalType": "struct EthCrossAccount",
+>>>>>>> misk: update stubs
"name": "user",
"type": "tuple"
}
@@ -383,23 +429,68 @@
"type": "function"
},
{
+<<<<<<< HEAD
"inputs": [{ "internalType": "address", "name": "to", "type": "address" }],
"name": "mint",
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
+=======
+ "inputs": [
+ { "internalType": "address", "name": "to", "type": "address" },
+ { "internalType": "uint256", "name": "tokenId", "type": "uint256" }
+ ],
+ "name": "mint",
+ "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
+>>>>>>> misk: update stubs
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{ "internalType": "address", "name": "to", "type": "address" },
+<<<<<<< HEAD
{ "internalType": "string", "name": "tokenUri", "type": "string" }
],
"name": "mintWithTokenURI",
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
+=======
+ { "internalType": "uint256[]", "name": "tokenIds", "type": "uint256[]" }
+ ],
+ "name": "mintBulk",
+ "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
"stateMutability": "nonpayable",
"type": "function"
},
{
+ "inputs": [
+ { "internalType": "address", "name": "to", "type": "address" },
+ {
+ "components": [
+ { "internalType": "uint256", "name": "field_0", "type": "uint256" },
+ { "internalType": "string", "name": "field_1", "type": "string" }
+ ],
+ "internalType": "struct Tuple11[]",
+ "name": "tokens",
+ "type": "tuple[]"
+ }
+ ],
+ "name": "mintBulkWithTokenURI",
+ "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ { "internalType": "address", "name": "to", "type": "address" },
+ { "internalType": "uint256", "name": "tokenId", "type": "uint256" },
+ { "internalType": "string", "name": "tokenUri", "type": "string" }
+ ],
+ "name": "mintWithTokenURI",
+ "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
+>>>>>>> misk: update stubs
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
"inputs": [],
"name": "mintingFinished",
"outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
@@ -452,10 +543,17 @@
"inputs": [
{
"components": [
+<<<<<<< HEAD
{ "internalType": "address", "name": "field_0", "type": "address" },
{ "internalType": "uint256", "name": "field_1", "type": "uint256" }
],
"internalType": "struct Tuple6",
+=======
+ { "internalType": "address", "name": "eth", "type": "address" },
+ { "internalType": "uint256", "name": "sub", "type": "uint256" }
+ ],
+ "internalType": "struct EthCrossAccount",
+>>>>>>> misk: update stubs
"name": "admin",
"type": "tuple"
}
@@ -485,10 +583,17 @@
"inputs": [
{
"components": [
+<<<<<<< HEAD
{ "internalType": "address", "name": "field_0", "type": "address" },
{ "internalType": "uint256", "name": "field_1", "type": "uint256" }
],
"internalType": "struct Tuple6",
+=======
+ { "internalType": "address", "name": "eth", "type": "address" },
+ { "internalType": "uint256", "name": "sub", "type": "uint256" }
+ ],
+ "internalType": "struct EthCrossAccount",
+>>>>>>> misk: update stubs
"name": "user",
"type": "tuple"
}
@@ -593,7 +698,7 @@
{ "internalType": "string", "name": "field_0", "type": "string" },
{ "internalType": "bytes", "name": "field_1", "type": "bytes" }
],
- "internalType": "struct Tuple19[]",
+ "internalType": "struct Tuple20[]",
"name": "properties",
"type": "tuple[]"
}
@@ -626,10 +731,17 @@
"inputs": [
{
"components": [
+<<<<<<< HEAD
{ "internalType": "address", "name": "field_0", "type": "address" },
{ "internalType": "uint256", "name": "field_1", "type": "uint256" }
],
"internalType": "struct Tuple6",
+=======
+ { "internalType": "address", "name": "eth", "type": "address" },
+ { "internalType": "uint256", "name": "sub", "type": "uint256" }
+ ],
+ "internalType": "struct EthCrossAccount",
+>>>>>>> misk: update stubs
"name": "sponsor",
"type": "tuple"
}
@@ -641,6 +753,7 @@
},
{
"inputs": [
+<<<<<<< HEAD
{
"components": [
{ "internalType": "address", "name": "field_0", "type": "address" },
@@ -650,6 +763,9 @@
"name": "newOwner",
"type": "tuple"
}
+=======
+ { "internalType": "address", "name": "newOwner", "type": "address" }
+>>>>>>> misk: update stubs
],
"name": "setOwnerCross",
"outputs": [],
@@ -661,12 +777,21 @@
{ "internalType": "uint256", "name": "tokenId", "type": "uint256" },
{
"components": [
+<<<<<<< HEAD
{ "internalType": "string", "name": "field_0", "type": "string" },
{ "internalType": "bytes", "name": "field_1", "type": "bytes" }
],
"internalType": "struct Tuple19[]",
"name": "properties",
"type": "tuple[]"
+=======
+ { "internalType": "address", "name": "eth", "type": "address" },
+ { "internalType": "uint256", "name": "sub", "type": "uint256" }
+ ],
+ "internalType": "struct EthCrossAccount",
+ "name": "newOwner",
+ "type": "tuple"
+>>>>>>> misk: update stubs
}
],
"name": "setProperties",
@@ -782,19 +907,33 @@
"inputs": [
{
"components": [
+<<<<<<< HEAD
{ "internalType": "address", "name": "field_0", "type": "address" },
{ "internalType": "uint256", "name": "field_1", "type": "uint256" }
],
"internalType": "struct Tuple6",
+=======
+ { "internalType": "address", "name": "eth", "type": "address" },
+ { "internalType": "uint256", "name": "sub", "type": "uint256" }
+ ],
+ "internalType": "struct EthCrossAccount",
+>>>>>>> misk: update stubs
"name": "from",
"type": "tuple"
},
{
"components": [
+<<<<<<< HEAD
{ "internalType": "address", "name": "field_0", "type": "address" },
{ "internalType": "uint256", "name": "field_1", "type": "uint256" }
],
"internalType": "struct Tuple6",
+=======
+ { "internalType": "address", "name": "eth", "type": "address" },
+ { "internalType": "uint256", "name": "sub", "type": "uint256" }
+ ],
+ "internalType": "struct EthCrossAccount",
+>>>>>>> misk: update stubs
"name": "to",
"type": "tuple"
},