Skip to content

Commit

Permalink
CI: 2.7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Docs Syncer committed Mar 15, 2024
1 parent d986887 commit 7b1e7b3
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 5 deletions.
20 changes: 20 additions & 0 deletions docs/reference/contracts/libs/arrays/ArrayHelper.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,15 @@ function reverse(
The function to reverse an address array
### reverse

```solidity
function reverse(
bool[] memory arr_
) internal pure returns (bool[] memory reversed_)
```

The function to reverse a bool array
### reverse

```solidity
function reverse(
string[] memory arr_
Expand Down Expand Up @@ -209,6 +218,17 @@ function insert(
The function to insert an address array into the other array
### insert

```solidity
function insert(
bool[] memory to_,
uint256 index_,
bool[] memory what_
) internal pure returns (uint256)
```

The function to insert a bool array into the other array
### insert

```solidity
function insert(
string[] memory to_,
Expand Down
40 changes: 40 additions & 0 deletions docs/reference/contracts/libs/arrays/SetHelper.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,16 @@ function add(
The function to insert an array of elements into the uint256 set
### add

```solidity
function add(
EnumerableSet.Bytes32Set storage set,
bytes32[] memory array_
) internal
```

The function to insert an array of elements into the bytes32 set
### add

```solidity
function add(StringSet.Set storage set, string[] memory array_) internal
```
Expand Down Expand Up @@ -78,6 +88,16 @@ function strictAdd(
The function for the strict insertion of an array of elements into the uint256 set
### strictAdd

```solidity
function strictAdd(
EnumerableSet.Bytes32Set storage set,
bytes32[] memory array_
) internal
```

The function for the strict insertion of an array of elements into the bytes32 set
### strictAdd

```solidity
function strictAdd(StringSet.Set storage set, string[] memory array_) internal
```
Expand Down Expand Up @@ -114,6 +134,16 @@ function remove(
The function to remove an array of elements from the uint256 set
### remove

```solidity
function remove(
EnumerableSet.Bytes32Set storage set,
bytes32[] memory array_
) internal
```

The function to remove an array of elements from the bytes32 set
### remove

```solidity
function remove(StringSet.Set storage set, string[] memory array_) internal
```
Expand Down Expand Up @@ -150,6 +180,16 @@ function strictRemove(
The function for the strict removal of an array of elements from the uint256 set
### strictRemove

```solidity
function strictRemove(
EnumerableSet.Bytes32Set storage set,
bytes32[] memory array_
) internal
```

The function for the strict removal of an array of elements from the bytes32 set
### strictRemove

```solidity
function strictRemove(
StringSet.Set storage set,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ This library is inspired by C++ STD vector to enable push() and pop() operations

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

It is very important to create Vectors via constructors (newUint, newBytes32, newAddress) as they allocate and clean
the memory for the data structure.
Expand Down
6 changes: 3 additions & 3 deletions docs/reference/contracts/libs/utils/DecimalsConverter.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ library DecimalsConverter

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

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

The function to do the token precision convertion
The function to do the token precision conversion


Parameters:
Expand Down Expand Up @@ -411,7 +411,7 @@ function convert(
) internal pure returns (uint256)
```

The function to do the precision convertion
The function to do the precision conversion


Parameters:
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/contracts/libs/utils/TypeCaster.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ library TypeCaster

This library simplifies non-obvious type castings.

Convertions from static to dynamic arrays, singleton arrays, and arrays of different types are supported.
Conversions from static to dynamic arrays, singleton arrays, and arrays of different types are supported.
## Functions info

### asUint256Array
Expand Down

0 comments on commit 7b1e7b3

Please sign in to comment.