difftreelog
chore generate stubs & fix docs
in: master
13 files changed
pallets/common/src/eth.rsdiffbeforeafterboth--- a/pallets/common/src/eth.rs
+++ b/pallets/common/src/eth.rs
@@ -147,29 +147,41 @@
/// How many tokens can a user have on one account.
#[default]
AccountTokenOwnership,
+
/// How many bytes of data are available for sponsorship.
SponsoredDataSize,
+
/// In any case, chain default: [`SponsoringRateLimit::SponsoringDisabled`]
SponsoredDataRateLimit,
+
/// How many tokens can be mined into this collection.
TokenLimit,
+
/// Timeouts for transfer sponsoring.
SponsorTransferTimeout,
+
/// Timeout for sponsoring an approval in passed blocks.
SponsorApproveTimeout,
+
/// Whether the collection owner of the collection can send tokens (which belong to other users).
OwnerCanTransfer,
+
/// Can the collection owner burn other people's tokens.
OwnerCanDestroy,
+
/// Is it possible to send tokens from this collection between users.
TransferEnabled,
}
+/// Ethereum representation of `NestingPermissions` (see [`up_data_structs::NestingPermissions`]) fields as an enumeration.
#[derive(Default, Debug, Clone, Copy, AbiCoder)]
#[repr(u8)]
pub enum CollectionPermissions {
+ /// Owner of token can nest tokens under it.
#[default]
- CollectionAdmin,
TokenOwner,
+
+ /// Admin of token collection can nest tokens under token.
+ CollectionAdmin,
}
/// Ethereum representation of TokenPermissions (see [`up_data_structs::PropertyPermission`]) fields as an enumeration.
pallets/fungible/src/stubs/UniqueFungible.rawdiffbeforeafterbothbinary blob — no preview
pallets/fungible/src/stubs/UniqueFungible.soldiffbeforeafterboth173 /// Return `false` if a limit not set.173 /// Return `false` if a limit not set.174 /// @dev EVM selector for this function is: 0xf63bc572,174 /// @dev EVM selector for this function is: 0xf63bc572,175 /// or in textual repr: collectionLimits()175 /// or in textual repr: collectionLimits()176 function collectionLimits() public view returns (Tuple20[] memory) {176 function collectionLimits() public view returns (Tuple23[] memory) {177 require(false, stub_error);177 require(false, stub_error);178 dummy;178 dummy;179 return new Tuple20[](0);179 return new Tuple23[](0);180 }180 }181181182 /// Set limits for the collection.182 /// Set limits for the collection.284 /// Returns nesting for a collection284 /// Returns nesting for a collection285 /// @dev EVM selector for this function is: 0x22d25bfe,285 /// @dev EVM selector for this function is: 0x22d25bfe,286 /// or in textual repr: collectionNestingRestrictedCollectionIds()286 /// or in textual repr: collectionNestingRestrictedCollectionIds()287<<<<<<< HEAD288 function collectionNestingRestrictedCollectionIds() public view returns (Tuple26 memory) {287 function collectionNestingRestrictedCollectionIds() public view returns (Tuple29 memory) {289 require(false, stub_error);288 require(false, stub_error);290 dummy;289 dummy;291 return Tuple26(false, new uint256[](0));290 return Tuple29(false, new uint256[](0));292=======293 function collectionNestingRestrictedCollectionIds() public view returns (Tuple24 memory) {294 require(false, stub_error);295 dummy;296 return Tuple24(false, new uint256[](0));297>>>>>>> 09f69700... chore: generate stubs298 }291 }299292300 /// Returns permissions for a collection293 /// Returns permissions for a collection301 /// @dev EVM selector for this function is: 0x5b2eaf4b,294 /// @dev EVM selector for this function is: 0x5b2eaf4b,302 /// or in textual repr: collectionNestingPermissions()295 /// or in textual repr: collectionNestingPermissions()303<<<<<<< HEAD304 function collectionNestingPermissions() public view returns (Tuple29[] memory) {296 function collectionNestingPermissions() public view returns (Tuple32[] memory) {305 require(false, stub_error);297 require(false, stub_error);306 dummy;298 dummy;307 return new Tuple29[](0);299 return new Tuple32[](0);308=======309 function collectionNestingPermissions() public view returns (Tuple27[] memory) {310 require(false, stub_error);311 dummy;312 return new Tuple27[](0);313>>>>>>> 09f69700... chore: generate stubs314 }300 }315301316 /// Set the collection access method.302 /// Set the collection access method.490}476}491477492/// @dev anonymous struct478/// @dev anonymous struct493<<<<<<< HEAD494struct Tuple29 {479struct Tuple32 {495=======496struct Tuple27 {497>>>>>>> 09f69700... chore: generate stubs498 CollectionPermissions field_0;480 CollectionPermissions field_0;499 bool field_1;481 bool field_1;500}482}501483502/// @dev anonymous struct484/// @dev anonymous struct503<<<<<<< HEAD504struct Tuple26 {485struct Tuple29 {505=======506struct Tuple24 {507>>>>>>> 09f69700... chore: generate stubs508 bool field_0;486 bool field_0;509 uint256[] field_1;487 uint256[] field_1;510}488}532}510}533511534/// @dev anonymous struct512/// @dev anonymous struct535struct Tuple20 {513struct Tuple23 {536 CollectionLimits field_0;514 CollectionLimits field_0;537 bool field_1;515 bool field_1;538 uint256 field_2;516 uint256 field_2;pallets/nonfungible/src/stubs/UniqueNFT.rawdiffbeforeafterbothbinary blob — no preview
pallets/nonfungible/src/stubs/UniqueNFT.soldiffbeforeafterboth--- a/pallets/nonfungible/src/stubs/UniqueNFT.sol
+++ b/pallets/nonfungible/src/stubs/UniqueNFT.sol
@@ -42,11 +42,7 @@
/// @param permissions Permissions for keys.
/// @dev EVM selector for this function is: 0xbd92983a,
/// or in textual repr: setTokenPropertyPermissions((string,(uint8,bool)[])[])
-<<<<<<< HEAD
- function setTokenPropertyPermissions(Tuple59[] memory permissions) public {
-=======
- function setTokenPropertyPermissions(Tuple56[] memory permissions) public {
->>>>>>> 9e929f90... chore: generate stubs & types
+ function setTokenPropertyPermissions(Tuple61[] memory permissions) public {
require(false, stub_error);
permissions;
dummy = 0;
@@ -55,17 +51,10 @@
/// @notice Get permissions for token properties.
/// @dev EVM selector for this function is: 0xf23d7790,
/// or in textual repr: tokenPropertyPermissions()
-<<<<<<< HEAD
- function tokenPropertyPermissions() public view returns (Tuple59[] memory) {
- require(false, stub_error);
- dummy;
- return new Tuple59[](0);
-=======
- function tokenPropertyPermissions() public view returns (Tuple56[] memory) {
+ function tokenPropertyPermissions() public view returns (Tuple61[] memory) {
require(false, stub_error);
dummy;
- return new Tuple56[](0);
->>>>>>> 9e929f90... chore: generate stubs & types
+ return new Tuple61[](0);
}
// /// @notice Set token property value.
@@ -155,23 +144,13 @@
}
/// @dev anonymous struct
-<<<<<<< HEAD
-struct Tuple59 {
+struct Tuple61 {
string field_0;
- Tuple57[] field_1;
+ Tuple59[] field_1;
}
/// @dev anonymous struct
-struct Tuple57 {
-=======
-struct Tuple56 {
- string field_0;
- Tuple54[] field_1;
-}
-
-/// @dev anonymous struct
-struct Tuple54 {
->>>>>>> 9e929f90... chore: generate stubs & types
+struct Tuple59 {
EthTokenPermissions field_0;
bool field_1;
}
@@ -332,10 +311,10 @@
/// Return `false` if a limit not set.
/// @dev EVM selector for this function is: 0xf63bc572,
/// or in textual repr: collectionLimits()
- function collectionLimits() public view returns (Tuple33[] memory) {
+ function collectionLimits() public view returns (Tuple35[] memory) {
require(false, stub_error);
dummy;
- return new Tuple33[](0);
+ return new Tuple35[](0);
}
/// Set limits for the collection.
@@ -443,33 +422,19 @@
/// Returns nesting for a collection
/// @dev EVM selector for this function is: 0x22d25bfe,
/// or in textual repr: collectionNestingRestrictedCollectionIds()
-<<<<<<< HEAD
- function collectionNestingRestrictedCollectionIds() public view returns (Tuple39 memory) {
+ function collectionNestingRestrictedCollectionIds() public view returns (Tuple41 memory) {
require(false, stub_error);
dummy;
- return Tuple39(false, new uint256[](0));
-=======
- function collectionNestingRestrictedCollectionIds() public view returns (Tuple36 memory) {
- require(false, stub_error);
- dummy;
- return Tuple36(false, new uint256[](0));
->>>>>>> 09f69700... chore: generate stubs
+ return Tuple41(false, new uint256[](0));
}
/// Returns permissions for a collection
/// @dev EVM selector for this function is: 0x5b2eaf4b,
/// or in textual repr: collectionNestingPermissions()
-<<<<<<< HEAD
- function collectionNestingPermissions() public view returns (Tuple42[] memory) {
- require(false, stub_error);
- dummy;
- return new Tuple42[](0);
-=======
- function collectionNestingPermissions() public view returns (Tuple39[] memory) {
+ function collectionNestingPermissions() public view returns (Tuple44[] memory) {
require(false, stub_error);
dummy;
- return new Tuple39[](0);
->>>>>>> 09f69700... chore: generate stubs
+ return new Tuple44[](0);
}
/// Set the collection access method.
@@ -649,26 +614,17 @@
}
/// @dev anonymous struct
-<<<<<<< HEAD
-struct Tuple42 {
-=======
-struct Tuple39 {
->>>>>>> 09f69700... chore: generate stubs
+struct Tuple44 {
CollectionPermissions field_0;
bool field_1;
}
/// @dev anonymous struct
-<<<<<<< HEAD
-struct Tuple39 {
-=======
-struct Tuple36 {
->>>>>>> 09f69700... chore: generate stubs
+struct Tuple41 {
bool field_0;
uint256[] field_1;
}
-<<<<<<< HEAD
/// @dev [`CollectionLimits`](up_data_structs::CollectionLimits) representation for EVM.
enum CollectionLimits {
/// @dev How many tokens can a user have on one account.
@@ -692,22 +648,12 @@
}
/// @dev anonymous struct
-struct Tuple33 {
+struct Tuple35 {
CollectionLimits field_0;
bool field_1;
uint256 field_2;
}
-/// @dev anonymous struct
-struct Tuple32 {
- address field_0;
- uint256 field_1;
-}
-
-=======
->>>>>>> 0bf15e6f... fixed tests&tuple instead of struct, refactored `refungible` pallet
-=======
->>>>>>> 09f69700... chore: generate stubs
/// @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
pallets/refungible/src/stubs/UniqueRefungible.rawdiffbeforeafterbothbinary blob — no preview
pallets/refungible/src/stubs/UniqueRefungible.soldiffbeforeafterboth--- a/pallets/refungible/src/stubs/UniqueRefungible.sol
+++ b/pallets/refungible/src/stubs/UniqueRefungible.sol
@@ -42,11 +42,7 @@
/// @param permissions Permissions for keys.
/// @dev EVM selector for this function is: 0xbd92983a,
/// or in textual repr: setTokenPropertyPermissions((string,(uint8,bool)[])[])
-<<<<<<< HEAD
- function setTokenPropertyPermissions(Tuple58[] memory permissions) public {
-=======
- function setTokenPropertyPermissions(Tuple55[] memory permissions) public {
->>>>>>> 9e929f90... chore: generate stubs & types
+ function setTokenPropertyPermissions(Tuple60[] memory permissions) public {
require(false, stub_error);
permissions;
dummy = 0;
@@ -55,17 +51,10 @@
/// @notice Get permissions for token properties.
/// @dev EVM selector for this function is: 0xf23d7790,
/// or in textual repr: tokenPropertyPermissions()
-<<<<<<< HEAD
- function tokenPropertyPermissions() public view returns (Tuple58[] memory) {
- require(false, stub_error);
- dummy;
- return new Tuple58[](0);
-=======
- function tokenPropertyPermissions() public view returns (Tuple55[] memory) {
+ function tokenPropertyPermissions() public view returns (Tuple60[] memory) {
require(false, stub_error);
dummy;
- return new Tuple55[](0);
->>>>>>> 9e929f90... chore: generate stubs & types
+ return new Tuple60[](0);
}
// /// @notice Set token property value.
@@ -155,23 +144,13 @@
}
/// @dev anonymous struct
-<<<<<<< HEAD
-struct Tuple58 {
- string field_0;
- Tuple56[] field_1;
-}
-
-/// @dev anonymous struct
-struct Tuple56 {
-=======
-struct Tuple55 {
+struct Tuple60 {
string field_0;
- Tuple53[] field_1;
+ Tuple58[] field_1;
}
/// @dev anonymous struct
-struct Tuple53 {
->>>>>>> 9e929f90... chore: generate stubs & types
+struct Tuple58 {
EthTokenPermissions field_0;
bool field_1;
}
@@ -332,10 +311,10 @@
/// Return `false` if a limit not set.
/// @dev EVM selector for this function is: 0xf63bc572,
/// or in textual repr: collectionLimits()
- function collectionLimits() public view returns (Tuple32[] memory) {
+ function collectionLimits() public view returns (Tuple34[] memory) {
require(false, stub_error);
dummy;
- return new Tuple32[](0);
+ return new Tuple34[](0);
}
/// Set limits for the collection.
@@ -443,33 +422,19 @@
/// Returns nesting for a collection
/// @dev EVM selector for this function is: 0x22d25bfe,
/// or in textual repr: collectionNestingRestrictedCollectionIds()
-<<<<<<< HEAD
- function collectionNestingRestrictedCollectionIds() public view returns (Tuple38 memory) {
+ function collectionNestingRestrictedCollectionIds() public view returns (Tuple40 memory) {
require(false, stub_error);
dummy;
- return Tuple38(false, new uint256[](0));
-=======
- function collectionNestingRestrictedCollectionIds() public view returns (Tuple35 memory) {
- require(false, stub_error);
- dummy;
- return Tuple35(false, new uint256[](0));
->>>>>>> 09f69700... chore: generate stubs
+ return Tuple40(false, new uint256[](0));
}
/// Returns permissions for a collection
/// @dev EVM selector for this function is: 0x5b2eaf4b,
/// or in textual repr: collectionNestingPermissions()
-<<<<<<< HEAD
- function collectionNestingPermissions() public view returns (Tuple41[] memory) {
- require(false, stub_error);
- dummy;
- return new Tuple41[](0);
-=======
- function collectionNestingPermissions() public view returns (Tuple38[] memory) {
+ function collectionNestingPermissions() public view returns (Tuple43[] memory) {
require(false, stub_error);
dummy;
- return new Tuple38[](0);
->>>>>>> 09f69700... chore: generate stubs
+ return new Tuple43[](0);
}
/// Set the collection access method.
@@ -649,26 +614,17 @@
}
/// @dev anonymous struct
-<<<<<<< HEAD
-struct Tuple41 {
-=======
-struct Tuple38 {
->>>>>>> 09f69700... chore: generate stubs
+struct Tuple43 {
CollectionPermissions field_0;
bool field_1;
}
/// @dev anonymous struct
-<<<<<<< HEAD
-struct Tuple38 {
-=======
-struct Tuple35 {
->>>>>>> 09f69700... chore: generate stubs
+struct Tuple40 {
bool field_0;
uint256[] field_1;
}
-<<<<<<< HEAD
/// @dev [`CollectionLimits`](up_data_structs::CollectionLimits) representation for EVM.
enum CollectionLimits {
/// @dev How many tokens can a user have on one account.
@@ -692,20 +648,12 @@
}
/// @dev anonymous struct
-struct Tuple32 {
+struct Tuple34 {
CollectionLimits field_0;
bool field_1;
uint256 field_2;
-}
-
-/// @dev anonymous struct
-struct Tuple31 {
- address field_0;
- uint256 field_1;
}
-=======
->>>>>>> 09f69700... chore: generate stubs
/// @dev the ERC-165 identifier for this interface is 0x5b5e139f
contract ERC721Metadata is Dummy, ERC165 {
// /// @notice A descriptive name for a collection of NFTs in this contract
tests/src/eth/abi/fungible.jsondiffbeforeafterboth--- a/tests/src/eth/abi/fungible.json
+++ b/tests/src/eth/abi/fungible.json
@@ -220,7 +220,7 @@
{ "internalType": "bool", "name": "field_1", "type": "bool" },
{ "internalType": "uint256", "name": "field_2", "type": "uint256" }
],
- "internalType": "struct Tuple20[]",
+ "internalType": "struct Tuple23[]",
"name": "",
"type": "tuple[]"
}
@@ -241,11 +241,7 @@
},
{ "internalType": "bool", "name": "field_1", "type": "bool" }
],
-<<<<<<< HEAD
- "internalType": "struct Tuple29[]",
-=======
- "internalType": "struct Tuple27[]",
->>>>>>> 09f69700... chore: generate stubs
+ "internalType": "struct Tuple32[]",
"name": "",
"type": "tuple[]"
}
@@ -266,11 +262,7 @@
"type": "uint256[]"
}
],
-<<<<<<< HEAD
- "internalType": "struct Tuple26",
-=======
- "internalType": "struct Tuple24",
->>>>>>> 09f69700... chore: generate stubs
+ "internalType": "struct Tuple29",
"name": "",
"type": "tuple"
}
tests/src/eth/abi/nonFungible.jsondiffbeforeafterboth--- a/tests/src/eth/abi/nonFungible.json
+++ b/tests/src/eth/abi/nonFungible.json
@@ -250,7 +250,7 @@
{ "internalType": "bool", "name": "field_1", "type": "bool" },
{ "internalType": "uint256", "name": "field_2", "type": "uint256" }
],
- "internalType": "struct Tuple33[]",
+ "internalType": "struct Tuple35[]",
"name": "",
"type": "tuple[]"
}
@@ -271,11 +271,7 @@
},
{ "internalType": "bool", "name": "field_1", "type": "bool" }
],
-<<<<<<< HEAD
- "internalType": "struct Tuple42[]",
-=======
- "internalType": "struct Tuple39[]",
->>>>>>> 09f69700... chore: generate stubs
+ "internalType": "struct Tuple44[]",
"name": "",
"type": "tuple[]"
}
@@ -296,11 +292,7 @@
"type": "uint256[]"
}
],
-<<<<<<< HEAD
- "internalType": "struct Tuple39",
-=======
- "internalType": "struct Tuple36",
->>>>>>> 09f69700... chore: generate stubs
+ "internalType": "struct Tuple41",
"name": "",
"type": "tuple"
}
@@ -770,20 +762,12 @@
},
{ "internalType": "bool", "name": "field_1", "type": "bool" }
],
-<<<<<<< HEAD
- "internalType": "struct Tuple57[]",
-=======
- "internalType": "struct Tuple54[]",
->>>>>>> 9e929f90... chore: generate stubs & types
+ "internalType": "struct Tuple59[]",
"name": "field_1",
"type": "tuple[]"
}
],
-<<<<<<< HEAD
- "internalType": "struct Tuple59[]",
-=======
- "internalType": "struct Tuple56[]",
->>>>>>> 9e929f90... chore: generate stubs & types
+ "internalType": "struct Tuple61[]",
"name": "permissions",
"type": "tuple[]"
}
@@ -844,20 +828,12 @@
},
{ "internalType": "bool", "name": "field_1", "type": "bool" }
],
-<<<<<<< HEAD
- "internalType": "struct Tuple57[]",
-=======
- "internalType": "struct Tuple54[]",
->>>>>>> 9e929f90... chore: generate stubs & types
+ "internalType": "struct Tuple59[]",
"name": "field_1",
"type": "tuple[]"
}
],
-<<<<<<< HEAD
- "internalType": "struct Tuple59[]",
-=======
- "internalType": "struct Tuple56[]",
->>>>>>> 9e929f90... chore: generate stubs & types
+ "internalType": "struct Tuple61[]",
"name": "",
"type": "tuple[]"
}
tests/src/eth/abi/reFungible.jsondiffbeforeafterboth--- a/tests/src/eth/abi/reFungible.json
+++ b/tests/src/eth/abi/reFungible.json
@@ -232,7 +232,7 @@
{ "internalType": "bool", "name": "field_1", "type": "bool" },
{ "internalType": "uint256", "name": "field_2", "type": "uint256" }
],
- "internalType": "struct Tuple32[]",
+ "internalType": "struct Tuple34[]",
"name": "",
"type": "tuple[]"
}
@@ -253,11 +253,7 @@
},
{ "internalType": "bool", "name": "field_1", "type": "bool" }
],
-<<<<<<< HEAD
- "internalType": "struct Tuple41[]",
-=======
- "internalType": "struct Tuple38[]",
->>>>>>> 09f69700... chore: generate stubs
+ "internalType": "struct Tuple43[]",
"name": "",
"type": "tuple[]"
}
@@ -278,11 +274,7 @@
"type": "uint256[]"
}
],
-<<<<<<< HEAD
- "internalType": "struct Tuple38",
-=======
- "internalType": "struct Tuple35",
->>>>>>> 09f69700... chore: generate stubs
+ "internalType": "struct Tuple40",
"name": "",
"type": "tuple"
}
@@ -752,20 +744,12 @@
},
{ "internalType": "bool", "name": "field_1", "type": "bool" }
],
-<<<<<<< HEAD
- "internalType": "struct Tuple56[]",
-=======
- "internalType": "struct Tuple53[]",
->>>>>>> 9e929f90... chore: generate stubs & types
+ "internalType": "struct Tuple58[]",
"name": "field_1",
"type": "tuple[]"
}
],
-<<<<<<< HEAD
- "internalType": "struct Tuple58[]",
-=======
- "internalType": "struct Tuple55[]",
->>>>>>> 9e929f90... chore: generate stubs & types
+ "internalType": "struct Tuple60[]",
"name": "permissions",
"type": "tuple[]"
}
@@ -835,20 +819,12 @@
},
{ "internalType": "bool", "name": "field_1", "type": "bool" }
],
-<<<<<<< HEAD
- "internalType": "struct Tuple56[]",
-=======
- "internalType": "struct Tuple53[]",
->>>>>>> 9e929f90... chore: generate stubs & types
+ "internalType": "struct Tuple58[]",
"name": "field_1",
"type": "tuple[]"
}
],
-<<<<<<< HEAD
- "internalType": "struct Tuple58[]",
-=======
- "internalType": "struct Tuple55[]",
->>>>>>> 9e929f90... chore: generate stubs & types
+ "internalType": "struct Tuple60[]",
"name": "",
"type": "tuple[]"
}
tests/src/eth/api/UniqueFungible.soldiffbeforeafterboth--- a/tests/src/eth/api/UniqueFungible.sol
+++ b/tests/src/eth/api/UniqueFungible.sol
@@ -119,7 +119,7 @@
/// Return `false` if a limit not set.
/// @dev EVM selector for this function is: 0xf63bc572,
/// or in textual repr: collectionLimits()
- function collectionLimits() external view returns (Tuple19[] memory);
+ function collectionLimits() external view returns (Tuple21[] memory);
/// Set limits for the collection.
/// @dev Throws error if limit not found.
@@ -191,20 +191,12 @@
/// Returns nesting for a collection
/// @dev EVM selector for this function is: 0x22d25bfe,
/// or in textual repr: collectionNestingRestrictedCollectionIds()
-<<<<<<< HEAD
- function collectionNestingRestrictedCollectionIds() external view returns (Tuple24 memory);
-=======
- function collectionNestingRestrictedCollectionIds() external view returns (Tuple22 memory);
->>>>>>> 09f69700... chore: generate stubs
+ function collectionNestingRestrictedCollectionIds() external view returns (Tuple26 memory);
/// Returns permissions for a collection
/// @dev EVM selector for this function is: 0x5b2eaf4b,
/// or in textual repr: collectionNestingPermissions()
-<<<<<<< HEAD
- function collectionNestingPermissions() external view returns (Tuple27[] memory);
-=======
- function collectionNestingPermissions() external view returns (Tuple25[] memory);
->>>>>>> 09f69700... chore: generate stubs
+ function collectionNestingPermissions() external view returns (Tuple29[] memory);
/// Set the collection access method.
/// @param mode Access mode
@@ -319,11 +311,7 @@
}
/// @dev anonymous struct
-<<<<<<< HEAD
-struct Tuple27 {
-=======
-struct Tuple25 {
->>>>>>> 09f69700... chore: generate stubs
+struct Tuple29 {
CollectionPermissions field_0;
bool field_1;
}
@@ -334,11 +322,7 @@
}
/// @dev anonymous struct
-<<<<<<< HEAD
-struct Tuple24 {
-=======
-struct Tuple22 {
->>>>>>> 09f69700... chore: generate stubs
+struct Tuple26 {
bool field_0;
uint256[] field_1;
}
@@ -366,7 +350,7 @@
}
/// @dev anonymous struct
-struct Tuple19 {
+struct Tuple21 {
CollectionLimits field_0;
bool field_1;
uint256 field_2;
tests/src/eth/api/UniqueNFT.soldiffbeforeafterboth--- a/tests/src/eth/api/UniqueNFT.sol
+++ b/tests/src/eth/api/UniqueNFT.sol
@@ -30,20 +30,12 @@
/// @param permissions Permissions for keys.
/// @dev EVM selector for this function is: 0xbd92983a,
/// or in textual repr: setTokenPropertyPermissions((string,(uint8,bool)[])[])
-<<<<<<< HEAD
- function setTokenPropertyPermissions(Tuple52[] memory permissions) external;
-=======
- function setTokenPropertyPermissions(Tuple49[] memory permissions) external;
->>>>>>> 9e929f90... chore: generate stubs & types
+ function setTokenPropertyPermissions(Tuple53[] memory permissions) external;
/// @notice Get permissions for token properties.
/// @dev EVM selector for this function is: 0xf23d7790,
/// or in textual repr: tokenPropertyPermissions()
-<<<<<<< HEAD
- function tokenPropertyPermissions() external view returns (Tuple52[] memory);
-=======
- function tokenPropertyPermissions() external view returns (Tuple49[] memory);
->>>>>>> 9e929f90... chore: generate stubs & types
+ function tokenPropertyPermissions() external view returns (Tuple53[] memory);
// /// @notice Set token property value.
// /// @dev Throws error if `msg.sender` has no permission to edit the property.
@@ -105,23 +97,13 @@
}
/// @dev anonymous struct
-<<<<<<< HEAD
-struct Tuple52 {
+struct Tuple53 {
string field_0;
- Tuple50[] field_1;
+ Tuple51[] field_1;
}
/// @dev anonymous struct
-struct Tuple50 {
-=======
-struct Tuple49 {
- string field_0;
- Tuple47[] field_1;
-}
-
-/// @dev anonymous struct
-struct Tuple47 {
->>>>>>> 9e929f90... chore: generate stubs & types
+struct Tuple51 {
EthTokenPermissions field_0;
bool field_1;
}
@@ -233,7 +215,7 @@
/// Return `false` if a limit not set.
/// @dev EVM selector for this function is: 0xf63bc572,
/// or in textual repr: collectionLimits()
- function collectionLimits() external view returns (Tuple30[] memory);
+ function collectionLimits() external view returns (Tuple31[] memory);
/// Set limits for the collection.
/// @dev Throws error if limit not found.
@@ -305,20 +287,12 @@
/// Returns nesting for a collection
/// @dev EVM selector for this function is: 0x22d25bfe,
/// or in textual repr: collectionNestingRestrictedCollectionIds()
-<<<<<<< HEAD
- function collectionNestingRestrictedCollectionIds() external view returns (Tuple35 memory);
-=======
- function collectionNestingRestrictedCollectionIds() external view returns (Tuple32 memory);
->>>>>>> 09f69700... chore: generate stubs
+ function collectionNestingRestrictedCollectionIds() external view returns (Tuple36 memory);
/// Returns permissions for a collection
/// @dev EVM selector for this function is: 0x5b2eaf4b,
/// or in textual repr: collectionNestingPermissions()
-<<<<<<< HEAD
- function collectionNestingPermissions() external view returns (Tuple38[] memory);
-=======
- function collectionNestingPermissions() external view returns (Tuple35[] memory);
->>>>>>> 09f69700... chore: generate stubs
+ function collectionNestingPermissions() external view returns (Tuple39[] memory);
/// Set the collection access method.
/// @param mode Access mode
@@ -433,11 +407,7 @@
}
/// @dev anonymous struct
-<<<<<<< HEAD
-struct Tuple38 {
-=======
-struct Tuple35 {
->>>>>>> 09f69700... chore: generate stubs
+struct Tuple39 {
CollectionPermissions field_0;
bool field_1;
}
@@ -448,16 +418,11 @@
}
/// @dev anonymous struct
-<<<<<<< HEAD
-struct Tuple35 {
-=======
-struct Tuple32 {
->>>>>>> 09f69700... chore: generate stubs
+struct Tuple36 {
bool field_0;
uint256[] field_1;
}
-<<<<<<< HEAD
/// @dev [`CollectionLimits`](up_data_structs::CollectionLimits) representation for EVM.
enum CollectionLimits {
/// @dev How many tokens can a user have on one account.
@@ -481,22 +446,12 @@
}
/// @dev anonymous struct
-struct Tuple30 {
+struct Tuple31 {
CollectionLimits field_0;
bool field_1;
uint256 field_2;
-}
-
-/// @dev anonymous struct
-struct Tuple27 {
- address field_0;
- uint256 field_1;
}
-=======
->>>>>>> 0bf15e6f... fixed tests&tuple instead of struct, refactored `refungible` pallet
-=======
->>>>>>> 09f69700... chore: generate stubs
/// @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
tests/src/eth/api/UniqueRefungible.soldiffbeforeafterboth--- a/tests/src/eth/api/UniqueRefungible.sol
+++ b/tests/src/eth/api/UniqueRefungible.sol
@@ -30,20 +30,12 @@
/// @param permissions Permissions for keys.
/// @dev EVM selector for this function is: 0xbd92983a,
/// or in textual repr: setTokenPropertyPermissions((string,(uint8,bool)[])[])
-<<<<<<< HEAD
- function setTokenPropertyPermissions(Tuple51[] memory permissions) external;
-=======
- function setTokenPropertyPermissions(Tuple48[] memory permissions) external;
->>>>>>> 9e929f90... chore: generate stubs & types
+ function setTokenPropertyPermissions(Tuple52[] memory permissions) external;
/// @notice Get permissions for token properties.
/// @dev EVM selector for this function is: 0xf23d7790,
/// or in textual repr: tokenPropertyPermissions()
-<<<<<<< HEAD
- function tokenPropertyPermissions() external view returns (Tuple51[] memory);
-=======
- function tokenPropertyPermissions() external view returns (Tuple48[] memory);
->>>>>>> 9e929f90... chore: generate stubs & types
+ function tokenPropertyPermissions() external view returns (Tuple52[] memory);
// /// @notice Set token property value.
// /// @dev Throws error if `msg.sender` has no permission to edit the property.
@@ -105,23 +97,13 @@
}
/// @dev anonymous struct
-<<<<<<< HEAD
-struct Tuple51 {
+struct Tuple52 {
string field_0;
- Tuple49[] field_1;
+ Tuple50[] field_1;
}
/// @dev anonymous struct
-struct Tuple49 {
-=======
-struct Tuple48 {
- string field_0;
- Tuple46[] field_1;
-}
-
-/// @dev anonymous struct
-struct Tuple46 {
->>>>>>> 9e929f90... chore: generate stubs & types
+struct Tuple50 {
EthTokenPermissions field_0;
bool field_1;
}
@@ -233,7 +215,7 @@
/// Return `false` if a limit not set.
/// @dev EVM selector for this function is: 0xf63bc572,
/// or in textual repr: collectionLimits()
- function collectionLimits() external view returns (Tuple29[] memory);
+ function collectionLimits() external view returns (Tuple30[] memory);
/// Set limits for the collection.
/// @dev Throws error if limit not found.
@@ -305,20 +287,12 @@
/// Returns nesting for a collection
/// @dev EVM selector for this function is: 0x22d25bfe,
/// or in textual repr: collectionNestingRestrictedCollectionIds()
-<<<<<<< HEAD
- function collectionNestingRestrictedCollectionIds() external view returns (Tuple34 memory);
-=======
- function collectionNestingRestrictedCollectionIds() external view returns (Tuple31 memory);
->>>>>>> 09f69700... chore: generate stubs
+ function collectionNestingRestrictedCollectionIds() external view returns (Tuple35 memory);
/// Returns permissions for a collection
/// @dev EVM selector for this function is: 0x5b2eaf4b,
/// or in textual repr: collectionNestingPermissions()
-<<<<<<< HEAD
- function collectionNestingPermissions() external view returns (Tuple37[] memory);
-=======
- function collectionNestingPermissions() external view returns (Tuple34[] memory);
->>>>>>> 09f69700... chore: generate stubs
+ function collectionNestingPermissions() external view returns (Tuple38[] memory);
/// Set the collection access method.
/// @param mode Access mode
@@ -433,11 +407,7 @@
}
/// @dev anonymous struct
-<<<<<<< HEAD
-struct Tuple37 {
-=======
-struct Tuple34 {
->>>>>>> 09f69700... chore: generate stubs
+struct Tuple38 {
CollectionPermissions field_0;
bool field_1;
}
@@ -448,16 +418,11 @@
}
/// @dev anonymous struct
-<<<<<<< HEAD
-struct Tuple34 {
-=======
-struct Tuple31 {
->>>>>>> 09f69700... chore: generate stubs
+struct Tuple35 {
bool field_0;
uint256[] field_1;
}
-<<<<<<< HEAD
/// @dev [`CollectionLimits`](up_data_structs::CollectionLimits) representation for EVM.
enum CollectionLimits {
/// @dev How many tokens can a user have on one account.
@@ -481,22 +446,12 @@
}
/// @dev anonymous struct
-struct Tuple29 {
+struct Tuple30 {
CollectionLimits field_0;
bool field_1;
uint256 field_2;
-}
-
-/// @dev anonymous struct
-struct Tuple26 {
- address field_0;
- uint256 field_1;
}
-=======
->>>>>>> 0bf15e6f... fixed tests&tuple instead of struct, refactored `refungible` pallet
-=======
->>>>>>> 09f69700... chore: generate stubs
/// @dev the ERC-165 identifier for this interface is 0x5b5e139f
interface ERC721Metadata is Dummy, ERC165 {
// /// @notice A descriptive name for a collection of NFTs in this contract