ETH Price: $3,359.24 (-8.25%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Purchase198081792024-05-06 2:51:35247 days ago1714963895IN
Art Blocks: Minter Set Price V0
0.1 ETH0.001837444.81605775
Purchase To195648442024-04-02 1:28:35281 days ago1712021315IN
Art Blocks: Minter Set Price V0
0.000001 ETH0.0074536320.22361537
Purchase195493812024-03-30 21:17:47283 days ago1711833467IN
Art Blocks: Minter Set Price V0
0.1 ETH0.0077403719.55248611
Purchase195490532024-03-30 20:11:23283 days ago1711829483IN
Art Blocks: Minter Set Price V0
0.03 ETH0.0016519129.77875711
Purchase195490512024-03-30 20:10:59283 days ago1711829459IN
Art Blocks: Minter Set Price V0
0.03 ETH0.0018574533.48399398
Purchase195490512024-03-30 20:10:59283 days ago1711829459IN
Art Blocks: Minter Set Price V0
0.03 ETH0.0018574533.48399398
Purchase195490512024-03-30 20:10:59283 days ago1711829459IN
Art Blocks: Minter Set Price V0
0.03 ETH0.0018574533.48399398
Purchase195490512024-03-30 20:10:59283 days ago1711829459IN
Art Blocks: Minter Set Price V0
0.03 ETH0.0018574533.48399398
Purchase195490512024-03-30 20:10:59283 days ago1711829459IN
Art Blocks: Minter Set Price V0
0.03 ETH0.0018674333.50431763
Purchase195490512024-03-30 20:10:59283 days ago1711829459IN
Art Blocks: Minter Set Price V0
0.03 ETH0.0019917235.90431763
Purchase195490512024-03-30 20:10:59283 days ago1711829459IN
Art Blocks: Minter Set Price V0
0.03 ETH0.0022189240
Purchase195490502024-03-30 20:10:47283 days ago1711829447IN
Art Blocks: Minter Set Price V0
0.03 ETH0.0118070732.1023258
Purchase195490502024-03-30 20:10:47283 days ago1711829447IN
Art Blocks: Minter Set Price V0
0.03 ETH0.0118070732.1023258
Purchase195490502024-03-30 20:10:47283 days ago1711829447IN
Art Blocks: Minter Set Price V0
0.03 ETH0.0114625532.1023258
Purchase195490502024-03-30 20:10:47283 days ago1711829447IN
Art Blocks: Minter Set Price V0
0.03 ETH0.0118070732.1023258
Purchase195490502024-03-30 20:10:47283 days ago1711829447IN
Art Blocks: Minter Set Price V0
0.03 ETH0.0122661332.1023258
Purchase195490502024-03-30 20:10:47283 days ago1711829447IN
Art Blocks: Minter Set Price V0
0.03 ETH0.0122661332.1023258
Purchase195490502024-03-30 20:10:47283 days ago1711829447IN
Art Blocks: Minter Set Price V0
0.03 ETH0.0119216132.1023258
Purchase195490502024-03-30 20:10:47283 days ago1711829447IN
Art Blocks: Minter Set Price V0
0.03 ETH0.0122661332.1023258
Purchase195490502024-03-30 20:10:47283 days ago1711829447IN
Art Blocks: Minter Set Price V0
0.03 ETH0.0117759932.1023258
Purchase195490502024-03-30 20:10:47283 days ago1711829447IN
Art Blocks: Minter Set Price V0
0.03 ETH0.011318132.10563683
Purchase195490502024-03-30 20:10:47283 days ago1711829447IN
Art Blocks: Minter Set Price V0
0.03 ETH0.0118145432.12264945
Purchase195490502024-03-30 20:10:47283 days ago1711829447IN
Art Blocks: Minter Set Price V0
0.03 ETH0.0118145432.12264945
Purchase195490502024-03-30 20:10:47283 days ago1711829447IN
Art Blocks: Minter Set Price V0
0.03 ETH0.0118145432.12264945
Purchase195490502024-03-30 20:10:47283 days ago1711829447IN
Art Blocks: Minter Set Price V0
0.03 ETH0.0118145432.12264945
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block
From
To
198081792024-05-06 2:51:35247 days ago1714963895
Art Blocks: Minter Set Price V0
0.045 ETH
198081792024-05-06 2:51:35247 days ago1714963895
Art Blocks: Minter Set Price V0
0.045 ETH
198081792024-05-06 2:51:35247 days ago1714963895
Art Blocks: Minter Set Price V0
0.01 ETH
195648442024-04-02 1:28:35281 days ago1712021315
Art Blocks: Minter Set Price V0
0.0000006 ETH
195648442024-04-02 1:28:35281 days ago1712021315
Art Blocks: Minter Set Price V0
0.00000029 ETH
195648442024-04-02 1:28:35281 days ago1712021315
Art Blocks: Minter Set Price V0
0.0000001 ETH
195493812024-03-30 21:17:47283 days ago1711833467
Art Blocks: Minter Set Price V0
0.045 ETH
195493812024-03-30 21:17:47283 days ago1711833467
Art Blocks: Minter Set Price V0
0.045 ETH
195493812024-03-30 21:17:47283 days ago1711833467
Art Blocks: Minter Set Price V0
0.01 ETH
195490502024-03-30 20:10:47283 days ago1711829447
Art Blocks: Minter Set Price V0
0.027 ETH
195490502024-03-30 20:10:47283 days ago1711829447
Art Blocks: Minter Set Price V0
0.003 ETH
195490502024-03-30 20:10:47283 days ago1711829447
Art Blocks: Minter Set Price V0
0.027 ETH
195490502024-03-30 20:10:47283 days ago1711829447
Art Blocks: Minter Set Price V0
0.003 ETH
195490502024-03-30 20:10:47283 days ago1711829447
Art Blocks: Minter Set Price V0
0.027 ETH
195490502024-03-30 20:10:47283 days ago1711829447
Art Blocks: Minter Set Price V0
0.003 ETH
195490502024-03-30 20:10:47283 days ago1711829447
Art Blocks: Minter Set Price V0
0.027 ETH
195490502024-03-30 20:10:47283 days ago1711829447
Art Blocks: Minter Set Price V0
0.003 ETH
195490502024-03-30 20:10:47283 days ago1711829447
Art Blocks: Minter Set Price V0
0.027 ETH
195490502024-03-30 20:10:47283 days ago1711829447
Art Blocks: Minter Set Price V0
0.003 ETH
195490502024-03-30 20:10:47283 days ago1711829447
Art Blocks: Minter Set Price V0
0.027 ETH
195490502024-03-30 20:10:47283 days ago1711829447
Art Blocks: Minter Set Price V0
0.003 ETH
195490502024-03-30 20:10:47283 days ago1711829447
Art Blocks: Minter Set Price V0
0.027 ETH
195490502024-03-30 20:10:47283 days ago1711829447
Art Blocks: Minter Set Price V0
0.003 ETH
195490502024-03-30 20:10:47283 days ago1711829447
Art Blocks: Minter Set Price V0
0.027 ETH
195490502024-03-30 20:10:47283 days ago1711829447
Art Blocks: Minter Set Price V0
0.003 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MinterSetPriceV0

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 100 runs

Other Settings:
default evmVersion
File 1 of 5 : MinterSetPriceV0.sol
// SPDX-License-Identifier: LGPL-3.0-only
// Created By: Art Blocks Inc.

import "../interfaces/0.8.x/IGenArt721CoreContractV1.sol";
import "../interfaces/0.8.x/IMinterFilterV0.sol";
import "../interfaces/0.8.x/IFilteredMinterV0.sol";

import "@openzeppelin/contracts/security/ReentrancyGuard.sol";

pragma solidity 0.8.9;

/**
 * @title Filtered Minter contract that allows tokens to be minted with ETH.
 * @author Art Blocks Inc.
 */
contract MinterSetPriceV0 is ReentrancyGuard, IFilteredMinterV0 {
    /// Core contract address this minter interacts with
    address public immutable genArt721CoreAddress;

    /// This contract handles cores with interface IV1
    IGenArt721CoreContractV1 private immutable genArtCoreContract;

    /// Minter filter address this minter interacts with
    address public immutable minterFilterAddress;

    /// Minter filter this minter may interact with.
    IMinterFilterV0 private immutable minterFilter;

    /// minterType for this minter
    string public constant minterType = "MinterSetPriceV0";

    uint256 constant ONE_MILLION = 1_000_000;

    /// projectId => are contracts allowed to mint?
    mapping(uint256 => bool) public contractMintable;
    /// projectId => are tokens allowed to be minted to other addresses?
    mapping(uint256 => bool) public purchaseToDisabled;
    /// purchaser address => projectId => number of mints purchased
    mapping(address => mapping(uint256 => uint256)) public projectMintCounter;
    /// projectId => maximum number of mints a given address may invoke
    mapping(uint256 => uint256) public projectMintLimit;
    /// projectId => has project reached its maximum number of invocations?
    mapping(uint256 => bool) public projectMaxHasBeenInvoked;
    /// projectId => project's maximum number of invocations
    mapping(uint256 => uint256) public projectMaxInvocations;
    /// projectId => price per token in wei - supersedes any defined core price
    mapping(uint256 => uint256) private projectIdToPricePerTokenInWei;
    /// projectId => price per token has been configured on this minter
    mapping(uint256 => bool) private projectIdToPriceIsConfigured;

    modifier onlyCoreWhitelisted() {
        require(
            genArtCoreContract.isWhitelisted(msg.sender),
            "Only Core whitelisted"
        );
        _;
    }

    modifier onlyArtist(uint256 _projectId) {
        require(
            msg.sender ==
                genArtCoreContract.projectIdToArtistAddress(_projectId),
            "Only Artist"
        );
        _;
    }

    /**
     * @notice Initializes contract to be a Filtered Minter for
     * `_minterFilter`, integrated with Art Blocks core contract
     * at address `_genArt721Address`.
     * @param _genArt721Address Art Blocks core contract address for
     * which this contract will be a minter.
     * @param _minterFilter Minter filter for whichccthis will a
     * filtered minter.
     */
    constructor(address _genArt721Address, address _minterFilter)
        ReentrancyGuard()
    {
        genArt721CoreAddress = _genArt721Address;
        genArtCoreContract = IGenArt721CoreContractV1(_genArt721Address);
        minterFilterAddress = _minterFilter;
        minterFilter = IMinterFilterV0(_minterFilter);
        require(
            minterFilter.genArt721CoreAddress() == _genArt721Address,
            "Illegal contract pairing"
        );
    }

    /**
     * @notice Sets the mint limit of a single purchaser for project
     * `_projectId` to `_limit`.
     * @param _projectId Project ID to set the mint limit for.
     * @param _limit Number of times a given address may mint the
     * project's tokens.
     */
    function setProjectMintLimit(uint256 _projectId, uint8 _limit)
        external
        onlyCoreWhitelisted
    {
        projectMintLimit[_projectId] = _limit;
    }

    /**
     * @notice Sets the maximum invocations of project `_projectId` based
     * on the value currently defined in the core contract.
     * @param _projectId Project ID to set the maximum invocations for.
     * @dev also checks and may refresh projectMaxHasBeenInvoked for project
     * @dev this enables gas reduction after maxInvocations have been reached -
     * core contracts shall still enforce a maxInvocation check during mint.
     */
    function setProjectMaxInvocations(uint256 _projectId)
        external
        onlyCoreWhitelisted
    {
        uint256 invocations;
        uint256 maxInvocations;
        (, , invocations, maxInvocations, , , , , ) = genArtCoreContract
            .projectTokenInfo(_projectId);
        // update storage with results
        projectMaxInvocations[_projectId] = maxInvocations;
        if (invocations < maxInvocations) {
            projectMaxHasBeenInvoked[_projectId] = false;
        }
    }

    /**
     * @notice Toggles if contracts are allowed to mint tokens for
     * project `_projectId`.
     * @param _projectId Project ID to be toggled.
     */
    function toggleContractMintable(uint256 _projectId)
        external
        onlyCoreWhitelisted
    {
        contractMintable[_projectId] = !contractMintable[_projectId];
    }

    /**
     * @notice Toggles if purchases to other address are enabled for
     * project `_projectId`.
     * @param _projectId Project ID to be toggled.
     */
    function togglePurchaseToDisabled(uint256 _projectId)
        external
        onlyCoreWhitelisted
    {
        purchaseToDisabled[_projectId] = !purchaseToDisabled[_projectId];
        emit PurchaseToDisabledUpdated(
            _projectId,
            purchaseToDisabled[_projectId]
        );
    }

    /**
     * @notice Updates this minter's price per token of project `_projectId`
     * to be '_pricePerTokenInWei`, in Wei.
     * This price supersedes any legacy core contract price per token value.
     */
    function updatePricePerTokenInWei(
        uint256 _projectId,
        uint256 _pricePerTokenInWei
    ) external onlyArtist(_projectId) {
        projectIdToPricePerTokenInWei[_projectId] = _pricePerTokenInWei;
        projectIdToPriceIsConfigured[_projectId] = true;
        emit PricePerTokenInWeiUpdated(_projectId, _pricePerTokenInWei);
    }

    /**
     * @notice Purchases a token from project `_projectId`.
     * @param _projectId Project ID to mint a token on.
     * @return tokenId Token ID of minted token
     */
    function purchase(uint256 _projectId)
        external
        payable
        returns (uint256 tokenId)
    {
        tokenId = purchaseTo(msg.sender, _projectId);
        return tokenId;
    }

    /**
     * @notice Purchases a token from project `_projectId` and sets
     * the token's owner to `_to`.
     * @param _to Address to be the new token's owner.
     * @param _projectId Project ID to mint a token on.
     * @return tokenId Token ID of minted token
     */
    function purchaseTo(address _to, uint256 _projectId)
        public
        payable
        nonReentrant
        returns (uint256 tokenId)
    {
        // CHECKS
        require(
            !projectMaxHasBeenInvoked[_projectId],
            "Maximum number of invocations reached"
        );

        // require artist to have configured price of token on this minter
        require(
            projectIdToPriceIsConfigured[_projectId],
            "Price not configured"
        );

        // if contract filter is off, allow calls from another contract
        if (!contractMintable[_projectId]) {
            require(msg.sender == tx.origin, "No Contract Buys");
        }

        // if purchaseTo is disabled, enforce purchase destination to be the TX
        // sending address.
        if (purchaseToDisabled[_projectId]) {
            require(msg.sender == _to, "No `purchaseTo` Allowed");
        }

        require(
            msg.value >= projectIdToPricePerTokenInWei[_projectId],
            "Must send minimum value to mint!"
        );

        // limit mints per address by project
        if (projectMintLimit[_projectId] > 0) {
            require(
                projectMintCounter[msg.sender][_projectId] <
                    projectMintLimit[_projectId],
                "Reached minting limit"
            );
            // EFFECTS
            projectMintCounter[msg.sender][_projectId]++;
        }

        tokenId = minterFilter.mint(_to, _projectId, msg.sender);
        // what if projectMaxInvocations[_projectId] is 0 (default value)?
        // that is intended, so that by default the minter allows infinite transactions,
        // allowing the artblocks contract to stop minting
        // uint256 tokenInvocation = tokenId % ONE_MILLION;
        if (
            projectMaxInvocations[_projectId] > 0 &&
            tokenId % ONE_MILLION == projectMaxInvocations[_projectId] - 1
        ) {
            projectMaxHasBeenInvoked[_projectId] = true;
        }

        // INTERACTIONS
        _splitFundsETH(_projectId);

        return tokenId;
    }

    /**
     * @dev splits ETH funds between sender (if refund), foundation,
     * artist, and artist's additional payee for a token purchased on
     * project `_projectId`.
     * @dev utilizes transfer() to send ETH, so access lists may need to be
     * populated when purchasing tokens.
     */
    function _splitFundsETH(uint256 _projectId) internal {
        if (msg.value > 0) {
            uint256 pricePerTokenInWei = projectIdToPricePerTokenInWei[
                _projectId
            ];
            uint256 refund = msg.value - pricePerTokenInWei;
            if (refund > 0) {
                (bool success_, ) = msg.sender.call{value: refund}("");
                require(success_, "Refund failed");
            }
            uint256 foundationAmount = (pricePerTokenInWei *
                genArtCoreContract.artblocksPercentage()) / 100;
            if (foundationAmount > 0) {
                (bool success_, ) = genArtCoreContract.artblocksAddress().call{
                    value: foundationAmount
                }("");
                require(success_, "Foundation payment failed");
            }
            uint256 projectFunds = pricePerTokenInWei - foundationAmount;
            uint256 additionalPayeeAmount;
            if (
                genArtCoreContract.projectIdToAdditionalPayeePercentage(
                    _projectId
                ) > 0
            ) {
                additionalPayeeAmount =
                    (projectFunds *
                        genArtCoreContract.projectIdToAdditionalPayeePercentage(
                            _projectId
                        )) /
                    100;
                if (additionalPayeeAmount > 0) {
                    (bool success_, ) = genArtCoreContract
                        .projectIdToAdditionalPayee(_projectId)
                        .call{value: additionalPayeeAmount}("");
                    require(success_, "Additional payment failed");
                }
            }
            uint256 creatorFunds = projectFunds - additionalPayeeAmount;
            if (creatorFunds > 0) {
                (bool success_, ) = genArtCoreContract
                    .projectIdToArtistAddress(_projectId)
                    .call{value: creatorFunds}("");
                require(success_, "Artist payment failed");
            }
        }
    }

    /**
     * @notice Gets if price of token is configured, price of minting a
     * token on project `_projectId`, and currency symbol and address to be
     * used as payment. Supersedes any core contract price information.
     * @param _projectId Project ID to get price information for.
     * @return isConfigured true only if token price has been configured on
     * this minter
     * @return tokenPriceInWei current price of token on this minter - invalid
     * if price has not yet been configured
     * @return currencySymbol currency symbol for purchases of project on this
     * minter. This minter always returns "ETH"
     * @return currencyAddress currency address for purchases of project on
     * this minter. This minter always returns null address, reserved for ether
     */
    function getPriceInfo(uint256 _projectId)
        external
        view
        returns (
            bool isConfigured,
            uint256 tokenPriceInWei,
            string memory currencySymbol,
            address currencyAddress
        )
    {
        isConfigured = projectIdToPriceIsConfigured[_projectId];
        tokenPriceInWei = projectIdToPricePerTokenInWei[_projectId];
        currencySymbol = "ETH";
        currencyAddress = address(0);
    }
}

File 2 of 5 : IGenArt721CoreContractV1.sol
// SPDX-License-Identifier: LGPL-3.0-only
// Created By: Art Blocks Inc.

pragma solidity ^0.8.0;

interface IGenArt721CoreContractV1 {
    event Mint(
        address indexed _to,
        uint256 indexed _tokenId,
        uint256 indexed _projectId
    );

    // getter function of public variable
    function admin() external view returns (address);

    // getter function of public variable
    function nextProjectId() external view returns (uint256);

    // getter function of public mapping
    function tokenIdToProjectId(uint256 tokenId)
        external
        view
        returns (uint256 projectId);

    function isWhitelisted(address sender) external view returns (bool);

    // @dev this is not available in V0
    function isMintWhitelisted(address minter) external view returns (bool);

    function projectIdToArtistAddress(uint256 _projectId)
        external
        view
        returns (address payable);

    function projectIdToAdditionalPayee(uint256 _projectId)
        external
        view
        returns (address payable);

    function projectIdToAdditionalPayeePercentage(uint256 _projectId)
        external
        view
        returns (uint256);

    function projectTokenInfo(uint256 _projectId)
        external
        view
        returns (
            address,
            uint256,
            uint256,
            uint256,
            bool,
            address,
            uint256,
            string memory,
            address
        );

    function artblocksAddress() external view returns (address payable);

    function artblocksPercentage() external view returns (uint256);

    function mint(
        address _to,
        uint256 _projectId,
        address _by
    ) external returns (uint256 tokenId);

    function getRoyaltyData(uint256 _tokenId)
        external
        view
        returns (
            address artistAddress,
            address additionalPayee,
            uint256 additionalPayeePercentage,
            uint256 royaltyFeeByID
        );
}

File 3 of 5 : IMinterFilterV0.sol
// SPDX-License-Identifier: LGPL-3.0-only
// Created By: Art Blocks Inc.

pragma solidity ^0.8.0;

interface IMinterFilterV0 {
    /**
     * @notice Approved minter `_minterAddress`.
     */
    event MinterApproved(address indexed _minterAddress, string _minterType);

    /**
     * @notice Revoked approval for minter `_minterAddress`
     */
    event MinterRevoked(address indexed _minterAddress);

    /**
     * @notice Minter `_minterAddress` of type `_minterType`
     * registered for project `_projectId`.
     */
    event ProjectMinterRegistered(
        uint256 indexed _projectId,
        address indexed _minterAddress,
        string _minterType
    );

    /**
     * @notice Any active minter removed for project `_projectId`.
     */
    event ProjectMinterRemoved(uint256 indexed _projectId);

    function genArt721CoreAddress() external returns (address);

    function setMinterForProject(uint256, address) external;

    function removeMinterForProject(uint256) external;

    function mint(
        address _to,
        uint256 _projectId,
        address sender
    ) external returns (uint256);

    function getMinterForProject(uint256) external view returns (address);

    function projectHasMinter(uint256) external view returns (bool);
}

File 4 of 5 : IFilteredMinterV0.sol
// SPDX-License-Identifier: LGPL-3.0-only
// Created By: Art Blocks Inc.

pragma solidity ^0.8.0;

interface IFilteredMinterV0 {
    /**
     * @notice Price per token in wei updated for project `_projectId` to
     * `_pricePerTokenInWei`.
     */
    event PricePerTokenInWeiUpdated(
        uint256 indexed _projectId,
        uint256 indexed _pricePerTokenInWei
    );

    /**
     * @notice Currency updated for project `_projectId` to symbol
     * `_currencySymbol` and address `_currencyAddress`.
     */
    event ProjectCurrencyInfoUpdated(
        uint256 indexed _projectId,
        address indexed _currencyAddress,
        string _currencySymbol
    );

    /// togglePurchaseToDisabled updated
    event PurchaseToDisabledUpdated(
        uint256 indexed _projectId,
        bool _purchaseToDisabled
    );

    // getter function of public variable
    function minterType() external view returns (string memory);

    function genArt721CoreAddress() external returns (address);

    function minterFilterAddress() external returns (address);

    // Triggers a purchase of a token from the desired project, to the
    // TX-sending address.
    function purchase(uint256 _projectId)
        external
        payable
        returns (uint256 tokenId);

    // Triggers a purchase of a token from the desired project, to the specified
    // receiving address.
    function purchaseTo(address _to, uint256 _projectId)
        external
        payable
        returns (uint256 tokenId);

    // Toggles the ability for `purchaseTo` to be called directly with a
    // specified receiving address that differs from the TX-sending address.
    function togglePurchaseToDisabled(uint256 _projectId) external;

    // Called to make the minter contract aware of the max invocations for a
    // given project.
    function setProjectMaxInvocations(uint256 _projectId) external;

    // Gets if token price is configured, token price in wei, currency symbol,
    // and currency address, assuming this is project's minter.
    // Supersedes any defined core price.
    function getPriceInfo(uint256 _projectId)
        external
        view
        returns (
            bool isConfigured,
            uint256 tokenPriceInWei,
            string memory currencySymbol,
            address currencyAddress
        );
}

File 5 of 5 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 100
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_genArt721Address","type":"address"},{"internalType":"address","name":"_minterFilter","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_projectId","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"_pricePerTokenInWei","type":"uint256"}],"name":"PricePerTokenInWeiUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_projectId","type":"uint256"},{"indexed":true,"internalType":"address","name":"_currencyAddress","type":"address"},{"indexed":false,"internalType":"string","name":"_currencySymbol","type":"string"}],"name":"ProjectCurrencyInfoUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_projectId","type":"uint256"},{"indexed":false,"internalType":"bool","name":"_purchaseToDisabled","type":"bool"}],"name":"PurchaseToDisabledUpdated","type":"event"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"contractMintable","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"genArt721CoreAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"}],"name":"getPriceInfo","outputs":[{"internalType":"bool","name":"isConfigured","type":"bool"},{"internalType":"uint256","name":"tokenPriceInWei","type":"uint256"},{"internalType":"string","name":"currencySymbol","type":"string"},{"internalType":"address","name":"currencyAddress","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minterFilterAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minterType","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"projectMaxHasBeenInvoked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"projectMaxInvocations","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"projectMintCounter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"projectMintLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"}],"name":"purchase","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_projectId","type":"uint256"}],"name":"purchaseTo","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"purchaseToDisabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"}],"name":"setProjectMaxInvocations","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"uint8","name":"_limit","type":"uint8"}],"name":"setProjectMintLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"}],"name":"toggleContractMintable","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"}],"name":"togglePurchaseToDisabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"uint256","name":"_pricePerTokenInWei","type":"uint256"}],"name":"updatePricePerTokenInWei","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6101006040523480156200001257600080fd5b5060405162001aba38038062001aba833981016040819052620000359162000157565b600160009081556001600160a01b03808416608081905260a081905290831660c081905260e0819052604080516392a10f8360e01b81529051929391926392a10f8392600480840193602093929083900390910190829087803b1580156200009c57600080fd5b505af1158015620000b1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620000d791906200018f565b6001600160a01b031614620001325760405162461bcd60e51b815260206004820152601860248201527f496c6c6567616c20636f6e74726163742070616972696e670000000000000000604482015260640160405180910390fd5b5050620001b4565b80516001600160a01b03811681146200015257600080fd5b919050565b600080604083850312156200016b57600080fd5b62000176836200013a565b915062000186602084016200013a565b90509250929050565b600060208284031215620001a257600080fd5b620001ad826200013a565b9392505050565b60805160a05160c05160e05161187f6200023b6000396000610a540152600061037901526000818161042e015281816105070152818161061d01528181610b5f01528181610c4901528181610d0d01528181610e8401528181610f33015281816110730152818161112e015281816111e50152611332015260006102b8015261187f6000f3fe6080604052600436106100de5760003560e01c8063891407c011610085578063891407c01461029357806392a10f83146102a6578063acffea05146102e7578063bee5600314610307578063cfff5cf114610337578063dd85582f14610367578063e9d1e8ac1461039b578063efef39a1146103e4578063f7bd4b88146103f757600080fd5b8063231c2281146100e35780633a4657b41461010557806340d1397e14610150578063462add461461017057806356690aaf146101b057806362f7a7ed146101dd5780636cb9b7ff1461020a578063774159c61461022a575b600080fd5b3480156100ef57600080fd5b506101036100fe366004611458565b610417565b005b34801561011157600080fd5b5061013d6101203660046114a3565b600360209081526000928352604080842090915290825290205481565b6040519081526020015b60405180910390f35b34801561015c57600080fd5b5061010361016b3660046114cf565b6104f0565b34801561017c57600080fd5b506101a061018b3660046114cf565b60056020526000908152604090205460ff1681565b6040519015158152602001610147565b3480156101bc57600080fd5b5061013d6101cb3660046114cf565b60066020526000908152604090205481565b3480156101e957600080fd5b5061013d6101f83660046114cf565b60046020526000908152604090205481565b34801561021657600080fd5b506101036102253660046114e8565b610605565b34801561023657600080fd5b506102836102453660046114cf565b60009081526008602090815260408083205460078352818420548251808401909352600383526208aa8960eb1b9383019390935260ff169391929091565b6040516101479493929190611566565b61013d6102a13660046114a3565b610742565b3480156102b257600080fd5b506102da7f000000000000000000000000000000000000000000000000000000000000000081565b60405161014791906115a0565b3480156102f357600080fd5b506101036103023660046114cf565b610b48565b34801561031357600080fd5b506101a06103223660046114cf565b60016020526000908152604090205460ff1681565b34801561034357600080fd5b506101a06103523660046114cf565b60026020526000908152604090205460ff1681565b34801561037357600080fd5b506102da7f000000000000000000000000000000000000000000000000000000000000000081565b3480156103a757600080fd5b506103d76040518060400160405280601081526020016f04d696e746572536574507269636556360841b81525081565b60405161014791906115b4565b61013d6103f23660046114cf565b610c20565b34801561040357600080fd5b506101036104123660046114cf565b610c32565b604051633af32abf60e01b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690633af32abf906104639033906004016115a0565b60206040518083038186803b15801561047b57600080fd5b505afa15801561048f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104b391906115e3565b6104d85760405162461bcd60e51b81526004016104cf906115fe565b60405180910390fd5b60009182526004602052604090912060ff9091169055565b604051633af32abf60e01b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690633af32abf9061053c9033906004016115a0565b60206040518083038186803b15801561055457600080fd5b505afa158015610568573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061058c91906115e3565b6105a85760405162461bcd60e51b81526004016104cf906115fe565b600081815260026020908152604091829020805460ff8082161560ff199092168217909255925192161515825282917fce8ced1e9d6979c7589d3c8786f4d51a8034faa5ff2cbc5a2271364f787feccb910160405180910390a250565b60405163a47d29cb60e01b81526004810183905282907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063a47d29cb9060240160206040518083038186803b15801561066757600080fd5b505afa15801561067b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061069f919061162d565b6001600160a01b0316336001600160a01b0316146106ed5760405162461bcd60e51b815260206004820152600b60248201526a13db9b1e48105c9d1a5cdd60aa1b60448201526064016104cf565b60008381526007602090815260408083208590556008909152808220805460ff1916600117905551839185917f26118a27aca826f829f3bfe21b140b4455c00b434849bd0da50d1e1a9720fb5c9190a3505050565b6000600260005414156107975760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016104cf565b600260009081558281526005602052604090205460ff16156108095760405162461bcd60e51b815260206004820152602560248201527f4d6178696d756d206e756d626572206f6620696e766f636174696f6e732072656044820152641858da195960da1b60648201526084016104cf565b60008281526008602052604090205460ff1661085e5760405162461bcd60e51b8152602060048201526014602482015273141c9a58d9481b9bdd0818dbdb999a59dd5c995960621b60448201526064016104cf565b60008281526001602052604090205460ff166108b6573332146108b65760405162461bcd60e51b815260206004820152601060248201526f4e6f20436f6e7472616374204275797360801b60448201526064016104cf565b60008281526002602052604090205460ff161561091f57336001600160a01b0384161461091f5760405162461bcd60e51b8152602060048201526017602482015276139bc8181c1d5c98da185cd9551bd808105b1b1bddd959604a1b60448201526064016104cf565b60008281526007602052604090205434101561097d5760405162461bcd60e51b815260206004820181905260248201527f4d7573742073656e64206d696e696d756d2076616c756520746f206d696e742160448201526064016104cf565b60008281526004602052604090205415610a28576000828152600460209081526040808320543384526003835281842086855290925290912054106109fc5760405162461bcd60e51b815260206004820152601560248201527414995858da1959081b5a5b9d1a5b99c81b1a5b5a5d605a1b60448201526064016104cf565b3360009081526003602090815260408083208584529091528120805491610a2283611660565b91905055505b604051630d4d151360e01b81526001600160a01b038481166004830152602482018490523360448301527f00000000000000000000000000000000000000000000000000000000000000001690630d4d151390606401602060405180830381600087803b158015610a9857600080fd5b505af1158015610aac573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ad0919061167b565b60008381526006602052604090205490915015801590610b155750600082815260066020526040902054610b0690600190611694565b610b13620f4240836116c1565b145b15610b34576000828152600560205260409020805460ff191660011790555b610b3d82610dcc565b600160005592915050565b604051633af32abf60e01b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690633af32abf90610b949033906004016115a0565b60206040518083038186803b158015610bac57600080fd5b505afa158015610bc0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610be491906115e3565b610c005760405162461bcd60e51b81526004016104cf906115fe565b6000908152600160205260409020805460ff19811660ff90911615179055565b6000610c2c3383610742565b92915050565b604051633af32abf60e01b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690633af32abf90610c7e9033906004016115a0565b60206040518083038186803b158015610c9657600080fd5b505afa158015610caa573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cce91906115e3565b610cea5760405162461bcd60e51b81526004016104cf906115fe565b6040516346161b1160e11b81526004810182905260009081906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690638c2c36229060240160006040518083038186803b158015610d4f57600080fd5b505afa158015610d63573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610d8b91908101906116f6565b505050600089815260066020526040902083905550919550935050505080821015610dc7576000838152600560205260409020805460ff191690555b505050565b34156114555760008181526007602052604081205490610dec8234611694565b90508015610e7e57604051600090339083908381818185875af1925050503d8060008114610e36576040519150601f19603f3d011682016040523d82523d6000602084013e610e3b565b606091505b5050905080610e7c5760405162461bcd60e51b815260206004820152600d60248201526c1499599d5b990819985a5b1959609a1b60448201526064016104cf565b505b600060647f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316634f029c396040518163ffffffff1660e01b815260040160206040518083038186803b158015610edb57600080fd5b505afa158015610eef573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f13919061167b565b610f1d9085611816565b610f279190611835565b905080156110605760007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316633949f9066040518163ffffffff1660e01b815260040160206040518083038186803b158015610f8a57600080fd5b505afa158015610f9e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fc2919061162d565b6001600160a01b03168260405160006040518083038185875af1925050503d806000811461100c576040519150601f19603f3d011682016040523d82523d6000602084013e611011565b606091505b505090508061105e5760405162461bcd60e51b8152602060048201526019602482015278119bdd5b99185d1a5bdb881c185e5b595b9d0819985a5b1959603a1b60448201526064016104cf565b505b600061106c8285611694565b90506000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663cc74234b886040518263ffffffff1660e01b81526004016110bf91815260200190565b60206040518083038186803b1580156110d757600080fd5b505afa1580156110eb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061110f919061167b565b11156113055760405163cc74234b60e01b8152600481018790526064907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063cc74234b9060240160206040518083038186803b15801561117857600080fd5b505afa15801561118c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111b0919061167b565b6111ba9084611816565b6111c49190611835565b9050801561130557604051636bd8225b60e11b8152600481018790526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063d7b044b69060240160206040518083038186803b15801561122f57600080fd5b505afa158015611243573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611267919061162d565b6001600160a01b03168260405160006040518083038185875af1925050503d80600081146112b1576040519150601f19603f3d011682016040523d82523d6000602084013e6112b6565b606091505b50509050806113035760405162461bcd60e51b81526020600482015260196024820152781059191a5d1a5bdb985b081c185e5b595b9d0819985a5b1959603a1b60448201526064016104cf565b505b60006113118284611694565b9050801561144e5760405163a47d29cb60e01b8152600481018890526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063a47d29cb9060240160206040518083038186803b15801561137c57600080fd5b505afa158015611390573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113b4919061162d565b6001600160a01b03168260405160006040518083038185875af1925050503d80600081146113fe576040519150601f19603f3d011682016040523d82523d6000602084013e611403565b606091505b505090508061144c5760405162461bcd60e51b8152602060048201526015602482015274105c9d1a5cdd081c185e5b595b9d0819985a5b1959605a1b60448201526064016104cf565b505b5050505050505b50565b6000806040838503121561146b57600080fd5b82359150602083013560ff8116811461148357600080fd5b809150509250929050565b6001600160a01b038116811461145557600080fd5b600080604083850312156114b657600080fd5b82356114c18161148e565b946020939093013593505050565b6000602082840312156114e157600080fd5b5035919050565b600080604083850312156114fb57600080fd5b50508035926020909101359150565b60005b8381101561152557818101518382015260200161150d565b83811115611534576000848401525b50505050565b6000815180845261155281602086016020860161150a565b601f01601f19169290920160200192915050565b8415158152836020820152608060408201526000611587608083018561153a565b905060018060a01b038316606083015295945050505050565b6001600160a01b0391909116815260200190565b6020815260006115c7602083018461153a565b9392505050565b805180151581146115de57600080fd5b919050565b6000602082840312156115f557600080fd5b6115c7826115ce565b60208082526015908201527413db9b1e4810dbdc99481dda1a5d195b1a5cdd1959605a1b604082015260600190565b60006020828403121561163f57600080fd5b81516115c78161148e565b634e487b7160e01b600052601160045260246000fd5b60006000198214156116745761167461164a565b5060010190565b60006020828403121561168d57600080fd5b5051919050565b6000828210156116a6576116a661164a565b500390565b634e487b7160e01b600052601260045260246000fd5b6000826116d0576116d06116ab565b500690565b80516115de8161148e565b634e487b7160e01b600052604160045260246000fd5b60008060008060008060008060006101208a8c03121561171557600080fd5b89516117208161148e565b8099505060208a0151975060408a0151965060608a0151955061174560808b016115ce565b945060a08a01516117558161148e565b60c08b015160e08c0151919550935067ffffffffffffffff8082111561177a57600080fd5b818c0191508c601f83011261178e57600080fd5b8151818111156117a0576117a06116e0565b604051601f8201601f19908116603f011681019083821181831017156117c8576117c86116e0565b816040528281528f60208487010111156117e157600080fd5b6117f283602083016020880161150a565b80965050505050506118076101008b016116d5565b90509295985092959850929598565b60008160001904831182151516156118305761183061164a565b500290565b600082611844576118446116ab565b50049056fea264697066735822122018d6ad23c5bd5a82f971eb189364aaefb524b83207aed3d64fe3bbe701165bb264736f6c63430008090033000000000000000000000000a7d8d9ef8d8ce8992df33d8b8cf4aebabd5bd2700000000000000000000000004aafce293b9b0fad169c78049a81e400f518e199

Deployed Bytecode

0x6080604052600436106100de5760003560e01c8063891407c011610085578063891407c01461029357806392a10f83146102a6578063acffea05146102e7578063bee5600314610307578063cfff5cf114610337578063dd85582f14610367578063e9d1e8ac1461039b578063efef39a1146103e4578063f7bd4b88146103f757600080fd5b8063231c2281146100e35780633a4657b41461010557806340d1397e14610150578063462add461461017057806356690aaf146101b057806362f7a7ed146101dd5780636cb9b7ff1461020a578063774159c61461022a575b600080fd5b3480156100ef57600080fd5b506101036100fe366004611458565b610417565b005b34801561011157600080fd5b5061013d6101203660046114a3565b600360209081526000928352604080842090915290825290205481565b6040519081526020015b60405180910390f35b34801561015c57600080fd5b5061010361016b3660046114cf565b6104f0565b34801561017c57600080fd5b506101a061018b3660046114cf565b60056020526000908152604090205460ff1681565b6040519015158152602001610147565b3480156101bc57600080fd5b5061013d6101cb3660046114cf565b60066020526000908152604090205481565b3480156101e957600080fd5b5061013d6101f83660046114cf565b60046020526000908152604090205481565b34801561021657600080fd5b506101036102253660046114e8565b610605565b34801561023657600080fd5b506102836102453660046114cf565b60009081526008602090815260408083205460078352818420548251808401909352600383526208aa8960eb1b9383019390935260ff169391929091565b6040516101479493929190611566565b61013d6102a13660046114a3565b610742565b3480156102b257600080fd5b506102da7f000000000000000000000000a7d8d9ef8d8ce8992df33d8b8cf4aebabd5bd27081565b60405161014791906115a0565b3480156102f357600080fd5b506101036103023660046114cf565b610b48565b34801561031357600080fd5b506101a06103223660046114cf565b60016020526000908152604090205460ff1681565b34801561034357600080fd5b506101a06103523660046114cf565b60026020526000908152604090205460ff1681565b34801561037357600080fd5b506102da7f0000000000000000000000004aafce293b9b0fad169c78049a81e400f518e19981565b3480156103a757600080fd5b506103d76040518060400160405280601081526020016f04d696e746572536574507269636556360841b81525081565b60405161014791906115b4565b61013d6103f23660046114cf565b610c20565b34801561040357600080fd5b506101036104123660046114cf565b610c32565b604051633af32abf60e01b81526001600160a01b037f000000000000000000000000a7d8d9ef8d8ce8992df33d8b8cf4aebabd5bd2701690633af32abf906104639033906004016115a0565b60206040518083038186803b15801561047b57600080fd5b505afa15801561048f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104b391906115e3565b6104d85760405162461bcd60e51b81526004016104cf906115fe565b60405180910390fd5b60009182526004602052604090912060ff9091169055565b604051633af32abf60e01b81526001600160a01b037f000000000000000000000000a7d8d9ef8d8ce8992df33d8b8cf4aebabd5bd2701690633af32abf9061053c9033906004016115a0565b60206040518083038186803b15801561055457600080fd5b505afa158015610568573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061058c91906115e3565b6105a85760405162461bcd60e51b81526004016104cf906115fe565b600081815260026020908152604091829020805460ff8082161560ff199092168217909255925192161515825282917fce8ced1e9d6979c7589d3c8786f4d51a8034faa5ff2cbc5a2271364f787feccb910160405180910390a250565b60405163a47d29cb60e01b81526004810183905282907f000000000000000000000000a7d8d9ef8d8ce8992df33d8b8cf4aebabd5bd2706001600160a01b03169063a47d29cb9060240160206040518083038186803b15801561066757600080fd5b505afa15801561067b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061069f919061162d565b6001600160a01b0316336001600160a01b0316146106ed5760405162461bcd60e51b815260206004820152600b60248201526a13db9b1e48105c9d1a5cdd60aa1b60448201526064016104cf565b60008381526007602090815260408083208590556008909152808220805460ff1916600117905551839185917f26118a27aca826f829f3bfe21b140b4455c00b434849bd0da50d1e1a9720fb5c9190a3505050565b6000600260005414156107975760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016104cf565b600260009081558281526005602052604090205460ff16156108095760405162461bcd60e51b815260206004820152602560248201527f4d6178696d756d206e756d626572206f6620696e766f636174696f6e732072656044820152641858da195960da1b60648201526084016104cf565b60008281526008602052604090205460ff1661085e5760405162461bcd60e51b8152602060048201526014602482015273141c9a58d9481b9bdd0818dbdb999a59dd5c995960621b60448201526064016104cf565b60008281526001602052604090205460ff166108b6573332146108b65760405162461bcd60e51b815260206004820152601060248201526f4e6f20436f6e7472616374204275797360801b60448201526064016104cf565b60008281526002602052604090205460ff161561091f57336001600160a01b0384161461091f5760405162461bcd60e51b8152602060048201526017602482015276139bc8181c1d5c98da185cd9551bd808105b1b1bddd959604a1b60448201526064016104cf565b60008281526007602052604090205434101561097d5760405162461bcd60e51b815260206004820181905260248201527f4d7573742073656e64206d696e696d756d2076616c756520746f206d696e742160448201526064016104cf565b60008281526004602052604090205415610a28576000828152600460209081526040808320543384526003835281842086855290925290912054106109fc5760405162461bcd60e51b815260206004820152601560248201527414995858da1959081b5a5b9d1a5b99c81b1a5b5a5d605a1b60448201526064016104cf565b3360009081526003602090815260408083208584529091528120805491610a2283611660565b91905055505b604051630d4d151360e01b81526001600160a01b038481166004830152602482018490523360448301527f0000000000000000000000004aafce293b9b0fad169c78049a81e400f518e1991690630d4d151390606401602060405180830381600087803b158015610a9857600080fd5b505af1158015610aac573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ad0919061167b565b60008381526006602052604090205490915015801590610b155750600082815260066020526040902054610b0690600190611694565b610b13620f4240836116c1565b145b15610b34576000828152600560205260409020805460ff191660011790555b610b3d82610dcc565b600160005592915050565b604051633af32abf60e01b81526001600160a01b037f000000000000000000000000a7d8d9ef8d8ce8992df33d8b8cf4aebabd5bd2701690633af32abf90610b949033906004016115a0565b60206040518083038186803b158015610bac57600080fd5b505afa158015610bc0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610be491906115e3565b610c005760405162461bcd60e51b81526004016104cf906115fe565b6000908152600160205260409020805460ff19811660ff90911615179055565b6000610c2c3383610742565b92915050565b604051633af32abf60e01b81526001600160a01b037f000000000000000000000000a7d8d9ef8d8ce8992df33d8b8cf4aebabd5bd2701690633af32abf90610c7e9033906004016115a0565b60206040518083038186803b158015610c9657600080fd5b505afa158015610caa573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cce91906115e3565b610cea5760405162461bcd60e51b81526004016104cf906115fe565b6040516346161b1160e11b81526004810182905260009081906001600160a01b037f000000000000000000000000a7d8d9ef8d8ce8992df33d8b8cf4aebabd5bd2701690638c2c36229060240160006040518083038186803b158015610d4f57600080fd5b505afa158015610d63573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610d8b91908101906116f6565b505050600089815260066020526040902083905550919550935050505080821015610dc7576000838152600560205260409020805460ff191690555b505050565b34156114555760008181526007602052604081205490610dec8234611694565b90508015610e7e57604051600090339083908381818185875af1925050503d8060008114610e36576040519150601f19603f3d011682016040523d82523d6000602084013e610e3b565b606091505b5050905080610e7c5760405162461bcd60e51b815260206004820152600d60248201526c1499599d5b990819985a5b1959609a1b60448201526064016104cf565b505b600060647f000000000000000000000000a7d8d9ef8d8ce8992df33d8b8cf4aebabd5bd2706001600160a01b0316634f029c396040518163ffffffff1660e01b815260040160206040518083038186803b158015610edb57600080fd5b505afa158015610eef573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f13919061167b565b610f1d9085611816565b610f279190611835565b905080156110605760007f000000000000000000000000a7d8d9ef8d8ce8992df33d8b8cf4aebabd5bd2706001600160a01b0316633949f9066040518163ffffffff1660e01b815260040160206040518083038186803b158015610f8a57600080fd5b505afa158015610f9e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fc2919061162d565b6001600160a01b03168260405160006040518083038185875af1925050503d806000811461100c576040519150601f19603f3d011682016040523d82523d6000602084013e611011565b606091505b505090508061105e5760405162461bcd60e51b8152602060048201526019602482015278119bdd5b99185d1a5bdb881c185e5b595b9d0819985a5b1959603a1b60448201526064016104cf565b505b600061106c8285611694565b90506000807f000000000000000000000000a7d8d9ef8d8ce8992df33d8b8cf4aebabd5bd2706001600160a01b031663cc74234b886040518263ffffffff1660e01b81526004016110bf91815260200190565b60206040518083038186803b1580156110d757600080fd5b505afa1580156110eb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061110f919061167b565b11156113055760405163cc74234b60e01b8152600481018790526064907f000000000000000000000000a7d8d9ef8d8ce8992df33d8b8cf4aebabd5bd2706001600160a01b03169063cc74234b9060240160206040518083038186803b15801561117857600080fd5b505afa15801561118c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111b0919061167b565b6111ba9084611816565b6111c49190611835565b9050801561130557604051636bd8225b60e11b8152600481018790526000907f000000000000000000000000a7d8d9ef8d8ce8992df33d8b8cf4aebabd5bd2706001600160a01b03169063d7b044b69060240160206040518083038186803b15801561122f57600080fd5b505afa158015611243573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611267919061162d565b6001600160a01b03168260405160006040518083038185875af1925050503d80600081146112b1576040519150601f19603f3d011682016040523d82523d6000602084013e6112b6565b606091505b50509050806113035760405162461bcd60e51b81526020600482015260196024820152781059191a5d1a5bdb985b081c185e5b595b9d0819985a5b1959603a1b60448201526064016104cf565b505b60006113118284611694565b9050801561144e5760405163a47d29cb60e01b8152600481018890526000907f000000000000000000000000a7d8d9ef8d8ce8992df33d8b8cf4aebabd5bd2706001600160a01b03169063a47d29cb9060240160206040518083038186803b15801561137c57600080fd5b505afa158015611390573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113b4919061162d565b6001600160a01b03168260405160006040518083038185875af1925050503d80600081146113fe576040519150601f19603f3d011682016040523d82523d6000602084013e611403565b606091505b505090508061144c5760405162461bcd60e51b8152602060048201526015602482015274105c9d1a5cdd081c185e5b595b9d0819985a5b1959605a1b60448201526064016104cf565b505b5050505050505b50565b6000806040838503121561146b57600080fd5b82359150602083013560ff8116811461148357600080fd5b809150509250929050565b6001600160a01b038116811461145557600080fd5b600080604083850312156114b657600080fd5b82356114c18161148e565b946020939093013593505050565b6000602082840312156114e157600080fd5b5035919050565b600080604083850312156114fb57600080fd5b50508035926020909101359150565b60005b8381101561152557818101518382015260200161150d565b83811115611534576000848401525b50505050565b6000815180845261155281602086016020860161150a565b601f01601f19169290920160200192915050565b8415158152836020820152608060408201526000611587608083018561153a565b905060018060a01b038316606083015295945050505050565b6001600160a01b0391909116815260200190565b6020815260006115c7602083018461153a565b9392505050565b805180151581146115de57600080fd5b919050565b6000602082840312156115f557600080fd5b6115c7826115ce565b60208082526015908201527413db9b1e4810dbdc99481dda1a5d195b1a5cdd1959605a1b604082015260600190565b60006020828403121561163f57600080fd5b81516115c78161148e565b634e487b7160e01b600052601160045260246000fd5b60006000198214156116745761167461164a565b5060010190565b60006020828403121561168d57600080fd5b5051919050565b6000828210156116a6576116a661164a565b500390565b634e487b7160e01b600052601260045260246000fd5b6000826116d0576116d06116ab565b500690565b80516115de8161148e565b634e487b7160e01b600052604160045260246000fd5b60008060008060008060008060006101208a8c03121561171557600080fd5b89516117208161148e565b8099505060208a0151975060408a0151965060608a0151955061174560808b016115ce565b945060a08a01516117558161148e565b60c08b015160e08c0151919550935067ffffffffffffffff8082111561177a57600080fd5b818c0191508c601f83011261178e57600080fd5b8151818111156117a0576117a06116e0565b604051601f8201601f19908116603f011681019083821181831017156117c8576117c86116e0565b816040528281528f60208487010111156117e157600080fd5b6117f283602083016020880161150a565b80965050505050506118076101008b016116d5565b90509295985092959850929598565b60008160001904831182151516156118305761183061164a565b500290565b600082611844576118446116ab565b50049056fea264697066735822122018d6ad23c5bd5a82f971eb189364aaefb524b83207aed3d64fe3bbe701165bb264736f6c63430008090033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

000000000000000000000000a7d8d9ef8d8ce8992df33d8b8cf4aebabd5bd2700000000000000000000000004aafce293b9b0fad169c78049a81e400f518e199

-----Decoded View---------------
Arg [0] : _genArt721Address (address): 0xa7d8d9ef8D8Ce8992Df33D8b8CF4Aebabd5bD270
Arg [1] : _minterFilter (address): 0x4aafCE293b9B0faD169c78049A81e400f518E199

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000a7d8d9ef8d8ce8992df33d8b8cf4aebabd5bd270
Arg [1] : 0000000000000000000000004aafce293b9b0fad169c78049a81e400f518e199


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

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.