File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed
Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change 1+ // SPDX-License-Identifier: MIT
2+
3+ pragma solidity ^ 0.8.8 ;
4+
5+ import { EnumerableSet } from './EnumerableSet.sol ' ;
6+
7+ contract EnumerableSetUintMock {
8+ using EnumerableSet for EnumerableSet.UintSet;
9+
10+ EnumerableSet.UintSet internal uintSet;
11+
12+ function at (uint256 index ) external view returns (uint256 ) {
13+ return uintSet.at (index);
14+ }
15+
16+ function contains (uint256 value ) external view returns (bool ) {
17+ return uintSet.contains (value);
18+ }
19+
20+ function indexOf (uint256 value ) external view returns (uint256 ) {
21+ return uintSet.indexOf (value);
22+ }
23+
24+ function length () external view returns (uint256 ) {
25+ return uintSet.length ();
26+ }
27+
28+ function add (uint256 value ) external returns (bool ) {
29+ return uintSet.add (value);
30+ }
31+
32+ function remove (uint256 value ) external returns (bool ) {
33+ return uintSet.remove (value);
34+ }
35+
36+ function toArray () external view returns (uint256 [] memory ) {
37+ return uintSet.toArray ();
38+ }
39+ }
You can’t perform that action at this time.
0 commit comments