File tree Expand file tree Collapse file tree 23 files changed +84
-77
lines changed Expand file tree Collapse file tree 23 files changed +84
-77
lines changed Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ pragma solidity ^0.8.11;
44// Base
55import "./openzeppelin-presets/ERC1155PresetUpgradeable.sol " ;
66import "./interfaces/IThirdwebContract.sol " ;
7- import "./feature/interface/IThirdwebOwnable .sol " ;
8- import "./feature/interface/IThirdwebRoyalty .sol " ;
7+ import "./feature/interface/IOwnable .sol " ;
8+ import "./feature/interface/IRoyalty .sol " ;
99
1010// Randomness
1111import "@chainlink/contracts/src/v0.8/VRFConsumerBase.sol " ;
@@ -28,8 +28,8 @@ import "./interfaces/ITWFee.sol";
2828contract Pack is
2929 Initializable ,
3030 IThirdwebContract ,
31- IThirdwebOwnable ,
32- IThirdwebRoyalty ,
31+ IOwnable ,
32+ IRoyalty ,
3333 VRFConsumerBase ,
3434 ERC2771ContextUpgradeable ,
3535 MulticallUpgradeable ,
Original file line number Diff line number Diff line change @@ -20,10 +20,10 @@ import "../interfaces/IThirdwebContract.sol";
2020
2121// ========== Features ==========
2222
23- import "../feature/interface/IThirdwebPlatformFee .sol " ;
24- import "../feature/interface/IThirdwebPrimarySale .sol " ;
25- import "../feature/interface/IThirdwebRoyalty .sol " ;
26- import "../feature/interface/IThirdwebOwnable .sol " ;
23+ import "../feature/interface/IPlatformFee .sol " ;
24+ import "../feature/interface/IPrimarySale .sol " ;
25+ import "../feature/interface/IRoyalty .sol " ;
26+ import "../feature/interface/IOwnable .sol " ;
2727
2828import { IDropERC1155 } from "../interfaces/drop/IDropERC1155.sol " ;
2929import { ITWFee } from "../interfaces/ITWFee.sol " ;
@@ -37,10 +37,10 @@ import "../lib/MerkleProof.sol";
3737contract DropERC1155 is
3838 Initializable ,
3939 IThirdwebContract ,
40- IThirdwebOwnable ,
41- IThirdwebRoyalty ,
42- IThirdwebPrimarySale ,
43- IThirdwebPlatformFee ,
40+ IOwnable ,
41+ IRoyalty ,
42+ IPrimarySale ,
43+ IPlatformFee ,
4444 ReentrancyGuardUpgradeable ,
4545 ERC2771ContextUpgradeable ,
4646 MulticallUpgradeable ,
Original file line number Diff line number Diff line change @@ -19,8 +19,8 @@ import "../interfaces/IThirdwebContract.sol";
1919
2020// ========== Features ==========
2121
22- import "../feature/interface/IThirdwebPlatformFee .sol " ;
23- import "../feature/interface/IThirdwebPrimarySale .sol " ;
22+ import "../feature/interface/IPlatformFee .sol " ;
23+ import "../feature/interface/IPrimarySale .sol " ;
2424
2525import { IDropERC20 } from "../interfaces/drop/IDropERC20.sol " ;
2626import { ITWFee } from "../interfaces/ITWFee.sol " ;
@@ -34,8 +34,8 @@ import "../lib/FeeType.sol";
3434contract DropERC20 is
3535 Initializable ,
3636 IThirdwebContract ,
37- IThirdwebPrimarySale ,
38- IThirdwebPlatformFee ,
37+ IPrimarySale ,
38+ IPlatformFee ,
3939 ReentrancyGuardUpgradeable ,
4040 ERC2771ContextUpgradeable ,
4141 MulticallUpgradeable ,
Original file line number Diff line number Diff line change @@ -21,10 +21,10 @@ import "../interfaces/IThirdwebContract.sol";
2121
2222// ========== Features ==========
2323
24- import "../feature/interface/IThirdwebPlatformFee .sol " ;
25- import "../feature/interface/IThirdwebPrimarySale .sol " ;
26- import "../feature/interface/IThirdwebRoyalty .sol " ;
27- import "../feature/interface/IThirdwebOwnable .sol " ;
24+ import "../feature/interface/IPlatformFee .sol " ;
25+ import "../feature/interface/IPrimarySale .sol " ;
26+ import "../feature/interface/IRoyalty .sol " ;
27+ import "../feature/interface/IOwnable .sol " ;
2828
2929import "../openzeppelin-presets/metatx/ERC2771ContextUpgradeable.sol " ;
3030
@@ -35,10 +35,10 @@ import "../lib/MerkleProof.sol";
3535contract DropERC721 is
3636 Initializable ,
3737 IThirdwebContract ,
38- IThirdwebOwnable ,
39- IThirdwebRoyalty ,
40- IThirdwebPrimarySale ,
41- IThirdwebPlatformFee ,
38+ IOwnable ,
39+ IRoyalty ,
40+ IPrimarySale ,
41+ IPlatformFee ,
4242 ReentrancyGuardUpgradeable ,
4343 ERC2771ContextUpgradeable ,
4444 MulticallUpgradeable ,
Original file line number Diff line number Diff line change 1- // SPDX-License-Identifier: MIT
2- // OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
3-
1+ // SPDX-License-Identifier: Apache-2.0
42pragma solidity ^ 0.8.0 ;
53
64/**
Original file line number Diff line number Diff line change 11// SPDX-License-Identifier: Apache-2.0
22pragma solidity ^ 0.8.0 ;
33
4- import "../interfaces/IThirdwebContract.sol " ;
5- import "@openzeppelin/contracts-upgradeable/access/AccessControlEnumerableUpgradeable.sol " ;
4+ import "./interface/IContractMetadata.sol " ;
65
7- abstract contract ContractMetadata is IThirdwebContract {
6+ abstract contract ContractMetadata is IContractMetadata {
87
98 /// @dev Contract level metadata.
109 string public contractURI;
Original file line number Diff line number Diff line change 11// SPDX-License-Identifier: Apache-2.0
22pragma solidity ^ 0.8.0 ;
33
4- import "./interface/IThirdwebOwnable .sol " ;
4+ import "./interface/IOwnable .sol " ;
55
6- abstract contract Ownable is IThirdwebOwnable {
6+ abstract contract Ownable is IOwnable {
77
88 /// @dev Owner of the contract (purpose: OpenSea compatibility)
99 address public owner;
1010
1111 /// @dev Lets a contract admin set a new owner for the contract. The new owner must be a contract admin.
12- function setOwner (address _newOwner ) external {
12+ function setOwner (address _newOwner ) public {
1313 require (_canSetOwner (), "Not authorized " );
1414
1515 address _prevOwner = owner;
Original file line number Diff line number Diff line change 11// SPDX-License-Identifier: Apache-2.0
22pragma solidity ^ 0.8.0 ;
33
4- import "./interface/IThirdwebPlatformFee .sol " ;
4+ import "./interface/IPlatformFee .sol " ;
55
6- abstract contract PlatformFee is IThirdwebPlatformFee {
6+ abstract contract PlatformFee is IPlatformFee {
77
88 /// @dev The address that receives all platform fees from all sales.
99 address private platformFeeRecipient;
Original file line number Diff line number Diff line change 11// SPDX-License-Identifier: Apache-2.0
22pragma solidity ^ 0.8.0 ;
33
4- import "./interface/IThirdwebPrimarySale .sol " ;
4+ import "./interface/IPrimarySale .sol " ;
55
6- abstract contract PrimarySale is IThirdwebPrimarySale {
6+ abstract contract PrimarySale is IPrimarySale {
77
88 /// @dev The address that receives all primary sales value.
99 address private recipient;
Original file line number Diff line number Diff line change 11// SPDX-License-Identifier: Apache-2.0
22pragma solidity ^ 0.8.0 ;
33
4- import "./interface/IThirdwebRoyalty .sol " ;
4+ import "./interface/IRoyalty .sol " ;
55
6- abstract contract Royalty is IThirdwebRoyalty {
6+ abstract contract Royalty is IRoyalty {
77
88 /// @dev The (default) address that receives all royalty value.
99 address private royaltyRecipient;
You can’t perform that action at this time.
0 commit comments