From 6ad5044c8d6394bbdd34b41c8fc673b23abd5d54 Mon Sep 17 00:00:00 2001 From: Timofey Luin Date: Fri, 15 Dec 2023 13:59:50 +0100 Subject: [PATCH] add missing license headers --- contracts/script/DeploySpectre.s.sol | 5 ++++- contracts/script/DeploySpectreTestnet.s.sol | 5 ++++- contracts/script/deploy_local.sh | 4 ---- contracts/script/deploy_testnet.sh | 4 ---- contracts/src/EndianConversions.sol | 5 ++++- contracts/src/RotateLib.sol | 5 ++++- contracts/src/Spectre.sol | 5 ++++- contracts/src/SyncStepLib.sol | 5 ++++- contracts/src/interfaces/CommitteeUpdateVerifier.sol | 5 ++++- contracts/src/interfaces/SyncStepVerifier.sol | 5 ++++- contracts/src/mocks/CommitteeUpdateMockVerifier.sol | 5 ++++- contracts/src/mocks/SyncStepMockVerifier.sol | 5 ++++- contracts/test/RotateExternal.sol | 5 ++++- contracts/test/SyncStepExternal.sol | 5 ++++- preprocessor/scripts/generateTestData.ts | 4 ---- preprocessor/scripts/util.ts | 4 ---- test-utils/scripts/download_consensus_specs.sh | 4 ---- 17 files changed, 48 insertions(+), 32 deletions(-) diff --git a/contracts/script/DeploySpectre.s.sol b/contracts/script/DeploySpectre.s.sol index 49b49a10..bcb4a902 100644 --- a/contracts/script/DeploySpectre.s.sol +++ b/contracts/script/DeploySpectre.s.sol @@ -1,4 +1,7 @@ -// SPDX-License-Identifier: MIT +// The Licensed Work is (c) 2023 ChainSafe +// Code: https://github.com/ChainSafe/Spectre +// SPDX-License-Identifier: LGPL-3.0-only + pragma solidity ^0.8.0; import "forge-std/Script.sol"; diff --git a/contracts/script/DeploySpectreTestnet.s.sol b/contracts/script/DeploySpectreTestnet.s.sol index 64f03c5d..e03c78d1 100644 --- a/contracts/script/DeploySpectreTestnet.s.sol +++ b/contracts/script/DeploySpectreTestnet.s.sol @@ -1,4 +1,7 @@ -// SPDX-License-Identifier: MIT +// The Licensed Work is (c) 2023 ChainSafe +// Code: https://github.com/ChainSafe/Spectre +// SPDX-License-Identifier: LGPL-3.0-only + pragma solidity ^0.8.0; import "forge-std/Script.sol"; diff --git a/contracts/script/deploy_local.sh b/contracts/script/deploy_local.sh index b8fe7263..6132d7ac 100644 --- a/contracts/script/deploy_local.sh +++ b/contracts/script/deploy_local.sh @@ -1,7 +1,3 @@ -# The Licensed Work is (c) 2023 ChainSafe -# Code: https://github.com/ChainSafe/Spectre -# SPDX-License-Identifier: LGPL-3.0-only - #!/bin/sh cd $(git rev-parse --show-toplevel) source .env diff --git a/contracts/script/deploy_testnet.sh b/contracts/script/deploy_testnet.sh index e64fcb4f..a435ad4c 100644 --- a/contracts/script/deploy_testnet.sh +++ b/contracts/script/deploy_testnet.sh @@ -1,7 +1,3 @@ -# The Licensed Work is (c) 2023 ChainSafe -# Code: https://github.com/ChainSafe/Spectre -# SPDX-License-Identifier: LGPL-3.0-only - #!/bin/sh cd $(git rev-parse --show-toplevel) source .env diff --git a/contracts/src/EndianConversions.sol b/contracts/src/EndianConversions.sol index 706a9b53..e12bd7bf 100644 --- a/contracts/src/EndianConversions.sol +++ b/contracts/src/EndianConversions.sol @@ -1,4 +1,7 @@ -// SPDX-License-Identifier: MIT +// The Licensed Work is (c) 2023 ChainSafe +// Code: https://github.com/ChainSafe/Spectre +// SPDX-License-Identifier: LGPL-3.0-only + pragma solidity ^0.8.0; library EndianConversions { diff --git a/contracts/src/RotateLib.sol b/contracts/src/RotateLib.sol index 5bdb38e5..e97a844c 100644 --- a/contracts/src/RotateLib.sol +++ b/contracts/src/RotateLib.sol @@ -1,4 +1,7 @@ -// SPDX-License-Identifier: MIT +// The Licensed Work is (c) 2023 ChainSafe +// Code: https://github.com/ChainSafe/Spectre +// SPDX-License-Identifier: LGPL-3.0-only + pragma solidity ^0.8.0; import { EndianConversions } from "./EndianConversions.sol"; diff --git a/contracts/src/Spectre.sol b/contracts/src/Spectre.sol index fda21cb0..88ef4d0c 100644 --- a/contracts/src/Spectre.sol +++ b/contracts/src/Spectre.sol @@ -1,4 +1,7 @@ -// SPDX-License-Identifier: MIT +// The Licensed Work is (c) 2023 ChainSafe +// Code: https://github.com/ChainSafe/Spectre +// SPDX-License-Identifier: LGPL-3.0-only + pragma solidity ^0.8.0; import {SyncStepLib} from "./SyncStepLib.sol"; diff --git a/contracts/src/SyncStepLib.sol b/contracts/src/SyncStepLib.sol index c29d22b7..838de737 100644 --- a/contracts/src/SyncStepLib.sol +++ b/contracts/src/SyncStepLib.sol @@ -1,4 +1,7 @@ -// SPDX-License-Identifier: MIT +// The Licensed Work is (c) 2023 ChainSafe +// Code: https://github.com/ChainSafe/Spectre +// SPDX-License-Identifier: LGPL-3.0-only + pragma solidity ^0.8.0; import { EndianConversions } from "./EndianConversions.sol"; diff --git a/contracts/src/interfaces/CommitteeUpdateVerifier.sol b/contracts/src/interfaces/CommitteeUpdateVerifier.sol index 1fa8d7fa..3ca1356e 100644 --- a/contracts/src/interfaces/CommitteeUpdateVerifier.sol +++ b/contracts/src/interfaces/CommitteeUpdateVerifier.sol @@ -1,4 +1,7 @@ -// SPDX-License-Identifier: MIT +// The Licensed Work is (c) 2023 ChainSafe +// Code: https://github.com/ChainSafe/Spectre +// SPDX-License-Identifier: LGPL-3.0-only + pragma solidity ^0.8.0; interface CommitteeUpdateVerifier { diff --git a/contracts/src/interfaces/SyncStepVerifier.sol b/contracts/src/interfaces/SyncStepVerifier.sol index aa73874c..354a23a6 100644 --- a/contracts/src/interfaces/SyncStepVerifier.sol +++ b/contracts/src/interfaces/SyncStepVerifier.sol @@ -1,4 +1,7 @@ -// SPDX-License-Identifier: MIT +// The Licensed Work is (c) 2023 ChainSafe +// Code: https://github.com/ChainSafe/Spectre +// SPDX-License-Identifier: LGPL-3.0-only + pragma solidity ^0.8.0; interface SyncStepVerifier { diff --git a/contracts/src/mocks/CommitteeUpdateMockVerifier.sol b/contracts/src/mocks/CommitteeUpdateMockVerifier.sol index 0fdbe71a..674b1cca 100644 --- a/contracts/src/mocks/CommitteeUpdateMockVerifier.sol +++ b/contracts/src/mocks/CommitteeUpdateMockVerifier.sol @@ -1,5 +1,8 @@ -// SPDX-License-Identifier: MIT +// The Licensed Work is (c) 2023 ChainSafe +// Code: https://github.com/ChainSafe/Spectre +// SPDX-License-Identifier: LGPL-3.0-only + pragma solidity ^0.8.0; import { CommitteeUpdateVerifier } from "../interfaces/CommitteeUpdateVerifier.sol"; diff --git a/contracts/src/mocks/SyncStepMockVerifier.sol b/contracts/src/mocks/SyncStepMockVerifier.sol index bf8f13ff..c7d1800e 100644 --- a/contracts/src/mocks/SyncStepMockVerifier.sol +++ b/contracts/src/mocks/SyncStepMockVerifier.sol @@ -1,5 +1,8 @@ -// SPDX-License-Identifier: MIT +// The Licensed Work is (c) 2023 ChainSafe +// Code: https://github.com/ChainSafe/Spectre +// SPDX-License-Identifier: LGPL-3.0-only + pragma solidity ^0.8.0; import { SyncStepVerifier, SyncStepCompressedVerifier } from "../interfaces/SyncStepVerifier.sol"; diff --git a/contracts/test/RotateExternal.sol b/contracts/test/RotateExternal.sol index 21011619..e9a29b98 100644 --- a/contracts/test/RotateExternal.sol +++ b/contracts/test/RotateExternal.sol @@ -1,4 +1,7 @@ -// SPDX-License-Identifier: MIT +// The Licensed Work is (c) 2023 ChainSafe +// Code: https://github.com/ChainSafe/Spectre +// SPDX-License-Identifier: LGPL-3.0-only + pragma solidity 0.8.19; import { RotateLib } from "../src/RotateLib.sol"; diff --git a/contracts/test/SyncStepExternal.sol b/contracts/test/SyncStepExternal.sol index f5dd0194..ec021f39 100644 --- a/contracts/test/SyncStepExternal.sol +++ b/contracts/test/SyncStepExternal.sol @@ -1,4 +1,7 @@ -// SPDX-License-Identifier: MIT +// The Licensed Work is (c) 2023 ChainSafe +// Code: https://github.com/ChainSafe/Spectre +// SPDX-License-Identifier: LGPL-3.0-only + pragma solidity 0.8.19; import {SyncStepLib} from "../src/SyncStepLib.sol"; diff --git a/preprocessor/scripts/generateTestData.ts b/preprocessor/scripts/generateTestData.ts index 3c65013f..780c3ea2 100644 --- a/preprocessor/scripts/generateTestData.ts +++ b/preprocessor/scripts/generateTestData.ts @@ -1,7 +1,3 @@ -// The Licensed Work is (c) 2023 ChainSafe -// Code: https://github.com/ChainSafe/Spectre -// SPDX-License-Identifier: LGPL-3.0-only - import fs from "fs"; import { bls12_381 } from '@noble/curves/bls12-381' import { diff --git a/preprocessor/scripts/util.ts b/preprocessor/scripts/util.ts index 4f024076..885a5a72 100644 --- a/preprocessor/scripts/util.ts +++ b/preprocessor/scripts/util.ts @@ -1,7 +1,3 @@ -// The Licensed Work is (c) 2023 ChainSafe -// Code: https://github.com/ChainSafe/Spectre -// SPDX-License-Identifier: LGPL-3.0-only - import { GindexBitstring } from "@chainsafe/persistent-merkle-tree"; import { ProjPointType } from "@noble/curves/abstract/weierstrass"; diff --git a/test-utils/scripts/download_consensus_specs.sh b/test-utils/scripts/download_consensus_specs.sh index 3d544b81..8f9200b5 100644 --- a/test-utils/scripts/download_consensus_specs.sh +++ b/test-utils/scripts/download_consensus_specs.sh @@ -1,7 +1,3 @@ -# The Licensed Work is (c) 2023 ChainSafe -# Code: https://github.com/ChainSafe/Spectre -# SPDX-License-Identifier: LGPL-3.0-only - #!/bin/bash TESTS_TAG=v1.3.0 REPO_NAME=consensus-spec-tests