From 266ea6fd13932c6332cc725ff663d4dd57022255 Mon Sep 17 00:00:00 2001 From: Jay Paik Date: Tue, 23 Jan 2024 00:36:43 -0500 Subject: [PATCH] chore: add license for libraries (#106) --- README.md | 6 ++++++ src/libraries/AssociatedLinkedListSetLib.sol | 9 ++++++++- src/libraries/Constants.sol | 9 ++++++++- src/libraries/CountableLinkedListSetLib.sol | 9 ++++++++- src/libraries/LICENSE | 21 ++++++++++++++++++++ src/libraries/LinkedListSetLib.sol | 9 ++++++++- src/libraries/PluginStorageLib.sol | 9 ++++++++- 7 files changed, 67 insertions(+), 5 deletions(-) create mode 100644 src/libraries/LICENSE diff --git a/README.md b/README.md index 9822f627..ef7fd1af 100644 --- a/README.md +++ b/README.md @@ -58,3 +58,9 @@ We use Solady's highly optimized [UUPSUpgradeable](https://github.com/Vectorized ```bash forge script script/Deploy.s.sol --rpc-url $SEPOLIA_RPC_URL --broadcast ``` + +## License + +The Modular Account libraries (i.e., all code inside the [src/libraries](src/libraries) directory) is licensed under the MIT License, also included in our repository in [src/libraries/LICENSE](src/libraries/LICENSE). + +Alchemy Insights, Inc., 548 Market St., PMB 49099, San Francisco, CA 94104; legal@alchemy.com diff --git a/src/libraries/AssociatedLinkedListSetLib.sol b/src/libraries/AssociatedLinkedListSetLib.sol index 2b9ace6d..66ed93bb 100644 --- a/src/libraries/AssociatedLinkedListSetLib.sol +++ b/src/libraries/AssociatedLinkedListSetLib.sol @@ -1,4 +1,11 @@ -// SPDX-License-Identifier: UNLICENSED +// This file is part of Modular Account. +// +// Copyright 2024 Alchemy Insights, Inc. +// +// SPDX-License-Identifier: MIT +// +// See LICENSE file for more information + pragma solidity ^0.8.22; import {SetValue, SENTINEL_VALUE, HAS_NEXT_FLAG} from "./Constants.sol"; diff --git a/src/libraries/Constants.sol b/src/libraries/Constants.sol index 59159d4a..45644c49 100644 --- a/src/libraries/Constants.sol +++ b/src/libraries/Constants.sol @@ -1,4 +1,11 @@ -// SPDX-License-Identifier: UNLICENSED +// This file is part of Modular Account. +// +// Copyright 2024 Alchemy Insights, Inc. +// +// SPDX-License-Identifier: MIT +// +// See LICENSE file for more information + pragma solidity ^0.8.22; type SetValue is bytes30; diff --git a/src/libraries/CountableLinkedListSetLib.sol b/src/libraries/CountableLinkedListSetLib.sol index 8b84da91..2945d6ef 100644 --- a/src/libraries/CountableLinkedListSetLib.sol +++ b/src/libraries/CountableLinkedListSetLib.sol @@ -1,4 +1,11 @@ -// SPDX-License-Identifier: UNLICENSED +// This file is part of Modular Account. +// +// Copyright 2024 Alchemy Insights, Inc. +// +// SPDX-License-Identifier: MIT +// +// See LICENSE file for more information + pragma solidity ^0.8.22; import {SetValue} from "./Constants.sol"; diff --git a/src/libraries/LICENSE b/src/libraries/LICENSE new file mode 100644 index 00000000..a2df6853 --- /dev/null +++ b/src/libraries/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2024 Alchemy Insights, Inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/src/libraries/LinkedListSetLib.sol b/src/libraries/LinkedListSetLib.sol index 5a43190b..081aab87 100644 --- a/src/libraries/LinkedListSetLib.sol +++ b/src/libraries/LinkedListSetLib.sol @@ -1,4 +1,11 @@ -// SPDX-License-Identifier: UNLICENSED +// This file is part of Modular Account. +// +// Copyright 2024 Alchemy Insights, Inc. +// +// SPDX-License-Identifier: MIT +// +// See LICENSE file for more information + pragma solidity ^0.8.22; import {SetValue, SENTINEL_VALUE, HAS_NEXT_FLAG} from "./Constants.sol"; diff --git a/src/libraries/PluginStorageLib.sol b/src/libraries/PluginStorageLib.sol index 400b002a..f6db03f5 100644 --- a/src/libraries/PluginStorageLib.sol +++ b/src/libraries/PluginStorageLib.sol @@ -1,4 +1,11 @@ -// SPDX-License-Identifier: UNLICENSED +// This file is part of Modular Account. +// +// Copyright 2024 Alchemy Insights, Inc. +// +// SPDX-License-Identifier: MIT +// +// See LICENSE file for more information + pragma solidity ^0.8.22; type StoragePointer is bytes32;