Skip to content

Commit

Permalink
Merge pull request unitprotocol#31 from uwe/reduce-warnings
Browse files Browse the repository at this point in the history
add license and solidity version to interfaces
  • Loading branch information
chainpioneer authored Jun 2, 2021
2 parents 7c15321 + 5c1ce4e commit 0aca776
Show file tree
Hide file tree
Showing 17 changed files with 119 additions and 4 deletions.
7 changes: 7 additions & 0 deletions contracts/interfaces/IBearingAssetOracle.sol
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
// SPDX-License-Identifier: bsl-1.1

/*
Copyright 2020 Unit Protocol: Artem Zakharov ([email protected]).
*/
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 );
Expand Down
11 changes: 8 additions & 3 deletions contracts/interfaces/ICDPRegistry.sol
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
pragma experimental ABIEncoderV2;
// SPDX-License-Identifier: bsl-1.1

/*
Copyright 2020 Unit Protocol: Artem Zakharov ([email protected]).
*/
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;
Expand Down
7 changes: 7 additions & 0 deletions contracts/interfaces/ICollateralRegistry.sol
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
// SPDX-License-Identifier: bsl-1.1

/*
Copyright 2020 Unit Protocol: Artem Zakharov ([email protected]).
*/
pragma solidity ^0.7.6;

interface ICollateralRegistry {
function addCollateral ( address asset ) external;
function collateralId ( address ) external view returns ( uint256 );
Expand Down
7 changes: 7 additions & 0 deletions contracts/interfaces/ICurvePool.sol
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
// SPDX-License-Identifier: bsl-1.1

/*
Copyright 2020 Unit Protocol: Artem Zakharov ([email protected]).
*/
pragma solidity ^0.7.6;

interface ICurvePool {
function get_virtual_price() external view returns (uint);
function coins(uint) external view returns (address);
Expand Down
7 changes: 7 additions & 0 deletions contracts/interfaces/ICurveProvider.sol
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
// SPDX-License-Identifier: bsl-1.1

/*
Copyright 2020 Unit Protocol: Artem Zakharov ([email protected]).
*/
pragma solidity ^0.7.6;

interface ICurveProvider {
function get_registry() external view returns (address);
}
7 changes: 7 additions & 0 deletions contracts/interfaces/ICurveRegistry.sol
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
// SPDX-License-Identifier: bsl-1.1

/*
Copyright 2020 Unit Protocol: Artem Zakharov ([email protected]).
*/
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);
Expand Down
7 changes: 7 additions & 0 deletions contracts/interfaces/IForceTransferAssetStore.sol
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
// SPDX-License-Identifier: bsl-1.1

/*
Copyright 2020 Unit Protocol: Artem Zakharov ([email protected]).
*/
pragma solidity ^0.7.6;

interface IForceTransferAssetStore {
function shouldForceTransfer ( address ) external view returns ( bool );
function add ( address asset ) external;
Expand Down
7 changes: 7 additions & 0 deletions contracts/interfaces/IOracleEth.sol
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
// SPDX-License-Identifier: bsl-1.1

/*
Copyright 2020 Unit Protocol: Artem Zakharov ([email protected]).
*/
pragma solidity ^0.7.6;

interface IOracleEth {

// returns Q112-encoded value
Expand Down
7 changes: 6 additions & 1 deletion contracts/interfaces/IOracleRegistry.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
pragma abicoder v2;
// SPDX-License-Identifier: bsl-1.1

/*
Copyright 2020 Unit Protocol: Artem Zakharov ([email protected]).
*/
pragma solidity ^0.7.6;
pragma abicoder v2;

interface IOracleRegistry {

Expand Down
7 changes: 7 additions & 0 deletions contracts/interfaces/IOracleUsd.sol
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
// SPDX-License-Identifier: bsl-1.1

/*
Copyright 2020 Unit Protocol: Artem Zakharov ([email protected]).
*/
pragma solidity ^0.7.6;

interface IOracleUsd {

// returns Q112-encoded value
Expand Down
7 changes: 7 additions & 0 deletions contracts/interfaces/IToken.sol
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
// SPDX-License-Identifier: bsl-1.1

/*
Copyright 2020 Unit Protocol: Artem Zakharov ([email protected]).
*/
pragma solidity ^0.7.6;

interface IToken {
function decimals() external view returns (uint8);
}
7 changes: 7 additions & 0 deletions contracts/interfaces/IVault.sol
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
// SPDX-License-Identifier: bsl-1.1

/*
Copyright 2020 Unit Protocol: Artem Zakharov ([email protected]).
*/
pragma solidity ^0.7.6;

interface IVault {
function DENOMINATOR_1E2 ( ) external view returns ( uint256 );
function DENOMINATOR_1E5 ( ) external view returns ( uint256 );
Expand Down
7 changes: 7 additions & 0 deletions contracts/interfaces/IVaultManagerParameters.sol
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
// SPDX-License-Identifier: bsl-1.1

/*
Copyright 2020 Unit Protocol: Artem Zakharov ([email protected]).
*/
pragma solidity ^0.7.6;

interface IVaultManagerParameters {
function devaluationPeriod ( address ) external view returns ( uint256 );
function initialCollateralRatio ( address ) external view returns ( uint256 );
Expand Down
7 changes: 7 additions & 0 deletions contracts/interfaces/IVaultParameters.sol
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
// SPDX-License-Identifier: bsl-1.1

/*
Copyright 2020 Unit Protocol: Artem Zakharov ([email protected]).
*/
pragma solidity ^0.7.6;

interface IVaultParameters {
function canModifyVault ( address ) external view returns ( bool );
function foundation ( ) external view returns ( address );
Expand Down
7 changes: 7 additions & 0 deletions contracts/interfaces/IWETH.sol
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
// SPDX-License-Identifier: bsl-1.1

/*
Copyright 2020 Unit Protocol: Artem Zakharov ([email protected]).
*/
pragma solidity ^0.7.6;

interface IWETH {
function deposit() external payable;
function transfer(address to, uint value) external returns (bool);
Expand Down
7 changes: 7 additions & 0 deletions contracts/interfaces/IWrappedToUnderlyingOracle.sol
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
// SPDX-License-Identifier: bsl-1.1

/*
Copyright 2020 Unit Protocol: Artem Zakharov ([email protected]).
*/
pragma solidity ^0.7.6;

interface IWrappedToUnderlyingOracle {
function assetToUnderlying(address) external view returns (address);
}
7 changes: 7 additions & 0 deletions contracts/interfaces/IcyToken.sol
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
// SPDX-License-Identifier: bsl-1.1

/*
Copyright 2020 Unit Protocol: Artem Zakharov ([email protected]).
*/
pragma solidity ^0.7.6;

interface IcyToken {
function underlying() external view returns (address);
function implementation() external view returns (address);
Expand Down

0 comments on commit 0aca776

Please sign in to comment.