Skip to content

Commit cd54177

Browse files
committed
Changed libraries to modules and changed naming convention
1 parent f29931f commit cd54177

File tree

65 files changed

+481
-474
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+481
-474
lines changed
File renamed without changes.

src/access/AccessControlPausable/LibAccessControlPausable.sol renamed to src/access/AccessControlPausable/AccessControlPausable.sol

File renamed without changes.

src/access/AccessControlTemporal/LibAccessControlTemporal.sol renamed to src/access/AccessControlTemporal/AccessControlTemporal.sol

File renamed without changes.
File renamed without changes.

src/diamond/example/ExampleDiamond.sol

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// SPDX-License-Identifier: MIT
22
pragma solidity >=0.8.30;
33

4-
import "../LibDiamond.sol" as LibDiamond;
5-
import "../../access/Owner/LibOwner.sol" as LibOwner;
6-
import "../../token/ERC721/ERC721/LibERC721.sol" as LibERC721;
7-
import "../../interfaceDetection/ERC165/LibERC165.sol" as LibERC165;
4+
import "../Diamond.sol" as Diamond;
5+
import "../../access/Owner/Owner.sol" as Owner;
6+
import "../../token/ERC721/ERC721/ERC721.sol" as ERC721;
7+
import "../../interfaceDetection/ERC165/ERC165.sol" as ERC165;
88
import {IERC721} from "../../interfaces/IERC721.sol";
99
import {IERC721Metadata} from "../../interfaces/IERC721Metadata.sol";
1010

@@ -24,8 +24,8 @@ contract ExampleDiamond {
2424
* @param _facets Array of facet addresses and their corresponding function selectors to add to the diamond.
2525
* @param _diamondOwner Address that will be set as the owner of the diamond contract.
2626
*/
27-
constructor(LibDiamond.FacetCut[] memory _facets, address _diamondOwner) {
28-
LibDiamond.addFacets(_facets);
27+
constructor(Diamond.FacetCut[] memory _facets, address _diamondOwner) {
28+
Diamond.addFacets(_facets);
2929

3030
/*************************************
3131
* Initialize storage variables
@@ -34,20 +34,20 @@ contract ExampleDiamond {
3434
/**
3535
* Setting the contract owner
3636
*/
37-
LibOwner.setContractOwner(_diamondOwner);
37+
Owner.setContractOwner(_diamondOwner);
3838
/**
3939
* Setting ERC721 token details
4040
*/
41-
LibERC721.setMetadata({_name: "ExampleDiamondNFT", _symbol: "EDN", _baseURI: "https://example.com/metadata/"});
41+
ERC721.setMetadata({_name: "ExampleDiamondNFT", _symbol: "EDN", _baseURI: "https://example.com/metadata/"});
4242
/**
4343
* Registering ERC165 interfaces
4444
*/
45-
LibERC165.registerInterface(type(IERC721).interfaceId);
46-
LibERC165.registerInterface(type(IERC721Metadata).interfaceId);
45+
ERC165.registerInterface(type(IERC721).interfaceId);
46+
ERC165.registerInterface(type(IERC721Metadata).interfaceId);
4747
}
4848

4949
fallback() external payable {
50-
LibDiamond.diamondFallback();
50+
Diamond.diamondFallback();
5151
}
5252

5353
receive() external payable {}
File renamed without changes.

0 commit comments

Comments
 (0)