// SPDX-License-Identifier: Apache-2.0 pragma solidity ^0.8.16; import "./interface/IThirdPartyMint1155.sol"; import "./ThirdPartyMint.sol"; abstract contract ThirdPartyMint1155 is ThirdPartyMint, IThirdPartyMint1155 { constructor(IAccessControl _thirdPartySetup) ThirdPartyMint(_thirdPartySetup) {} function _afterMintFromThirdParty(address _receiver, uint256 _editionId, uint256 _quantity) internal virtual; /// @inheritdoc IThirdPartyMint1155 function mintFromThirdParty(address _receiver, uint256 _editionId, uint256 _quantity) public { if (!thirdPartySetup.hasRole(keccak256("MINTER_ROLE"), msg.sender)) { revert CannotMintFromThirdPartyIfMsgSenderIsNotMinterError(); } _afterMintFromThirdParty(_receiver, _editionId, _quantity); } }