Source Code
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Cross-Chain Transactions
Loading...
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Name:
ZoraCreator1155FactoryImpl
Compiler Version
v0.8.17+commit.8df45f5f
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;
import {Initializable} from "@zoralabs/openzeppelin-contracts-upgradeable/contracts/proxy/utils/Initializable.sol";
import {UUPSUpgradeable} from "@zoralabs/openzeppelin-contracts-upgradeable/contracts/proxy/utils/UUPSUpgradeable.sol";
import {IZoraCreator1155Factory} from "../interfaces/IZoraCreator1155Factory.sol";
import {IZoraCreator1155Initializer} from "../interfaces/IZoraCreator1155Initializer.sol";
import {IZoraCreator1155} from "../interfaces/IZoraCreator1155.sol";
import {ICreatorRoyaltiesControl} from "../interfaces/ICreatorRoyaltiesControl.sol";
import {IMinter1155} from "../interfaces/IMinter1155.sol";
import {IContractMetadata} from "../interfaces/IContractMetadata.sol";
import {Ownable2StepUpgradeable} from "../utils/ownable/Ownable2StepUpgradeable.sol";
import {FactoryManagedUpgradeGate} from "../upgrades/FactoryManagedUpgradeGate.sol";
import {Zora1155} from "../proxies/Zora1155.sol";
import {ContractVersionBase} from "../version/ContractVersionBase.sol";
/// @title ZoraCreator1155FactoryImpl
/// @notice Factory contract for creating new ZoraCreator1155 contracts
contract ZoraCreator1155FactoryImpl is IZoraCreator1155Factory, ContractVersionBase, FactoryManagedUpgradeGate, UUPSUpgradeable, IContractMetadata {
IZoraCreator1155 public immutable implementation;
IMinter1155 public immutable merkleMinter;
IMinter1155 public immutable fixedPriceMinter;
IMinter1155 public immutable redeemMinterFactory;
constructor(IZoraCreator1155 _implementation, IMinter1155 _merkleMinter, IMinter1155 _fixedPriceMinter, IMinter1155 _redeemMinterFactory) initializer {
implementation = _implementation;
if (address(implementation) == address(0)) {
revert Constructor_ImplCannotBeZero();
}
merkleMinter = _merkleMinter;
fixedPriceMinter = _fixedPriceMinter;
redeemMinterFactory = _redeemMinterFactory;
}
/// @notice ContractURI for contract information with the strategy
function contractURI() external pure returns (string memory) {
return "https://github.com/ourzora/zora-1155-contracts/";
}
/// @notice The name of the sale strategy
function contractName() external pure returns (string memory) {
return "ZORA 1155 Contract Factory";
}
/// @notice The default minters for new 1155 contracts
function defaultMinters() external view returns (IMinter1155[] memory minters) {
minters = new IMinter1155[](3);
minters[0] = fixedPriceMinter;
minters[1] = merkleMinter;
minters[2] = redeemMinterFactory;
}
function initialize(address _initialOwner) public initializer {
__Ownable_init(_initialOwner);
__UUPSUpgradeable_init();
emit FactorySetup();
}
/// @notice Creates a new ZoraCreator1155 contract
/// @param newContractURI The URI for the contract metadata
/// @param name The name of the contract
/// @param defaultRoyaltyConfiguration The default royalty configuration for the contract
/// @param defaultAdmin The default admin for the contract
/// @param setupActions The actions to perform on the new contract upon initialization
function createContract(
string memory newContractURI,
string calldata name,
ICreatorRoyaltiesControl.RoyaltyConfiguration memory defaultRoyaltyConfiguration,
address payable defaultAdmin,
bytes[] calldata setupActions
) external returns (address) {
address newContract = address(new Zora1155(address(implementation)));
emit SetupNewContract({
newContract: address(newContract),
creator: msg.sender,
defaultAdmin: defaultAdmin,
contractURI: newContractURI,
name: name,
defaultRoyaltyConfiguration: defaultRoyaltyConfiguration
});
IZoraCreator1155Initializer(newContract).initialize(name, newContractURI, defaultRoyaltyConfiguration, defaultAdmin, setupActions);
return address(newContract);
}
/// ///
/// MANAGER UPGRADE ///
/// ///
/// @notice Ensures the caller is authorized to upgrade the contract
/// @dev This function is called in `upgradeTo` & `upgradeToAndCall`
/// @param _newImpl The new implementation address
function _authorizeUpgrade(address _newImpl) internal override onlyOwner {
if (!_equals(IContractMetadata(_newImpl).contractName(), this.contractName())) {
revert UpgradeToMismatchedContractName(this.contractName(), IContractMetadata(_newImpl).contractName());
}
}
function _equals(string memory a, string memory b) internal pure returns (bool) {
return (keccak256(bytes(a)) == keccak256(bytes(b)));
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (proxy/utils/Initializable.sol)
pragma solidity ^0.8.2;
import "../../utils/AddressUpgradeable.sol";
error INITIALIZABLE_CONTRACT_ALREADY_INITIALIZED();
error INITIALIZABLE_CONTRACT_IS_NOT_INITIALIZING();
error INITIALIZABLE_CONTRACT_IS_INITIALIZING();
/**
* @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
* behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an
* external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
* function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
*
* The initialization functions use a version number. Once a version number is used, it is consumed and cannot be
* reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in
* case an upgrade adds a module that needs to be initialized.
*
* For example:
*
* [.hljs-theme-light.nopadding]
* ```solidity
* contract MyToken is ERC20Upgradeable {
* function initialize() initializer public {
* __ERC20_init("MyToken", "MTK");
* }
* }
*
* contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {
* function initializeV2() reinitializer(2) public {
* __ERC20Permit_init("MyToken");
* }
* }
* ```
*
* TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
* possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
*
* CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
* that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
*
* [CAUTION]
* ====
* Avoid leaving a contract uninitialized.
*
* An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation
* contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke
* the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:
*
* [.hljs-theme-light.nopadding]
* ```
* /// @custom:oz-upgrades-unsafe-allow constructor
* constructor() {
* _disableInitializers();
* }
* ```
* ====
*/
abstract contract Initializable {
/**
* @dev Indicates that the contract has been initialized.
* @custom:oz-retyped-from bool
*/
uint8 private _initialized;
/**
* @dev Indicates that the contract is in the process of being initialized.
*/
bool private _initializing;
/**
* @dev Triggered when the contract has been initialized or reinitialized.
*/
event Initialized(uint8 version);
/**
* @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,
* `onlyInitializing` functions can be used to initialize parent contracts.
*
* Similar to `reinitializer(1)`, except that functions marked with `initializer` can be nested in the context of a
* constructor.
*
* Emits an {Initialized} event.
*/
modifier initializer() {
bool isTopLevelCall = !_initializing;
if ((!isTopLevelCall || _initialized != 0) && (AddressUpgradeable.isContract(address(this)) || _initialized != 1)) {
revert INITIALIZABLE_CONTRACT_ALREADY_INITIALIZED();
}
_initialized = 1;
if (isTopLevelCall) {
_initializing = true;
}
_;
if (isTopLevelCall) {
_initializing = false;
emit Initialized(1);
}
}
/**
* @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the
* contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be
* used to initialize parent contracts.
*
* A reinitializer may be used after the original initialization step. This is essential to configure modules that
* are added through upgrades and that require initialization.
*
* When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`
* cannot be nested. If one is invoked in the context of another, execution will revert.
*
* Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in
* a contract, executing them in the right order is up to the developer or operator.
*
* WARNING: setting the version to 255 will prevent any future reinitialization.
*
* Emits an {Initialized} event.
*/
modifier reinitializer(uint8 version) {
if (_initializing || _initialized >= version) {
revert INITIALIZABLE_CONTRACT_ALREADY_INITIALIZED();
}
_initialized = version;
_initializing = true;
_;
_initializing = false;
emit Initialized(version);
}
/**
* @dev Modifier to protect an initialization function so that it can only be invoked by functions with the
* {initializer} and {reinitializer} modifiers, directly or indirectly.
*/
modifier onlyInitializing() {
if (!_initializing) {
revert INITIALIZABLE_CONTRACT_IS_NOT_INITIALIZING();
}
_;
}
/**
* @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.
* Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized
* to any version. It is recommended to use this to lock implementation contracts that are designed to be called
* through proxies.
*
* Emits an {Initialized} event the first time it is successfully executed.
*/
function _disableInitializers() internal virtual {
if (_initializing) {
revert INITIALIZABLE_CONTRACT_IS_INITIALIZING();
}
if (_initialized != type(uint8).max) {
_initialized = type(uint8).max;
emit Initialized(type(uint8).max);
}
}
/**
* @dev Returns the highest version that has been initialized. See {reinitializer}.
*/
function _getInitializedVersion() internal view returns (uint8) {
return _initialized;
}
/**
* @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.
*/
function _isInitializing() internal view returns (bool) {
return _initializing;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (proxy/utils/UUPSUpgradeable.sol)
pragma solidity ^0.8.0;
import "../../interfaces/draft-IERC1822Upgradeable.sol";
import "../ERC1967/ERC1967UpgradeUpgradeable.sol";
import "./Initializable.sol";
error FUNCTION_MUST_BE_CALLED_THROUGH_DELEGATECALL();
error FUNCTION_MUST_BE_CALLED_THROUGH_ACTIVE_PROXY();
error UUPS_UPGRADEABLE_MUST_NOT_BE_CALLED_THROUGH_DELEGATECALL();
/**
* @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an
* {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.
*
* A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is
* reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing
* `UUPSUpgradeable` with a custom implementation of upgrades.
*
* The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.
*
* _Available since v4.1._
*/
abstract contract UUPSUpgradeable is Initializable, IERC1822ProxiableUpgradeable, ERC1967UpgradeUpgradeable {
function __UUPSUpgradeable_init() internal onlyInitializing {
}
function __UUPSUpgradeable_init_unchained() internal onlyInitializing {
}
/// @custom:oz-upgrades-unsafe-allow state-variable-immutable state-variable-assignment
address private immutable __self = address(this);
/**
* @dev Check that the execution is being performed through a delegatecall call and that the execution context is
* a proxy contract with an implementation (as defined in ERC1967) pointing to self. This should only be the case
* for UUPS and transparent proxies that are using the current contract as their implementation. Execution of a
* function through ERC1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to
* fail.
*/
modifier onlyProxy() {
if (address(this) == __self) {
revert FUNCTION_MUST_BE_CALLED_THROUGH_DELEGATECALL();
}
if (_getImplementation() != __self) {
revert FUNCTION_MUST_BE_CALLED_THROUGH_ACTIVE_PROXY();
}
_;
}
/**
* @dev Check that the execution is not being performed through a delegate call. This allows a function to be
* callable on the implementing contract but not through proxies.
*/
modifier notDelegated() {
if (address(this) != __self) {
revert UUPS_UPGRADEABLE_MUST_NOT_BE_CALLED_THROUGH_DELEGATECALL();
}
_;
}
/**
* @dev Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the
* implementation. It is used to validate the implementation's compatibility when performing an upgrade.
*
* IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks
* bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this
* function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.
*/
function proxiableUUID() external view virtual override notDelegated returns (bytes32) {
return _IMPLEMENTATION_SLOT;
}
/**
* @dev Upgrade the implementation of the proxy to `newImplementation`.
*
* Calls {_authorizeUpgrade}.
*
* Emits an {Upgraded} event.
*
* @custom:oz-upgrades-unsafe-allow-reachable delegatecall
*/
function upgradeTo(address newImplementation) public virtual onlyProxy {
_authorizeUpgrade(newImplementation);
_upgradeToAndCallUUPS(newImplementation, new bytes(0), false);
}
/**
* @dev Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call
* encoded in `data`.
*
* Calls {_authorizeUpgrade}.
*
* Emits an {Upgraded} event.
*
* @custom:oz-upgrades-unsafe-allow-reachable delegatecall
*/
function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy {
_authorizeUpgrade(newImplementation);
_upgradeToAndCallUUPS(newImplementation, data, true);
}
/**
* @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by
* {upgradeTo} and {upgradeToAndCall}.
*
* Normally, this function will use an xref:access.adoc[access control] modifier such as {Ownable-onlyOwner}.
*
* ```solidity
* function _authorizeUpgrade(address) internal override onlyOwner {}
* ```
*/
function _authorizeUpgrade(address newImplementation) internal virtual;
/**
* @dev This empty reserved space is put in place to allow future versions to add new
* variables without shifting down storage in the inheritance chain.
* See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
*/
uint256[50] private __gap;
}// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;
import {ICreatorRoyaltiesControl} from "./ICreatorRoyaltiesControl.sol";
import {IMinter1155} from "./IMinter1155.sol";
import {IVersionedContract} from "./IVersionedContract.sol";
/// @notice Factory for 1155 contracts
/// @author @iainnash / @tbtstl
interface IZoraCreator1155Factory is IVersionedContract {
error Constructor_ImplCannotBeZero();
error UpgradeToMismatchedContractName(string expected, string actual);
event FactorySetup();
event SetupNewContract(
address indexed newContract,
address indexed creator,
address indexed defaultAdmin,
string contractURI,
string name,
ICreatorRoyaltiesControl.RoyaltyConfiguration defaultRoyaltyConfiguration
);
function createContract(
string memory contractURI,
string calldata name,
ICreatorRoyaltiesControl.RoyaltyConfiguration memory defaultRoyaltyConfiguration,
address payable defaultAdmin,
bytes[] calldata setupActions
) external returns (address);
function defaultMinters() external returns (IMinter1155[] memory minters);
function initialize(address _owner) external;
}// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;
import {ICreatorRoyaltiesControl} from "../interfaces/ICreatorRoyaltiesControl.sol";
interface IZoraCreator1155Initializer {
function initialize(
string memory contractName,
string memory newContractURI,
ICreatorRoyaltiesControl.RoyaltyConfiguration memory defaultRoyaltyConfiguration,
address payable defaultAdmin,
bytes[] calldata setupActions
) external;
}// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;
import {IERC165Upgradeable} from "@zoralabs/openzeppelin-contracts-upgradeable/contracts/interfaces/IERC165Upgradeable.sol";
import {IERC1155MetadataURIUpgradeable} from "@zoralabs/openzeppelin-contracts-upgradeable/contracts/interfaces/IERC1155MetadataURIUpgradeable.sol";
import {IZoraCreator1155TypesV1} from "../nft/IZoraCreator1155TypesV1.sol";
import {IRenderer1155} from "../interfaces/IRenderer1155.sol";
import {IMinter1155} from "../interfaces/IMinter1155.sol";
import {IOwnable} from "../interfaces/IOwnable.sol";
import {IVersionedContract} from "./IVersionedContract.sol";
import {ICreatorRoyaltiesControl} from "../interfaces/ICreatorRoyaltiesControl.sol";
/*
░░░░░░░░░░░░░░
░░▒▒░░░░░░░░░░░░░░░░░░░░
░░▒▒▒▒░░░░░░░░░░░░░░░░░░░░░░
░░▒▒▒▒░░░░░░░░░░░░░░ ░░░░░░░░
░▓▓▒▒▒▒░░░░░░░░░░░░ ░░░░░░░
░▓▓▓▒▒▒▒░░░░░░░░░░░░ ░░░░░░░░
░▓▓▓▒▒▒▒░░░░░░░░░░░░░░ ░░░░░░░░░░
░▓▓▓▒▒▒▒▒▒░░░░░░░░░░░░░░░░░░░░░░░░░░░
░▓▓▓▓▓▒▒▒▒░░░░░░░░░░░░░░░░░░░░░░░░░░
░▓▓▓▓▒▒▒▒▒▒░░░░░░░░░░░░░░░░░░░░░░░
░░▓▓▓▓▒▒▒▒▒▒░░░░░░░░░░░░░░░░░░░░
░░▓▓▓▓▓▓▒▒▒▒▒▒▒▒░░░░░░░░░▒▒▒▒▒░░
░░▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░░
░░▓▓▓▓▓▓▓▓▓▓▓▓▒▒░░░
OURS TRULY,
*/
/// @notice Main interface for the ZoraCreator1155 contract
/// @author @iainnash / @tbtstl
interface IZoraCreator1155 is IZoraCreator1155TypesV1, IVersionedContract, IOwnable, IERC1155MetadataURIUpgradeable {
function PERMISSION_BIT_ADMIN() external returns (uint256);
function PERMISSION_BIT_MINTER() external returns (uint256);
function PERMISSION_BIT_SALES() external returns (uint256);
function PERMISSION_BIT_METADATA() external returns (uint256);
/// @notice Used to label the configuration update type
enum ConfigUpdate {
OWNER,
FUNDS_RECIPIENT,
TRANSFER_HOOK
}
event ConfigUpdated(address indexed updater, ConfigUpdate indexed updateType, ContractConfig newConfig);
event UpdatedToken(address indexed from, uint256 indexed tokenId, TokenData tokenData);
event SetupNewToken(uint256 indexed tokenId, address indexed sender, string newURI, uint256 maxSupply);
function setOwner(address newOwner) external;
event ContractRendererUpdated(IRenderer1155 renderer);
event ContractMetadataUpdated(address indexed updater, string uri, string name);
event Purchased(address indexed sender, address indexed minter, uint256 indexed tokenId, uint256 quantity, uint256 value);
error TokenIdMismatch(uint256 expected, uint256 actual);
error UserMissingRoleForToken(address user, uint256 tokenId, uint256 role);
error Config_TransferHookNotSupported(address proposedAddress);
error Mint_InsolventSaleTransfer();
error Mint_ValueTransferFail();
error Mint_TokenIDMintNotAllowed();
error Mint_UnknownCommand();
error Burn_NotOwnerOrApproved(address operator, address user);
error NewOwnerNeedsToBeAdmin();
error Sale_CannotCallNonSalesContract(address targetContract);
error CallFailed(bytes reason);
error Renderer_NotValidRendererContract();
error ETHWithdrawFailed(address recipient, uint256 amount);
error FundsWithdrawInsolvent(uint256 amount, uint256 contractValue);
error ProtocolRewardsWithdrawFailed(address caller, address recipient, uint256 amount);
error CannotMintMoreTokens(uint256 tokenId, uint256 quantity, uint256 totalMinted, uint256 maxSupply);
/// @notice Only allow minting one token id at time
/// @dev Mint contract function that calls the underlying sales function for commands
/// @param minter Address for the minter
/// @param tokenId tokenId to mint, set to 0 for new tokenId
/// @param quantity to mint
/// @param minterArguments calldata for the minter contracts
function mint(IMinter1155 minter, uint256 tokenId, uint256 quantity, bytes calldata minterArguments) external payable;
function adminMint(address recipient, uint256 tokenId, uint256 quantity, bytes memory data) external;
function adminMintBatch(address recipient, uint256[] memory tokenIds, uint256[] memory quantities, bytes memory data) external;
function burnBatch(address user, uint256[] calldata tokenIds, uint256[] calldata amounts) external;
/// @notice Contract call to setupNewToken
/// @param tokenURI URI for the token
/// @param maxSupply maxSupply for the token, set to 0 for open edition
function setupNewToken(string memory tokenURI, uint256 maxSupply) external returns (uint256 tokenId);
function updateTokenURI(uint256 tokenId, string memory _newURI) external;
function updateContractMetadata(string memory _newURI, string memory _newName) external;
function externalCall(address target, bytes calldata data) external returns (bytes memory result);
// Public interface for `setTokenMetadataRenderer(uint256, address) has been deprecated.
function contractURI() external view returns (string memory);
function assumeLastTokenIdMatches(uint256 tokenId) external;
function updateRoyaltiesForToken(uint256 tokenId, ICreatorRoyaltiesControl.RoyaltyConfiguration memory royaltyConfiguration) external;
function addPermission(uint256 tokenId, address user, uint256 permissionBits) external;
function removePermission(uint256 tokenId, address user, uint256 permissionBits) external;
function isAdminOrRole(address user, uint256 tokenId, uint256 role) external view returns (bool);
function getTokenInfo(uint256 tokenId) external view returns (TokenData memory);
function callRenderer(uint256 tokenId, bytes memory data) external;
function callSale(uint256 tokenId, IMinter1155 salesConfig, bytes memory data) external;
}// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;
import {IERC2981} from "@openzeppelin/contracts/interfaces/IERC2981.sol";
interface ICreatorRoyaltiesControl is IERC2981 {
/// @notice The RoyaltyConfiguration struct is used to store the royalty configuration for a given token.
/// @param royaltyMintSchedule Every nth token will go to the royalty recipient.
/// @param royaltyBPS The royalty amount in basis points for secondary sales.
/// @param royaltyRecipient The address that will receive the royalty payments.
struct RoyaltyConfiguration {
uint32 royaltyMintSchedule;
uint32 royaltyBPS;
address royaltyRecipient;
}
/// @notice Thrown when a user tries to have 100% supply royalties
error InvalidMintSchedule();
/// @notice Event emitted when royalties are updated
event UpdatedRoyalties(uint256 indexed tokenId, address indexed user, RoyaltyConfiguration configuration);
/// @notice External data getter to get royalties for a token
/// @param tokenId tokenId to get royalties configuration for
function getRoyalties(uint256 tokenId) external view returns (RoyaltyConfiguration memory);
}// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;
import {IERC165Upgradeable} from "@zoralabs/openzeppelin-contracts-upgradeable/contracts/interfaces/IERC165Upgradeable.sol";
import {ICreatorCommands} from "./ICreatorCommands.sol";
/// @notice Minter standard interface
/// @dev Minters need to confirm to the ERC165 selector of type(IMinter1155).interfaceId
interface IMinter1155 is IERC165Upgradeable {
function requestMint(
address sender,
uint256 tokenId,
uint256 quantity,
uint256 ethValueSent,
bytes calldata minterArguments
) external returns (ICreatorCommands.CommandSet memory commands);
}// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;
interface IContractMetadata {
/// @notice Contract name returns the pretty contract name
function contractName() external returns (string memory);
/// @notice Contract URI returns the uri for more information about the given contract
function contractURI() external returns (string memory);
}// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;
import {IOwnable2StepUpgradeable} from "./IOwnable2StepUpgradeable.sol";
import {IOwnable2StepStorageV1} from "./IOwnable2StepStorageV1.sol";
import {Initializable} from "@zoralabs/openzeppelin-contracts-upgradeable/contracts/proxy/utils/Initializable.sol";
/// @title Ownable
/// @author Rohan Kulkarni / Iain Nash
/// @notice Modified from OpenZeppelin Contracts v4.7.3 (access/OwnableUpgradeable.sol)
/// - Uses custom errors declared in IOwnable
/// - Adds optional two-step ownership transfer (`safeTransferOwnership` + `acceptOwnership`)
abstract contract Ownable2StepUpgradeable is IOwnable2StepUpgradeable, IOwnable2StepStorageV1, Initializable {
/// ///
/// STORAGE ///
/// ///
/// @dev Modifier to check if the address argument is the zero/burn address
modifier notZeroAddress(address check) {
if (check == address(0)) {
revert OWNER_CANNOT_BE_ZERO_ADDRESS();
}
_;
}
/// ///
/// MODIFIERS ///
/// ///
/// @dev Ensures the caller is the owner
modifier onlyOwner() {
if (msg.sender != _owner) {
revert ONLY_OWNER();
}
_;
}
/// @dev Ensures the caller is the pending owner
modifier onlyPendingOwner() {
if (msg.sender != _pendingOwner) {
revert ONLY_PENDING_OWNER();
}
_;
}
/// ///
/// FUNCTIONS ///
/// ///
/// @dev Initializes contract ownership
/// @param _initialOwner The initial owner address
function __Ownable_init(address _initialOwner) internal notZeroAddress(_initialOwner) onlyInitializing {
_owner = _initialOwner;
emit OwnerUpdated(address(0), _initialOwner);
}
/// @notice The address of the owner
function owner() public view virtual returns (address) {
return _owner;
}
/// @notice The address of the pending owner
function pendingOwner() public view returns (address) {
return _pendingOwner;
}
/// @notice Forces an ownership transfer from the last owner
/// @param _newOwner The new owner address
function transferOwnership(address _newOwner) public notZeroAddress(_newOwner) onlyOwner {
_transferOwnership(_newOwner);
}
/// @notice Forces an ownership transfer from any sender
/// @param _newOwner New owner to transfer contract to
/// @dev Ensure is called only from trusted internal code, no access control checks.
function _transferOwnership(address _newOwner) internal {
emit OwnerUpdated(_owner, _newOwner);
_owner = _newOwner;
if (_pendingOwner != address(0)) {
delete _pendingOwner;
}
}
/// @notice Initiates a two-step ownership transfer
/// @param _newOwner The new owner address
function safeTransferOwnership(address _newOwner) public notZeroAddress(_newOwner) onlyOwner {
_pendingOwner = _newOwner;
emit OwnerPending(_owner, _newOwner);
}
/// @notice Resign ownership of contract
/// @dev only callably by the owner, dangerous call.
function resignOwnership() public onlyOwner {
_transferOwnership(address(0));
}
/// @notice Accepts an ownership transfer
function acceptOwnership() public onlyPendingOwner {
emit OwnerUpdated(_owner, msg.sender);
_transferOwnership(msg.sender);
}
/// @notice Cancels a pending ownership transfer
function cancelOwnershipTransfer() public onlyOwner {
emit OwnerCanceled(_owner, _pendingOwner);
delete _pendingOwner;
}
}// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;
import {IFactoryManagedUpgradeGate} from "../interfaces/IFactoryManagedUpgradeGate.sol";
import {Ownable2StepUpgradeable} from "../utils/ownable/Ownable2StepUpgradeable.sol";
import {FactoryManagedUpgradeGateStorageV1} from "./FactoryManagedUpgradeGateStorageV1.sol";
/// @title FactoryManagedUpgradeGate
/// @notice Contract for managing upgrades and safe upgrade paths for 1155 contracts
abstract contract FactoryManagedUpgradeGate is IFactoryManagedUpgradeGate, Ownable2StepUpgradeable, FactoryManagedUpgradeGateStorageV1 {
/// ///
/// CREATOR TOKEN UPGRADES ///
/// ///
/// @notice If an implementation is registered by the Builder DAO as an optional upgrade
/// @param baseImpl The base implementation address
/// @param upgradeImpl The upgrade implementation address
function isRegisteredUpgradePath(address baseImpl, address upgradeImpl) public view returns (bool) {
return isAllowedUpgrade[baseImpl][upgradeImpl];
}
/// @notice Called by the Builder DAO to offer implementation upgrades for created DAOs
/// @param baseImpls The base implementation addresses
/// @param upgradeImpl The upgrade implementation address
function registerUpgradePath(address[] memory baseImpls, address upgradeImpl) public onlyOwner {
unchecked {
for (uint256 i = 0; i < baseImpls.length; ++i) {
isAllowedUpgrade[baseImpls[i]][upgradeImpl] = true;
emit UpgradeRegistered(baseImpls[i], upgradeImpl);
}
}
}
/// @notice Called by the Builder DAO to remove an upgrade
/// @param baseImpl The base implementation address
/// @param upgradeImpl The upgrade implementation address
function removeUpgradePath(address baseImpl, address upgradeImpl) public onlyOwner {
delete isAllowedUpgrade[baseImpl][upgradeImpl];
emit UpgradeRemoved(baseImpl, upgradeImpl);
}
}// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;
import {Enjoy} from "_imagine/mint/Enjoy.sol";
import {ERC1967Proxy} from "@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.sol";
/*
░░░░░░░░░░░░░░
░░▒▒░░░░░░░░░░░░░░░░░░░░
░░▒▒▒▒░░░░░░░░░░░░░░░░░░░░░░
░░▒▒▒▒░░░░░░░░░░░░░░ ░░░░░░░░
░▓▓▒▒▒▒░░░░░░░░░░░░ ░░░░░░░
░▓▓▓▒▒▒▒░░░░░░░░░░░░ ░░░░░░░░
░▓▓▓▒▒▒▒░░░░░░░░░░░░░░ ░░░░░░░░░░
░▓▓▓▒▒▒▒▒▒░░░░░░░░░░░░░░░░░░░░░░░░░░░
░▓▓▓▓▓▒▒▒▒░░░░░░░░░░░░░░░░░░░░░░░░░░
░▓▓▓▓▒▒▒▒▒▒░░░░░░░░░░░░░░░░░░░░░░░
░░▓▓▓▓▒▒▒▒▒▒░░░░░░░░░░░░░░░░░░░░
░░▓▓▓▓▓▓▒▒▒▒▒▒▒▒░░░░░░░░░▒▒▒▒▒░░
░░▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░░
░░▓▓▓▓▓▓▓▓▓▓▓▓▒▒░░░
OURS TRULY,
*/
/// Imagine. Mint. Enjoy.
/// @notice Imagine. Mint. Enjoy.
/// @author ZORA @iainnash / @tbtstl
contract Zora1155 is Enjoy, ERC1967Proxy {
constructor(address _logic) ERC1967Proxy(_logic, "") {}
}// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;
import {IVersionedContract} from "../interfaces/IVersionedContract.sol";
/// @title ContractVersionBase
/// @notice Base contract for versioning contracts
contract ContractVersionBase is IVersionedContract {
/// @notice The version of the contract
function contractVersion() external pure override returns (string memory) {
return "1.4.0";
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)
pragma solidity ^0.8.1;
error ADDRESS_INSUFFICIENT_BALANCE();
error ADDRESS_UNABLE_TO_SEND_VALUE();
error ADDRESS_LOW_LEVEL_CALL_FAILED();
error ADDRESS_LOW_LEVEL_CALL_WITH_VALUE_FAILED();
error ADDRESS_INSUFFICIENT_BALANCE_FOR_CALL();
error ADDRESS_LOW_LEVEL_STATIC_CALL_FAILED();
error ADDRESS_CALL_TO_NON_CONTRACT();
/**
* @dev Collection of functions related to the address type
*/
library AddressUpgradeable {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
*
* Furthermore, `isContract` will also return true if the target contract within
* the same transaction is already scheduled for destruction by `SELFDESTRUCT`,
* which only has an effect at the end of a transaction.
* ====
*
* [IMPORTANT]
* ====
* You shouldn't rely on `isContract` to protect against flash loan attacks!
*
* Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
* like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
* constructor.
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize/address.code.length, which returns 0
// for contracts in construction, since the code is only stored at the end
// of the constructor execution.
return account.code.length > 0;
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
if (address(this).balance > amount) {
revert ADDRESS_INSUFFICIENT_BALANCE();
}
(bool success, ) = recipient.call{value: amount}("");
if (!success) {
revert ADDRESS_UNABLE_TO_SEND_VALUE();
}
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value
) internal returns (bytes memory) {
if (address(this).balance < value) {
revert ADDRESS_INSUFFICIENT_BALANCE();
}
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResultFromTarget(target, success, returndata);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(
address target,
bytes memory data
) internal view returns (bytes memory) {
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResultFromTarget(target, success, returndata);
}
/**
* @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
* the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
*
* _Available since v4.8._
*/
function verifyCallResultFromTarget(
address target,
bool success,
bytes memory returndata
) internal view returns (bytes memory) {
if (success) {
if (returndata.length == 0) {
// only check isContract if the call was successful and the return data is empty
// otherwise we already know that it was a contract
if (!isContract(target)) {
revert ADDRESS_CALL_TO_NON_CONTRACT();
}
}
return returndata;
} else {
_revert(returndata);
}
}
/**
* @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason or using the provided one.
*
* _Available since v4.3._
*/
function verifyCallResult(
bool success,
bytes memory returndata
) internal pure returns (bytes memory) {
if (success) {
return returndata;
} else {
_revert(returndata);
}
}
function _revert(bytes memory returndata) private pure {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
/// @solidity memory-safe-assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert ADDRESS_LOW_LEVEL_CALL_FAILED();
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (interfaces/draft-IERC1822.sol)
pragma solidity ^0.8.0;
/**
* @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified
* proxy whose upgrades are fully controlled by the current implementation.
*/
interface IERC1822ProxiableUpgradeable {
/**
* @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation
* address.
*
* IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks
* bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this
* function revert if invoked through a proxy.
*/
function proxiableUUID() external view returns (bytes32);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (proxy/ERC1967/ERC1967Upgrade.sol)
pragma solidity ^0.8.2;
import "../beacon/IBeaconUpgradeable.sol";
import "../../interfaces/draft-IERC1822Upgradeable.sol";
import "../../utils/AddressUpgradeable.sol";
import "../../utils/StorageSlotUpgradeable.sol";
import "../utils/Initializable.sol";
error ERC1967_NEW_IMPL_NOT_CONTRACT();
error ERC1967_UNSUPPORTED_PROXIABLEUUID();
error ERC1967_NEW_IMPL_NOT_UUPS();
error ERC1967_NEW_ADMIN_IS_ZERO_ADDRESS();
error ERC1967_NEW_BEACON_IS_NOT_CONTRACT();
error ERC1967_BEACON_IMPL_IS_NOT_CONTRACT();
error ADDRESS_DELEGATECALL_TO_NON_CONTRACT();
/**
* @dev This abstract contract provides getters and event emitting update functions for
* https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots.
*
* _Available since v4.1._
*/
abstract contract ERC1967UpgradeUpgradeable is Initializable {
function __ERC1967Upgrade_init() internal onlyInitializing {
}
function __ERC1967Upgrade_init_unchained() internal onlyInitializing {
}
// This is the keccak-256 hash of "eip1967.proxy.rollback" subtracted by 1
bytes32 private constant _ROLLBACK_SLOT = 0x4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143;
/**
* @dev Storage slot with the address of the current implementation.
* This is the keccak-256 hash of "eip1967.proxy.implementation" subtracted by 1, and is
* validated in the constructor.
*/
bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
/**
* @dev Emitted when the implementation is upgraded.
*/
event Upgraded(address indexed implementation);
/**
* @dev Returns the current implementation address.
*/
function _getImplementation() internal view returns (address) {
return StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value;
}
/**
* @dev Stores a new address in the EIP1967 implementation slot.
*/
function _setImplementation(address newImplementation) private {
if (!AddressUpgradeable.isContract(newImplementation)) {
revert ERC1967_NEW_IMPL_NOT_CONTRACT();
}
StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
}
/**
* @dev Perform implementation upgrade
*
* Emits an {Upgraded} event.
*/
function _upgradeTo(address newImplementation) internal {
_setImplementation(newImplementation);
emit Upgraded(newImplementation);
}
/**
* @dev Perform implementation upgrade with additional setup call.
*
* Emits an {Upgraded} event.
*/
function _upgradeToAndCall(address newImplementation, bytes memory data, bool forceCall) internal {
_upgradeTo(newImplementation);
if (data.length > 0 || forceCall) {
_functionDelegateCall(newImplementation, data);
}
}
/**
* @dev Perform implementation upgrade with security checks for UUPS proxies, and additional setup call.
*
* Emits an {Upgraded} event.
*/
function _upgradeToAndCallUUPS(address newImplementation, bytes memory data, bool forceCall) internal {
// Upgrades from old implementations will perform a rollback test. This test requires the new
// implementation to upgrade back to the old, non-ERC1822 compliant, implementation. Removing
// this special case will break upgrade paths from old UUPS implementation to new ones.
if (StorageSlotUpgradeable.getBooleanSlot(_ROLLBACK_SLOT).value) {
_setImplementation(newImplementation);
} else {
try IERC1822ProxiableUpgradeable(newImplementation).proxiableUUID() returns (bytes32 slot) {
if (slot != _IMPLEMENTATION_SLOT) {
revert ERC1967_UNSUPPORTED_PROXIABLEUUID();
}
} catch {
revert ERC1967_NEW_IMPL_NOT_UUPS();
}
_upgradeToAndCall(newImplementation, data, forceCall);
}
}
/**
* @dev Storage slot with the admin of the contract.
* This is the keccak-256 hash of "eip1967.proxy.admin" subtracted by 1, and is
* validated in the constructor.
*/
bytes32 internal constant _ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;
/**
* @dev Emitted when the admin account has changed.
*/
event AdminChanged(address previousAdmin, address newAdmin);
/**
* @dev Returns the current admin.
*/
function _getAdmin() internal view returns (address) {
return StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value;
}
/**
* @dev Stores a new address in the EIP1967 admin slot.
*/
function _setAdmin(address newAdmin) private {
if (newAdmin == address(0)) {
revert ERC1967_NEW_ADMIN_IS_ZERO_ADDRESS();
}
StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value = newAdmin;
}
/**
* @dev Changes the admin of the proxy.
*
* Emits an {AdminChanged} event.
*/
function _changeAdmin(address newAdmin) internal {
emit AdminChanged(_getAdmin(), newAdmin);
_setAdmin(newAdmin);
}
/**
* @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.
* This is bytes32(uint256(keccak256('eip1967.proxy.beacon')) - 1)) and is validated in the constructor.
*/
bytes32 internal constant _BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;
/**
* @dev Emitted when the beacon is upgraded.
*/
event BeaconUpgraded(address indexed beacon);
/**
* @dev Returns the current beacon.
*/
function _getBeacon() internal view returns (address) {
return StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value;
}
/**
* @dev Stores a new beacon in the EIP1967 beacon slot.
*/
function _setBeacon(address newBeacon) private {
if (!AddressUpgradeable.isContract(newBeacon)) {
revert ERC1967_NEW_BEACON_IS_NOT_CONTRACT();
}
if (!AddressUpgradeable.isContract(IBeaconUpgradeable(newBeacon).implementation())) {
revert ERC1967_BEACON_IMPL_IS_NOT_CONTRACT();
}
StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value = newBeacon;
}
/**
* @dev Perform beacon upgrade with additional setup call. Note: This upgrades the address of the beacon, it does
* not upgrade the implementation contained in the beacon (see {UpgradeableBeacon-_setImplementation} for that).
*
* Emits a {BeaconUpgraded} event.
*/
function _upgradeBeaconToAndCall(address newBeacon, bytes memory data, bool forceCall) internal {
_setBeacon(newBeacon);
emit BeaconUpgraded(newBeacon);
if (data.length > 0 || forceCall) {
_functionDelegateCall(IBeaconUpgradeable(newBeacon).implementation(), data);
}
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function _functionDelegateCall(address target, bytes memory data) private returns (bytes memory) {
if (!AddressUpgradeable.isContract(target)) {
revert ADDRESS_DELEGATECALL_TO_NON_CONTRACT();
}
// solhint-disable-next-line avoid-low-level-calls
(bool success, bytes memory returndata) = target.delegatecall(data);
return AddressUpgradeable.verifyCallResult(success, returndata);
}
/**
* @dev This empty reserved space is put in place to allow future versions to add new
* variables without shifting down storage in the inheritance chain.
* See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
*/
uint256[50] private __gap;
}// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;
interface IVersionedContract {
function contractVersion() external returns (string memory);
}// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (interfaces/IERC165.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165Upgradeable.sol";
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (interfaces/IERC1155MetadataURI.sol) pragma solidity ^0.8.0; import "../token/ERC1155/extensions/IERC1155MetadataURIUpgradeable.sol";
// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;
import {ITransferHookReceiver} from "../interfaces/ITransferHookReceiver.sol";
/*
░░░░░░░░░░░░░░
░░▒▒░░░░░░░░░░░░░░░░░░░░
░░▒▒▒▒░░░░░░░░░░░░░░░░░░░░░░
░░▒▒▒▒░░░░░░░░░░░░░░ ░░░░░░░░
░▓▓▒▒▒▒░░░░░░░░░░░░ ░░░░░░░
░▓▓▓▒▒▒▒░░░░░░░░░░░░ ░░░░░░░░
░▓▓▓▒▒▒▒░░░░░░░░░░░░░░ ░░░░░░░░░░
░▓▓▓▒▒▒▒▒▒░░░░░░░░░░░░░░░░░░░░░░░░░░░
░▓▓▓▓▓▒▒▒▒░░░░░░░░░░░░░░░░░░░░░░░░░░
░▓▓▓▓▒▒▒▒▒▒░░░░░░░░░░░░░░░░░░░░░░░
░░▓▓▓▓▒▒▒▒▒▒░░░░░░░░░░░░░░░░░░░░
░░▓▓▓▓▓▓▒▒▒▒▒▒▒▒░░░░░░░░░▒▒▒▒▒░░
░░▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░░
░░▓▓▓▓▓▓▓▓▓▓▓▓▒▒░░░
OURS TRULY,
*/
/// Imagine. Mint. Enjoy.
/// @notice Interface for types used across the ZoraCreator1155 contract
/// @author @iainnash / @tbtstl
interface IZoraCreator1155TypesV1 {
/// @notice Used to store individual token data
struct TokenData {
string uri;
uint256 maxSupply;
uint256 totalMinted;
}
/// @notice Used to store contract-level configuration
struct ContractConfig {
address owner;
uint96 __gap1;
address payable fundsRecipient;
uint96 __gap2;
ITransferHookReceiver transferHook;
uint96 __gap3;
}
}// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;
import {IERC165Upgradeable} from "@zoralabs/openzeppelin-contracts-upgradeable/contracts/interfaces/IERC165Upgradeable.sol";
/// @dev IERC165 type required
interface IRenderer1155 is IERC165Upgradeable {
/// @notice Called for assigned tokenId, or when token id is globally set to a renderer
/// @dev contract target is assumed to be msg.sender
/// @param tokenId token id to get uri for
function uri(uint256 tokenId) external view returns (string memory);
/// @notice Only called for tokenId == 0
/// @dev contract target is assumed to be msg.sender
function contractURI() external view returns (string memory);
/// @notice Sets up renderer from contract
/// @param initData data to setup renderer with
/// @dev contract target is assumed to be msg.sender
function setup(bytes memory initData) external;
// IERC165 type required – set in base helper
}// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;
interface IOwnable {
function owner() external returns (address);
event OwnershipTransferred(address lastOwner, address newOwner);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (interfaces/IERC2981.sol)
pragma solidity ^0.8.0;
import "../utils/introspection/IERC165.sol";
/**
* @dev Interface for the NFT Royalty Standard.
*
* A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal
* support for royalty payments across all NFT marketplaces and ecosystem participants.
*
* _Available since v4.5._
*/
interface IERC2981 is IERC165 {
/**
* @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of
* exchange. The royalty amount is denominated and should be paid in that same unit of exchange.
*/
function royaltyInfo(
uint256 tokenId,
uint256 salePrice
) external view returns (address receiver, uint256 royaltyAmount);
}// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;
/// @notice Creator Commands used by minter modules passed back to the main modules
interface ICreatorCommands {
/// @notice This enum is used to define supported creator action types.
/// This can change in the future
enum CreatorActions {
// No operation - also the default for mintings that may not return a command
NO_OP,
// Send ether
SEND_ETH,
// Mint operation
MINT
}
/// @notice This command is for
struct Command {
// Method for operation
CreatorActions method;
// Arguments used for this operation
bytes args;
}
/// @notice This command set is returned from the minter back to the user
struct CommandSet {
Command[] commands;
uint256 at;
}
}// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;
/// @title IOwnable2StepUpgradeable
/// @author Rohan Kulkarni
/// @notice The external Ownable events, errors, and functions
interface IOwnable2StepUpgradeable {
/// ///
/// EVENTS ///
/// ///
/// @notice Emitted when ownership has been updated
/// @param prevOwner The previous owner address
/// @param newOwner The new owner address
event OwnerUpdated(address indexed prevOwner, address indexed newOwner);
/// @notice Emitted when an ownership transfer is pending
/// @param owner The current owner address
/// @param pendingOwner The pending new owner address
event OwnerPending(address indexed owner, address indexed pendingOwner);
/// @notice Emitted when a pending ownership transfer has been canceled
/// @param owner The current owner address
/// @param canceledOwner The canceled owner address
event OwnerCanceled(address indexed owner, address indexed canceledOwner);
/// ///
/// ERRORS ///
/// ///
/// @dev Reverts if an unauthorized user calls an owner function
error ONLY_OWNER();
/// @dev Reverts if an unauthorized user calls a pending owner function
error ONLY_PENDING_OWNER();
/// @dev Owner cannot be the zero/burn address
error OWNER_CANNOT_BE_ZERO_ADDRESS();
/// ///
/// FUNCTIONS ///
/// ///
/// @notice The address of the owner
function owner() external view returns (address);
/// @notice The address of the pending owner
function pendingOwner() external view returns (address);
/// @notice Forces an ownership transfer
/// @param newOwner The new owner address
function transferOwnership(address newOwner) external;
/// @notice Initiates a two-step ownership transfer
/// @param newOwner The new owner address
function safeTransferOwnership(address newOwner) external;
/// @notice Accepts an ownership transfer
function acceptOwnership() external;
/// @notice Cancels a pending ownership transfer
function cancelOwnershipTransfer() external;
}// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;
abstract contract IOwnable2StepStorageV1 {
/// @dev The address of the owner
address internal _owner;
/// @dev The address of the pending owner
address internal _pendingOwner;
/// @dev storage gap
uint256[50] private __gap;
}// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;
/// @notice Factory Upgrade Gate Admin Factory Implementation – Allows specific contract upgrades as a safety measure
interface IFactoryManagedUpgradeGate {
/// @notice If an implementation is registered by the Builder DAO as an optional upgrade
/// @param baseImpl The base implementation address
/// @param upgradeImpl The upgrade implementation address
function isRegisteredUpgradePath(address baseImpl, address upgradeImpl) external view returns (bool);
/// @notice Called by the Builder DAO to offer implementation upgrades for created DAOs
/// @param baseImpls The base implementation addresses
/// @param upgradeImpl The upgrade implementation address
function registerUpgradePath(address[] memory baseImpls, address upgradeImpl) external;
/// @notice Called by the Builder DAO to remove an upgrade
/// @param baseImpl The base implementation address
/// @param upgradeImpl The upgrade implementation address
function removeUpgradePath(address baseImpl, address upgradeImpl) external;
event UpgradeRegistered(address indexed baseImpl, address indexed upgradeImpl);
event UpgradeRemoved(address indexed baseImpl, address indexed upgradeImpl);
}// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;
abstract contract FactoryManagedUpgradeGateStorageV1 {
mapping(address => mapping(address => bool)) public isAllowedUpgrade;
uint256[50] private __gap;
}// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;
/*
░░░░░░░░░░░░░░
░░▒▒░░░░░░░░░░░░░░░░░░░░
░░▒▒▒▒░░░░░░░░░░░░░░░░░░░░░░
░░▒▒▒▒░░░░░░░░░░░░░░ ░░░░░░░░
░▓▓▒▒▒▒░░░░░░░░░░░░ ░░░░░░░
░▓▓▓▒▒▒▒░░░░░░░░░░░░ ░░░░░░░░
░▓▓▓▒▒▒▒░░░░░░░░░░░░░░ ░░░░░░░░░░
░▓▓▓▒▒▒▒▒▒░░░░░░░░░░░░░░░░░░░░░░░░░░░
░▓▓▓▓▓▒▒▒▒░░░░░░░░░░░░░░░░░░░░░░░░░░
░▓▓▓▓▒▒▒▒▒▒░░░░░░░░░░░░░░░░░░░░░░░
░░▓▓▓▓▒▒▒▒▒▒░░░░░░░░░░░░░░░░░░░░
░░▓▓▓▓▓▓▒▒▒▒▒▒▒▒░░░░░░░░░▒▒▒▒▒░░
░░▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░░
░░▓▓▓▓▓▓▓▓▓▓▓▓▒▒░░░
OURS TRULY,
*/
interface Enjoy {
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (proxy/ERC1967/ERC1967Proxy.sol)
pragma solidity ^0.8.0;
import "../Proxy.sol";
import "./ERC1967Upgrade.sol";
/**
* @dev This contract implements an upgradeable proxy. It is upgradeable because calls are delegated to an
* implementation address that can be changed. This address is stored in storage in the location specified by
* https://eips.ethereum.org/EIPS/eip-1967[EIP1967], so that it doesn't conflict with the storage layout of the
* implementation behind the proxy.
*/
contract ERC1967Proxy is Proxy, ERC1967Upgrade {
/**
* @dev Initializes the upgradeable proxy with an initial implementation specified by `_logic`.
*
* If `_data` is nonempty, it's used as data in a delegate call to `_logic`. This will typically be an encoded
* function call, and allows initializing the storage of the proxy like a Solidity constructor.
*/
constructor(address _logic, bytes memory _data) payable {
_upgradeToAndCall(_logic, _data, false);
}
/**
* @dev Returns the current implementation address.
*/
function _implementation() internal view virtual override returns (address impl) {
return ERC1967Upgrade._getImplementation();
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (proxy/beacon/IBeacon.sol)
pragma solidity ^0.8.0;
/**
* @dev This is the interface that {BeaconProxy} expects of its beacon.
*/
interface IBeaconUpgradeable {
/**
* @dev Must return an address that can be used as a delegate call target.
*
* {BeaconProxy} will check that this address is a contract.
*/
function implementation() external view returns (address);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/StorageSlot.sol)
// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.
pragma solidity ^0.8.0;
/**
* @dev Library for reading and writing primitive types to specific storage slots.
*
* Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.
* This library helps with reading and writing to such slots without the need for inline assembly.
*
* The functions in this library return Slot structs that contain a `value` member that can be used to read or write.
*
* Example usage to set ERC1967 implementation slot:
* ```solidity
* contract ERC1967 {
* bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
*
* function _getImplementation() internal view returns (address) {
* return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;
* }
*
* function _setImplementation(address newImplementation) internal {
* require(Address.isContract(newImplementation), "ERC1967: new implementation is not a contract");
* StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
* }
* }
* ```
*
* _Available since v4.1 for `address`, `bool`, `bytes32`, `uint256`._
* _Available since v4.9 for `string`, `bytes`._
*/
library StorageSlotUpgradeable {
struct AddressSlot {
address value;
}
struct BooleanSlot {
bool value;
}
struct Bytes32Slot {
bytes32 value;
}
struct Uint256Slot {
uint256 value;
}
struct StringSlot {
string value;
}
struct BytesSlot {
bytes value;
}
/**
* @dev Returns an `AddressSlot` with member `value` located at `slot`.
*/
function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := slot
}
}
/**
* @dev Returns an `BooleanSlot` with member `value` located at `slot`.
*/
function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := slot
}
}
/**
* @dev Returns an `Bytes32Slot` with member `value` located at `slot`.
*/
function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := slot
}
}
/**
* @dev Returns an `Uint256Slot` with member `value` located at `slot`.
*/
function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := slot
}
}
/**
* @dev Returns an `StringSlot` with member `value` located at `slot`.
*/
function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := slot
}
}
/**
* @dev Returns an `StringSlot` representation of the string storage pointer `store`.
*/
function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := store.slot
}
}
/**
* @dev Returns an `BytesSlot` with member `value` located at `slot`.
*/
function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := slot
}
}
/**
* @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.
*/
function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := store.slot
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/
interface IERC165Upgradeable {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/IERC1155MetadataURI.sol)
pragma solidity ^0.8.0;
import "../IERC1155Upgradeable.sol";
/**
* @dev Interface of the optional ERC1155MetadataExtension interface, as defined
* in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP].
*
* _Available since v3.1._
*/
interface IERC1155MetadataURIUpgradeable is IERC1155Upgradeable {
/**
* @dev Returns the URI for token type `id`.
*
* If the `\{id\}` substring is present in the URI, it must be replaced by
* clients with the actual token type ID.
*/
function uri(uint256 id) external view returns (string memory);
}// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;
import {IERC165Upgradeable} from "@zoralabs/openzeppelin-contracts-upgradeable/contracts/interfaces/IERC165Upgradeable.sol";
interface ITransferHookReceiver is IERC165Upgradeable {
/// @notice Token transfer batch callback
/// @param target target contract for transfer
/// @param operator operator address for transfer
/// @param from user address for amount transferred
/// @param to user address for amount transferred
/// @param ids list of token ids transferred
/// @param amounts list of values transferred
/// @param data data as perscribed by 1155 standard
function onTokenTransferBatch(
address target,
address operator,
address from,
address to,
uint256[] memory ids,
uint256[] memory amounts,
bytes memory data
) external;
// IERC165 type required
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/
interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (proxy/Proxy.sol)
pragma solidity ^0.8.0;
/**
* @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM
* instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to
* be specified by overriding the virtual {_implementation} function.
*
* Additionally, delegation to the implementation can be triggered manually through the {_fallback} function, or to a
* different contract through the {_delegate} function.
*
* The success and return data of the delegated call will be returned back to the caller of the proxy.
*/
abstract contract Proxy {
/**
* @dev Delegates the current call to `implementation`.
*
* This function does not return to its internal call site, it will return directly to the external caller.
*/
function _delegate(address implementation) internal virtual {
assembly {
// Copy msg.data. We take full control of memory in this inline assembly
// block because it will not return to Solidity code. We overwrite the
// Solidity scratch pad at memory position 0.
calldatacopy(0, 0, calldatasize())
// Call the implementation.
// out and outsize are 0 because we don't know the size yet.
let result := delegatecall(gas(), implementation, 0, calldatasize(), 0, 0)
// Copy the returned data.
returndatacopy(0, 0, returndatasize())
switch result
// delegatecall returns 0 on error.
case 0 {
revert(0, returndatasize())
}
default {
return(0, returndatasize())
}
}
}
/**
* @dev This is a virtual function that should be overridden so it returns the address to which the fallback function
* and {_fallback} should delegate.
*/
function _implementation() internal view virtual returns (address);
/**
* @dev Delegates the current call to the address returned by `_implementation()`.
*
* This function does not return to its internal call site, it will return directly to the external caller.
*/
function _fallback() internal virtual {
_beforeFallback();
_delegate(_implementation());
}
/**
* @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if no other
* function in the contract matches the call data.
*/
fallback() external payable virtual {
_fallback();
}
/**
* @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if call data
* is empty.
*/
receive() external payable virtual {
_fallback();
}
/**
* @dev Hook that is called before falling back to the implementation. Can happen as part of a manual `_fallback`
* call, or as part of the Solidity `fallback` or `receive` functions.
*
* If overridden should call `super._beforeFallback()`.
*/
function _beforeFallback() internal virtual {}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (proxy/ERC1967/ERC1967Upgrade.sol)
pragma solidity ^0.8.2;
import "../beacon/IBeacon.sol";
import "../../interfaces/IERC1967.sol";
import "../../interfaces/draft-IERC1822.sol";
import "../../utils/Address.sol";
import "../../utils/StorageSlot.sol";
/**
* @dev This abstract contract provides getters and event emitting update functions for
* https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots.
*
* _Available since v4.1._
*/
abstract contract ERC1967Upgrade is IERC1967 {
// This is the keccak-256 hash of "eip1967.proxy.rollback" subtracted by 1
bytes32 private constant _ROLLBACK_SLOT = 0x4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143;
/**
* @dev Storage slot with the address of the current implementation.
* This is the keccak-256 hash of "eip1967.proxy.implementation" subtracted by 1, and is
* validated in the constructor.
*/
bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
/**
* @dev Returns the current implementation address.
*/
function _getImplementation() internal view returns (address) {
return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;
}
/**
* @dev Stores a new address in the EIP1967 implementation slot.
*/
function _setImplementation(address newImplementation) private {
require(Address.isContract(newImplementation), "ERC1967: new implementation is not a contract");
StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
}
/**
* @dev Perform implementation upgrade
*
* Emits an {Upgraded} event.
*/
function _upgradeTo(address newImplementation) internal {
_setImplementation(newImplementation);
emit Upgraded(newImplementation);
}
/**
* @dev Perform implementation upgrade with additional setup call.
*
* Emits an {Upgraded} event.
*/
function _upgradeToAndCall(address newImplementation, bytes memory data, bool forceCall) internal {
_upgradeTo(newImplementation);
if (data.length > 0 || forceCall) {
Address.functionDelegateCall(newImplementation, data);
}
}
/**
* @dev Perform implementation upgrade with security checks for UUPS proxies, and additional setup call.
*
* Emits an {Upgraded} event.
*/
function _upgradeToAndCallUUPS(address newImplementation, bytes memory data, bool forceCall) internal {
// Upgrades from old implementations will perform a rollback test. This test requires the new
// implementation to upgrade back to the old, non-ERC1822 compliant, implementation. Removing
// this special case will break upgrade paths from old UUPS implementation to new ones.
if (StorageSlot.getBooleanSlot(_ROLLBACK_SLOT).value) {
_setImplementation(newImplementation);
} else {
try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {
require(slot == _IMPLEMENTATION_SLOT, "ERC1967Upgrade: unsupported proxiableUUID");
} catch {
revert("ERC1967Upgrade: new implementation is not UUPS");
}
_upgradeToAndCall(newImplementation, data, forceCall);
}
}
/**
* @dev Storage slot with the admin of the contract.
* This is the keccak-256 hash of "eip1967.proxy.admin" subtracted by 1, and is
* validated in the constructor.
*/
bytes32 internal constant _ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;
/**
* @dev Returns the current admin.
*/
function _getAdmin() internal view returns (address) {
return StorageSlot.getAddressSlot(_ADMIN_SLOT).value;
}
/**
* @dev Stores a new address in the EIP1967 admin slot.
*/
function _setAdmin(address newAdmin) private {
require(newAdmin != address(0), "ERC1967: new admin is the zero address");
StorageSlot.getAddressSlot(_ADMIN_SLOT).value = newAdmin;
}
/**
* @dev Changes the admin of the proxy.
*
* Emits an {AdminChanged} event.
*/
function _changeAdmin(address newAdmin) internal {
emit AdminChanged(_getAdmin(), newAdmin);
_setAdmin(newAdmin);
}
/**
* @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.
* This is bytes32(uint256(keccak256('eip1967.proxy.beacon')) - 1)) and is validated in the constructor.
*/
bytes32 internal constant _BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;
/**
* @dev Returns the current beacon.
*/
function _getBeacon() internal view returns (address) {
return StorageSlot.getAddressSlot(_BEACON_SLOT).value;
}
/**
* @dev Stores a new beacon in the EIP1967 beacon slot.
*/
function _setBeacon(address newBeacon) private {
require(Address.isContract(newBeacon), "ERC1967: new beacon is not a contract");
require(
Address.isContract(IBeacon(newBeacon).implementation()),
"ERC1967: beacon implementation is not a contract"
);
StorageSlot.getAddressSlot(_BEACON_SLOT).value = newBeacon;
}
/**
* @dev Perform beacon upgrade with additional setup call. Note: This upgrades the address of the beacon, it does
* not upgrade the implementation contained in the beacon (see {UpgradeableBeacon-_setImplementation} for that).
*
* Emits a {BeaconUpgraded} event.
*/
function _upgradeBeaconToAndCall(address newBeacon, bytes memory data, bool forceCall) internal {
_setBeacon(newBeacon);
emit BeaconUpgraded(newBeacon);
if (data.length > 0 || forceCall) {
Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC1155/IERC1155.sol)
pragma solidity ^0.8.0;
import "../../utils/introspection/IERC165Upgradeable.sol";
/**
* @dev Required interface of an ERC1155 compliant contract, as defined in the
* https://eips.ethereum.org/EIPS/eip-1155[EIP].
*
* _Available since v3.1._
*/
interface IERC1155Upgradeable is IERC165Upgradeable {
/**
* @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.
*/
event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);
/**
* @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all
* transfers.
*/
event TransferBatch(
address indexed operator,
address indexed from,
address indexed to,
uint256[] ids,
uint256[] values
);
/**
* @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to
* `approved`.
*/
event ApprovalForAll(address indexed account, address indexed operator, bool approved);
/**
* @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.
*
* If an {URI} event was emitted for `id`, the standard
* https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value
* returned by {IERC1155MetadataURI-uri}.
*/
event URI(string value, uint256 indexed id);
/**
* @dev Returns the amount of tokens of token type `id` owned by `account`.
*
* Requirements:
*
* - `account` cannot be the zero address.
*/
function balanceOf(address account, uint256 id) external view returns (uint256);
/**
* @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.
*
* Requirements:
*
* - `accounts` and `ids` must have the same length.
*/
function balanceOfBatch(
address[] calldata accounts,
uint256[] calldata ids
) external view returns (uint256[] memory);
/**
* @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,
*
* Emits an {ApprovalForAll} event.
*
* Requirements:
*
* - `operator` cannot be the caller.
*/
function setApprovalForAll(address operator, bool approved) external;
/**
* @dev Returns true if `operator` is approved to transfer ``account``'s tokens.
*
* See {setApprovalForAll}.
*/
function isApprovedForAll(address account, address operator) external view returns (bool);
/**
* @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
*
* Emits a {TransferSingle} event.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - If the caller is not `from`, it must have been approved to spend ``from``'s tokens via {setApprovalForAll}.
* - `from` must have a balance of tokens of type `id` of at least `amount`.
* - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
* acceptance magic value.
*/
function safeTransferFrom(address from, address to, uint256 id, uint256 amount, bytes calldata data) external;
/**
* @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.
*
* Emits a {TransferBatch} event.
*
* Requirements:
*
* - `ids` and `amounts` must have the same length.
* - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
* acceptance magic value.
*/
function safeBatchTransferFrom(
address from,
address to,
uint256[] calldata ids,
uint256[] calldata amounts,
bytes calldata data
) external;
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (proxy/beacon/IBeacon.sol)
pragma solidity ^0.8.0;
/**
* @dev This is the interface that {BeaconProxy} expects of its beacon.
*/
interface IBeacon {
/**
* @dev Must return an address that can be used as a delegate call target.
*
* {BeaconProxy} will check that this address is a contract.
*/
function implementation() external view returns (address);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (interfaces/IERC1967.sol)
pragma solidity ^0.8.0;
/**
* @dev ERC-1967: Proxy Storage Slots. This interface contains the events defined in the ERC.
*
* _Available since v4.8.3._
*/
interface IERC1967 {
/**
* @dev Emitted when the implementation is upgraded.
*/
event Upgraded(address indexed implementation);
/**
* @dev Emitted when the admin account has changed.
*/
event AdminChanged(address previousAdmin, address newAdmin);
/**
* @dev Emitted when the beacon is changed.
*/
event BeaconUpgraded(address indexed beacon);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (interfaces/draft-IERC1822.sol)
pragma solidity ^0.8.0;
/**
* @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified
* proxy whose upgrades are fully controlled by the current implementation.
*/
interface IERC1822Proxiable {
/**
* @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation
* address.
*
* IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks
* bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this
* function revert if invoked through a proxy.
*/
function proxiableUUID() external view returns (bytes32);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)
pragma solidity ^0.8.1;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
*
* Furthermore, `isContract` will also return true if the target contract within
* the same transaction is already scheduled for destruction by `SELFDESTRUCT`,
* which only has an effect at the end of a transaction.
* ====
*
* [IMPORTANT]
* ====
* You shouldn't rely on `isContract` to protect against flash loan attacks!
*
* Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
* like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
* constructor.
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize/address.code.length, which returns 0
// for contracts in construction, since the code is only stored at the end
// of the constructor execution.
return account.code.length > 0;
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
(bool success, ) = recipient.call{value: amount}("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value,
string memory errorMessage
) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResultFromTarget(target, success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(
address target,
bytes memory data,
string memory errorMessage
) internal view returns (bytes memory) {
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResultFromTarget(target, success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResultFromTarget(target, success, returndata, errorMessage);
}
/**
* @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
* the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
*
* _Available since v4.8._
*/
function verifyCallResultFromTarget(
address target,
bool success,
bytes memory returndata,
string memory errorMessage
) internal view returns (bytes memory) {
if (success) {
if (returndata.length == 0) {
// only check isContract if the call was successful and the return data is empty
// otherwise we already know that it was a contract
require(isContract(target), "Address: call to non-contract");
}
return returndata;
} else {
_revert(returndata, errorMessage);
}
}
/**
* @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason or using the provided one.
*
* _Available since v4.3._
*/
function verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) internal pure returns (bytes memory) {
if (success) {
return returndata;
} else {
_revert(returndata, errorMessage);
}
}
function _revert(bytes memory returndata, string memory errorMessage) private pure {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
/// @solidity memory-safe-assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/StorageSlot.sol)
// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.
pragma solidity ^0.8.0;
/**
* @dev Library for reading and writing primitive types to specific storage slots.
*
* Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.
* This library helps with reading and writing to such slots without the need for inline assembly.
*
* The functions in this library return Slot structs that contain a `value` member that can be used to read or write.
*
* Example usage to set ERC1967 implementation slot:
* ```solidity
* contract ERC1967 {
* bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
*
* function _getImplementation() internal view returns (address) {
* return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;
* }
*
* function _setImplementation(address newImplementation) internal {
* require(Address.isContract(newImplementation), "ERC1967: new implementation is not a contract");
* StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
* }
* }
* ```
*
* _Available since v4.1 for `address`, `bool`, `bytes32`, `uint256`._
* _Available since v4.9 for `string`, `bytes`._
*/
library StorageSlot {
struct AddressSlot {
address value;
}
struct BooleanSlot {
bool value;
}
struct Bytes32Slot {
bytes32 value;
}
struct Uint256Slot {
uint256 value;
}
struct StringSlot {
string value;
}
struct BytesSlot {
bytes value;
}
/**
* @dev Returns an `AddressSlot` with member `value` located at `slot`.
*/
function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := slot
}
}
/**
* @dev Returns an `BooleanSlot` with member `value` located at `slot`.
*/
function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := slot
}
}
/**
* @dev Returns an `Bytes32Slot` with member `value` located at `slot`.
*/
function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := slot
}
}
/**
* @dev Returns an `Uint256Slot` with member `value` located at `slot`.
*/
function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := slot
}
}
/**
* @dev Returns an `StringSlot` with member `value` located at `slot`.
*/
function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := slot
}
}
/**
* @dev Returns an `StringSlot` representation of the string storage pointer `store`.
*/
function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := store.slot
}
}
/**
* @dev Returns an `BytesSlot` with member `value` located at `slot`.
*/
function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := slot
}
}
/**
* @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.
*/
function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := store.slot
}
}
}{
"remappings": [
"ds-test/=node_modules/ds-test/src/",
"forge-std/=node_modules/forge-std/src/",
"@zoralabs/openzeppelin-contracts-upgradeable/=node_modules/@zoralabs/openzeppelin-contracts-upgradeable/",
"@zoralabs/protocol-rewards/src/=node_modules/@zoralabs/protocol-rewards/src/",
"@openzeppelin/contracts/=node_modules/@openzeppelin/contracts/",
"_imagine/=_imagine/",
"mint/=_imagine/mint/"
],
"optimizer": {
"enabled": true,
"runs": 3000
},
"metadata": {
"useLiteralContent": false,
"bytecodeHash": "ipfs"
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"abi"
]
}
},
"evmVersion": "london",
"viaIR": true,
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"contract IZoraCreator1155","name":"_implementation","type":"address"},{"internalType":"contract IMinter1155","name":"_merkleMinter","type":"address"},{"internalType":"contract IMinter1155","name":"_fixedPriceMinter","type":"address"},{"internalType":"contract IMinter1155","name":"_redeemMinterFactory","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ADDRESS_DELEGATECALL_TO_NON_CONTRACT","type":"error"},{"inputs":[],"name":"ADDRESS_LOW_LEVEL_CALL_FAILED","type":"error"},{"inputs":[],"name":"Constructor_ImplCannotBeZero","type":"error"},{"inputs":[],"name":"ERC1967_NEW_IMPL_NOT_CONTRACT","type":"error"},{"inputs":[],"name":"ERC1967_NEW_IMPL_NOT_UUPS","type":"error"},{"inputs":[],"name":"ERC1967_UNSUPPORTED_PROXIABLEUUID","type":"error"},{"inputs":[],"name":"FUNCTION_MUST_BE_CALLED_THROUGH_ACTIVE_PROXY","type":"error"},{"inputs":[],"name":"FUNCTION_MUST_BE_CALLED_THROUGH_DELEGATECALL","type":"error"},{"inputs":[],"name":"INITIALIZABLE_CONTRACT_ALREADY_INITIALIZED","type":"error"},{"inputs":[],"name":"INITIALIZABLE_CONTRACT_IS_NOT_INITIALIZING","type":"error"},{"inputs":[],"name":"ONLY_OWNER","type":"error"},{"inputs":[],"name":"ONLY_PENDING_OWNER","type":"error"},{"inputs":[],"name":"OWNER_CANNOT_BE_ZERO_ADDRESS","type":"error"},{"inputs":[],"name":"UUPS_UPGRADEABLE_MUST_NOT_BE_CALLED_THROUGH_DELEGATECALL","type":"error"},{"inputs":[{"internalType":"string","name":"expected","type":"string"},{"internalType":"string","name":"actual","type":"string"}],"name":"UpgradeToMismatchedContractName","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"previousAdmin","type":"address"},{"indexed":false,"internalType":"address","name":"newAdmin","type":"address"}],"name":"AdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"beacon","type":"address"}],"name":"BeaconUpgraded","type":"event"},{"anonymous":false,"inputs":[],"name":"FactorySetup","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"canceledOwner","type":"address"}],"name":"OwnerCanceled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"pendingOwner","type":"address"}],"name":"OwnerPending","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"prevOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnerUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newContract","type":"address"},{"indexed":true,"internalType":"address","name":"creator","type":"address"},{"indexed":true,"internalType":"address","name":"defaultAdmin","type":"address"},{"indexed":false,"internalType":"string","name":"contractURI","type":"string"},{"indexed":false,"internalType":"string","name":"name","type":"string"},{"components":[{"internalType":"uint32","name":"royaltyMintSchedule","type":"uint32"},{"internalType":"uint32","name":"royaltyBPS","type":"uint32"},{"internalType":"address","name":"royaltyRecipient","type":"address"}],"indexed":false,"internalType":"struct ICreatorRoyaltiesControl.RoyaltyConfiguration","name":"defaultRoyaltyConfiguration","type":"tuple"}],"name":"SetupNewContract","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"baseImpl","type":"address"},{"indexed":true,"internalType":"address","name":"upgradeImpl","type":"address"}],"name":"UpgradeRegistered","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"baseImpl","type":"address"},{"indexed":true,"internalType":"address","name":"upgradeImpl","type":"address"}],"name":"UpgradeRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"inputs":[],"name":"acceptOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"cancelOwnershipTransfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractName","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"contractVersion","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"string","name":"newContractURI","type":"string"},{"internalType":"string","name":"name","type":"string"},{"components":[{"internalType":"uint32","name":"royaltyMintSchedule","type":"uint32"},{"internalType":"uint32","name":"royaltyBPS","type":"uint32"},{"internalType":"address","name":"royaltyRecipient","type":"address"}],"internalType":"struct ICreatorRoyaltiesControl.RoyaltyConfiguration","name":"defaultRoyaltyConfiguration","type":"tuple"},{"internalType":"address payable","name":"defaultAdmin","type":"address"},{"internalType":"bytes[]","name":"setupActions","type":"bytes[]"}],"name":"createContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"defaultMinters","outputs":[{"internalType":"contract IMinter1155[]","name":"minters","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fixedPriceMinter","outputs":[{"internalType":"contract IMinter1155","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"implementation","outputs":[{"internalType":"contract IZoraCreator1155","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_initialOwner","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"isAllowedUpgrade","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"baseImpl","type":"address"},{"internalType":"address","name":"upgradeImpl","type":"address"}],"name":"isRegisteredUpgradePath","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleMinter","outputs":[{"internalType":"contract IMinter1155","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"proxiableUUID","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"redeemMinterFactory","outputs":[{"internalType":"contract IMinter1155","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"baseImpls","type":"address[]"},{"internalType":"address","name":"upgradeImpl","type":"address"}],"name":"registerUpgradePath","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"baseImpl","type":"address"},{"internalType":"address","name":"upgradeImpl","type":"address"}],"name":"removeUpgradePath","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"resignOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newOwner","type":"address"}],"name":"safeTransferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"upgradeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"upgradeToAndCall","outputs":[],"stateMutability":"payable","type":"function"}]Contract Creation Code
61012034620001d457601f6200225338819003918201601f1916830191906001600160401b03831184841017620001d9578160809285926040958652833981010312620001d45781516001600160a01b03811692838203620001d4576200006960208201620001ef565b6200008460606200007c868501620001ef565b9301620001ef565b94306080526034549360ff8560081c16159485801590620001c7575b80620001ad575b6200019c5760ff1981166001176034558562000189575b5060a05215620001785760c05260e0526101009283526200013d575b5161204e9182620002058339608051828181610b0101528181610bd5015261112d015260a051828181610ac00152611675015260c05182818161069001526109d4015260e05182818161092901526109a10152518181816104010152610a0b0152f35b61ff0019603454166034557f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024986020825160018152a1620000da565b835163e3e8010d60e01b8152600490fd5b61ffff19166101011760345538620000be565b8651633d5c224160e11b8152600490fd5b50303b151580620000a75750600160ff82161415620000a7565b5060ff81161515620000a0565b600080fd5b634e487b7160e01b600052604160045260246000fd5b51906001600160a01b0382168203620001d45756fe608060405260043610156200001357600080fd5b60003560e01c80630582823a14620014c757806321f74347146200102257806323452b9c14620014555780633659cfe61462001100578063395db2cd146200107f5780634dc5b7c714620010225780634f1ef2861462000b7c57806352d1902d1462000ae45780635c60da1b1462000a9e578063695b0d26146200094d57806370369613146200090757806375d0c0dc14620008a357806379ba5097146200081c5780638da5cb5b14620007f357806392b60a4c14620006b4578063961bbb7b146200066e578063a0a8e460146200060a578063c4d66de81462000425578063e1e78e5e14620003df578063e30c397814620003b6578063e8a3d48514620002e7578063ed0c70911462000268578063f0fad99114620001dc5763f2fde38b146200013d57600080fd5b34620001d7576020600319360112620001d7576200015a620019cc565b6001600160a01b0380821615620001ad576000541633036200018357620001819062001ba6565b005b60046040517fd238ed59000000000000000000000000000000000000000000000000000000008152fd5b60046040517f2c4ec43e000000000000000000000000000000000000000000000000000000008152fd5b600080fd5b34620001d7576040600319360112620001d757620001f9620019cc565b62000203620019e3565b906001600160a01b0390816000541633036200018357811690816000526035602052604060002092169182600052602052604060002060ff1981541690557f0ebd98f6f75e38ba2f0751378f5c86205cafca83e206cb62795f45fcea728333600080a3005b34620001d7576000600319360112620001d7576000546001600160a01b0380821680330362000183576000907f8292fce18fa69edf4db7b94ea2e58241df0ae57f97e0a6c9b29067028bf92d768280a373ffffffffffffffffffffffffffffffffffffffff19809216600055600154908116620002e157005b16600155005b34620001d7576000600319360112620001d757604051606081019080821067ffffffffffffffff83111762000387576200038391604052602f81527f68747470733a2f2f6769746875622e636f6d2f6f75727a6f72612f7a6f72612d60208201527f313135352d636f6e7472616374732f0000000000000000000000000000000000604082015260405191829160208352602083019062001a1f565b0390f35b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b34620001d7576000600319360112620001d75760206001600160a01b0360015416604051908152f35b34620001d7576000600319360112620001d75760206040516001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168152f35b34620001d7576020600319360112620001d75762000442620019cc565b60345460ff8160081c16159182801590620005fd575b80620005e3575b620005b9578183600160ff196001600160a01b0395161760345562000589575b50168015620001ad576034549060ff8260081c16156200055f578073ffffffffffffffffffffffffffffffffffffffff19600054161760005560007f8292fce18fa69edf4db7b94ea2e58241df0ae57f97e0a6c9b29067028bf92d768180a3604051917f6a656eb613551e803db1baa3e77facd3bc45e8256f27f4cf09a50cf63b88a933600080a16200050e57005b7f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498917fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff6020921660345560018152a1005b60046040517f96bfb100000000000000000000000000000000000000000000000000000000008152fd5b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00001661010117603455836200047f565b60046040517f7ab84482000000000000000000000000000000000000000000000000000000008152fd5b50303b1515806200045f5750600160ff831614156200045f565b5060ff8216151562000458565b34620001d7576000600319360112620001d757620003836040516200062f8162001932565b600581527f312e342e30000000000000000000000000000000000000000000000000000000602082015260405191829160208352602083019062001a1f565b34620001d7576000600319360112620001d75760206040516001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168152f35b34620001d7576040600319360112620001d75767ffffffffffffffff600435818111620001d75736602382011215620001d757806004013591821162000387578160051b90604051916020936200070e858301856200194f565b835260248484019183010191368311620001d757602401905b828210620007d2575050506200073c620019e3565b906001600160a01b03806000541633036200018357909181169060005b835181101562000181578082620007736001938762001b04565b511660005260358652604060002084600052865260406000208260ff198254161790558383620007a4838862001b04565b51167fab6a7dc54721d6a1a284ca865830f8981d6f12fbddb3618d1774b71c00368059600080a30162000759565b81356001600160a01b0381168103620001d757815290840190840162000727565b34620001d7576000600319360112620001d75760206001600160a01b0360005416604051908152f35b34620001d7576000600319360112620001d7576001600160a01b038060015416330362000879573390600054167f8292fce18fa69edf4db7b94ea2e58241df0ae57f97e0a6c9b29067028bf92d76600080a3620001813362001ba6565b60046040517f065cd531000000000000000000000000000000000000000000000000000000008152fd5b34620001d7576000600319360112620001d75762000383604051620008c88162001932565b601a81527f5a4f5241203131353520436f6e747261637420466163746f7279000000000000602082015260405191829160208352602083019062001a1f565b34620001d7576000600319360112620001d75760206040516001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168152f35b34620001d7576000600319360112620001d7576040516080810181811067ffffffffffffffff821117620003875760405260038152602090818101606036823781511562000a6f576001600160a01b0391827f000000000000000000000000000000000000000000000000000000000000000016825280519360019485101562000a6f57837f000000000000000000000000000000000000000000000000000000000000000016604083015281516002101562000a6f5791928491817f00000000000000000000000000000000000000000000000000000000000000001660608201526040519380850191818652518092526040850195926000905b83821062000a575786880387f35b84518116885296820196938201939085019062000a49565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b34620001d7576000600319360112620001d75760206040516001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168152f35b34620001d7576000600319360112620001d7576001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016300362000b525760206040517f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc8152f35b60046040517f5e4c25f1000000000000000000000000000000000000000000000000000000008152fd5b600319604081360112620001d75762000b94620019cc565b60243567ffffffffffffffff8111620001d75736602382011215620001d75762000bc990369060248160040135910162001990565b916001600160a01b03807f0000000000000000000000000000000000000000000000000000000000000000169081301462000ff8577f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc91818354160362000fce57806000541633036200018357831690604051927f75d0c0dc0000000000000000000000000000000000000000000000000000000080855260008560048183885af194851562000f575760009562000fad575b50604051818152600081600481305afa90811562000f575760009162000f8e575b508551602080970120908681519101200362000e8e5750507f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff161562000cef5750505062000181915062001a46565b6040939293517f52d1902d0000000000000000000000000000000000000000000000000000000081528481600481865afa6000918162000e59575b5062000d5a5760046040517fe5ec1769000000000000000000000000000000000000000000000000000000008152fd5b0362000e2f5762000d6b8262001a46565b604051907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b600080a283511580159062000e26575b62000da757005b813b1562000dfe57506000838192846200018196519201905af43d1562000df4573d62000dd48162001973565b9062000de460405192836200194f565b8152600081933d92013e62001ac1565b6060915062001ac1565b807f369891e70000000000000000000000000000000000000000000000000000000060049252fd5b50600162000da0565b60046040517f8373ebf0000000000000000000000000000000000000000000000000000000008152fd5b9091508581813d831162000e86575b62000e7481836200194f565b81010312620001d75751908762000d2a565b503d62000e68565b8360405191808352600083600481305afa92831562000f575760009362000f63575b5060009160048392604051948593849283525af192831562000f575762000f1b9362000f2b9260009162000f2f575b506040519485947fa23cbf7b00000000000000000000000000000000000000000000000000000000865260406004870152604486019062001a1f565b9184830301602485015262001a1f565b0390fd5b62000f5091503d806000833e62000f4781836200194f565b81019062001b3a565b8562000edf565b6040513d6000823e3d90fd5b600092908392945062000f836004913d8086833e62000f4781836200194f565b949250509162000eb0565b62000fa691503d806000833e62000f4781836200194f565b8862000c9d565b62000fc69195503d806000833e62000f4781836200194f565b938762000c7c565b60046040517f64cd8d19000000000000000000000000000000000000000000000000000000008152fd5b60046040517f1932df45000000000000000000000000000000000000000000000000000000008152fd5b34620001d7576040600319360112620001d7576200103f620019cc565b62001049620019e3565b906001600160a01b03809116600052603560205260406000209116600052602052602060ff604060002054166040519015158152f35b34620001d7576020600319360112620001d7576001600160a01b0380620010a5620019cc565b16908115620001ad576000541680330362000183578173ffffffffffffffffffffffffffffffffffffffff1960015416176001557f4f2638f5949b9614ef8d5e268cb51348ad7f434a34812bf64b6e95014fbd357e600080a3005b34620001d7576020600319908082360112620001d75762001120620019cc565b916001600160a01b0390817f0000000000000000000000000000000000000000000000000000000000000000169182301462000ff8577f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc92818454160362000fce578060005416330362000183578416906040517f75d0c0dc000000000000000000000000000000000000000000000000000000009081815260008160048183885af190811562000f575760009162001436575b5060405190828252600082600481305afa91821562000f575760009262001415575b5086815191012090868151910120036200138a575050604051908382019282841067ffffffffffffffff8511176200038757836040526000835260ff7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd914354166000146200126d575050505050620001819062001a46565b6040517f52d1902d0000000000000000000000000000000000000000000000000000000081528581600481865afa6000918162001355575b50620012d55760046040517fe5ec1769000000000000000000000000000000000000000000000000000000008152fd5b0362000e2f57620012e68562001a46565b604051907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b600080a28151158015906200134c575b6200132257005b843b1562000dfe57506200018193600092839251915af43d1562000df4573d62000dd48162001973565b5060006200131b565b9091508681813d831162001382575b6200137081836200194f565b81010312620001d757519088620012a5565b503d62001364565b8260405191808352600083600481305afa92831562000f575760009362000f63575060009160048392604051948593849283525af192831562000f575762000f1b9362000f2b9260009162000f2f57506040519485947fa23cbf7b00000000000000000000000000000000000000000000000000000000865260406004870152604486019062001a1f565b6200142e9192503d806000833e62000f4781836200194f565b9088620011f6565b6200144e91503d806000833e62000f4781836200194f565b87620011d4565b34620001d7576000600319360112620001d7576001600160a01b03806000541690813303620001835773ffffffffffffffffffffffffffffffffffffffff1991600154918216907f682679deecef4dcd49674845cc1e3a075fea9073680aa445a8207d5a4bdea3da600080a316600155005b34620001d75760e0600319360112620001d75760043567ffffffffffffffff8111620001d75736602382011215620001d7576200150f90369060248160040135910162001990565b67ffffffffffffffff60243511620001d757366023602435011215620001d75767ffffffffffffffff6024356004013511620001d7573660248035600401358135010111620001d75760607fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffbc360112620001d7576040516060810181811067ffffffffffffffff821117620003875760405263ffffffff6044358181168103620001d75782526064359081168103620001d75760208201526084356001600160a01b0381168103620001d757604082015260a435906001600160a01b0382168203620001d75767ffffffffffffffff60c43511620001d75736602360c435011215620001d75767ffffffffffffffff60c4356004013511620001d75736602460c4356004013560051b60c435010111620001d7576040518061040881011067ffffffffffffffff61040883011117620003875761040862001c1182396001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001661040882015260208161040881010301906000f091821562000f575760405160a08152620016e5620016cb60a083018762001a1f565b828103602084015260243560040135602480350162001b19565b906200171960408201856001600160a01b036040809263ffffffff8082511686526020820151166020860152015116910152565b6001600160a01b038316917fa45800684f65ae010ceb4385eceaed88dec7f6a6bcbe11f7ffd8bd24dd2653f43392806001600160a01b038916930390a46001600160a01b0383163b15620001d7576001600160a01b039062001803620017d3604051967f8a08eb4c00000000000000000000000000000000000000000000000000000000885260e06004890152620017c060e4890160243560040135602480350162001b19565b906003198983030160248a015262001a1f565b845163ffffffff908116604489015260208601511660648801526040909401516001600160a01b03166084870152565b1660a48401526003198382030160c484015260c435600401358152826020820191602060c4356004013560051b82010192602460c435019160005b60c435600401358110620018a05750505050806000920381836001600160a01b0386165af1801562000f575762001884575b6020906001600160a01b0360405191168152f35b67ffffffffffffffff8211620003875760209160405262001870565b9193509193601f1983820301845284357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffbd60c435360301811215620001d75760c4350167ffffffffffffffff602482013511620001d757602481013536036044820113620001d757602062001922600193836044602485960135910162001b19565b960194019101918693926200183e565b6040810190811067ffffffffffffffff8211176200038757604052565b90601f601f19910116810190811067ffffffffffffffff8211176200038757604052565b67ffffffffffffffff81116200038757601f01601f191660200190565b9291926200199e8262001973565b91620019ae60405193846200194f565b829481845281830111620001d7578281602093846000960137010152565b600435906001600160a01b0382168203620001d757565b602435906001600160a01b0382168203620001d757565b60005b83811062001a0e5750506000910152565b8181015183820152602001620019fd565b90601f19601f60209362001a3f81518092818752878088019101620019fa565b0116010190565b803b1562001a97576001600160a01b037f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc911673ffffffffffffffffffffffffffffffffffffffff19825416179055565b60046040517f529880eb000000000000000000000000000000000000000000000000000000008152fd5b1562001aca5790565b80511562001ada57805190602001fd5b60046040517fa1451936000000000000000000000000000000000000000000000000000000008152fd5b805182101562000a6f5760209160051b010190565b601f8260209493601f19938186528686013760008582860101520116010190565b602081830312620001d75780519067ffffffffffffffff8211620001d7570181601f82011215620001d757805162001b728162001973565b9262001b8260405194856200194f565b81845260208284010111620001d75762001ba39160208085019101620019fa565b90565b600054906001600160a01b03809116808284167f8292fce18fa69edf4db7b94ea2e58241df0ae57f97e0a6c9b29067028bf92d76600080a373ffffffffffffffffffffffffffffffffffffffff198093161760005560015490811662001c0a575050565b1660015556fe604060808152346102225761040890813803918261001c81610227565b938492833960209384918101031261022257516001600160a01b03811692838203610222578251916001600160401b03908284018281118582101761020c57808652600096878652823b156101b2577f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b031916821790557fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b8880a28451158015906101ab575b6100dd575b855160e790816103218239f35b8551946060860186811085821117610197578752602786527f416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c85870152660819985a5b195960ca1b86880152518791829190845af4913d15610186573d90811161017257610166959661015885601f19601f85011601610227565b91825281943d92013e61024c565b508038808080806100d0565b634e487b7160e01b87526041600452602487fd5b50915061016693945060609161024c565b634e487b7160e01b89526041600452602489fd5b50866100cb565b865162461bcd60e51b815260048101869052602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b6064820152608490fd5b634e487b7160e01b600052604160045260246000fd5b600080fd5b6040519190601f01601f191682016001600160401b0381118382101761020c57604052565b919290156102ae5750815115610260575090565b3b156102695790565b60405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606490fd5b8251909150156102c15750805190602001fd5b6040519062461bcd60e51b82528160208060048301528251908160248401526000935b828510610307575050604492506000838284010152601f80199101168101030190fd5b84810182015186860160440152938101938593506102e456fe60806040523615605f5773ffffffffffffffffffffffffffffffffffffffff7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc54166000808092368280378136915af43d82803e15605b573d90f35b3d90fd5b73ffffffffffffffffffffffffffffffffffffffff7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc54166000808092368280378136915af43d82803e15605b573d90f3fea2646970667358221220ee8bea1f1f2d21d846263e02f3dc7b1e4cf6b04f2a13eebeb37e247f474aeacf64736f6c63430008110033a2646970667358221220b794fda55d56a8f9d073f41ac177c424f964e8b7c152e6112b04ebcd7c60592364736f6c63430008110033000000000000000000000000cbb779fa752432f6308efc87198528eb8c7e721e000000000000000000000000b2af1aac51fa535a707ad8461a02bbe84cd05aa60000000000000000000000005f62728a88acfd29caa9db0d495863a76875adac00000000000000000000000042822840755d2681bad85f90e457f9c513935729
Deployed Bytecode
0x608060405260043610156200001357600080fd5b60003560e01c80630582823a14620014c757806321f74347146200102257806323452b9c14620014555780633659cfe61462001100578063395db2cd146200107f5780634dc5b7c714620010225780634f1ef2861462000b7c57806352d1902d1462000ae45780635c60da1b1462000a9e578063695b0d26146200094d57806370369613146200090757806375d0c0dc14620008a357806379ba5097146200081c5780638da5cb5b14620007f357806392b60a4c14620006b4578063961bbb7b146200066e578063a0a8e460146200060a578063c4d66de81462000425578063e1e78e5e14620003df578063e30c397814620003b6578063e8a3d48514620002e7578063ed0c70911462000268578063f0fad99114620001dc5763f2fde38b146200013d57600080fd5b34620001d7576020600319360112620001d7576200015a620019cc565b6001600160a01b0380821615620001ad576000541633036200018357620001819062001ba6565b005b60046040517fd238ed59000000000000000000000000000000000000000000000000000000008152fd5b60046040517f2c4ec43e000000000000000000000000000000000000000000000000000000008152fd5b600080fd5b34620001d7576040600319360112620001d757620001f9620019cc565b62000203620019e3565b906001600160a01b0390816000541633036200018357811690816000526035602052604060002092169182600052602052604060002060ff1981541690557f0ebd98f6f75e38ba2f0751378f5c86205cafca83e206cb62795f45fcea728333600080a3005b34620001d7576000600319360112620001d7576000546001600160a01b0380821680330362000183576000907f8292fce18fa69edf4db7b94ea2e58241df0ae57f97e0a6c9b29067028bf92d768280a373ffffffffffffffffffffffffffffffffffffffff19809216600055600154908116620002e157005b16600155005b34620001d7576000600319360112620001d757604051606081019080821067ffffffffffffffff83111762000387576200038391604052602f81527f68747470733a2f2f6769746875622e636f6d2f6f75727a6f72612f7a6f72612d60208201527f313135352d636f6e7472616374732f0000000000000000000000000000000000604082015260405191829160208352602083019062001a1f565b0390f35b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b34620001d7576000600319360112620001d75760206001600160a01b0360015416604051908152f35b34620001d7576000600319360112620001d75760206040516001600160a01b037f00000000000000000000000042822840755d2681bad85f90e457f9c513935729168152f35b34620001d7576020600319360112620001d75762000442620019cc565b60345460ff8160081c16159182801590620005fd575b80620005e3575b620005b9578183600160ff196001600160a01b0395161760345562000589575b50168015620001ad576034549060ff8260081c16156200055f578073ffffffffffffffffffffffffffffffffffffffff19600054161760005560007f8292fce18fa69edf4db7b94ea2e58241df0ae57f97e0a6c9b29067028bf92d768180a3604051917f6a656eb613551e803db1baa3e77facd3bc45e8256f27f4cf09a50cf63b88a933600080a16200050e57005b7f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498917fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff6020921660345560018152a1005b60046040517f96bfb100000000000000000000000000000000000000000000000000000000008152fd5b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00001661010117603455836200047f565b60046040517f7ab84482000000000000000000000000000000000000000000000000000000008152fd5b50303b1515806200045f5750600160ff831614156200045f565b5060ff8216151562000458565b34620001d7576000600319360112620001d757620003836040516200062f8162001932565b600581527f312e342e30000000000000000000000000000000000000000000000000000000602082015260405191829160208352602083019062001a1f565b34620001d7576000600319360112620001d75760206040516001600160a01b037f000000000000000000000000b2af1aac51fa535a707ad8461a02bbe84cd05aa6168152f35b34620001d7576040600319360112620001d75767ffffffffffffffff600435818111620001d75736602382011215620001d757806004013591821162000387578160051b90604051916020936200070e858301856200194f565b835260248484019183010191368311620001d757602401905b828210620007d2575050506200073c620019e3565b906001600160a01b03806000541633036200018357909181169060005b835181101562000181578082620007736001938762001b04565b511660005260358652604060002084600052865260406000208260ff198254161790558383620007a4838862001b04565b51167fab6a7dc54721d6a1a284ca865830f8981d6f12fbddb3618d1774b71c00368059600080a30162000759565b81356001600160a01b0381168103620001d757815290840190840162000727565b34620001d7576000600319360112620001d75760206001600160a01b0360005416604051908152f35b34620001d7576000600319360112620001d7576001600160a01b038060015416330362000879573390600054167f8292fce18fa69edf4db7b94ea2e58241df0ae57f97e0a6c9b29067028bf92d76600080a3620001813362001ba6565b60046040517f065cd531000000000000000000000000000000000000000000000000000000008152fd5b34620001d7576000600319360112620001d75762000383604051620008c88162001932565b601a81527f5a4f5241203131353520436f6e747261637420466163746f7279000000000000602082015260405191829160208352602083019062001a1f565b34620001d7576000600319360112620001d75760206040516001600160a01b037f0000000000000000000000005f62728a88acfd29caa9db0d495863a76875adac168152f35b34620001d7576000600319360112620001d7576040516080810181811067ffffffffffffffff821117620003875760405260038152602090818101606036823781511562000a6f576001600160a01b0391827f0000000000000000000000005f62728a88acfd29caa9db0d495863a76875adac16825280519360019485101562000a6f57837f000000000000000000000000b2af1aac51fa535a707ad8461a02bbe84cd05aa616604083015281516002101562000a6f5791928491817f00000000000000000000000042822840755d2681bad85f90e457f9c5139357291660608201526040519380850191818652518092526040850195926000905b83821062000a575786880387f35b84518116885296820196938201939085019062000a49565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b34620001d7576000600319360112620001d75760206040516001600160a01b037f000000000000000000000000cbb779fa752432f6308efc87198528eb8c7e721e168152f35b34620001d7576000600319360112620001d7576001600160a01b037f000000000000000000000000a71ac0dd1f88aa10224c9ceae5dc9e42e094607016300362000b525760206040517f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc8152f35b60046040517f5e4c25f1000000000000000000000000000000000000000000000000000000008152fd5b600319604081360112620001d75762000b94620019cc565b60243567ffffffffffffffff8111620001d75736602382011215620001d75762000bc990369060248160040135910162001990565b916001600160a01b03807f000000000000000000000000a71ac0dd1f88aa10224c9ceae5dc9e42e0946070169081301462000ff8577f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc91818354160362000fce57806000541633036200018357831690604051927f75d0c0dc0000000000000000000000000000000000000000000000000000000080855260008560048183885af194851562000f575760009562000fad575b50604051818152600081600481305afa90811562000f575760009162000f8e575b508551602080970120908681519101200362000e8e5750507f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff161562000cef5750505062000181915062001a46565b6040939293517f52d1902d0000000000000000000000000000000000000000000000000000000081528481600481865afa6000918162000e59575b5062000d5a5760046040517fe5ec1769000000000000000000000000000000000000000000000000000000008152fd5b0362000e2f5762000d6b8262001a46565b604051907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b600080a283511580159062000e26575b62000da757005b813b1562000dfe57506000838192846200018196519201905af43d1562000df4573d62000dd48162001973565b9062000de460405192836200194f565b8152600081933d92013e62001ac1565b6060915062001ac1565b807f369891e70000000000000000000000000000000000000000000000000000000060049252fd5b50600162000da0565b60046040517f8373ebf0000000000000000000000000000000000000000000000000000000008152fd5b9091508581813d831162000e86575b62000e7481836200194f565b81010312620001d75751908762000d2a565b503d62000e68565b8360405191808352600083600481305afa92831562000f575760009362000f63575b5060009160048392604051948593849283525af192831562000f575762000f1b9362000f2b9260009162000f2f575b506040519485947fa23cbf7b00000000000000000000000000000000000000000000000000000000865260406004870152604486019062001a1f565b9184830301602485015262001a1f565b0390fd5b62000f5091503d806000833e62000f4781836200194f565b81019062001b3a565b8562000edf565b6040513d6000823e3d90fd5b600092908392945062000f836004913d8086833e62000f4781836200194f565b949250509162000eb0565b62000fa691503d806000833e62000f4781836200194f565b8862000c9d565b62000fc69195503d806000833e62000f4781836200194f565b938762000c7c565b60046040517f64cd8d19000000000000000000000000000000000000000000000000000000008152fd5b60046040517f1932df45000000000000000000000000000000000000000000000000000000008152fd5b34620001d7576040600319360112620001d7576200103f620019cc565b62001049620019e3565b906001600160a01b03809116600052603560205260406000209116600052602052602060ff604060002054166040519015158152f35b34620001d7576020600319360112620001d7576001600160a01b0380620010a5620019cc565b16908115620001ad576000541680330362000183578173ffffffffffffffffffffffffffffffffffffffff1960015416176001557f4f2638f5949b9614ef8d5e268cb51348ad7f434a34812bf64b6e95014fbd357e600080a3005b34620001d7576020600319908082360112620001d75762001120620019cc565b916001600160a01b0390817f000000000000000000000000a71ac0dd1f88aa10224c9ceae5dc9e42e0946070169182301462000ff8577f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc92818454160362000fce578060005416330362000183578416906040517f75d0c0dc000000000000000000000000000000000000000000000000000000009081815260008160048183885af190811562000f575760009162001436575b5060405190828252600082600481305afa91821562000f575760009262001415575b5086815191012090868151910120036200138a575050604051908382019282841067ffffffffffffffff8511176200038757836040526000835260ff7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd914354166000146200126d575050505050620001819062001a46565b6040517f52d1902d0000000000000000000000000000000000000000000000000000000081528581600481865afa6000918162001355575b50620012d55760046040517fe5ec1769000000000000000000000000000000000000000000000000000000008152fd5b0362000e2f57620012e68562001a46565b604051907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b600080a28151158015906200134c575b6200132257005b843b1562000dfe57506200018193600092839251915af43d1562000df4573d62000dd48162001973565b5060006200131b565b9091508681813d831162001382575b6200137081836200194f565b81010312620001d757519088620012a5565b503d62001364565b8260405191808352600083600481305afa92831562000f575760009362000f63575060009160048392604051948593849283525af192831562000f575762000f1b9362000f2b9260009162000f2f57506040519485947fa23cbf7b00000000000000000000000000000000000000000000000000000000865260406004870152604486019062001a1f565b6200142e9192503d806000833e62000f4781836200194f565b9088620011f6565b6200144e91503d806000833e62000f4781836200194f565b87620011d4565b34620001d7576000600319360112620001d7576001600160a01b03806000541690813303620001835773ffffffffffffffffffffffffffffffffffffffff1991600154918216907f682679deecef4dcd49674845cc1e3a075fea9073680aa445a8207d5a4bdea3da600080a316600155005b34620001d75760e0600319360112620001d75760043567ffffffffffffffff8111620001d75736602382011215620001d7576200150f90369060248160040135910162001990565b67ffffffffffffffff60243511620001d757366023602435011215620001d75767ffffffffffffffff6024356004013511620001d7573660248035600401358135010111620001d75760607fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffbc360112620001d7576040516060810181811067ffffffffffffffff821117620003875760405263ffffffff6044358181168103620001d75782526064359081168103620001d75760208201526084356001600160a01b0381168103620001d757604082015260a435906001600160a01b0382168203620001d75767ffffffffffffffff60c43511620001d75736602360c435011215620001d75767ffffffffffffffff60c4356004013511620001d75736602460c4356004013560051b60c435010111620001d7576040518061040881011067ffffffffffffffff61040883011117620003875761040862001c1182396001600160a01b037f000000000000000000000000cbb779fa752432f6308efc87198528eb8c7e721e1661040882015260208161040881010301906000f091821562000f575760405160a08152620016e5620016cb60a083018762001a1f565b828103602084015260243560040135602480350162001b19565b906200171960408201856001600160a01b036040809263ffffffff8082511686526020820151166020860152015116910152565b6001600160a01b038316917fa45800684f65ae010ceb4385eceaed88dec7f6a6bcbe11f7ffd8bd24dd2653f43392806001600160a01b038916930390a46001600160a01b0383163b15620001d7576001600160a01b039062001803620017d3604051967f8a08eb4c00000000000000000000000000000000000000000000000000000000885260e06004890152620017c060e4890160243560040135602480350162001b19565b906003198983030160248a015262001a1f565b845163ffffffff908116604489015260208601511660648801526040909401516001600160a01b03166084870152565b1660a48401526003198382030160c484015260c435600401358152826020820191602060c4356004013560051b82010192602460c435019160005b60c435600401358110620018a05750505050806000920381836001600160a01b0386165af1801562000f575762001884575b6020906001600160a01b0360405191168152f35b67ffffffffffffffff8211620003875760209160405262001870565b9193509193601f1983820301845284357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffbd60c435360301811215620001d75760c4350167ffffffffffffffff602482013511620001d757602481013536036044820113620001d757602062001922600193836044602485960135910162001b19565b960194019101918693926200183e565b6040810190811067ffffffffffffffff8211176200038757604052565b90601f601f19910116810190811067ffffffffffffffff8211176200038757604052565b67ffffffffffffffff81116200038757601f01601f191660200190565b9291926200199e8262001973565b91620019ae60405193846200194f565b829481845281830111620001d7578281602093846000960137010152565b600435906001600160a01b0382168203620001d757565b602435906001600160a01b0382168203620001d757565b60005b83811062001a0e5750506000910152565b8181015183820152602001620019fd565b90601f19601f60209362001a3f81518092818752878088019101620019fa565b0116010190565b803b1562001a97576001600160a01b037f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc911673ffffffffffffffffffffffffffffffffffffffff19825416179055565b60046040517f529880eb000000000000000000000000000000000000000000000000000000008152fd5b1562001aca5790565b80511562001ada57805190602001fd5b60046040517fa1451936000000000000000000000000000000000000000000000000000000008152fd5b805182101562000a6f5760209160051b010190565b601f8260209493601f19938186528686013760008582860101520116010190565b602081830312620001d75780519067ffffffffffffffff8211620001d7570181601f82011215620001d757805162001b728162001973565b9262001b8260405194856200194f565b81845260208284010111620001d75762001ba39160208085019101620019fa565b90565b600054906001600160a01b03809116808284167f8292fce18fa69edf4db7b94ea2e58241df0ae57f97e0a6c9b29067028bf92d76600080a373ffffffffffffffffffffffffffffffffffffffff198093161760005560015490811662001c0a575050565b1660015556fe604060808152346102225761040890813803918261001c81610227565b938492833960209384918101031261022257516001600160a01b03811692838203610222578251916001600160401b03908284018281118582101761020c57808652600096878652823b156101b2577f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b031916821790557fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b8880a28451158015906101ab575b6100dd575b855160e790816103218239f35b8551946060860186811085821117610197578752602786527f416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c85870152660819985a5b195960ca1b86880152518791829190845af4913d15610186573d90811161017257610166959661015885601f19601f85011601610227565b91825281943d92013e61024c565b508038808080806100d0565b634e487b7160e01b87526041600452602487fd5b50915061016693945060609161024c565b634e487b7160e01b89526041600452602489fd5b50866100cb565b865162461bcd60e51b815260048101869052602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b6064820152608490fd5b634e487b7160e01b600052604160045260246000fd5b600080fd5b6040519190601f01601f191682016001600160401b0381118382101761020c57604052565b919290156102ae5750815115610260575090565b3b156102695790565b60405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606490fd5b8251909150156102c15750805190602001fd5b6040519062461bcd60e51b82528160208060048301528251908160248401526000935b828510610307575050604492506000838284010152601f80199101168101030190fd5b84810182015186860160440152938101938593506102e456fe60806040523615605f5773ffffffffffffffffffffffffffffffffffffffff7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc54166000808092368280378136915af43d82803e15605b573d90f35b3d90fd5b73ffffffffffffffffffffffffffffffffffffffff7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc54166000808092368280378136915af43d82803e15605b573d90f3fea2646970667358221220ee8bea1f1f2d21d846263e02f3dc7b1e4cf6b04f2a13eebeb37e247f474aeacf64736f6c63430008110033a2646970667358221220b794fda55d56a8f9d073f41ac177c424f964e8b7c152e6112b04ebcd7c60592364736f6c63430008110033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000cbb779fa752432f6308efc87198528eb8c7e721e000000000000000000000000b2af1aac51fa535a707ad8461a02bbe84cd05aa60000000000000000000000005f62728a88acfd29caa9db0d495863a76875adac00000000000000000000000042822840755d2681bad85f90e457f9c513935729
-----Decoded View---------------
Arg [0] : _implementation (address): 0xCbb779FA752432f6308Efc87198528eb8C7E721E
Arg [1] : _merkleMinter (address): 0xB2Af1aAc51fA535a707Ad8461A02BBe84cD05aa6
Arg [2] : _fixedPriceMinter (address): 0x5F62728a88AcFD29caa9db0d495863A76875Adac
Arg [3] : _redeemMinterFactory (address): 0x42822840755D2681BAD85F90E457f9C513935729
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 000000000000000000000000cbb779fa752432f6308efc87198528eb8c7e721e
Arg [1] : 000000000000000000000000b2af1aac51fa535a707ad8461a02bbe84cd05aa6
Arg [2] : 0000000000000000000000005f62728a88acfd29caa9db0d495863a76875adac
Arg [3] : 00000000000000000000000042822840755d2681bad85f90e457f9c513935729
Deployed Bytecode Sourcemap
1156:3812:23:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;1156:3812:23;;;;;;;:::i;:::-;-1:-1:-1;;;;;1156:3812:23;;;1058:19:42;1054:87;;1156:3812:23;;;1452:10:42;:20;1448:70;;2758:9;;;:::i;:::-;1156:3812:23;1448:70:42;1156:3812:23;;;1495:12:42;;;;1054:87;1156:3812:23;;;1100:30:42;;;;1156:3812:23;;;;;;;;;-1:-1:-1;;1156:3812:23;;;;;;;:::i;:::-;;;:::i;:::-;;-1:-1:-1;;;;;1156:3812:23;;;;;1452:10:42;:20;1448:70;;1156:3812:23;;;;;;2018:16:38;1156:3812:23;;;;;;;;;;;;;;;;-1:-1:-1;;1156:3812:23;;;;;2073:37:38;1156:3812:23;2073:37:38;;1156:3812:23;;;;;;-1:-1:-1;;1156:3812:23;;;;;;;-1:-1:-1;;;;;1156:3812:23;;;1452:10:42;;:20;1448:70;;1156:3812:23;3061:31:42;;;;;-1:-1:-1;;1156:3812:23;;;;;3136:13:42;1156:3812:23;;;;3132:78:42;;1156:3812:23;3132:78:42;1156:3812:23;3136:13:42;1156:3812:23;;;;;;;-1:-1:-1;;1156:3812:23;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;-1:-1:-1;;1156:3812:23;;;;;;-1:-1:-1;;;;;2502:13:42;1156:3812:23;;;;;;;;;;;;;-1:-1:-1;;1156:3812:23;;;;;;;;-1:-1:-1;;;;;1462:48:23;1156:3812;;;;;;;;;-1:-1:-1;;1156:3812:23;;;;;;;:::i;:::-;3455:13:16;1156:3812:23;;;;;;3454:14:16;1156:3812:23;;;;3483:36:16;;;1156:3812:23;3482:109:16;;;1156:3812:23;3478:191:16;;1156:3812:23;;3693:1:16;-1:-1:-1;;;;;;;1156:3812:23;;;3455:13:16;1156:3812:23;3704:65:16;;1156:3812:23;;;1058:19:42;;1054:87;;3455:13:16;1156:3812:23;;;;;;;5534:14:16;5530:96;;1156:3812:23;-1:-1:-1;;1156:3812:23;;;;;;;2198:39:42;;;;1156:3812:23;;2807:14;;1156:3812;2807:14;;3789:99:16;;1156:3812:23;3789:99:16;3863:14;1156:3812:23;;;;;3455:13:16;1156:3812:23;3693:1:16;1156:3812:23;;3863:14:16;1156:3812:23;5530:96:16;1156:3812:23;;;5571:44:16;;;;3704:65;1156:3812:23;;;;3455:13:16;1156:3812:23;3704:65:16;;;3478:191;1156:3812:23;;;3614:44:16;;;;3482:109;-1:-1:-1;3563:4:16;2011:19:20;:23;;;3482:109:16;3525:65;1156:3812:23;3589:1:16;1156:3812:23;;;3573:17:16;;3482:109;;3483:36;1156:3812:23;;;;3502:17:16;;3483:36;;1156:3812:23;;;;;-1:-1:-1;;1156:3812:23;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;-1:-1:-1;;1156:3812:23;;;;;;;;-1:-1:-1;;;;;1364:41:23;1156:3812;;;;;;;;;-1:-1:-1;;1156:3812:23;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;-1:-1:-1;;;;;1156:3812:23;;;;1452:10:42;:20;1448:70;;1523:13:38;;1156:3812:23;;;;1560:3:38;1156:3812:23;;1538:20:38;;;;;1600:12;;;1156:3812:23;1600:12:38;;;:::i;:::-;1156:3812:23;;;;1583:16:38;1156:3812:23;;;;;;;;;;;;;;-1:-1:-1;;1156:3812:23;;;;;;1674:12:38;;;;;;:::i;:::-;1156:3812:23;;1656:44:38;1156:3812:23;1656:44:38;;1156:3812:23;1523:13:38;;1156:3812:23;;;-1:-1:-1;;;;;1156:3812:23;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;1156:3812:23;;;;;;-1:-1:-1;;;;;1156:3812:23;;;;;;;;;;;;;;-1:-1:-1;;1156:3812:23;;;;;-1:-1:-1;;;;;1156:3812:23;1650:13:42;1156:3812:23;;1636:10:42;:27;1632:85;;1636:10;1156:3812:23;;;;3824:32:42;1156:3812:23;3824:32:42;;3886:10;1636;3886;:::i;1632:85::-;1156:3812:23;;;1686:20:42;;;;1156:3812:23;;;;;-1:-1:-1;;1156:3812:23;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;-1:-1:-1;;1156:3812:23;;;;;;;;-1:-1:-1;;;;;1411:45:23;1156:3812;;;;;;;;;-1:-1:-1;;1156:3812:23;;;;;;;;;;;;;;;;;;;;;2525:1;1156:3812;;;;;;;;;;;;;;;;-1:-1:-1;;;;;2550:16:23;;;1156:3812;;;;;2584:1;;1156:3812;;;;;;2589:12;;1156:3812;;;;;;;2619:1;1156:3812;;;;2624:19;;;;;;1156:3812;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;1156:3812:23;;;;;;;;-1:-1:-1;;;;;1309:48:23;1156:3812;;;;;;;;;-1:-1:-1;;1156:3812:23;;;;;-1:-1:-1;;;;;2556:6:17;1156:3812:23;2547:4:17;2539:23;2535:119;;1156:3812:23;;;1536:66:14;1156:3812:23;;;2535:119:17;1156:3812:23;;;2585:58:17;;;;1156:3812:23;-1:-1:-1;;1156:3812:23;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;-1:-1:-1;;;;;2069:6:17;;1156:3812:23;2060:4:17;;;2052:23;2048:107;;1536:66:14;1156:3812:23;;;;;2168:30:17;2164:114;;1156:3812:23;;;;1452:10:42;:20;1448:70;;1156:3812:23;;;;;1195:66:14;;4612:42:23;;;1156:3812;4612:42;1156:3812;4612:42;;;;;;;;;;1156:3812;4612:42;;;1156:3812;;;;4656:19;;;1156:3812;2060:4:17;1156:3812:23;2060:4:17;;4656:19:23;;;;;;;1156:3812;4656:19;;;1156:3812;;;;;;;;4916:19;1156:3812;;;;;;4939:19;4916:42;4599:207;;-1:-1:-1;;1195:66:14;;1156:3812:23;;;;;3674:17:14;;;;;;;:::i;3576:538::-;1156:3812:23;;;;;1195:66:14;3727:63;;;;1156:3812:23;3727:63:14;;;;1156:3812:23;;3727:63:14;;;3576:538;-1:-1:-1;3723:314:14;;1156:3812:23;;;3995:27:14;;;;3723:314;3836:28;3832:117;;2533:17;;;:::i;:::-;1156:3812:23;;2566:27:14;;1156:3812:23;2566:27:14;;1156:3812:23;;2885:15:14;;;:28;;;3723:314;2881:105;;1156:3812:23;2881:105:14;2011:19:20;;:23;7398:114:14;;7623:25;1156:3812:23;7623:25:14;;;;7665:56;7623:25;;;;;;;1156:3812:23;;;;;;;;:::i;:::-;;;;;;;;:::i;:::-;;;;;;;;;;7665:56:14;:::i;1156:3812:23:-;;;-1:-1:-1;7665:56:14;:::i;7398:114::-;7463:38;;1156:3812:23;7463:38:14;;;2885:28;;4362:4:17;2885:28:14;;3832:117;1156:3812:23;;;3895:35:14;;;;3727:63;;;;;;;;;;;;;;;;;:::i;:::-;;;1195:66;;;;;3727:63;;;;;;;;;4599:207:23;1156:3812;;;4731:19;;;;1156:3812;2060:4:17;1156:3812:23;2060:4:17;;4731:19:23;;;;;;;1156:3812;4731:19;;;4599:207;1156:3812;;;;;;;;4752:42;;;;;;;;;;;;;;1156:3812;4752:42;1156:3812;4752:42;1156:3812;4752:42;;;4599:207;1156:3812;;;4699:96;;;;;;1156:3812;;4699:96;;1156:3812;;;;;;:::i;:::-;;;;;;;;;;;:::i;:::-;4699:96;;;4752:42;;;;;;1156:3812;4752:42;;;;;;:::i;:::-;;;;;:::i;:::-;;;;;1156:3812;;1195:66:14;1156:3812:23;1195:66:14;;;;;4731:19:23;1156:3812;4731:19;;;;;;;1156:3812;4731:19;;;;;;;;;;:::i;:::-;;;;;;;;4656;;;;;;1156:3812;4656:19;;;;;;:::i;:::-;;;;4612:42;;;;;;;1156:3812;4612:42;;;;;;:::i;:::-;;;;;2164:114:17;1156:3812:23;;;2221:46:17;;;;2048:107;1156:3812:23;;;2098:46:17;;;;1156:3812:23;;;;;-1:-1:-1;;1156:3812:23;;;;;;;:::i;:::-;;;:::i;:::-;;-1:-1:-1;;;;;1156:3812:23;;;;;116:68:39;1156:3812:23;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;1156:3812:23;;;;;-1:-1:-1;;;;;1156:3812:23;;;:::i;:::-;;1058:19:42;;;1054:87;;1156:3812:23;;;1452:10:42;;:20;1448:70;;1156:3812:23;-1:-1:-1;;3428:25:42;1156:3812:23;;;3428:25:42;1156:3812:23;3469:31:42;1156:3812:23;3469:31:42;;1156:3812:23;;;;;;-1:-1:-1;;1156:3812:23;;;;;;;;;;:::i;:::-;;-1:-1:-1;;;;;2069:6:17;;;1156:3812:23;2060:4:17;;;2052:23;2048:107;;1536:66:14;1156:3812:23;;;;;2168:30:17;2164:114;;1156:3812:23;;;;1452:10:42;:20;1448:70;;1156:3812:23;;;;;1195:66:14;4612:42:23;;;;1156:3812;4612:42;1156:3812;4612:42;;;;;;;;;;1156:3812;4612:42;;;1156:3812;;;;4656:19;;;;1156:3812;2060:4:17;1156:3812:23;2060:4:17;;4656:19:23;;;;;;;1156:3812;4656:19;;;1156:3812;;;;;;;4916:19;1156:3812;;;;;;4939:19;4916:42;4599:207;;1156:3812;;;;;;;;;;;;;;;;;;;;;;;;;1195:66:14;;1156:3812:23;3576:538:14;1156:3812:23;;;3674:17:14;;;;;;;;:::i;3576:538::-;1156:3812:23;;1195:66:14;3727:63;;;;1156:3812:23;3727:63:14;;;;1156:3812:23;;3727:63:14;;;3576:538;-1:-1:-1;3723:314:14;;1156:3812:23;;;3995:27:14;;;;3723:314;3836:28;3832:117;;2533:17;;;:::i;:::-;1156:3812:23;;2566:27:14;;1156:3812:23;2566:27:14;;1156:3812:23;;2885:15:14;;;:28;;;3723:314;2881:105;;1156:3812:23;2881:105:14;2011:19:20;;:23;7398:114:14;;7623:25;7665:56;7623:25;1156:3812:23;7623:25:14;;;;;;;1156:3812:23;;;;;;;;:::i;2885:28:14:-;;1156:3812:23;2885:28:14;;3727:63;;;;;;;;;;;;;;;;;:::i;:::-;;;1195:66;;;;;3727:63;;;;;;;;;4599:207:23;1156:3812;;;4731:19;;;;1156:3812;2060:4:17;1156:3812:23;2060:4:17;;4731:19:23;;;;;;;1156:3812;4731:19;;;1156:3812;;;;;;;;4752:42;;;;;;;;;;;;;;1156:3812;4752:42;1156:3812;4752:42;1156:3812;4752:42;;;1156:3812;;;4699:96;;;;;;1156:3812;;4699:96;;1156:3812;;;;;;:::i;4656:19::-;;;;;;;1156:3812;4656:19;;;;;;:::i;:::-;;;;;4612:42;;;;;;1156:3812;4612:42;;;;;;:::i;:::-;;;;1156:3812;;;;;-1:-1:-1;;1156:3812:23;;;;;-1:-1:-1;;;;;1156:3812:23;;;;1452:10:42;;;:20;1448:70;;-1:-1:-1;;1156:3812:23;4052:13:42;1156:3812:23;;;;4030:36:42;;1156:3812:23;4030:36:42;;1156:3812:23;4052:13:42;1156:3812:23;;;;;;;-1:-1:-1;;1156:3812:23;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;1156:3812:23;;;;;;;;;;;;;-1:-1:-1;;;;;1156:3812:23;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3578:37;;;;;1156:3812;3578:37;;;;;;;;;;;-1:-1:-1;;;;;3599:14:23;1156:3812;3578:37;;;1156:3812;;3578:37;;;;;;;1156:3812;3578:37;;;;;;1156:3812;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;-1:-1:-1;;;;;1156:3812:23;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;1156:3812:23;;3719:10;3632:283;3719:10;1156:3812;;-1:-1:-1;;;;;1156:3812:23;;3632:283;;;;-1:-1:-1;;;;;1156:3812:23;;3926:130;;;;-1:-1:-1;;;;;1156:3812:23;;;;;3926:130;1195:66:14;3926:130:23;;1156:3812;;3926:130;;1156:3812;;;;;;;;;;;;;;;:::i;:::-;;-1:-1:-1;;1156:3812:23;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;1156:3812:23;;;;;;;;;;;;-1:-1:-1;;1156:3812:23;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3926:130;;;;;1156:3812;3926:130;;1156:3812;;-1:-1:-1;;;;;1156:3812:23;;3926:130;;;;;;;;1156:3812;;;-1:-1:-1;;;;;1156:3812:23;;;;;;;3926:130;1156:3812;;;;;;;;;3926:130;;1156:3812;;;;;;-1:-1:-1;;1156:3812:23;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;-1:-1:-1;;1156:3812:23;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;-1:-1:-1;;1156:3812:23;;;;:::o;:::-;;;;;;;:::i;:::-;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;-1:-1:-1;1156:3812:23;;;;;;:::o;:::-;;;;-1:-1:-1;;;;;1156:3812:23;;;;;;:::o;:::-;;;;-1:-1:-1;;;;;1156:3812:23;;;;;;:::o;:::-;;;;;;;;-1:-1:-1;;1156:3812:23;;;;:::o;:::-;;;;;;;;;;;;;;;-1:-1:-1;;1156:3812:23;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;:::o;2049:293:14:-;2011:19:20;;:23;2122:118:14;;-1:-1:-1;;;;;1536:66:14;1156:3812:23;;-1:-1:-1;;1156:3812:23;;;;;;2049:293:14:o;2122:118::-;2198:31;1156:3812:23;;2198:31:14;;;;6537:245:20;6671:105;;;6698:17;:::o;6671:105::-;1156:3812:23;;6919:21:20;:17;;7091:142;;;;;;6915:397;7270:31;1156:3812:23;;7270:31:20;;;;1156:3812:23;;;;;;;;;;;;;;;:::o;:::-;;;;;;-1:-1:-1;;1156:3812:23;;;;;;;;-1:-1:-1;1156:3812:23;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::o;2990:226:42:-;3074:6;1156:3812:23;;-1:-1:-1;;;;;1156:3812:23;;;;;;;3061:31:42;3074:6;3061:31;;-1:-1:-1;;1156:3812:23;;;;3074:6:42;1156:3812:23;3136:13:42;1156:3812:23;;;;3132:78:42;;2990:226;;:::o;3132:78::-;1156:3812:23;3136:13:42;1156:3812:23;2990:226:42:o
Swarm Source
ipfs://b794fda55d56a8f9d073f41ac177c424f964e8b7c152e6112b04ebcd7c605923
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 34 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.