Skip to content

Commit

Permalink
[Refac] refac code[DONE]
Browse files Browse the repository at this point in the history
  • Loading branch information
0xsaurabhx0 committed Nov 29, 2024
1 parent 2bcc067 commit 54c5b9c
Show file tree
Hide file tree
Showing 16 changed files with 15 additions and 16 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ HSTK Token is an ERC20-compliant token implementation built on the Ethereum bloc
## Security Considerations

1. **Access Control**
- All administrative functions are restricted to the multisig wallet
- Blacklisting provides additional control over token movement

2. **Supply Management**
Expand Down
1 change: 1 addition & 0 deletions solidity/foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
src = "src"
out = "out"
libs = ["lib"]
solc = ["0.8.28"]

gas_reports = ["*"]
no_test = true
Expand Down
2 changes: 1 addition & 1 deletion solidity/script/HSTK.s.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.13;
pragma solidity 0.8.4;

import {Script, console} from "forge-std/Script.sol";
import {MultiSigWallet} from "../src/MultiSigWallet.sol";
Expand Down
2 changes: 1 addition & 1 deletion solidity/script/claimable.s.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.13;
pragma solidity ^0.8.4;

import {Script, console} from "forge-std/Script.sol";
import {Claimable} from "../src/Claimable2.sol";
Expand Down
2 changes: 1 addition & 1 deletion solidity/src/AccessRegistry/AccessRegistry.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
pragma solidity 0.8.4;

import {Context} from "@openzeppelin/contracts/utils/Context.sol";
import {SuperAdmin2Step} from "./helpers/superAdmin2Step.sol";
Expand Down
2 changes: 1 addition & 1 deletion solidity/src/AccessRegistry/helpers/fallbackAdmin2Step.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
pragma solidity 0.8.4;

/// @notice Simple single fallbackAdmin authorization mixin.
/// @author Hashstack
Expand Down
2 changes: 1 addition & 1 deletion solidity/src/AccessRegistry/helpers/superAdmin2Step.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
pragma solidity 0.8.4;

/// @notice Simple single superAdmin authorization mixin.
/// @author Hashstack
Expand Down
2 changes: 1 addition & 1 deletion solidity/src/Claimable2.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.8.4;
pragma solidity 0.8.4;

import {SafeMath} from "./utils/SafeMath.sol";
import {IERC20} from "@openzeppelin/contracts/interfaces/IERC20.sol";
Expand Down
2 changes: 1 addition & 1 deletion solidity/src/HSTK.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
pragma solidity 0.8.4;

import {Pausable} from "./utils/Pausable.sol";
import {ERC20} from "@openzeppelin/contracts/token/ERC20/ERC20.sol";
Expand Down
2 changes: 1 addition & 1 deletion solidity/src/MultiSigWallet.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
pragma solidity 0.8.4;

import {AccessRegistry} from "./AccessRegistry/AccessRegistry.sol";
import {UUPSUpgradeable} from "./utils/UUPSUpgradeable.sol";
Expand Down
2 changes: 1 addition & 1 deletion solidity/src/utils/BlackListed.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
pragma solidity 0.8.4;

import {Context} from "@openzeppelin/contracts/utils/Context.sol";

Expand Down
2 changes: 1 addition & 1 deletion solidity/src/utils/Initializable.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
pragma solidity 0.8.4;

/// @notice Initializable mixin for the upgradeable contracts.
abstract contract Initializable {
Expand Down
3 changes: 1 addition & 2 deletions solidity/src/utils/Pausable.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.20;
pragma solidity 0.8.4;

import {Context} from "@openzeppelin/contracts/utils/Context.sol";

Expand Down
2 changes: 1 addition & 1 deletion solidity/src/utils/SafeMath.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
pragma solidity 0.8.4;

library SafeMath {
function add(uint256 a, uint256 b) internal pure returns (uint256) {
Expand Down
2 changes: 1 addition & 1 deletion solidity/src/utils/UUPSUpgradeable.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
pragma solidity 0.8.4;

/// @dev Note:
/// - This implementation is intended to be used with ERC1967 proxies.
Expand Down
2 changes: 1 addition & 1 deletion solidity/test/Claimable.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.13;
pragma solidity 0.8.4;

import {Test, console} from "forge-std/Test.sol";
import {Claimable} from "../src/Claimable2.sol";
Expand Down

0 comments on commit 54c5b9c

Please sign in to comment.