Skip to content

Commit

Permalink
chore: add license
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Rice <[email protected]>
  • Loading branch information
mrice32 committed Jan 23, 2024
1 parent ea85d41 commit dabfe9f
Show file tree
Hide file tree
Showing 40 changed files with 113 additions and 690 deletions.
715 changes: 70 additions & 645 deletions LICENSE

Large diffs are not rendered by default.

12 changes: 5 additions & 7 deletions scripts/package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "oval-contract-scripts",
"name": "oval-contracts",
"version": "1.0.0",
"description": "Oval simulation scripts",
"description": "Oval Contracts",
"main": "dist/index.js",
"repository": "[email protected]:UMAprotocol/oval-contracts.git",
"author": "UMA team",
"license": "AGPL-3.0-only",
"author": "Risk Labs",
"license": "BUSL-1.1",
"private": true,
"scripts": {
"generate-contract-types": "rm -rf contract-types && typechain --target ethers-v5 --out-dir contract-types $(find ../out -name '*.json' ! -name 'Common.json')",
Expand All @@ -17,9 +17,7 @@
"@typechain/ethers-v5": "^11.1.2",
"@types/node": "^20.8.6",
"typechain": "^8.3.2",
"typescript": "^5.2.2"
},
"dependencies": {
"typescript": "^5.2.2",
"axios": "^1.5.1",
"dotenv": "^16.3.1",
"ethers": "^5.7.2"
Expand Down
2 changes: 1 addition & 1 deletion src/DiamondRootOval.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-only
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.17;

import {IBaseOracleAdapter} from "./interfaces/IBaseOracleAdapter.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/Oval.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-only
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.17;

import {Math} from "openzeppelin-contracts/contracts/utils/math/Math.sol";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-only
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.17;

import {DiamondRootOval} from "../../DiamondRootOval.sol";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-only
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.17;

import {DecimalLib} from "../lib/DecimalLib.sol";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-only
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.17;

import {Ownable} from "openzeppelin-contracts/contracts/access/Ownable.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/adapters/lib/DecimalLib.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-only
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.17;

import {Math} from "openzeppelin-contracts/contracts/utils/math/Math.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/adapters/source-adapters/ChainlinkSourceAdapter.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-only
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.17;

import {DecimalLib} from "../lib/DecimalLib.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/adapters/source-adapters/SnapshotSource.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-only
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.17;

import {DiamondRootOval} from "../../DiamondRootOval.sol";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-only
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.17;

import {DecimalLib} from "../lib/DecimalLib.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/controllers/BaseController.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-only
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.17;

import {Ownable} from "openzeppelin-contracts/contracts/access/Ownable.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/controllers/ImmutableController.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-only
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.17;

import {Oval} from "../Oval.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/IBaseController.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-only
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.17;

interface IBaseController {
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/IBaseOracleAdapter.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-only
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.17;

interface IBaseOracleAdapter {
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/IOval.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-only
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.17;

interface IOval {
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/chainlink/IAccessControlledAggregatorV3.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-only
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.17;

import {IAggregatorV3} from "./IAggregatorV3.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/chainlink/IAggregatorV3.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-only
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.17;

interface IAggregatorV3 {
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/chainlink/IAggregatorV3Source.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-only
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.17;

interface IAggregatorV3Source {
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/compound/IValidatorProxy.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-only
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.17;

interface IValidatorProxy {
Expand Down
2 changes: 1 addition & 1 deletion test/Common.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-only
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.17;

import {Test} from "forge-std/Test.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/fork/aave/AaveV2.Liquidation.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-only
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.17;

import {CommonTest} from "../../Common.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/fork/aave/AaveV3.Liquidation.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-only
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.17;

import {CommonTest} from "../../Common.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/fork/adapters/ChainlinkSourceAdapter.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-only
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.17;

import {CommonTest} from "../../Common.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/fork/adapters/UniswapAnchoredViewSourceAdapter.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-only
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.17;

import {CommonTest} from "../../Common.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/fork/compound/CompoundV2.Liquidation.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-only
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.17;

import {CommonTest} from "../../Common.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/fork/interfaces/aave/IAaveOracle.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-only
// SPDX-License-Identifier: BUSL-1.1
pragma solidity ^0.8.0;

interface IAaveOracle {
Expand Down
2 changes: 1 addition & 1 deletion test/fork/interfaces/aave/ILendingPool.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-only
// SPDX-License-Identifier: BUSL-1.1
pragma solidity ^0.8.0;

interface ILendingPool {
Expand Down
2 changes: 1 addition & 1 deletion test/fork/interfaces/compoundV2/IComptroller.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-only
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.17;

interface IComptroller {
Expand Down
2 changes: 1 addition & 1 deletion test/fork/interfaces/compoundV2/IValidatorProxy.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-only
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.17;

interface IValidatorProxyTest {
Expand Down
2 changes: 1 addition & 1 deletion test/mocks/MockChainlinkV3Aggregator.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-only
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.17;

import {IAggregatorV3} from "../../src/interfaces/chainlink/IAggregatorV3.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/mocks/MockSnapshotSourceAdapter.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-only
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.17;

import {SnapshotSource} from "../../src/adapters/source-adapters/SnapshotSource.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/mocks/MockSourceAdapter.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-only
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.17;

import {DiamondRootOval} from "../../src/DiamondRootOval.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/unit/BaseController.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-only
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.17;

import {CommonTest} from "../Common.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/unit/DecimalLib.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-only
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.17;

import {CommonTest} from "../Common.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/unit/ImmutableController.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-only
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.17;

import {CommonTest} from "../Common.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/unit/Oval.ChainlinkDestinationAdapter.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-only
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.17;

import {Oval} from "../../src/Oval.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/unit/Oval.UniswapAnchoredViewDestinationAdapter.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-only
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.17;

import {BaseDestinationAdapter} from "../../src/adapters/destination-adapters/BaseDestinationAdapter.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/unit/Oval.UnlockLatestValue.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-only
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.17;

import {CommonTest} from "../Common.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/unit/SnapshotSource.SnapshotData.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-only
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.17;

import {CommonTest} from "../Common.sol";
Expand Down

0 comments on commit dabfe9f

Please sign in to comment.