From c48c43f19c26a0b10d7bff4cbc15d509b1aff5fb Mon Sep 17 00:00:00 2001 From: Kingster Date: Wed, 22 Nov 2023 11:34:30 -0800 Subject: [PATCH] Apply dual licenses to source code, BUSL and MIT --- README.md | 6 ++++++ contracts/hooks/TokenGatedHook.sol | 2 +- contracts/hooks/base/AsyncBaseHook.sol | 2 +- contracts/hooks/base/BaseHook.sol | 2 +- contracts/hooks/base/SyncBaseHook.sol | 2 +- contracts/interfaces/IIPAssetRegistry.sol | 2 +- contracts/interfaces/access-control/IAccessControlled.sol | 2 +- contracts/interfaces/hooks/base/ICallbackHandler.sol | 2 +- contracts/interfaces/hooks/base/IHook.sol | 2 +- contracts/interfaces/ip-accounts/IERC6551Account.sol | 2 +- contracts/interfaces/ip-accounts/IIPAccount.sol | 2 +- contracts/interfaces/ip-accounts/IIPAccountRegistry.sol | 2 +- contracts/interfaces/ip-org/IIPOrg.sol | 2 +- contracts/interfaces/ip-org/IIPOrgController.sol | 2 +- contracts/interfaces/ip-org/IIPOrgFactory.sol | 2 +- contracts/interfaces/modules/IModuleRegistry.sol | 2 +- contracts/interfaces/modules/base/IModule.sol | 2 +- contracts/interfaces/modules/collect/ICollectModule.sol | 2 +- contracts/interfaces/modules/collect/ICollectNFT.sol | 2 +- .../interfaces/modules/collect/ICollectPaymentModule.sol | 2 +- .../interfaces/modules/licensing/terms/ITermsProcessor.sol | 2 +- .../interfaces/modules/registration/IRegistrationModule.sol | 2 +- .../modules/relationships/IRelationshipModule.sol | 2 +- .../interfaces/modules/royalties/IRoyaltyDistributor.sol | 2 +- contracts/interfaces/modules/royalties/IRoyaltyPolicy.sol | 2 +- contracts/interfaces/modules/royalties/ISplitMain.sol | 2 +- .../modules/royalties/policies/IRoyaltyPolicy.sol | 2 +- contracts/interfaces/utils/IVersioned.sol | 2 +- contracts/modules/base/BaseModule.sol | 2 +- contracts/modules/base/HookRegistry.sol | 2 +- 30 files changed, 35 insertions(+), 29 deletions(-) diff --git a/README.md b/README.md index 03688986..c1301a8a 100644 --- a/README.md +++ b/README.md @@ -303,4 +303,10 @@ And get your slither output. - [Foundry Documentation](https://book.getfoundry.sh/) - [Yarn](https://yarnpkg.com/getting-started) +## License + +The primary license for StoryProtocol is the Business Source License 1.1 (`BUSL-1.1`), seeĀ [LICENSE](https://github.com/storyprotocol/protocol-contracts/blob/main/LICENSE). Minus the following exceptions: +- [Hooks](./contracts/hooks) and [Base Modules](./contracts/modules/base) have an MIT License +- [Interfaces](./contracts/interfaces) have an MIT license + diff --git a/contracts/hooks/TokenGatedHook.sol b/contracts/hooks/TokenGatedHook.sol index 4035c2d0..fe07467f 100644 --- a/contracts/hooks/TokenGatedHook.sol +++ b/contracts/hooks/TokenGatedHook.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: BUSL-1.1 +// SPDX-License-Identifier: MIT pragma solidity ^0.8.19; import { HookResult } from "contracts/interfaces/hooks/base/IHook.sol"; diff --git a/contracts/hooks/base/AsyncBaseHook.sol b/contracts/hooks/base/AsyncBaseHook.sol index 9468761b..4bed2340 100644 --- a/contracts/hooks/base/AsyncBaseHook.sol +++ b/contracts/hooks/base/AsyncBaseHook.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: BUSL-1.1 +// SPDX-License-Identifier: MIT pragma solidity ^0.8.19; import { ERC165Checker } from "@openzeppelin/contracts/utils/introspection/ERC165Checker.sol"; diff --git a/contracts/hooks/base/BaseHook.sol b/contracts/hooks/base/BaseHook.sol index b41eb708..5a2b74f1 100644 --- a/contracts/hooks/base/BaseHook.sol +++ b/contracts/hooks/base/BaseHook.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: BUSL-1.1 +// SPDX-License-Identifier: MIT pragma solidity ^0.8.19; import { IHook, HookResult } from "contracts/interfaces/hooks/base/IHook.sol"; diff --git a/contracts/hooks/base/SyncBaseHook.sol b/contracts/hooks/base/SyncBaseHook.sol index cbebd1f9..cb1b04e1 100644 --- a/contracts/hooks/base/SyncBaseHook.sol +++ b/contracts/hooks/base/SyncBaseHook.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: BUSL-1.1 +// SPDX-License-Identifier: MIT pragma solidity ^0.8.19; import { HookResult } from "contracts/interfaces/hooks/base/IHook.sol"; diff --git a/contracts/interfaces/IIPAssetRegistry.sol b/contracts/interfaces/IIPAssetRegistry.sol index e3af62f0..76422c8d 100644 --- a/contracts/interfaces/IIPAssetRegistry.sol +++ b/contracts/interfaces/IIPAssetRegistry.sol @@ -1,6 +1,6 @@ import { IPAsset } from "contracts/lib/IPAsset.sol"; -// SPDX-License-Identifier: BUSL-1.1 +// SPDX-License-Identifier: MIT pragma solidity ^0.8.19; /// @title Global IP Asset Registry Interface diff --git a/contracts/interfaces/access-control/IAccessControlled.sol b/contracts/interfaces/access-control/IAccessControlled.sol index d748dfd1..6a99e99b 100644 --- a/contracts/interfaces/access-control/IAccessControlled.sol +++ b/contracts/interfaces/access-control/IAccessControlled.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: BUSL-1.1 +// SPDX-License-Identifier: MIT pragma solidity ^0.8.19; /// @title Access Controlled Interface diff --git a/contracts/interfaces/hooks/base/ICallbackHandler.sol b/contracts/interfaces/hooks/base/ICallbackHandler.sol index 214849ab..8058f168 100644 --- a/contracts/interfaces/hooks/base/ICallbackHandler.sol +++ b/contracts/interfaces/hooks/base/ICallbackHandler.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: BUSL-1.1 +// SPDX-License-Identifier: MIT pragma solidity ^0.8.19; import { IERC165 } from "@openzeppelin/contracts/utils/introspection/IERC165.sol"; diff --git a/contracts/interfaces/hooks/base/IHook.sol b/contracts/interfaces/hooks/base/IHook.sol index cc0a8838..476eaf5e 100644 --- a/contracts/interfaces/hooks/base/IHook.sol +++ b/contracts/interfaces/hooks/base/IHook.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: BUSL-1.1 +// SPDX-License-Identifier: MIT pragma solidity ^0.8.19; /// @notice An enum representing the various result states of the hook. diff --git a/contracts/interfaces/ip-accounts/IERC6551Account.sol b/contracts/interfaces/ip-accounts/IERC6551Account.sol index 38d706bf..d902ddbd 100644 --- a/contracts/interfaces/ip-accounts/IERC6551Account.sol +++ b/contracts/interfaces/ip-accounts/IERC6551Account.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: BUSL-1.1 +// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; /// @dev the ERC-165 identifier for this interface is `0x6faff5f1` diff --git a/contracts/interfaces/ip-accounts/IIPAccount.sol b/contracts/interfaces/ip-accounts/IIPAccount.sol index 2e00a2aa..7c43ca03 100644 --- a/contracts/interfaces/ip-accounts/IIPAccount.sol +++ b/contracts/interfaces/ip-accounts/IIPAccount.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: BUSL-1.1 +// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import { IERC721Receiver } from "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; diff --git a/contracts/interfaces/ip-accounts/IIPAccountRegistry.sol b/contracts/interfaces/ip-accounts/IIPAccountRegistry.sol index 0964fae3..205084b2 100644 --- a/contracts/interfaces/ip-accounts/IIPAccountRegistry.sol +++ b/contracts/interfaces/ip-accounts/IIPAccountRegistry.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: BUSL-1.1 +// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; interface IIPAccountRegistry { diff --git a/contracts/interfaces/ip-org/IIPOrg.sol b/contracts/interfaces/ip-org/IIPOrg.sol index 8f9df08c..ae0dddbc 100644 --- a/contracts/interfaces/ip-org/IIPOrg.sol +++ b/contracts/interfaces/ip-org/IIPOrg.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: BUSL-1.1 +// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import { IERC721Metadata } from "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol"; diff --git a/contracts/interfaces/ip-org/IIPOrgController.sol b/contracts/interfaces/ip-org/IIPOrgController.sol index 35808d4a..5f87e722 100644 --- a/contracts/interfaces/ip-org/IIPOrgController.sol +++ b/contracts/interfaces/ip-org/IIPOrgController.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: BUSL-1.1 +// SPDX-License-Identifier: MIT pragma solidity ^0.8.19; import { IVersioned } from "../utils/IVersioned.sol"; diff --git a/contracts/interfaces/ip-org/IIPOrgFactory.sol b/contracts/interfaces/ip-org/IIPOrgFactory.sol index e3fb8dc0..3acff7dc 100644 --- a/contracts/interfaces/ip-org/IIPOrgFactory.sol +++ b/contracts/interfaces/ip-org/IIPOrgFactory.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: BUSL-1.1 +// SPDX-License-Identifier: MIT pragma solidity ^0.8.19; import { IVersioned } from "../utils/IVersioned.sol"; diff --git a/contracts/interfaces/modules/IModuleRegistry.sol b/contracts/interfaces/modules/IModuleRegistry.sol index 9ced5dfd..1b4b704b 100644 --- a/contracts/interfaces/modules/IModuleRegistry.sol +++ b/contracts/interfaces/modules/IModuleRegistry.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: BUSL-1.1 +// SPDX-License-Identifier: MIT pragma solidity ^0.8.19; /// @title IModuleRegistry diff --git a/contracts/interfaces/modules/base/IModule.sol b/contracts/interfaces/modules/base/IModule.sol index 870487f7..bd27bc20 100644 --- a/contracts/interfaces/modules/base/IModule.sol +++ b/contracts/interfaces/modules/base/IModule.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: BUSL-1.1 +// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import { IModule } from "./IModule.sol"; diff --git a/contracts/interfaces/modules/collect/ICollectModule.sol b/contracts/interfaces/modules/collect/ICollectModule.sol index cea6b2af..2d8e6df8 100644 --- a/contracts/interfaces/modules/collect/ICollectModule.sol +++ b/contracts/interfaces/modules/collect/ICollectModule.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: BUSL-1.1 +// SPDX-License-Identifier: MIT pragma solidity ^0.8.18; import { Collect } from "contracts/lib/modules/Collect.sol"; diff --git a/contracts/interfaces/modules/collect/ICollectNFT.sol b/contracts/interfaces/modules/collect/ICollectNFT.sol index 162b9b0e..9771fa8a 100644 --- a/contracts/interfaces/modules/collect/ICollectNFT.sol +++ b/contracts/interfaces/modules/collect/ICollectNFT.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: BUSL-1.1 +// SPDX-License-Identifier: MIT pragma solidity ^0.8.18; import { IERC721 } from "@openzeppelin/contracts/token/ERC721/IERC721.sol"; diff --git a/contracts/interfaces/modules/collect/ICollectPaymentModule.sol b/contracts/interfaces/modules/collect/ICollectPaymentModule.sol index c05dd63f..847e2a76 100644 --- a/contracts/interfaces/modules/collect/ICollectPaymentModule.sol +++ b/contracts/interfaces/modules/collect/ICollectPaymentModule.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: BUSL-1.1 +// SPDX-License-Identifier: MIT pragma solidity ^0.8.18; import { Collect } from "contracts/lib/modules/Collect.sol"; diff --git a/contracts/interfaces/modules/licensing/terms/ITermsProcessor.sol b/contracts/interfaces/modules/licensing/terms/ITermsProcessor.sol index 794c0071..2f33d7b8 100644 --- a/contracts/interfaces/modules/licensing/terms/ITermsProcessor.sol +++ b/contracts/interfaces/modules/licensing/terms/ITermsProcessor.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: BUSL-1.1 +// SPDX-License-Identifier: MIT pragma solidity ^0.8.19; import { IERC165 } from "@openzeppelin/contracts/utils/introspection/IERC165.sol"; diff --git a/contracts/interfaces/modules/registration/IRegistrationModule.sol b/contracts/interfaces/modules/registration/IRegistrationModule.sol index 71050a27..fdabb032 100644 --- a/contracts/interfaces/modules/registration/IRegistrationModule.sol +++ b/contracts/interfaces/modules/registration/IRegistrationModule.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: BUSL-1.1 +// SPDX-License-Identifier: MIT pragma solidity ^0.8.19; import { Registration } from "contracts/lib/modules/Registration.sol"; diff --git a/contracts/interfaces/modules/relationships/IRelationshipModule.sol b/contracts/interfaces/modules/relationships/IRelationshipModule.sol index 96d74365..226c25d8 100644 --- a/contracts/interfaces/modules/relationships/IRelationshipModule.sol +++ b/contracts/interfaces/modules/relationships/IRelationshipModule.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: BUSL-1.1 +// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import { LibRelationship } from "contracts/lib/modules/LibRelationship.sol"; diff --git a/contracts/interfaces/modules/royalties/IRoyaltyDistributor.sol b/contracts/interfaces/modules/royalties/IRoyaltyDistributor.sol index 847e0051..24d9ffb6 100644 --- a/contracts/interfaces/modules/royalties/IRoyaltyDistributor.sol +++ b/contracts/interfaces/modules/royalties/IRoyaltyDistributor.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: BUSL-1.1 +// SPDX-License-Identifier: MIT pragma solidity ^0.8.19; /// @title Royalty Module Interface diff --git a/contracts/interfaces/modules/royalties/IRoyaltyPolicy.sol b/contracts/interfaces/modules/royalties/IRoyaltyPolicy.sol index 45146baa..77a0a0e9 100644 --- a/contracts/interfaces/modules/royalties/IRoyaltyPolicy.sol +++ b/contracts/interfaces/modules/royalties/IRoyaltyPolicy.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: BUSL-1.1 +// SPDX-License-Identifier: MIT pragma solidity ^0.8.19; /// @title Royalty Policy Interface diff --git a/contracts/interfaces/modules/royalties/ISplitMain.sol b/contracts/interfaces/modules/royalties/ISplitMain.sol index 30f344b9..2f13e801 100644 --- a/contracts/interfaces/modules/royalties/ISplitMain.sol +++ b/contracts/interfaces/modules/royalties/ISplitMain.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: BUSL-1.1 +// SPDX-License-Identifier: MIT pragma solidity ^0.8.17; import { ERC20 } from "solmate/src/tokens/ERC20.sol"; diff --git a/contracts/interfaces/modules/royalties/policies/IRoyaltyPolicy.sol b/contracts/interfaces/modules/royalties/policies/IRoyaltyPolicy.sol index 45146baa..77a0a0e9 100644 --- a/contracts/interfaces/modules/royalties/policies/IRoyaltyPolicy.sol +++ b/contracts/interfaces/modules/royalties/policies/IRoyaltyPolicy.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: BUSL-1.1 +// SPDX-License-Identifier: MIT pragma solidity ^0.8.19; /// @title Royalty Policy Interface diff --git a/contracts/interfaces/utils/IVersioned.sol b/contracts/interfaces/utils/IVersioned.sol index 8585b248..64f110ec 100644 --- a/contracts/interfaces/utils/IVersioned.sol +++ b/contracts/interfaces/utils/IVersioned.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: BUSL-1.1 +// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; diff --git a/contracts/modules/base/BaseModule.sol b/contracts/modules/base/BaseModule.sol index 43f18a7a..2a50da61 100644 --- a/contracts/modules/base/BaseModule.sol +++ b/contracts/modules/base/BaseModule.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: BUSL-1.1 +// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import { IModule } from "contracts/interfaces/modules/base/IModule.sol"; diff --git a/contracts/modules/base/HookRegistry.sol b/contracts/modules/base/HookRegistry.sol index 706106ab..82188c53 100644 --- a/contracts/modules/base/HookRegistry.sol +++ b/contracts/modules/base/HookRegistry.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: BUSL-1.1 +// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import { Errors } from "contracts/lib/Errors.sol";