File tree 2 files changed +65
-3
lines changed
2 files changed +65
-3
lines changed Original file line number Diff line number Diff line change 2
2
pragma solidity ^ 0.8.11 ;
3
3
4
4
// ========== External imports ==========
5
- import "@openzeppelin/contracts-upgradeable/token/ERC721/ERC721Upgradeable .sol " ;
5
+ import "@openzeppelin/contracts-upgradeable/token/ERC721/extensions/ERC721EnumerableUpgradeable .sol " ;
6
6
7
7
import "@openzeppelin/contracts-upgradeable/utils/MulticallUpgradeable.sol " ;
8
8
import "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol " ;
@@ -31,7 +31,7 @@ contract Multiwrap is
31
31
ReentrancyGuardUpgradeable ,
32
32
ERC2771ContextUpgradeable ,
33
33
MulticallUpgradeable ,
34
- ERC721Upgradeable ,
34
+ ERC721EnumerableUpgradeable ,
35
35
IMultiwrap
36
36
{
37
37
/*///////////////////////////////////////////////////////////////
@@ -135,7 +135,7 @@ contract Multiwrap is
135
135
public
136
136
view
137
137
virtual
138
- override (ERC1155Receiver , ERC721Upgradeable , IERC165 )
138
+ override (ERC1155Receiver , ERC721EnumerableUpgradeable , IERC165 )
139
139
returns (bool )
140
140
{
141
141
return
Original file line number Diff line number Diff line change @@ -856,6 +856,51 @@ function symbol() external view returns (string)
856
856
| ---| ---| ---|
857
857
| _ 0 | string | undefined |
858
858
859
+ ### tokenByIndex
860
+
861
+ ``` solidity
862
+ function tokenByIndex(uint256 index) external view returns (uint256)
863
+ ```
864
+
865
+
866
+
867
+ * See {IERC721Enumerable-tokenByIndex}.*
868
+
869
+ #### Parameters
870
+
871
+ | Name | Type | Description |
872
+ | ---| ---| ---|
873
+ | index | uint256 | undefined |
874
+
875
+ #### Returns
876
+
877
+ | Name | Type | Description |
878
+ | ---| ---| ---|
879
+ | _ 0 | uint256 | undefined |
880
+
881
+ ### tokenOfOwnerByIndex
882
+
883
+ ``` solidity
884
+ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256)
885
+ ```
886
+
887
+
888
+
889
+ * See {IERC721Enumerable-tokenOfOwnerByIndex}.*
890
+
891
+ #### Parameters
892
+
893
+ | Name | Type | Description |
894
+ | ---| ---| ---|
895
+ | owner | address | undefined |
896
+ | index | uint256 | undefined |
897
+
898
+ #### Returns
899
+
900
+ | Name | Type | Description |
901
+ | ---| ---| ---|
902
+ | _ 0 | uint256 | undefined |
903
+
859
904
### tokenURI
860
905
861
906
``` solidity
@@ -878,6 +923,23 @@ function tokenURI(uint256 _tokenId) external view returns (string)
878
923
| ---| ---| ---|
879
924
| _ 0 | string | undefined |
880
925
926
+ ### totalSupply
927
+
928
+ ``` solidity
929
+ function totalSupply() external view returns (uint256)
930
+ ```
931
+
932
+
933
+
934
+ * See {IERC721Enumerable-totalSupply}.*
935
+
936
+
937
+ #### Returns
938
+
939
+ | Name | Type | Description |
940
+ | ---| ---| ---|
941
+ | _ 0 | uint256 | undefined |
942
+
881
943
### transferFrom
882
944
883
945
``` solidity
You can’t perform that action at this time.
0 commit comments