Warning! Contract bytecode has been changed and doesn't match the verified one. Therefore, interaction with this smart contract may be risky.
This contract has been partially verified via Sourcify.
View contract in Sourcify repository
- Contract name:
- MintplexOpenEditionPlusFactory
- Optimization enabled
- true
- Compiler version
- v0.8.18+commit.87f61d96
- Optimization runs
- 200
- EVM Version
- paris
- Verified at
- 2026-06-07T06:04:52.677210Z
Constructor Arguments
0000000000000000000000007afeaa999718821c2a8b345cd5a2396624b95ce7
Arg [0] (address) : 0x7afeaa999718821c2a8b345cd5a2396624b95ce7
MintplexOpenEditionPlusFactory.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^ 0.8.0;
contract CloneFactory {
function createClone(address target) internal returns (address result) {
bytes20 targetBytes = bytes20(target);
assembly {
let clone := mload(0x40)
mstore(clone, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000)
mstore(add(clone, 0x14), targetBytes)
mstore(add(clone, 0x28), 0x5af43d82803e903d91602b57fd5bf30000000000000000000000000000000000)
result := create(0, clone, 0x37)
}
}
function isClone(address target, address query) internal view returns (bool result) {
bytes20 targetBytes = bytes20(target);
assembly {
let clone := mload(0x40)
mstore(clone, 0x363d3d373d3d3d363d7300000000000000000000000000000000000000000000)
mstore(add(clone, 0xa), targetBytes)
mstore(add(clone, 0x1e), 0x5af43d82803e903d91602b57fd5bf30000000000000000000000000000000000)
let other := add(clone, 0x40)
extcodecopy(query, other, 0, 0x2d)
result := and(
eq(mload(clone), mload(other)),
eq(mload(add(clone, 0xd)), mload(add(other, 0xd)))
)
}
}
}
// File: @openzeppelin/contracts/utils/Context.sol
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
pragma solidity ^ 0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns(address) {
return msg.sender;
}
function _msgData() internal view virtual returns(bytes calldata) {
return msg.data;
}
}
// File: @openzeppelin/contracts/access/Ownable.sol
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)
pragma solidity ^ 0.8.0;
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* onlyOwner, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_transferOwnership(_msgSender());
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns(address) {
return _owner;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
_;
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* onlyOwner functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (newOwner).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (newOwner).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}
interface IMintplexOpenEditionPlus {
function initialize(
address _owner,
address[] memory _payables,
uint256[] memory _payouts,
string memory tokenName,
string memory tokenSymbol,
string[2] memory uris,
uint256[2] memory _collectionSettings,
uint256[2] memory _settings
) external;
}
pragma solidity ^ 0.8.1;
contract MintplexOpenEditionPlusFactory is Ownable, CloneFactory {
address public libraryAddress;
event MintplexOpenEditionPlusCreated(address newMintplexContract);
constructor(address _master) {
libraryAddress = _master;
}
function setLibraryAddress(address _libraryAddress) public onlyOwner {
libraryAddress = _libraryAddress;
}
function create(
address _owner,
address[] memory _payables,
uint256[] memory _payouts,
string memory tokenName,
string memory tokenSymbol,
string[2] memory uris, // [basetokenURI, collectionURI]
uint256[2] memory _collectionSettings, // [maxMintsPerTxn, softCap]
uint256[2] memory _settings // [mintPrice, maxWalletMints]
) public returns(address) {
address clone = CloneFactory.createClone(libraryAddress);
IMintplexOpenEditionPlus(clone).initialize(
_owner,
_payables,
_payouts,
tokenName,
tokenSymbol,
uris,
_collectionSettings,
_settings
);
emit MintplexOpenEditionPlusCreated(clone);
return clone;
}
}
Compiler Settings
{"remappings":[],"optimizer":{"runs":200,"enabled":true},"metadata":{"bytecodeHash":"ipfs"},"libraries":{},"evmVersion":"paris","compilationTarget":{"MintplexOpenEditionPlusFactory.sol":"MintplexOpenEditionPlusFactory"}}
Contract ABI
[{"type":"constructor","stateMutability":"nonpayable","inputs":[{"type":"address","name":"_master","internalType":"address"}]},{"type":"event","name":"MintplexOpenEditionPlusCreated","inputs":[{"type":"address","name":"newMintplexContract","internalType":"address","indexed":false}],"anonymous":false},{"type":"event","name":"OwnershipTransferred","inputs":[{"type":"address","name":"previousOwner","internalType":"address","indexed":true},{"type":"address","name":"newOwner","internalType":"address","indexed":true}],"anonymous":false},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"create","inputs":[{"type":"address","name":"_owner","internalType":"address"},{"type":"address[]","name":"_payables","internalType":"address[]"},{"type":"uint256[]","name":"_payouts","internalType":"uint256[]"},{"type":"string","name":"tokenName","internalType":"string"},{"type":"string","name":"tokenSymbol","internalType":"string"},{"type":"string[2]","name":"uris","internalType":"string[2]"},{"type":"uint256[2]","name":"_collectionSettings","internalType":"uint256[2]"},{"type":"uint256[2]","name":"_settings","internalType":"uint256[2]"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"libraryAddress","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceOwnership","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setLibraryAddress","inputs":[{"type":"address","name":"_libraryAddress","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferOwnership","inputs":[{"type":"address","name":"newOwner","internalType":"address"}]}]
Contract Creation Code
0x608060405234801561001057600080fd5b50604051610a5a380380610a5a83398101604081905261002f916100ad565b6100383361005d565b600180546001600160a01b0319166001600160a01b03929092169190911790556100dd565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156100bf57600080fd5b81516001600160a01b03811681146100d657600080fd5b9392505050565b61096e806100ec6000396000f3fe608060405234801561001057600080fd5b50600436106100625760003560e01c806318d007f4146100675780634863ba1714610096578063715018a6146100ab5780638da5cb5b146100b3578063b816f513146100c4578063f2fde38b146100d7575b600080fd5b61007a61007536600461062a565b6100ea565b6040516001600160a01b03909116815260200160405180910390f35b6100a96100a4366004610731565b6101bd565b005b6100a9610212565b6000546001600160a01b031661007a565b60015461007a906001600160a01b031681565b6100a96100e5366004610731565b610248565b6001546000908190610104906001600160a01b03166102e3565b604051631166017560e31b81529091506001600160a01b03821690638b300ba890610141908d908d908d908d908d908d908d908d90600401610837565b600060405180830381600087803b15801561015b57600080fd5b505af115801561016f573d6000803e3d6000fd5b50506040516001600160a01b03841681527f4fc7718c6988909c8a6bdda54bb4da6a7626bf8e892e3a0f93704907fd1ad52d9250602001905060405180910390a19998505050505050505050565b6000546001600160a01b031633146101f05760405162461bcd60e51b81526004016101e790610903565b60405180910390fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b0316331461023c5760405162461bcd60e51b81526004016101e790610903565b6102466000610335565b565b6000546001600160a01b031633146102725760405162461bcd60e51b81526004016101e790610903565b6001600160a01b0381166102d75760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016101e7565b6102e081610335565b50565b6000808260601b9050604051733d602d80600a3d3981f3363d3d373d3d3d363d7360601b81528160148201526e5af43d82803e903d91602b57fd5bf360881b60288201526037816000f0949350505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80356001600160a01b038116811461039c57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b6040805190810167ffffffffffffffff811182821017156103da576103da6103a1565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715610409576104096103a1565b604052919050565b600067ffffffffffffffff82111561042b5761042b6103a1565b5060051b60200190565b600082601f83011261044657600080fd5b8135602061045b61045683610411565b6103e0565b82815260059290921b8401810191818101908684111561047a57600080fd5b8286015b8481101561049c5761048f81610385565b835291830191830161047e565b509695505050505050565b600082601f8301126104b857600080fd5b813560206104c861045683610411565b82815260059290921b840181019181810190868411156104e757600080fd5b8286015b8481101561049c57803583529183019183016104eb565b600082601f83011261051357600080fd5b813567ffffffffffffffff81111561052d5761052d6103a1565b610540601f8201601f19166020016103e0565b81815284602083860101111561055557600080fd5b816020850160208301376000918101602001919091529392505050565b600082601f83011261058357600080fd5b61058b6103b7565b80604084018581111561059d57600080fd5b845b818110156105da57803567ffffffffffffffff8111156105bf5760008081fd5b6105cb88828901610502565b8552506020938401930161059f565b509095945050505050565b600082601f8301126105f657600080fd5b6105fe6103b7565b80604084018581111561061057600080fd5b845b818110156105da578035845260209384019301610612565b600080600080600080600080610140898b03121561064757600080fd5b61065089610385565b9750602089013567ffffffffffffffff8082111561066d57600080fd5b6106798c838d01610435565b985060408b013591508082111561068f57600080fd5b61069b8c838d016104a7565b975060608b01359150808211156106b157600080fd5b6106bd8c838d01610502565b965060808b01359150808211156106d357600080fd5b6106df8c838d01610502565b955060a08b01359150808211156106f557600080fd5b506107028b828c01610572565b9350506107128a60c08b016105e5565b91506107228a6101008b016105e5565b90509295985092959890939650565b60006020828403121561074357600080fd5b61074c82610385565b9392505050565b600081518084526020808501945080840160005b8381101561078357815187529582019590820190600101610767565b509495945050505050565b6000815180845260005b818110156107b457602081850181015186830182015201610798565b506000602082860101526020601f19601f83011685010191505092915050565b600082604081018360005b60028110156105da5783830387526107f883835161078e565b60209788019790935091909101906001016107df565b8060005b6002811015610831578151845260209384019390910190600101610812565b50505050565b6001600160a01b03898116825261014060208084018290528a519184018290526000926101608501928c83019290855b81811015610885578451841686529482019493820193600101610867565b5050505050828103604084015261089c818a610753565b905082810360608401526108b0818961078e565b905082810360808401526108c4818861078e565b905082810360a08401526108d881876107d4565b9150506108e860c083018561080e565b6108f661010083018461080e565b9998505050505050505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260408201526060019056fea2646970667358221220a2395564ea6f6c63f9b8b32a1c51c22dc4d3843ffc2e666caed98b154d77248c64736f6c634300081200330000000000000000000000007afeaa999718821c2a8b345cd5a2396624b95ce7
Deployed ByteCode
0x608060405234801561001057600080fd5b50600436106100625760003560e01c806318d007f4146100675780634863ba1714610096578063715018a6146100ab5780638da5cb5b146100b3578063b816f513146100c4578063f2fde38b146100d7575b600080fd5b61007a61007536600461062a565b6100ea565b6040516001600160a01b03909116815260200160405180910390f35b6100a96100a4366004610731565b6101bd565b005b6100a9610212565b6000546001600160a01b031661007a565b60015461007a906001600160a01b031681565b6100a96100e5366004610731565b610248565b6001546000908190610104906001600160a01b03166102e3565b604051631166017560e31b81529091506001600160a01b03821690638b300ba890610141908d908d908d908d908d908d908d908d90600401610837565b600060405180830381600087803b15801561015b57600080fd5b505af115801561016f573d6000803e3d6000fd5b50506040516001600160a01b03841681527f4fc7718c6988909c8a6bdda54bb4da6a7626bf8e892e3a0f93704907fd1ad52d9250602001905060405180910390a19998505050505050505050565b6000546001600160a01b031633146101f05760405162461bcd60e51b81526004016101e790610903565b60405180910390fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b0316331461023c5760405162461bcd60e51b81526004016101e790610903565b6102466000610335565b565b6000546001600160a01b031633146102725760405162461bcd60e51b81526004016101e790610903565b6001600160a01b0381166102d75760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016101e7565b6102e081610335565b50565b6000808260601b9050604051733d602d80600a3d3981f3363d3d373d3d3d363d7360601b81528160148201526e5af43d82803e903d91602b57fd5bf360881b60288201526037816000f0949350505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80356001600160a01b038116811461039c57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b6040805190810167ffffffffffffffff811182821017156103da576103da6103a1565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715610409576104096103a1565b604052919050565b600067ffffffffffffffff82111561042b5761042b6103a1565b5060051b60200190565b600082601f83011261044657600080fd5b8135602061045b61045683610411565b6103e0565b82815260059290921b8401810191818101908684111561047a57600080fd5b8286015b8481101561049c5761048f81610385565b835291830191830161047e565b509695505050505050565b600082601f8301126104b857600080fd5b813560206104c861045683610411565b82815260059290921b840181019181810190868411156104e757600080fd5b8286015b8481101561049c57803583529183019183016104eb565b600082601f83011261051357600080fd5b813567ffffffffffffffff81111561052d5761052d6103a1565b610540601f8201601f19166020016103e0565b81815284602083860101111561055557600080fd5b816020850160208301376000918101602001919091529392505050565b600082601f83011261058357600080fd5b61058b6103b7565b80604084018581111561059d57600080fd5b845b818110156105da57803567ffffffffffffffff8111156105bf5760008081fd5b6105cb88828901610502565b8552506020938401930161059f565b509095945050505050565b600082601f8301126105f657600080fd5b6105fe6103b7565b80604084018581111561061057600080fd5b845b818110156105da578035845260209384019301610612565b600080600080600080600080610140898b03121561064757600080fd5b61065089610385565b9750602089013567ffffffffffffffff8082111561066d57600080fd5b6106798c838d01610435565b985060408b013591508082111561068f57600080fd5b61069b8c838d016104a7565b975060608b01359150808211156106b157600080fd5b6106bd8c838d01610502565b965060808b01359150808211156106d357600080fd5b6106df8c838d01610502565b955060a08b01359150808211156106f557600080fd5b506107028b828c01610572565b9350506107128a60c08b016105e5565b91506107228a6101008b016105e5565b90509295985092959890939650565b60006020828403121561074357600080fd5b61074c82610385565b9392505050565b600081518084526020808501945080840160005b8381101561078357815187529582019590820190600101610767565b509495945050505050565b6000815180845260005b818110156107b457602081850181015186830182015201610798565b506000602082860101526020601f19601f83011685010191505092915050565b600082604081018360005b60028110156105da5783830387526107f883835161078e565b60209788019790935091909101906001016107df565b8060005b6002811015610831578151845260209384019390910190600101610812565b50505050565b6001600160a01b03898116825261014060208084018290528a519184018290526000926101608501928c83019290855b81811015610885578451841686529482019493820193600101610867565b5050505050828103604084015261089c818a610753565b905082810360608401526108b0818961078e565b905082810360808401526108c4818861078e565b905082810360a08401526108d881876107d4565b9150506108e860c083018561080e565b6108f661010083018461080e565b9998505050505050505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260408201526060019056fea2646970667358221220a2395564ea6f6c63f9b8b32a1c51c22dc4d3843ffc2e666caed98b154d77248c64736f6c63430008120033