Skip to content

Commit

Permalink
Apply dual licenses to source code, BUSL and MIT
Browse files Browse the repository at this point in the history
  • Loading branch information
kingster-will committed Nov 22, 2023
1 parent 0edd7f0 commit c48c43f
Show file tree
Hide file tree
Showing 30 changed files with 35 additions and 29 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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


2 changes: 1 addition & 1 deletion contracts/hooks/TokenGatedHook.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.19;

import { HookResult } from "contracts/interfaces/hooks/base/IHook.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/hooks/base/AsyncBaseHook.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.19;

import { ERC165Checker } from "@openzeppelin/contracts/utils/introspection/ERC165Checker.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/hooks/base/BaseHook.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.19;

import { IHook, HookResult } from "contracts/interfaces/hooks/base/IHook.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/hooks/base/SyncBaseHook.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.19;

import { HookResult } from "contracts/interfaces/hooks/base/IHook.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/IIPAssetRegistry.sol
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/access-control/IAccessControlled.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.19;

/// @title Access Controlled Interface
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/hooks/base/ICallbackHandler.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.19;
import { IERC165 } from "@openzeppelin/contracts/utils/introspection/IERC165.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/hooks/base/IHook.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.19;

/// @notice An enum representing the various result states of the hook.
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/ip-accounts/IERC6551Account.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.13;

/// @dev the ERC-165 identifier for this interface is `0x6faff5f1`
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/ip-accounts/IIPAccount.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.13;

import { IERC721Receiver } from "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/ip-accounts/IIPAccountRegistry.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.13;

interface IIPAccountRegistry {
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/ip-org/IIPOrg.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.13;

import { IERC721Metadata } from "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/ip-org/IIPOrgController.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.19;

import { IVersioned } from "../utils/IVersioned.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/ip-org/IIPOrgFactory.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.19;

import { IVersioned } from "../utils/IVersioned.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/modules/IModuleRegistry.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.19;

/// @title IModuleRegistry
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/modules/base/IModule.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.13;

import { IModule } from "./IModule.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/modules/collect/ICollectModule.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.18;

import { Collect } from "contracts/lib/modules/Collect.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/modules/collect/ICollectNFT.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.18;

import { IERC721 } from "@openzeppelin/contracts/token/ERC721/IERC721.sol";
Expand Down
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.18;

import { Collect } from "contracts/lib/modules/Collect.sol";
Expand Down
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.19;
import { IERC165 } from "@openzeppelin/contracts/utils/introspection/IERC165.sol";

Expand Down
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.19;

import { Registration } from "contracts/lib/modules/Registration.sol";
Expand Down
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.13;

import { LibRelationship } from "contracts/lib/modules/LibRelationship.sol";
Expand Down
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.19;

/// @title Royalty Module Interface
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/modules/royalties/IRoyaltyPolicy.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.19;

/// @title Royalty Policy Interface
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/modules/royalties/ISplitMain.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.17;

import { ERC20 } from "solmate/src/tokens/ERC20.sol";
Expand Down
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.19;

/// @title Royalty Policy Interface
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/utils/IVersioned.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.13;

Expand Down
2 changes: 1 addition & 1 deletion contracts/modules/base/BaseModule.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.13;

import { IModule } from "contracts/interfaces/modules/base/IModule.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/modules/base/HookRegistry.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.13;

import { Errors } from "contracts/lib/Errors.sol";
Expand Down

0 comments on commit c48c43f

Please sign in to comment.