ETH Price: $3,240.48 (-12.56%)

Token

MovieShots - Silhouettes (MSHOT-SILHOUETTE)
 

Overview

Max Total Supply

630 MSHOT-SILHOUETTE

Holders

431

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
0x6e37a0c2617c097e07d43fbc87bfc11a8fd04698
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:
MovieShotSilhouettes

Compiler Version
v0.8.13+commit.abaa5c0e

Optimization Enabled:
Yes with 200 runs

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

pragma solidity ^0.8.13;

import "./AbstractERC1155Factory.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";

///////////////////////////////////////////////////////////////////////////////////////////
//                                                                                       //
//   ███    ███  ██████  ██    ██ ██ ███████ ███████ ██   ██  ██████  ████████ ███████   //
//   ████  ████ ██    ██ ██    ██ ██ ██      ██      ██   ██ ██    ██    ██    ██        //
//   ██ ████ ██ ██    ██ ██    ██ ██ █████   ███████ ███████ ██    ██    ██    ███████   //
//   ██  ██  ██ ██    ██  ██  ██  ██ ██           ██ ██   ██ ██    ██    ██         ██   //
//   ██      ██  ██████    ████   ██ ███████ ███████ ██   ██  ██████     ██    ███████   //
//                                                                                       //
///////////////////////////////////////////////////////////////////////////////////////////

contract MovieShotSilhouettes is AbstractERC1155Factory {
    using Counters for Counters.Counter;

    address public adminMinter;
    address public beneficiaryAddress;
    mapping(uint256 => Silhouette) public silhouettes;

    Counters.Counter private _counter;

    modifier onlyAdminMinter() {
        require(adminMinter == msg.sender, "Caller is not the admin minter");
        _;
    }

    event Claimed(
        uint256 indexed index,
        address indexed account,
        uint256 amount
    );

    event Minted(
        uint256 indexed index,
        address indexed account,
        uint256 amount
    );

    struct Silhouette {
        uint256 mintPrice;
        uint256 maxMintTx;
        uint256 maxSupply;
        string metadataHash;
        bytes32 merkleRoot;
        bool claimActive;
        bool mintActive;
        uint256 maxMint;
        mapping(address => uint256) minted;
        mapping(address => uint256) claimed;
    }

    constructor(
        string memory uri_,
        string memory baseExtension_,
        string memory name_,
        string memory symbol_,
        address royaltyReceiver_,
        uint256 royaltyShare_,
        address owner_,
        address adminMinter_,
        address beneficiaryAddress_
    )
        AbstractERC1155Factory(
            uri_,
            baseExtension_,
            name_,
            symbol_,
            royaltyReceiver_,
            royaltyShare_
        )
    {
        transferOwnership(owner_);
        adminMinter = adminMinter_;
        beneficiaryAddress = beneficiaryAddress_;
    }

    function addSilhouette(
        uint256 _mintPrice,
        uint256 _maxMintTx,
        uint256 _maxSupply,
        string memory _metadataHash,
        bytes32 _merkleRoot,
        uint256 _maxMint
    ) external onlyOwner {
        Silhouette storage s = silhouettes[_counter.current()];
        s.mintPrice = _mintPrice;
        s.maxMintTx = _maxMintTx;
        s.maxSupply = _maxSupply;
        s.metadataHash = _metadataHash;
        s.merkleRoot = _merkleRoot;
        s.maxMint = _maxMint;
        s.claimActive = false;
        s.mintActive = false;
        _counter.increment();
    }

    function editSilhouette(
        uint256 _id,
        uint256 _mintPrice,
        uint256 _maxMintTx,
        uint256 _decreaseMaxSupplyByAmount,
        string memory _metadataHash,
        bytes32 _merkleRoot,
        uint256 _maxMint
    ) external onlyOwner {
        require(silhouettes[_id].maxSupply > 0, "Silhouette does not exist");
        require(
            (silhouettes[_id].maxSupply - _decreaseMaxSupplyByAmount) >=
                totalSupply(_id),
            "Amount cannot be decreased as it has already been minted"
        );

        silhouettes[_id].maxMintTx = _maxMintTx;
        silhouettes[_id].mintPrice = _mintPrice;
        silhouettes[_id].maxSupply =
            silhouettes[_id].maxSupply -
            _decreaseMaxSupplyByAmount;
        silhouettes[_id].metadataHash = _metadataHash;
        silhouettes[_id].merkleRoot = _merkleRoot;
        silhouettes[_id].maxMint = _maxMint;
    }

    function editSilhouetteClaim(uint256[] calldata _ids, bool _claimActive)
        external
        onlyOwner
    {
        for (uint256 i; i < _ids.length; i++) {
            require(silhouettes[i].maxSupply > 0, "Silhouette does not exist");
            silhouettes[i].claimActive = _claimActive;
        }
    }

    function editSilhouetteMint(uint256[] calldata _ids, bool _mintActive)
        external
        onlyOwner
    {
        for (uint256 i; i < _ids.length; i++) {
            require(silhouettes[i].maxSupply > 0, "Silhouette does not exist");
            silhouettes[i].mintActive = _mintActive;
        }
    }

    function setAdminMinter(address _adminMinter) external onlyOwner {
        adminMinter = _adminMinter;
    }

    function setBeneficiaryAddress(address _beneficiaryAddress) external onlyOwner {
        beneficiaryAddress = _beneficiaryAddress;
    }

    function adminMint(
        uint256 _id,
        address _to,
        uint256 _amount
    ) public onlyAdminMinter {
        require(silhouettes[_id].maxSupply > 0, "Silhouette does not exist");
        require(
            (totalSupply(_id) + _amount) <= silhouettes[_id].maxSupply,
            "Max supply exceeded"
        );

        _mint(_to, _id, _amount, new bytes(0));
    }

    function claim(
        uint256 _id,
        uint256 _amount,
        uint256 _maxAmount,
        bytes32[] calldata _merkleProof
    ) external whenNotPaused {
        require(silhouettes[_id].claimActive, "Claim is not active");
        require(
            totalSupply(_id) + _amount <= silhouettes[_id].maxSupply,
            "Max supply exceeded"
        );
        require(
            (silhouettes[_id].claimed[msg.sender] + _amount) <= _maxAmount,
            "Attempting to mint too many tokens"
        );

        bytes32 node = keccak256(abi.encodePacked(_id, msg.sender, _maxAmount));
        require(
            MerkleProof.verify(_merkleProof, silhouettes[_id].merkleRoot, node),
            "Invalid proof"
        );

        silhouettes[_id].claimed[msg.sender] =
            silhouettes[_id].claimed[msg.sender] +
            _amount;

        _mint(msg.sender, _id, _amount, new bytes(0));
        emit Claimed(_id, msg.sender, _amount);
    }

    function mint(uint256 _id, uint256 _amount) external payable whenNotPaused {
        require(silhouettes[_id].mintActive, "Mint is not active");
        require(
            msg.value == _amount * silhouettes[_id].mintPrice,
            "Incorrect eth amount"
        );
        require(
            _amount <= silhouettes[_id].maxMintTx,
            "Attempting to mint too many tokens"
        );
        require(
            totalSupply(_id) + _amount <= silhouettes[_id].maxSupply,
            "Max supply exceeded"
        );
        if (silhouettes[_id].maxMint > 0) {
            require(
                (silhouettes[_id].minted[msg.sender] + _amount) <=
                    silhouettes[_id].maxMint,
                "Attempting to mint too many tokens"
            );

            silhouettes[_id].minted[msg.sender] =
                silhouettes[_id].minted[msg.sender] +
                _amount;
        }

        _mint(msg.sender, _id, _amount, new bytes(0));
        emit Minted(_id, msg.sender, _amount);
    }

    function totalSupplyAll() external view returns (uint256[] memory) {
        uint256[] memory result = new uint256[](_counter.current());

        for (uint256 i; i < _counter.current(); i++) {
            result[i] = totalSupply(i);
        }

        return result;
    }

    function uri(uint256 _id) public view override returns (string memory) {
        require(
            exists(_id),
            "ERC1155Metadata: URI query for nonexistent token"
        );

        return
            string(
                abi.encodePacked(
                    super.uri(_id),
                    silhouettes[_id].metadataHash,
                    baseExtension()
                )
            );
    }

    function withdraw() external onlyOwner {
        uint256 balance = address(this).balance;
        (bool success, ) = payable(beneficiaryAddress).call{value: balance}("");
        require(success, "Withdraw failed");
    }
}

File 2 of 18 : AbstractERC1155Factory.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.13;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/interfaces/IERC2981.sol";
import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Burnable.sol";
import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol";

abstract contract AbstractERC1155Factory is
    IERC2981,
    Ownable,
    Pausable,
    ERC1155Supply,
    ERC1155Burnable
{
    string private _name;
    string private _symbol;
    string private _baseExtension;
    address private _royaltyReceiver;
    uint256 private _royaltyShare;

    constructor(
        string memory uri_,
        string memory baseExtension_,
        string memory name_,
        string memory symbol_,
        address royaltyReceiver_,
        uint256 royaltyShare_
    ) ERC1155(uri_) {
        _name = name_;
        _symbol = symbol_;
        _baseExtension = baseExtension_;
        _royaltyReceiver = royaltyReceiver_;
        _royaltyShare = royaltyShare_;
    }

    function pause() external onlyOwner {
        _pause();
    }

    function unpause() external onlyOwner {
        _unpause();
    }

    function setURI(string memory baseURI) external onlyOwner {
        _setURI(baseURI);
    }

    function setbBaseExtension(string memory baseExtension_)
        external
        onlyOwner
    {
        _baseExtension = baseExtension_;
    }

    function setRoyaltyReceiver(address royaltyReceiver_) external onlyOwner {
        _royaltyReceiver = royaltyReceiver_;
    }

    function setRoyaltyShare(uint256 royaltyShare_) external onlyOwner {
        _royaltyShare = royaltyShare_;
    }

    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        override
        returns (address receiver, uint256 royaltyAmount)
    {
        require(exists(tokenId), "Non-existent token");
        return (royaltyReceiver(), (salePrice * royaltyShare()) / 10000);
    }

    function baseExtension() public view returns (string memory) {
        return _baseExtension;
    }

    function royaltyReceiver() public view returns (address) {
        return _royaltyReceiver;
    }

    function royaltyShare() public view returns (uint256) {
        return _royaltyShare;
    }

    function name() public view returns (string memory) {
        return _name;
    }

    function symbol() public view returns (string memory) {
        return _symbol;
    }

    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override(ERC1155, IERC165)
        returns (bool)
    {
        return (interfaceId == type(IERC2981).interfaceId ||
            super.supportsInterface(interfaceId));
    }

    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual override(ERC1155, ERC1155Supply) {
        super._beforeTokenTransfer(operator, from, to, ids, amounts, data);
    }
}

File 3 of 18 : Counters.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)

pragma solidity ^0.8.0;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 */
library Counters {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }

    function reset(Counter storage counter) internal {
        counter._value = 0;
    }
}

File 4 of 18 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Trees proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merklee tree up
     * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
     * hash matches the root of the tree. When processing the proof, the pairs
     * of leafs & pre-images are assumed to be sorted.
     *
     * _Available since v4.4._
     */
    function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            bytes32 proofElement = proof[i];
            if (computedHash <= proofElement) {
                // Hash(current computed hash + current element of the proof)
                computedHash = _efficientHash(computedHash, proofElement);
            } else {
                // Hash(current element of the proof + current computed hash)
                computedHash = _efficientHash(proofElement, computedHash);
            }
        }
        return computedHash;
    }

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

File 5 of 18 : 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 6 of 18 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

File 7 of 18 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Interface for the NFT Royalty Standard.
 *
 * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal
 * support for royalty payments across all NFT marketplaces and ecosystem participants.
 *
 * _Available since v4.5._
 */
interface IERC2981 is IERC165 {
    /**
     * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of
     * exchange. The royalty amount is denominated and should be payed in that same unit of exchange.
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount);
}

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

pragma solidity ^0.8.0;

import "../ERC1155.sol";

/**
 * @dev Extension of {ERC1155} that allows token holders to destroy both their
 * own tokens and those that they have been approved to use.
 *
 * _Available since v3.1._
 */
abstract contract ERC1155Burnable is ERC1155 {
    function burn(
        address account,
        uint256 id,
        uint256 value
    ) public virtual {
        require(
            account == _msgSender() || isApprovedForAll(account, _msgSender()),
            "ERC1155: caller is not owner nor approved"
        );

        _burn(account, id, value);
    }

    function burnBatch(
        address account,
        uint256[] memory ids,
        uint256[] memory values
    ) public virtual {
        require(
            account == _msgSender() || isApprovedForAll(account, _msgSender()),
            "ERC1155: caller is not owner nor approved"
        );

        _burnBatch(account, ids, values);
    }
}

File 9 of 18 : 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 10 of 18 : 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 11 of 18 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC165.sol)

pragma solidity ^0.8.0;

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

File 12 of 18 : 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);
}

File 13 of 18 : 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 14 of 18 : 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 15 of 18 : IERC1155Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (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.
     *
     * NOTE: 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.
     *
     * NOTE: 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 16 of 18 : 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 17 of 18 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://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 18 of 18 : 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;
    }
}

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":"uri_","type":"string"},{"internalType":"string","name":"baseExtension_","type":"string"},{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"address","name":"royaltyReceiver_","type":"address"},{"internalType":"uint256","name":"royaltyShare_","type":"uint256"},{"internalType":"address","name":"owner_","type":"address"},{"internalType":"address","name":"adminMinter_","type":"address"},{"internalType":"address","name":"beneficiaryAddress_","type":"address"}],"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":true,"internalType":"uint256","name":"index","type":"uint256"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Claimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"index","type":"uint256"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Minted","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":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"uint256","name":"_mintPrice","type":"uint256"},{"internalType":"uint256","name":"_maxMintTx","type":"uint256"},{"internalType":"uint256","name":"_maxSupply","type":"uint256"},{"internalType":"string","name":"_metadataHash","type":"string"},{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"},{"internalType":"uint256","name":"_maxMint","type":"uint256"}],"name":"addSilhouette","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"adminMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"adminMinter","outputs":[{"internalType":"address","name":"","type":"address"}],"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":[],"name":"baseExtension","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"beneficiaryAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"burnBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_maxAmount","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_mintPrice","type":"uint256"},{"internalType":"uint256","name":"_maxMintTx","type":"uint256"},{"internalType":"uint256","name":"_decreaseMaxSupplyByAmount","type":"uint256"},{"internalType":"string","name":"_metadataHash","type":"string"},{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"},{"internalType":"uint256","name":"_maxMint","type":"uint256"}],"name":"editSilhouette","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_ids","type":"uint256[]"},{"internalType":"bool","name":"_claimActive","type":"bool"}],"name":"editSilhouetteClaim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_ids","type":"uint256[]"},{"internalType":"bool","name":"_mintActive","type":"bool"}],"name":"editSilhouetteMint","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":"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":"_id","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mint","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":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"royaltyReceiver","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"royaltyShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"_adminMinter","type":"address"}],"name":"setAdminMinter","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":"address","name":"_beneficiaryAddress","type":"address"}],"name":"setBeneficiaryAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"royaltyReceiver_","type":"address"}],"name":"setRoyaltyReceiver","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"royaltyShare_","type":"uint256"}],"name":"setRoyaltyShare","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseExtension_","type":"string"}],"name":"setbBaseExtension","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"silhouettes","outputs":[{"internalType":"uint256","name":"mintPrice","type":"uint256"},{"internalType":"uint256","name":"maxMintTx","type":"uint256"},{"internalType":"uint256","name":"maxSupply","type":"uint256"},{"internalType":"string","name":"metadataHash","type":"string"},{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"},{"internalType":"bool","name":"claimActive","type":"bool"},{"internalType":"bool","name":"mintActive","type":"bool"},{"internalType":"uint256","name":"maxMint","type":"uint256"}],"stateMutability":"view","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":[],"name":"totalSupplyAll","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":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b5060405162003d7e38038062003d7e8339810160408190526200003491620003df565b88888888888885620000463362000111565b6000805460ff60a01b191690556200005e8162000161565b508351620000749060059060208701906200024f565b5082516200008a9060069060208601906200024f565b508451620000a09060079060208801906200024f565b50600880546001600160a01b039093166001600160a01b03199093169290921790915560095550620000d79250859150506200017a565b600a80546001600160a01b039384166001600160a01b031991821617909155600b8054929093169116179055506200052995505050505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b8051620001769060039060208401906200024f565b5050565b6000546001600160a01b03163314620001da5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b6001600160a01b038116620002415760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401620001d1565b6200024c8162000111565b50565b8280546200025d90620004ed565b90600052602060002090601f016020900481019282620002815760008555620002cc565b82601f106200029c57805160ff1916838001178555620002cc565b82800160010185558215620002cc579182015b82811115620002cc578251825591602001919060010190620002af565b50620002da929150620002de565b5090565b5b80821115620002da5760008155600101620002df565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200031d57600080fd5b81516001600160401b03808211156200033a576200033a620002f5565b604051601f8301601f19908116603f01168101908282118183101715620003655762000365620002f5565b816040528381526020925086838588010111156200038257600080fd5b600091505b83821015620003a6578582018301518183018401529082019062000387565b83821115620003b85760008385830101525b9695505050505050565b80516001600160a01b0381168114620003da57600080fd5b919050565b60008060008060008060008060006101208a8c031215620003ff57600080fd5b89516001600160401b03808211156200041757600080fd5b620004258d838e016200030b565b9a5060208c01519150808211156200043c57600080fd5b6200044a8d838e016200030b565b995060408c01519150808211156200046157600080fd5b6200046f8d838e016200030b565b985060608c01519150808211156200048657600080fd5b50620004958c828d016200030b565b965050620004a660808b01620003c2565b945060a08a01519350620004bd60c08b01620003c2565b9250620004cd60e08b01620003c2565b9150620004de6101008b01620003c2565b90509295985092959850929598565b600181811c908216806200050257607f821691505b6020821081036200052357634e487b7160e01b600052602260045260246000fd5b50919050565b61384580620005396000396000f3fe6080604052600436106102505760003560e01c80638dc251e311610139578063d9c4870e116100b6578063f242432a1161007a578063f242432a1461072b578063f24b87211461074b578063f2fde38b1461076b578063f5298aca1461078b578063f8934a9b146107ab578063ff799d51146107cb57600080fd5b8063d9c4870e14610662578063e985e9c514610682578063ea25e176146106cb578063ec6be06e146106eb578063ed7bec991461070b57600080fd5b8063b42394f1116100fd578063b42394f1146105d6578063b61d9c26146105eb578063ba967e5714610600578063bd85b03914610620578063c66828621461064d57600080fd5b80638dc251e314610543578063928f3f521461056357806395d89b41146105835780639fbc871314610598578063a22cb465146105b657600080fd5b80633f4ba83a116101d25780636b20c454116101965780636b20c454146104735780636b94ccd714610493578063715018a6146104c75780638456cb59146104dc5780638976a198146104f15780638da5cb5b1461051157600080fd5b80633f4ba83a146103c35780634e1273f4146103d85780634f558e79146104055780635c975abb1461043457806367291c001461045357600080fd5b80631202b45f116102195780631202b45f1461031c5780631b2ef1ca1461033c5780632a55205a1461034f5780632eb2c2d61461038e5780633ccfd60b146103ae57600080fd5b8062fdd58e1461025557806301ffc9a71461028857806302fe5305146102b857806306fdde03146102da5780630e89341c146102fc575b600080fd5b34801561026157600080fd5b50610275610270366004612997565b6107eb565b6040519081526020015b60405180910390f35b34801561029457600080fd5b506102a86102a33660046129d7565b610884565b604051901515815260200161027f565b3480156102c457600080fd5b506102d86102d3366004612ab0565b6108af565b005b3480156102e657600080fd5b506102ef6108e5565b60405161027f9190612b44565b34801561030857600080fd5b506102ef610317366004612b57565b610977565b34801561032857600080fd5b506102d8610337366004612bc4565b610a38565b6102d861034a366004612c17565b610ad0565b34801561035b57600080fd5b5061036f61036a366004612c17565b610d4a565b604080516001600160a01b03909316835260208301919091520161027f565b34801561039a57600080fd5b506102d86103a9366004612ccd565b610dd4565b3480156103ba57600080fd5b506102d8610e6b565b3480156103cf57600080fd5b506102d8610f32565b3480156103e457600080fd5b506103f86103f3366004612d76565b610f66565b60405161027f9190612e7b565b34801561041157600080fd5b506102a8610420366004612b57565b600090815260046020526040902054151590565b34801561044057600080fd5b50600054600160a01b900460ff166102a8565b34801561045f57600080fd5b506102d861046e366004612e8e565b61108f565b34801561047f57600080fd5b506102d861048e366004612ec3565b611170565b34801561049f57600080fd5b506104b36104ae366004612b57565b6111b3565b60405161027f989796959493929190612f36565b3480156104d357600080fd5b506102d8611288565b3480156104e857600080fd5b506102d86112bc565b3480156104fd57600080fd5b506102d861050c366004612bc4565b6112ee565b34801561051d57600080fd5b506000546001600160a01b03165b6040516001600160a01b03909116815260200161027f565b34801561054f57600080fd5b506102d861055e366004612f84565b611385565b34801561056f57600080fd5b506102d861057e366004612f9f565b6113d1565b34801561058f57600080fd5b506102ef611540565b3480156105a457600080fd5b506008546001600160a01b031661052b565b3480156105c257600080fd5b506102d86105d1366004613015565b61154f565b3480156105e257600080fd5b506103f861155a565b3480156105f757600080fd5b50600954610275565b34801561060c57600080fd5b506102d861061b366004613048565b6115fb565b34801561062c57600080fd5b5061027561063b366004612b57565b60009081526004602052604090205490565b34801561065957600080fd5b506102ef6116a0565b34801561066e57600080fd5b50600b5461052b906001600160a01b031681565b34801561068e57600080fd5b506102a861069d3660046130b3565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205460ff1690565b3480156106d757600080fd5b506102d86106e63660046130dd565b6116af565b3480156106f757600080fd5b506102d8610706366004612f84565b61192b565b34801561071757600080fd5b50600a5461052b906001600160a01b031681565b34801561073757600080fd5b506102d861074636600461313d565b611977565b34801561075757600080fd5b506102d8610766366004612f84565b6119bc565b34801561077757600080fd5b506102d8610786366004612f84565b611a08565b34801561079757600080fd5b506102d86107a63660046131a1565b611aa0565b3480156107b757600080fd5b506102d86107c6366004612ab0565b611ae3565b3480156107d757600080fd5b506102d86107e6366004612b57565b611b20565b60006001600160a01b03831661085c5760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b5060009081526001602090815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b0319821663152a902d60e11b14806108a957506108a982611b4f565b92915050565b6000546001600160a01b031633146108d95760405162461bcd60e51b8152600401610853906131d4565b6108e281611b9f565b50565b6060600580546108f490613209565b80601f016020809104026020016040519081016040528092919081815260200182805461092090613209565b801561096d5780601f106109425761010080835404028352916020019161096d565b820191906000526020600020905b81548152906001019060200180831161095057829003601f168201915b5050505050905090565b6000818152600460205260409020546060906109ee5760405162461bcd60e51b815260206004820152603060248201527f455243313135354d657461646174613a2055524920717565727920666f72206e60448201526f37b732bc34b9ba32b73a103a37b5b2b760811b6064820152608401610853565b6109f782611bb2565b6000838152600c60205260409020600301610a106116a0565b604051602001610a2293929190613259565b6040516020818303038152906040529050919050565b6000546001600160a01b03163314610a625760405162461bcd60e51b8152600401610853906131d4565b60005b82811015610aca576000818152600c6020526040902060020154610a9b5760405162461bcd60e51b815260040161085390613314565b6000818152600c60205260409020600501805460ff191683151517905580610ac281613361565b915050610a65565b50505050565b600054600160a01b900460ff1615610afa5760405162461bcd60e51b81526004016108539061337a565b6000828152600c6020526040902060050154610100900460ff16610b555760405162461bcd60e51b81526020600482015260126024820152714d696e74206973206e6f742061637469766560701b6044820152606401610853565b6000828152600c6020526040902054610b6e90826133a4565b3414610bb35760405162461bcd60e51b8152602060048201526014602482015273125b98dbdc9c9958dd08195d1a08185b5bdd5b9d60621b6044820152606401610853565b6000828152600c6020526040902060010154811115610be45760405162461bcd60e51b8152600401610853906133c3565b6000828152600c6020908152604080832060020154600490925290912054610c0d908390613405565b1115610c2b5760405162461bcd60e51b81526004016108539061341d565b6000828152600c602052604090206006015415610cd6576000828152600c602090815260408083206006810154338552600790910190925290912054610c72908390613405565b1115610c905760405162461bcd60e51b8152600401610853906133c3565b6000828152600c60209081526040808320338452600701909152902054610cb8908290613405565b6000838152600c602090815260408083203384526007019091529020555b610d0f33838360005b6040519080825280601f01601f191660200182016040528015610d09576020820181803683370190505b50611c46565b604051818152339083907fc9d0543a84d3510329c0783b91576878ceb484e8699944cb5610c3436b3b8e399060200160405180910390a35050565b6000828152600460205260408120548190610d9c5760405162461bcd60e51b81526020600482015260126024820152712737b716b2bc34b9ba32b73a103a37b5b2b760711b6044820152606401610853565b6008546001600160a01b0316612710610db460095490565b610dbe90866133a4565b610dc8919061344a565b915091505b9250929050565b6001600160a01b038516331480610df05750610df0853361069d565b610e575760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610853565b610e648585858585611d58565b5050505050565b6000546001600160a01b03163314610e955760405162461bcd60e51b8152600401610853906131d4565b600b5460405147916000916001600160a01b039091169083908381818185875af1925050503d8060008114610ee6576040519150601f19603f3d011682016040523d82523d6000602084013e610eeb565b606091505b5050905080610f2e5760405162461bcd60e51b815260206004820152600f60248201526e15da5d1a191c985dc819985a5b1959608a1b6044820152606401610853565b5050565b6000546001600160a01b03163314610f5c5760405162461bcd60e51b8152600401610853906131d4565b610f64611f05565b565b60608151835114610fcb5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610853565b600083516001600160401b03811115610fe657610fe66129fb565b60405190808252806020026020018201604052801561100f578160200160208202803683370190505b50905060005b84518110156110875761105a8582815181106110335761103361346c565b602002602001015185838151811061104d5761104d61346c565b60200260200101516107eb565b82828151811061106c5761106c61346c565b602090810291909101015261108081613361565b9050611015565b509392505050565b600a546001600160a01b031633146110e95760405162461bcd60e51b815260206004820152601e60248201527f43616c6c6572206973206e6f74207468652061646d696e206d696e74657200006044820152606401610853565b6000838152600c60205260409020600201546111175760405162461bcd60e51b815260040161085390613314565b6000838152600c6020908152604080832060020154600490925290912054611140908390613405565b111561115e5760405162461bcd60e51b81526004016108539061341d565b61116b8284836000610cdf565b505050565b6001600160a01b03831633148061118c575061118c833361069d565b6111a85760405162461bcd60e51b815260040161085390613482565b61116b838383611fa2565b600c602052600090815260409020805460018201546002830154600384018054939492939192916111e390613209565b80601f016020809104026020016040519081016040528092919081815260200182805461120f90613209565b801561125c5780601f106112315761010080835404028352916020019161125c565b820191906000526020600020905b81548152906001019060200180831161123f57829003601f168201915b505050600484015460058501546006909501549394909360ff8083169450610100909204909116915088565b6000546001600160a01b031633146112b25760405162461bcd60e51b8152600401610853906131d4565b610f646000612133565b6000546001600160a01b031633146112e65760405162461bcd60e51b8152600401610853906131d4565b610f64612183565b6000546001600160a01b031633146113185760405162461bcd60e51b8152600401610853906131d4565b60005b82811015610aca576000818152600c60205260409020600201546113515760405162461bcd60e51b815260040161085390613314565b6000818152600c60205260409020600501805461ff001916610100841515021790558061137d81613361565b91505061131b565b6000546001600160a01b031633146113af5760405162461bcd60e51b8152600401610853906131d4565b600880546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146113fb5760405162461bcd60e51b8152600401610853906131d4565b6000878152600c60205260409020600201546114295760405162461bcd60e51b815260040161085390613314565b6000878152600460205260409020546000888152600c60205260409020600201546114559086906134cb565b10156114c95760405162461bcd60e51b815260206004820152603860248201527f416d6f756e742063616e6e6f742062652064656372656173656420617320697460448201527f2068617320616c7265616479206265656e206d696e74656400000000000000006064820152608401610853565b6000878152600c6020526040902060018101869055868155600201546114f09085906134cb565b6000888152600c602090815260409091206002810192909255845161151b92600301918601906128e2565b506000968752600c602052604090962060048101919091556006019490945550505050565b6060600680546108f490613209565b610f2e3383836121e8565b60606000611567600d5490565b6001600160401b0381111561157e5761157e6129fb565b6040519080825280602002602001820160405280156115a7578160200160208202803683370190505b50905060005b600d548110156115f5576000818152600460205260409020548282815181106115d8576115d861346c565b6020908102919091010152806115ed81613361565b9150506115ad565b50919050565b6000546001600160a01b031633146116255760405162461bcd60e51b8152600401610853906131d4565b6000600c6000611634600d5490565b81526020808201929092526040016000208881556001810188905560028101879055855190925061166d916003840191908701906128e2565b50600481018390556006810182905560058101805461ffff19169055611697600d80546001019055565b50505050505050565b6060600780546108f490613209565b600054600160a01b900460ff16156116d95760405162461bcd60e51b81526004016108539061337a565b6000858152600c602052604090206005015460ff166117305760405162461bcd60e51b8152602060048201526013602482015272436c61696d206973206e6f742061637469766560681b6044820152606401610853565b6000858152600c6020908152604080832060020154600490925290912054611759908690613405565b11156117775760405162461bcd60e51b81526004016108539061341d565b6000858152600c6020908152604080832033845260080190915290205483906117a1908690613405565b11156117bf5760405162461bcd60e51b8152600401610853906133c3565b60408051602081018790526bffffffffffffffffffffffff193360601b16918101919091526054810184905260009060740160405160208183030381529060405280519060200120905061185783838080602002602001604051908101604052809392919081815260200183836020028082843760009201829052508b8152600c602052604090206004015492508591506122c89050565b6118935760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610853565b6000868152600c602090815260408083203384526008019091529020546118bb908690613405565b6000878152600c602090815260408083203380855260089091019092528220929092556118ec919088908890610cdf565b604051858152339087907f4ec90e965519d92681267467f775ada5bd214aa92c0dc93d90a5e880ce9ed0269060200160405180910390a3505050505050565b6000546001600160a01b031633146119555760405162461bcd60e51b8152600401610853906131d4565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b0385163314806119935750611993853361069d565b6119af5760405162461bcd60e51b815260040161085390613482565b610e6485858585856122de565b6000546001600160a01b031633146119e65760405162461bcd60e51b8152600401610853906131d4565b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b03163314611a325760405162461bcd60e51b8152600401610853906131d4565b6001600160a01b038116611a975760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610853565b6108e281612133565b6001600160a01b038316331480611abc5750611abc833361069d565b611ad85760405162461bcd60e51b815260040161085390613482565b61116b8383836123f6565b6000546001600160a01b03163314611b0d5760405162461bcd60e51b8152600401610853906131d4565b8051610f2e9060079060208401906128e2565b6000546001600160a01b03163314611b4a5760405162461bcd60e51b8152600401610853906131d4565b600955565b60006001600160e01b03198216636cdb3d1360e11b1480611b8057506001600160e01b031982166303a24d0760e21b145b806108a957506301ffc9a760e01b6001600160e01b03198316146108a9565b8051610f2e9060039060208401906128e2565b606060038054611bc190613209565b80601f0160208091040260200160405190810160405280929190818152602001828054611bed90613209565b8015611c3a5780601f10611c0f57610100808354040283529160200191611c3a565b820191906000526020600020905b815481529060010190602001808311611c1d57829003601f168201915b50505050509050919050565b6001600160a01b038416611ca65760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610853565b33611cc681600087611cb7886124fb565b611cc0886124fb565b87612546565b60008481526001602090815260408083206001600160a01b038916845290915281208054859290611cf8908490613405565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610e6481600087878787612554565b8151835114611d795760405162461bcd60e51b8152600401610853906134e2565b6001600160a01b038416611d9f5760405162461bcd60e51b81526004016108539061352a565b33611dae818787878787612546565b60005b8451811015611e97576000858281518110611dce57611dce61346c565b602002602001015190506000858381518110611dec57611dec61346c565b60209081029190910181015160008481526001835260408082206001600160a01b038e168352909352919091205490915081811015611e3d5760405162461bcd60e51b81526004016108539061356f565b60008381526001602090815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290611e7c908490613405565b9250508190555050505080611e9090613361565b9050611db1565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611ee79291906135b9565b60405180910390a4611efd8187878787876126af565b505050505050565b600054600160a01b900460ff16611f555760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610853565b6000805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6001600160a01b038316611fc85760405162461bcd60e51b8152600401610853906135e7565b8051825114611fe95760405162461bcd60e51b8152600401610853906134e2565b600033905061200c81856000868660405180602001604052806000815250612546565b60005b83518110156120d457600084828151811061202c5761202c61346c565b60200260200101519050600084838151811061204a5761204a61346c565b60209081029190910181015160008481526001835260408082206001600160a01b038c16835290935291909120549091508181101561209b5760405162461bcd60e51b81526004016108539061362a565b60009283526001602090815260408085206001600160a01b038b16865290915290922091039055806120cc81613361565b91505061200f565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb86866040516121259291906135b9565b60405180910390a450505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600054600160a01b900460ff16156121ad5760405162461bcd60e51b81526004016108539061337a565b6000805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611f853390565b816001600160a01b0316836001600160a01b03160361225b5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610853565b6001600160a01b03838116600081815260026020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6000826122d5858461276a565b14949350505050565b6001600160a01b0384166123045760405162461bcd60e51b81526004016108539061352a565b33612314818787611cb7886124fb565b60008481526001602090815260408083206001600160a01b038a168452909152902054838110156123575760405162461bcd60e51b81526004016108539061356f565b60008581526001602090815260408083206001600160a01b038b8116855292528083208785039055908816825281208054869290612396908490613405565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4611697828888888888612554565b6001600160a01b03831661241c5760405162461bcd60e51b8152600401610853906135e7565b3361244b8185600061242d876124fb565b612436876124fb565b60405180602001604052806000815250612546565b60008381526001602090815260408083206001600160a01b03881684529091529020548281101561248e5760405162461bcd60e51b81526004016108539061362a565b60008481526001602090815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b604080516001808252818301909252606091600091906020808301908036833701905050905082816000815181106125355761253561346c565b602090810291909101015292915050565b611efd8686868686866127d6565b6001600160a01b0384163b15611efd5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190612598908990899088908890889060040161366e565b6020604051808303816000875af19250505080156125d3575060408051601f3d908101601f191682019092526125d0918101906136b3565b60015b61267f576125df6136d0565b806308c379a00361261857506125f36136ec565b806125fe575061261a565b8060405162461bcd60e51b81526004016108539190612b44565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610853565b6001600160e01b0319811663f23a6e6160e01b146116975760405162461bcd60e51b815260040161085390613775565b6001600160a01b0384163b15611efd5760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906126f390899089908890889088906004016137bd565b6020604051808303816000875af192505050801561272e575060408051601f3d908101601f1916820190925261272b918101906136b3565b60015b61273a576125df6136d0565b6001600160e01b0319811663bc197c8160e01b146116975760405162461bcd60e51b815260040161085390613775565b600081815b845181101561108757600085828151811061278c5761278c61346c565b602002602001015190508083116127b257600083815260208290526040902092506127c3565b600081815260208490526040902092505b50806127ce81613361565b91505061276f565b6001600160a01b03851661285d5760005b835181101561285b578281815181106128025761280261346c565b6020026020010151600460008684815181106128205761282061346c565b6020026020010151815260200190815260200160002060008282546128459190613405565b90915550612854905081613361565b90506127e7565b505b6001600160a01b038416611efd5760005b8351811015611697578281815181106128895761288961346c565b6020026020010151600460008684815181106128a7576128a761346c565b6020026020010151815260200190815260200160002060008282546128cc91906134cb565b909155506128db905081613361565b905061286e565b8280546128ee90613209565b90600052602060002090601f0160209004810192826129105760008555612956565b82601f1061292957805160ff1916838001178555612956565b82800160010185558215612956579182015b8281111561295657825182559160200191906001019061293b565b50612962929150612966565b5090565b5b808211156129625760008155600101612967565b80356001600160a01b038116811461299257600080fd5b919050565b600080604083850312156129aa57600080fd5b6129b38361297b565b946020939093013593505050565b6001600160e01b0319811681146108e257600080fd5b6000602082840312156129e957600080fd5b81356129f4816129c1565b9392505050565b634e487b7160e01b600052604160045260246000fd5b601f8201601f191681016001600160401b0381118282101715612a3657612a366129fb565b6040525050565b600082601f830112612a4e57600080fd5b81356001600160401b03811115612a6757612a676129fb565b604051612a7e601f8301601f191660200182612a11565b818152846020838601011115612a9357600080fd5b816020850160208301376000918101602001919091529392505050565b600060208284031215612ac257600080fd5b81356001600160401b03811115612ad857600080fd5b612ae484828501612a3d565b949350505050565b60005b83811015612b07578181015183820152602001612aef565b83811115610aca5750506000910152565b60008151808452612b30816020860160208601612aec565b601f01601f19169290920160200192915050565b6020815260006129f46020830184612b18565b600060208284031215612b6957600080fd5b5035919050565b60008083601f840112612b8257600080fd5b5081356001600160401b03811115612b9957600080fd5b6020830191508360208260051b8501011115610dcd57600080fd5b8035801515811461299257600080fd5b600080600060408486031215612bd957600080fd5b83356001600160401b03811115612bef57600080fd5b612bfb86828701612b70565b9094509250612c0e905060208501612bb4565b90509250925092565b60008060408385031215612c2a57600080fd5b50508035926020909101359150565b60006001600160401b03821115612c5257612c526129fb565b5060051b60200190565b600082601f830112612c6d57600080fd5b81356020612c7a82612c39565b604051612c878282612a11565b83815260059390931b8501820192828101915086841115612ca757600080fd5b8286015b84811015612cc25780358352918301918301612cab565b509695505050505050565b600080600080600060a08688031215612ce557600080fd5b612cee8661297b565b9450612cfc6020870161297b565b935060408601356001600160401b0380821115612d1857600080fd5b612d2489838a01612c5c565b94506060880135915080821115612d3a57600080fd5b612d4689838a01612c5c565b93506080880135915080821115612d5c57600080fd5b50612d6988828901612a3d565b9150509295509295909350565b60008060408385031215612d8957600080fd5b82356001600160401b0380821115612da057600080fd5b818501915085601f830112612db457600080fd5b81356020612dc182612c39565b604051612dce8282612a11565b83815260059390931b8501820192828101915089841115612dee57600080fd5b948201945b83861015612e1357612e048661297b565b82529482019490820190612df3565b96505086013592505080821115612e2957600080fd5b50612e3685828601612c5c565b9150509250929050565b600081518084526020808501945080840160005b83811015612e7057815187529582019590820190600101612e54565b509495945050505050565b6020815260006129f46020830184612e40565b600080600060608486031215612ea357600080fd5b83359250612eb36020850161297b565b9150604084013590509250925092565b600080600060608486031215612ed857600080fd5b612ee18461297b565b925060208401356001600160401b0380821115612efd57600080fd5b612f0987838801612c5c565b93506040860135915080821115612f1f57600080fd5b50612f2c86828701612c5c565b9150509250925092565b60006101008a8352896020840152886040840152806060840152612f5c81840189612b18565b6080840197909752505092151560a084015290151560c083015260e090910152949350505050565b600060208284031215612f9657600080fd5b6129f48261297b565b600080600080600080600060e0888a031215612fba57600080fd5b8735965060208801359550604088013594506060880135935060808801356001600160401b03811115612fec57600080fd5b612ff88a828b01612a3d565b93505060a0880135915060c0880135905092959891949750929550565b6000806040838503121561302857600080fd5b6130318361297b565b915061303f60208401612bb4565b90509250929050565b60008060008060008060c0878903121561306157600080fd5b86359550602087013594506040870135935060608701356001600160401b0381111561308c57600080fd5b61309889828a01612a3d565b9350506080870135915060a087013590509295509295509295565b600080604083850312156130c657600080fd5b6130cf8361297b565b915061303f6020840161297b565b6000806000806000608086880312156130f557600080fd5b85359450602086013593506040860135925060608601356001600160401b0381111561312057600080fd5b61312c88828901612b70565b969995985093965092949392505050565b600080600080600060a0868803121561315557600080fd5b61315e8661297b565b945061316c6020870161297b565b9350604086013592506060860135915060808601356001600160401b0381111561319557600080fd5b612d6988828901612a3d565b6000806000606084860312156131b657600080fd5b6131bf8461297b565b95602085013595506040909401359392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c9082168061321d57607f821691505b6020821081036115f557634e487b7160e01b600052602260045260246000fd5b6000815161324f818560208601612aec565b9290920192915050565b60008451602061326c8285838a01612aec565b855491840191600090600181811c908083168061328a57607f831692505b85831081036132a757634e487b7160e01b85526022600452602485fd5b8080156132bb57600181146132cc576132f9565b60ff198516885283880195506132f9565b60008c81526020902060005b858110156132f15781548a8201529084019088016132d8565b505083880195505b5050505050613308818761323d565b98975050505050505050565b60208082526019908201527f53696c686f756574746520646f6573206e6f7420657869737400000000000000604082015260600190565b634e487b7160e01b600052601160045260246000fd5b6000600182016133735761337361334b565b5060010190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b60008160001904831182151516156133be576133be61334b565b500290565b60208082526022908201527f417474656d7074696e6720746f206d696e7420746f6f206d616e7920746f6b656040820152616e7360f01b606082015260800190565b600082198211156134185761341861334b565b500190565b60208082526013908201527213585e081cdd5c1c1b1e48195e18d959591959606a1b604082015260600190565b60008261346757634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052603260045260246000fd5b60208082526029908201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260408201526808185c1c1c9bdd995960ba1b606082015260800190565b6000828210156134dd576134dd61334b565b500390565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6040815260006135cc6040830185612e40565b82810360208401526135de8185612e40565b95945050505050565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604082015263616e636560e01b606082015260800190565b6001600160a01b03868116825285166020820152604081018490526060810183905260a0608082018190526000906136a890830184612b18565b979650505050505050565b6000602082840312156136c557600080fd5b81516129f4816129c1565b600060033d11156136e95760046000803e5060005160e01c5b90565b600060443d10156136fa5790565b6040516003193d81016004833e81513d6001600160401b03816024840111818411171561372957505050505090565b82850191508151818111156137415750505050505090565b843d870101602082850101111561375b5750505050505090565b61376a60208286010187612a11565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b0386811682528516602082015260a0604082018190526000906137e990830186612e40565b82810360608401526137fb8186612e40565b905082810360808401526133088185612b1856fea2646970667358221220ecd4ddde27ff66dc01c3f46dcd328bf39090eba358748685cc17a7bf5b7a5ff864736f6c634300080d003300000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000a6160180df5d140c2622cdad07b1fd29de30795800000000000000000000000000000000000000000000000000000000000001a4000000000000000000000000f0f8e9fdcf40b1b4ee575661b9307b7828eb4c4d0000000000000000000000003db44da322ec23ac294362b0d75eefbc381694b4000000000000000000000000bfc07405f4afb78be5d352f57268d21c5ea7937a000000000000000000000000000000000000000000000000000000000000001468747470733a2f2f617277656176652e6e65742f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000184d6f76696553686f7473202d2053696c686f756574746573000000000000000000000000000000000000000000000000000000000000000000000000000000104d53484f542d53494c484f554554544500000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106102505760003560e01c80638dc251e311610139578063d9c4870e116100b6578063f242432a1161007a578063f242432a1461072b578063f24b87211461074b578063f2fde38b1461076b578063f5298aca1461078b578063f8934a9b146107ab578063ff799d51146107cb57600080fd5b8063d9c4870e14610662578063e985e9c514610682578063ea25e176146106cb578063ec6be06e146106eb578063ed7bec991461070b57600080fd5b8063b42394f1116100fd578063b42394f1146105d6578063b61d9c26146105eb578063ba967e5714610600578063bd85b03914610620578063c66828621461064d57600080fd5b80638dc251e314610543578063928f3f521461056357806395d89b41146105835780639fbc871314610598578063a22cb465146105b657600080fd5b80633f4ba83a116101d25780636b20c454116101965780636b20c454146104735780636b94ccd714610493578063715018a6146104c75780638456cb59146104dc5780638976a198146104f15780638da5cb5b1461051157600080fd5b80633f4ba83a146103c35780634e1273f4146103d85780634f558e79146104055780635c975abb1461043457806367291c001461045357600080fd5b80631202b45f116102195780631202b45f1461031c5780631b2ef1ca1461033c5780632a55205a1461034f5780632eb2c2d61461038e5780633ccfd60b146103ae57600080fd5b8062fdd58e1461025557806301ffc9a71461028857806302fe5305146102b857806306fdde03146102da5780630e89341c146102fc575b600080fd5b34801561026157600080fd5b50610275610270366004612997565b6107eb565b6040519081526020015b60405180910390f35b34801561029457600080fd5b506102a86102a33660046129d7565b610884565b604051901515815260200161027f565b3480156102c457600080fd5b506102d86102d3366004612ab0565b6108af565b005b3480156102e657600080fd5b506102ef6108e5565b60405161027f9190612b44565b34801561030857600080fd5b506102ef610317366004612b57565b610977565b34801561032857600080fd5b506102d8610337366004612bc4565b610a38565b6102d861034a366004612c17565b610ad0565b34801561035b57600080fd5b5061036f61036a366004612c17565b610d4a565b604080516001600160a01b03909316835260208301919091520161027f565b34801561039a57600080fd5b506102d86103a9366004612ccd565b610dd4565b3480156103ba57600080fd5b506102d8610e6b565b3480156103cf57600080fd5b506102d8610f32565b3480156103e457600080fd5b506103f86103f3366004612d76565b610f66565b60405161027f9190612e7b565b34801561041157600080fd5b506102a8610420366004612b57565b600090815260046020526040902054151590565b34801561044057600080fd5b50600054600160a01b900460ff166102a8565b34801561045f57600080fd5b506102d861046e366004612e8e565b61108f565b34801561047f57600080fd5b506102d861048e366004612ec3565b611170565b34801561049f57600080fd5b506104b36104ae366004612b57565b6111b3565b60405161027f989796959493929190612f36565b3480156104d357600080fd5b506102d8611288565b3480156104e857600080fd5b506102d86112bc565b3480156104fd57600080fd5b506102d861050c366004612bc4565b6112ee565b34801561051d57600080fd5b506000546001600160a01b03165b6040516001600160a01b03909116815260200161027f565b34801561054f57600080fd5b506102d861055e366004612f84565b611385565b34801561056f57600080fd5b506102d861057e366004612f9f565b6113d1565b34801561058f57600080fd5b506102ef611540565b3480156105a457600080fd5b506008546001600160a01b031661052b565b3480156105c257600080fd5b506102d86105d1366004613015565b61154f565b3480156105e257600080fd5b506103f861155a565b3480156105f757600080fd5b50600954610275565b34801561060c57600080fd5b506102d861061b366004613048565b6115fb565b34801561062c57600080fd5b5061027561063b366004612b57565b60009081526004602052604090205490565b34801561065957600080fd5b506102ef6116a0565b34801561066e57600080fd5b50600b5461052b906001600160a01b031681565b34801561068e57600080fd5b506102a861069d3660046130b3565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205460ff1690565b3480156106d757600080fd5b506102d86106e63660046130dd565b6116af565b3480156106f757600080fd5b506102d8610706366004612f84565b61192b565b34801561071757600080fd5b50600a5461052b906001600160a01b031681565b34801561073757600080fd5b506102d861074636600461313d565b611977565b34801561075757600080fd5b506102d8610766366004612f84565b6119bc565b34801561077757600080fd5b506102d8610786366004612f84565b611a08565b34801561079757600080fd5b506102d86107a63660046131a1565b611aa0565b3480156107b757600080fd5b506102d86107c6366004612ab0565b611ae3565b3480156107d757600080fd5b506102d86107e6366004612b57565b611b20565b60006001600160a01b03831661085c5760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b5060009081526001602090815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b0319821663152a902d60e11b14806108a957506108a982611b4f565b92915050565b6000546001600160a01b031633146108d95760405162461bcd60e51b8152600401610853906131d4565b6108e281611b9f565b50565b6060600580546108f490613209565b80601f016020809104026020016040519081016040528092919081815260200182805461092090613209565b801561096d5780601f106109425761010080835404028352916020019161096d565b820191906000526020600020905b81548152906001019060200180831161095057829003601f168201915b5050505050905090565b6000818152600460205260409020546060906109ee5760405162461bcd60e51b815260206004820152603060248201527f455243313135354d657461646174613a2055524920717565727920666f72206e60448201526f37b732bc34b9ba32b73a103a37b5b2b760811b6064820152608401610853565b6109f782611bb2565b6000838152600c60205260409020600301610a106116a0565b604051602001610a2293929190613259565b6040516020818303038152906040529050919050565b6000546001600160a01b03163314610a625760405162461bcd60e51b8152600401610853906131d4565b60005b82811015610aca576000818152600c6020526040902060020154610a9b5760405162461bcd60e51b815260040161085390613314565b6000818152600c60205260409020600501805460ff191683151517905580610ac281613361565b915050610a65565b50505050565b600054600160a01b900460ff1615610afa5760405162461bcd60e51b81526004016108539061337a565b6000828152600c6020526040902060050154610100900460ff16610b555760405162461bcd60e51b81526020600482015260126024820152714d696e74206973206e6f742061637469766560701b6044820152606401610853565b6000828152600c6020526040902054610b6e90826133a4565b3414610bb35760405162461bcd60e51b8152602060048201526014602482015273125b98dbdc9c9958dd08195d1a08185b5bdd5b9d60621b6044820152606401610853565b6000828152600c6020526040902060010154811115610be45760405162461bcd60e51b8152600401610853906133c3565b6000828152600c6020908152604080832060020154600490925290912054610c0d908390613405565b1115610c2b5760405162461bcd60e51b81526004016108539061341d565b6000828152600c602052604090206006015415610cd6576000828152600c602090815260408083206006810154338552600790910190925290912054610c72908390613405565b1115610c905760405162461bcd60e51b8152600401610853906133c3565b6000828152600c60209081526040808320338452600701909152902054610cb8908290613405565b6000838152600c602090815260408083203384526007019091529020555b610d0f33838360005b6040519080825280601f01601f191660200182016040528015610d09576020820181803683370190505b50611c46565b604051818152339083907fc9d0543a84d3510329c0783b91576878ceb484e8699944cb5610c3436b3b8e399060200160405180910390a35050565b6000828152600460205260408120548190610d9c5760405162461bcd60e51b81526020600482015260126024820152712737b716b2bc34b9ba32b73a103a37b5b2b760711b6044820152606401610853565b6008546001600160a01b0316612710610db460095490565b610dbe90866133a4565b610dc8919061344a565b915091505b9250929050565b6001600160a01b038516331480610df05750610df0853361069d565b610e575760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610853565b610e648585858585611d58565b5050505050565b6000546001600160a01b03163314610e955760405162461bcd60e51b8152600401610853906131d4565b600b5460405147916000916001600160a01b039091169083908381818185875af1925050503d8060008114610ee6576040519150601f19603f3d011682016040523d82523d6000602084013e610eeb565b606091505b5050905080610f2e5760405162461bcd60e51b815260206004820152600f60248201526e15da5d1a191c985dc819985a5b1959608a1b6044820152606401610853565b5050565b6000546001600160a01b03163314610f5c5760405162461bcd60e51b8152600401610853906131d4565b610f64611f05565b565b60608151835114610fcb5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610853565b600083516001600160401b03811115610fe657610fe66129fb565b60405190808252806020026020018201604052801561100f578160200160208202803683370190505b50905060005b84518110156110875761105a8582815181106110335761103361346c565b602002602001015185838151811061104d5761104d61346c565b60200260200101516107eb565b82828151811061106c5761106c61346c565b602090810291909101015261108081613361565b9050611015565b509392505050565b600a546001600160a01b031633146110e95760405162461bcd60e51b815260206004820152601e60248201527f43616c6c6572206973206e6f74207468652061646d696e206d696e74657200006044820152606401610853565b6000838152600c60205260409020600201546111175760405162461bcd60e51b815260040161085390613314565b6000838152600c6020908152604080832060020154600490925290912054611140908390613405565b111561115e5760405162461bcd60e51b81526004016108539061341d565b61116b8284836000610cdf565b505050565b6001600160a01b03831633148061118c575061118c833361069d565b6111a85760405162461bcd60e51b815260040161085390613482565b61116b838383611fa2565b600c602052600090815260409020805460018201546002830154600384018054939492939192916111e390613209565b80601f016020809104026020016040519081016040528092919081815260200182805461120f90613209565b801561125c5780601f106112315761010080835404028352916020019161125c565b820191906000526020600020905b81548152906001019060200180831161123f57829003601f168201915b505050600484015460058501546006909501549394909360ff8083169450610100909204909116915088565b6000546001600160a01b031633146112b25760405162461bcd60e51b8152600401610853906131d4565b610f646000612133565b6000546001600160a01b031633146112e65760405162461bcd60e51b8152600401610853906131d4565b610f64612183565b6000546001600160a01b031633146113185760405162461bcd60e51b8152600401610853906131d4565b60005b82811015610aca576000818152600c60205260409020600201546113515760405162461bcd60e51b815260040161085390613314565b6000818152600c60205260409020600501805461ff001916610100841515021790558061137d81613361565b91505061131b565b6000546001600160a01b031633146113af5760405162461bcd60e51b8152600401610853906131d4565b600880546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146113fb5760405162461bcd60e51b8152600401610853906131d4565b6000878152600c60205260409020600201546114295760405162461bcd60e51b815260040161085390613314565b6000878152600460205260409020546000888152600c60205260409020600201546114559086906134cb565b10156114c95760405162461bcd60e51b815260206004820152603860248201527f416d6f756e742063616e6e6f742062652064656372656173656420617320697460448201527f2068617320616c7265616479206265656e206d696e74656400000000000000006064820152608401610853565b6000878152600c6020526040902060018101869055868155600201546114f09085906134cb565b6000888152600c602090815260409091206002810192909255845161151b92600301918601906128e2565b506000968752600c602052604090962060048101919091556006019490945550505050565b6060600680546108f490613209565b610f2e3383836121e8565b60606000611567600d5490565b6001600160401b0381111561157e5761157e6129fb565b6040519080825280602002602001820160405280156115a7578160200160208202803683370190505b50905060005b600d548110156115f5576000818152600460205260409020548282815181106115d8576115d861346c565b6020908102919091010152806115ed81613361565b9150506115ad565b50919050565b6000546001600160a01b031633146116255760405162461bcd60e51b8152600401610853906131d4565b6000600c6000611634600d5490565b81526020808201929092526040016000208881556001810188905560028101879055855190925061166d916003840191908701906128e2565b50600481018390556006810182905560058101805461ffff19169055611697600d80546001019055565b50505050505050565b6060600780546108f490613209565b600054600160a01b900460ff16156116d95760405162461bcd60e51b81526004016108539061337a565b6000858152600c602052604090206005015460ff166117305760405162461bcd60e51b8152602060048201526013602482015272436c61696d206973206e6f742061637469766560681b6044820152606401610853565b6000858152600c6020908152604080832060020154600490925290912054611759908690613405565b11156117775760405162461bcd60e51b81526004016108539061341d565b6000858152600c6020908152604080832033845260080190915290205483906117a1908690613405565b11156117bf5760405162461bcd60e51b8152600401610853906133c3565b60408051602081018790526bffffffffffffffffffffffff193360601b16918101919091526054810184905260009060740160405160208183030381529060405280519060200120905061185783838080602002602001604051908101604052809392919081815260200183836020028082843760009201829052508b8152600c602052604090206004015492508591506122c89050565b6118935760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610853565b6000868152600c602090815260408083203384526008019091529020546118bb908690613405565b6000878152600c602090815260408083203380855260089091019092528220929092556118ec919088908890610cdf565b604051858152339087907f4ec90e965519d92681267467f775ada5bd214aa92c0dc93d90a5e880ce9ed0269060200160405180910390a3505050505050565b6000546001600160a01b031633146119555760405162461bcd60e51b8152600401610853906131d4565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b0385163314806119935750611993853361069d565b6119af5760405162461bcd60e51b815260040161085390613482565b610e6485858585856122de565b6000546001600160a01b031633146119e65760405162461bcd60e51b8152600401610853906131d4565b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b03163314611a325760405162461bcd60e51b8152600401610853906131d4565b6001600160a01b038116611a975760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610853565b6108e281612133565b6001600160a01b038316331480611abc5750611abc833361069d565b611ad85760405162461bcd60e51b815260040161085390613482565b61116b8383836123f6565b6000546001600160a01b03163314611b0d5760405162461bcd60e51b8152600401610853906131d4565b8051610f2e9060079060208401906128e2565b6000546001600160a01b03163314611b4a5760405162461bcd60e51b8152600401610853906131d4565b600955565b60006001600160e01b03198216636cdb3d1360e11b1480611b8057506001600160e01b031982166303a24d0760e21b145b806108a957506301ffc9a760e01b6001600160e01b03198316146108a9565b8051610f2e9060039060208401906128e2565b606060038054611bc190613209565b80601f0160208091040260200160405190810160405280929190818152602001828054611bed90613209565b8015611c3a5780601f10611c0f57610100808354040283529160200191611c3a565b820191906000526020600020905b815481529060010190602001808311611c1d57829003601f168201915b50505050509050919050565b6001600160a01b038416611ca65760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610853565b33611cc681600087611cb7886124fb565b611cc0886124fb565b87612546565b60008481526001602090815260408083206001600160a01b038916845290915281208054859290611cf8908490613405565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610e6481600087878787612554565b8151835114611d795760405162461bcd60e51b8152600401610853906134e2565b6001600160a01b038416611d9f5760405162461bcd60e51b81526004016108539061352a565b33611dae818787878787612546565b60005b8451811015611e97576000858281518110611dce57611dce61346c565b602002602001015190506000858381518110611dec57611dec61346c565b60209081029190910181015160008481526001835260408082206001600160a01b038e168352909352919091205490915081811015611e3d5760405162461bcd60e51b81526004016108539061356f565b60008381526001602090815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290611e7c908490613405565b9250508190555050505080611e9090613361565b9050611db1565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611ee79291906135b9565b60405180910390a4611efd8187878787876126af565b505050505050565b600054600160a01b900460ff16611f555760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610853565b6000805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6001600160a01b038316611fc85760405162461bcd60e51b8152600401610853906135e7565b8051825114611fe95760405162461bcd60e51b8152600401610853906134e2565b600033905061200c81856000868660405180602001604052806000815250612546565b60005b83518110156120d457600084828151811061202c5761202c61346c565b60200260200101519050600084838151811061204a5761204a61346c565b60209081029190910181015160008481526001835260408082206001600160a01b038c16835290935291909120549091508181101561209b5760405162461bcd60e51b81526004016108539061362a565b60009283526001602090815260408085206001600160a01b038b16865290915290922091039055806120cc81613361565b91505061200f565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb86866040516121259291906135b9565b60405180910390a450505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600054600160a01b900460ff16156121ad5760405162461bcd60e51b81526004016108539061337a565b6000805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611f853390565b816001600160a01b0316836001600160a01b03160361225b5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610853565b6001600160a01b03838116600081815260026020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6000826122d5858461276a565b14949350505050565b6001600160a01b0384166123045760405162461bcd60e51b81526004016108539061352a565b33612314818787611cb7886124fb565b60008481526001602090815260408083206001600160a01b038a168452909152902054838110156123575760405162461bcd60e51b81526004016108539061356f565b60008581526001602090815260408083206001600160a01b038b8116855292528083208785039055908816825281208054869290612396908490613405565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4611697828888888888612554565b6001600160a01b03831661241c5760405162461bcd60e51b8152600401610853906135e7565b3361244b8185600061242d876124fb565b612436876124fb565b60405180602001604052806000815250612546565b60008381526001602090815260408083206001600160a01b03881684529091529020548281101561248e5760405162461bcd60e51b81526004016108539061362a565b60008481526001602090815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b604080516001808252818301909252606091600091906020808301908036833701905050905082816000815181106125355761253561346c565b602090810291909101015292915050565b611efd8686868686866127d6565b6001600160a01b0384163b15611efd5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190612598908990899088908890889060040161366e565b6020604051808303816000875af19250505080156125d3575060408051601f3d908101601f191682019092526125d0918101906136b3565b60015b61267f576125df6136d0565b806308c379a00361261857506125f36136ec565b806125fe575061261a565b8060405162461bcd60e51b81526004016108539190612b44565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610853565b6001600160e01b0319811663f23a6e6160e01b146116975760405162461bcd60e51b815260040161085390613775565b6001600160a01b0384163b15611efd5760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906126f390899089908890889088906004016137bd565b6020604051808303816000875af192505050801561272e575060408051601f3d908101601f1916820190925261272b918101906136b3565b60015b61273a576125df6136d0565b6001600160e01b0319811663bc197c8160e01b146116975760405162461bcd60e51b815260040161085390613775565b600081815b845181101561108757600085828151811061278c5761278c61346c565b602002602001015190508083116127b257600083815260208290526040902092506127c3565b600081815260208490526040902092505b50806127ce81613361565b91505061276f565b6001600160a01b03851661285d5760005b835181101561285b578281815181106128025761280261346c565b6020026020010151600460008684815181106128205761282061346c565b6020026020010151815260200190815260200160002060008282546128459190613405565b90915550612854905081613361565b90506127e7565b505b6001600160a01b038416611efd5760005b8351811015611697578281815181106128895761288961346c565b6020026020010151600460008684815181106128a7576128a761346c565b6020026020010151815260200190815260200160002060008282546128cc91906134cb565b909155506128db905081613361565b905061286e565b8280546128ee90613209565b90600052602060002090601f0160209004810192826129105760008555612956565b82601f1061292957805160ff1916838001178555612956565b82800160010185558215612956579182015b8281111561295657825182559160200191906001019061293b565b50612962929150612966565b5090565b5b808211156129625760008155600101612967565b80356001600160a01b038116811461299257600080fd5b919050565b600080604083850312156129aa57600080fd5b6129b38361297b565b946020939093013593505050565b6001600160e01b0319811681146108e257600080fd5b6000602082840312156129e957600080fd5b81356129f4816129c1565b9392505050565b634e487b7160e01b600052604160045260246000fd5b601f8201601f191681016001600160401b0381118282101715612a3657612a366129fb565b6040525050565b600082601f830112612a4e57600080fd5b81356001600160401b03811115612a6757612a676129fb565b604051612a7e601f8301601f191660200182612a11565b818152846020838601011115612a9357600080fd5b816020850160208301376000918101602001919091529392505050565b600060208284031215612ac257600080fd5b81356001600160401b03811115612ad857600080fd5b612ae484828501612a3d565b949350505050565b60005b83811015612b07578181015183820152602001612aef565b83811115610aca5750506000910152565b60008151808452612b30816020860160208601612aec565b601f01601f19169290920160200192915050565b6020815260006129f46020830184612b18565b600060208284031215612b6957600080fd5b5035919050565b60008083601f840112612b8257600080fd5b5081356001600160401b03811115612b9957600080fd5b6020830191508360208260051b8501011115610dcd57600080fd5b8035801515811461299257600080fd5b600080600060408486031215612bd957600080fd5b83356001600160401b03811115612bef57600080fd5b612bfb86828701612b70565b9094509250612c0e905060208501612bb4565b90509250925092565b60008060408385031215612c2a57600080fd5b50508035926020909101359150565b60006001600160401b03821115612c5257612c526129fb565b5060051b60200190565b600082601f830112612c6d57600080fd5b81356020612c7a82612c39565b604051612c878282612a11565b83815260059390931b8501820192828101915086841115612ca757600080fd5b8286015b84811015612cc25780358352918301918301612cab565b509695505050505050565b600080600080600060a08688031215612ce557600080fd5b612cee8661297b565b9450612cfc6020870161297b565b935060408601356001600160401b0380821115612d1857600080fd5b612d2489838a01612c5c565b94506060880135915080821115612d3a57600080fd5b612d4689838a01612c5c565b93506080880135915080821115612d5c57600080fd5b50612d6988828901612a3d565b9150509295509295909350565b60008060408385031215612d8957600080fd5b82356001600160401b0380821115612da057600080fd5b818501915085601f830112612db457600080fd5b81356020612dc182612c39565b604051612dce8282612a11565b83815260059390931b8501820192828101915089841115612dee57600080fd5b948201945b83861015612e1357612e048661297b565b82529482019490820190612df3565b96505086013592505080821115612e2957600080fd5b50612e3685828601612c5c565b9150509250929050565b600081518084526020808501945080840160005b83811015612e7057815187529582019590820190600101612e54565b509495945050505050565b6020815260006129f46020830184612e40565b600080600060608486031215612ea357600080fd5b83359250612eb36020850161297b565b9150604084013590509250925092565b600080600060608486031215612ed857600080fd5b612ee18461297b565b925060208401356001600160401b0380821115612efd57600080fd5b612f0987838801612c5c565b93506040860135915080821115612f1f57600080fd5b50612f2c86828701612c5c565b9150509250925092565b60006101008a8352896020840152886040840152806060840152612f5c81840189612b18565b6080840197909752505092151560a084015290151560c083015260e090910152949350505050565b600060208284031215612f9657600080fd5b6129f48261297b565b600080600080600080600060e0888a031215612fba57600080fd5b8735965060208801359550604088013594506060880135935060808801356001600160401b03811115612fec57600080fd5b612ff88a828b01612a3d565b93505060a0880135915060c0880135905092959891949750929550565b6000806040838503121561302857600080fd5b6130318361297b565b915061303f60208401612bb4565b90509250929050565b60008060008060008060c0878903121561306157600080fd5b86359550602087013594506040870135935060608701356001600160401b0381111561308c57600080fd5b61309889828a01612a3d565b9350506080870135915060a087013590509295509295509295565b600080604083850312156130c657600080fd5b6130cf8361297b565b915061303f6020840161297b565b6000806000806000608086880312156130f557600080fd5b85359450602086013593506040860135925060608601356001600160401b0381111561312057600080fd5b61312c88828901612b70565b969995985093965092949392505050565b600080600080600060a0868803121561315557600080fd5b61315e8661297b565b945061316c6020870161297b565b9350604086013592506060860135915060808601356001600160401b0381111561319557600080fd5b612d6988828901612a3d565b6000806000606084860312156131b657600080fd5b6131bf8461297b565b95602085013595506040909401359392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c9082168061321d57607f821691505b6020821081036115f557634e487b7160e01b600052602260045260246000fd5b6000815161324f818560208601612aec565b9290920192915050565b60008451602061326c8285838a01612aec565b855491840191600090600181811c908083168061328a57607f831692505b85831081036132a757634e487b7160e01b85526022600452602485fd5b8080156132bb57600181146132cc576132f9565b60ff198516885283880195506132f9565b60008c81526020902060005b858110156132f15781548a8201529084019088016132d8565b505083880195505b5050505050613308818761323d565b98975050505050505050565b60208082526019908201527f53696c686f756574746520646f6573206e6f7420657869737400000000000000604082015260600190565b634e487b7160e01b600052601160045260246000fd5b6000600182016133735761337361334b565b5060010190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b60008160001904831182151516156133be576133be61334b565b500290565b60208082526022908201527f417474656d7074696e6720746f206d696e7420746f6f206d616e7920746f6b656040820152616e7360f01b606082015260800190565b600082198211156134185761341861334b565b500190565b60208082526013908201527213585e081cdd5c1c1b1e48195e18d959591959606a1b604082015260600190565b60008261346757634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052603260045260246000fd5b60208082526029908201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260408201526808185c1c1c9bdd995960ba1b606082015260800190565b6000828210156134dd576134dd61334b565b500390565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6040815260006135cc6040830185612e40565b82810360208401526135de8185612e40565b95945050505050565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604082015263616e636560e01b606082015260800190565b6001600160a01b03868116825285166020820152604081018490526060810183905260a0608082018190526000906136a890830184612b18565b979650505050505050565b6000602082840312156136c557600080fd5b81516129f4816129c1565b600060033d11156136e95760046000803e5060005160e01c5b90565b600060443d10156136fa5790565b6040516003193d81016004833e81513d6001600160401b03816024840111818411171561372957505050505090565b82850191508151818111156137415750505050505090565b843d870101602082850101111561375b5750505050505090565b61376a60208286010187612a11565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b0386811682528516602082015260a0604082018190526000906137e990830186612e40565b82810360608401526137fb8186612e40565b905082810360808401526133088185612b1856fea2646970667358221220ecd4ddde27ff66dc01c3f46dcd328bf39090eba358748685cc17a7bf5b7a5ff864736f6c634300080d0033

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

00000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000a6160180df5d140c2622cdad07b1fd29de30795800000000000000000000000000000000000000000000000000000000000001a4000000000000000000000000f0f8e9fdcf40b1b4ee575661b9307b7828eb4c4d0000000000000000000000003db44da322ec23ac294362b0d75eefbc381694b4000000000000000000000000bfc07405f4afb78be5d352f57268d21c5ea7937a000000000000000000000000000000000000000000000000000000000000001468747470733a2f2f617277656176652e6e65742f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000184d6f76696553686f7473202d2053696c686f756574746573000000000000000000000000000000000000000000000000000000000000000000000000000000104d53484f542d53494c484f554554544500000000000000000000000000000000

-----Decoded View---------------
Arg [0] : uri_ (string): https://arweave.net/
Arg [1] : baseExtension_ (string):
Arg [2] : name_ (string): MovieShots - Silhouettes
Arg [3] : symbol_ (string): MSHOT-SILHOUETTE
Arg [4] : royaltyReceiver_ (address): 0xa6160180dF5D140C2622cdAD07b1FD29DE307958
Arg [5] : royaltyShare_ (uint256): 420
Arg [6] : owner_ (address): 0xF0F8e9fdCf40B1B4Ee575661b9307B7828eb4C4d
Arg [7] : adminMinter_ (address): 0x3dB44dA322ec23aC294362B0D75eEfbc381694B4
Arg [8] : beneficiaryAddress_ (address): 0xBFC07405F4AFB78BE5d352f57268d21c5eA7937a

-----Encoded View---------------
16 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000180
Arg [3] : 00000000000000000000000000000000000000000000000000000000000001c0
Arg [4] : 000000000000000000000000a6160180df5d140c2622cdad07b1fd29de307958
Arg [5] : 00000000000000000000000000000000000000000000000000000000000001a4
Arg [6] : 000000000000000000000000f0f8e9fdcf40b1b4ee575661b9307b7828eb4c4d
Arg [7] : 0000000000000000000000003db44da322ec23ac294362b0d75eefbc381694b4
Arg [8] : 000000000000000000000000bfc07405f4afb78be5d352f57268d21c5ea7937a
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000014
Arg [10] : 68747470733a2f2f617277656176652e6e65742f000000000000000000000000
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000018
Arg [13] : 4d6f76696553686f7473202d2053696c686f7565747465730000000000000000
Arg [14] : 0000000000000000000000000000000000000000000000000000000000000010
Arg [15] : 4d53484f542d53494c484f554554544500000000000000000000000000000000


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.