You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
No long uses structs as return values for batch getters.
If a single attribute is sent on batch getter/setters it will use it for all collections and tokens.
Copy file name to clipboardExpand all lines: contracts/RMRK/extension/tokenAttributes/IERC7508.sol
+20-20Lines changed: 20 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -748,11 +748,11 @@ interface IERC7508 is IERC165 {
748
748
* @param boolKeys An array of bool type attribute keys to retrieve
749
749
* @param addressKeys An array of address type attribute keys to retrieve
750
750
* @param bytesKeys An array of bytes type attribute keys to retrieve
751
-
* @return stringAttributes An array of `StringAttribute` structs containing the string type attributes
752
-
* @return uintAttributes An array of `UintAttribute` structs containing the uint type attributes
753
-
* @return boolAttributes An array of `BoolAttribute` structs containing the bool type attributes
754
-
* @return addressAttributes An array of `AddressAttribute` structs containing the address type attributes
755
-
* @return bytesAttributes An array of `BytesAttribute` structs containing the bytes type attributes
751
+
* @return stringAttributes An array of strings, in the same order as the stringKeys
752
+
* @return uintAttributes An array of uints, in the same order as the uintKeys
753
+
* @return boolAttributes An array of bools, in the same order as the boolKeys
754
+
* @return addressAttributes An array of addresses, in the same order as the addressKeys
755
+
* @return bytesAttributes An array of bytes, in the same order as the bytesKeys
756
756
*/
757
757
function getAttributes(
758
758
addresscollection,
@@ -766,11 +766,11 @@ interface IERC7508 is IERC165 {
766
766
external
767
767
view
768
768
returns (
769
-
StringAttribute[] memorystringAttributes,
770
-
UintAttribute[] memoryuintAttributes,
771
-
BoolAttribute[] memoryboolAttributes,
772
-
AddressAttribute[] memoryaddressAttributes,
773
-
BytesAttribute[] memorybytesAttributes
769
+
string[] memorystringAttributes,
770
+
uint256[] memoryuintAttributes,
771
+
bool[] memoryboolAttributes,
772
+
address[] memoryaddressAttributes,
773
+
bytes[] memorybytesAttributes
774
774
);
775
775
776
776
/**
@@ -783,13 +783,13 @@ interface IERC7508 is IERC165 {
783
783
* @param collections Addresses of the collections, in the same order as the attribute keys. If all tokens are from the same collection the array can contain a single element with the collection address.
784
784
* @param tokenIds IDs of the tokens, in the same order as the attribute keys. If all attributes are for the same token the array can contain a single element with the token ID.
785
785
* @param attributeKeys An array of string keys to retrieve
786
-
* @return attributes An array of `StringAttribute` structs
786
+
* @return attributes An array of strings, in the same order as the attribute keys
* @notice Used to get multiple uint parameter values for a token.
@@ -801,13 +801,13 @@ interface IERC7508 is IERC165 {
801
801
* @param collections Addresses of the collections, in the same order as the attribute keys. If all tokens are from the same collection the array can contain a single element with the collection address.
802
802
* @param tokenIds IDs of the tokens, in the same order as the attribute keys. If all attributes are for the same token the array can contain a single element with the token ID.
803
803
* @param attributeKeys An array of uint keys to retrieve
804
-
* @return attributes An array of `UintAttribute` structs
804
+
* @return attributes An array of uints, in the same order as the attribute keys
* @notice Used to get multiple bool parameter values for a token.
@@ -819,13 +819,13 @@ interface IERC7508 is IERC165 {
819
819
* @param collections Addresses of the collections, in the same order as the attribute keys. If all tokens are from the same collection the array can contain a single element with the collection address.
820
820
* @param tokenIds IDs of the tokens, in the same order as the attribute keys. If all attributes are for the same token the array can contain a single element with the token ID.
821
821
* @param attributeKeys An array of bool keys to retrieve
822
-
* @return attributes An array of `BoolAttribute` structs
822
+
* @return attributes An array of bools, in the same order as the attribute keys
* @notice Used to get multiple address parameter values for a token.
@@ -837,13 +837,13 @@ interface IERC7508 is IERC165 {
837
837
* @param collections Addresses of the collections, in the same order as the attribute keys. If all tokens are from the same collection the array can contain a single element with the collection address.
838
838
* @param tokenIds IDs of the tokens, in the same order as the attribute keys. If all attributes are for the same token the array can contain a single element with the token ID.
839
839
* @param attributeKeys An array of address keys to retrieve
840
-
* @return attributes An array of `AddressAttribute` structs
840
+
* @return attributes An array of addresses, in the same order as the attribute keys
* @notice Used to get multiple bytes parameter values for a token.
@@ -855,11 +855,11 @@ interface IERC7508 is IERC165 {
855
855
* @param collections Addresses of the collections, in the same order as the attribute keys. If all tokens are from the same collection the array can contain a single element with the collection address.
856
856
* @param tokenIds IDs of the tokens, in the same order as the attribute keys. If all attributes are for the same token the array can contain a single element with the token ID.
857
857
* @param attributeKeys An array of bytes keys to retrieve
858
-
* @return attributes An array of `BytesAttribute` structs
858
+
* @return attributes An array of bytes, in the same order as the attribute keys
0 commit comments