@@ -9,13 +9,16 @@ import {SetHelper} from "../../../libs/arrays/SetHelper.sol";
99contract SetHelperMock {
1010 using EnumerableSet for EnumerableSet.UintSet;
1111 using EnumerableSet for EnumerableSet.AddressSet;
12+ using EnumerableSet for EnumerableSet.Bytes32Set;
1213 using StringSet for StringSet.Set;
1314 using SetHelper for StringSet.Set;
1415 using SetHelper for EnumerableSet.UintSet;
1516 using SetHelper for EnumerableSet.AddressSet;
17+ using SetHelper for EnumerableSet.Bytes32Set;
1618
1719 EnumerableSet.AddressSet internal addressSet;
1820 EnumerableSet.UintSet internal uintSet;
21+ EnumerableSet.Bytes32Set internal bytes32Set;
1922 StringSet.Set internal stringSet;
2023
2124 function addToAddressSet (address [] memory arr_ ) external {
@@ -26,6 +29,10 @@ contract SetHelperMock {
2629 uintSet.add (arr_);
2730 }
2831
32+ function addToBytes32Set (bytes32 [] memory arr_ ) external {
33+ bytes32Set.add (arr_);
34+ }
35+
2936 function addToStringSet (string [] memory arr_ ) external {
3037 stringSet.add (arr_);
3138 }
@@ -38,6 +45,10 @@ contract SetHelperMock {
3845 uintSet.strictAdd (arr_);
3946 }
4047
48+ function strictAddToBytes32Set (bytes32 [] memory arr_ ) external {
49+ bytes32Set.strictAdd (arr_);
50+ }
51+
4152 function strictAddToStringSet (string [] memory arr_ ) external {
4253 stringSet.strictAdd (arr_);
4354 }
@@ -50,6 +61,10 @@ contract SetHelperMock {
5061 uintSet.remove (arr_);
5162 }
5263
64+ function removeFromBytes32Set (bytes32 [] memory arr_ ) external {
65+ bytes32Set.remove (arr_);
66+ }
67+
5368 function removeFromStringSet (string [] memory arr_ ) external {
5469 stringSet.remove (arr_);
5570 }
@@ -62,6 +77,10 @@ contract SetHelperMock {
6277 uintSet.strictRemove (arr_);
6378 }
6479
80+ function strictRemoveFromBytes32Set (bytes32 [] memory arr_ ) external {
81+ bytes32Set.strictRemove (arr_);
82+ }
83+
6584 function strictRemoveFromStringSet (string [] memory arr_ ) external {
6685 stringSet.strictRemove (arr_);
6786 }
@@ -74,6 +93,10 @@ contract SetHelperMock {
7493 return uintSet.values ();
7594 }
7695
96+ function getBytes32Set () external view returns (bytes32 [] memory ) {
97+ return bytes32Set.values ();
98+ }
99+
77100 function getStringSet () external view returns (string [] memory ) {
78101 return stringSet.values ();
79102 }
0 commit comments