Skip to content

Commit e3b2c34

Browse files
authored
chore(protocol-contracts): add compiler settings and clean licenses (#1606)
1 parent 81ecadb commit e3b2c34

34 files changed

+75
-46
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
# directories
22
**/artifacts
33
**/node_modules
4+
5+
# third-party contracts with their own license (original contract does not include a SPDX identifier)
6+
contracts/mocks/WETH9.sol
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
prettier:
2+
npx prettier . --write
3+
4+
lint:
5+
npm run lint
6+
7+
compile:
8+
npx hardhat compile
9+
10+
clean:
11+
npx hardhat clean
12+
13+
# Define it as a phony target to avoid conflicts with the test directory
14+
.PHONY: test
15+
test: clean
16+
npx hardhat test --network hardhat $(if $(GREP),--grep '$(GREP)',)
17+
18+
# Conform to pre-commit checks
19+
conformance: prettier lint

protocol-contracts/confidential-wrapper/contracts/admin/AdminProvider.sol

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// SPDX-License-Identifier: BSD-3-Clause-Clear
2-
32
pragma solidity 0.8.27;
43

54
import {Ownable2Step, Ownable} from "@openzeppelin/contracts/access/Ownable2Step.sol";

protocol-contracts/confidential-wrapper/contracts/admin/FeeManager.sol

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// SPDX-License-Identifier: BSD-3-Clause-Clear
2-
32
pragma solidity 0.8.27;
43

54

protocol-contracts/confidential-wrapper/contracts/admin/SanctionsList.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-License-Identifier: MIT
1+
// SPDX-License-Identifier: BSD-3-Clause-Clear
22
pragma solidity 0.8.27;
33

44
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";

protocol-contracts/confidential-wrapper/contracts/batcher/ERC7984TransferBatcher.sol

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
// SPDX-License-Identifier: MIT
2-
1+
// SPDX-License-Identifier: BSD-3-Clause-Clear
32
pragma solidity ^0.8.27;
43

54
import {ZamaEthereumConfig} from "@fhevm/solidity/config/ZamaConfig.sol";

protocol-contracts/confidential-wrapper/contracts/debug/Debug.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-License-Identifier: MIT
1+
// SPDX-License-Identifier: BSD-3-Clause-Clear
22
pragma solidity ^0.8.27;
33

44
import "hardhat/console.sol";

protocol-contracts/confidential-wrapper/contracts/factory/DeploymentCoordinator.sol

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// SPDX-License-Identifier: BSD-3-Clause-Clear
2-
32
pragma solidity 0.8.27;
43

54
import {WrapperUpgradeable} from "../wrapper/WrapperUpgradeable.sol";

protocol-contracts/confidential-wrapper/contracts/factory/RegulatedERC7984UpgradeableFactory.sol

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// SPDX-License-Identifier: BSD-3-Clause-Clear
2-
32
pragma solidity 0.8.27;
43

54
import {RegulatedERC7984Upgradeable} from "../token/RegulatedERC7984Upgradeable.sol";

protocol-contracts/confidential-wrapper/contracts/factory/WrapperFactory.sol

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// SPDX-License-Identifier: BSD-3-Clause-Clear
2-
32
pragma solidity 0.8.27;
43

54
import {WrapperUpgradeable} from "../wrapper/WrapperUpgradeable.sol";

0 commit comments

Comments
 (0)