Skip to content

Commit

Permalink
inherit IThirdweb... in implementation, not interface
Browse files Browse the repository at this point in the history
  • Loading branch information
Krishang Nadgauda authored and Krishang Nadgauda committed Apr 18, 2022
1 parent 1e93e60 commit 5ecef13
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 9 deletions.
6 changes: 1 addition & 5 deletions contracts/interfaces/IMultiwrap.sol
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.11;

import "./IThirdwebContract.sol";
import "./IThirdwebRoyalty.sol";
import "./IThirdwebOwnable.sol";

/**
* Thirdweb's Multiwrap contract lets you wrap arbitrary ERC20, ERC721 and ERC1155
* tokens you own into a single wrapped token / NFT.
*
* A wrapped NFT can be unwrapped i.e. burned in exchange for its underlying contents.
*/

interface IMultiwrap is IThirdwebContract, IThirdwebOwnable, IThirdwebRoyalty {
interface IMultiwrap {
/// @notice The type of assets that can be wrapped.
enum TokenType {
ERC20,
Expand Down
11 changes: 9 additions & 2 deletions contracts/multiwrap/Multiwrap.sol
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,26 @@ import "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.

// ========== Internal imports ==========

import "../interfaces/IThirdwebContract.sol";
import "../interfaces/IThirdwebRoyalty.sol";
import "../interfaces/IThirdwebOwnable.sol";

import "../interfaces/IMultiwrap.sol";
import "../lib/CurrencyTransferLib.sol";
import "../openzeppelin-presets/metatx/ERC2771ContextUpgradeable.sol";

contract Multiwrap is
IMultiwrap,
IThirdwebContract,
IThirdwebOwnable,
IThirdwebRoyalty,
ReentrancyGuardUpgradeable,
ERC2771ContextUpgradeable,
MulticallUpgradeable,
AccessControlEnumerableUpgradeable,
ERC1155HolderUpgradeable,
ERC721HolderUpgradeable,
ERC721Upgradeable
ERC721Upgradeable,
IMultiwrap
{
/*///////////////////////////////////////////////////////////////
State variables
Expand Down
2 changes: 1 addition & 1 deletion lib/ds-test
Submodule ds-test updated 1 files
+38 −3 src/test.sol
2 changes: 1 addition & 1 deletion lib/forge-std

0 comments on commit 5ecef13

Please sign in to comment.