Contract 0xC6f4F8C67D96F1d29bc76df03F114d106b1D9172

 
 
Txn Hash
Method
Block
From
To
Value
0xdd9b1fdc4f8dba82bb07e4ced2866357bbdff41194ea891857e62b174c24d9e6Safe Transfer Fr...146171652022-04-19 18:23:02234 days 10 hrs agoENS Name chainsawinudeployer.eth IN  0xc6f4f8c67d96f1d29bc76df03f114d106b1d91720 Ether0.00790164 138.52080615
0x523e91cc25d015344737f393bf842896a6407d0eea91023e5870acd5d06d0188Safe Transfer Fr...146171622022-04-19 18:21:53234 days 10 hrs agoENS Name chainsawinudeployer.eth IN  0xc6f4f8c67d96f1d29bc76df03f114d106b1d91720 Ether0.00698428 122.43891
0xf3d597b4077f7589bb3e8fbe4bbe0d71dd5ab740ee2c3edcb7efc70cfc3035e0Set Approval For...146167942022-04-19 17:00:24234 days 11 hrs ago0xd4cd290ef28783986586199bd402e54f762f5ccf IN  0xc6f4f8c67d96f1d29bc76df03f114d106b1d91720 Ether0.00180145 38.91160942
0xeac6ff400f06f0c4d6fead2b5ff7a44b9b596a9d992633031d886cdb21754c5cSafe Transfer Fr...146167762022-04-19 16:57:00234 days 11 hrs agoENS Name chainsawinudeployer.eth IN  0xc6f4f8c67d96f1d29bc76df03f114d106b1d91720 Ether0.00245687 43.07052901
0xd3fdd7c1ecf6da8671240b97104962ab69bd9488b71b032109ec2e5429d9253fSet Approval For...146053822022-04-17 22:16:07236 days 6 hrs agoENS Name chainsawinudeployer.eth IN  0xc6f4f8c67d96f1d29bc76df03f114d106b1d91720 Ether0.00079103 17.0863999
0x2d497add040fb3c6db189af5ede54d672130e0d9d26764f967809ca2e48d43bfSet Base URI146051632022-04-17 21:28:19236 days 7 hrs agoENS Name chainsawinudeployer.eth IN  0xc6f4f8c67d96f1d29bc76df03f114d106b1d91720 Ether0.00175476 43.27097086
0x4f64acddf17c603f2a4774dc088e1c0adfec72b12671483c00277847a7f6d0f3Set Base URI146051472022-04-17 21:24:30236 days 7 hrs agoENS Name chainsawinudeployer.eth IN  0xc6f4f8c67d96f1d29bc76df03f114d106b1d91720 Ether0.00651956 66.89816917
0x084c81651356803925f706722f4c43863cb5e888fd237ef87dc9a4c9bca8202aReserve Assets F...146039172022-04-17 16:48:39236 days 11 hrs agoENS Name chainsawinudeployer.eth IN  0xc6f4f8c67d96f1d29bc76df03f114d106b1d91720 Ether0.00204644 24.02068837
0x44ff28d565f08bf634eb1bf85b1486be8b7bd955a3f86d208e237dd358e5bbb7Reserve Assets F...146039172022-04-17 16:48:39236 days 11 hrs agoENS Name chainsawinudeployer.eth IN  0xc6f4f8c67d96f1d29bc76df03f114d106b1d91720 Ether0.00204644 24.02068837
0x11144edc005649d9786172217df4ad7607014deda71126c5209e5b44ab45ed9fReserve Assets F...146039162022-04-17 16:48:17236 days 11 hrs agoENS Name chainsawinudeployer.eth IN  0xc6f4f8c67d96f1d29bc76df03f114d106b1d91720 Ether0.00185151 21.73272191
0xc55cc3936f22a6f4410f744a39c3342dcd36d2d16eb2e41319e6cd1fd6ab40e9Reserve Assets F...146039162022-04-17 16:48:17236 days 11 hrs agoENS Name chainsawinudeployer.eth IN  0xc6f4f8c67d96f1d29bc76df03f114d106b1d91720 Ether0.00185151 21.73272191
0xfa8321f561a530cdd0a1a971c756caf466535ae7898261ceec6d999840d64106Create Asset146039092022-04-17 16:47:15236 days 11 hrs agoENS Name chainsawinudeployer.eth IN  0xc6f4f8c67d96f1d29bc76df03f114d106b1d91720 Ether0.00239894 24.56622724
0x99edad4bad15ac426d5cb567ff574a478a3ac8639b04f9abe3c9339822d64c5fCreate Asset146039082022-04-17 16:47:12236 days 11 hrs agoENS Name chainsawinudeployer.eth IN  0xc6f4f8c67d96f1d29bc76df03f114d106b1d91720 Ether0.00258878 26.51036078
0x2fa18234028d490d2a28610d04c9a5a7ba12d56c8dea3b866269536d30abc5d7Create Asset146039072022-04-17 16:46:57236 days 11 hrs agoENS Name chainsawinudeployer.eth IN  0xc6f4f8c67d96f1d29bc76df03f114d106b1d91720 Ether0.00254649 26.07724232
0x597120ef68f642ae23f253a5a52eead94df734d541b342dece294987cbe02ce3Create Asset146039042022-04-17 16:46:08236 days 11 hrs agoENS Name chainsawinudeployer.eth IN  0xc6f4f8c67d96f1d29bc76df03f114d106b1d91720 Ether0.00232374 23.7961492
0x4533004cd58f80a1b96ce71e25d988b79d7701950cb18261c66fe204c8d351740x60806040146038102022-04-17 16:24:51236 days 12 hrs agoENS Name chainsawinudeployer.eth IN  Create: ChainsawInuNft0 Ether0.1030715240
[ Download CSV Export 
View more zero value Internal Transactions in Advanced View mode
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ChainsawInuNft

Compiler Version
v0.8.0+commit.c7dfd78e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 12 : ChainsawInuNft.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol";

struct Asset {
    uint256 price;
    uint256 collectionId;
    uint256 maxSupply;
    uint256 maxPerWallet;
    uint256 openMintTimestamp; // unix timestamp in seconds
}

contract ChainsawInuNft is ERC1155Supply, Ownable {
    using Strings for uint256;

    // The name of the token ("ChainsawInuNft")
    string public name;
    // The token symbol ("LVP")
    string public symbol;

    // A mapping of the number of Collection minted per collectionId per user
    // assetMintedPerCollectionId[msg.sender][collectionId] => number of minted Asset
    mapping(address => mapping(uint256 => uint256))
        private assetMintedPerCollectionId;

    // A mapping from collectionId to its Asset
    mapping(uint256 => Asset) private collectionToAsset;

    // Define if sale is active
    bool public saleIsActive = false;

    // Event emitted when a Asset is bought
    event AssetBought(
        uint256 collectionId,
        address indexed account,
        uint256 amount
    );

    // Event emitted when a new Asset is created
    event CreatedAsset(
        uint256 price,
        uint256 collectionId,
        uint256 maxSupply,
        uint256 maxPerWallet,
        uint256 openMintTimestamp
    );

    /**
     * @dev Initializes the contract by setting the name and the token symbol
     */
    constructor(string memory baseURI) ERC1155(baseURI) {
        name = "ChainsawInuNft";
        symbol = "CHAINFT";
    }

    /*
     * Pause sale if active, make active if paused
     */
    function setSaleState(bool newState) public onlyOwner {
        saleIsActive = newState;
    }

    /**
     * @dev Retrieves the Asset Details for a given collectionId.
     */
    function getCollectionToAsset(uint256 collectionId)
        external
        view
        returns (Asset memory)
    {
        return collectionToAsset[collectionId];
    }

    /**
     * @dev Contracts the metadata URI for the Asset of the given collectionId.
     *
     * Requirements:
     *
     * - The Asset exists for the given collectionId
     */
    function uri(uint256 collectionId)
        public
        view
        override
        returns (string memory)
    {
        require(
            collectionToAsset[collectionId].collectionId != 0,
            "Invalid collection"
        );
        return
            string(
                abi.encodePacked(
                    super.uri(collectionId),
                    collectionId.toString(),
                    ".json"
                )
            );
    }

    /**
     * Owner-only methods
     */

    /**
     * @dev Sets the base URI for the Collection metadata.
     */
    function setBaseURI(string memory baseURI) external onlyOwner {
        require(bytes(baseURI).length != 0, "baseURI cannot be empty");
        _setURI(baseURI);
    }

    /**
     * @dev Sets the parameters on the Collection struct for the given collection.
     * Emits CreatedAsset indicating new assest is created
     */
    function createAsset(
        uint256 price,
        uint256 collectionId,
        uint256 maxSupply,
        uint256 maxPerWallet,
        uint256 openMintTimestamp
    ) external onlyOwner {
        require(
            collectionId != 0 &&
                collectionToAsset[collectionId].collectionId == 0,
            "Invalid collectionId"
        );
        require(
            maxSupply >= maxPerWallet,
            "maxSupply must be greater or equal to maxPerWallet"
        );

        collectionToAsset[collectionId] = Asset(
            price,
            collectionId,
            maxSupply,
            maxPerWallet,
            openMintTimestamp
        );

        emit CreatedAsset(
            price,
            collectionId,
            maxSupply,
            maxPerWallet,
            openMintTimestamp
        );
    }

    /**
     * @dev Withdraws the balance
     */
    function withdraw() external onlyOwner {
        uint256 balance = address(this).balance;
        require(balance > 0, "Cannot WithDraw With Balance Zero");
        (bool success, ) = msg.sender.call{value: balance}("");
        require(success, "Transfer failed.");
    }

    /**
     * @dev Creates a reserve of Assets to set aside for gifting.
     *
     * Requirements:
     *
     * - There are enough Assets to mint for the given collection
     * - The supply for the given collection does not exceed the maxSupply of the Collection
     */
    function reserveAssetsForGifting(
        uint256 collectionId,
        uint256 amountEachAddress,
        address[] calldata addresses
    ) public onlyOwner {
        require(
            collectionId != 0 &&
                collectionToAsset[collectionId].collectionId != 0,
            "Invalid collectionId"
        );
        Asset memory asset = collectionToAsset[collectionId];
        require(amountEachAddress > 0, "Amount cannot be 0");
        require(
            totalSupply(collectionId) < asset.maxSupply,
            "No assets to mint"
        );
        require(
            totalSupply(collectionId) + amountEachAddress * addresses.length <=
                asset.maxSupply,
            "Cannot mint that many"
        );
        require(addresses.length > 0, "Need addresses");
        for (uint256 i = 0; i < addresses.length; i++) {
            address add = addresses[i];
            _mint(add, collectionId, amountEachAddress, "");
        }
    }

    /**
     * @dev Mints a set number of Asset for a given collection.
     *
     * Emits a `AssetBought` event indicating the Collection was minted successfully.
     *
     * Requirements:
     *
     * - The current time is within the minting window for the given collection
     * - There are Assets available to mint for the given collection
     * - The user is not trying to mint more than the maxSupply
     * - The user is not trying to mint more than the maxPerWallet
     * - The user has enough ETH for the transaction
     */
    function mintAsset(uint256 collectionId, uint256 amount) external payable {
        require(saleIsActive, "Mint is not available right now");
        require(
            collectionId != 0 &&
                collectionToAsset[collectionId].collectionId != 0,
            "Invalid collectionId"
        );
        Asset memory asset = collectionToAsset[collectionId];
        require(
            block.timestamp >= asset.openMintTimestamp,
            "Mint is not available"
        );
        require(totalSupply(collectionId) < asset.maxSupply, "Sold out");
        require(
            totalSupply(collectionId) + amount <= asset.maxSupply,
            "Cannot mint that many"
        );

        uint256 totalMintedAssets = assetMintedPerCollectionId[msg.sender][
            collectionId
        ];
        require(
            totalMintedAssets + amount <= asset.maxPerWallet,
            "Exceeding maximum per wallet"
        );
        require(msg.value >= asset.price * amount, "Not enough eth");

        assetMintedPerCollectionId[msg.sender][collectionId] =
            totalMintedAssets +
            amount;
        _mint(msg.sender, collectionId, amount, "");

        emit AssetBought(collectionId, msg.sender, amount);
    }

    /**
     * @dev Retrieves the number of Asset a user has minted by collectionId.
     */
    function assetMintedByCollectionID(address user, uint256 collectionId)
        external
        view
        returns (uint256)
    {
        return assetMintedPerCollectionId[user][collectionId];
    }
}

File 2 of 12 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @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] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }
}

File 3 of 12 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 4 of 12 : ERC1155Supply.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/ERC1155Supply.sol)

pragma solidity ^0.8.0;

import "../ERC1155.sol";

/**
 * @dev Extension of ERC1155 that adds tracking of total supply per id.
 *
 * Useful for scenarios where Fungible and Non-fungible tokens have to be
 * clearly identified. Note: While a totalSupply of 1 might mean the
 * corresponding is an NFT, there is no guarantees that no other token with the
 * same id are not going to be minted.
 */
abstract contract ERC1155Supply is ERC1155 {
    mapping(uint256 => uint256) private _totalSupply;

    /**
     * @dev Total amount of tokens in with a given id.
     */
    function totalSupply(uint256 id) public view virtual returns (uint256) {
        return _totalSupply[id];
    }

    /**
     * @dev Indicates whether any token exist with a given id, or not.
     */
    function exists(uint256 id) public view virtual returns (bool) {
        return ERC1155Supply.totalSupply(id) > 0;
    }

    /**
     * @dev See {ERC1155-_beforeTokenTransfer}.
     */
    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual override {
        super._beforeTokenTransfer(operator, from, to, ids, amounts, data);

        if (from == address(0)) {
            for (uint256 i = 0; i < ids.length; ++i) {
                _totalSupply[ids[i]] += amounts[i];
            }
        }

        if (to == address(0)) {
            for (uint256 i = 0; i < ids.length; ++i) {
                _totalSupply[ids[i]] -= amounts[i];
            }
        }
    }
}

File 5 of 12 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

File 6 of 12 : ERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/ERC1155.sol)

pragma solidity ^0.8.0;

import "./IERC1155.sol";
import "./IERC1155Receiver.sol";
import "./extensions/IERC1155MetadataURI.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of the basic standard multi-token.
 * See https://eips.ethereum.org/EIPS/eip-1155
 * Originally based on code by Enjin: https://github.com/enjin/erc-1155
 *
 * _Available since v3.1._
 */
contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI {
    using Address for address;

    // Mapping from token ID to account balances
    mapping(uint256 => mapping(address => uint256)) private _balances;

    // Mapping from account to operator approvals
    mapping(address => mapping(address => bool)) private _operatorApprovals;

    // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json
    string private _uri;

    /**
     * @dev See {_setURI}.
     */
    constructor(string memory uri_) {
        _setURI(uri_);
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
        return
            interfaceId == type(IERC1155).interfaceId ||
            interfaceId == type(IERC1155MetadataURI).interfaceId ||
            super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IERC1155MetadataURI-uri}.
     *
     * This implementation returns the same URI for *all* token types. It relies
     * on the token type ID substitution mechanism
     * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
     *
     * Clients calling this function must replace the `\{id\}` substring with the
     * actual token type ID.
     */
    function uri(uint256) public view virtual override returns (string memory) {
        return _uri;
    }

    /**
     * @dev See {IERC1155-balanceOf}.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) public view virtual override returns (uint256) {
        require(account != address(0), "ERC1155: balance query for the zero address");
        return _balances[id][account];
    }

    /**
     * @dev See {IERC1155-balanceOfBatch}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] memory accounts, uint256[] memory ids)
        public
        view
        virtual
        override
        returns (uint256[] memory)
    {
        require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch");

        uint256[] memory batchBalances = new uint256[](accounts.length);

        for (uint256 i = 0; i < accounts.length; ++i) {
            batchBalances[i] = balanceOf(accounts[i], ids[i]);
        }

        return batchBalances;
    }

    /**
     * @dev See {IERC1155-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _setApprovalForAll(_msgSender(), operator, approved);
    }

    /**
     * @dev See {IERC1155-isApprovedForAll}.
     */
    function isApprovedForAll(address account, address operator) public view virtual override returns (bool) {
        return _operatorApprovals[account][operator];
    }

    /**
     * @dev See {IERC1155-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) public virtual override {
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: caller is not owner nor approved"
        );
        _safeTransferFrom(from, to, id, amount, data);
    }

    /**
     * @dev See {IERC1155-safeBatchTransferFrom}.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) public virtual override {
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: transfer caller is not owner nor approved"
        );
        _safeBatchTransferFrom(from, to, ids, amounts, data);
    }

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, to, _asSingletonArray(id), _asSingletonArray(amount), data);

        uint256 fromBalance = _balances[id][from];
        require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
        unchecked {
            _balances[id][from] = fromBalance - amount;
        }
        _balances[id][to] += amount;

        emit TransferSingle(operator, from, to, id, amount);

        _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function _safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, to, ids, amounts, data);

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

            uint256 fromBalance = _balances[id][from];
            require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
            unchecked {
                _balances[id][from] = fromBalance - amount;
            }
            _balances[id][to] += amount;
        }

        emit TransferBatch(operator, from, to, ids, amounts);

        _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data);
    }

    /**
     * @dev Sets a new URI for all token types, by relying on the token type ID
     * substitution mechanism
     * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
     *
     * By this mechanism, any occurrence of the `\{id\}` substring in either the
     * URI or any of the amounts in the JSON file at said URI will be replaced by
     * clients with the token type ID.
     *
     * For example, the `https://token-cdn-domain/\{id\}.json` URI would be
     * interpreted by clients as
     * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json`
     * for token type ID 0x4cce0.
     *
     * See {uri}.
     *
     * Because these URIs cannot be meaningfully represented by the {URI} event,
     * this function emits no events.
     */
    function _setURI(string memory newuri) internal virtual {
        _uri = newuri;
    }

    /**
     * @dev Creates `amount` tokens of token type `id`, and assigns them to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _mint(
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: mint to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, address(0), to, _asSingletonArray(id), _asSingletonArray(amount), data);

        _balances[id][to] += amount;
        emit TransferSingle(operator, address(0), to, id, amount);

        _doSafeTransferAcceptanceCheck(operator, address(0), to, id, amount, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function _mintBatch(
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: mint to the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, address(0), to, ids, amounts, data);

        for (uint256 i = 0; i < ids.length; i++) {
            _balances[ids[i]][to] += amounts[i];
        }

        emit TransferBatch(operator, address(0), to, ids, amounts);

        _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data);
    }

    /**
     * @dev Destroys `amount` tokens of token type `id` from `from`
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `from` must have at least `amount` tokens of token type `id`.
     */
    function _burn(
        address from,
        uint256 id,
        uint256 amount
    ) internal virtual {
        require(from != address(0), "ERC1155: burn from the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, address(0), _asSingletonArray(id), _asSingletonArray(amount), "");

        uint256 fromBalance = _balances[id][from];
        require(fromBalance >= amount, "ERC1155: burn amount exceeds balance");
        unchecked {
            _balances[id][from] = fromBalance - amount;
        }

        emit TransferSingle(operator, from, address(0), id, amount);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     */
    function _burnBatch(
        address from,
        uint256[] memory ids,
        uint256[] memory amounts
    ) internal virtual {
        require(from != address(0), "ERC1155: burn from the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, address(0), ids, amounts, "");

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

            uint256 fromBalance = _balances[id][from];
            require(fromBalance >= amount, "ERC1155: burn amount exceeds balance");
            unchecked {
                _balances[id][from] = fromBalance - amount;
            }
        }

        emit TransferBatch(operator, from, address(0), ids, amounts);
    }

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits a {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC1155: setting approval status for self");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning, as well as batched variants.
     *
     * The same hook is called on both single and batched variants. For single
     * transfers, the length of the `id` and `amount` arrays will be 1.
     *
     * Calling conditions (for each `id` and `amount` pair):
     *
     * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * of token type `id` will be  transferred to `to`.
     * - When `from` is zero, `amount` tokens of token type `id` will be minted
     * for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens of token type `id`
     * will be burned.
     * - `from` and `to` are never both zero.
     * - `ids` and `amounts` have the same, non-zero length.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {}

    function _doSafeTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) {
                if (response != IERC1155Receiver.onERC1155Received.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non ERC1155Receiver implementer");
            }
        }
    }

    function _doSafeBatchTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns (
                bytes4 response
            ) {
                if (response != IERC1155Receiver.onERC1155BatchReceived.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non ERC1155Receiver implementer");
            }
        }
    }

    function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) {
        uint256[] memory array = new uint256[](1);
        array[0] = element;

        return array;
    }
}

File 7 of 12 : IERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/IERC1155.sol)

pragma solidity ^0.8.0;

import "../../utils/introspection/IERC165.sol";

/**
 * @dev Required interface of an ERC1155 compliant contract, as defined in the
 * https://eips.ethereum.org/EIPS/eip-1155[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155 is IERC165 {
    /**
     * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.
     */
    event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);

    /**
     * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all
     * transfers.
     */
    event TransferBatch(
        address indexed operator,
        address indexed from,
        address indexed to,
        uint256[] ids,
        uint256[] values
    );

    /**
     * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to
     * `approved`.
     */
    event ApprovalForAll(address indexed account, address indexed operator, bool approved);

    /**
     * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.
     *
     * If an {URI} event was emitted for `id`, the standard
     * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value
     * returned by {IERC1155MetadataURI-uri}.
     */
    event URI(string value, uint256 indexed id);

    /**
     * @dev Returns the amount of tokens of token type `id` owned by `account`.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) external view returns (uint256);

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids)
        external
        view
        returns (uint256[] memory);

    /**
     * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,
     *
     * Emits an {ApprovalForAll} event.
     *
     * Requirements:
     *
     * - `operator` cannot be the caller.
     */
    function setApprovalForAll(address operator, bool approved) external;

    /**
     * @dev Returns true if `operator` is approved to transfer ``account``'s tokens.
     *
     * See {setApprovalForAll}.
     */
    function isApprovedForAll(address account, address operator) external view returns (bool);

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes calldata data
    ) external;

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] calldata ids,
        uint256[] calldata amounts,
        bytes calldata data
    ) external;
}

File 8 of 12 : IERC1155Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/IERC1155Receiver.sol)

pragma solidity ^0.8.0;

import "../../utils/introspection/IERC165.sol";

/**
 * @dev _Available since v3.1._
 */
interface IERC1155Receiver is IERC165 {
    /**
        @dev Handles the receipt of a single ERC1155 token type. This function is
        called at the end of a `safeTransferFrom` after the balance has been updated.
        To accept the transfer, this must return
        `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))`
        (i.e. 0xf23a6e61, or its own function selector).
        @param operator The address which initiated the transfer (i.e. msg.sender)
        @param from The address which previously owned the token
        @param id The ID of the token being transferred
        @param value The amount of tokens being transferred
        @param data Additional data with no specified format
        @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed
    */
    function onERC1155Received(
        address operator,
        address from,
        uint256 id,
        uint256 value,
        bytes calldata data
    ) external returns (bytes4);

    /**
        @dev Handles the receipt of a multiple ERC1155 token types. This function
        is called at the end of a `safeBatchTransferFrom` after the balances have
        been updated. To accept the transfer(s), this must return
        `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))`
        (i.e. 0xbc197c81, or its own function selector).
        @param operator The address which initiated the batch transfer (i.e. msg.sender)
        @param from The address which previously owned the token
        @param ids An array containing ids of each token being transferred (order and length must match values array)
        @param values An array containing amounts of each token being transferred (order and length must match ids array)
        @param data Additional data with no specified format
        @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed
    */
    function onERC1155BatchReceived(
        address operator,
        address from,
        uint256[] calldata ids,
        uint256[] calldata values,
        bytes calldata data
    ) external returns (bytes4);
}

File 9 of 12 : IERC1155MetadataURI.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/IERC1155MetadataURI.sol)

pragma solidity ^0.8.0;

import "../IERC1155.sol";

/**
 * @dev Interface of the optional ERC1155MetadataExtension interface, as defined
 * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155MetadataURI is IERC1155 {
    /**
     * @dev Returns the URI for token type `id`.
     *
     * If the `\{id\}` substring is present in the URI, it must be replaced by
     * clients with the actual token type ID.
     */
    function uri(uint256 id) external view returns (string memory);
}

File 10 of 12 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Address.sol)

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 11 of 12 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

File 12 of 12 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","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":false,"internalType":"uint256","name":"collectionId","type":"uint256"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"AssetBought","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"collectionId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"maxSupply","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"maxPerWallet","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"openMintTimestamp","type":"uint256"}],"name":"CreatedAsset","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","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":"values","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":"value","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":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"collectionId","type":"uint256"}],"name":"assetMintedByCollectionID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"collectionId","type":"uint256"},{"internalType":"uint256","name":"maxSupply","type":"uint256"},{"internalType":"uint256","name":"maxPerWallet","type":"uint256"},{"internalType":"uint256","name":"openMintTimestamp","type":"uint256"}],"name":"createAsset","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"collectionId","type":"uint256"}],"name":"getCollectionToAsset","outputs":[{"components":[{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"collectionId","type":"uint256"},{"internalType":"uint256","name":"maxSupply","type":"uint256"},{"internalType":"uint256","name":"maxPerWallet","type":"uint256"},{"internalType":"uint256","name":"openMintTimestamp","type":"uint256"}],"internalType":"struct Asset","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"collectionId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mintAsset","outputs":[],"stateMutability":"payable","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":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"collectionId","type":"uint256"},{"internalType":"uint256","name":"amountEachAddress","type":"uint256"},{"internalType":"address[]","name":"addresses","type":"address[]"}],"name":"reserveAssetsForGifting","outputs":[],"stateMutability":"nonpayable","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":[],"name":"saleIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"newState","type":"bool"}],"name":"setSaleState","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":"uint256","name":"id","type":"uint256"}],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"collectionId","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526009805460ff191690553480156200001b57600080fd5b5060405162002ece38038062002ece8339810160408190526200003e91620001e4565b806200004a81620000cf565b506200005f62000059620000e8565b620000ec565b60408051808201909152600e8082526d10da185a5b9cd85dd25b9d53999d60921b602090920191825262000096916005916200013e565b506040805180820190915260078082526610d2105253919560ca1b6020909201918252620000c7916006916200013e565b505062000306565b8051620000e49060029060208401906200013e565b5050565b3390565b600480546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200014c90620002b3565b90600052602060002090601f016020900481019282620001705760008555620001bb565b82601f106200018b57805160ff1916838001178555620001bb565b82800160010185558215620001bb579182015b82811115620001bb5782518255916020019190600101906200019e565b50620001c9929150620001cd565b5090565b5b80821115620001c95760008155600101620001ce565b60006020808385031215620001f7578182fd5b82516001600160401b03808211156200020e578384fd5b818501915085601f83011262000222578384fd5b815181811115620002375762000237620002f0565b604051601f8201601f19168101850183811182821017156200025d576200025d620002f0565b604052818152838201850188101562000274578586fd5b8592505b8183101562000297578383018501518184018601529184019162000278565b81831115620002a857858583830101525b979650505050505050565b600281046001821680620002c857607f821691505b60208210811415620002ea57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b612bb880620003166000396000f3fe60806040526004361061014a5760003560e01c806395d89b41116100b6578063c4e370951161006f578063c4e37095146103a4578063d8859c80146103c4578063e985e9c5146103e4578063eb8d244414610404578063f242432a14610419578063f2fde38b146104395761014a565b806395d89b41146102fc578063a22cb46514610311578063b88dab3214610331578063ba663d6314610344578063bd85b03914610364578063c48f7f66146103845761014a565b80633f484bbe116101085780633f484bbe1461022b5780634e1273f4146102585780634f558e791461028557806355f804b3146102a5578063715018a6146102c55780638da5cb5b146102da5761014a565b8062fdd58e1461014f57806301ffc9a71461018557806306fdde03146101b25780630e89341c146101d45780632eb2c2d6146101f45780633ccfd60b14610216575b600080fd5b34801561015b57600080fd5b5061016f61016a366004611e0d565b610459565b60405161017c91906128fb565b60405180910390f35b34801561019157600080fd5b506101a56101a0366004611f0e565b6104b0565b60405161017c9190612219565b3480156101be57600080fd5b506101c76104f8565b60405161017c9190612224565b3480156101e057600080fd5b506101c76101ef366004611f8c565b610586565b34801561020057600080fd5b5061021461020f366004611cdb565b6105f0565b005b34801561022257600080fd5b5061021461064e565b34801561023757600080fd5b5061024b610246366004611f8c565b61072b565b60405161017c91906128c1565b34801561026457600080fd5b50610278610273366004611e36565b610782565b60405161017c91906121d8565b34801561029157600080fd5b506101a56102a0366004611f8c565b6108a2565b3480156102b157600080fd5b506102146102c0366004611f46565b6108b5565b3480156102d157600080fd5b5061021461091e565b3480156102e657600080fd5b506102ef610969565b60405161017c9190612121565b34801561030857600080fd5b506101c7610979565b34801561031d57600080fd5b5061021461032c366004611de4565b610986565b61021461033f366004611fa4565b610998565b34801561035057600080fd5b5061016f61035f366004611e0d565b610bbf565b34801561037057600080fd5b5061016f61037f366004611f8c565b610be7565b34801561039057600080fd5b5061021461039f366004611fc5565b610bf9565b3480156103b057600080fd5b506102146103bf366004611ef4565b610ddd565b3480156103d057600080fd5b506102146103df366004612042565b610e2f565b3480156103f057600080fd5b506101a56103ff366004611ca9565b610f62565b34801561041057600080fd5b506101a5610f90565b34801561042557600080fd5b50610214610434366004611d81565b610f99565b34801561044557600080fd5b50610214610454366004611c8f565b610ff0565b60006001600160a01b03831661048a5760405162461bcd60e51b8152600401610481906122d3565b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b03198216636cdb3d1360e11b14806104e157506001600160e01b031982166303a24d0760e21b145b806104f057506104f08261105e565b90505b919050565b6005805461050590612a15565b80601f016020809104026020016040519081016040528092919081815260200182805461053190612a15565b801561057e5780601f106105535761010080835404028352916020019161057e565b820191906000526020600020905b81548152906001019060200180831161056157829003601f168201915b505050505081565b6000818152600860205260409020600101546060906105b75760405162461bcd60e51b8152600401610481906124e0565b6105c082611077565b6105c98361110b565b6040516020016105da9291906120e2565b6040516020818303038152906040529050919050565b6105f861122e565b6001600160a01b0316856001600160a01b0316148061061e575061061e856103ff61122e565b61063a5760405162461bcd60e51b81526004016104819061257f565b6106478585858585611232565b5050505050565b61065661122e565b6001600160a01b0316610667610969565b6001600160a01b03161461068d5760405162461bcd60e51b815260040161048190612652565b47806106ab5760405162461bcd60e51b8152600401610481906126ea565b6000336001600160a01b0316826040516106c490610976565b60006040518083038185875af1925050503d8060008114610701576040519150601f19603f3d011682016040523d82523d6000602084013e610706565b606091505b50509050806107275760405162461bcd60e51b81526004016104819061272b565b5050565b610733611ab6565b50600090815260086020908152604091829020825160a0810184528154815260018201549281019290925260028101549282019290925260038201546060820152600490910154608082015290565b606081518351146107a55760405162461bcd60e51b8152600401610481906127c0565b6000835167ffffffffffffffff8111156107cf57634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156107f8578160200160208202803683370190505b50905060005b845181101561089a5761085f85828151811061082a57634e487b7160e01b600052603260045260246000fd5b602002602001015185838151811061085257634e487b7160e01b600052603260045260246000fd5b6020026020010151610459565b82828151811061087f57634e487b7160e01b600052603260045260246000fd5b602090810291909101015261089381612a50565b90506107fe565b509392505050565b6000806108ae83610be7565b1192915050565b6108bd61122e565b6001600160a01b03166108ce610969565b6001600160a01b0316146108f45760405162461bcd60e51b815260040161048190612652565b80516109125760405162461bcd60e51b8152600401610481906125d1565b61091b816113fb565b50565b61092661122e565b6001600160a01b0316610937610969565b6001600160a01b03161461095d5760405162461bcd60e51b815260040161048190612652565b610967600061140e565b565b6004546001600160a01b03165b90565b6006805461050590612a15565b61072761099161122e565b8383611460565b60095460ff166109ba5760405162461bcd60e51b815260040161048190612400565b81158015906109d9575060008281526008602052604090206001015415155b6109f55760405162461bcd60e51b81526004016104819061250c565b600082815260086020908152604091829020825160a081018452815481526001820154928101929092526002810154928201929092526003820154606082015260049091015460808201819052421015610a615760405162461bcd60e51b8152600401610481906124b1565b8060400151610a6f84610be7565b10610a8c5760405162461bcd60e51b815260040161048190612755565b806040015182610a9b85610be7565b610aa59190612983565b1115610ac35760405162461bcd60e51b815260040161048190612892565b3360009081526007602090815260408083208684529091529020546060820151610aed8483612983565b1115610b0b5760405162461bcd60e51b8152600401610481906126b3565b8151610b189084906129af565b341015610b375760405162461bcd60e51b815260040161048190612489565b610b418382612983565b33600081815260076020908152604080832089845282528083209490945583519081019093528252610b769186908690611503565b336001600160a01b03167f03df89dfb876aa84df9da92f20f01a759db288978046b346c2e42daf1f5355ed8585604051610bb1929190612904565b60405180910390a250505050565b6001600160a01b03919091166000908152600760209081526040808320938352929052205490565b60009081526003602052604090205490565b610c0161122e565b6001600160a01b0316610c12610969565b6001600160a01b031614610c385760405162461bcd60e51b815260040161048190612652565b8315801590610c57575060008481526008602052604090206001015415155b610c735760405162461bcd60e51b81526004016104819061250c565b600084815260086020908152604091829020825160a0810184528154815260018201549281019290925260028101549282019290925260038201546060820152600490910154608082015283610cdb5760405162461bcd60e51b815260040161048190612687565b8060400151610ce986610be7565b10610d065760405162461bcd60e51b815260040161048190612364565b6040810151610d1583866129af565b610d1e87610be7565b610d289190612983565b1115610d465760405162461bcd60e51b815260040161048190612892565b81610d635760405162461bcd60e51b81526004016104819061238f565b60005b82811015610dd5576000848483818110610d9057634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610da59190611c8f565b9050610dc281888860405180602001604052806000815250611503565b5080610dcd81612a50565b915050610d66565b505050505050565b610de561122e565b6001600160a01b0316610df6610969565b6001600160a01b031614610e1c5760405162461bcd60e51b815260040161048190612652565b6009805460ff1916911515919091179055565b610e3761122e565b6001600160a01b0316610e48610969565b6001600160a01b031614610e6e5760405162461bcd60e51b815260040161048190612652565b8315801590610e8c5750600084815260086020526040902060010154155b610ea85760405162461bcd60e51b81526004016104819061250c565b81831015610ec85760405162461bcd60e51b815260040161048190612437565b6040805160a0810182528681526020808201878152828401878152606084018781526080850187815260008b8152600890955293869020945185559151600185015551600284015551600383015551600490910155517feb471f5115e6df8b1fea9764d5ef87c8ef18eb48b537669f08d4bf295a7f6d1090610f539087908790879087908790612912565b60405180910390a15050505050565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b60095460ff1681565b610fa161122e565b6001600160a01b0316856001600160a01b03161480610fc75750610fc7856103ff61122e565b610fe35760405162461bcd60e51b8152600401610481906123b7565b61064785858585856115f2565b610ff861122e565b6001600160a01b0316611009610969565b6001600160a01b03161461102f5760405162461bcd60e51b815260040161048190612652565b6001600160a01b0381166110555760405162461bcd60e51b81526004016104819061231e565b61091b8161140e565b6001600160e01b031981166301ffc9a760e01b14919050565b60606002805461108690612a15565b80601f01602080910402602001604051908101604052809291908181526020018280546110b290612a15565b80156110ff5780601f106110d4576101008083540402835291602001916110ff565b820191906000526020600020905b8154815290600101906020018083116110e257829003601f168201915b50505050509050919050565b60608161113057506040805180820190915260018152600360fc1b60208201526104f3565b8160005b811561115a578061114481612a50565b91506111539050600a8361299b565b9150611134565b60008167ffffffffffffffff81111561118357634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156111ad576020820181803683370190505b5090505b8415611226576111c26001836129ce565b91506111cf600a86612a6b565b6111da906030612983565b60f81b8183815181106111fd57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535061121f600a8661299b565b94506111b1565b949350505050565b3390565b81518351146112535760405162461bcd60e51b815260040161048190612809565b6001600160a01b0384166112795760405162461bcd60e51b81526004016104819061253a565b600061128361122e565b9050611293818787878787611726565b60005b84518110156113955760008582815181106112c157634e487b7160e01b600052603260045260246000fd5b6020026020010151905060008583815181106112ed57634e487b7160e01b600052603260045260246000fd5b602090810291909101810151600084815280835260408082206001600160a01b038e16835290935291909120549091508181101561133d5760405162461bcd60e51b815260040161048190612608565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b1682528120805484929061137a908490612983565b925050819055505050508061138e90612a50565b9050611296565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516113e59291906121eb565b60405180910390a4610dd5818787878787611878565b8051610727906002906020840190611ae5565b600480546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031614156114925760405162461bcd60e51b815260040161048190612777565b6001600160a01b0383811660008181526001602090815260408083209487168084529490915290819020805460ff1916851515179055517f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31906114f6908590612219565b60405180910390a3505050565b6001600160a01b0384166115295760405162461bcd60e51b815260040161048190612851565b600061153361122e565b90506115548160008761154588611986565b61154e88611986565b87611726565b6000848152602081815260408083206001600160a01b038916845290915281208054859290611584908490612983565b92505081905550846001600160a01b031660006001600160a01b0316826001600160a01b03167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6287876040516115db929190612904565b60405180910390a4610647816000878787876119df565b6001600160a01b0384166116185760405162461bcd60e51b81526004016104819061253a565b600061162261122e565b905061163381878761154588611986565b6000848152602081815260408083206001600160a01b038a168452909152902054838110156116745760405162461bcd60e51b815260040161048190612608565b6000858152602081815260408083206001600160a01b038b81168552925280832087850390559088168252812080548692906116b1908490612983565b92505081905550856001600160a01b0316876001600160a01b0316836001600160a01b03167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628888604051611707929190612904565b60405180910390a461171d8288888888886119df565b50505050505050565b611734868686868686610dd5565b6001600160a01b0385166117d75760005b83518110156117d55782818151811061176e57634e487b7160e01b600052603260045260246000fd5b60200260200101516003600086848151811061179a57634e487b7160e01b600052603260045260246000fd5b6020026020010151815260200190815260200160002060008282546117bf9190612983565b909155506117ce905081612a50565b9050611745565b505b6001600160a01b038416610dd55760005b835181101561171d5782818151811061181157634e487b7160e01b600052603260045260246000fd5b60200260200101516003600086848151811061183d57634e487b7160e01b600052603260045260246000fd5b60200260200101518152602001908152602001600020600082825461186291906129ce565b90915550611871905081612a50565b90506117e8565b61188a846001600160a01b0316611ab0565b15610dd55760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906118c39089908990889088908890600401612135565b602060405180830381600087803b1580156118dd57600080fd5b505af192505050801561190d575060408051601f3d908101601f1916820190925261190a91810190611f2a565b60015b61195657611919612ac7565b80611924575061193e565b8060405162461bcd60e51b81526004016104819190612224565b60405162461bcd60e51b815260040161048190612237565b6001600160e01b0319811663bc197c8160e01b1461171d5760405162461bcd60e51b81526004016104819061228b565b604080516001808252818301909252606091600091906020808301908036833701905050905082816000815181106119ce57634e487b7160e01b600052603260045260246000fd5b602090810291909101015292915050565b6119f1846001600160a01b0316611ab0565b15610dd55760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190611a2a9089908990889088908890600401612193565b602060405180830381600087803b158015611a4457600080fd5b505af1925050508015611a74575060408051601f3d908101601f19168201909252611a7191810190611f2a565b60015b611a8057611919612ac7565b6001600160e01b0319811663f23a6e6160e01b1461171d5760405162461bcd60e51b81526004016104819061228b565b3b151590565b6040518060a0016040528060008152602001600081526020016000815260200160008152602001600081525090565b828054611af190612a15565b90600052602060002090601f016020900481019282611b135760008555611b59565b82601f10611b2c57805160ff1916838001178555611b59565b82800160010185558215611b59579182015b82811115611b59578251825591602001919060010190611b3e565b50611b65929150611b69565b5090565b5b80821115611b655760008155600101611b6a565b600067ffffffffffffffff831115611b9857611b98612aab565b611bab601f8401601f1916602001612935565b9050828152838383011115611bbf57600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b03811681146104f357600080fd5b600082601f830112611bfd578081fd5b81356020611c12611c0d8361295f565b612935565b8281528181019085830183850287018401881015611c2e578586fd5b855b85811015611c4c57813584529284019290840190600101611c30565b5090979650505050505050565b803580151581146104f357600080fd5b600082601f830112611c79578081fd5b611c8883833560208501611b7e565b9392505050565b600060208284031215611ca0578081fd5b611c8882611bd6565b60008060408385031215611cbb578081fd5b611cc483611bd6565b9150611cd260208401611bd6565b90509250929050565b600080600080600060a08688031215611cf2578081fd5b611cfb86611bd6565b9450611d0960208701611bd6565b9350604086013567ffffffffffffffff80821115611d25578283fd5b611d3189838a01611bed565b94506060880135915080821115611d46578283fd5b611d5289838a01611bed565b93506080880135915080821115611d67578283fd5b50611d7488828901611c69565b9150509295509295909350565b600080600080600060a08688031215611d98578081fd5b611da186611bd6565b9450611daf60208701611bd6565b93506040860135925060608601359150608086013567ffffffffffffffff811115611dd8578182fd5b611d7488828901611c69565b60008060408385031215611df6578182fd5b611dff83611bd6565b9150611cd260208401611c59565b60008060408385031215611e1f578182fd5b611e2883611bd6565b946020939093013593505050565b60008060408385031215611e48578182fd5b823567ffffffffffffffff80821115611e5f578384fd5b818501915085601f830112611e72578384fd5b81356020611e82611c0d8361295f565b82815281810190858301838502870184018b1015611e9e578889fd5b8896505b84871015611ec757611eb381611bd6565b835260019690960195918301918301611ea2565b5096505086013592505080821115611edd578283fd5b50611eea85828601611bed565b9150509250929050565b600060208284031215611f05578081fd5b611c8882611c59565b600060208284031215611f1f578081fd5b8135611c8881612b6c565b600060208284031215611f3b578081fd5b8151611c8881612b6c565b600060208284031215611f57578081fd5b813567ffffffffffffffff811115611f6d578182fd5b8201601f81018413611f7d578182fd5b61122684823560208401611b7e565b600060208284031215611f9d578081fd5b5035919050565b60008060408385031215611fb6578182fd5b50508035926020909101359150565b60008060008060608587031215611fda578182fd5b8435935060208501359250604085013567ffffffffffffffff80821115611fff578384fd5b818701915087601f830112612012578384fd5b813581811115612020578485fd5b8860208083028501011115612033578485fd5b95989497505060200194505050565b600080600080600060a08688031215612059578283fd5b505083359560208501359550604085013594606081013594506080013592509050565b6000815180845260208085019450808401835b838110156120ab5781518752958201959082019060010161208f565b509495945050505050565b600081518084526120ce8160208601602086016129e5565b601f01601f19169290920160200192915050565b600083516120f48184602088016129e5565b8351908301906121088183602088016129e5565b64173539b7b760d91b9101908152600501949350505050565b6001600160a01b0391909116815260200190565b6001600160a01b0386811682528516602082015260a0604082018190526000906121619083018661207c565b8281036060840152612173818661207c565b9050828103608084015261218781856120b6565b98975050505050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a0608082018190526000906121cd908301846120b6565b979650505050505050565b600060208252611c88602083018461207c565b6000604082526121fe604083018561207c565b8281036020840152612210818561207c565b95945050505050565b901515815260200190565b600060208252611c8860208301846120b6565b60208082526034908201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356040820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b606082015260800190565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6020808252602b908201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60408201526a65726f206164647265737360a81b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b602080825260119082015270139bc8185cdcd95d1cc81d1bc81b5a5b9d607a1b604082015260600190565b6020808252600e908201526d4e6565642061646472657373657360901b604082015260600190565b60208082526029908201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260408201526808185c1c1c9bdd995960ba1b606082015260800190565b6020808252601f908201527f4d696e74206973206e6f7420617661696c61626c65207269676874206e6f7700604082015260600190565b60208082526032908201527f6d6178537570706c79206d7573742062652067726561746572206f7220657175604082015271185b081d1bc81b585e14195c95d85b1b195d60721b606082015260800190565b6020808252600e908201526d09cdee840cadcdeeaced040cae8d60931b604082015260600190565b6020808252601590820152744d696e74206973206e6f7420617661696c61626c6560581b604082015260600190565b60208082526012908201527124b73b30b634b21031b7b63632b1ba34b7b760711b604082015260600190565b602080825260149082015273125b9d985b1a590818dbdb1b1958dd1a5bdb925960621b604082015260600190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526032908201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206040820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b606082015260800190565b60208082526017908201527f626173655552492063616e6e6f7420626520656d707479000000000000000000604082015260600190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601290820152710416d6f756e742063616e6e6f7420626520360741b604082015260600190565b6020808252601c908201527f457863656564696e67206d6178696d756d207065722077616c6c657400000000604082015260600190565b60208082526021908201527f43616e6e6f7420576974684472617720576974682042616c616e6365205a65726040820152606f60f81b606082015260800190565b60208082526010908201526f2a3930b739b332b9103330b4b632b21760811b604082015260600190565b60208082526008908201526714dbdb19081bdd5d60c21b604082015260600190565b60208082526029908201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604082015268103337b91039b2b63360b91b606082015260800190565b60208082526029908201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604082015268040dad2e6dac2e8c6d60bb1b606082015260800190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60208082526021908201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736040820152607360f81b606082015260800190565b60208082526015908201527443616e6e6f74206d696e742074686174206d616e7960581b604082015260600190565b600060a082019050825182526020830151602083015260408301516040830152606083015160608301526080830151608083015292915050565b90815260200190565b918252602082015260400190565b948552602085019390935260408401919091526060830152608082015260a00190565b60405181810167ffffffffffffffff8111828210171561295757612957612aab565b604052919050565b600067ffffffffffffffff82111561297957612979612aab565b5060209081020190565b6000821982111561299657612996612a7f565b500190565b6000826129aa576129aa612a95565b500490565b60008160001904831182151516156129c9576129c9612a7f565b500290565b6000828210156129e0576129e0612a7f565b500390565b60005b83811015612a005781810151838201526020016129e8565b83811115612a0f576000848401525b50505050565b600281046001821680612a2957607f821691505b60208210811415612a4a57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415612a6457612a64612a7f565b5060010190565b600082612a7a57612a7a612a95565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b60e01c90565b600060443d1015612ad757610976565b600481823e6308c379a0612aeb8251612ac1565b14612af557610976565b6040513d600319016004823e80513d67ffffffffffffffff8160248401118184111715612b255750505050610976565b82840192508251915080821115612b3f5750505050610976565b503d83016020828401011115612b5757505050610976565b601f01601f1916810160200160405291505090565b6001600160e01b03198116811461091b57600080fdfea264697066735822122003b50b44c7a754121847b59f26ebb08873ea2a6fd026331a21c234523375c1ab64736f6c63430008000033000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000047465737400000000000000000000000000000000000000000000000000000000

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

000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000047465737400000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : baseURI (string): test

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [2] : 7465737400000000000000000000000000000000000000000000000000000000


Block Transaction Difficulty Gas Used Reward
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.

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.