Skip to content

Commit

Permalink
[internal-s31] uniform license (#34)
Browse files Browse the repository at this point in the history
* internal s23: set bytecode_hash = zero

* feat: uniform license
  • Loading branch information
ChefMist authored Dec 2, 2024
1 parent a7e46c4 commit 9aad1fe
Show file tree
Hide file tree
Showing 22 changed files with 30 additions and 20 deletions.
3 changes: 2 additions & 1 deletion src/UniversalRouter.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-License-Identifier: GPL-2.0-or-later
// Copyright (C) 2024 PancakeSwap
pragma solidity 0.8.26;

// Command implementations
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/IUniversalRouter.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

interface IUniversalRouter {
Expand Down
3 changes: 2 additions & 1 deletion src/modules/Payments.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-License-Identifier: GPL-2.0-or-later
// Copyright (C) 2024 PancakeSwap
pragma solidity ^0.8.0;

import {Constants} from "../libraries/Constants.sol";
Expand Down
2 changes: 2 additions & 0 deletions src/modules/Permit2Payments.sol
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: GPL-2.0-or-later
// Copyright (C) 2024 PancakeSwap
pragma solidity ^0.8.0;

import {IAllowanceTransfer} from "permit2/src/interfaces/IAllowanceTransfer.sol";
Expand Down
3 changes: 2 additions & 1 deletion src/modules/V3ToV4Migrator.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-License-Identifier: GPL-2.0-or-later
// Copyright (C) 2024 PancakeSwap
pragma solidity ^0.8.0;

import {RouterImmutables} from "../base/RouterImmutables.sol";
Expand Down
3 changes: 2 additions & 1 deletion src/modules/pancakeswap/StableSwapRouter.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-License-Identifier: GPL-2.0-or-later
// Copyright (C) 2024 PancakeSwap
pragma solidity ^0.8.0;

import {ActionConstants} from "pancake-v4-periphery/src/libraries/ActionConstants.sol";
Expand Down
3 changes: 2 additions & 1 deletion src/modules/pancakeswap/v2/V2SwapRouter.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-License-Identifier: GPL-2.0-or-later
// Copyright (C) 2024 PancakeSwap
pragma solidity ^0.8.0;

import {IPancakeV2Pair} from "./interfaces/IPancakeV2Pair.sol";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

interface IPancakeV2Factory {
Expand Down
2 changes: 1 addition & 1 deletion src/modules/pancakeswap/v2/interfaces/IPancakeV2Pair.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

interface IPancakeV2Pair {
Expand Down
1 change: 1 addition & 0 deletions src/modules/pancakeswap/v3/SafeCast.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// SPDX-License-Identifier: GPL-2.0-or-later
// Copyright (C) 2024 PancakeSwap
pragma solidity ^0.8.0;

/// @title Safe casting methods
Expand Down
3 changes: 2 additions & 1 deletion src/modules/pancakeswap/v3/V3SwapRouter.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-License-Identifier: GPL-2.0-or-later
// Copyright (C) 2024 PancakeSwap
pragma solidity ^0.8.0;

import {ActionConstants} from "pancake-v4-periphery/src/libraries/ActionConstants.sol";
Expand Down
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.0;

/// @title The interface for the PancakeSwap V3 Factory
Expand Down
2 changes: 1 addition & 1 deletion src/modules/pancakeswap/v3/interfaces/IPancakeV3Pool.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.0;

import "./pool/IPancakeV3PoolImmutables.sol";
Expand Down
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.0;

/// @title An interface for a contract that is capable of deploying PancakeSwap V3 Pools
Expand Down
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.0;

/// @title Callback for IPancakeV3PoolActions#swap
Expand Down
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.0;

/// @title Permissionless pool actions
Expand Down
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.0;

/// @title Pool state that is not stored
Expand Down
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.0;

/// @title Events emitted by a pool
Expand Down
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.0;

/// @title Pool state that never changes
Expand Down
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.0;

/// @title Permissioned pool actions
Expand Down
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.0;

/// @title Pool state that can change
Expand Down
3 changes: 2 additions & 1 deletion src/modules/pancakeswap/v4/V4SwapRouter.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-License-Identifier: GPL-2.0-or-later
// Copyright (C) 2024 PancakeSwap
pragma solidity ^0.8.24;

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

0 comments on commit 9aad1fe

Please sign in to comment.