Skip to content

Commit

Permalink
feat: remove BC_fusion folder and move contracts to root dir
Browse files Browse the repository at this point in the history
  • Loading branch information
cosinlink committed Aug 23, 2024
1 parent da2134b commit 356ad32
Show file tree
Hide file tree
Showing 16 changed files with 20 additions and 20 deletions.
6 changes: 3 additions & 3 deletions contracts/BSCGovernor.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions contracts/BC_fusion/GovToken.sol → contracts/GovToken.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion contracts/StakeCredit.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
16 changes: 8 additions & 8 deletions contracts/StakeHub.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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 *;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 356ad32

Please sign in to comment.