From 5c1ce4ef5e2d0d850ff86a64221b71e82fd3de55 Mon Sep 17 00:00:00 2001 From: Uwe Voelker Date: Mon, 31 May 2021 23:53:24 +0200 Subject: [PATCH] add license and solidity version to interfaces --- contracts/interfaces/IBearingAssetOracle.sol | 7 +++++++ contracts/interfaces/ICDPRegistry.sol | 11 ++++++++--- contracts/interfaces/ICollateralRegistry.sol | 7 +++++++ contracts/interfaces/ICurvePool.sol | 7 +++++++ contracts/interfaces/ICurveProvider.sol | 7 +++++++ contracts/interfaces/ICurveRegistry.sol | 7 +++++++ contracts/interfaces/IForceTransferAssetStore.sol | 7 +++++++ contracts/interfaces/IOracleEth.sol | 7 +++++++ contracts/interfaces/IOracleRegistry.sol | 7 ++++++- contracts/interfaces/IOracleUsd.sol | 7 +++++++ contracts/interfaces/IToken.sol | 7 +++++++ contracts/interfaces/IVault.sol | 7 +++++++ contracts/interfaces/IVaultManagerParameters.sol | 7 +++++++ contracts/interfaces/IVaultParameters.sol | 7 +++++++ contracts/interfaces/IWETH.sol | 7 +++++++ contracts/interfaces/IWrappedToUnderlyingOracle.sol | 7 +++++++ contracts/interfaces/IcyToken.sol | 7 +++++++ 17 files changed, 119 insertions(+), 4 deletions(-) diff --git a/contracts/interfaces/IBearingAssetOracle.sol b/contracts/interfaces/IBearingAssetOracle.sol index 9b7de89..acb6022 100644 --- a/contracts/interfaces/IBearingAssetOracle.sol +++ b/contracts/interfaces/IBearingAssetOracle.sol @@ -1,3 +1,10 @@ +// SPDX-License-Identifier: bsl-1.1 + +/* + Copyright 2020 Unit Protocol: Artem Zakharov (az@unit.xyz). +*/ +pragma solidity ^0.7.6; + interface IBearingAssetOracle { function assetToUsd ( address bearing, uint256 amount ) external view returns ( uint256 ); function bearingToUnderlying ( address bearing, uint256 amount ) external view returns ( address, uint256 ); diff --git a/contracts/interfaces/ICDPRegistry.sol b/contracts/interfaces/ICDPRegistry.sol index 0b83ff9..66d8796 100644 --- a/contracts/interfaces/ICDPRegistry.sol +++ b/contracts/interfaces/ICDPRegistry.sol @@ -1,13 +1,18 @@ -pragma experimental ABIEncoderV2; +// SPDX-License-Identifier: bsl-1.1 +/* + Copyright 2020 Unit Protocol: Artem Zakharov (az@unit.xyz). +*/ +pragma solidity ^0.7.6; +pragma experimental ABIEncoderV2; interface ICDPRegistry { - + struct CDP { address asset; address owner; } - + function batchCheckpoint ( address[] calldata assets, address[] calldata owners ) external; function batchCheckpointForAsset ( address asset, address[] calldata owners ) external; function checkpoint ( address asset, address owner ) external; diff --git a/contracts/interfaces/ICollateralRegistry.sol b/contracts/interfaces/ICollateralRegistry.sol index 2a2405a..3b7d6d9 100644 --- a/contracts/interfaces/ICollateralRegistry.sol +++ b/contracts/interfaces/ICollateralRegistry.sol @@ -1,3 +1,10 @@ +// SPDX-License-Identifier: bsl-1.1 + +/* + Copyright 2020 Unit Protocol: Artem Zakharov (az@unit.xyz). +*/ +pragma solidity ^0.7.6; + interface ICollateralRegistry { function addCollateral ( address asset ) external; function collateralId ( address ) external view returns ( uint256 ); diff --git a/contracts/interfaces/ICurvePool.sol b/contracts/interfaces/ICurvePool.sol index f5cc7f5..e6325cd 100644 --- a/contracts/interfaces/ICurvePool.sol +++ b/contracts/interfaces/ICurvePool.sol @@ -1,3 +1,10 @@ +// SPDX-License-Identifier: bsl-1.1 + +/* + Copyright 2020 Unit Protocol: Artem Zakharov (az@unit.xyz). +*/ +pragma solidity ^0.7.6; + interface ICurvePool { function get_virtual_price() external view returns (uint); function coins(uint) external view returns (address); diff --git a/contracts/interfaces/ICurveProvider.sol b/contracts/interfaces/ICurveProvider.sol index 52eb59f..a92a8e9 100644 --- a/contracts/interfaces/ICurveProvider.sol +++ b/contracts/interfaces/ICurveProvider.sol @@ -1,3 +1,10 @@ +// SPDX-License-Identifier: bsl-1.1 + +/* + Copyright 2020 Unit Protocol: Artem Zakharov (az@unit.xyz). +*/ +pragma solidity ^0.7.6; + interface ICurveProvider { function get_registry() external view returns (address); } \ No newline at end of file diff --git a/contracts/interfaces/ICurveRegistry.sol b/contracts/interfaces/ICurveRegistry.sol index 5c5ce73..931d6de 100644 --- a/contracts/interfaces/ICurveRegistry.sol +++ b/contracts/interfaces/ICurveRegistry.sol @@ -1,3 +1,10 @@ +// SPDX-License-Identifier: bsl-1.1 + +/* + Copyright 2020 Unit Protocol: Artem Zakharov (az@unit.xyz). +*/ +pragma solidity ^0.7.6; + interface ICurveRegistry { function get_pool_from_lp_token(address) external view returns (address); function get_n_coins(address) external view returns (uint[2] memory); diff --git a/contracts/interfaces/IForceTransferAssetStore.sol b/contracts/interfaces/IForceTransferAssetStore.sol index daa946a..6f85d4c 100644 --- a/contracts/interfaces/IForceTransferAssetStore.sol +++ b/contracts/interfaces/IForceTransferAssetStore.sol @@ -1,3 +1,10 @@ +// SPDX-License-Identifier: bsl-1.1 + +/* + Copyright 2020 Unit Protocol: Artem Zakharov (az@unit.xyz). +*/ +pragma solidity ^0.7.6; + interface IForceTransferAssetStore { function shouldForceTransfer ( address ) external view returns ( bool ); function add ( address asset ) external; diff --git a/contracts/interfaces/IOracleEth.sol b/contracts/interfaces/IOracleEth.sol index 918c29c..d70d51b 100644 --- a/contracts/interfaces/IOracleEth.sol +++ b/contracts/interfaces/IOracleEth.sol @@ -1,3 +1,10 @@ +// SPDX-License-Identifier: bsl-1.1 + +/* + Copyright 2020 Unit Protocol: Artem Zakharov (az@unit.xyz). +*/ +pragma solidity ^0.7.6; + interface IOracleEth { // returns Q112-encoded value diff --git a/contracts/interfaces/IOracleRegistry.sol b/contracts/interfaces/IOracleRegistry.sol index 99126db..8d6d23a 100644 --- a/contracts/interfaces/IOracleRegistry.sol +++ b/contracts/interfaces/IOracleRegistry.sol @@ -1,5 +1,10 @@ -pragma abicoder v2; +// SPDX-License-Identifier: bsl-1.1 +/* + Copyright 2020 Unit Protocol: Artem Zakharov (az@unit.xyz). +*/ +pragma solidity ^0.7.6; +pragma abicoder v2; interface IOracleRegistry { diff --git a/contracts/interfaces/IOracleUsd.sol b/contracts/interfaces/IOracleUsd.sol index dbbb4a8..246112c 100644 --- a/contracts/interfaces/IOracleUsd.sol +++ b/contracts/interfaces/IOracleUsd.sol @@ -1,3 +1,10 @@ +// SPDX-License-Identifier: bsl-1.1 + +/* + Copyright 2020 Unit Protocol: Artem Zakharov (az@unit.xyz). +*/ +pragma solidity ^0.7.6; + interface IOracleUsd { // returns Q112-encoded value diff --git a/contracts/interfaces/IToken.sol b/contracts/interfaces/IToken.sol index 5c9e954..f3718e5 100644 --- a/contracts/interfaces/IToken.sol +++ b/contracts/interfaces/IToken.sol @@ -1,3 +1,10 @@ +// SPDX-License-Identifier: bsl-1.1 + +/* + Copyright 2020 Unit Protocol: Artem Zakharov (az@unit.xyz). +*/ +pragma solidity ^0.7.6; + interface IToken { function decimals() external view returns (uint8); } \ No newline at end of file diff --git a/contracts/interfaces/IVault.sol b/contracts/interfaces/IVault.sol index f1ca4a5..e3601f4 100644 --- a/contracts/interfaces/IVault.sol +++ b/contracts/interfaces/IVault.sol @@ -1,3 +1,10 @@ +// SPDX-License-Identifier: bsl-1.1 + +/* + Copyright 2020 Unit Protocol: Artem Zakharov (az@unit.xyz). +*/ +pragma solidity ^0.7.6; + interface IVault { function DENOMINATOR_1E2 ( ) external view returns ( uint256 ); function DENOMINATOR_1E5 ( ) external view returns ( uint256 ); diff --git a/contracts/interfaces/IVaultManagerParameters.sol b/contracts/interfaces/IVaultManagerParameters.sol index 544e708..c1f608e 100644 --- a/contracts/interfaces/IVaultManagerParameters.sol +++ b/contracts/interfaces/IVaultManagerParameters.sol @@ -1,3 +1,10 @@ +// SPDX-License-Identifier: bsl-1.1 + +/* + Copyright 2020 Unit Protocol: Artem Zakharov (az@unit.xyz). +*/ +pragma solidity ^0.7.6; + interface IVaultManagerParameters { function devaluationPeriod ( address ) external view returns ( uint256 ); function initialCollateralRatio ( address ) external view returns ( uint256 ); diff --git a/contracts/interfaces/IVaultParameters.sol b/contracts/interfaces/IVaultParameters.sol index bb9cbdc..264369a 100644 --- a/contracts/interfaces/IVaultParameters.sol +++ b/contracts/interfaces/IVaultParameters.sol @@ -1,3 +1,10 @@ +// SPDX-License-Identifier: bsl-1.1 + +/* + Copyright 2020 Unit Protocol: Artem Zakharov (az@unit.xyz). +*/ +pragma solidity ^0.7.6; + interface IVaultParameters { function canModifyVault ( address ) external view returns ( bool ); function foundation ( ) external view returns ( address ); diff --git a/contracts/interfaces/IWETH.sol b/contracts/interfaces/IWETH.sol index fe3a346..a36c683 100644 --- a/contracts/interfaces/IWETH.sol +++ b/contracts/interfaces/IWETH.sol @@ -1,3 +1,10 @@ +// SPDX-License-Identifier: bsl-1.1 + +/* + Copyright 2020 Unit Protocol: Artem Zakharov (az@unit.xyz). +*/ +pragma solidity ^0.7.6; + interface IWETH { function deposit() external payable; function transfer(address to, uint value) external returns (bool); diff --git a/contracts/interfaces/IWrappedToUnderlyingOracle.sol b/contracts/interfaces/IWrappedToUnderlyingOracle.sol index 98c685c..bb51409 100644 --- a/contracts/interfaces/IWrappedToUnderlyingOracle.sol +++ b/contracts/interfaces/IWrappedToUnderlyingOracle.sol @@ -1,3 +1,10 @@ +// SPDX-License-Identifier: bsl-1.1 + +/* + Copyright 2020 Unit Protocol: Artem Zakharov (az@unit.xyz). +*/ +pragma solidity ^0.7.6; + interface IWrappedToUnderlyingOracle { function assetToUnderlying(address) external view returns (address); } diff --git a/contracts/interfaces/IcyToken.sol b/contracts/interfaces/IcyToken.sol index cfdf29b..323d104 100644 --- a/contracts/interfaces/IcyToken.sol +++ b/contracts/interfaces/IcyToken.sol @@ -1,3 +1,10 @@ +// SPDX-License-Identifier: bsl-1.1 + +/* + Copyright 2020 Unit Protocol: Artem Zakharov (az@unit.xyz). +*/ +pragma solidity ^0.7.6; + interface IcyToken { function underlying() external view returns (address); function implementation() external view returns (address);