Skip to content

Commit

Permalink
chore: bump solc to 0.8.19
Browse files Browse the repository at this point in the history
  • Loading branch information
alpanaca committed Mar 21, 2023
1 parent 6a7f741 commit 9d7493e
Show file tree
Hide file tree
Showing 299 changed files with 300 additions and 301 deletions.
4 changes: 2 additions & 2 deletions .vscode.example/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"solidity.compileUsingRemoteVersion": "v0.8.17+commit.8df45f5f",
"solidity.compileUsingRemoteVersion": "v0.8.19+commit.8df45f5f",
"editor.formatOnSave": true,
"[solidity]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
Expand All @@ -11,4 +11,4 @@
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"editor.tabSize": 2
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BUSL
pragma solidity 0.8.17;
pragma solidity 0.8.19;

// ---- External Libraries ---- //
import { OwnableUpgradeable } from "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
Expand Down
2 changes: 1 addition & 1 deletion solidity/contracts/automated-vault/AVDiamond.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BUSL
pragma solidity 0.8.17;
pragma solidity 0.8.19;

import { LibDiamond } from "./libraries/LibDiamond.sol";
import { IAVDiamondCut } from "./interfaces/IAVDiamondCut.sol";
Expand Down
2 changes: 1 addition & 1 deletion solidity/contracts/automated-vault/AVVaultToken.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BUSL
pragma solidity 0.8.17;
pragma solidity 0.8.19;

import { ERC20 } from "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import { Ownable } from "@openzeppelin/contracts/access/Ownable.sol";
Expand Down
2 changes: 1 addition & 1 deletion solidity/contracts/automated-vault/facets/AVAdminFacet.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BUSL
pragma solidity 0.8.17;
pragma solidity 0.8.19;

import { AVVaultToken } from "../AVVaultToken.sol";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;
pragma solidity 0.8.19;

/******************************************************************************\
* Author: Nick Mudge <[email protected]> (https://twitter.com/mudgen)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;
pragma solidity 0.8.19;
/******************************************************************************\
* Author: Nick Mudge <[email protected]> (https://twitter.com/mudgen)
* EIP-2535 Diamonds: https://eips.ethereum.org/EIPS/eip-2535
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BUSL
pragma solidity 0.8.17;
pragma solidity 0.8.19;

// interfaces
import { IAVRebalanceFacet } from "../interfaces/IAVRebalanceFacet.sol";
Expand Down
2 changes: 1 addition & 1 deletion solidity/contracts/automated-vault/facets/AVTradeFacet.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BUSL
pragma solidity 0.8.17;
pragma solidity 0.8.19;

// interfaces
import { IAVTradeFacet } from "../interfaces/IAVTradeFacet.sol";
Expand Down
2 changes: 1 addition & 1 deletion solidity/contracts/automated-vault/facets/AVViewFacet.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BUSL
pragma solidity 0.8.17;
pragma solidity 0.8.19;

// interfaces
import { IAVViewFacet } from "../interfaces/IAVViewFacet.sol";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BUSL
pragma solidity 0.8.17;
pragma solidity 0.8.19;

import { Initializable } from "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
import { OwnableUpgradeable } from "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BUSL
pragma solidity 0.8.17;
pragma solidity 0.8.19;

import { LibAVConstant } from "../libraries/LibAVConstant.sol";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;
pragma solidity 0.8.19;

/******************************************************************************\
* Author: Nick Mudge <[email protected]> (https://twitter.com/mudgen)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;
pragma solidity 0.8.19;

/******************************************************************************\
* Author: Nick Mudge <[email protected]> (https://twitter.com/mudgen)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BUSL
pragma solidity 0.8.17;
pragma solidity 0.8.19;

interface IAVHandler {
function totalLpBalance() external view returns (uint256);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BUSL
pragma solidity 0.8.17;
pragma solidity 0.8.19;

// interfaces
import { ISwapPairLike } from "./ISwapPairLike.sol";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BUSL
pragma solidity 0.8.17;
pragma solidity 0.8.19;

interface IAVRebalanceFacet {
error AVRebalanceFacet_Unauthorized(address _caller);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BUSL
pragma solidity 0.8.17;
pragma solidity 0.8.19;

interface IAVTradeFacet {
error AVTradeFacet_TooLittleReceived();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BUSL
pragma solidity 0.8.17;
pragma solidity 0.8.19;

import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BUSL
pragma solidity 0.8.17;
pragma solidity 0.8.19;

interface IAVViewFacet {
function getDebtValues(address _vaultToken) external view returns (uint256 _stableDebtValue, uint256 _assetDebtValue);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BUSL
pragma solidity 0.8.17;
pragma solidity 0.8.19;

interface IAlpacaV2Oracle {
/// @dev Errors
Expand Down
2 changes: 1 addition & 1 deletion solidity/contracts/automated-vault/interfaces/IERC165.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;
pragma solidity 0.8.19;

interface IERC165 {
/// @notice Query if a contract implements an interface
Expand Down
2 changes: 1 addition & 1 deletion solidity/contracts/automated-vault/interfaces/IERC173.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;
pragma solidity 0.8.19;

/// @title ERC-173 Contract Ownership Standard
/// Note: the ERC-165 identifier for this interface is 0x7f5828d0
Expand Down
2 changes: 1 addition & 1 deletion solidity/contracts/automated-vault/interfaces/IERC20.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT

pragma solidity 0.8.17;
pragma solidity 0.8.19;

interface IERC20 {
event Transfer(address indexed from, address indexed to, uint256 value);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BUSL
pragma solidity 0.8.17;
pragma solidity 0.8.19;

interface IInterestRateModel {
function getInterestRate(uint256 debt, uint256 floating) external pure returns (uint256);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BUSL
pragma solidity 0.8.17;
pragma solidity 0.8.19;

interface IMoneyMarket {
function getIbTokenFromToken(address _token) external view returns (address);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
Alpaca Fin Corporation
*/

pragma solidity 0.8.17;
pragma solidity 0.8.19;

interface IPancakePair {
event Approval(address indexed owner, address indexed spender, uint256 value);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;
pragma solidity 0.8.19;

interface IPancakeRouter02 {
function factory() external pure returns (address);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
Alpaca Fin Corporation
*/

pragma solidity 0.8.17;
pragma solidity 0.8.19;

interface ISwapPairLike {
function totalSupply() external view returns (uint256);
Expand Down
2 changes: 1 addition & 1 deletion solidity/contracts/automated-vault/libraries/LibAV01.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BUSL
pragma solidity 0.8.17;
pragma solidity 0.8.19;

// libraries
import { LibShareUtil } from "./LibShareUtil.sol";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BUSL
pragma solidity 0.8.17;
pragma solidity 0.8.19;

library LibAVConstant {
enum AssetTier {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;
pragma solidity 0.8.19;

/******************************************************************************\
* Author: Nick Mudge <[email protected]> (https://twitter.com/mudgen)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT

pragma solidity 0.8.17;
pragma solidity 0.8.19;

/// @title Contains 512-bit math functions
/// @notice Facilitates multiplication and division that can have overflow of an intermediate value without any loss of precision
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BUSL
pragma solidity 0.8.17;
pragma solidity 0.8.19;

library LibReentrancyGuard {
error LibReentrancyGuard_ReentrantCall();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;
pragma solidity 0.8.19;

import { IERC20 } from "../interfaces/IERC20.sol";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BUSL
pragma solidity 0.8.17;
pragma solidity 0.8.19;

import { LibFullMath } from "./LibFullMath.sol";

Expand Down
2 changes: 1 addition & 1 deletion solidity/contracts/example-diamond/Diamond.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;
pragma solidity 0.8.19;

/******************************************************************************\
* Imported from: https://github.com/mudgen/diamond-3-hardhat
Expand Down
2 changes: 1 addition & 1 deletion solidity/contracts/example-diamond/facets/DepositFacet.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;
pragma solidity 0.8.19;

import { ERC20 } from "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import { SafeERC20 } from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;
pragma solidity 0.8.19;

/******************************************************************************\
* Author: Nick Mudge <[email protected]> (https://twitter.com/mudgen)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;
pragma solidity 0.8.19;
/******************************************************************************\
* Author: Nick Mudge <[email protected]> (https://twitter.com/mudgen)
* EIP-2535 Diamonds: https://eips.ethereum.org/EIPS/eip-2535
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;
pragma solidity 0.8.19;

import { LibDiamond } from "../libraries/LibDiamond.sol";
import { IERC173 } from "../interfaces/IERC173.sol";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;
pragma solidity 0.8.19;

/******************************************************************************\
* Author: Nick Mudge <[email protected]> (https://twitter.com/mudgen)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;
pragma solidity 0.8.19;

/******************************************************************************\
* Author: Nick Mudge <[email protected]> (https://twitter.com/mudgen)
Expand Down
2 changes: 1 addition & 1 deletion solidity/contracts/example-diamond/interfaces/IERC165.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;
pragma solidity 0.8.19;

interface IERC165 {
/// @notice Query if a contract implements an interface
Expand Down
2 changes: 1 addition & 1 deletion solidity/contracts/example-diamond/interfaces/IERC173.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;
pragma solidity 0.8.19;

/// @title ERC-173 Contract Ownership Standard
/// Note: the ERC-165 identifier for this interface is 0x7f5828d0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;
pragma solidity 0.8.19;

/******************************************************************************\
* Author: Nick Mudge <[email protected]> (https://twitter.com/mudgen)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BUSL
pragma solidity 0.8.17;
pragma solidity 0.8.19;

interface IMoneyMarketAccountManager {
error MoneyMarketAccountManager_WNativeMarketNotOpen();
Expand Down
2 changes: 1 addition & 1 deletion solidity/contracts/interfaces/IMoneyMarketReader.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BUSL
pragma solidity 0.8.17;
pragma solidity 0.8.19;

interface IMoneyMarketReader {
struct MarketSummary {
Expand Down
2 changes: 1 addition & 1 deletion solidity/contracts/interfaces/IWNative.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BUSL
pragma solidity 0.8.17;
pragma solidity 0.8.19;

interface IWNative {
function deposit() external payable;
Expand Down
2 changes: 1 addition & 1 deletion solidity/contracts/interfaces/IWNativeRelayer.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BUSL
pragma solidity 0.8.17;
pragma solidity 0.8.19;

interface IWNativeRelayer {
function withdraw(uint256 _amount) external;
Expand Down
2 changes: 1 addition & 1 deletion solidity/contracts/lyf/LYFDiamond.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BUSL
pragma solidity 0.8.17;
pragma solidity 0.8.19;

import { LibDiamond } from "./libraries/LibDiamond.sol";
import { LibLYF01 } from "./libraries/LibLYF01.sol";
Expand Down
2 changes: 1 addition & 1 deletion solidity/contracts/lyf/facets/LYFAdminFacet.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BUSL
pragma solidity 0.8.17;
pragma solidity 0.8.19;

// ---- Libraries ---- //
import { LibLYF01 } from "../libraries/LibLYF01.sol";
Expand Down
2 changes: 1 addition & 1 deletion solidity/contracts/lyf/facets/LYFCollateralFacet.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BUSL
pragma solidity 0.8.17;
pragma solidity 0.8.19;

// libs
import { LibLYF01 } from "../libraries/LibLYF01.sol";
Expand Down
2 changes: 1 addition & 1 deletion solidity/contracts/lyf/facets/LYFDiamondCutFacet.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;
pragma solidity 0.8.19;

/******************************************************************************\
* Author: Nick Mudge <[email protected]> (https://twitter.com/mudgen)
Expand Down
2 changes: 1 addition & 1 deletion solidity/contracts/lyf/facets/LYFDiamondLoupeFacet.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;
pragma solidity 0.8.19;
/******************************************************************************\
* Author: Nick Mudge <[email protected]> (https://twitter.com/mudgen)
* EIP-2535 Diamonds: https://eips.ethereum.org/EIPS/eip-2535
Expand Down
Loading

0 comments on commit 9d7493e

Please sign in to comment.