Skip to content

Commit

Permalink
Update linting and copyright
Browse files Browse the repository at this point in the history
  • Loading branch information
ryardley committed Jan 27, 2025
1 parent 95a4dee commit 3734f95
Show file tree
Hide file tree
Showing 15 changed files with 28 additions and 13 deletions.
1 change: 1 addition & 0 deletions packages/evm/.solhintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# directories
**/artifacts
**/node_modules
**/excubiae
1 change: 1 addition & 0 deletions packages/evm/contracts/excubiae/AUTOGENERATED_FOLDER.md
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
NOTE: This folder is autogenerated and synced from https://github.com/privacy-scaling-explorations/excubiae.git
Copyright and licensing for this folder remains with
3 changes: 2 additions & 1 deletion packages/evm/contracts/excubiae/AdvancedChecker.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// SPDX-License-Identifier: MIT
// Auto-generated from https://github.com/privacy-scaling-explorations/excubiae.git@96a3312455417dc1b2e0d87066661fdf8f490fac
// Copyright (C) 2024 Privacy & Scaling Explorations
// Auto-generated from https://github.com/privacy-scaling-explorations/excubiae.git@96a3312455417dc1b2e0d87066661fdf8f490fac
pragma solidity ^0.8.20;

import {IAdvancedChecker, Check, CheckStatus} from "./interfaces/IAdvancedChecker.sol";
Expand Down
3 changes: 2 additions & 1 deletion packages/evm/contracts/excubiae/AdvancedPolicy.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// SPDX-License-Identifier: MIT
// Auto-generated from https://github.com/privacy-scaling-explorations/excubiae.git@96a3312455417dc1b2e0d87066661fdf8f490fac
// Copyright (C) 2024 Privacy & Scaling Explorations
// Auto-generated from https://github.com/privacy-scaling-explorations/excubiae.git@96a3312455417dc1b2e0d87066661fdf8f490fac
pragma solidity ^0.8.20;

import {Policy} from "./Policy.sol";
Expand Down
3 changes: 2 additions & 1 deletion packages/evm/contracts/excubiae/BaseChecker.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// SPDX-License-Identifier: MIT
// Auto-generated from https://github.com/privacy-scaling-explorations/excubiae.git@96a3312455417dc1b2e0d87066661fdf8f490fac
// Copyright (C) 2024 Privacy & Scaling Explorations
// Auto-generated from https://github.com/privacy-scaling-explorations/excubiae.git@96a3312455417dc1b2e0d87066661fdf8f490fac
pragma solidity ^0.8.20;

import {IBaseChecker} from "./interfaces/IBaseChecker.sol";
Expand Down
3 changes: 2 additions & 1 deletion packages/evm/contracts/excubiae/BasePolicy.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// SPDX-License-Identifier: MIT
// Auto-generated from https://github.com/privacy-scaling-explorations/excubiae.git@96a3312455417dc1b2e0d87066661fdf8f490fac
// Copyright (C) 2024 Privacy & Scaling Explorations
// Auto-generated from https://github.com/privacy-scaling-explorations/excubiae.git@96a3312455417dc1b2e0d87066661fdf8f490fac
pragma solidity ^0.8.20;

import {IBasePolicy} from "./interfaces/IBasePolicy.sol";
Expand Down
3 changes: 2 additions & 1 deletion packages/evm/contracts/excubiae/Checker.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// SPDX-License-Identifier: MIT
// Auto-generated from https://github.com/privacy-scaling-explorations/excubiae.git@96a3312455417dc1b2e0d87066661fdf8f490fac
// Copyright (C) 2024 Privacy & Scaling Explorations
// Auto-generated from https://github.com/privacy-scaling-explorations/excubiae.git@96a3312455417dc1b2e0d87066661fdf8f490fac
pragma solidity ^0.8.20;

import {IChecker} from "./interfaces/IChecker.sol";
Expand Down
3 changes: 2 additions & 1 deletion packages/evm/contracts/excubiae/Policy.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// SPDX-License-Identifier: MIT
// Auto-generated from https://github.com/privacy-scaling-explorations/excubiae.git@96a3312455417dc1b2e0d87066661fdf8f490fac
// Copyright (C) 2024 Privacy & Scaling Explorations
// Auto-generated from https://github.com/privacy-scaling-explorations/excubiae.git@96a3312455417dc1b2e0d87066661fdf8f490fac
pragma solidity ^0.8.20;

import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// SPDX-License-Identifier: MIT
// Auto-generated from https://github.com/privacy-scaling-explorations/excubiae.git@96a3312455417dc1b2e0d87066661fdf8f490fac
// Copyright (C) 2024 Privacy & Scaling Explorations
// Auto-generated from https://github.com/privacy-scaling-explorations/excubiae.git@96a3312455417dc1b2e0d87066661fdf8f490fac
pragma solidity ^0.8.20;

import {IChecker} from "./IChecker.sol";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// SPDX-License-Identifier: MIT
// Auto-generated from https://github.com/privacy-scaling-explorations/excubiae.git@96a3312455417dc1b2e0d87066661fdf8f490fac
// Copyright (C) 2024 Privacy & Scaling Explorations
// Auto-generated from https://github.com/privacy-scaling-explorations/excubiae.git@96a3312455417dc1b2e0d87066661fdf8f490fac
pragma solidity ^0.8.20;

import {IPolicy} from "./IPolicy.sol";
Expand Down
3 changes: 2 additions & 1 deletion packages/evm/contracts/excubiae/interfaces/IBaseChecker.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// SPDX-License-Identifier: MIT
// Auto-generated from https://github.com/privacy-scaling-explorations/excubiae.git@96a3312455417dc1b2e0d87066661fdf8f490fac
// Copyright (C) 2024 Privacy & Scaling Explorations
// Auto-generated from https://github.com/privacy-scaling-explorations/excubiae.git@96a3312455417dc1b2e0d87066661fdf8f490fac
pragma solidity ^0.8.20;

import {IChecker} from "./IChecker.sol";
Expand Down
3 changes: 2 additions & 1 deletion packages/evm/contracts/excubiae/interfaces/IBasePolicy.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// SPDX-License-Identifier: MIT
// Auto-generated from https://github.com/privacy-scaling-explorations/excubiae.git@96a3312455417dc1b2e0d87066661fdf8f490fac
// Copyright (C) 2024 Privacy & Scaling Explorations
// Auto-generated from https://github.com/privacy-scaling-explorations/excubiae.git@96a3312455417dc1b2e0d87066661fdf8f490fac
pragma solidity ^0.8.20;

import {IPolicy} from "./IPolicy.sol";
Expand Down
3 changes: 2 additions & 1 deletion packages/evm/contracts/excubiae/interfaces/IChecker.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// SPDX-License-Identifier: MIT
// Auto-generated from https://github.com/privacy-scaling-explorations/excubiae.git@96a3312455417dc1b2e0d87066661fdf8f490fac
// Copyright (C) 2024 Privacy & Scaling Explorations
// Auto-generated from https://github.com/privacy-scaling-explorations/excubiae.git@96a3312455417dc1b2e0d87066661fdf8f490fac
pragma solidity ^0.8.20;

/// @title IChecker
Expand Down
3 changes: 2 additions & 1 deletion packages/evm/contracts/excubiae/interfaces/IPolicy.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// SPDX-License-Identifier: MIT
// Auto-generated from https://github.com/privacy-scaling-explorations/excubiae.git@96a3312455417dc1b2e0d87066661fdf8f490fac
// Copyright (C) 2024 Privacy & Scaling Explorations
// Auto-generated from https://github.com/privacy-scaling-explorations/excubiae.git@96a3312455417dc1b2e0d87066661fdf8f490fac
pragma solidity ^0.8.20;

/// @title IPolicy.
Expand Down
3 changes: 2 additions & 1 deletion packages/evm/scripts/update_excubiae.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ echo "Copying $SOURCE_FOLDER to $DESTINATION_FOLDER"
if [ -d "$SOURCE_FOLDER" ]; then
rsync -av --exclude 'test/' "${SOURCE_FOLDER}/" "$DESTINATION_FOLDER"
find "$DESTINATION_FOLDER" -type f -name "*.sol" -exec sed -i '1{/SPDX-License-Identifier/!i\// SPDX-License-Identifier: MIT
};/SPDX-License-Identifier/a\// Auto-generated from '"${REPO_URL}"'@'"${COMMIT_HASH}" {} \;
};/SPDX-License-Identifier/a\// Copyright (C) 2024 Privacy & Scaling Explorations\n// Auto-generated from '"${REPO_URL}"'@'"${COMMIT_HASH}" {} \;
echo "Copy completed successfully"
else
echo "Error: Source folder $SOURCE_FOLDER not found"
Expand All @@ -57,6 +57,7 @@ fi

cat << EOF > ${DESTINATION_FOLDER}/AUTOGENERATED_FOLDER.md
NOTE: This folder is autogenerated and synced from ${REPO_URL}
Copyright (C) 2024 Privacy & Scaling Explorations
EOF

echo "Operation completed successfully"
Expand Down

0 comments on commit 3734f95

Please sign in to comment.