From 201a9d6be510fff7ec78ae46371a2f4aa5ecc742 Mon Sep 17 00:00:00 2001 From: ams9198 <111915188+ams9198@users.noreply.github.com> Date: Mon, 25 Sep 2023 12:35:33 -0400 Subject: [PATCH] Update license to Apache 2.0 (#198) * Update license to Apache 2.0 * Lint --- LICENSE | 195 ++++++++++++++++-- contracts/Loan.sol | 16 +- contracts/Pool.sol | 16 +- contracts/ServiceConfiguration.sol | 16 +- contracts/Vault.sol | 16 +- contracts/controllers/PoolController.sol | 16 +- contracts/controllers/WithdrawController.sol | 16 +- .../interfaces/IPoolController.sol | 16 +- .../interfaces/IWithdrawController.sol | 16 +- contracts/factories/LoanFactory.sol | 16 +- contracts/factories/PoolControllerFactory.sol | 16 +- contracts/factories/PoolFactory.sol | 16 +- contracts/factories/VaultFactory.sol | 16 +- .../factories/WithdrawControllerFactory.sol | 16 +- .../factories/interfaces/ILoanFactory.sol | 16 +- .../interfaces/IPoolControllerFactory.sol | 16 +- .../factories/interfaces/IPoolFactory.sol | 16 +- .../factories/interfaces/IVaultFactory.sol | 16 +- .../interfaces/IWithdrawControllerFactory.sol | 16 +- contracts/interfaces/IERC4626.sol | 16 +- contracts/interfaces/ILoan.sol | 16 +- contracts/interfaces/IPool.sol | 16 +- contracts/interfaces/IRequestWithdrawable.sol | 16 +- .../interfaces/IServiceConfiguration.sol | 16 +- contracts/interfaces/IVault.sol | 16 +- contracts/libraries/LoanLib.sol | 16 +- contracts/libraries/PoolLib.sol | 16 +- contracts/mocks/MockERC20.sol | 16 +- contracts/mocks/MockERC721.sol | 16 +- contracts/mocks/MockLoan.sol | 16 +- contracts/mocks/MockVeriteAccessControl.sol | 16 +- contracts/mocks/PoolLibTestWrapper.sol | 16 +- contracts/mocks/upgrades/LoanMockV2.sol | 16 +- .../upgrades/MockBeaconImplementation.sol | 16 +- .../mocks/upgrades/MockBeaconProxyFactory.sol | 16 +- .../upgrades/MockDeployerUUPSUpgradeable.sol | 16 +- contracts/mocks/upgrades/MockUpgrade.sol | 16 +- .../upgrades/PoolAccessControlMockV2.sol | 16 +- .../upgrades/PoolAdminAccessControlMockV2.sol | 16 +- .../mocks/upgrades/PoolControllerMockV2.sol | 16 +- contracts/mocks/upgrades/PoolMockV2.sol | 16 +- .../upgrades/ServiceConfigurationMockV2.sol | 16 +- .../upgrades/ToSAcceptanceRegistryMockV2.sol | 16 +- contracts/mocks/upgrades/VaultMockV2.sol | 16 +- .../upgrades/WithdrawControllerMockV2.sol | 16 +- contracts/permissioned/PermissionedLoan.sol | 16 +- contracts/permissioned/PermissionedPool.sol | 16 +- .../PermissionedServiceConfiguration.sol | 16 +- contracts/permissioned/PoolAccessControl.sol | 16 +- .../permissioned/PoolAdminAccessControl.sol | 16 +- .../permissioned/ToSAcceptanceRegistry.sol | 16 +- .../permissioned/VeriteAccessControl.sol | 16 +- .../PermissionedPoolController.sol | 16 +- .../factories/PermissionedLoanFactory.sol | 16 +- .../factories/PermissionedPoolFactory.sol | 16 +- .../factories/PoolAccessControlFactory.sol | 16 +- .../interfaces/IPoolAccessControlFactory.sol | 16 +- .../IPermissionedServiceConfiguration.sol | 16 +- .../interfaces/IPoolAccessControl.sol | 16 +- .../interfaces/IPoolAdminAccessControl.sol | 16 +- .../interfaces/IToSAcceptanceRegistry.sol | 16 +- .../interfaces/IVeriteAccessControl.sol | 16 +- contracts/upgrades/BeaconImplementation.sol | 16 +- contracts/upgrades/BeaconProxyFactory.sol | 16 +- .../upgrades/DeployerUUPSUpgradeable.sol | 16 +- contracts/upgrades/interfaces/IBeacon.sol | 16 +- scripts/deploy-permissionless.ts | 15 ++ scripts/deploy.ts | 15 ++ scripts/verify-pool-admin.ts | 15 ++ scripts/verite-verify.ts | 16 ++ tasks/serviceConfiguration.ts | 15 ++ tasks/tosAcceptanceRegistry.ts | 15 ++ test/Loan.test.ts | 15 ++ test/Pool.test.ts | 15 ++ test/ServiceConfiguration.test.ts | 15 ++ test/Vault.test.ts | 15 ++ test/controllers/PoolController.test.ts | 15 ++ test/controllers/WithdrawController.test.ts | 15 ++ test/factories/LoanFactory.test.ts | 15 ++ test/factories/PoolFactory.test.ts | 15 ++ test/factories/VaultFactory.test.ts | 15 ++ test/libraries/PoolLib.test.ts | 15 ++ test/permissioned/PermissionedLoan.test.ts | 15 ++ test/permissioned/PermissionedPool.test.ts | 15 ++ .../PermissionedPoolController.test.ts | 15 ++ test/permissioned/PoolAccessControl.test.ts | 15 ++ .../PoolAdminAccessControl.test.ts | 15 ++ test/permissioned/ToSConsentRegistry.test.ts | 15 ++ test/permissioned/VeriteAccessControl.test.ts | 15 ++ .../factories/PermissionedLoanFactory.test.ts | 15 ++ .../factories/PermissionedPoolFactory.test.ts | 15 ++ test/scenarios/business/1.test.ts | 15 ++ test/scenarios/business/2.test.ts | 15 ++ test/scenarios/business/3.test.ts | 15 ++ test/scenarios/business/4.test.ts | 15 ++ .../scenarios/business/permissioned/1.test.ts | 15 ++ .../scenarios/business/permissioned/2.test.ts | 15 ++ .../scenarios/business/permissioned/3.test.ts | 15 ++ .../scenarios/business/permissioned/4.test.ts | 15 ++ test/scenarios/pool/direct-deposit.test.ts | 15 ++ .../pool/fixed-term-defaulted.test.ts | 15 ++ .../scenarios/pool/fixed-term-matured.test.ts | 15 ++ .../pool/open-term-defaulted.test.ts | 15 ++ test/scenarios/pool/open-term-matured.test.ts | 15 ++ .../pool/snapshot-variations.test.ts | 15 ++ test/scenarios/pool/withdraw-dos.test.ts | 15 ++ test/scenarios/pool/withdraw-request.test.ts | 15 ++ test/support/erc20.ts | 15 ++ test/support/loan.ts | 15 ++ test/support/pool.ts | 15 ++ test/support/serviceconfiguration.ts | 15 ++ test/support/tosacceptanceregistry.ts | 15 ++ test/support/utils.ts | 15 ++ test/support/verite.ts | 15 ++ test/upgrades/BeaconImplementation.test.ts | 15 ++ test/upgrades/BeaconProxyFactory.test.ts | 15 ++ test/upgrades/DeployerUUPSUpgradeable.test.ts | 15 ++ 117 files changed, 1915 insertions(+), 86 deletions(-) diff --git a/LICENSE b/LICENSE index 142432d3..dd5b3a58 100644 --- a/LICENSE +++ b/LICENSE @@ -1,21 +1,174 @@ -MIT License - -Copyright (c) 2022 Circle Internet Financial, LLC. - -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. + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. diff --git a/contracts/Loan.sol b/contracts/Loan.sol index 896ab569..fd0b1b62 100644 --- a/contracts/Loan.sol +++ b/contracts/Loan.sol @@ -1,4 +1,18 @@ -// SPDX-License-Identifier: MIT +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ pragma solidity ^0.8.16; import {SafeMath} from "@openzeppelin/contracts/utils/math/SafeMath.sol"; diff --git a/contracts/Pool.sol b/contracts/Pool.sol index ecf8d95b..79285b8e 100644 --- a/contracts/Pool.sol +++ b/contracts/Pool.sol @@ -1,4 +1,18 @@ -// SPDX-License-Identifier: MIT +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ pragma solidity ^0.8.16; import "./interfaces/ILoan.sol"; diff --git a/contracts/ServiceConfiguration.sol b/contracts/ServiceConfiguration.sol index bd4457b5..990b25e2 100644 --- a/contracts/ServiceConfiguration.sol +++ b/contracts/ServiceConfiguration.sol @@ -1,4 +1,18 @@ -// SPDX-License-Identifier: MIT +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ pragma solidity ^0.8.16; import "@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol"; diff --git a/contracts/Vault.sol b/contracts/Vault.sol index 8631811e..df277d37 100644 --- a/contracts/Vault.sol +++ b/contracts/Vault.sol @@ -1,4 +1,18 @@ -// SPDX-License-Identifier: MIT +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ pragma solidity ^0.8.16; import "./interfaces/IVault.sol"; diff --git a/contracts/controllers/PoolController.sol b/contracts/controllers/PoolController.sol index 632d6ee3..b27d4e32 100644 --- a/contracts/controllers/PoolController.sol +++ b/contracts/controllers/PoolController.sol @@ -1,4 +1,18 @@ -// SPDX-License-Identifier: MIT +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ pragma solidity ^0.8.16; import "../interfaces/IPool.sol"; diff --git a/contracts/controllers/WithdrawController.sol b/contracts/controllers/WithdrawController.sol index 26f5b058..29e0d5df 100644 --- a/contracts/controllers/WithdrawController.sol +++ b/contracts/controllers/WithdrawController.sol @@ -1,4 +1,18 @@ -// SPDX-License-Identifier: MIT +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ pragma solidity ^0.8.16; import "../interfaces/IPool.sol"; diff --git a/contracts/controllers/interfaces/IPoolController.sol b/contracts/controllers/interfaces/IPoolController.sol index 5de9ab5e..cd0510d0 100644 --- a/contracts/controllers/interfaces/IPoolController.sol +++ b/contracts/controllers/interfaces/IPoolController.sol @@ -1,4 +1,18 @@ -// SPDX-License-Identifier: MIT +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ pragma solidity ^0.8.16; import "../../interfaces/IPool.sol"; diff --git a/contracts/controllers/interfaces/IWithdrawController.sol b/contracts/controllers/interfaces/IWithdrawController.sol index 88485eaf..de69420e 100644 --- a/contracts/controllers/interfaces/IWithdrawController.sol +++ b/contracts/controllers/interfaces/IWithdrawController.sol @@ -1,4 +1,18 @@ -// SPDX-License-Identifier: MIT +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ pragma solidity ^0.8.16; /** diff --git a/contracts/factories/LoanFactory.sol b/contracts/factories/LoanFactory.sol index 25baa38d..c3476cbc 100644 --- a/contracts/factories/LoanFactory.sol +++ b/contracts/factories/LoanFactory.sol @@ -1,4 +1,18 @@ -// SPDX-License-Identifier: MIT +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ pragma solidity ^0.8.16; import "../interfaces/IServiceConfiguration.sol"; diff --git a/contracts/factories/PoolControllerFactory.sol b/contracts/factories/PoolControllerFactory.sol index 1cc421f8..bed46436 100644 --- a/contracts/factories/PoolControllerFactory.sol +++ b/contracts/factories/PoolControllerFactory.sol @@ -1,4 +1,18 @@ -// SPDX-License-Identifier: MIT +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ pragma solidity ^0.8.16; import "../controllers/PoolController.sol"; diff --git a/contracts/factories/PoolFactory.sol b/contracts/factories/PoolFactory.sol index 5648ecbd..776b658a 100644 --- a/contracts/factories/PoolFactory.sol +++ b/contracts/factories/PoolFactory.sol @@ -1,4 +1,18 @@ -// SPDX-License-Identifier: MIT +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ pragma solidity ^0.8.16; import "../Pool.sol"; diff --git a/contracts/factories/VaultFactory.sol b/contracts/factories/VaultFactory.sol index 3582de0c..ede6e857 100644 --- a/contracts/factories/VaultFactory.sol +++ b/contracts/factories/VaultFactory.sol @@ -1,4 +1,18 @@ -// SPDX-License-Identifier: MIT +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ pragma solidity ^0.8.16; import "../interfaces/IServiceConfiguration.sol"; diff --git a/contracts/factories/WithdrawControllerFactory.sol b/contracts/factories/WithdrawControllerFactory.sol index 1cbc633f..e3aaa04d 100644 --- a/contracts/factories/WithdrawControllerFactory.sol +++ b/contracts/factories/WithdrawControllerFactory.sol @@ -1,4 +1,18 @@ -// SPDX-License-Identifier: MIT +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ pragma solidity ^0.8.16; import "../controllers/WithdrawController.sol"; diff --git a/contracts/factories/interfaces/ILoanFactory.sol b/contracts/factories/interfaces/ILoanFactory.sol index e5cdd1da..7f801478 100644 --- a/contracts/factories/interfaces/ILoanFactory.sol +++ b/contracts/factories/interfaces/ILoanFactory.sol @@ -1,4 +1,18 @@ -// SPDX-License-Identifier: MIT +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ pragma solidity ^0.8.16; import "../../interfaces/ILoan.sol"; diff --git a/contracts/factories/interfaces/IPoolControllerFactory.sol b/contracts/factories/interfaces/IPoolControllerFactory.sol index f8df7daf..e4f03e74 100644 --- a/contracts/factories/interfaces/IPoolControllerFactory.sol +++ b/contracts/factories/interfaces/IPoolControllerFactory.sol @@ -1,4 +1,18 @@ -// SPDX-License-Identifier: MIT +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ pragma solidity ^0.8.16; import "../../interfaces/IPool.sol"; diff --git a/contracts/factories/interfaces/IPoolFactory.sol b/contracts/factories/interfaces/IPoolFactory.sol index 878ee363..7cda180d 100644 --- a/contracts/factories/interfaces/IPoolFactory.sol +++ b/contracts/factories/interfaces/IPoolFactory.sol @@ -1,4 +1,18 @@ -// SPDX-License-Identifier: MIT +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ pragma solidity ^0.8.16; import "../../interfaces/IPool.sol"; diff --git a/contracts/factories/interfaces/IVaultFactory.sol b/contracts/factories/interfaces/IVaultFactory.sol index d2850387..5b748432 100644 --- a/contracts/factories/interfaces/IVaultFactory.sol +++ b/contracts/factories/interfaces/IVaultFactory.sol @@ -1,4 +1,18 @@ -// SPDX-License-Identifier: MIT +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ pragma solidity ^0.8.16; /** diff --git a/contracts/factories/interfaces/IWithdrawControllerFactory.sol b/contracts/factories/interfaces/IWithdrawControllerFactory.sol index 3fa795d3..9d2f0477 100644 --- a/contracts/factories/interfaces/IWithdrawControllerFactory.sol +++ b/contracts/factories/interfaces/IWithdrawControllerFactory.sol @@ -1,4 +1,18 @@ -// SPDX-License-Identifier: MIT +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ pragma solidity ^0.8.16; /** diff --git a/contracts/interfaces/IERC4626.sol b/contracts/interfaces/IERC4626.sol index 483cfd44..92a70f68 100644 --- a/contracts/interfaces/IERC4626.sol +++ b/contracts/interfaces/IERC4626.sol @@ -1,4 +1,18 @@ -// SPDX-License-Identifier: MIT +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ pragma solidity ^0.8.16; import {IERC20Upgradeable} from "@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol"; diff --git a/contracts/interfaces/ILoan.sol b/contracts/interfaces/ILoan.sol index dc386bf8..da324ca3 100644 --- a/contracts/interfaces/ILoan.sol +++ b/contracts/interfaces/ILoan.sol @@ -1,4 +1,18 @@ -// SPDX-License-Identifier: MIT +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ pragma solidity ^0.8.16; import "./IServiceConfiguration.sol"; diff --git a/contracts/interfaces/IPool.sol b/contracts/interfaces/IPool.sol index 065d10de..be60625b 100644 --- a/contracts/interfaces/IPool.sol +++ b/contracts/interfaces/IPool.sol @@ -1,4 +1,18 @@ -// SPDX-License-Identifier: MIT +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ pragma solidity ^0.8.16; import "./IERC4626.sol"; diff --git a/contracts/interfaces/IRequestWithdrawable.sol b/contracts/interfaces/IRequestWithdrawable.sol index fcb6d238..a744b4fc 100644 --- a/contracts/interfaces/IRequestWithdrawable.sol +++ b/contracts/interfaces/IRequestWithdrawable.sol @@ -1,4 +1,18 @@ -// SPDX-License-Identifier: MIT +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ pragma solidity ^0.8.16; import {OwnableUpgradeable} from "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; diff --git a/contracts/interfaces/IServiceConfiguration.sol b/contracts/interfaces/IServiceConfiguration.sol index cdf43187..9bb26282 100644 --- a/contracts/interfaces/IServiceConfiguration.sol +++ b/contracts/interfaces/IServiceConfiguration.sol @@ -1,4 +1,18 @@ -// SPDX-License-Identifier: MIT +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ pragma solidity ^0.8.16; /** diff --git a/contracts/interfaces/IVault.sol b/contracts/interfaces/IVault.sol index e2d87707..1c93eb61 100644 --- a/contracts/interfaces/IVault.sol +++ b/contracts/interfaces/IVault.sol @@ -1,4 +1,18 @@ -// SPDX-License-Identifier: MIT +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ pragma solidity ^0.8.16; import {OwnableUpgradeable} from "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; diff --git a/contracts/libraries/LoanLib.sol b/contracts/libraries/LoanLib.sol index 8ac0fd4e..0a59fb02 100644 --- a/contracts/libraries/LoanLib.sol +++ b/contracts/libraries/LoanLib.sol @@ -1,4 +1,18 @@ -// SPDX-License-Identifier: MIT +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ pragma solidity ^0.8.16; import {IERC20} from "@openzeppelin/contracts/token/ERC20/ERC20.sol"; diff --git a/contracts/libraries/PoolLib.sol b/contracts/libraries/PoolLib.sol index 10a84294..a920071d 100644 --- a/contracts/libraries/PoolLib.sol +++ b/contracts/libraries/PoolLib.sol @@ -1,4 +1,18 @@ -// SPDX-License-Identifier: MIT +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ pragma solidity ^0.8.16; import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol"; diff --git a/contracts/mocks/MockERC20.sol b/contracts/mocks/MockERC20.sol index b7b6c1ab..08c9068d 100644 --- a/contracts/mocks/MockERC20.sol +++ b/contracts/mocks/MockERC20.sol @@ -1,4 +1,18 @@ -// SPDX-License-Identifier: MIT +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ pragma solidity ^0.8.16; import {ERC20PresetMinterPauser} from "@openzeppelin/contracts/token/ERC20/presets/ERC20PresetMinterPauser.sol"; diff --git a/contracts/mocks/MockERC721.sol b/contracts/mocks/MockERC721.sol index 4152b9e7..a28c7f96 100644 --- a/contracts/mocks/MockERC721.sol +++ b/contracts/mocks/MockERC721.sol @@ -1,4 +1,18 @@ -// SPDX-License-Identifier: MIT +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ pragma solidity ^0.8.16; import {ERC721PresetMinterPauserAutoId} from "@openzeppelin/contracts/token/ERC721/presets/ERC721PresetMinterPauserAutoId.sol"; diff --git a/contracts/mocks/MockLoan.sol b/contracts/mocks/MockLoan.sol index 0b980adf..06b3f22d 100644 --- a/contracts/mocks/MockLoan.sol +++ b/contracts/mocks/MockLoan.sol @@ -1,4 +1,18 @@ -// SPDX-License-Identifier: MIT +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ pragma solidity ^0.8.16; import "../interfaces/ILoan.sol"; diff --git a/contracts/mocks/MockVeriteAccessControl.sol b/contracts/mocks/MockVeriteAccessControl.sol index 19dcb270..db08233b 100644 --- a/contracts/mocks/MockVeriteAccessControl.sol +++ b/contracts/mocks/MockVeriteAccessControl.sol @@ -1,4 +1,18 @@ -// SPDX-License-Identifier: MIT +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ pragma solidity ^0.8.16; import {VeriteAccessControl} from "../permissioned/VeriteAccessControl.sol"; diff --git a/contracts/mocks/PoolLibTestWrapper.sol b/contracts/mocks/PoolLibTestWrapper.sol index 7d94f4cd..87c8e2a6 100644 --- a/contracts/mocks/PoolLibTestWrapper.sol +++ b/contracts/mocks/PoolLibTestWrapper.sol @@ -1,4 +1,18 @@ -// SPDX-License-Identifier: MIT +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ pragma solidity ^0.8.16; import "../libraries/PoolLib.sol"; diff --git a/contracts/mocks/upgrades/LoanMockV2.sol b/contracts/mocks/upgrades/LoanMockV2.sol index f1f622aa..04865086 100644 --- a/contracts/mocks/upgrades/LoanMockV2.sol +++ b/contracts/mocks/upgrades/LoanMockV2.sol @@ -1,4 +1,18 @@ -// SPDX-License-Identifier: MIT +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ pragma solidity ^0.8.16; import "../../Loan.sol"; diff --git a/contracts/mocks/upgrades/MockBeaconImplementation.sol b/contracts/mocks/upgrades/MockBeaconImplementation.sol index 8aa83670..4965d82b 100644 --- a/contracts/mocks/upgrades/MockBeaconImplementation.sol +++ b/contracts/mocks/upgrades/MockBeaconImplementation.sol @@ -1,4 +1,18 @@ -// SPDX-License-Identifier: MIT +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ pragma solidity ^0.8.16; import "../../upgrades/BeaconImplementation.sol"; diff --git a/contracts/mocks/upgrades/MockBeaconProxyFactory.sol b/contracts/mocks/upgrades/MockBeaconProxyFactory.sol index a5448642..5fb1a948 100644 --- a/contracts/mocks/upgrades/MockBeaconProxyFactory.sol +++ b/contracts/mocks/upgrades/MockBeaconProxyFactory.sol @@ -1,4 +1,18 @@ -// SPDX-License-Identifier: MIT +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ pragma solidity ^0.8.16; import "../../upgrades/BeaconProxyFactory.sol"; diff --git a/contracts/mocks/upgrades/MockDeployerUUPSUpgradeable.sol b/contracts/mocks/upgrades/MockDeployerUUPSUpgradeable.sol index febcb50c..a5ff510d 100644 --- a/contracts/mocks/upgrades/MockDeployerUUPSUpgradeable.sol +++ b/contracts/mocks/upgrades/MockDeployerUUPSUpgradeable.sol @@ -1,4 +1,18 @@ -// SPDX-License-Identifier: MIT +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ pragma solidity ^0.8.16; import "../../upgrades/DeployerUUPSUpgradeable.sol"; diff --git a/contracts/mocks/upgrades/MockUpgrade.sol b/contracts/mocks/upgrades/MockUpgrade.sol index a4dd5d85..b3aa4f8a 100644 --- a/contracts/mocks/upgrades/MockUpgrade.sol +++ b/contracts/mocks/upgrades/MockUpgrade.sol @@ -1,4 +1,18 @@ -// SPDX-License-Identifier: MIT +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ pragma solidity ^0.8.16; abstract contract MockUpgrade { diff --git a/contracts/mocks/upgrades/PoolAccessControlMockV2.sol b/contracts/mocks/upgrades/PoolAccessControlMockV2.sol index e15979e8..54e77777 100644 --- a/contracts/mocks/upgrades/PoolAccessControlMockV2.sol +++ b/contracts/mocks/upgrades/PoolAccessControlMockV2.sol @@ -1,4 +1,18 @@ -// SPDX-License-Identifier: MIT +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ pragma solidity ^0.8.16; import "../../permissioned/PoolAccessControl.sol"; diff --git a/contracts/mocks/upgrades/PoolAdminAccessControlMockV2.sol b/contracts/mocks/upgrades/PoolAdminAccessControlMockV2.sol index 861cb33a..b8ef75b0 100644 --- a/contracts/mocks/upgrades/PoolAdminAccessControlMockV2.sol +++ b/contracts/mocks/upgrades/PoolAdminAccessControlMockV2.sol @@ -1,4 +1,18 @@ -// SPDX-License-Identifier: MIT +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ pragma solidity ^0.8.16; import "../../permissioned/PoolAdminAccessControl.sol"; diff --git a/contracts/mocks/upgrades/PoolControllerMockV2.sol b/contracts/mocks/upgrades/PoolControllerMockV2.sol index 058569d6..b6b67e8b 100644 --- a/contracts/mocks/upgrades/PoolControllerMockV2.sol +++ b/contracts/mocks/upgrades/PoolControllerMockV2.sol @@ -1,4 +1,18 @@ -// SPDX-License-Identifier: MIT +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ pragma solidity ^0.8.16; import "../../controllers/PoolController.sol"; diff --git a/contracts/mocks/upgrades/PoolMockV2.sol b/contracts/mocks/upgrades/PoolMockV2.sol index ff918e2d..ee9c5f6a 100644 --- a/contracts/mocks/upgrades/PoolMockV2.sol +++ b/contracts/mocks/upgrades/PoolMockV2.sol @@ -1,4 +1,18 @@ -// SPDX-License-Identifier: MIT +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ pragma solidity ^0.8.16; import "../../Pool.sol"; diff --git a/contracts/mocks/upgrades/ServiceConfigurationMockV2.sol b/contracts/mocks/upgrades/ServiceConfigurationMockV2.sol index 56de396b..bdca4190 100644 --- a/contracts/mocks/upgrades/ServiceConfigurationMockV2.sol +++ b/contracts/mocks/upgrades/ServiceConfigurationMockV2.sol @@ -1,4 +1,18 @@ -// SPDX-License-Identifier: MIT +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ pragma solidity ^0.8.16; import "../../ServiceConfiguration.sol"; diff --git a/contracts/mocks/upgrades/ToSAcceptanceRegistryMockV2.sol b/contracts/mocks/upgrades/ToSAcceptanceRegistryMockV2.sol index 4970cb38..504c8a3b 100644 --- a/contracts/mocks/upgrades/ToSAcceptanceRegistryMockV2.sol +++ b/contracts/mocks/upgrades/ToSAcceptanceRegistryMockV2.sol @@ -1,4 +1,18 @@ -// SPDX-License-Identifier: MIT +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ pragma solidity ^0.8.16; import "../../permissioned/ToSAcceptanceRegistry.sol"; diff --git a/contracts/mocks/upgrades/VaultMockV2.sol b/contracts/mocks/upgrades/VaultMockV2.sol index fd217563..68435029 100644 --- a/contracts/mocks/upgrades/VaultMockV2.sol +++ b/contracts/mocks/upgrades/VaultMockV2.sol @@ -1,4 +1,18 @@ -// SPDX-License-Identifier: MIT +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ pragma solidity ^0.8.16; import "../../Vault.sol"; diff --git a/contracts/mocks/upgrades/WithdrawControllerMockV2.sol b/contracts/mocks/upgrades/WithdrawControllerMockV2.sol index 6799fbb5..2eb17e60 100644 --- a/contracts/mocks/upgrades/WithdrawControllerMockV2.sol +++ b/contracts/mocks/upgrades/WithdrawControllerMockV2.sol @@ -1,4 +1,18 @@ -// SPDX-License-Identifier: MIT +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ pragma solidity ^0.8.16; import "../../controllers/WithdrawController.sol"; diff --git a/contracts/permissioned/PermissionedLoan.sol b/contracts/permissioned/PermissionedLoan.sol index 11372009..e926e264 100644 --- a/contracts/permissioned/PermissionedLoan.sol +++ b/contracts/permissioned/PermissionedLoan.sol @@ -1,4 +1,18 @@ -// SPDX-License-Identifier: MIT +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ pragma solidity ^0.8.16; import "../Loan.sol"; diff --git a/contracts/permissioned/PermissionedPool.sol b/contracts/permissioned/PermissionedPool.sol index a037a48b..bddeca3c 100644 --- a/contracts/permissioned/PermissionedPool.sol +++ b/contracts/permissioned/PermissionedPool.sol @@ -1,4 +1,18 @@ -// SPDX-License-Identifier: MIT +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ pragma solidity ^0.8.16; import "../Pool.sol"; diff --git a/contracts/permissioned/PermissionedServiceConfiguration.sol b/contracts/permissioned/PermissionedServiceConfiguration.sol index d4b4382f..da162f8f 100644 --- a/contracts/permissioned/PermissionedServiceConfiguration.sol +++ b/contracts/permissioned/PermissionedServiceConfiguration.sol @@ -1,4 +1,18 @@ -// SPDX-License-Identifier: MIT +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ pragma solidity ^0.8.16; import "./interfaces/IPoolAdminAccessControl.sol"; diff --git a/contracts/permissioned/PoolAccessControl.sol b/contracts/permissioned/PoolAccessControl.sol index 03039ad0..c8ff208d 100644 --- a/contracts/permissioned/PoolAccessControl.sol +++ b/contracts/permissioned/PoolAccessControl.sol @@ -1,4 +1,18 @@ -// SPDX-License-Identifier: MIT +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ pragma solidity ^0.8.16; import "./interfaces/IPoolAccessControl.sol"; diff --git a/contracts/permissioned/PoolAdminAccessControl.sol b/contracts/permissioned/PoolAdminAccessControl.sol index 7581faf9..1d506734 100644 --- a/contracts/permissioned/PoolAdminAccessControl.sol +++ b/contracts/permissioned/PoolAdminAccessControl.sol @@ -1,4 +1,18 @@ -// SPDX-License-Identifier: MIT +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ pragma solidity ^0.8.16; import "./interfaces/IPoolAdminAccessControl.sol"; diff --git a/contracts/permissioned/ToSAcceptanceRegistry.sol b/contracts/permissioned/ToSAcceptanceRegistry.sol index 9654b9da..dc421973 100644 --- a/contracts/permissioned/ToSAcceptanceRegistry.sol +++ b/contracts/permissioned/ToSAcceptanceRegistry.sol @@ -1,4 +1,18 @@ -// SPDX-License-Identifier: MIT +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ pragma solidity ^0.8.16; import "./interfaces/IToSAcceptanceRegistry.sol"; diff --git a/contracts/permissioned/VeriteAccessControl.sol b/contracts/permissioned/VeriteAccessControl.sol index 71d3ca75..b3d5fe5a 100644 --- a/contracts/permissioned/VeriteAccessControl.sol +++ b/contracts/permissioned/VeriteAccessControl.sol @@ -1,4 +1,18 @@ -// SPDX-License-Identifier: MIT +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ pragma solidity ^0.8.16; import "./interfaces/IVeriteAccessControl.sol"; diff --git a/contracts/permissioned/controllers/PermissionedPoolController.sol b/contracts/permissioned/controllers/PermissionedPoolController.sol index ea29b0c7..162a5d5f 100644 --- a/contracts/permissioned/controllers/PermissionedPoolController.sol +++ b/contracts/permissioned/controllers/PermissionedPoolController.sol @@ -1,4 +1,18 @@ -// SPDX-License-Identifier: MIT +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ pragma solidity ^0.8.16; import "../../controllers/PoolController.sol"; diff --git a/contracts/permissioned/factories/PermissionedLoanFactory.sol b/contracts/permissioned/factories/PermissionedLoanFactory.sol index d9c47e0c..9d7cc711 100644 --- a/contracts/permissioned/factories/PermissionedLoanFactory.sol +++ b/contracts/permissioned/factories/PermissionedLoanFactory.sol @@ -1,4 +1,18 @@ -// SPDX-License-Identifier: MIT +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ pragma solidity ^0.8.16; import "../interfaces/IPermissionedServiceConfiguration.sol"; diff --git a/contracts/permissioned/factories/PermissionedPoolFactory.sol b/contracts/permissioned/factories/PermissionedPoolFactory.sol index 3e32d498..edba6ba5 100644 --- a/contracts/permissioned/factories/PermissionedPoolFactory.sol +++ b/contracts/permissioned/factories/PermissionedPoolFactory.sol @@ -1,4 +1,18 @@ -// SPDX-License-Identifier: MIT +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ pragma solidity ^0.8.16; import "../interfaces/IPermissionedServiceConfiguration.sol"; diff --git a/contracts/permissioned/factories/PoolAccessControlFactory.sol b/contracts/permissioned/factories/PoolAccessControlFactory.sol index cd0ed8da..c969c794 100644 --- a/contracts/permissioned/factories/PoolAccessControlFactory.sol +++ b/contracts/permissioned/factories/PoolAccessControlFactory.sol @@ -1,4 +1,18 @@ -// SPDX-License-Identifier: MIT +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ pragma solidity ^0.8.16; import "./interfaces/IPoolAccessControlFactory.sol"; diff --git a/contracts/permissioned/factories/interfaces/IPoolAccessControlFactory.sol b/contracts/permissioned/factories/interfaces/IPoolAccessControlFactory.sol index c9061e16..5f11a0e7 100644 --- a/contracts/permissioned/factories/interfaces/IPoolAccessControlFactory.sol +++ b/contracts/permissioned/factories/interfaces/IPoolAccessControlFactory.sol @@ -1,4 +1,18 @@ -// SPDX-License-Identifier: MIT +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ pragma solidity ^0.8.16; /** diff --git a/contracts/permissioned/interfaces/IPermissionedServiceConfiguration.sol b/contracts/permissioned/interfaces/IPermissionedServiceConfiguration.sol index 5991ff4b..89b86d49 100644 --- a/contracts/permissioned/interfaces/IPermissionedServiceConfiguration.sol +++ b/contracts/permissioned/interfaces/IPermissionedServiceConfiguration.sol @@ -1,4 +1,18 @@ -// SPDX-License-Identifier: MIT +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ pragma solidity ^0.8.16; import "./IPoolAdminAccessControl.sol"; diff --git a/contracts/permissioned/interfaces/IPoolAccessControl.sol b/contracts/permissioned/interfaces/IPoolAccessControl.sol index 03920f81..0b456b04 100644 --- a/contracts/permissioned/interfaces/IPoolAccessControl.sol +++ b/contracts/permissioned/interfaces/IPoolAccessControl.sol @@ -1,4 +1,18 @@ -// SPDX-License-Identifier: MIT +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ pragma solidity ^0.8.16; /** diff --git a/contracts/permissioned/interfaces/IPoolAdminAccessControl.sol b/contracts/permissioned/interfaces/IPoolAdminAccessControl.sol index b5c0ab1d..84ddda02 100644 --- a/contracts/permissioned/interfaces/IPoolAdminAccessControl.sol +++ b/contracts/permissioned/interfaces/IPoolAdminAccessControl.sol @@ -1,4 +1,18 @@ -// SPDX-License-Identifier: MIT +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ pragma solidity ^0.8.16; /** diff --git a/contracts/permissioned/interfaces/IToSAcceptanceRegistry.sol b/contracts/permissioned/interfaces/IToSAcceptanceRegistry.sol index 02eabace..283d8b48 100644 --- a/contracts/permissioned/interfaces/IToSAcceptanceRegistry.sol +++ b/contracts/permissioned/interfaces/IToSAcceptanceRegistry.sol @@ -1,4 +1,18 @@ -// SPDX-License-Identifier: MIT +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ pragma solidity ^0.8.16; /** diff --git a/contracts/permissioned/interfaces/IVeriteAccessControl.sol b/contracts/permissioned/interfaces/IVeriteAccessControl.sol index 98fb9111..2699b241 100644 --- a/contracts/permissioned/interfaces/IVeriteAccessControl.sol +++ b/contracts/permissioned/interfaces/IVeriteAccessControl.sol @@ -1,4 +1,18 @@ -// SPDX-License-Identifier: MIT +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ pragma solidity ^0.8.16; /** diff --git a/contracts/upgrades/BeaconImplementation.sol b/contracts/upgrades/BeaconImplementation.sol index 9ffd4233..f77a6f4d 100644 --- a/contracts/upgrades/BeaconImplementation.sol +++ b/contracts/upgrades/BeaconImplementation.sol @@ -1,4 +1,18 @@ -// SPDX-License-Identifier: MIT +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ pragma solidity ^0.8.16; import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol"; diff --git a/contracts/upgrades/BeaconProxyFactory.sol b/contracts/upgrades/BeaconProxyFactory.sol index b968d7a4..bb960834 100644 --- a/contracts/upgrades/BeaconProxyFactory.sol +++ b/contracts/upgrades/BeaconProxyFactory.sol @@ -1,4 +1,18 @@ -// SPDX-License-Identifier: MIT +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ pragma solidity ^0.8.16; import "../interfaces/IServiceConfiguration.sol"; diff --git a/contracts/upgrades/DeployerUUPSUpgradeable.sol b/contracts/upgrades/DeployerUUPSUpgradeable.sol index 04be450a..650f1dc4 100644 --- a/contracts/upgrades/DeployerUUPSUpgradeable.sol +++ b/contracts/upgrades/DeployerUUPSUpgradeable.sol @@ -1,4 +1,18 @@ -// SPDX-License-Identifier: MIT +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ pragma solidity ^0.8.16; import "@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol"; diff --git a/contracts/upgrades/interfaces/IBeacon.sol b/contracts/upgrades/interfaces/IBeacon.sol index db4f8006..35100c1d 100644 --- a/contracts/upgrades/interfaces/IBeacon.sol +++ b/contracts/upgrades/interfaces/IBeacon.sol @@ -1,4 +1,18 @@ -// SPDX-License-Identifier: MIT +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ pragma solidity ^0.8.16; /** diff --git a/scripts/deploy-permissionless.ts b/scripts/deploy-permissionless.ts index a4219c65..ff43ec8f 100644 --- a/scripts/deploy-permissionless.ts +++ b/scripts/deploy-permissionless.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import { ethers, upgrades } from "hardhat"; import hre from "hardhat"; diff --git a/scripts/deploy.ts b/scripts/deploy.ts index 877aab3c..829bb98d 100644 --- a/scripts/deploy.ts +++ b/scripts/deploy.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import { ethers, upgrades } from "hardhat"; import hre from "hardhat"; diff --git a/scripts/verify-pool-admin.ts b/scripts/verify-pool-admin.ts index ac83af9e..154dd612 100644 --- a/scripts/verify-pool-admin.ts +++ b/scripts/verify-pool-admin.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import { ethers } from "hardhat"; import hre from "hardhat"; diff --git a/scripts/verite-verify.ts b/scripts/verite-verify.ts index 35152bd1..41df264f 100644 --- a/scripts/verite-verify.ts +++ b/scripts/verite-verify.ts @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // import hre from "hardhat"; import fetch from "cross-fetch"; import type { PresentationDefinition } from "verite"; diff --git a/tasks/serviceConfiguration.ts b/tasks/serviceConfiguration.ts index bcec230d..6e116e4f 100644 --- a/tasks/serviceConfiguration.ts +++ b/tasks/serviceConfiguration.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import { task } from "hardhat/config"; import { ContractFactory } from "ethers"; diff --git a/tasks/tosAcceptanceRegistry.ts b/tasks/tosAcceptanceRegistry.ts index 862b19d7..1437cf87 100644 --- a/tasks/tosAcceptanceRegistry.ts +++ b/tasks/tosAcceptanceRegistry.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import { task } from "hardhat/config"; import { ContractFactory } from "ethers"; diff --git a/test/Loan.test.ts b/test/Loan.test.ts index 65049211..a43d6746 100644 --- a/test/Loan.test.ts +++ b/test/Loan.test.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import { time, loadFixture } from "@nomicfoundation/hardhat-network-helpers"; import { expect } from "chai"; import { ethers } from "hardhat"; diff --git a/test/Pool.test.ts b/test/Pool.test.ts index ca8b20a9..4ddfe764 100644 --- a/test/Pool.test.ts +++ b/test/Pool.test.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import { time, loadFixture } from "@nomicfoundation/hardhat-network-helpers"; import { expect } from "chai"; import { ethers } from "hardhat"; diff --git a/test/ServiceConfiguration.test.ts b/test/ServiceConfiguration.test.ts index e95c9f5b..74f6b885 100644 --- a/test/ServiceConfiguration.test.ts +++ b/test/ServiceConfiguration.test.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import { loadFixture } from "@nomicfoundation/hardhat-network-helpers"; import { expect } from "chai"; import { ethers, upgrades } from "hardhat"; diff --git a/test/Vault.test.ts b/test/Vault.test.ts index 65b2a059..b9d58348 100644 --- a/test/Vault.test.ts +++ b/test/Vault.test.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import { loadFixture } from "@nomicfoundation/hardhat-network-helpers"; import { expect } from "chai"; import { ethers } from "hardhat"; diff --git a/test/controllers/PoolController.test.ts b/test/controllers/PoolController.test.ts index f07b0635..d2de5ef8 100644 --- a/test/controllers/PoolController.test.ts +++ b/test/controllers/PoolController.test.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import { time, loadFixture } from "@nomicfoundation/hardhat-network-helpers"; import { expect } from "chai"; import { ethers } from "hardhat"; diff --git a/test/controllers/WithdrawController.test.ts b/test/controllers/WithdrawController.test.ts index fc471c26..2df2f641 100644 --- a/test/controllers/WithdrawController.test.ts +++ b/test/controllers/WithdrawController.test.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import { time, loadFixture } from "@nomicfoundation/hardhat-network-helpers"; import { expect } from "chai"; import { ethers } from "hardhat"; diff --git a/test/factories/LoanFactory.test.ts b/test/factories/LoanFactory.test.ts index 88a38878..9e78a59f 100644 --- a/test/factories/LoanFactory.test.ts +++ b/test/factories/LoanFactory.test.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import { loadFixture } from "@nomicfoundation/hardhat-network-helpers"; import { expect } from "chai"; import { ethers } from "hardhat"; diff --git a/test/factories/PoolFactory.test.ts b/test/factories/PoolFactory.test.ts index 3d1ab8b9..39cde1d9 100644 --- a/test/factories/PoolFactory.test.ts +++ b/test/factories/PoolFactory.test.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import { loadFixture } from "@nomicfoundation/hardhat-network-helpers"; import { expect } from "chai"; import { ethers } from "hardhat"; diff --git a/test/factories/VaultFactory.test.ts b/test/factories/VaultFactory.test.ts index 464ff9f4..9809dabc 100644 --- a/test/factories/VaultFactory.test.ts +++ b/test/factories/VaultFactory.test.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import { loadFixture } from "@nomicfoundation/hardhat-network-helpers"; import { expect } from "chai"; import { ethers } from "hardhat"; diff --git a/test/libraries/PoolLib.test.ts b/test/libraries/PoolLib.test.ts index 2d287875..2c6a1bc4 100644 --- a/test/libraries/PoolLib.test.ts +++ b/test/libraries/PoolLib.test.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import { loadFixture, time } from "@nomicfoundation/hardhat-network-helpers"; import { expect } from "chai"; import { ethers } from "hardhat"; diff --git a/test/permissioned/PermissionedLoan.test.ts b/test/permissioned/PermissionedLoan.test.ts index 0314ca0e..f41e7276 100644 --- a/test/permissioned/PermissionedLoan.test.ts +++ b/test/permissioned/PermissionedLoan.test.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import { loadFixture, time } from "@nomicfoundation/hardhat-network-helpers"; import { expect } from "chai"; import { ethers } from "hardhat"; diff --git a/test/permissioned/PermissionedPool.test.ts b/test/permissioned/PermissionedPool.test.ts index 112637ab..1c0b8581 100644 --- a/test/permissioned/PermissionedPool.test.ts +++ b/test/permissioned/PermissionedPool.test.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import { time, loadFixture } from "@nomicfoundation/hardhat-network-helpers"; import { expect } from "chai"; import { diff --git a/test/permissioned/PermissionedPoolController.test.ts b/test/permissioned/PermissionedPoolController.test.ts index 40e6da04..a4fb1796 100644 --- a/test/permissioned/PermissionedPoolController.test.ts +++ b/test/permissioned/PermissionedPoolController.test.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import { time, loadFixture } from "@nomicfoundation/hardhat-network-helpers"; import { expect } from "chai"; import { diff --git a/test/permissioned/PoolAccessControl.test.ts b/test/permissioned/PoolAccessControl.test.ts index 86928150..157159f4 100644 --- a/test/permissioned/PoolAccessControl.test.ts +++ b/test/permissioned/PoolAccessControl.test.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import { time, loadFixture } from "@nomicfoundation/hardhat-network-helpers"; import { expect } from "chai"; import { ethers } from "hardhat"; diff --git a/test/permissioned/PoolAdminAccessControl.test.ts b/test/permissioned/PoolAdminAccessControl.test.ts index 6be1a96a..20bf818c 100644 --- a/test/permissioned/PoolAdminAccessControl.test.ts +++ b/test/permissioned/PoolAdminAccessControl.test.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import { loadFixture } from "@nomicfoundation/hardhat-network-helpers"; import { expect } from "chai"; import { ethers, upgrades } from "hardhat"; diff --git a/test/permissioned/ToSConsentRegistry.test.ts b/test/permissioned/ToSConsentRegistry.test.ts index c6bd2f09..0d1180b5 100644 --- a/test/permissioned/ToSConsentRegistry.test.ts +++ b/test/permissioned/ToSConsentRegistry.test.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import { loadFixture } from "@nomicfoundation/hardhat-network-helpers"; import { expect } from "chai"; import { ethers, upgrades } from "hardhat"; diff --git a/test/permissioned/VeriteAccessControl.test.ts b/test/permissioned/VeriteAccessControl.test.ts index 10883e60..0d3ccf8a 100644 --- a/test/permissioned/VeriteAccessControl.test.ts +++ b/test/permissioned/VeriteAccessControl.test.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import { ethers, upgrades } from "hardhat"; import { getSignedVerificationResult } from "../support/verite"; import { expect } from "chai"; diff --git a/test/permissioned/factories/PermissionedLoanFactory.test.ts b/test/permissioned/factories/PermissionedLoanFactory.test.ts index d151cf23..20c961cb 100644 --- a/test/permissioned/factories/PermissionedLoanFactory.test.ts +++ b/test/permissioned/factories/PermissionedLoanFactory.test.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import { loadFixture } from "@nomicfoundation/hardhat-network-helpers"; import { expect } from "chai"; import { ethers } from "hardhat"; diff --git a/test/permissioned/factories/PermissionedPoolFactory.test.ts b/test/permissioned/factories/PermissionedPoolFactory.test.ts index 5afedb12..d58f4cb8 100644 --- a/test/permissioned/factories/PermissionedPoolFactory.test.ts +++ b/test/permissioned/factories/PermissionedPoolFactory.test.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import { loadFixture } from "@nomicfoundation/hardhat-network-helpers"; import { expect } from "chai"; import { ethers, upgrades } from "hardhat"; diff --git a/test/scenarios/business/1.test.ts b/test/scenarios/business/1.test.ts index 859c5c4e..f0f0929f 100644 --- a/test/scenarios/business/1.test.ts +++ b/test/scenarios/business/1.test.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import { time, loadFixture } from "@nomicfoundation/hardhat-network-helpers"; import { expect } from "chai"; import { ethers } from "hardhat"; diff --git a/test/scenarios/business/2.test.ts b/test/scenarios/business/2.test.ts index 25fb07c2..29479604 100644 --- a/test/scenarios/business/2.test.ts +++ b/test/scenarios/business/2.test.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import { time, loadFixture } from "@nomicfoundation/hardhat-network-helpers"; import { expect } from "chai"; import { ethers } from "hardhat"; diff --git a/test/scenarios/business/3.test.ts b/test/scenarios/business/3.test.ts index 73776e08..1f8e5964 100644 --- a/test/scenarios/business/3.test.ts +++ b/test/scenarios/business/3.test.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import { time, loadFixture } from "@nomicfoundation/hardhat-network-helpers"; import { expect } from "chai"; import { ethers } from "hardhat"; diff --git a/test/scenarios/business/4.test.ts b/test/scenarios/business/4.test.ts index 765e9942..df9c8417 100644 --- a/test/scenarios/business/4.test.ts +++ b/test/scenarios/business/4.test.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import { time, loadFixture } from "@nomicfoundation/hardhat-network-helpers"; import { expect } from "chai"; import { ethers } from "hardhat"; diff --git a/test/scenarios/business/permissioned/1.test.ts b/test/scenarios/business/permissioned/1.test.ts index ab110617..81ce4a23 100644 --- a/test/scenarios/business/permissioned/1.test.ts +++ b/test/scenarios/business/permissioned/1.test.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import { time, loadFixture } from "@nomicfoundation/hardhat-network-helpers"; import { expect } from "chai"; import { deployPermissionedPool, activatePool } from "../../../support/pool"; diff --git a/test/scenarios/business/permissioned/2.test.ts b/test/scenarios/business/permissioned/2.test.ts index 28a9cdfc..12641ac0 100644 --- a/test/scenarios/business/permissioned/2.test.ts +++ b/test/scenarios/business/permissioned/2.test.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import { time, loadFixture } from "@nomicfoundation/hardhat-network-helpers"; import { expect } from "chai"; import { deployPermissionedPool, activatePool } from "../../../support/pool"; diff --git a/test/scenarios/business/permissioned/3.test.ts b/test/scenarios/business/permissioned/3.test.ts index 0f08e299..c54a3e93 100644 --- a/test/scenarios/business/permissioned/3.test.ts +++ b/test/scenarios/business/permissioned/3.test.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import { time, loadFixture } from "@nomicfoundation/hardhat-network-helpers"; import { expect } from "chai"; import { deployPermissionedPool, activatePool } from "../../../support/pool"; diff --git a/test/scenarios/business/permissioned/4.test.ts b/test/scenarios/business/permissioned/4.test.ts index 6ed6471c..972ffa10 100644 --- a/test/scenarios/business/permissioned/4.test.ts +++ b/test/scenarios/business/permissioned/4.test.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import { time, loadFixture } from "@nomicfoundation/hardhat-network-helpers"; import { expect } from "chai"; import { deployPermissionedPool, activatePool } from "../../../support/pool"; diff --git a/test/scenarios/pool/direct-deposit.test.ts b/test/scenarios/pool/direct-deposit.test.ts index b1a1c868..4fe2c97e 100644 --- a/test/scenarios/pool/direct-deposit.test.ts +++ b/test/scenarios/pool/direct-deposit.test.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import { loadFixture } from "@nomicfoundation/hardhat-network-helpers"; import { expect } from "chai"; import { deployLoan, fundLoan } from "../../support/loan"; diff --git a/test/scenarios/pool/fixed-term-defaulted.test.ts b/test/scenarios/pool/fixed-term-defaulted.test.ts index 1e51eb4c..77de068d 100644 --- a/test/scenarios/pool/fixed-term-defaulted.test.ts +++ b/test/scenarios/pool/fixed-term-defaulted.test.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import { time, loadFixture } from "@nomicfoundation/hardhat-network-helpers"; import { expect } from "chai"; import { ethers } from "hardhat"; diff --git a/test/scenarios/pool/fixed-term-matured.test.ts b/test/scenarios/pool/fixed-term-matured.test.ts index ef61dfe4..a1972672 100644 --- a/test/scenarios/pool/fixed-term-matured.test.ts +++ b/test/scenarios/pool/fixed-term-matured.test.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import { time, loadFixture } from "@nomicfoundation/hardhat-network-helpers"; import { expect } from "chai"; import { ethers } from "hardhat"; diff --git a/test/scenarios/pool/open-term-defaulted.test.ts b/test/scenarios/pool/open-term-defaulted.test.ts index 6ae98fdd..b3470467 100644 --- a/test/scenarios/pool/open-term-defaulted.test.ts +++ b/test/scenarios/pool/open-term-defaulted.test.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import { time, loadFixture } from "@nomicfoundation/hardhat-network-helpers"; import { expect } from "chai"; import { ethers } from "hardhat"; diff --git a/test/scenarios/pool/open-term-matured.test.ts b/test/scenarios/pool/open-term-matured.test.ts index 7a6e2014..dd597dde 100644 --- a/test/scenarios/pool/open-term-matured.test.ts +++ b/test/scenarios/pool/open-term-matured.test.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import { time, loadFixture } from "@nomicfoundation/hardhat-network-helpers"; import { expect } from "chai"; import { ethers } from "hardhat"; diff --git a/test/scenarios/pool/snapshot-variations.test.ts b/test/scenarios/pool/snapshot-variations.test.ts index b38edda7..37cb893f 100644 --- a/test/scenarios/pool/snapshot-variations.test.ts +++ b/test/scenarios/pool/snapshot-variations.test.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import { time, loadFixture } from "@nomicfoundation/hardhat-network-helpers"; import { expect } from "chai"; import { deployLoan, fundLoan } from "../../support/loan"; diff --git a/test/scenarios/pool/withdraw-dos.test.ts b/test/scenarios/pool/withdraw-dos.test.ts index 28c7f757..04126b67 100644 --- a/test/scenarios/pool/withdraw-dos.test.ts +++ b/test/scenarios/pool/withdraw-dos.test.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import { time, loadFixture } from "@nomicfoundation/hardhat-network-helpers"; import { expect } from "chai"; import { deployMockERC20 } from "../../support/erc20"; diff --git a/test/scenarios/pool/withdraw-request.test.ts b/test/scenarios/pool/withdraw-request.test.ts index 440b0456..44929f39 100644 --- a/test/scenarios/pool/withdraw-request.test.ts +++ b/test/scenarios/pool/withdraw-request.test.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import { time, loadFixture } from "@nomicfoundation/hardhat-network-helpers"; import { expect } from "chai"; import { ethers } from "hardhat"; diff --git a/test/support/erc20.ts b/test/support/erc20.ts index 8fe47071..deeb1f4e 100644 --- a/test/support/erc20.ts +++ b/test/support/erc20.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import { ethers } from "hardhat"; /** diff --git a/test/support/loan.ts b/test/support/loan.ts index 2c5b2c8d..33123288 100644 --- a/test/support/loan.ts +++ b/test/support/loan.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import { ethers } from "hardhat"; import { deployVaultFactory } from "./pool"; import { diff --git a/test/support/pool.ts b/test/support/pool.ts index e0e77432..770362a5 100644 --- a/test/support/pool.ts +++ b/test/support/pool.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import { ethers } from "hardhat"; import { time } from "@nomicfoundation/hardhat-network-helpers"; import { MockERC20, PermissionedPool, Pool } from "../../typechain-types"; diff --git a/test/support/serviceconfiguration.ts b/test/support/serviceconfiguration.ts index 7e38b85b..addc6a65 100644 --- a/test/support/serviceconfiguration.ts +++ b/test/support/serviceconfiguration.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import { ethers, upgrades } from "hardhat"; import { deployToSAcceptanceRegistry } from "./tosacceptanceregistry"; import { getCommonSigners } from "./utils"; diff --git a/test/support/tosacceptanceregistry.ts b/test/support/tosacceptanceregistry.ts index 04828769..3e5544e0 100644 --- a/test/support/tosacceptanceregistry.ts +++ b/test/support/tosacceptanceregistry.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import { ethers, upgrades } from "hardhat"; /** diff --git a/test/support/utils.ts b/test/support/utils.ts index 3240691c..aa730146 100644 --- a/test/support/utils.ts +++ b/test/support/utils.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import { ethers } from "hardhat"; export function findEventByName(receipt: any, name: string) { diff --git a/test/support/verite.ts b/test/support/verite.ts index d76cf7b8..59f3bdef 100644 --- a/test/support/verite.ts +++ b/test/support/verite.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import { time } from "@nomicfoundation/hardhat-network-helpers"; import { ethers } from "ethers"; import { expect } from "chai"; diff --git a/test/upgrades/BeaconImplementation.test.ts b/test/upgrades/BeaconImplementation.test.ts index 2f593b07..a6cbb698 100644 --- a/test/upgrades/BeaconImplementation.test.ts +++ b/test/upgrades/BeaconImplementation.test.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import { loadFixture } from "@nomicfoundation/hardhat-network-helpers"; import { expect } from "chai"; import { ethers } from "hardhat"; diff --git a/test/upgrades/BeaconProxyFactory.test.ts b/test/upgrades/BeaconProxyFactory.test.ts index 856a70aa..86812558 100644 --- a/test/upgrades/BeaconProxyFactory.test.ts +++ b/test/upgrades/BeaconProxyFactory.test.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import { loadFixture } from "@nomicfoundation/hardhat-network-helpers"; import { expect } from "chai"; import { ethers } from "hardhat"; diff --git a/test/upgrades/DeployerUUPSUpgradeable.test.ts b/test/upgrades/DeployerUUPSUpgradeable.test.ts index 1bc7da78..b2f467d5 100644 --- a/test/upgrades/DeployerUUPSUpgradeable.test.ts +++ b/test/upgrades/DeployerUUPSUpgradeable.test.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023, Circle Internet Financial Limited. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import { loadFixture } from "@nomicfoundation/hardhat-network-helpers"; import { expect } from "chai"; import { ethers, upgrades } from "hardhat";