diff --git a/contracts/BSCGovernor.sol b/contracts/BSCGovernor.sol index 2d12a97e..f00a3f28 100644 --- a/contracts/BSCGovernor.sol +++ b/contracts/BSCGovernor.sol @@ -10,9 +10,9 @@ import "@openzeppelin/contracts-upgradeable/governance/extensions/GovernorVotesQ import "@openzeppelin/contracts-upgradeable/governance/extensions/GovernorPreventLateQuorumUpgradeable.sol"; import "./SystemV2.sol"; -import "./BC_fusion/extension/Protectable.sol"; -import "./BC_fusion/lib/Utils.sol"; -import "./BC_fusion/interface/IGovToken.sol"; +import "./extension/Protectable.sol"; +import "./libV2/Utils.sol"; +import "./interfaceV2/IGovToken.sol"; contract BSCGovernor is SystemV2, diff --git a/contracts/BC_fusion/BSCTimelock.sol b/contracts/BSCTimelock.sol similarity index 96% rename from contracts/BC_fusion/BSCTimelock.sol rename to contracts/BSCTimelock.sol index 866e5224..c731e790 100644 --- a/contracts/BC_fusion/BSCTimelock.sol +++ b/contracts/BSCTimelock.sol @@ -3,8 +3,8 @@ pragma solidity 0.8.17; import "@openzeppelin/contracts-upgradeable/governance/TimelockControllerUpgradeable.sol"; -import "../SystemV2.sol"; -import "./lib/Utils.sol"; +import "./SystemV2.sol"; +import "./libV2/Utils.sol"; contract BSCTimelock is SystemV2, Initializable, TimelockControllerUpgradeable { using Utils for bytes; diff --git a/contracts/BC_fusion/GovToken.sol b/contracts/GovToken.sol similarity index 98% rename from contracts/BC_fusion/GovToken.sol rename to contracts/GovToken.sol index dc404b41..dbf09664 100644 --- a/contracts/BC_fusion/GovToken.sol +++ b/contracts/GovToken.sol @@ -6,8 +6,8 @@ import "@openzeppelin/contracts-upgradeable/token/ERC20/extensions/ERC20Burnable import "@openzeppelin/contracts-upgradeable/token/ERC20/extensions/ERC20PermitUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/token/ERC20/extensions/ERC20VotesUpgradeable.sol"; -import "../SystemV2.sol"; -import "./interface/IStakeCredit.sol"; +import "./SystemV2.sol"; +import "./interfaceV2/IStakeCredit.sol"; contract GovToken is SystemV2, diff --git a/contracts/StakeCredit.sol b/contracts/StakeCredit.sol index df1a6548..c2cc32ef 100644 --- a/contracts/StakeCredit.sol +++ b/contracts/StakeCredit.sol @@ -7,7 +7,7 @@ import "@openzeppelin/contracts-upgradeable/utils/CountersUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/utils/structs/DoubleEndedQueueUpgradeable.sol"; import "./SystemV2.sol"; -import "./BC_fusion/interface/IStakeHub.sol"; +import "./interfaceV2/IStakeHub.sol"; contract StakeCredit is SystemV2, Initializable, ReentrancyGuardUpgradeable, ERC20Upgradeable { using CountersUpgradeable for CountersUpgradeable.Counter; diff --git a/contracts/StakeHub.sol b/contracts/StakeHub.sol index 86f46e4b..4774e708 100644 --- a/contracts/StakeHub.sol +++ b/contracts/StakeHub.sol @@ -6,14 +6,14 @@ import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol"; import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol"; import "./SystemV2.sol"; -import "./BC_fusion/extension/Protectable.sol"; -import "./BC_fusion/interface/IBSCValidatorSet.sol"; -import "./BC_fusion/interface/ICrossChain.sol"; -import "./BC_fusion/interface/IGovToken.sol"; -import "./BC_fusion/interface/IStakeCredit.sol"; -import "./BC_fusion/interface/ITokenHub.sol"; -import "./BC_fusion/lib/RLPDecode.sol"; -import "./BC_fusion/lib/Utils.sol"; +import "./extension/Protectable.sol"; +import "./interfaceV2/IBSCValidatorSet.sol"; +import "./interfaceV2/ICrossChain.sol"; +import "./interfaceV2/IGovToken.sol"; +import "./interfaceV2/IStakeCredit.sol"; +import "./interfaceV2/ITokenHub.sol"; +import "./libV2/RLPDecode.sol"; +import "./libV2/Utils.sol"; contract StakeHub is SystemV2, Initializable, Protectable { using RLPDecode for *; diff --git a/contracts/BC_fusion/TokenRecoverPortal.sol b/contracts/TokenRecoverPortal.sol similarity index 98% rename from contracts/BC_fusion/TokenRecoverPortal.sol rename to contracts/TokenRecoverPortal.sol index c13733f1..b7ce3d83 100644 --- a/contracts/BC_fusion/TokenRecoverPortal.sol +++ b/contracts/TokenRecoverPortal.sol @@ -5,11 +5,11 @@ import "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable. import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; -import "../SystemV2.sol"; +import "./SystemV2.sol"; import "./extension/Protectable.sol"; -import "./interface/ITokenHub.sol"; -import "./interface/ITokenRecoverPortal.sol"; -import "./lib/Utils.sol"; +import "./interfaceV2/ITokenHub.sol"; +import "./interfaceV2/ITokenRecoverPortal.sol"; +import "./libV2/Utils.sol"; /** * @title TokenRecoverPortal is used to recover the token from BC users. diff --git a/contracts/BC_fusion/extension/Protectable.sol b/contracts/extension/Protectable.sol similarity index 100% rename from contracts/BC_fusion/extension/Protectable.sol rename to contracts/extension/Protectable.sol diff --git a/contracts/BC_fusion/interface/IBSCValidatorSet.sol b/contracts/interfaceV2/IBSCValidatorSet.sol similarity index 100% rename from contracts/BC_fusion/interface/IBSCValidatorSet.sol rename to contracts/interfaceV2/IBSCValidatorSet.sol diff --git a/contracts/BC_fusion/interface/ICrossChain.sol b/contracts/interfaceV2/ICrossChain.sol similarity index 100% rename from contracts/BC_fusion/interface/ICrossChain.sol rename to contracts/interfaceV2/ICrossChain.sol diff --git a/contracts/BC_fusion/interface/IGovToken.sol b/contracts/interfaceV2/IGovToken.sol similarity index 100% rename from contracts/BC_fusion/interface/IGovToken.sol rename to contracts/interfaceV2/IGovToken.sol diff --git a/contracts/BC_fusion/interface/IStakeCredit.sol b/contracts/interfaceV2/IStakeCredit.sol similarity index 100% rename from contracts/BC_fusion/interface/IStakeCredit.sol rename to contracts/interfaceV2/IStakeCredit.sol diff --git a/contracts/BC_fusion/interface/IStakeHub.sol b/contracts/interfaceV2/IStakeHub.sol similarity index 100% rename from contracts/BC_fusion/interface/IStakeHub.sol rename to contracts/interfaceV2/IStakeHub.sol diff --git a/contracts/BC_fusion/interface/ITokenHub.sol b/contracts/interfaceV2/ITokenHub.sol similarity index 100% rename from contracts/BC_fusion/interface/ITokenHub.sol rename to contracts/interfaceV2/ITokenHub.sol diff --git a/contracts/BC_fusion/interface/ITokenRecoverPortal.sol b/contracts/interfaceV2/ITokenRecoverPortal.sol similarity index 100% rename from contracts/BC_fusion/interface/ITokenRecoverPortal.sol rename to contracts/interfaceV2/ITokenRecoverPortal.sol diff --git a/contracts/BC_fusion/lib/RLPDecode.sol b/contracts/libV2/RLPDecode.sol similarity index 100% rename from contracts/BC_fusion/lib/RLPDecode.sol rename to contracts/libV2/RLPDecode.sol diff --git a/contracts/BC_fusion/lib/Utils.sol b/contracts/libV2/Utils.sol similarity index 100% rename from contracts/BC_fusion/lib/Utils.sol rename to contracts/libV2/Utils.sol