Skip to content

Commit

Permalink
add missing license headers
Browse files Browse the repository at this point in the history
  • Loading branch information
nulltea committed Dec 15, 2023
1 parent d7fd66b commit 6ad5044
Show file tree
Hide file tree
Showing 17 changed files with 48 additions and 32 deletions.
5 changes: 4 additions & 1 deletion contracts/script/DeploySpectre.s.sol
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
5 changes: 4 additions & 1 deletion contracts/script/DeploySpectreTestnet.s.sol
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
4 changes: 0 additions & 4 deletions contracts/script/deploy_local.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 0 additions & 4 deletions contracts/script/deploy_testnet.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down
5 changes: 4 additions & 1 deletion contracts/src/EndianConversions.sol
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
5 changes: 4 additions & 1 deletion contracts/src/RotateLib.sol
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
5 changes: 4 additions & 1 deletion contracts/src/Spectre.sol
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
5 changes: 4 additions & 1 deletion contracts/src/SyncStepLib.sol
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
5 changes: 4 additions & 1 deletion contracts/src/interfaces/CommitteeUpdateVerifier.sol
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
5 changes: 4 additions & 1 deletion contracts/src/interfaces/SyncStepVerifier.sol
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
5 changes: 4 additions & 1 deletion contracts/src/mocks/CommitteeUpdateMockVerifier.sol
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
5 changes: 4 additions & 1 deletion contracts/src/mocks/SyncStepMockVerifier.sol
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
5 changes: 4 additions & 1 deletion contracts/test/RotateExternal.sol
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
5 changes: 4 additions & 1 deletion contracts/test/SyncStepExternal.sol
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
4 changes: 0 additions & 4 deletions preprocessor/scripts/generateTestData.ts
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
4 changes: 0 additions & 4 deletions preprocessor/scripts/util.ts
Original file line number Diff line number Diff line change
@@ -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";

Expand Down
4 changes: 0 additions & 4 deletions test-utils/scripts/download_consensus_specs.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 6ad5044

Please sign in to comment.