Skip to content

Commit 7b1e7b3

Browse files
author
Docs Syncer
committed
CI: 2.7.2
1 parent d986887 commit 7b1e7b3

File tree

5 files changed

+65
-5
lines changed

5 files changed

+65
-5
lines changed

docs/reference/contracts/libs/arrays/ArrayHelper.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,15 @@ function reverse(
152152
The function to reverse an address array
153153
### reverse
154154

155+
```solidity
156+
function reverse(
157+
bool[] memory arr_
158+
) internal pure returns (bool[] memory reversed_)
159+
```
160+
161+
The function to reverse a bool array
162+
### reverse
163+
155164
```solidity
156165
function reverse(
157166
string[] memory arr_
@@ -209,6 +218,17 @@ function insert(
209218
The function to insert an address array into the other array
210219
### insert
211220

221+
```solidity
222+
function insert(
223+
bool[] memory to_,
224+
uint256 index_,
225+
bool[] memory what_
226+
) internal pure returns (uint256)
227+
```
228+
229+
The function to insert a bool array into the other array
230+
### insert
231+
212232
```solidity
213233
function insert(
214234
string[] memory to_,

docs/reference/contracts/libs/arrays/SetHelper.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,16 @@ function add(
4242
The function to insert an array of elements into the uint256 set
4343
### add
4444

45+
```solidity
46+
function add(
47+
EnumerableSet.Bytes32Set storage set,
48+
bytes32[] memory array_
49+
) internal
50+
```
51+
52+
The function to insert an array of elements into the bytes32 set
53+
### add
54+
4555
```solidity
4656
function add(StringSet.Set storage set, string[] memory array_) internal
4757
```
@@ -78,6 +88,16 @@ function strictAdd(
7888
The function for the strict insertion of an array of elements into the uint256 set
7989
### strictAdd
8090

91+
```solidity
92+
function strictAdd(
93+
EnumerableSet.Bytes32Set storage set,
94+
bytes32[] memory array_
95+
) internal
96+
```
97+
98+
The function for the strict insertion of an array of elements into the bytes32 set
99+
### strictAdd
100+
81101
```solidity
82102
function strictAdd(StringSet.Set storage set, string[] memory array_) internal
83103
```
@@ -114,6 +134,16 @@ function remove(
114134
The function to remove an array of elements from the uint256 set
115135
### remove
116136

137+
```solidity
138+
function remove(
139+
EnumerableSet.Bytes32Set storage set,
140+
bytes32[] memory array_
141+
) internal
142+
```
143+
144+
The function to remove an array of elements from the bytes32 set
145+
### remove
146+
117147
```solidity
118148
function remove(StringSet.Set storage set, string[] memory array_) internal
119149
```
@@ -150,6 +180,16 @@ function strictRemove(
150180
The function for the strict removal of an array of elements from the uint256 set
151181
### strictRemove
152182

183+
```solidity
184+
function strictRemove(
185+
EnumerableSet.Bytes32Set storage set,
186+
bytes32[] memory array_
187+
) internal
188+
```
189+
190+
The function for the strict removal of an array of elements from the bytes32 set
191+
### strictRemove
192+
153193
```solidity
154194
function strictRemove(
155195
StringSet.Set storage set,

docs/reference/contracts/libs/data-structures/memory/Vector.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ This library is inspired by C++ STD vector to enable push() and pop() operations
1414

1515
Currently Solidity allows resizing only storage arrays, which may be a roadblock if you need to
1616
filter the elements by a specific property or add new ones without writing bulky code. The Vector library
17-
is ment to help with that.
17+
is meant to help with that.
1818

1919
It is very important to create Vectors via constructors (newUint, newBytes32, newAddress) as they allocate and clean
2020
the memory for the data structure.

docs/reference/contracts/libs/utils/DecimalsConverter.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ library DecimalsConverter
1010

1111
This library is used to convert numbers that use token's N decimals to M decimals.
1212
Comes extremely handy with standardizing the business logic that is intended to work with many different ERC20 tokens
13-
that have different precision (decimals). One can perform calculations with 18 decimals only and resort to convertion
13+
that have different precision (decimals). One can perform calculations with 18 decimals only and resort to conversion
1414
only when the payouts (or interactions) with the actual tokes have to be made.
1515

1616
The best usage scenario involves accepting and calculating values with 18 decimals throughout the project, despite the tokens decimals.
@@ -383,7 +383,7 @@ function convert(
383383
) internal view returns (uint256)
384384
```
385385

386-
The function to do the token precision convertion
386+
The function to do the token precision conversion
387387

388388

389389
Parameters:
@@ -411,7 +411,7 @@ function convert(
411411
) internal pure returns (uint256)
412412
```
413413

414-
The function to do the precision convertion
414+
The function to do the precision conversion
415415

416416

417417
Parameters:

docs/reference/contracts/libs/utils/TypeCaster.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ library TypeCaster
1010

1111
This library simplifies non-obvious type castings.
1212

13-
Convertions from static to dynamic arrays, singleton arrays, and arrays of different types are supported.
13+
Conversions from static to dynamic arrays, singleton arrays, and arrays of different types are supported.
1414
## Functions info
1515

1616
### asUint256Array

0 commit comments

Comments
 (0)