Skip to content

Commit 079789c

Browse files
Krishang NadgaudaKrishang Nadgauda
authored andcommitted
Remove Thirdweb prefix from IThirdweb...
1 parent 0f61e7a commit 079789c

23 files changed

+84
-77
lines changed

contracts/Pack.sol

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ pragma solidity ^0.8.11;
44
// Base
55
import "./openzeppelin-presets/ERC1155PresetUpgradeable.sol";
66
import "./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
1111
import "@chainlink/contracts/src/v0.8/VRFConsumerBase.sol";
@@ -28,8 +28,8 @@ import "./interfaces/ITWFee.sol";
2828
contract Pack is
2929
Initializable,
3030
IThirdwebContract,
31-
IThirdwebOwnable,
32-
IThirdwebRoyalty,
31+
IOwnable,
32+
IRoyalty,
3333
VRFConsumerBase,
3434
ERC2771ContextUpgradeable,
3535
MulticallUpgradeable,

contracts/drop/DropERC1155.sol

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff 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

2828
import { IDropERC1155 } from "../interfaces/drop/IDropERC1155.sol";
2929
import { ITWFee } from "../interfaces/ITWFee.sol";
@@ -37,10 +37,10 @@ import "../lib/MerkleProof.sol";
3737
contract 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,

contracts/drop/DropERC20.sol

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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

2525
import { IDropERC20 } from "../interfaces/drop/IDropERC20.sol";
2626
import { ITWFee } from "../interfaces/ITWFee.sol";
@@ -34,8 +34,8 @@ import "../lib/FeeType.sol";
3434
contract DropERC20 is
3535
Initializable,
3636
IThirdwebContract,
37-
IThirdwebPrimarySale,
38-
IThirdwebPlatformFee,
37+
IPrimarySale,
38+
IPlatformFee,
3939
ReentrancyGuardUpgradeable,
4040
ERC2771ContextUpgradeable,
4141
MulticallUpgradeable,

contracts/drop/DropERC721.sol

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff 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

2929
import "../openzeppelin-presets/metatx/ERC2771ContextUpgradeable.sol";
3030

@@ -35,10 +35,10 @@ import "../lib/MerkleProof.sol";
3535
contract 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,

contracts/feature/Context.sol

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
// SPDX-License-Identifier: MIT
2-
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
3-
1+
// SPDX-License-Identifier: Apache-2.0
42
pragma solidity ^0.8.0;
53

64
/**

contracts/feature/ContractMetadata.sol

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
// SPDX-License-Identifier: Apache-2.0
22
pragma 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;

contracts/feature/Ownable.sol

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
// SPDX-License-Identifier: Apache-2.0
22
pragma 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;

contracts/feature/PlatformFee.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
// SPDX-License-Identifier: Apache-2.0
22
pragma 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;

contracts/feature/PrimarySale.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
// SPDX-License-Identifier: Apache-2.0
22
pragma 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;

contracts/feature/Royalty.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
// SPDX-License-Identifier: Apache-2.0
22
pragma 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;

0 commit comments

Comments
 (0)