git.delta.rocks / unique-network / refs/commits / f001d288aada

difftreelog

chore generate stubs

PraetorP2022-12-16parent: #3ef6188.patch.diff
in: master

11 files changed

modifiedpallets/fungible/src/stubs/UniqueFungible.rawdiffbeforeafterboth

binary blob — no preview

modifiedpallets/fungible/src/stubs/UniqueFungible.soldiffbeforeafterboth
--- a/pallets/fungible/src/stubs/UniqueFungible.sol
+++ b/pallets/fungible/src/stubs/UniqueFungible.sol
@@ -487,15 +487,25 @@
 	uint256[] field_1;
 }
 
+/// @dev [`CollectionLimits`](up_data_structs::CollectionLimits) representation for EVM.
 enum CollectionLimits {
+	/// @dev How many tokens can a user have on one account.
 	AccountTokenOwnership,
+	/// @dev How many bytes of data are available for sponsorship.
 	SponsoredDataSize,
+	/// @dev In any case, chain default: [`SponsoringRateLimit::SponsoringDisabled`]
 	SponsoredDataRateLimit,
+	/// @dev How many tokens can be mined into this collection.
 	TokenLimit,
+	/// @dev Timeouts for transfer sponsoring.
 	SponsorTransferTimeout,
+	/// @dev Timeout for sponsoring an approval in passed blocks.
 	SponsorApproveTimeout,
+	/// @dev Whether the collection owner of the collection can send tokens (which belong to other users).
 	OwnerCanTransfer,
+	/// @dev Can the collection owner burn other people's tokens.
 	OwnerCanDestroy,
+	/// @dev Is it possible to send tokens from this collection between users.
 	TransferEnabled
 }
 
modifiedpallets/nonfungible/src/stubs/UniqueNFT.rawdiffbeforeafterboth

binary blob — no preview

modifiedpallets/nonfungible/src/stubs/UniqueNFT.soldiffbeforeafterboth
--- a/pallets/nonfungible/src/stubs/UniqueNFT.sol
+++ b/pallets/nonfungible/src/stubs/UniqueNFT.sol
@@ -42,18 +42,19 @@
 	/// @param permissions Permissions for keys.
 	/// @dev EVM selector for this function is: 0xbd92983a,
 	///  or in textual repr: setTokenPropertyPermissions((string,(uint8,bool)[])[])
-	function setTokenPropertyPermissions(Tuple48[] memory permissions) public {
+	function setTokenPropertyPermissions(Tuple59[] memory permissions) public {
 		require(false, stub_error);
 		permissions;
 		dummy = 0;
 	}
 
+	/// @notice Get permissions for token properties.
 	/// @dev EVM selector for this function is: 0xf23d7790,
 	///  or in textual repr: tokenPropertyPermissions()
-	function tokenPropertyPermissions() public view returns (Tuple48[] memory) {
+	function tokenPropertyPermissions() public view returns (Tuple59[] memory) {
 		require(false, stub_error);
 		dummy;
-		return new Tuple48[](0);
+		return new Tuple59[](0);
 	}
 
 	// /// @notice Set token property value.
@@ -132,20 +133,24 @@
 	bytes value;
 }
 
+/// @dev Ethereum representation of TokenPermissions (see [`up_data_structs::PropertyPermission`]) fields as an enumeration.
 enum EthTokenPermissions {
+	/// @dev Permission to change the property and property permission. See [`up_data_structs::PropertyPermission::mutable`]
 	Mutable,
+	/// @dev Change permission for the collection administrator. See [`up_data_structs::PropertyPermission::token_owner`]
 	TokenOwner,
+	/// @dev Permission to change the property for the owner of the token. See [`up_data_structs::PropertyPermission::collection_admin`]
 	CollectionAdmin
 }
 
 /// @dev anonymous struct
-struct Tuple48 {
+struct Tuple59 {
 	string field_0;
-	Tuple46[] field_1;
+	Tuple57[] field_1;
 }
 
 /// @dev anonymous struct
-struct Tuple46 {
+struct Tuple57 {
 	EthTokenPermissions field_0;
 	bool field_1;
 }
@@ -620,15 +625,25 @@
 	uint256[] field_1;
 }
 
+/// @dev [`CollectionLimits`](up_data_structs::CollectionLimits) representation for EVM.
 enum CollectionLimits {
+	/// @dev How many tokens can a user have on one account.
 	AccountTokenOwnership,
+	/// @dev How many bytes of data are available for sponsorship.
 	SponsoredDataSize,
+	/// @dev In any case, chain default: [`SponsoringRateLimit::SponsoringDisabled`]
 	SponsoredDataRateLimit,
+	/// @dev How many tokens can be mined into this collection.
 	TokenLimit,
+	/// @dev Timeouts for transfer sponsoring.
 	SponsorTransferTimeout,
+	/// @dev Timeout for sponsoring an approval in passed blocks.
 	SponsorApproveTimeout,
+	/// @dev Whether the collection owner of the collection can send tokens (which belong to other users).
 	OwnerCanTransfer,
+	/// @dev Can the collection owner burn other people's tokens.
 	OwnerCanDestroy,
+	/// @dev Is it possible to send tokens from this collection between users.
 	TransferEnabled
 }
 
modifiedpallets/refungible/src/stubs/UniqueRefungible.rawdiffbeforeafterboth

binary blob — no preview

modifiedpallets/refungible/src/stubs/UniqueRefungible.soldiffbeforeafterboth
--- a/pallets/refungible/src/stubs/UniqueRefungible.sol
+++ b/pallets/refungible/src/stubs/UniqueRefungible.sol
@@ -42,7 +42,7 @@
 	/// @param permissions Permissions for keys.
 	/// @dev EVM selector for this function is: 0xbd92983a,
 	///  or in textual repr: setTokenPropertyPermissions((string,(uint8,bool)[])[])
-	function setTokenPropertyPermissions(Tuple53[] memory permissions) public {
+	function setTokenPropertyPermissions(Tuple58[] memory permissions) public {
 		require(false, stub_error);
 		permissions;
 		dummy = 0;
@@ -51,10 +51,10 @@
 	/// @notice Get permissions for token properties.
 	/// @dev EVM selector for this function is: 0xf23d7790,
 	///  or in textual repr: tokenPropertyPermissions()
-	function tokenPropertyPermissions() public view returns (Tuple53[] memory) {
+	function tokenPropertyPermissions() public view returns (Tuple58[] memory) {
 		require(false, stub_error);
 		dummy;
-		return new Tuple53[](0);
+		return new Tuple58[](0);
 	}
 
 	// /// @notice Set token property value.
@@ -133,20 +133,24 @@
 	bytes value;
 }
 
+/// @dev Ethereum representation of TokenPermissions (see [`up_data_structs::PropertyPermission`]) fields as an enumeration.
 enum EthTokenPermissions {
+	/// @dev Permission to change the property and property permission. See [`up_data_structs::PropertyPermission::mutable`]
 	Mutable,
+	/// @dev Change permission for the collection administrator. See [`up_data_structs::PropertyPermission::token_owner`]
 	TokenOwner,
+	/// @dev Permission to change the property for the owner of the token. See [`up_data_structs::PropertyPermission::collection_admin`]
 	CollectionAdmin
 }
 
 /// @dev anonymous struct
-struct Tuple53 {
+struct Tuple58 {
 	string field_0;
-	Tuple51[] field_1;
+	Tuple56[] field_1;
 }
 
 /// @dev anonymous struct
-struct Tuple51 {
+struct Tuple56 {
 	EthTokenPermissions field_0;
 	bool field_1;
 }
@@ -621,15 +625,25 @@
 	uint256[] field_1;
 }
 
+/// @dev [`CollectionLimits`](up_data_structs::CollectionLimits) representation for EVM.
 enum CollectionLimits {
+	/// @dev How many tokens can a user have on one account.
 	AccountTokenOwnership,
+	/// @dev How many bytes of data are available for sponsorship.
 	SponsoredDataSize,
+	/// @dev In any case, chain default: [`SponsoringRateLimit::SponsoringDisabled`]
 	SponsoredDataRateLimit,
+	/// @dev How many tokens can be mined into this collection.
 	TokenLimit,
+	/// @dev Timeouts for transfer sponsoring.
 	SponsorTransferTimeout,
+	/// @dev Timeout for sponsoring an approval in passed blocks.
 	SponsorApproveTimeout,
+	/// @dev Whether the collection owner of the collection can send tokens (which belong to other users).
 	OwnerCanTransfer,
+	/// @dev Can the collection owner burn other people's tokens.
 	OwnerCanDestroy,
+	/// @dev Is it possible to send tokens from this collection between users.
 	TransferEnabled
 }
 
modifiedtests/src/eth/abi/nonFungible.jsondiffbeforeafterboth
--- a/tests/src/eth/abi/nonFungible.json
+++ b/tests/src/eth/abi/nonFungible.json
@@ -736,12 +736,12 @@
               },
               { "internalType": "bool", "name": "field_1", "type": "bool" }
             ],
-            "internalType": "struct Tuple46[]",
+            "internalType": "struct Tuple57[]",
             "name": "field_1",
             "type": "tuple[]"
           }
         ],
-        "internalType": "struct Tuple48[]",
+        "internalType": "struct Tuple59[]",
         "name": "permissions",
         "type": "tuple[]"
       }
@@ -802,12 +802,12 @@
               },
               { "internalType": "bool", "name": "field_1", "type": "bool" }
             ],
-            "internalType": "struct Tuple46[]",
+            "internalType": "struct Tuple57[]",
             "name": "field_1",
             "type": "tuple[]"
           }
         ],
-        "internalType": "struct Tuple48[]",
+        "internalType": "struct Tuple59[]",
         "name": "",
         "type": "tuple[]"
       }
modifiedtests/src/eth/abi/reFungible.jsondiffbeforeafterboth
--- a/tests/src/eth/abi/reFungible.json
+++ b/tests/src/eth/abi/reFungible.json
@@ -718,12 +718,12 @@
               },
               { "internalType": "bool", "name": "field_1", "type": "bool" }
             ],
-            "internalType": "struct Tuple51[]",
+            "internalType": "struct Tuple56[]",
             "name": "field_1",
             "type": "tuple[]"
           }
         ],
-        "internalType": "struct Tuple53[]",
+        "internalType": "struct Tuple58[]",
         "name": "permissions",
         "type": "tuple[]"
       }
@@ -793,12 +793,12 @@
               },
               { "internalType": "bool", "name": "field_1", "type": "bool" }
             ],
-            "internalType": "struct Tuple51[]",
+            "internalType": "struct Tuple56[]",
             "name": "field_1",
             "type": "tuple[]"
           }
         ],
-        "internalType": "struct Tuple53[]",
+        "internalType": "struct Tuple58[]",
         "name": "",
         "type": "tuple[]"
       }
modifiedtests/src/eth/api/UniqueFungible.soldiffbeforeafterboth
--- a/tests/src/eth/api/UniqueFungible.sol
+++ b/tests/src/eth/api/UniqueFungible.sol
@@ -327,15 +327,25 @@
 	uint256[] field_1;
 }
 
+/// @dev [`CollectionLimits`](up_data_structs::CollectionLimits) representation for EVM.
 enum CollectionLimits {
+	/// @dev How many tokens can a user have on one account.
 	AccountTokenOwnership,
+	/// @dev How many bytes of data are available for sponsorship.
 	SponsoredDataSize,
+	/// @dev In any case, chain default: [`SponsoringRateLimit::SponsoringDisabled`]
 	SponsoredDataRateLimit,
+	/// @dev How many tokens can be mined into this collection.
 	TokenLimit,
+	/// @dev Timeouts for transfer sponsoring.
 	SponsorTransferTimeout,
+	/// @dev Timeout for sponsoring an approval in passed blocks.
 	SponsorApproveTimeout,
+	/// @dev Whether the collection owner of the collection can send tokens (which belong to other users).
 	OwnerCanTransfer,
+	/// @dev Can the collection owner burn other people's tokens.
 	OwnerCanDestroy,
+	/// @dev Is it possible to send tokens from this collection between users.
 	TransferEnabled
 }
 
modifiedtests/src/eth/api/UniqueNFT.soldiffbeforeafterboth
30 /// @param permissions Permissions for keys.30 /// @param permissions Permissions for keys.
31 /// @dev EVM selector for this function is: 0xbd92983a,31 /// @dev EVM selector for this function is: 0xbd92983a,
32 /// or in textual repr: setTokenPropertyPermissions((string,(uint8,bool)[])[])32 /// or in textual repr: setTokenPropertyPermissions((string,(uint8,bool)[])[])
33 function setTokenPropertyPermissions(Tuple43[] memory permissions) external;33 function setTokenPropertyPermissions(Tuple52[] memory permissions) external;
3434
35 /// @notice Get permissions for token properties.
35 /// @dev EVM selector for this function is: 0xf23d7790,36 /// @dev EVM selector for this function is: 0xf23d7790,
36 /// or in textual repr: tokenPropertyPermissions()37 /// or in textual repr: tokenPropertyPermissions()
37 function tokenPropertyPermissions() external view returns (Tuple43[] memory);38 function tokenPropertyPermissions() external view returns (Tuple52[] memory);
3839
39 // /// @notice Set token property value.40 // /// @notice Set token property value.
40 // /// @dev Throws error if `msg.sender` has no permission to edit the property.41 // /// @dev Throws error if `msg.sender` has no permission to edit the property.
85 bytes value;86 bytes value;
86}87}
8788
89/// @dev Ethereum representation of TokenPermissions (see [`up_data_structs::PropertyPermission`]) fields as an enumeration.
88enum EthTokenPermissions {90enum EthTokenPermissions {
91 /// @dev Permission to change the property and property permission. See [`up_data_structs::PropertyPermission::mutable`]
89 Mutable,92 Mutable,
93 /// @dev Change permission for the collection administrator. See [`up_data_structs::PropertyPermission::token_owner`]
90 TokenOwner,94 TokenOwner,
95 /// @dev Permission to change the property for the owner of the token. See [`up_data_structs::PropertyPermission::collection_admin`]
91 CollectionAdmin96 CollectionAdmin
92}97}
9398
94/// @dev anonymous struct99/// @dev anonymous struct
95struct Tuple43 {100struct Tuple52 {
96 string field_0;101 string field_0;
97 Tuple41[] field_1;102 Tuple50[] field_1;
98}103}
99104
100/// @dev anonymous struct105/// @dev anonymous struct
101struct Tuple41 {106struct Tuple50 {
102 EthTokenPermissions field_0;107 EthTokenPermissions field_0;
103 bool field_1;108 bool field_1;
104}109}
418 uint256[] field_1;423 uint256[] field_1;
419}424}
420425
426/// @dev [`CollectionLimits`](up_data_structs::CollectionLimits) representation for EVM.
421enum CollectionLimits {427enum CollectionLimits {
428 /// @dev How many tokens can a user have on one account.
422 AccountTokenOwnership,429 AccountTokenOwnership,
430 /// @dev How many bytes of data are available for sponsorship.
423 SponsoredDataSize,431 SponsoredDataSize,
432 /// @dev In any case, chain default: [`SponsoringRateLimit::SponsoringDisabled`]
424 SponsoredDataRateLimit,433 SponsoredDataRateLimit,
434 /// @dev How many tokens can be mined into this collection.
425 TokenLimit,435 TokenLimit,
436 /// @dev Timeouts for transfer sponsoring.
426 SponsorTransferTimeout,437 SponsorTransferTimeout,
438 /// @dev Timeout for sponsoring an approval in passed blocks.
427 SponsorApproveTimeout,439 SponsorApproveTimeout,
440 /// @dev Whether the collection owner of the collection can send tokens (which belong to other users).
428 OwnerCanTransfer,441 OwnerCanTransfer,
442 /// @dev Can the collection owner burn other people's tokens.
429 OwnerCanDestroy,443 OwnerCanDestroy,
444 /// @dev Is it possible to send tokens from this collection between users.
430 TransferEnabled445 TransferEnabled
431}446}
432447
modifiedtests/src/eth/api/UniqueRefungible.soldiffbeforeafterboth
--- a/tests/src/eth/api/UniqueRefungible.sol
+++ b/tests/src/eth/api/UniqueRefungible.sol
@@ -30,12 +30,12 @@
 	/// @param permissions Permissions for keys.
 	/// @dev EVM selector for this function is: 0xbd92983a,
 	///  or in textual repr: setTokenPropertyPermissions((string,(uint8,bool)[])[])
-	function setTokenPropertyPermissions(Tuple47[] memory permissions) external;
+	function setTokenPropertyPermissions(Tuple51[] memory permissions) external;
 
 	/// @notice Get permissions for token properties.
 	/// @dev EVM selector for this function is: 0xf23d7790,
 	///  or in textual repr: tokenPropertyPermissions()
-	function tokenPropertyPermissions() external view returns (Tuple47[] memory);
+	function tokenPropertyPermissions() external view returns (Tuple51[] memory);
 
 	// /// @notice Set token property value.
 	// /// @dev Throws error if `msg.sender` has no permission to edit the property.
@@ -86,20 +86,24 @@
 	bytes value;
 }
 
+/// @dev Ethereum representation of TokenPermissions (see [`up_data_structs::PropertyPermission`]) fields as an enumeration.
 enum EthTokenPermissions {
+	/// @dev Permission to change the property and property permission. See [`up_data_structs::PropertyPermission::mutable`]
 	Mutable,
+	/// @dev Change permission for the collection administrator. See [`up_data_structs::PropertyPermission::token_owner`]
 	TokenOwner,
+	/// @dev Permission to change the property for the owner of the token. See [`up_data_structs::PropertyPermission::collection_admin`]
 	CollectionAdmin
 }
 
 /// @dev anonymous struct
-struct Tuple47 {
+struct Tuple51 {
 	string field_0;
-	Tuple45[] field_1;
+	Tuple49[] field_1;
 }
 
 /// @dev anonymous struct
-struct Tuple45 {
+struct Tuple49 {
 	EthTokenPermissions field_0;
 	bool field_1;
 }
@@ -419,15 +423,25 @@
 	uint256[] field_1;
 }
 
+/// @dev [`CollectionLimits`](up_data_structs::CollectionLimits) representation for EVM.
 enum CollectionLimits {
+	/// @dev How many tokens can a user have on one account.
 	AccountTokenOwnership,
+	/// @dev How many bytes of data are available for sponsorship.
 	SponsoredDataSize,
+	/// @dev In any case, chain default: [`SponsoringRateLimit::SponsoringDisabled`]
 	SponsoredDataRateLimit,
+	/// @dev How many tokens can be mined into this collection.
 	TokenLimit,
+	/// @dev Timeouts for transfer sponsoring.
 	SponsorTransferTimeout,
+	/// @dev Timeout for sponsoring an approval in passed blocks.
 	SponsorApproveTimeout,
+	/// @dev Whether the collection owner of the collection can send tokens (which belong to other users).
 	OwnerCanTransfer,
+	/// @dev Can the collection owner burn other people's tokens.
 	OwnerCanDestroy,
+	/// @dev Is it possible to send tokens from this collection between users.
 	TransferEnabled
 }