Skip to content

Commit

Permalink
Chore: update licenses (#364)
Browse files Browse the repository at this point in the history
* chore: update README

* chore: update interface licenses

* chore: update Hooks.sol license

* chore: update types licenses
  • Loading branch information
erin-koen authored Oct 10, 2023
1 parent 0095e08 commit d5fa3b6
Show file tree
Hide file tree
Showing 13 changed files with 15 additions and 15 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ contract MyContract is ILockCallback {

The primary license for Uniswap V4 Core is the Business Source License 1.1 (`BUSL-1.1`), see [LICENSE](https://github.com/Uniswap/v4-core/blob/main/LICENSE). Minus the following exceptions:

- [Interfaces](./contracts/interfaces) have a General Public License
- Some [libraries](./contracts/libraries) and [types](./contracts/types/) have a General Public License
- [FullMath.sol](./contracts/libraries/FullMath.sol) has an MIT License
- Some [libraries](./contracts/libraries) have a GPL license
- Both [FullMath.sol](./contracts/libraries/FullMath.sol) and [Hooks.sol](./contracts/libraries/Hooks.sol) have an MIT License
- [Interfaces](./contracts/interfaces) and [types](./contracts/types/) have an MIT license

Each of these files states their license type.
2 changes: 1 addition & 1 deletion contracts/interfaces/IDynamicFeeManager.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: GPL-2.0-or-later
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

import {PoolKey} from "../types/PoolKey.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/IFees.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: GPL-2.0-or-later
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;

import {Currency} from "../types/Currency.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/IHookFeeManager.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: GPL-2.0-or-later
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

import {PoolKey} from "../types/PoolKey.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/IHooks.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: GPL-2.0-or-later
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

import {PoolKey} from "../types/PoolKey.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/IPoolManager.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: GPL-2.0-or-later
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

import {Currency} from "../types/Currency.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/IProtocolFeeController.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: GPL-2.0-or-later
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

import {PoolKey} from "../types/PoolKey.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/callback/ILockCallback.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: GPL-2.0-or-later
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

interface ILockCallback {
Expand Down
2 changes: 1 addition & 1 deletion contracts/libraries/Hooks.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: BUSL-1.1
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

import {IHooks} from "../interfaces/IHooks.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/types/BalanceDelta.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: GPL-2.0-or-later
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

type BalanceDelta is int256;
Expand Down
2 changes: 1 addition & 1 deletion contracts/types/Currency.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: GPL-2.0-or-later
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

import {IERC20Minimal} from "../interfaces/external/IERC20Minimal.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/types/PoolId.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: GPL-2.0-or-later
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

import {PoolKey} from "./PoolKey.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/types/PoolKey.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: GPL-2.0-or-later
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;

import {Currency} from "./Currency.sol";
Expand Down

0 comments on commit d5fa3b6

Please sign in to comment.