Skip to content

Commit

Permalink
Same pragma for all contracts (#114)
Browse files Browse the repository at this point in the history
close #98
  • Loading branch information
sirnicolaz authored Aug 11, 2023
1 parent d3aaa63 commit fe47868
Show file tree
Hide file tree
Showing 19 changed files with 5 additions and 22 deletions.
1 change: 0 additions & 1 deletion contracts/GovernanceToken/GovernanceTokenBase.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.16;

import "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol";
Expand Down
1 change: 0 additions & 1 deletion contracts/GovernanceToken/GovernanceTokenSnapshot.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.16;

import "@openzeppelin/contracts/utils/Arrays.sol";
Expand Down
1 change: 0 additions & 1 deletion contracts/GovernanceToken/IGovernanceToken.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.16;

import "@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol";
Expand Down
1 change: 0 additions & 1 deletion contracts/InternalMarket/InternalMarket.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.16;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
Expand Down
1 change: 0 additions & 1 deletion contracts/InternalMarket/InternalMarketBase.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.16;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
Expand Down
1 change: 0 additions & 1 deletion contracts/NeokingdomToken/INeokingdomToken.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.16;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/NeokingdomToken/NeokingdomToken.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;
pragma solidity ^0.8.16;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol";
Expand Down
1 change: 0 additions & 1 deletion contracts/RedemptionController/IRedemptionController.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.16;

import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
Expand Down
1 change: 0 additions & 1 deletion contracts/RedemptionController/RedemptionController.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.16;

import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
Expand Down
1 change: 0 additions & 1 deletion contracts/ResolutionManager/ResolutionManagerBase.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.16;

import "../ShareholderRegistry/IShareholderRegistry.sol";
Expand Down
1 change: 0 additions & 1 deletion contracts/ShareholderRegistry/IShareholderRegistry.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.16;

import "../extensions/ISnapshot.sol";
Expand Down
1 change: 0 additions & 1 deletion contracts/ShareholderRegistry/ShareholderRegistry.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.16;

import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
Expand Down
4 changes: 0 additions & 4 deletions contracts/ShareholderRegistry/ShareholderRegistryBase.sol
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
// SPDX-License-Identifier: MIT

// TODO: update _statuses when account has no shares
// TODO: check who can move shares

pragma solidity ^0.8.16;

import "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol";
Expand Down
2 changes: 0 additions & 2 deletions contracts/ShareholderRegistry/ShareholderRegistrySnapshot.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/ERC20Snapshot.sol)

pragma solidity ^0.8.16;

import "./ShareholderRegistryBase.sol";
Expand Down
1 change: 0 additions & 1 deletion contracts/Voting/IVoting.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.16;

import "../extensions/ISnapshot.sol";
Expand Down
1 change: 1 addition & 0 deletions contracts/Voting/Voting.sol
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.16;

import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/extensions/DAORoles.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;
pragma solidity ^0.8.16;

import "@openzeppelin/contracts/access/AccessControl.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/extensions/HasRole.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;
pragma solidity ^0.8.16;

import "@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
Expand Down
2 changes: 1 addition & 1 deletion hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const config: HardhatUserConfig = {
solidity: {
compilers: [
{
version: "0.8.19",
version: "0.8.16",
settings: {
optimizer: {
enabled: true,
Expand Down

0 comments on commit fe47868

Please sign in to comment.