From 7756b932defef04c48553d613d6f183f25cfeb6b Mon Sep 17 00:00:00 2001 From: bhavik-m Date: Tue, 22 Mar 2022 20:57:59 +0530 Subject: [PATCH] added on optimism --- contracts/optimism/common/basic.sol | 1 + contracts/optimism/common/interfaces.sol | 1 + contracts/optimism/common/math.sol | 1 + contracts/optimism/common/stores.sol | 1 + contracts/optimism/connectors/1inch/1inch-v3/events.sol | 1 + contracts/optimism/connectors/1inch/1inch-v3/helpers.sol | 1 + contracts/optimism/connectors/1inch/1inch-v3/interface.sol | 1 + contracts/optimism/connectors/1inch/1inch-v3/main.sol | 1 + contracts/optimism/connectors/1inch/1inch-v4/events.sol | 1 + contracts/optimism/connectors/1inch/1inch-v4/helpers.sol | 1 + contracts/optimism/connectors/1inch/1inch-v4/interface.sol | 1 + contracts/optimism/connectors/1inch/1inch-v4/main.sol | 1 + contracts/optimism/connectors/aave/v3-import/events.sol | 1 + contracts/optimism/connectors/aave/v3-import/helpers.sol | 1 + contracts/optimism/connectors/aave/v3-import/interface.sol | 1 + contracts/optimism/connectors/aave/v3-import/main.sol | 1 + contracts/optimism/connectors/aave/v3/events.sol | 1 + contracts/optimism/connectors/aave/v3/helpers.sol | 1 + contracts/optimism/connectors/aave/v3/interface.sol | 1 + contracts/optimism/connectors/aave/v3/main.sol | 1 + contracts/optimism/connectors/basic/events.sol | 1 + contracts/optimism/connectors/basic/main.sol | 1 + contracts/optimism/connectors/uniswap/v3_auto_router/events.sol | 1 + .../optimism/connectors/uniswap/v3_auto_router/helpers.sol | 1 + .../optimism/connectors/uniswap/v3_auto_router/interface.sol | 1 + contracts/optimism/connectors/uniswap/v3_auto_router/main.sol | 1 + contracts/optimism/connectors/uniswap/v3_staker/events.sol | 2 +- contracts/optimism/connectors/uniswap/v3_staker/helpers.sol | 2 +- contracts/optimism/connectors/uniswap/v3_staker/interface.sol | 2 +- contracts/optimism/connectors/uniswap/v3_staker/main.sol | 2 +- contracts/optimism/connectors/weth/events.sol | 1 + contracts/optimism/connectors/weth/helpers.sol | 1 + 32 files changed, 32 insertions(+), 4 deletions(-) diff --git a/contracts/optimism/common/basic.sol b/contracts/optimism/common/basic.sol index c0650dfb..20337270 100644 --- a/contracts/optimism/common/basic.sol +++ b/contracts/optimism/common/basic.sol @@ -1,3 +1,4 @@ +//SPDX-License-Identifier: MIT pragma solidity ^0.7.0; import { TokenInterface } from "./interfaces.sol"; diff --git a/contracts/optimism/common/interfaces.sol b/contracts/optimism/common/interfaces.sol index 4af87008..03211b06 100644 --- a/contracts/optimism/common/interfaces.sol +++ b/contracts/optimism/common/interfaces.sol @@ -1,3 +1,4 @@ +//SPDX-License-Identifier: MIT pragma solidity ^0.7.0; interface TokenInterface { diff --git a/contracts/optimism/common/math.sol b/contracts/optimism/common/math.sol index 850e2a94..679fbbbf 100644 --- a/contracts/optimism/common/math.sol +++ b/contracts/optimism/common/math.sol @@ -1,3 +1,4 @@ +//SPDX-License-Identifier: MIT pragma solidity ^0.7.0; import { SafeMath } from "@openzeppelin/contracts/math/SafeMath.sol"; diff --git a/contracts/optimism/common/stores.sol b/contracts/optimism/common/stores.sol index 58e26579..09d3cfca 100644 --- a/contracts/optimism/common/stores.sol +++ b/contracts/optimism/common/stores.sol @@ -1,3 +1,4 @@ +//SPDX-License-Identifier: MIT pragma solidity ^0.7.0; import { MemoryInterface } from "./interfaces.sol"; diff --git a/contracts/optimism/connectors/1inch/1inch-v3/events.sol b/contracts/optimism/connectors/1inch/1inch-v3/events.sol index bec3b27a..14cd1873 100644 --- a/contracts/optimism/connectors/1inch/1inch-v3/events.sol +++ b/contracts/optimism/connectors/1inch/1inch-v3/events.sol @@ -1,3 +1,4 @@ +//SPDX-License-Identifier: MIT pragma solidity ^0.7.0; contract Events { diff --git a/contracts/optimism/connectors/1inch/1inch-v3/helpers.sol b/contracts/optimism/connectors/1inch/1inch-v3/helpers.sol index fef36790..2c24a8b3 100644 --- a/contracts/optimism/connectors/1inch/1inch-v3/helpers.sol +++ b/contracts/optimism/connectors/1inch/1inch-v3/helpers.sol @@ -1,3 +1,4 @@ +//SPDX-License-Identifier: MIT pragma solidity ^0.7.0; import { TokenInterface } from "../../../common/interfaces.sol"; diff --git a/contracts/optimism/connectors/1inch/1inch-v3/interface.sol b/contracts/optimism/connectors/1inch/1inch-v3/interface.sol index d2d790b7..f63b509b 100644 --- a/contracts/optimism/connectors/1inch/1inch-v3/interface.sol +++ b/contracts/optimism/connectors/1inch/1inch-v3/interface.sol @@ -1,3 +1,4 @@ +//SPDX-License-Identifier: MIT pragma solidity ^0.7.0; import { TokenInterface } from "../../../common/interfaces.sol"; diff --git a/contracts/optimism/connectors/1inch/1inch-v3/main.sol b/contracts/optimism/connectors/1inch/1inch-v3/main.sol index bee6070e..23b57154 100644 --- a/contracts/optimism/connectors/1inch/1inch-v3/main.sol +++ b/contracts/optimism/connectors/1inch/1inch-v3/main.sol @@ -1,3 +1,4 @@ +//SPDX-License-Identifier: MIT pragma solidity ^0.7.0; pragma experimental ABIEncoderV2; diff --git a/contracts/optimism/connectors/1inch/1inch-v4/events.sol b/contracts/optimism/connectors/1inch/1inch-v4/events.sol index bec3b27a..14cd1873 100644 --- a/contracts/optimism/connectors/1inch/1inch-v4/events.sol +++ b/contracts/optimism/connectors/1inch/1inch-v4/events.sol @@ -1,3 +1,4 @@ +//SPDX-License-Identifier: MIT pragma solidity ^0.7.0; contract Events { diff --git a/contracts/optimism/connectors/1inch/1inch-v4/helpers.sol b/contracts/optimism/connectors/1inch/1inch-v4/helpers.sol index 99e04f97..34647fb5 100644 --- a/contracts/optimism/connectors/1inch/1inch-v4/helpers.sol +++ b/contracts/optimism/connectors/1inch/1inch-v4/helpers.sol @@ -1,3 +1,4 @@ +//SPDX-License-Identifier: MIT pragma solidity ^0.7.0; import { TokenInterface } from "../../../common/interfaces.sol"; diff --git a/contracts/optimism/connectors/1inch/1inch-v4/interface.sol b/contracts/optimism/connectors/1inch/1inch-v4/interface.sol index d2d790b7..f63b509b 100644 --- a/contracts/optimism/connectors/1inch/1inch-v4/interface.sol +++ b/contracts/optimism/connectors/1inch/1inch-v4/interface.sol @@ -1,3 +1,4 @@ +//SPDX-License-Identifier: MIT pragma solidity ^0.7.0; import { TokenInterface } from "../../../common/interfaces.sol"; diff --git a/contracts/optimism/connectors/1inch/1inch-v4/main.sol b/contracts/optimism/connectors/1inch/1inch-v4/main.sol index 59812799..cd254ac6 100644 --- a/contracts/optimism/connectors/1inch/1inch-v4/main.sol +++ b/contracts/optimism/connectors/1inch/1inch-v4/main.sol @@ -1,3 +1,4 @@ +//SPDX-License-Identifier: MIT pragma solidity ^0.7.0; pragma experimental ABIEncoderV2; diff --git a/contracts/optimism/connectors/aave/v3-import/events.sol b/contracts/optimism/connectors/aave/v3-import/events.sol index 08013251..03aafca4 100644 --- a/contracts/optimism/connectors/aave/v3-import/events.sol +++ b/contracts/optimism/connectors/aave/v3-import/events.sol @@ -1,3 +1,4 @@ +//SPDX-License-Identifier: MIT pragma solidity ^0.7.0; pragma experimental ABIEncoderV2; diff --git a/contracts/optimism/connectors/aave/v3-import/helpers.sol b/contracts/optimism/connectors/aave/v3-import/helpers.sol index 41afc79e..4b609f94 100644 --- a/contracts/optimism/connectors/aave/v3-import/helpers.sol +++ b/contracts/optimism/connectors/aave/v3-import/helpers.sol @@ -1,3 +1,4 @@ +//SPDX-License-Identifier: MIT pragma solidity ^0.7.0; import { DSMath } from "../../../common/math.sol"; diff --git a/contracts/optimism/connectors/aave/v3-import/interface.sol b/contracts/optimism/connectors/aave/v3-import/interface.sol index 2085007b..384e7369 100644 --- a/contracts/optimism/connectors/aave/v3-import/interface.sol +++ b/contracts/optimism/connectors/aave/v3-import/interface.sol @@ -1,3 +1,4 @@ +//SPDX-License-Identifier: MIT pragma solidity ^0.7.0; interface AaveInterface { diff --git a/contracts/optimism/connectors/aave/v3-import/main.sol b/contracts/optimism/connectors/aave/v3-import/main.sol index 052fdcc6..599dc703 100644 --- a/contracts/optimism/connectors/aave/v3-import/main.sol +++ b/contracts/optimism/connectors/aave/v3-import/main.sol @@ -1,3 +1,4 @@ +//SPDX-License-Identifier: MIT pragma solidity ^0.7.0; pragma experimental ABIEncoderV2; /** diff --git a/contracts/optimism/connectors/aave/v3/events.sol b/contracts/optimism/connectors/aave/v3/events.sol index 9f60f22b..09c88ea7 100644 --- a/contracts/optimism/connectors/aave/v3/events.sol +++ b/contracts/optimism/connectors/aave/v3/events.sol @@ -1,3 +1,4 @@ +//SPDX-License-Identifier: MIT pragma solidity ^0.7.0; contract Events { diff --git a/contracts/optimism/connectors/aave/v3/helpers.sol b/contracts/optimism/connectors/aave/v3/helpers.sol index f0fd9188..ae72fa02 100644 --- a/contracts/optimism/connectors/aave/v3/helpers.sol +++ b/contracts/optimism/connectors/aave/v3/helpers.sol @@ -1,3 +1,4 @@ +//SPDX-License-Identifier: MIT pragma solidity ^0.7.0; import { DSMath } from "../../../common/math.sol"; diff --git a/contracts/optimism/connectors/aave/v3/interface.sol b/contracts/optimism/connectors/aave/v3/interface.sol index 8ae14716..81553143 100644 --- a/contracts/optimism/connectors/aave/v3/interface.sol +++ b/contracts/optimism/connectors/aave/v3/interface.sol @@ -1,3 +1,4 @@ +//SPDX-License-Identifier: MIT pragma solidity ^0.7.0; interface AaveInterface { diff --git a/contracts/optimism/connectors/aave/v3/main.sol b/contracts/optimism/connectors/aave/v3/main.sol index 62be7a41..2beb8e67 100644 --- a/contracts/optimism/connectors/aave/v3/main.sol +++ b/contracts/optimism/connectors/aave/v3/main.sol @@ -1,3 +1,4 @@ +//SPDX-License-Identifier: MIT pragma solidity ^0.7.0; /** diff --git a/contracts/optimism/connectors/basic/events.sol b/contracts/optimism/connectors/basic/events.sol index b68f3801..6ce85a22 100644 --- a/contracts/optimism/connectors/basic/events.sol +++ b/contracts/optimism/connectors/basic/events.sol @@ -1,3 +1,4 @@ +//SPDX-License-Identifier: MIT pragma solidity ^0.7.0; contract Events { diff --git a/contracts/optimism/connectors/basic/main.sol b/contracts/optimism/connectors/basic/main.sol index 30c7b03c..ad4bc98d 100644 --- a/contracts/optimism/connectors/basic/main.sol +++ b/contracts/optimism/connectors/basic/main.sol @@ -1,3 +1,4 @@ +//SPDX-License-Identifier: MIT pragma solidity ^0.7.0; /** diff --git a/contracts/optimism/connectors/uniswap/v3_auto_router/events.sol b/contracts/optimism/connectors/uniswap/v3_auto_router/events.sol index 12a4fd3c..9bc3c407 100644 --- a/contracts/optimism/connectors/uniswap/v3_auto_router/events.sol +++ b/contracts/optimism/connectors/uniswap/v3_auto_router/events.sol @@ -1,3 +1,4 @@ +//SPDX-License-Identifier: MIT pragma solidity ^0.7.0; contract Events { diff --git a/contracts/optimism/connectors/uniswap/v3_auto_router/helpers.sol b/contracts/optimism/connectors/uniswap/v3_auto_router/helpers.sol index 3e73bc68..2650810b 100644 --- a/contracts/optimism/connectors/uniswap/v3_auto_router/helpers.sol +++ b/contracts/optimism/connectors/uniswap/v3_auto_router/helpers.sol @@ -1,3 +1,4 @@ +//SPDX-License-Identifier: MIT pragma solidity ^0.7.0; import { TokenInterface } from "../../../common/interfaces.sol"; diff --git a/contracts/optimism/connectors/uniswap/v3_auto_router/interface.sol b/contracts/optimism/connectors/uniswap/v3_auto_router/interface.sol index 3482cdd3..63b7a724 100644 --- a/contracts/optimism/connectors/uniswap/v3_auto_router/interface.sol +++ b/contracts/optimism/connectors/uniswap/v3_auto_router/interface.sol @@ -1,3 +1,4 @@ +//SPDX-License-Identifier: MIT pragma solidity ^0.7.0; import { TokenInterface } from "../../../common/interfaces.sol"; diff --git a/contracts/optimism/connectors/uniswap/v3_auto_router/main.sol b/contracts/optimism/connectors/uniswap/v3_auto_router/main.sol index be7b8235..381e30f2 100644 --- a/contracts/optimism/connectors/uniswap/v3_auto_router/main.sol +++ b/contracts/optimism/connectors/uniswap/v3_auto_router/main.sol @@ -1,3 +1,4 @@ +//SPDX-License-Identifier: MIT pragma solidity ^0.7.0; pragma experimental ABIEncoderV2; diff --git a/contracts/optimism/connectors/uniswap/v3_staker/events.sol b/contracts/optimism/connectors/uniswap/v3_staker/events.sol index d670cfaa..cea5a42a 100644 --- a/contracts/optimism/connectors/uniswap/v3_staker/events.sol +++ b/contracts/optimism/connectors/uniswap/v3_staker/events.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0-or-later +//SPDX-License-Identifier: MIT pragma solidity ^0.7.0; contract Events { diff --git a/contracts/optimism/connectors/uniswap/v3_staker/helpers.sol b/contracts/optimism/connectors/uniswap/v3_staker/helpers.sol index 04460272..b36d0530 100644 --- a/contracts/optimism/connectors/uniswap/v3_staker/helpers.sol +++ b/contracts/optimism/connectors/uniswap/v3_staker/helpers.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0-or-later +//SPDX-License-Identifier: MIT pragma solidity ^0.7.6; pragma abicoder v2; diff --git a/contracts/optimism/connectors/uniswap/v3_staker/interface.sol b/contracts/optimism/connectors/uniswap/v3_staker/interface.sol index 11a9926b..2b05fe53 100644 --- a/contracts/optimism/connectors/uniswap/v3_staker/interface.sol +++ b/contracts/optimism/connectors/uniswap/v3_staker/interface.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0-or-later +//SPDX-License-Identifier: MIT pragma solidity =0.7.6; pragma abicoder v2; diff --git a/contracts/optimism/connectors/uniswap/v3_staker/main.sol b/contracts/optimism/connectors/uniswap/v3_staker/main.sol index 4d34a52e..f0b6a5b9 100644 --- a/contracts/optimism/connectors/uniswap/v3_staker/main.sol +++ b/contracts/optimism/connectors/uniswap/v3_staker/main.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0-or-later +//SPDX-License-Identifier: MIT pragma solidity ^0.7.6; pragma abicoder v2; diff --git a/contracts/optimism/connectors/weth/events.sol b/contracts/optimism/connectors/weth/events.sol index f8ec366a..f1d8310f 100644 --- a/contracts/optimism/connectors/weth/events.sol +++ b/contracts/optimism/connectors/weth/events.sol @@ -1,3 +1,4 @@ +//SPDX-License-Identifier: MIT pragma solidity ^0.7.0; contract Events { diff --git a/contracts/optimism/connectors/weth/helpers.sol b/contracts/optimism/connectors/weth/helpers.sol index e68b30c8..236fad40 100644 --- a/contracts/optimism/connectors/weth/helpers.sol +++ b/contracts/optimism/connectors/weth/helpers.sol @@ -1,3 +1,4 @@ +//SPDX-License-Identifier: MIT pragma solidity ^0.7.0; import { TokenInterface } from "../../common/interfaces.sol";