forked from unitprotocol/core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request unitprotocol#31 from uwe/reduce-warnings
add license and solidity version to interfaces
- Loading branch information
Showing
17 changed files
with
119 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
|