Skip to content

Commit 51aa4a7

Browse files
committed
refactor: remove example related contracts from the repository
1 parent 0ad1a46 commit 51aa4a7

File tree

7 files changed

+1
-168
lines changed

7 files changed

+1
-168
lines changed

script/AddMyShinyFacet.s.sol

Lines changed: 0 additions & 41 deletions
This file was deleted.

src/MyShinyDiamond.sol

Lines changed: 0 additions & 15 deletions
This file was deleted.

src/facets/MyShinyFacet.sol

Lines changed: 0 additions & 14 deletions
This file was deleted.

src/libraries/LibShinyDiamond.sol

Lines changed: 0 additions & 20 deletions
This file was deleted.

test/MyShinyFacetTest.t.sol

Lines changed: 0 additions & 13 deletions
This file was deleted.

test/helpers/AddMyShinyFacetHelper.sol

Lines changed: 0 additions & 28 deletions
This file was deleted.

test/helpers/TestStates.sol

Lines changed: 1 addition & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
// SPDX-License-Identifier: MIT
22
pragma solidity ^0.8.4;
33

4-
import {Test, console} from "forge-std/Test.sol";
4+
import {Test} from "forge-std/Test.sol";
55
import {DeployDiamond} from "@diamond-script/DeployDiamond.s.sol";
66
import {DeployDiamondHelper} from "@diamond-test/helpers/DeployDiamondHelper.sol";
77
import {Diamond} from "@diamond/Diamond.sol";
88
import {IDiamondCut} from "@diamond/interfaces/IDiamondCut.sol";
99
import {IDiamondLoupe} from "@diamond/interfaces/IDiamondLoupe.sol";
10-
import {HelperContract} from "@diamond-test/helpers/HelperContract.sol";
11-
import {MyShinyFacet} from "@diamond/facets/MyShinyFacet.sol";
12-
import {AddMyShinyFacet} from "@diamond-script/AddMyShinyFacet.s.sol";
13-
import {AddMyShinyFacetHelper} from "@diamond-test/helpers/AddMyShinyFacetHelper.sol";
1410

1511
/// @notice Provides shared state for tests involving a freshly deployed Diamond contract.
1612
/// @dev Sets up references to deployed facets, interfaces, and the diamond itself for testing.
@@ -41,35 +37,3 @@ abstract contract DeployedDiamondState is DeployDiamondHelper {
4137
facetAddresses = diamondLoupe.facetAddresses();
4238
}
4339
}
44-
45-
abstract contract AddMyShinyFacetState is DeployDiamondHelper, AddMyShinyFacetHelper {
46-
/// @notice Instance of the deployed Diamond contract.
47-
Diamond public diamond;
48-
49-
/// @notice Interface for the DiamondCut functionality of the deployed diamond.
50-
IDiamondCut public diamondCut;
51-
52-
/// @notice Interface for the DiamondLoupe functionality of the deployed diamond.
53-
IDiamondLoupe public diamondLoupe;
54-
55-
/// @notice Stores the facet addresses returned from the diamond loupe.
56-
address[] public facetAddresses;
57-
58-
MyShinyFacet public myShinyFacet;
59-
60-
AddMyShinyFacet public addMyShinyFacet;
61-
62-
string[4] public facetNames = ["DiamondCutFacet", "DiamondLoupeFacet", "OwnableRolesFacet", "MyShinyFacet"];
63-
64-
function setUp() public {
65-
vm.startPrank(diamondOwner);
66-
diamond = _deployDiamond(diamondOwner);
67-
68-
diamondCut = IDiamondCut(address(diamond));
69-
diamondLoupe = IDiamondLoupe(address(diamond));
70-
71-
myShinyFacet = _addMyShinyFacet(diamond);
72-
73-
facetAddresses = diamondLoupe.facetAddresses();
74-
}
75-
}

0 commit comments

Comments
 (0)