32 lines
946 B
Solidity
32 lines
946 B
Solidity
// SPDX-License-Identifier: MIT
|
|
|
|
pragma solidity ^0.8.0;
|
|
|
|
import "../utils/ArraysUpgradeable.sol";
|
|
import "../proxy/utils/Initializable.sol";
|
|
|
|
contract ArraysImplUpgradeable is Initializable {
|
|
using ArraysUpgradeable for uint256[];
|
|
|
|
uint256[] private _array;
|
|
|
|
function __ArraysImpl_init(uint256[] memory array) internal onlyInitializing {
|
|
__ArraysImpl_init_unchained(array);
|
|
}
|
|
|
|
function __ArraysImpl_init_unchained(uint256[] memory array) internal onlyInitializing {
|
|
_array = array;
|
|
}
|
|
|
|
function findUpperBound(uint256 element) external view returns (uint256) {
|
|
return _array.findUpperBound(element);
|
|
}
|
|
|
|
/**
|
|
* This empty reserved space is put in place to allow future versions to add new
|
|
* variables without shifting down storage in the inheritance chain.
|
|
* See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
|
|
*/
|
|
uint256[49] private __gap;
|
|
}
|