Skip to content

Commit

Permalink
fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
iethena committed Nov 1, 2024
1 parent 11ca730 commit 347f8ed
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 28 deletions.
4 changes: 2 additions & 2 deletions test/foundry/UStb.admin.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import {console} from "forge-std/console.sol";
import "forge-std/Test.sol";
import {SigUtils} from "../utils/SigUtils.sol";

import "../../../contracts/ustb/UStb.sol";
import "../../../contracts/ustb/IUStbDefinitions.sol";
import "../../contracts/ustb/UStb.sol";
import "../../contracts/ustb/IUStbDefinitions.sol";
import {UStbBaseSetup} from "./UStbBaseSetup.sol";

contract UStbTest is UStbBaseSetup {
Expand Down
8 changes: 2 additions & 6 deletions test/foundry/UStb.transfers.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import {console} from "forge-std/console.sol";
import "forge-std/Test.sol";
import {SigUtils} from "../utils/SigUtils.sol";

import "../../../contracts/ustb/UStb.sol";
import "../../../contracts/ustb/IUStbDefinitions.sol";
import "../../contracts/ustb/UStb.sol";
import "../../contracts/ustb/IUStbDefinitions.sol";
import {UStbBaseSetup} from "./UStbBaseSetup.sol";

contract UStbTransferTest is UStbBaseSetup {
Expand Down Expand Up @@ -1489,17 +1489,13 @@ contract UStbTransferTest is UStbBaseSetup {
}

function testRedistributeLockedAmountNotBlacklistedFromFails() public {
uint256 aliceBalance = UStbContract.balanceOf(alice);
uint256 bobBalance = UStbContract.balanceOf(bob);
vm.startPrank(newOwner);
vm.expectRevert(IUStbDefinitions.OperationNotAllowed.selector);
UStbContract.redistributeLockedAmount(alice, bob);
vm.stopPrank();
}

function testRedistributeLockedAmountBlacklistedToFails() public {
uint256 aliceBalance = UStbContract.balanceOf(alice);
uint256 bobBalance = UStbContract.balanceOf(bob);
vm.startPrank(newOwner);
UStbContract.grantRole(BLACKLISTED_ROLE, bob);
vm.expectRevert(IUStbDefinitions.OperationNotAllowed.selector);
Expand Down
11 changes: 5 additions & 6 deletions test/foundry/UStbBaseSetup.sol
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,17 @@ pragma solidity 0.8.26;
import {stdStorage, StdStorage, Test} from "forge-std/Test.sol";
import {Vm} from "forge-std/Vm.sol";

// import "../../../contracts/mock/MockToken.sol";
import "../../../contracts/interfaces/ISingleAdminAccessControl.sol";
import "../../contracts/interfaces/ISingleAdminAccessControl.sol";

import "@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol";
import "@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol";
import "@openzeppelin/contracts/proxy/transparent/ProxyAdmin.sol";

import {Upgrades} from "../../../contracts/lib/Upgrades.sol";
import {UStb} from "../../../contracts/ustb/UStb.sol";
import {IUStb} from "../../../contracts/ustb/IUStb.sol";
import {Upgrades} from "../../contracts/lib/Upgrades.sol";
import {UStb} from "../../contracts/ustb/UStb.sol";
import {IUStb} from "../../contracts/ustb/IUStb.sol";

import "../../../test/utils/SigUtils.sol";
import "../../test/utils/SigUtils.sol";


contract UStbBaseSetup is Test {
Expand Down
22 changes: 11 additions & 11 deletions test/foundry/UStbMintingBaseSetup.sol
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@ import {stdStorage, StdStorage, Test} from "forge-std/Test.sol";
import {SigUtils} from "../utils/SigUtils.sol";
import {Vm} from "forge-std/Vm.sol";
import {Utils} from "../utils/Utils.sol";
import {Upgrades} from "../../../contracts/lib/Upgrades.sol";

import "../../../contracts/mock/MockToken.sol";
import "../../../contracts/ustb/UStb.sol";
import "../../../contracts/ustb/IUStbMinting.sol";
import "../../../contracts/ustb/IUStbMintingEvents.sol";
import "../../../contracts/ustb/UStbMinting.sol";
import "../../../contracts/interfaces/ISingleAdminAccessControl.sol";
import "../../../contracts/ustb/IUStbDefinitions.sol";
import "../../../contracts/mock/MockMultisigWallet.sol";
import "../../../contracts/ustb/IUStbDefinitions.sol";
import {Upgrades} from "../../contracts/lib/Upgrades.sol";

import "../../contracts/mock/MockToken.sol";
import "../../contracts/ustb/UStb.sol";
import "../../contracts/ustb/IUStbMinting.sol";
import "../../contracts/ustb/IUStbMintingEvents.sol";
import "../../contracts/ustb/UStbMinting.sol";
import "../../contracts/interfaces/ISingleAdminAccessControl.sol";
import "../../contracts/ustb/IUStbDefinitions.sol";
import "../../contracts/mock/MockMultisigWallet.sol";
import "../../contracts/ustb/IUStbDefinitions.sol";

contract UStbMintingBaseSetup is Test, IUStbMintingEvents, IUStbDefinitions {
Utils internal utils;
Expand Down
6 changes: 3 additions & 3 deletions test/foundry/test/UStbMinting.ACL.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ pragma solidity ^0.8.20;
/* solhint-disable func-name-mixedcase */

import "../UStbMinting.utils.sol";
import "../../../../contracts/ustb/IUStbMinting.sol";
import "../../../../contracts/interfaces/ISingleAdminAccessControl.sol";
import "../../../contracts/ustb/IUStbMinting.sol";
import "../../../contracts/interfaces/ISingleAdminAccessControl.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "../../../../contracts/ustb/IUStbMinting.sol";
import "../../../contracts/ustb/IUStbMinting.sol";

contract UStbMintingACLTest is UStbMintingUtils {
function setUp() public override {
Expand Down

0 comments on commit 347f8ed

Please sign in to comment.