ETH Price: $2,743.36 (-0.46%)

Token

Goopen Editions by BK (BK)
 

Overview

Max Total Supply

200 BK

Holders

90

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
qpozell.eth
0x02c2e025b219976c85b70a2e0cf110c97930e8c9
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
BK

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 8 : BK.sol
// SPDX-License-Identifier: UNLICENSED

pragma solidity ^0.8.17;

import "solmate/tokens/ERC1155.sol";
import "solmate/auth/Owned.sol";
import "solmate/utils/ReentrancyGuard.sol";
import "./IETHGobblers.sol";
import "oz/utils/Strings.sol";
import "./IERC20.sol";

/// @author The Eth Gobblers Team
/// @title 1st Goopen Editions - Homage to BK and PEPE

contract BK is ERC1155, Owned, ReentrancyGuard {

    using Strings for uint;

    string public name;
    string public symbol;

    mapping(uint => string) private _tokenURIs;
    
    /// @notice The address of the artist who's work is reporesented by this contract.
    address public artist;
    
    /// @notice The contract address of the ETH GOBBLERS(GOOEY) NFT collection.
    address public gooey = 0x0A8D311B99DdAA9EBb45FD606Eb0A1533004f26b;

    /// @notice The PEPE token contract
    address public pepe = 0x6982508145454Ce325dDbE47a25d4ec3d2311933;

    /// @notice The First Thread Receipt contract
    address public firstThread;
    
    /// @notice The current token ID that would be minted if the mint function is called.
    uint public currentToken;
    
    /// @notice The cost of minting the current token in wei.
    uint public mintCost = 0.0042 ether;

    /// @notice The cost of minting the current token in PEPE.
    uint public mintCostPepe = 25000000000000000000000000;
    
    /// @notice Whether or not minting is active for the current token.
    bool public mintActive;

    /// @notice A mapping of token IDs to a mapping of GOOEY IDs to a boolean indicating wether or not that Gooey has been used to mint that token.
    mapping (uint => mapping (uint => bool)) public gooeyMinted;
    
    constructor(
        string memory _name,
        string memory _symbol,
        address _artist,
        address _owner
    )Owned(_owner) {
        name = _name;
        symbol = _symbol;
        artist = _artist;
    }

    receive() external payable {
        if(mintCost == 0){
            mint(1);
        } else {
            uint amount = msg.value / mintCost;
            mint(amount);
        }
    }
    
    /// @notice Mint a specific amount of the currentToken.
    /// @param amount The amount of tokens to mint.
    function mint(uint amount) public payable nonReentrant {
        require(mintActive, "Minting is not active for this token");
        require(msg.value == mintCost * amount, "Insufficient ETH sent");
        _mint(msg.sender, currentToken, amount, "");
        payable(artist).transfer(msg.value);
    }

    /// @notice Mint a token using a Gooey.
    /// @param gooeyId The ID of the Gooey to use to mint the token.
    function mintWithGooey(uint gooeyId) external nonReentrant {
        require(mintActive, "Minting is not active for this token");
        require(gooeyMinted[currentToken][gooeyId] == false, "This Gooey has already been used to mint this token");
        require(IETHGobblers(gooey).ownerOf(gooeyId) == msg.sender, "You do not own this Gooey");
        _mint(msg.sender, currentToken, 1, "");
        gooeyMinted[currentToken][gooeyId] = true;
    }

    /// @notice Mint a token using a Pepe token.
    /// @param amount The amount of tokens to mint.
    /// @dev Must approve the token first
    function mintWithPEPE(uint256 amount) external nonReentrant {
        require(mintActive, "Minting is not active for this token");
        IERC20(pepe).transferFrom(msg.sender, artist, amount * mintCostPepe);
        _mint(msg.sender, currentToken, amount, "");
    }

    function uri(uint tokenId) public view override returns (string memory) {
        string memory tokenURI = _tokenURIs[tokenId];
        return tokenURI;
    }

    /// @notice Set the token URI for a specific token.
    /// @param tokenId The ID of the token to set the URI for.
    /// @param tokenURI The URI to set.
    function setURI(uint tokenId, string calldata tokenURI) external onlyOwner {
        _tokenURIs[tokenId] = tokenURI;    
    }

    /// @notice Deactivate minting on the contract and progress the currentTokenCounter.
    function deactivateMint() external onlyOwner {
        require (mintActive == true, "Minting is already inactive");
        mintActive = false;
        currentToken++;
    }

    /// @notice Activate minting on the contract.
    function activateMint() external onlyOwner {
        require (mintActive == false, "Minting is already active");
        mintActive = true;
    }

    /// @notice Update the gooey address.
    /// @param newGooey The new gooey address.
    function updateGooey(address newGooey) external onlyOwner {
        gooey = newGooey;
    }

    /// @notice Update the artist address.
    /// @param newArtist The new artist address.
    function updateArtist(address newArtist) external onlyOwner {
        artist = newArtist;
    }

    /// @notice Update the pepe address.
    /// @param newPepe The new pepe address.
    function updatePepe(address newPepe) external onlyOwner {
        pepe = newPepe;
    }

    /// @notice Update the PEPE mint cost.
    /// @param newPepeMintCost The new pepe address.
    function updatePepeMintCost(uint256 newPepeMintCost) external onlyOwner {
        mintCostPepe = newPepeMintCost;
    }
    
    /// @notice Update ETH mint cost in WEI
    /// @param newMintCost The cost of minting a token represented in wei.
    function updateMintCost(uint256 newMintCost) external onlyOwner {
        mintCost = newMintCost;
    }

    /// @notice Update the First Thread address.
    /// @param newFirstThread The new First Thread address.
    function updateFirstThread(address newFirstThread) external onlyOwner {
        firstThread = newFirstThread;
    }

    /// @notice Override safe transfer from to permission First Thread contract
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes calldata data
    ) public override {
        require(msg.sender == from || isApprovedForAll[from][msg.sender] || msg.sender == firstThread, "NOT_AUTHORIZED");

        balanceOf[from][id] -= amount;
        balanceOf[to][id] += amount;

        emit TransferSingle(msg.sender, from, to, id, amount);

        require(
            to.code.length == 0
                ? to != address(0)
                : ERC1155TokenReceiver(to).onERC1155Received(msg.sender, from, id, amount, data) ==
                    ERC1155TokenReceiver.onERC1155Received.selector,
            "UNSAFE_RECIPIENT"
        );
    }

    /// @notice Override safe transfer from to permission First Thread contract
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] calldata ids,
        uint256[] calldata amounts,
        bytes calldata data
    ) public override {
        require(ids.length == amounts.length, "LENGTH_MISMATCH");

        require(msg.sender == from || isApprovedForAll[from][msg.sender] || msg.sender == firstThread, "NOT_AUTHORIZED");

        // Storing these outside the loop saves ~15 gas per iteration.
        uint256 id;
        uint256 amount;

        for (uint256 i = 0; i < ids.length; ) {
            id = ids[i];
            amount = amounts[i];

            balanceOf[from][id] -= amount;
            balanceOf[to][id] += amount;

            // An array can't have a total length
            // larger than the max uint256 value.
            unchecked {
                ++i;
            }
        }

        emit TransferBatch(msg.sender, from, to, ids, amounts);

        require(
            to.code.length == 0
                ? to != address(0)
                : ERC1155TokenReceiver(to).onERC1155BatchReceived(msg.sender, from, ids, amounts, data) ==
                    ERC1155TokenReceiver.onERC1155BatchReceived.selector,
            "UNSAFE_RECIPIENT"
        );
    }

}

File 2 of 8 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

import "./math/Math.sol";

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _SYMBOLS = "0123456789abcdef";
    uint8 private constant _ADDRESS_LENGTH = 20;

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, Math.log256(value) + 1);
        }
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }
}

File 3 of 8 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
     * with further edits by Uniswap Labs also under MIT license.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator
    ) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod0 := mul(x, y)
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1);

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
            // See https://cs.stackexchange.com/q/138556/92363.

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
            // in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator,
        Rounding rounding
    ) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10**64) {
                value /= 10**64;
                result += 64;
            }
            if (value >= 10**32) {
                value /= 10**32;
                result += 32;
            }
            if (value >= 10**16) {
                value /= 10**16;
                result += 16;
            }
            if (value >= 10**8) {
                value /= 10**8;
                result += 8;
            }
            if (value >= 10**4) {
                value /= 10**4;
                result += 4;
            }
            if (value >= 10**2) {
                value /= 10**2;
                result += 2;
            }
            if (value >= 10**1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256, rounded down, of a positive value.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0);
        }
    }
}

File 4 of 8 : Owned.sol
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity >=0.8.0;

/// @notice Simple single owner authorization mixin.
/// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/auth/Owned.sol)
abstract contract Owned {
    /*//////////////////////////////////////////////////////////////
                                 EVENTS
    //////////////////////////////////////////////////////////////*/

    event OwnershipTransferred(address indexed user, address indexed newOwner);

    /*//////////////////////////////////////////////////////////////
                            OWNERSHIP STORAGE
    //////////////////////////////////////////////////////////////*/

    address public owner;

    modifier onlyOwner() virtual {
        require(msg.sender == owner, "UNAUTHORIZED");

        _;
    }

    /*//////////////////////////////////////////////////////////////
                               CONSTRUCTOR
    //////////////////////////////////////////////////////////////*/

    constructor(address _owner) {
        owner = _owner;

        emit OwnershipTransferred(address(0), _owner);
    }

    /*//////////////////////////////////////////////////////////////
                             OWNERSHIP LOGIC
    //////////////////////////////////////////////////////////////*/

    function transferOwnership(address newOwner) public virtual onlyOwner {
        owner = newOwner;

        emit OwnershipTransferred(msg.sender, newOwner);
    }
}

File 5 of 8 : ERC1155.sol
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity >=0.8.0;

/// @notice Minimalist and gas efficient standard ERC1155 implementation.
/// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/tokens/ERC1155.sol)
abstract contract ERC1155 {
    /*//////////////////////////////////////////////////////////////
                                 EVENTS
    //////////////////////////////////////////////////////////////*/

    event TransferSingle(
        address indexed operator,
        address indexed from,
        address indexed to,
        uint256 id,
        uint256 amount
    );

    event TransferBatch(
        address indexed operator,
        address indexed from,
        address indexed to,
        uint256[] ids,
        uint256[] amounts
    );

    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    event URI(string value, uint256 indexed id);

    /*//////////////////////////////////////////////////////////////
                             ERC1155 STORAGE
    //////////////////////////////////////////////////////////////*/

    mapping(address => mapping(uint256 => uint256)) public balanceOf;

    mapping(address => mapping(address => bool)) public isApprovedForAll;

    /*//////////////////////////////////////////////////////////////
                             METADATA LOGIC
    //////////////////////////////////////////////////////////////*/

    function uri(uint256 id) public view virtual returns (string memory);

    /*//////////////////////////////////////////////////////////////
                              ERC1155 LOGIC
    //////////////////////////////////////////////////////////////*/

    function setApprovalForAll(address operator, bool approved) public virtual {
        isApprovedForAll[msg.sender][operator] = approved;

        emit ApprovalForAll(msg.sender, operator, approved);
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes calldata data
    ) public virtual {
        require(msg.sender == from || isApprovedForAll[from][msg.sender], "NOT_AUTHORIZED");

        balanceOf[from][id] -= amount;
        balanceOf[to][id] += amount;

        emit TransferSingle(msg.sender, from, to, id, amount);

        require(
            to.code.length == 0
                ? to != address(0)
                : ERC1155TokenReceiver(to).onERC1155Received(msg.sender, from, id, amount, data) ==
                    ERC1155TokenReceiver.onERC1155Received.selector,
            "UNSAFE_RECIPIENT"
        );
    }

    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] calldata ids,
        uint256[] calldata amounts,
        bytes calldata data
    ) public virtual {
        require(ids.length == amounts.length, "LENGTH_MISMATCH");

        require(msg.sender == from || isApprovedForAll[from][msg.sender], "NOT_AUTHORIZED");

        // Storing these outside the loop saves ~15 gas per iteration.
        uint256 id;
        uint256 amount;

        for (uint256 i = 0; i < ids.length; ) {
            id = ids[i];
            amount = amounts[i];

            balanceOf[from][id] -= amount;
            balanceOf[to][id] += amount;

            // An array can't have a total length
            // larger than the max uint256 value.
            unchecked {
                ++i;
            }
        }

        emit TransferBatch(msg.sender, from, to, ids, amounts);

        require(
            to.code.length == 0
                ? to != address(0)
                : ERC1155TokenReceiver(to).onERC1155BatchReceived(msg.sender, from, ids, amounts, data) ==
                    ERC1155TokenReceiver.onERC1155BatchReceived.selector,
            "UNSAFE_RECIPIENT"
        );
    }

    function balanceOfBatch(address[] calldata owners, uint256[] calldata ids)
        public
        view
        virtual
        returns (uint256[] memory balances)
    {
        require(owners.length == ids.length, "LENGTH_MISMATCH");

        balances = new uint256[](owners.length);

        // Unchecked because the only math done is incrementing
        // the array index counter which cannot possibly overflow.
        unchecked {
            for (uint256 i = 0; i < owners.length; ++i) {
                balances[i] = balanceOf[owners[i]][ids[i]];
            }
        }
    }

    /*//////////////////////////////////////////////////////////////
                              ERC165 LOGIC
    //////////////////////////////////////////////////////////////*/

    function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) {
        return
            interfaceId == 0x01ffc9a7 || // ERC165 Interface ID for ERC165
            interfaceId == 0xd9b67a26 || // ERC165 Interface ID for ERC1155
            interfaceId == 0x0e89341c; // ERC165 Interface ID for ERC1155MetadataURI
    }

    /*//////////////////////////////////////////////////////////////
                        INTERNAL MINT/BURN LOGIC
    //////////////////////////////////////////////////////////////*/

    function _mint(
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        balanceOf[to][id] += amount;

        emit TransferSingle(msg.sender, address(0), to, id, amount);

        require(
            to.code.length == 0
                ? to != address(0)
                : ERC1155TokenReceiver(to).onERC1155Received(msg.sender, address(0), id, amount, data) ==
                    ERC1155TokenReceiver.onERC1155Received.selector,
            "UNSAFE_RECIPIENT"
        );
    }

    function _batchMint(
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        uint256 idsLength = ids.length; // Saves MLOADs.

        require(idsLength == amounts.length, "LENGTH_MISMATCH");

        for (uint256 i = 0; i < idsLength; ) {
            balanceOf[to][ids[i]] += amounts[i];

            // An array can't have a total length
            // larger than the max uint256 value.
            unchecked {
                ++i;
            }
        }

        emit TransferBatch(msg.sender, address(0), to, ids, amounts);

        require(
            to.code.length == 0
                ? to != address(0)
                : ERC1155TokenReceiver(to).onERC1155BatchReceived(msg.sender, address(0), ids, amounts, data) ==
                    ERC1155TokenReceiver.onERC1155BatchReceived.selector,
            "UNSAFE_RECIPIENT"
        );
    }

    function _batchBurn(
        address from,
        uint256[] memory ids,
        uint256[] memory amounts
    ) internal virtual {
        uint256 idsLength = ids.length; // Saves MLOADs.

        require(idsLength == amounts.length, "LENGTH_MISMATCH");

        for (uint256 i = 0; i < idsLength; ) {
            balanceOf[from][ids[i]] -= amounts[i];

            // An array can't have a total length
            // larger than the max uint256 value.
            unchecked {
                ++i;
            }
        }

        emit TransferBatch(msg.sender, from, address(0), ids, amounts);
    }

    function _burn(
        address from,
        uint256 id,
        uint256 amount
    ) internal virtual {
        balanceOf[from][id] -= amount;

        emit TransferSingle(msg.sender, from, address(0), id, amount);
    }
}

/// @notice A generic interface for a contract which properly accepts ERC1155 tokens.
/// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/tokens/ERC1155.sol)
abstract contract ERC1155TokenReceiver {
    function onERC1155Received(
        address,
        address,
        uint256,
        uint256,
        bytes calldata
    ) external virtual returns (bytes4) {
        return ERC1155TokenReceiver.onERC1155Received.selector;
    }

    function onERC1155BatchReceived(
        address,
        address,
        uint256[] calldata,
        uint256[] calldata,
        bytes calldata
    ) external virtual returns (bytes4) {
        return ERC1155TokenReceiver.onERC1155BatchReceived.selector;
    }
}

File 6 of 8 : ReentrancyGuard.sol
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity >=0.8.0;

/// @notice Gas optimized reentrancy protection for smart contracts.
/// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/utils/ReentrancyGuard.sol)
/// @author Modified from OpenZeppelin (https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/security/ReentrancyGuard.sol)
abstract contract ReentrancyGuard {
    uint256 private locked = 1;

    modifier nonReentrant() virtual {
        require(locked == 1, "REENTRANCY");

        locked = 2;

        _;

        locked = 1;
    }
}

File 7 of 8 : IERC20.sol
pragma solidity ^0.8.0;

interface IERC20 {
    function transferFrom(address from, address to, uint256 amount) external returns (bool);
    function balanceOf(address _owner) external view returns (uint256 balance);
    function transfer(address _to, uint256 _value) external returns (bool success);
}

File 8 of 8 : IETHGobblers.sol
// SPDX-License-Identifier: UNLICENSED

pragma solidity ^0.8.17;

interface IETHGobblers {
    function ownerOf(uint256 tokenId) external view returns (address owner);
}

Settings
{
  "remappings": [
    "all-on-chain-generated-nft/=lib/all-on-chain-generated-nft/contracts/",
    "ds-test/=lib/forge-std/lib/ds-test/src/",
    "forge-std/=lib/forge-std/src/",
    "oz/=lib/openzeppelin-contracts/contracts/",
    "solady/=lib/solady/src/",
    "solmate/=lib/solmate/src/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "metadata": {
    "bytecodeHash": "ipfs"
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "london",
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"address","name":"_artist","type":"address"},{"internalType":"address","name":"_owner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[],"name":"activateMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"artist","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"owners","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"balances","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"deactivateMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"firstThread","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"gooey","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"gooeyMinted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintCostPepe","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"gooeyId","type":"uint256"}],"name":"mintWithGooey","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mintWithPEPE","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pepe","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"tokenURI","type":"string"}],"name":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newArtist","type":"address"}],"name":"updateArtist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newFirstThread","type":"address"}],"name":"updateFirstThread","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newGooey","type":"address"}],"name":"updateGooey","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMintCost","type":"uint256"}],"name":"updateMintCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newPepe","type":"address"}],"name":"updatePepe","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPepeMintCost","type":"uint256"}],"name":"updatePepeMintCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

60806040526001600355600880546001600160a01b0319908116730a8d311b99ddaa9ebb45fd606eb0a1533004f26b1790915560098054909116736982508145454ce325ddbe47a25d4ec3d2311933179055660eebe0b40e8000600c556a14adf4b7320334b9000000600d553480156200007857600080fd5b5060405162002468380380620024688339810160408190526200009b9162000212565b600280546001600160a01b0319166001600160a01b0383169081179091556040518291906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506004620000f6858262000330565b50600562000105848262000330565b5050600780546001600160a01b0319166001600160a01b039290921691909117905550620003fc9050565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200015857600080fd5b81516001600160401b038082111562000175576200017562000130565b604051601f8301601f19908116603f01168101908282118183101715620001a057620001a062000130565b81604052838152602092508683858801011115620001bd57600080fd5b600091505b83821015620001e15785820183015181830184015290820190620001c2565b600093810190920192909252949350505050565b80516001600160a01b03811681146200020d57600080fd5b919050565b600080600080608085870312156200022957600080fd5b84516001600160401b03808211156200024157600080fd5b6200024f8883890162000146565b955060208701519150808211156200026657600080fd5b50620002758782880162000146565b9350506200028660408601620001f5565b91506200029660608601620001f5565b905092959194509250565b600181811c90821680620002b657607f821691505b602082108103620002d757634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200032b57600081815260208120601f850160051c81016020861015620003065750805b601f850160051c820191505b81811015620003275782815560010162000312565b5050505b505050565b81516001600160401b038111156200034c576200034c62000130565b62000364816200035d8454620002a1565b84620002dd565b602080601f8311600181146200039c5760008415620003835750858301515b600019600386901b1c1916600185901b17855562000327565b600085815260208120601f198616915b82811015620003cd57888601518255948401946001909101908401620003ac565b5085821015620003ec5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b61205c806200040c6000396000f3fe6080604052600436106101f15760003560e01c80638224cfbb1161010d578063a22cb465116100a0578063e985e9c51161006f578063e985e9c5146105d4578063f242432a1461060f578063f2fde38b1461062f578063f823b63f1461064f578063fbd79f7c1461066f57600080fd5b8063a22cb46514610569578063b1a8c28814610589578063bdb4b848146105a9578063c91c0462146105bf57600080fd5b806393d4b246116100dc57806393d4b246146104e657806395d89b41146105215780639769c08014610536578063a0712d681461055657600080fd5b80638224cfbb14610470578063836c081d14610490578063862440e2146104a65780638da5cb5b146104c657600080fd5b80632d531a471161018557806343bc16121161015457806343bc1612146103e357806346111e7a146104035780634e1273f4146104235780635b72b84a1461045057600080fd5b80632d531a47146103785780632e56f71e146103985780632eb2c2d6146103ad57806338ef8a3d146103cd57600080fd5b806325fd90f3116101c157806325fd90f3146102e657806328d911fb146103005780632b2e5d5d146103205780632c482b201461035857600080fd5b8062fdd58e1461022c57806301ffc9a71461027457806306fdde03146102a45780630e89341c146102c657600080fd5b3661022757600c5460000361020c5761020a600161068f565b005b6000600c543461021c9190611752565b905061020a8161068f565b600080fd5b34801561023857600080fd5b5061026161024736600461178c565b600060208181529281526040808220909352908152205481565b6040519081526020015b60405180910390f35b34801561028057600080fd5b5061029461028f3660046117ce565b610794565b604051901515815260200161026b565b3480156102b057600080fd5b506102b96107e6565b60405161026b9190611838565b3480156102d257600080fd5b506102b96102e136600461184b565b610874565b3480156102f257600080fd5b50600e546102949060ff1681565b34801561030c57600080fd5b5061020a61031b36600461184b565b610918565b34801561032c57600080fd5b50600854610340906001600160a01b031681565b6040516001600160a01b03909116815260200161026b565b34801561036457600080fd5b5061020a610373366004611864565b610947565b34801561038457600080fd5b5061020a61039336600461184b565b610993565b3480156103a457600080fd5b5061020a610b74565b3480156103b957600080fd5b5061020a6103c836600461190f565b610c16565b3480156103d957600080fd5b50610261600d5481565b3480156103ef57600080fd5b50600754610340906001600160a01b031681565b34801561040f57600080fd5b50600954610340906001600160a01b031681565b34801561042f57600080fd5b5061044361043e3660046119ce565b610ece565b60405161026b9190611a3a565b34801561045c57600080fd5b5061020a61046b366004611864565b611003565b34801561047c57600080fd5b50600a54610340906001600160a01b031681565b34801561049c57600080fd5b50610261600b5481565b3480156104b257600080fd5b5061020a6104c1366004611a7e565b61104f565b3480156104d257600080fd5b50600254610340906001600160a01b031681565b3480156104f257600080fd5b50610294610501366004611aca565b600f60209081526000928352604080842090915290825290205460ff1681565b34801561052d57600080fd5b506102b9611098565b34801561054257600080fd5b5061020a610551366004611864565b6110a5565b61020a61056436600461184b565b61068f565b34801561057557600080fd5b5061020a610584366004611afa565b6110f1565b34801561059557600080fd5b5061020a6105a4366004611864565b61115d565b3480156105b557600080fd5b50610261600c5481565b3480156105cb57600080fd5b5061020a6111a9565b3480156105e057600080fd5b506102946105ef366004611b33565b600160209081526000928352604080842090915290825290205460ff1681565b34801561061b57600080fd5b5061020a61062a366004611b61565b611235565b34801561063b57600080fd5b5061020a61064a366004611864565b611444565b34801561065b57600080fd5b5061020a61066a36600461184b565b6114ba565b34801561067b57600080fd5b5061020a61068a36600461184b565b6114e9565b6003546001146106ba5760405162461bcd60e51b81526004016106b190611bdd565b60405180910390fd5b6002600355600e5460ff166106e15760405162461bcd60e51b81526004016106b190611c01565b80600c546106ef9190611c45565b34146107355760405162461bcd60e51b8152602060048201526015602482015274125b9cdd59999a58da595b9d08115512081cd95b9d605a1b60448201526064016106b1565b61075233600b5483604051806020016040528060008152506115fa565b6007546040516001600160a01b03909116903480156108fc02916000818181858888f1935050505015801561078b573d6000803e3d6000fd5b50506001600355565b60006301ffc9a760e01b6001600160e01b0319831614806107c55750636cdb3d1360e11b6001600160e01b03198316145b806107e057506303a24d0760e21b6001600160e01b03198316145b92915050565b600480546107f390611c5c565b80601f016020809104026020016040519081016040528092919081815260200182805461081f90611c5c565b801561086c5780601f106108415761010080835404028352916020019161086c565b820191906000526020600020905b81548152906001019060200180831161084f57829003601f168201915b505050505081565b60008181526006602052604081208054606092919061089290611c5c565b80601f01602080910402602001604051908101604052809291908181526020018280546108be90611c5c565b801561090b5780601f106108e05761010080835404028352916020019161090b565b820191906000526020600020905b8154815290600101906020018083116108ee57829003601f168201915b5093979650505050505050565b6002546001600160a01b031633146109425760405162461bcd60e51b81526004016106b190611c96565b600c55565b6002546001600160a01b031633146109715760405162461bcd60e51b81526004016106b190611c96565b600780546001600160a01b0319166001600160a01b0392909216919091179055565b6003546001146109b55760405162461bcd60e51b81526004016106b190611bdd565b6002600355600e5460ff166109dc5760405162461bcd60e51b81526004016106b190611c01565b600b546000908152600f6020908152604080832084845290915290205460ff1615610a655760405162461bcd60e51b815260206004820152603360248201527f5468697320476f6f65792068617320616c7265616479206265656e2075736564604482015272103a379036b4b73a103a3434b9903a37b5b2b760691b60648201526084016106b1565b6008546040516331a9108f60e11b81526004810183905233916001600160a01b031690636352211e90602401602060405180830381865afa158015610aae573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ad29190611cbc565b6001600160a01b031614610b285760405162461bcd60e51b815260206004820152601960248201527f596f7520646f206e6f74206f776e207468697320476f6f65790000000000000060448201526064016106b1565b610b4633600b546001604051806020016040528060008152506115fa565b600b546000908152600f6020908152604080832093835292905220805460ff19166001908117909155600355565b6002546001600160a01b03163314610b9e5760405162461bcd60e51b81526004016106b190611c96565b600e5460ff161515600114610bf55760405162461bcd60e51b815260206004820152601b60248201527f4d696e74696e6720697320616c726561647920696e616374697665000000000060448201526064016106b1565b600e805460ff19169055600b8054906000610c0f83611cd9565b9190505550565b848314610c575760405162461bcd60e51b815260206004820152600f60248201526e0988a9c8ea890be9a92a69a82a8869608b1b60448201526064016106b1565b336001600160a01b0389161480610c9157506001600160a01b038816600090815260016020908152604080832033845290915290205460ff165b80610ca65750600a546001600160a01b031633145b610ce35760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b60448201526064016106b1565b60008060005b87811015610d9e57888882818110610d0357610d03611cf2565b905060200201359250868682818110610d1e57610d1e611cf2565b6001600160a01b038e1660009081526020818152604080832089845282528220805493909102949094013595508593925090610d5b908490611d08565b90915550506001600160a01b038a1660009081526020818152604080832086845290915281208054849290610d91908490611d1b565b9091555050600101610ce9565b50886001600160a01b03168a6001600160a01b0316336001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8b8b8b8b604051610df29493929190611d60565b60405180910390a46001600160a01b0389163b15610e995760405163bc197c8160e01b808252906001600160a01b038b169063bc197c8190610e469033908f908e908e908e908e908e908e90600401611dbb565b6020604051808303816000875af1158015610e65573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e899190611e1f565b6001600160e01b03191614610ea6565b6001600160a01b03891615155b610ec25760405162461bcd60e51b81526004016106b190611e3c565b50505050505050505050565b6060838214610f115760405162461bcd60e51b815260206004820152600f60248201526e0988a9c8ea890be9a92a69a82a8869608b1b60448201526064016106b1565b8367ffffffffffffffff811115610f2a57610f2a611e66565b604051908082528060200260200182016040528015610f53578160200160208202803683370190505b50905060005b84811015610ffa57600080878784818110610f7657610f76611cf2565b9050602002016020810190610f8b9190611864565b6001600160a01b03166001600160a01b031681526020019081526020016000206000858584818110610fbf57610fbf611cf2565b90506020020135815260200190815260200160002054828281518110610fe757610fe7611cf2565b6020908102919091010152600101610f59565b50949350505050565b6002546001600160a01b0316331461102d5760405162461bcd60e51b81526004016106b190611c96565b600880546001600160a01b0319166001600160a01b0392909216919091179055565b6002546001600160a01b031633146110795760405162461bcd60e51b81526004016106b190611c96565b6000838152600660205260409020611092828483611ec7565b50505050565b600580546107f390611c5c565b6002546001600160a01b031633146110cf5760405162461bcd60e51b81526004016106b190611c96565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b3360008181526001602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6002546001600160a01b031633146111875760405162461bcd60e51b81526004016106b190611c96565b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b6002546001600160a01b031633146111d35760405162461bcd60e51b81526004016106b190611c96565b600e5460ff16156112265760405162461bcd60e51b815260206004820152601960248201527f4d696e74696e6720697320616c7265616479206163746976650000000000000060448201526064016106b1565b600e805460ff19166001179055565b336001600160a01b038716148061126f57506001600160a01b038616600090815260016020908152604080832033845290915290205460ff165b806112845750600a546001600160a01b031633145b6112c15760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b60448201526064016106b1565b6001600160a01b038616600090815260208181526040808320878452909152812080548592906112f2908490611d08565b90915550506001600160a01b03851660009081526020818152604080832087845290915281208054859290611328908490611d1b565b909155505060408051858152602081018590526001600160a01b03808816929089169133917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46001600160a01b0385163b156114135760405163f23a6e6160e01b808252906001600160a01b0387169063f23a6e61906113c09033908b908a908a908a908a90600401611f88565b6020604051808303816000875af11580156113df573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114039190611e1f565b6001600160e01b03191614611420565b6001600160a01b03851615155b61143c5760405162461bcd60e51b81526004016106b190611e3c565b505050505050565b6002546001600160a01b0316331461146e5760405162461bcd60e51b81526004016106b190611c96565b600280546001600160a01b0319166001600160a01b03831690811790915560405133907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a350565b6002546001600160a01b031633146114e45760405162461bcd60e51b81526004016106b190611c96565b600d55565b60035460011461150b5760405162461bcd60e51b81526004016106b190611bdd565b6002600355600e5460ff166115325760405162461bcd60e51b81526004016106b190611c01565b600954600754600d546001600160a01b03928316926323b872dd92339291169061155c9086611c45565b6040516001600160e01b031960e086901b1681526001600160a01b03938416600482015292909116602483015260448201526064016020604051808303816000875af11580156115b0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115d49190611fcf565b506115f233600b5483604051806020016040528060008152506115fa565b506001600355565b6001600160a01b0384166000908152602081815260408083208684529091528120805484929061162b908490611d1b565b909155505060408051848152602081018490526001600160a01b0386169160009133917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46001600160a01b0384163b156117135760405163f23a6e6160e01b808252906001600160a01b0386169063f23a6e61906116c0903390600090899089908990600401611fec565b6020604051808303816000875af11580156116df573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117039190611e1f565b6001600160e01b03191614611720565b6001600160a01b03841615155b6110925760405162461bcd60e51b81526004016106b190611e3c565b634e487b7160e01b600052601160045260246000fd5b60008261176f57634e487b7160e01b600052601260045260246000fd5b500490565b6001600160a01b038116811461178957600080fd5b50565b6000806040838503121561179f57600080fd5b82356117aa81611774565b946020939093013593505050565b6001600160e01b03198116811461178957600080fd5b6000602082840312156117e057600080fd5b81356117eb816117b8565b9392505050565b6000815180845260005b81811015611818576020818501810151868301820152016117fc565b506000602082860101526020601f19601f83011685010191505092915050565b6020815260006117eb60208301846117f2565b60006020828403121561185d57600080fd5b5035919050565b60006020828403121561187657600080fd5b81356117eb81611774565b60008083601f84011261189357600080fd5b50813567ffffffffffffffff8111156118ab57600080fd5b6020830191508360208260051b85010111156118c657600080fd5b9250929050565b60008083601f8401126118df57600080fd5b50813567ffffffffffffffff8111156118f757600080fd5b6020830191508360208285010111156118c657600080fd5b60008060008060008060008060a0898b03121561192b57600080fd5b883561193681611774565b9750602089013561194681611774565b9650604089013567ffffffffffffffff8082111561196357600080fd5b61196f8c838d01611881565b909850965060608b013591508082111561198857600080fd5b6119948c838d01611881565b909650945060808b01359150808211156119ad57600080fd5b506119ba8b828c016118cd565b999c989b5096995094979396929594505050565b600080600080604085870312156119e457600080fd5b843567ffffffffffffffff808211156119fc57600080fd5b611a0888838901611881565b90965094506020870135915080821115611a2157600080fd5b50611a2e87828801611881565b95989497509550505050565b6020808252825182820181905260009190848201906040850190845b81811015611a7257835183529284019291840191600101611a56565b50909695505050505050565b600080600060408486031215611a9357600080fd5b83359250602084013567ffffffffffffffff811115611ab157600080fd5b611abd868287016118cd565b9497909650939450505050565b60008060408385031215611add57600080fd5b50508035926020909101359150565b801515811461178957600080fd5b60008060408385031215611b0d57600080fd5b8235611b1881611774565b91506020830135611b2881611aec565b809150509250929050565b60008060408385031215611b4657600080fd5b8235611b5181611774565b91506020830135611b2881611774565b60008060008060008060a08789031215611b7a57600080fd5b8635611b8581611774565b95506020870135611b9581611774565b94506040870135935060608701359250608087013567ffffffffffffffff811115611bbf57600080fd5b611bcb89828a016118cd565b979a9699509497509295939492505050565b6020808252600a90820152695245454e5452414e435960b01b604082015260600190565b60208082526024908201527f4d696e74696e67206973206e6f742061637469766520666f722074686973207460408201526337b5b2b760e11b606082015260800190565b80820281158282048414176107e0576107e061173c565b600181811c90821680611c7057607f821691505b602082108103611c9057634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252600c908201526b15539055551213d49256915160a21b604082015260600190565b600060208284031215611cce57600080fd5b81516117eb81611774565b600060018201611ceb57611ceb61173c565b5060010190565b634e487b7160e01b600052603260045260246000fd5b818103818111156107e0576107e061173c565b808201808211156107e0576107e061173c565b81835260006001600160fb1b03831115611d4757600080fd5b8260051b80836020870137939093016020019392505050565b604081526000611d74604083018688611d2e565b8281036020840152611d87818587611d2e565b979650505050505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6001600160a01b0389811682528816602082015260a060408201819052600090611de8908301888a611d2e565b8281036060840152611dfb818789611d2e565b90508281036080840152611e10818587611d92565b9b9a5050505050505050505050565b600060208284031215611e3157600080fd5b81516117eb816117b8565b60208082526010908201526f155394d0519157d49150d2541251539560821b604082015260600190565b634e487b7160e01b600052604160045260246000fd5b601f821115611ec257600081815260208120601f850160051c81016020861015611ea35750805b601f850160051c820191505b8181101561143c57828155600101611eaf565b505050565b67ffffffffffffffff831115611edf57611edf611e66565b611ef383611eed8354611c5c565b83611e7c565b6000601f841160018114611f275760008515611f0f5750838201355b600019600387901b1c1916600186901b178355611f81565b600083815260209020601f19861690835b82811015611f585786850135825560209485019460019092019101611f38565b5086821015611f755760001960f88860031b161c19848701351681555b505060018560011b0183555b5050505050565b6001600160a01b03878116825286166020820152604081018590526060810184905260a060808201819052600090611fc39083018486611d92565b98975050505050505050565b600060208284031215611fe157600080fd5b81516117eb81611aec565b6001600160a01b03868116825285166020820152604081018490526060810183905260a060808201819052600090611d87908301846117f256fea26469706673582212205eec7d8437cc7feab34c392572c2d26fc6636f3c5e08f52b3fd3c7125fc194d764736f6c63430008110033000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000fb8f81b61cf53ec2a5ace5627a76bf142df99b1f0000000000000000000000009a88d47ebb4038e9d8479a9535fcca0d3f8ba73b0000000000000000000000000000000000000000000000000000000000000015476f6f70656e2045646974696f6e7320627920424b00000000000000000000000000000000000000000000000000000000000000000000000000000000000002424b000000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106101f15760003560e01c80638224cfbb1161010d578063a22cb465116100a0578063e985e9c51161006f578063e985e9c5146105d4578063f242432a1461060f578063f2fde38b1461062f578063f823b63f1461064f578063fbd79f7c1461066f57600080fd5b8063a22cb46514610569578063b1a8c28814610589578063bdb4b848146105a9578063c91c0462146105bf57600080fd5b806393d4b246116100dc57806393d4b246146104e657806395d89b41146105215780639769c08014610536578063a0712d681461055657600080fd5b80638224cfbb14610470578063836c081d14610490578063862440e2146104a65780638da5cb5b146104c657600080fd5b80632d531a471161018557806343bc16121161015457806343bc1612146103e357806346111e7a146104035780634e1273f4146104235780635b72b84a1461045057600080fd5b80632d531a47146103785780632e56f71e146103985780632eb2c2d6146103ad57806338ef8a3d146103cd57600080fd5b806325fd90f3116101c157806325fd90f3146102e657806328d911fb146103005780632b2e5d5d146103205780632c482b201461035857600080fd5b8062fdd58e1461022c57806301ffc9a71461027457806306fdde03146102a45780630e89341c146102c657600080fd5b3661022757600c5460000361020c5761020a600161068f565b005b6000600c543461021c9190611752565b905061020a8161068f565b600080fd5b34801561023857600080fd5b5061026161024736600461178c565b600060208181529281526040808220909352908152205481565b6040519081526020015b60405180910390f35b34801561028057600080fd5b5061029461028f3660046117ce565b610794565b604051901515815260200161026b565b3480156102b057600080fd5b506102b96107e6565b60405161026b9190611838565b3480156102d257600080fd5b506102b96102e136600461184b565b610874565b3480156102f257600080fd5b50600e546102949060ff1681565b34801561030c57600080fd5b5061020a61031b36600461184b565b610918565b34801561032c57600080fd5b50600854610340906001600160a01b031681565b6040516001600160a01b03909116815260200161026b565b34801561036457600080fd5b5061020a610373366004611864565b610947565b34801561038457600080fd5b5061020a61039336600461184b565b610993565b3480156103a457600080fd5b5061020a610b74565b3480156103b957600080fd5b5061020a6103c836600461190f565b610c16565b3480156103d957600080fd5b50610261600d5481565b3480156103ef57600080fd5b50600754610340906001600160a01b031681565b34801561040f57600080fd5b50600954610340906001600160a01b031681565b34801561042f57600080fd5b5061044361043e3660046119ce565b610ece565b60405161026b9190611a3a565b34801561045c57600080fd5b5061020a61046b366004611864565b611003565b34801561047c57600080fd5b50600a54610340906001600160a01b031681565b34801561049c57600080fd5b50610261600b5481565b3480156104b257600080fd5b5061020a6104c1366004611a7e565b61104f565b3480156104d257600080fd5b50600254610340906001600160a01b031681565b3480156104f257600080fd5b50610294610501366004611aca565b600f60209081526000928352604080842090915290825290205460ff1681565b34801561052d57600080fd5b506102b9611098565b34801561054257600080fd5b5061020a610551366004611864565b6110a5565b61020a61056436600461184b565b61068f565b34801561057557600080fd5b5061020a610584366004611afa565b6110f1565b34801561059557600080fd5b5061020a6105a4366004611864565b61115d565b3480156105b557600080fd5b50610261600c5481565b3480156105cb57600080fd5b5061020a6111a9565b3480156105e057600080fd5b506102946105ef366004611b33565b600160209081526000928352604080842090915290825290205460ff1681565b34801561061b57600080fd5b5061020a61062a366004611b61565b611235565b34801561063b57600080fd5b5061020a61064a366004611864565b611444565b34801561065b57600080fd5b5061020a61066a36600461184b565b6114ba565b34801561067b57600080fd5b5061020a61068a36600461184b565b6114e9565b6003546001146106ba5760405162461bcd60e51b81526004016106b190611bdd565b60405180910390fd5b6002600355600e5460ff166106e15760405162461bcd60e51b81526004016106b190611c01565b80600c546106ef9190611c45565b34146107355760405162461bcd60e51b8152602060048201526015602482015274125b9cdd59999a58da595b9d08115512081cd95b9d605a1b60448201526064016106b1565b61075233600b5483604051806020016040528060008152506115fa565b6007546040516001600160a01b03909116903480156108fc02916000818181858888f1935050505015801561078b573d6000803e3d6000fd5b50506001600355565b60006301ffc9a760e01b6001600160e01b0319831614806107c55750636cdb3d1360e11b6001600160e01b03198316145b806107e057506303a24d0760e21b6001600160e01b03198316145b92915050565b600480546107f390611c5c565b80601f016020809104026020016040519081016040528092919081815260200182805461081f90611c5c565b801561086c5780601f106108415761010080835404028352916020019161086c565b820191906000526020600020905b81548152906001019060200180831161084f57829003601f168201915b505050505081565b60008181526006602052604081208054606092919061089290611c5c565b80601f01602080910402602001604051908101604052809291908181526020018280546108be90611c5c565b801561090b5780601f106108e05761010080835404028352916020019161090b565b820191906000526020600020905b8154815290600101906020018083116108ee57829003601f168201915b5093979650505050505050565b6002546001600160a01b031633146109425760405162461bcd60e51b81526004016106b190611c96565b600c55565b6002546001600160a01b031633146109715760405162461bcd60e51b81526004016106b190611c96565b600780546001600160a01b0319166001600160a01b0392909216919091179055565b6003546001146109b55760405162461bcd60e51b81526004016106b190611bdd565b6002600355600e5460ff166109dc5760405162461bcd60e51b81526004016106b190611c01565b600b546000908152600f6020908152604080832084845290915290205460ff1615610a655760405162461bcd60e51b815260206004820152603360248201527f5468697320476f6f65792068617320616c7265616479206265656e2075736564604482015272103a379036b4b73a103a3434b9903a37b5b2b760691b60648201526084016106b1565b6008546040516331a9108f60e11b81526004810183905233916001600160a01b031690636352211e90602401602060405180830381865afa158015610aae573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ad29190611cbc565b6001600160a01b031614610b285760405162461bcd60e51b815260206004820152601960248201527f596f7520646f206e6f74206f776e207468697320476f6f65790000000000000060448201526064016106b1565b610b4633600b546001604051806020016040528060008152506115fa565b600b546000908152600f6020908152604080832093835292905220805460ff19166001908117909155600355565b6002546001600160a01b03163314610b9e5760405162461bcd60e51b81526004016106b190611c96565b600e5460ff161515600114610bf55760405162461bcd60e51b815260206004820152601b60248201527f4d696e74696e6720697320616c726561647920696e616374697665000000000060448201526064016106b1565b600e805460ff19169055600b8054906000610c0f83611cd9565b9190505550565b848314610c575760405162461bcd60e51b815260206004820152600f60248201526e0988a9c8ea890be9a92a69a82a8869608b1b60448201526064016106b1565b336001600160a01b0389161480610c9157506001600160a01b038816600090815260016020908152604080832033845290915290205460ff165b80610ca65750600a546001600160a01b031633145b610ce35760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b60448201526064016106b1565b60008060005b87811015610d9e57888882818110610d0357610d03611cf2565b905060200201359250868682818110610d1e57610d1e611cf2565b6001600160a01b038e1660009081526020818152604080832089845282528220805493909102949094013595508593925090610d5b908490611d08565b90915550506001600160a01b038a1660009081526020818152604080832086845290915281208054849290610d91908490611d1b565b9091555050600101610ce9565b50886001600160a01b03168a6001600160a01b0316336001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8b8b8b8b604051610df29493929190611d60565b60405180910390a46001600160a01b0389163b15610e995760405163bc197c8160e01b808252906001600160a01b038b169063bc197c8190610e469033908f908e908e908e908e908e908e90600401611dbb565b6020604051808303816000875af1158015610e65573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e899190611e1f565b6001600160e01b03191614610ea6565b6001600160a01b03891615155b610ec25760405162461bcd60e51b81526004016106b190611e3c565b50505050505050505050565b6060838214610f115760405162461bcd60e51b815260206004820152600f60248201526e0988a9c8ea890be9a92a69a82a8869608b1b60448201526064016106b1565b8367ffffffffffffffff811115610f2a57610f2a611e66565b604051908082528060200260200182016040528015610f53578160200160208202803683370190505b50905060005b84811015610ffa57600080878784818110610f7657610f76611cf2565b9050602002016020810190610f8b9190611864565b6001600160a01b03166001600160a01b031681526020019081526020016000206000858584818110610fbf57610fbf611cf2565b90506020020135815260200190815260200160002054828281518110610fe757610fe7611cf2565b6020908102919091010152600101610f59565b50949350505050565b6002546001600160a01b0316331461102d5760405162461bcd60e51b81526004016106b190611c96565b600880546001600160a01b0319166001600160a01b0392909216919091179055565b6002546001600160a01b031633146110795760405162461bcd60e51b81526004016106b190611c96565b6000838152600660205260409020611092828483611ec7565b50505050565b600580546107f390611c5c565b6002546001600160a01b031633146110cf5760405162461bcd60e51b81526004016106b190611c96565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b3360008181526001602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6002546001600160a01b031633146111875760405162461bcd60e51b81526004016106b190611c96565b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b6002546001600160a01b031633146111d35760405162461bcd60e51b81526004016106b190611c96565b600e5460ff16156112265760405162461bcd60e51b815260206004820152601960248201527f4d696e74696e6720697320616c7265616479206163746976650000000000000060448201526064016106b1565b600e805460ff19166001179055565b336001600160a01b038716148061126f57506001600160a01b038616600090815260016020908152604080832033845290915290205460ff165b806112845750600a546001600160a01b031633145b6112c15760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b60448201526064016106b1565b6001600160a01b038616600090815260208181526040808320878452909152812080548592906112f2908490611d08565b90915550506001600160a01b03851660009081526020818152604080832087845290915281208054859290611328908490611d1b565b909155505060408051858152602081018590526001600160a01b03808816929089169133917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46001600160a01b0385163b156114135760405163f23a6e6160e01b808252906001600160a01b0387169063f23a6e61906113c09033908b908a908a908a908a90600401611f88565b6020604051808303816000875af11580156113df573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114039190611e1f565b6001600160e01b03191614611420565b6001600160a01b03851615155b61143c5760405162461bcd60e51b81526004016106b190611e3c565b505050505050565b6002546001600160a01b0316331461146e5760405162461bcd60e51b81526004016106b190611c96565b600280546001600160a01b0319166001600160a01b03831690811790915560405133907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a350565b6002546001600160a01b031633146114e45760405162461bcd60e51b81526004016106b190611c96565b600d55565b60035460011461150b5760405162461bcd60e51b81526004016106b190611bdd565b6002600355600e5460ff166115325760405162461bcd60e51b81526004016106b190611c01565b600954600754600d546001600160a01b03928316926323b872dd92339291169061155c9086611c45565b6040516001600160e01b031960e086901b1681526001600160a01b03938416600482015292909116602483015260448201526064016020604051808303816000875af11580156115b0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115d49190611fcf565b506115f233600b5483604051806020016040528060008152506115fa565b506001600355565b6001600160a01b0384166000908152602081815260408083208684529091528120805484929061162b908490611d1b565b909155505060408051848152602081018490526001600160a01b0386169160009133917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46001600160a01b0384163b156117135760405163f23a6e6160e01b808252906001600160a01b0386169063f23a6e61906116c0903390600090899089908990600401611fec565b6020604051808303816000875af11580156116df573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117039190611e1f565b6001600160e01b03191614611720565b6001600160a01b03841615155b6110925760405162461bcd60e51b81526004016106b190611e3c565b634e487b7160e01b600052601160045260246000fd5b60008261176f57634e487b7160e01b600052601260045260246000fd5b500490565b6001600160a01b038116811461178957600080fd5b50565b6000806040838503121561179f57600080fd5b82356117aa81611774565b946020939093013593505050565b6001600160e01b03198116811461178957600080fd5b6000602082840312156117e057600080fd5b81356117eb816117b8565b9392505050565b6000815180845260005b81811015611818576020818501810151868301820152016117fc565b506000602082860101526020601f19601f83011685010191505092915050565b6020815260006117eb60208301846117f2565b60006020828403121561185d57600080fd5b5035919050565b60006020828403121561187657600080fd5b81356117eb81611774565b60008083601f84011261189357600080fd5b50813567ffffffffffffffff8111156118ab57600080fd5b6020830191508360208260051b85010111156118c657600080fd5b9250929050565b60008083601f8401126118df57600080fd5b50813567ffffffffffffffff8111156118f757600080fd5b6020830191508360208285010111156118c657600080fd5b60008060008060008060008060a0898b03121561192b57600080fd5b883561193681611774565b9750602089013561194681611774565b9650604089013567ffffffffffffffff8082111561196357600080fd5b61196f8c838d01611881565b909850965060608b013591508082111561198857600080fd5b6119948c838d01611881565b909650945060808b01359150808211156119ad57600080fd5b506119ba8b828c016118cd565b999c989b5096995094979396929594505050565b600080600080604085870312156119e457600080fd5b843567ffffffffffffffff808211156119fc57600080fd5b611a0888838901611881565b90965094506020870135915080821115611a2157600080fd5b50611a2e87828801611881565b95989497509550505050565b6020808252825182820181905260009190848201906040850190845b81811015611a7257835183529284019291840191600101611a56565b50909695505050505050565b600080600060408486031215611a9357600080fd5b83359250602084013567ffffffffffffffff811115611ab157600080fd5b611abd868287016118cd565b9497909650939450505050565b60008060408385031215611add57600080fd5b50508035926020909101359150565b801515811461178957600080fd5b60008060408385031215611b0d57600080fd5b8235611b1881611774565b91506020830135611b2881611aec565b809150509250929050565b60008060408385031215611b4657600080fd5b8235611b5181611774565b91506020830135611b2881611774565b60008060008060008060a08789031215611b7a57600080fd5b8635611b8581611774565b95506020870135611b9581611774565b94506040870135935060608701359250608087013567ffffffffffffffff811115611bbf57600080fd5b611bcb89828a016118cd565b979a9699509497509295939492505050565b6020808252600a90820152695245454e5452414e435960b01b604082015260600190565b60208082526024908201527f4d696e74696e67206973206e6f742061637469766520666f722074686973207460408201526337b5b2b760e11b606082015260800190565b80820281158282048414176107e0576107e061173c565b600181811c90821680611c7057607f821691505b602082108103611c9057634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252600c908201526b15539055551213d49256915160a21b604082015260600190565b600060208284031215611cce57600080fd5b81516117eb81611774565b600060018201611ceb57611ceb61173c565b5060010190565b634e487b7160e01b600052603260045260246000fd5b818103818111156107e0576107e061173c565b808201808211156107e0576107e061173c565b81835260006001600160fb1b03831115611d4757600080fd5b8260051b80836020870137939093016020019392505050565b604081526000611d74604083018688611d2e565b8281036020840152611d87818587611d2e565b979650505050505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6001600160a01b0389811682528816602082015260a060408201819052600090611de8908301888a611d2e565b8281036060840152611dfb818789611d2e565b90508281036080840152611e10818587611d92565b9b9a5050505050505050505050565b600060208284031215611e3157600080fd5b81516117eb816117b8565b60208082526010908201526f155394d0519157d49150d2541251539560821b604082015260600190565b634e487b7160e01b600052604160045260246000fd5b601f821115611ec257600081815260208120601f850160051c81016020861015611ea35750805b601f850160051c820191505b8181101561143c57828155600101611eaf565b505050565b67ffffffffffffffff831115611edf57611edf611e66565b611ef383611eed8354611c5c565b83611e7c565b6000601f841160018114611f275760008515611f0f5750838201355b600019600387901b1c1916600186901b178355611f81565b600083815260209020601f19861690835b82811015611f585786850135825560209485019460019092019101611f38565b5086821015611f755760001960f88860031b161c19848701351681555b505060018560011b0183555b5050505050565b6001600160a01b03878116825286166020820152604081018590526060810184905260a060808201819052600090611fc39083018486611d92565b98975050505050505050565b600060208284031215611fe157600080fd5b81516117eb81611aec565b6001600160a01b03868116825285166020820152604081018490526060810183905260a060808201819052600090611d87908301846117f256fea26469706673582212205eec7d8437cc7feab34c392572c2d26fc6636f3c5e08f52b3fd3c7125fc194d764736f6c63430008110033

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

000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000fb8f81b61cf53ec2a5ace5627a76bf142df99b1f0000000000000000000000009a88d47ebb4038e9d8479a9535fcca0d3f8ba73b0000000000000000000000000000000000000000000000000000000000000015476f6f70656e2045646974696f6e7320627920424b00000000000000000000000000000000000000000000000000000000000000000000000000000000000002424b000000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _name (string): Goopen Editions by BK
Arg [1] : _symbol (string): BK
Arg [2] : _artist (address): 0xFb8f81b61cF53EC2A5aCE5627a76Bf142dF99B1F
Arg [3] : _owner (address): 0x9A88d47EBb4038e9d8479A9535FCCa0d3F8Ba73B

-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 000000000000000000000000fb8f81b61cf53ec2a5ace5627a76bf142df99b1f
Arg [3] : 0000000000000000000000009a88d47ebb4038e9d8479a9535fcca0d3f8ba73b
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000015
Arg [5] : 476f6f70656e2045646974696f6e7320627920424b0000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [7] : 424b000000000000000000000000000000000000000000000000000000000000


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.