From 10bc23a0d4f54938e8c28cf32dbf40687a82a5c1 Mon Sep 17 00:00:00 2001 From: Jay Paik Date: Mon, 22 Jan 2024 21:36:58 -0500 Subject: [PATCH] chore: add license for libraries --- README.md | 6 ++++++ src/libraries/AssociatedLinkedListSetLib.sol | 5 ++++- src/libraries/CountableLinkedListSetLib.sol | 5 ++++- src/libraries/LICENSE | 21 ++++++++++++++++++++ src/libraries/LinkedListSetLib.sol | 5 ++++- src/libraries/LinkedListSetUtils.sol | 5 ++++- src/libraries/PluginStorageLib.sol | 5 ++++- 7 files changed, 47 insertions(+), 5 deletions(-) create mode 100644 src/libraries/LICENSE diff --git a/README.md b/README.md index 9822f6270..ef7fd1af1 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 b0532b2b6..d0429bdab 100644 --- a/src/libraries/AssociatedLinkedListSetLib.sol +++ b/src/libraries/AssociatedLinkedListSetLib.sol @@ -1,4 +1,7 @@ -// 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 "./LinkedListSetUtils.sol"; diff --git a/src/libraries/CountableLinkedListSetLib.sol b/src/libraries/CountableLinkedListSetLib.sol index 43d70fc51..3375251a7 100644 --- a/src/libraries/CountableLinkedListSetLib.sol +++ b/src/libraries/CountableLinkedListSetLib.sol @@ -1,4 +1,7 @@ -// 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 {LinkedListSet, LinkedListSetLib} from "./LinkedListSetLib.sol"; diff --git a/src/libraries/LICENSE b/src/libraries/LICENSE new file mode 100644 index 000000000..a2df6853d --- /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 478c6b4d5..22a04a403 100644 --- a/src/libraries/LinkedListSetLib.sol +++ b/src/libraries/LinkedListSetLib.sol @@ -1,4 +1,7 @@ -// 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 "./LinkedListSetUtils.sol"; diff --git a/src/libraries/LinkedListSetUtils.sol b/src/libraries/LinkedListSetUtils.sol index 7560ec0d7..df31b93d2 100644 --- a/src/libraries/LinkedListSetUtils.sol +++ b/src/libraries/LinkedListSetUtils.sol @@ -1,4 +1,7 @@ -// 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/PluginStorageLib.sol b/src/libraries/PluginStorageLib.sol index 400b002ac..8f0eca2ca 100644 --- a/src/libraries/PluginStorageLib.sol +++ b/src/libraries/PluginStorageLib.sol @@ -1,4 +1,7 @@ -// 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;