ETH Price: $3,393.97 (+0.83%)

Contract

0x08483153802fA9877029690312846aFb2e9baa63
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

More Info

Private Name Tags

TokenTracker

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Approval For...191734502024-02-07 2:48:35324 days ago1707274115IN
0x08483153...b2e9baa63
0 ETH0.0012083726.16209294
Set Approval For...179357062023-08-17 16:23:35497 days ago1692289415IN
0x08483153...b2e9baa63
0 ETH0.002413952.34424486
Set Approval For...172184032023-05-08 21:20:35598 days ago1683580835IN
0x08483153...b2e9baa63
0 ETH0.002121687.65529853
Set Approval For...167258702023-02-28 9:48:47668 days ago1677577727IN
0x08483153...b2e9baa63
0 ETH0.0008115917.59890632
Set Approval For...167158402023-02-27 0:02:11669 days ago1677456131IN
0x08483153...b2e9baa63
0 ETH0.0011087724.04323714
Set Approval For...166728902023-02-20 23:00:59675 days ago1676934059IN
0x08483153...b2e9baa63
0 ETH0.0007478730.89889075
Set Approval For...165999242023-02-10 17:43:59685 days ago1676051039IN
0x08483153...b2e9baa63
0 ETH0.0006856828.3294323
Set Approval For...165458312023-02-03 4:20:23693 days ago1675398023IN
0x08483153...b2e9baa63
0 ETH0.0005960524.62639447
Set Approval For...164789742023-01-24 20:11:59702 days ago1674591119IN
0x08483153...b2e9baa63
0 ETH0.0011645725.25321947
Set Approval For...164519112023-01-21 1:31:23706 days ago1674264683IN
0x08483153...b2e9baa63
0 ETH0.0004596718.99182753
Set Approval For...163388052023-01-05 6:29:23722 days ago1672900163IN
0x08483153...b2e9baa63
0 ETH0.0007187415.58567079
Set Approval For...163330042023-01-04 11:03:47722 days ago1672830227IN
0x08483153...b2e9baa63
0 ETH0.0007199615.61196352
Set Approval For...162482262022-12-23 15:10:11734 days ago1671808211IN
0x08483153...b2e9baa63
0 ETH0.0007332715.90063498
Set Approval For...162349342022-12-21 18:41:47736 days ago1671648107IN
0x08483153...b2e9baa63
0 ETH0.0006570414.24767389
Set Approval For...162057192022-12-17 16:50:11740 days ago1671295811IN
0x08483153...b2e9baa63
0 ETH0.0006216413.48013076
Set Approval For...159679702022-11-14 11:27:23773 days ago1668425243IN
0x08483153...b2e9baa63
0 ETH0.0003942916.23433671
Safe Transfer Fr...159207722022-11-07 21:16:11780 days ago1667855771IN
0x08483153...b2e9baa63
0 ETH0.0007271615.64563658
Set Approval For...159132002022-11-06 19:54:59781 days ago1667764499IN
0x08483153...b2e9baa63
0 ETH0.0006002213.01554718
Set Approval For...158213822022-10-25 0:02:47794 days ago1666656167IN
0x08483153...b2e9baa63
0 ETH0.0005616612.15719032
Set Approval For...158201952022-10-24 20:01:35794 days ago1666641695IN
0x08483153...b2e9baa63
0 ETH0.0008114917.59686188
Set Approval For...158029502022-10-22 10:08:23797 days ago1666433303IN
0x08483153...b2e9baa63
0 ETH0.0007418916.08755754
Set Approval For...156562852022-10-01 22:30:11817 days ago1664663411IN
0x08483153...b2e9baa63
0 ETH0.000231835.0271759
Set Approval For...155984812022-09-23 20:37:35825 days ago1663965455IN
0x08483153...b2e9baa63
0 ETH0.000340217.37742372
Set Approval For...155949662022-09-23 8:50:59826 days ago1663923059IN
0x08483153...b2e9baa63
0 ETH0.000282926.13502031
Set Approval For...155856572022-09-22 1:38:11827 days ago1663810691IN
0x08483153...b2e9baa63
0 ETH0.000330517.16702035
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
WolfGuildMintPass

Compiler Version
v0.8.14+commit.80d49f37

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion
File 1 of 16 : WolfGuildMintPass.sol
//SPDX-License-Identifier: Unlicense

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";

error ExceedsMaxSupply();
error FunctionLocked();
error InvalidSignature();
error SignatureAlreadyUsed();
error TokenIdOutOfRange();

/**
 * @title Wolf Guild Mint Passes
 * @author bagelface.eth
 * @notice For more details visit https://wolfguild.io/
 */
contract WolfGuildMintPass is ERC1155, AccessControl, Ownable, Pausable, ReentrancyGuard {
    using ECDSA for bytes32;

    bytes32 public constant AIRDROPPER_ROLE = keccak256("AIRDROPPER_ROLE");
    bytes32 public constant BURNER_ROLE = keccak256("BURNER_ROLE");
    uint256[3] public MAX_SUPPLY = [7, 25, 463];

    address public signer;
    uint256[3] public supply;
    mapping(bytes => bool) public signatureUsed;
    mapping(bytes4 => bool) public functionLocked;

    constructor(string memory uri) ERC1155(uri) {
        _grantRole(DEFAULT_ADMIN_ROLE, _msgSender());
    }

    /**
     * @notice Modifier applied to functions that will be disabled when they're no longer needed
     */
    modifier lockable() {
        if (functionLocked[msg.sig]) revert FunctionLocked();
        _;
    }

    /**
     * @notice Lock individual functions that are no longer needed
     * @dev Only affects functions with the lockable modifier
     * @param id First 4 bytes of the calldata (i.e. function identifier)
     */
    function lock(bytes4 id) public onlyRole(DEFAULT_ADMIN_ROLE) {
        functionLocked[id] = true;
    }

    /**
     * @notice The total supply of all tokens minted
     * @return The sum of each individual token supply
     */
    function totalSupply() public view returns (uint256) {
        return supply[0] + supply[1] + supply[2];
    }

    /**
     * @notice Set signature signing address
     * @param _signer address of account used to create mint signatures
     */
    function setSigner(address _signer) public onlyRole(DEFAULT_ADMIN_ROLE) {
        signer = _signer;
    }

    /**
     * @notice Set token URI for all tokens
     * @dev More details in ERC1155 contract
     * @param uri base metadata URI applied to token IDs
     */
    function setURI(string memory uri) public lockable onlyRole(DEFAULT_ADMIN_ROLE) {
        _setURI(uri);
    }

    /**
     * @notice Flip paused state to temporarily disable minting
     */
    function flipPaused() public lockable onlyRole(DEFAULT_ADMIN_ROLE) {
        paused() ? _unpause() : _pause();
    }

    /**
     * @notice Airdrop a mint pass
     * @param receivers of the corresponding token
     * @param tokenId to airdrop
     */
    function airdrop(
        address[] calldata receivers,
        uint256 tokenId
    )
        public
        lockable
        onlyRole(AIRDROPPER_ROLE)
    {
        if (tokenId >= MAX_SUPPLY.length) revert TokenIdOutOfRange();
        if (supply[tokenId] + receivers.length > MAX_SUPPLY[tokenId]) revert ExceedsMaxSupply();

        for (uint256 i; i < receivers.length; ++i) {
            _mint(receivers[i], tokenId, 1, "");
        }

        supply[tokenId] += receivers.length;
    }

    /**
     * @notice Whitelisted mint
     * @dev One token is minted per signature and each signature can only be used once
     * @param tokenId to mint
     * @param signature created by signer account
     */
    function mint(
        uint256 tokenId,
        bytes memory signature
    )
        public
        whenNotPaused
        nonReentrant
    {
        if (signatureUsed[signature]) revert SignatureAlreadyUsed();
        if (tokenId >= MAX_SUPPLY.length) revert TokenIdOutOfRange();
        if (supply[tokenId] == MAX_SUPPLY[tokenId]) revert ExceedsMaxSupply();

        bytes memory digest = abi.encodePacked(_msgSender(), tokenId);
        if (signer != ECDSA.recover(ECDSA.toEthSignedMessageHash(keccak256(digest)), signature))
            revert InvalidSignature();

        _mint(_msgSender(), tokenId, 1, "");

        signatureUsed[signature] = true;
        supply[tokenId] += 1;
    }

    /**
     * @notice Burn a specified token from a specified owner
     * @param from Owner to burn from
     * @param id Token to burn
     */
    function burn(
        address from,
        uint256 id
    )
        public
        lockable
        onlyRole(BURNER_ROLE)
    {
        _burn(from, id, 1);
    }

    /**
     * @inheritdoc ERC1155
     */
    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override(ERC1155, AccessControl)
        returns (bool)
    {
        return super.supportsInterface(interfaceId);
    }
}

File 2 of 16 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        } else if (error == RecoverError.InvalidSignatureV) {
            revert("ECDSA: invalid signature 'v' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        // Check the signature length
        // - case 65: r,s,v signature (standard)
        // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else if (signature.length == 64) {
            bytes32 r;
            bytes32 vs;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                vs := mload(add(signature, 0x40))
            }
            return tryRecover(hash, r, vs);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address, RecoverError) {
        bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
        uint8 v = uint8((uint256(vs) >> 255) + 27);
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address, RecoverError) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS);
        }
        if (v != 27 && v != 28) {
            return (address(0), RecoverError.InvalidSignatureV);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from `s`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}

File 3 of 16 : 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 4 of 16 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

File 5 of 16 : 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 6 of 16 : 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 7 of 16 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (access/AccessControl.sol)

pragma solidity ^0.8.0;

import "./IAccessControl.sol";
import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../utils/introspection/ERC165.sol";

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with a standardized message including the required role.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role, _msgSender());
        _;
    }

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

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view virtual override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     */
    function _checkRole(bytes32 role, address account) internal view virtual {
        if (!hasRole(role, account)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        Strings.toHexString(uint160(account), 20),
                        " is missing role ",
                        Strings.toHexString(uint256(role), 32)
                    )
                )
            );
        }
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been revoked `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     *
     * NOTE: This function is deprecated in favor of {_grantRole}.
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        bytes32 previousAdminRole = getRoleAdmin(role);
        _roles[role].adminRole = adminRole;
        emit RoleAdminChanged(role, previousAdminRole, adminRole);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * Internal function without access restriction.
     */
    function _grantRole(bytes32 role, address account) internal virtual {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * Internal function without access restriction.
     */
    function _revokeRole(bytes32 role, address account) internal virtual {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 10 of 16 : 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 16 : 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 12 of 16 : 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 13 of 16 : 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 14 of 16 : 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 16 : IAccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)

pragma solidity ^0.8.0;

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {AccessControl-_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) external view returns (bool);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) external;
}

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

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ExceedsMaxSupply","type":"error"},{"inputs":[],"name":"FunctionLocked","type":"error"},{"inputs":[],"name":"InvalidSignature","type":"error"},{"inputs":[],"name":"SignatureAlreadyUsed","type":"error"},{"inputs":[],"name":"TokenIdOutOfRange","type":"error"},{"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":"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":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","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":[],"name":"AIRDROPPER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"BURNER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"receivers","type":"address[]"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"name":"functionLocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","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":"bytes4","name":"id","type":"bytes4"}],"name":"lock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","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":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signer","type":"address"}],"name":"setSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"","type":"bytes"}],"name":"signatureUsed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"signer","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"supply","outputs":[{"internalType":"uint256","name":"","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":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]

60e060405260076080908152601960a0526101cf60c05262000026906006906003620001a4565b503480156200003457600080fd5b50604051620033be380380620033be833981016040819052620000579162000297565b80620000638162000095565b506200006f33620000ae565b6004805460ff60a01b1916905560016005556200008e60003362000100565b50620003af565b8051620000aa906002906020840190620001ed565b5050565b600480546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60008281526003602090815260408083206001600160a01b038516845290915290205460ff16620000aa5760008281526003602090815260408083206001600160a01b03851684529091529020805460ff19166001179055620001603390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b8260038101928215620001db579160200282015b82811115620001db578251829061ffff16905591602001919060010190620001b8565b50620001e99291506200026a565b5090565b828054620001fb9062000373565b90600052602060002090601f0160209004810192826200021f5760008555620001db565b82601f106200023a57805160ff1916838001178555620001db565b82800160010185558215620001db579182015b82811115620001db5782518255916020019190600101906200024d565b5b80821115620001e957600081556001016200026b565b634e487b7160e01b600052604160045260246000fd5b60006020808385031215620002ab57600080fd5b82516001600160401b0380821115620002c357600080fd5b818501915085601f830112620002d857600080fd5b815181811115620002ed57620002ed62000281565b604051601f8201601f19908116603f0116810190838211818310171562000318576200031862000281565b8160405282815288868487010111156200033157600080fd5b600093505b8284101562000355578484018601518185018701529285019262000336565b82841115620003675760008684830101525b98975050505050505050565b600181811c908216806200038857607f821691505b602082108103620003a957634e487b7160e01b600052602260045260246000fd5b50919050565b612fff80620003bf6000396000f3fe608060405234801561001057600080fd5b506004361061020a5760003560e01c80635c975abb1161012a578063a22cb465116100bd578063d547741f1161008c578063e985e9c511610071578063e985e9c5146104fa578063f242432a14610536578063f2fde38b1461054957600080fd5b8063d547741f146104d4578063db7fd408146104e757600080fd5b8063a22cb4651461045d578063bb10c82914610470578063bbadfe761461049e578063c204642c146104c157600080fd5b806391d14854116100f957806391d14854146103f657806399d07c041461042f5780639dc29fac14610442578063a217fddf1461045557600080fd5b80635c975abb146103b85780636c19e783146103ca578063715018a6146103dd5780638da5cb5b146103e557600080fd5b8063282c51f3116101a25780633540302311610171578063354030231461034b57806336568abe1461035e5780633b79276c146103715780634e1273f41461039857600080fd5b8063282c51f3146102f65780632eb2c2d61461031d5780632f2ff15d14610330578063333171bb1461034357600080fd5b806318160ddd116101de57806318160ddd1461028d578063238ac93314610295578063248a9ca3146102c057806327125748146102e357600080fd5b8062fdd58e1461020f57806301ffc9a71461023557806302fe5305146102585780630e89341c1461026d575b600080fd5b61022261021d366004612669565b61055c565b6040519081526020015b60405180910390f35b6102486102433660046126a9565b610605565b604051901515815260200161022c565b61026b610266366004612767565b610616565b005b61028061027b3660046127b8565b61066a565b60405161022c919061282d565b6102226106fe565b6009546102a8906001600160a01b031681565b6040516001600160a01b03909116815260200161022c565b6102226102ce3660046127b8565b60009081526003602052604090206001015490565b6102226102f13660046127b8565b610723565b6102227f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a84881565b61026b61032b3660046128f5565b61073a565b61026b61033e36600461299f565b6107dc565b61026b610807565b6102226103593660046127b8565b610872565b61026b61036c36600461299f565b610882565b6102227ff9091c9c3be31b80afbe6fb18ac7f65afc7ae70116c905e33ea83c890fdda92481565b6103ab6103a63660046129cb565b61090a565b60405161022c9190612ad1565b600454600160a01b900460ff16610248565b61026b6103d8366004612ae4565b610a48565b61026b610a84565b6004546001600160a01b03166102a8565b61024861040436600461299f565b60009182526003602090815260408084206001600160a01b0393909316845291905290205460ff1690565b61026b61043d3660046126a9565b610aea565b61026b610450366004612669565b610b1c565b610222600081565b61026b61046b366004612aff565b610b8e565b61024861047e366004612b3b565b8051602081830181018051600d8252928201919093012091525460ff1681565b6102486104ac3660046126a9565b600e6020526000908152604090205460ff1681565b61026b6104cf366004612b70565b610b99565b61026b6104e236600461299f565b610d01565b61026b6104f5366004612beb565b610d27565b610248610508366004612c28565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b61026b610544366004612c52565b610fe0565b61026b610557366004612ae4565b61107b565b60006001600160a01b0383166105df5760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201527f65726f206164647265737300000000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006106108261115a565b92915050565b600080356001600160e01b0319168152600e602052604090205460ff161561065157604051638bf9b99f60e01b815260040160405180910390fd5b600061065d8133611198565b61066682611218565b5050565b60606002805461067990612cb7565b80601f01602080910402602001604051908101604052809291908181526020018280546106a590612cb7565b80156106f25780601f106106c7576101008083540402835291602001916106f2565b820191906000526020600020905b8154815290600101906020018083116106d557829003601f168201915b50505050509050919050565b600c54600b54600a546000929161071491612d1d565b61071e9190612d1d565b905090565b6006816003811061073357600080fd5b0154905081565b6001600160a01b03851633148061075657506107568533610508565b6107c85760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f742060448201527f6f776e6572206e6f7220617070726f766564000000000000000000000000000060648201526084016105d6565b6107d5858585858561122b565b5050505050565b6000828152600360205260409020600101546107f88133611198565b610802838361149e565b505050565b600080356001600160e01b0319168152600e602052604090205460ff161561084257604051638bf9b99f60e01b815260040160405180910390fd5b600061084e8133611198565b600454600160a01b900460ff1661086a57610867611540565b50565b6108676115f2565b600a816003811061073357600080fd5b6001600160a01b03811633146109005760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c66000000000000000000000000000000000060648201526084016105d6565b610666828261167f565b606081518351146109835760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e67746860448201527f206d69736d61746368000000000000000000000000000000000000000000000060648201526084016105d6565b6000835167ffffffffffffffff81111561099f5761099f6126c6565b6040519080825280602002602001820160405280156109c8578160200160208202803683370190505b50905060005b8451811015610a4057610a138582815181106109ec576109ec612cf1565b6020026020010151858381518110610a0657610a06612cf1565b602002602001015161055c565b828281518110610a2557610a25612cf1565b6020908102919091010152610a3981612d35565b90506109ce565b509392505050565b6000610a548133611198565b506009805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6004546001600160a01b03163314610ade5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105d6565b610ae86000611702565b565b6000610af68133611198565b506001600160e01b0319166000908152600e60205260409020805460ff19166001179055565b600080356001600160e01b0319168152600e602052604090205460ff1615610b5757604051638bf9b99f60e01b815260040160405180910390fd5b7f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a848610b828133611198565b61080283836001611761565b61066633838361190e565b600080356001600160e01b0319168152600e602052604090205460ff1615610bd457604051638bf9b99f60e01b815260040160405180910390fd5b7ff9091c9c3be31b80afbe6fb18ac7f65afc7ae70116c905e33ea83c890fdda924610bff8133611198565b60038210610c20576040516305033e0360e41b815260040160405180910390fd5b60068260038110610c3357610c33612cf1565b015483600a8460038110610c4957610c49612cf1565b0154610c559190612d1d565b1115610c745760405163c30436e960e01b815260040160405180910390fd5b60005b83811015610cd157610cc1858583818110610c9457610c94612cf1565b9050602002016020810190610ca99190612ae4565b84600160405180602001604052806000815250611a02565b610cca81612d35565b9050610c77565b5082600a8360038110610ce657610ce6612cf1565b016000828254610cf69190612d1d565b909155505050505050565b600082815260036020526040902060010154610d1d8133611198565b610802838361167f565b600454600160a01b900460ff1615610d815760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a207061757365640000000000000000000000000000000060448201526064016105d6565b600260055403610dd35760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016105d6565b6002600555604051600d90610de9908390612d4e565b9081526040519081900360200190205460ff1615610e33576040517f900bb2c900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60038210610e54576040516305033e0360e41b815260040160405180910390fd5b60068260038110610e6757610e67612cf1565b0154600a8360038110610e7c57610e7c612cf1565b015403610e9c5760405163c30436e960e01b815260040160405180910390fd5b604080513360601b6bffffffffffffffffffffffff19166020808301919091526034808301869052835180840390910181526054830184528051818301207f19457468657265756d205369676e6564204d6573736167653a0a33320000000060748501526090808501919091528451808503909101815260b09093019093528151910120610f2a9083611b28565b6009546001600160a01b03908116911614610f71576040517f8baa579f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610f7a33610ca9565b6001600d83604051610f8c9190612d4e565b908152604051908190036020019020805491151560ff199092169190911790556001600a8460038110610fc157610fc1612cf1565b016000828254610fd19190612d1d565b90915550506001600555505050565b6001600160a01b038516331480610ffc5750610ffc8533610508565b61106e5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201527f20617070726f766564000000000000000000000000000000000000000000000060648201526084016105d6565b6107d58585858585611b44565b6004546001600160a01b031633146110d55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105d6565b6001600160a01b0381166111515760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016105d6565b61086781611702565b60006001600160e01b031982167f7965db0b000000000000000000000000000000000000000000000000000000001480610610575061061082611ce2565b60008281526003602090815260408083206001600160a01b038516845290915290205460ff16610666576111d6816001600160a01b03166014611d7d565b6111e1836020611d7d565b6040516020016111f2929190612d6a565b60408051601f198184030181529082905262461bcd60e51b82526105d69160040161282d565b80516106669060029060208401906125b4565b81518351146112a25760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060448201527f6d69736d6174636800000000000000000000000000000000000000000000000060648201526084016105d6565b6001600160a01b0384166113065760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b60648201526084016105d6565b3360005b845181101561143057600085828151811061132757611327612cf1565b60200260200101519050600085838151811061134557611345612cf1565b602090810291909101810151600084815280835260408082206001600160a01b038e1683529093529190912054909150818110156113d85760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201526939103a3930b739b332b960b11b60648201526084016105d6565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290611415908490612d1d565b925050819055505050508061142990612d35565b905061130a565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611480929190612deb565b60405180910390a4611496818787878787611f65565b505050505050565b60008281526003602090815260408083206001600160a01b038516845290915290205460ff166106665760008281526003602090815260408083206001600160a01b03851684529091529020805460ff191660011790556114fc3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b600454600160a01b900460ff161561159a5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a207061757365640000000000000000000000000000000060448201526064016105d6565b6004805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586115d53390565b6040516001600160a01b03909116815260200160405180910390a1565b600454600160a01b900460ff1661164b5760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f742070617573656400000000000000000000000060448201526064016105d6565b6004805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa336115d5565b60008281526003602090815260408083206001600160a01b038516845290915290205460ff16156106665760008281526003602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b600480546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0383166117dd5760405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201527f657373000000000000000000000000000000000000000000000000000000000060648201526084016105d6565b3361180d818560006117ee8761210a565b6117f78761210a565b5050604080516020810190915260009052505050565b6000838152602081815260408083206001600160a01b0388168452909152902054828110156118a35760405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c60448201527f616e63650000000000000000000000000000000000000000000000000000000060648201526084016105d6565b6000848152602081815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b816001600160a01b0316836001600160a01b0316036119955760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c2073746174757360448201527f20666f722073656c66000000000000000000000000000000000000000000000060648201526084016105d6565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b038416611a7e5760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f2061646472657360448201527f730000000000000000000000000000000000000000000000000000000000000060648201526084016105d6565b33611a9881600087611a8f8861210a565b6107d58861210a565b6000848152602081815260408083206001600160a01b038916845290915281208054859290611ac8908490612d1d565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46107d581600087878787612155565b6000806000611b378585612251565b91509150610a40816122bf565b6001600160a01b038416611ba85760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b60648201526084016105d6565b33611bb8818787611a8f8861210a565b6000848152602081815260408083206001600160a01b038a16845290915290205483811015611c3c5760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201526939103a3930b739b332b960b11b60648201526084016105d6565b6000858152602081815260408083206001600160a01b038b8116855292528083208785039055908816825281208054869290611c79908490612d1d565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4611cd9828888888888612155565b50505050505050565b60006001600160e01b031982167fd9b67a26000000000000000000000000000000000000000000000000000000001480611d4557506001600160e01b031982167f0e89341c00000000000000000000000000000000000000000000000000000000145b8061061057507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614610610565b60606000611d8c836002612e19565b611d97906002612d1d565b67ffffffffffffffff811115611daf57611daf6126c6565b6040519080825280601f01601f191660200182016040528015611dd9576020820181803683370190505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110611e1057611e10612cf1565b60200101906001600160f81b031916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110611e5b57611e5b612cf1565b60200101906001600160f81b031916908160001a9053506000611e7f846002612e19565b611e8a906001612d1d565b90505b6001811115611f0f577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110611ecb57611ecb612cf1565b1a60f81b828281518110611ee157611ee1612cf1565b60200101906001600160f81b031916908160001a90535060049490941c93611f0881612e38565b9050611e8d565b508315611f5e5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016105d6565b9392505050565b6001600160a01b0384163b156114965760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190611fa99089908990889088908890600401612e4f565b6020604051808303816000875af1925050508015611fe4575060408051601f3d908101601f19168201909252611fe191810190612ead565b60015b61209957611ff0612eca565b806308c379a0036120295750612004612ee6565b8061200f575061202b565b8060405162461bcd60e51b81526004016105d6919061282d565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e204552433131353560448201527f526563656976657220696d706c656d656e74657200000000000000000000000060648201526084016105d6565b6001600160e01b0319811663bc197c8160e01b14611cd95760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b60648201526084016105d6565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061214457612144612cf1565b602090810291909101015292915050565b6001600160a01b0384163b156114965760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906121999089908990889088908890600401612f70565b6020604051808303816000875af19250505080156121d4575060408051601f3d908101601f191682019092526121d191810190612ead565b60015b6121e057611ff0612eca565b6001600160e01b0319811663f23a6e6160e01b14611cd95760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b60648201526084016105d6565b60008082516041036122875760208301516040840151606085015160001a61227b87828585612475565b945094505050506122b8565b82516040036122b057602083015160408401516122a5868383612562565b9350935050506122b8565b506000905060025b9250929050565b60008160048111156122d3576122d3612fb3565b036122db5750565b60018160048111156122ef576122ef612fb3565b0361233c5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016105d6565b600281600481111561235057612350612fb3565b0361239d5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016105d6565b60038160048111156123b1576123b1612fb3565b036124095760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016105d6565b600481600481111561241d5761241d612fb3565b036108675760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b60648201526084016105d6565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156124ac5750600090506003612559565b8460ff16601b141580156124c457508460ff16601c14155b156124d55750600090506004612559565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612529573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661255257600060019250925050612559565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff83168161259860ff86901c601b612d1d565b90506125a687828885612475565b935093505050935093915050565b8280546125c090612cb7565b90600052602060002090601f0160209004810192826125e25760008555612628565b82601f106125fb57805160ff1916838001178555612628565b82800160010185558215612628579182015b8281111561262857825182559160200191906001019061260d565b50612634929150612638565b5090565b5b808211156126345760008155600101612639565b80356001600160a01b038116811461266457600080fd5b919050565b6000806040838503121561267c57600080fd5b6126858361264d565b946020939093013593505050565b6001600160e01b03198116811461086757600080fd5b6000602082840312156126bb57600080fd5b8135611f5e81612693565b634e487b7160e01b600052604160045260246000fd5b601f8201601f1916810167ffffffffffffffff81118282101715612702576127026126c6565b6040525050565b600067ffffffffffffffff831115612723576127236126c6565b60405161273a601f8501601f1916602001826126dc565b80915083815284848401111561274f57600080fd5b83836020830137600060208583010152509392505050565b60006020828403121561277957600080fd5b813567ffffffffffffffff81111561279057600080fd5b8201601f810184136127a157600080fd5b6127b084823560208401612709565b949350505050565b6000602082840312156127ca57600080fd5b5035919050565b60005b838110156127ec5781810151838201526020016127d4565b838111156127fb576000848401525b50505050565b600081518084526128198160208601602086016127d1565b601f01601f19169290920160200192915050565b602081526000611f5e6020830184612801565b600067ffffffffffffffff82111561285a5761285a6126c6565b5060051b60200190565b600082601f83011261287557600080fd5b8135602061288282612840565b60405161288f82826126dc565b83815260059390931b85018201928281019150868411156128af57600080fd5b8286015b848110156128ca57803583529183019183016128b3565b509695505050505050565b600082601f8301126128e657600080fd5b611f5e83833560208501612709565b600080600080600060a0868803121561290d57600080fd5b6129168661264d565b94506129246020870161264d565b9350604086013567ffffffffffffffff8082111561294157600080fd5b61294d89838a01612864565b9450606088013591508082111561296357600080fd5b61296f89838a01612864565b9350608088013591508082111561298557600080fd5b50612992888289016128d5565b9150509295509295909350565b600080604083850312156129b257600080fd5b823591506129c26020840161264d565b90509250929050565b600080604083850312156129de57600080fd5b823567ffffffffffffffff808211156129f657600080fd5b818501915085601f830112612a0a57600080fd5b81356020612a1782612840565b604051612a2482826126dc565b83815260059390931b8501820192828101915089841115612a4457600080fd5b948201945b83861015612a6957612a5a8661264d565b82529482019490820190612a49565b96505086013592505080821115612a7f57600080fd5b50612a8c85828601612864565b9150509250929050565b600081518084526020808501945080840160005b83811015612ac657815187529582019590820190600101612aaa565b509495945050505050565b602081526000611f5e6020830184612a96565b600060208284031215612af657600080fd5b611f5e8261264d565b60008060408385031215612b1257600080fd5b612b1b8361264d565b915060208301358015158114612b3057600080fd5b809150509250929050565b600060208284031215612b4d57600080fd5b813567ffffffffffffffff811115612b6457600080fd5b6127b0848285016128d5565b600080600060408486031215612b8557600080fd5b833567ffffffffffffffff80821115612b9d57600080fd5b818601915086601f830112612bb157600080fd5b813581811115612bc057600080fd5b8760208260051b8501011115612bd557600080fd5b6020928301989097509590910135949350505050565b60008060408385031215612bfe57600080fd5b82359150602083013567ffffffffffffffff811115612c1c57600080fd5b612a8c858286016128d5565b60008060408385031215612c3b57600080fd5b612c448361264d565b91506129c26020840161264d565b600080600080600060a08688031215612c6a57600080fd5b612c738661264d565b9450612c816020870161264d565b93506040860135925060608601359150608086013567ffffffffffffffff811115612cab57600080fd5b612992888289016128d5565b600181811c90821680612ccb57607f821691505b602082108103612ceb57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60008219821115612d3057612d30612d07565b500190565b600060018201612d4757612d47612d07565b5060010190565b60008251612d608184602087016127d1565b9190910192915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351612da28160178501602088016127d1565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351612ddf8160288401602088016127d1565b01602801949350505050565b604081526000612dfe6040830185612a96565b8281036020840152612e108185612a96565b95945050505050565b6000816000190483118215151615612e3357612e33612d07565b500290565b600081612e4757612e47612d07565b506000190190565b60006001600160a01b03808816835280871660208401525060a06040830152612e7b60a0830186612a96565b8281036060840152612e8d8186612a96565b90508281036080840152612ea18185612801565b98975050505050505050565b600060208284031215612ebf57600080fd5b8151611f5e81612693565b600060033d1115612ee35760046000803e5060005160e01c5b90565b600060443d1015612ef45790565b6040516003193d81016004833e81513d67ffffffffffffffff8160248401118184111715612f2457505050505090565b8285019150815181811115612f3c5750505050505090565b843d8701016020828501011115612f565750505050505090565b612f65602082860101876126dc565b509095945050505050565b60006001600160a01b03808816835280871660208401525084604083015283606083015260a06080830152612fa860a0830184612801565b979650505050505050565b634e487b7160e01b600052602160045260246000fdfea2646970667358221220c79f78a9d8f9e8db10ed0bfadca54601596ff947857df9b463112c433b8681f664736f6c634300080e003300000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000007697066733a2f2f00000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061020a5760003560e01c80635c975abb1161012a578063a22cb465116100bd578063d547741f1161008c578063e985e9c511610071578063e985e9c5146104fa578063f242432a14610536578063f2fde38b1461054957600080fd5b8063d547741f146104d4578063db7fd408146104e757600080fd5b8063a22cb4651461045d578063bb10c82914610470578063bbadfe761461049e578063c204642c146104c157600080fd5b806391d14854116100f957806391d14854146103f657806399d07c041461042f5780639dc29fac14610442578063a217fddf1461045557600080fd5b80635c975abb146103b85780636c19e783146103ca578063715018a6146103dd5780638da5cb5b146103e557600080fd5b8063282c51f3116101a25780633540302311610171578063354030231461034b57806336568abe1461035e5780633b79276c146103715780634e1273f41461039857600080fd5b8063282c51f3146102f65780632eb2c2d61461031d5780632f2ff15d14610330578063333171bb1461034357600080fd5b806318160ddd116101de57806318160ddd1461028d578063238ac93314610295578063248a9ca3146102c057806327125748146102e357600080fd5b8062fdd58e1461020f57806301ffc9a71461023557806302fe5305146102585780630e89341c1461026d575b600080fd5b61022261021d366004612669565b61055c565b6040519081526020015b60405180910390f35b6102486102433660046126a9565b610605565b604051901515815260200161022c565b61026b610266366004612767565b610616565b005b61028061027b3660046127b8565b61066a565b60405161022c919061282d565b6102226106fe565b6009546102a8906001600160a01b031681565b6040516001600160a01b03909116815260200161022c565b6102226102ce3660046127b8565b60009081526003602052604090206001015490565b6102226102f13660046127b8565b610723565b6102227f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a84881565b61026b61032b3660046128f5565b61073a565b61026b61033e36600461299f565b6107dc565b61026b610807565b6102226103593660046127b8565b610872565b61026b61036c36600461299f565b610882565b6102227ff9091c9c3be31b80afbe6fb18ac7f65afc7ae70116c905e33ea83c890fdda92481565b6103ab6103a63660046129cb565b61090a565b60405161022c9190612ad1565b600454600160a01b900460ff16610248565b61026b6103d8366004612ae4565b610a48565b61026b610a84565b6004546001600160a01b03166102a8565b61024861040436600461299f565b60009182526003602090815260408084206001600160a01b0393909316845291905290205460ff1690565b61026b61043d3660046126a9565b610aea565b61026b610450366004612669565b610b1c565b610222600081565b61026b61046b366004612aff565b610b8e565b61024861047e366004612b3b565b8051602081830181018051600d8252928201919093012091525460ff1681565b6102486104ac3660046126a9565b600e6020526000908152604090205460ff1681565b61026b6104cf366004612b70565b610b99565b61026b6104e236600461299f565b610d01565b61026b6104f5366004612beb565b610d27565b610248610508366004612c28565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b61026b610544366004612c52565b610fe0565b61026b610557366004612ae4565b61107b565b60006001600160a01b0383166105df5760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201527f65726f206164647265737300000000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006106108261115a565b92915050565b600080356001600160e01b0319168152600e602052604090205460ff161561065157604051638bf9b99f60e01b815260040160405180910390fd5b600061065d8133611198565b61066682611218565b5050565b60606002805461067990612cb7565b80601f01602080910402602001604051908101604052809291908181526020018280546106a590612cb7565b80156106f25780601f106106c7576101008083540402835291602001916106f2565b820191906000526020600020905b8154815290600101906020018083116106d557829003601f168201915b50505050509050919050565b600c54600b54600a546000929161071491612d1d565b61071e9190612d1d565b905090565b6006816003811061073357600080fd5b0154905081565b6001600160a01b03851633148061075657506107568533610508565b6107c85760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f742060448201527f6f776e6572206e6f7220617070726f766564000000000000000000000000000060648201526084016105d6565b6107d5858585858561122b565b5050505050565b6000828152600360205260409020600101546107f88133611198565b610802838361149e565b505050565b600080356001600160e01b0319168152600e602052604090205460ff161561084257604051638bf9b99f60e01b815260040160405180910390fd5b600061084e8133611198565b600454600160a01b900460ff1661086a57610867611540565b50565b6108676115f2565b600a816003811061073357600080fd5b6001600160a01b03811633146109005760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c66000000000000000000000000000000000060648201526084016105d6565b610666828261167f565b606081518351146109835760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e67746860448201527f206d69736d61746368000000000000000000000000000000000000000000000060648201526084016105d6565b6000835167ffffffffffffffff81111561099f5761099f6126c6565b6040519080825280602002602001820160405280156109c8578160200160208202803683370190505b50905060005b8451811015610a4057610a138582815181106109ec576109ec612cf1565b6020026020010151858381518110610a0657610a06612cf1565b602002602001015161055c565b828281518110610a2557610a25612cf1565b6020908102919091010152610a3981612d35565b90506109ce565b509392505050565b6000610a548133611198565b506009805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6004546001600160a01b03163314610ade5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105d6565b610ae86000611702565b565b6000610af68133611198565b506001600160e01b0319166000908152600e60205260409020805460ff19166001179055565b600080356001600160e01b0319168152600e602052604090205460ff1615610b5757604051638bf9b99f60e01b815260040160405180910390fd5b7f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a848610b828133611198565b61080283836001611761565b61066633838361190e565b600080356001600160e01b0319168152600e602052604090205460ff1615610bd457604051638bf9b99f60e01b815260040160405180910390fd5b7ff9091c9c3be31b80afbe6fb18ac7f65afc7ae70116c905e33ea83c890fdda924610bff8133611198565b60038210610c20576040516305033e0360e41b815260040160405180910390fd5b60068260038110610c3357610c33612cf1565b015483600a8460038110610c4957610c49612cf1565b0154610c559190612d1d565b1115610c745760405163c30436e960e01b815260040160405180910390fd5b60005b83811015610cd157610cc1858583818110610c9457610c94612cf1565b9050602002016020810190610ca99190612ae4565b84600160405180602001604052806000815250611a02565b610cca81612d35565b9050610c77565b5082600a8360038110610ce657610ce6612cf1565b016000828254610cf69190612d1d565b909155505050505050565b600082815260036020526040902060010154610d1d8133611198565b610802838361167f565b600454600160a01b900460ff1615610d815760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a207061757365640000000000000000000000000000000060448201526064016105d6565b600260055403610dd35760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016105d6565b6002600555604051600d90610de9908390612d4e565b9081526040519081900360200190205460ff1615610e33576040517f900bb2c900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60038210610e54576040516305033e0360e41b815260040160405180910390fd5b60068260038110610e6757610e67612cf1565b0154600a8360038110610e7c57610e7c612cf1565b015403610e9c5760405163c30436e960e01b815260040160405180910390fd5b604080513360601b6bffffffffffffffffffffffff19166020808301919091526034808301869052835180840390910181526054830184528051818301207f19457468657265756d205369676e6564204d6573736167653a0a33320000000060748501526090808501919091528451808503909101815260b09093019093528151910120610f2a9083611b28565b6009546001600160a01b03908116911614610f71576040517f8baa579f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610f7a33610ca9565b6001600d83604051610f8c9190612d4e565b908152604051908190036020019020805491151560ff199092169190911790556001600a8460038110610fc157610fc1612cf1565b016000828254610fd19190612d1d565b90915550506001600555505050565b6001600160a01b038516331480610ffc5750610ffc8533610508565b61106e5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201527f20617070726f766564000000000000000000000000000000000000000000000060648201526084016105d6565b6107d58585858585611b44565b6004546001600160a01b031633146110d55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105d6565b6001600160a01b0381166111515760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016105d6565b61086781611702565b60006001600160e01b031982167f7965db0b000000000000000000000000000000000000000000000000000000001480610610575061061082611ce2565b60008281526003602090815260408083206001600160a01b038516845290915290205460ff16610666576111d6816001600160a01b03166014611d7d565b6111e1836020611d7d565b6040516020016111f2929190612d6a565b60408051601f198184030181529082905262461bcd60e51b82526105d69160040161282d565b80516106669060029060208401906125b4565b81518351146112a25760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060448201527f6d69736d6174636800000000000000000000000000000000000000000000000060648201526084016105d6565b6001600160a01b0384166113065760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b60648201526084016105d6565b3360005b845181101561143057600085828151811061132757611327612cf1565b60200260200101519050600085838151811061134557611345612cf1565b602090810291909101810151600084815280835260408082206001600160a01b038e1683529093529190912054909150818110156113d85760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201526939103a3930b739b332b960b11b60648201526084016105d6565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290611415908490612d1d565b925050819055505050508061142990612d35565b905061130a565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611480929190612deb565b60405180910390a4611496818787878787611f65565b505050505050565b60008281526003602090815260408083206001600160a01b038516845290915290205460ff166106665760008281526003602090815260408083206001600160a01b03851684529091529020805460ff191660011790556114fc3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b600454600160a01b900460ff161561159a5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a207061757365640000000000000000000000000000000060448201526064016105d6565b6004805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586115d53390565b6040516001600160a01b03909116815260200160405180910390a1565b600454600160a01b900460ff1661164b5760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f742070617573656400000000000000000000000060448201526064016105d6565b6004805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa336115d5565b60008281526003602090815260408083206001600160a01b038516845290915290205460ff16156106665760008281526003602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b600480546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0383166117dd5760405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201527f657373000000000000000000000000000000000000000000000000000000000060648201526084016105d6565b3361180d818560006117ee8761210a565b6117f78761210a565b5050604080516020810190915260009052505050565b6000838152602081815260408083206001600160a01b0388168452909152902054828110156118a35760405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c60448201527f616e63650000000000000000000000000000000000000000000000000000000060648201526084016105d6565b6000848152602081815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b816001600160a01b0316836001600160a01b0316036119955760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c2073746174757360448201527f20666f722073656c66000000000000000000000000000000000000000000000060648201526084016105d6565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b038416611a7e5760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f2061646472657360448201527f730000000000000000000000000000000000000000000000000000000000000060648201526084016105d6565b33611a9881600087611a8f8861210a565b6107d58861210a565b6000848152602081815260408083206001600160a01b038916845290915281208054859290611ac8908490612d1d565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46107d581600087878787612155565b6000806000611b378585612251565b91509150610a40816122bf565b6001600160a01b038416611ba85760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b60648201526084016105d6565b33611bb8818787611a8f8861210a565b6000848152602081815260408083206001600160a01b038a16845290915290205483811015611c3c5760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201526939103a3930b739b332b960b11b60648201526084016105d6565b6000858152602081815260408083206001600160a01b038b8116855292528083208785039055908816825281208054869290611c79908490612d1d565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4611cd9828888888888612155565b50505050505050565b60006001600160e01b031982167fd9b67a26000000000000000000000000000000000000000000000000000000001480611d4557506001600160e01b031982167f0e89341c00000000000000000000000000000000000000000000000000000000145b8061061057507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614610610565b60606000611d8c836002612e19565b611d97906002612d1d565b67ffffffffffffffff811115611daf57611daf6126c6565b6040519080825280601f01601f191660200182016040528015611dd9576020820181803683370190505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110611e1057611e10612cf1565b60200101906001600160f81b031916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110611e5b57611e5b612cf1565b60200101906001600160f81b031916908160001a9053506000611e7f846002612e19565b611e8a906001612d1d565b90505b6001811115611f0f577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110611ecb57611ecb612cf1565b1a60f81b828281518110611ee157611ee1612cf1565b60200101906001600160f81b031916908160001a90535060049490941c93611f0881612e38565b9050611e8d565b508315611f5e5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016105d6565b9392505050565b6001600160a01b0384163b156114965760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190611fa99089908990889088908890600401612e4f565b6020604051808303816000875af1925050508015611fe4575060408051601f3d908101601f19168201909252611fe191810190612ead565b60015b61209957611ff0612eca565b806308c379a0036120295750612004612ee6565b8061200f575061202b565b8060405162461bcd60e51b81526004016105d6919061282d565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e204552433131353560448201527f526563656976657220696d706c656d656e74657200000000000000000000000060648201526084016105d6565b6001600160e01b0319811663bc197c8160e01b14611cd95760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b60648201526084016105d6565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061214457612144612cf1565b602090810291909101015292915050565b6001600160a01b0384163b156114965760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906121999089908990889088908890600401612f70565b6020604051808303816000875af19250505080156121d4575060408051601f3d908101601f191682019092526121d191810190612ead565b60015b6121e057611ff0612eca565b6001600160e01b0319811663f23a6e6160e01b14611cd95760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b60648201526084016105d6565b60008082516041036122875760208301516040840151606085015160001a61227b87828585612475565b945094505050506122b8565b82516040036122b057602083015160408401516122a5868383612562565b9350935050506122b8565b506000905060025b9250929050565b60008160048111156122d3576122d3612fb3565b036122db5750565b60018160048111156122ef576122ef612fb3565b0361233c5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016105d6565b600281600481111561235057612350612fb3565b0361239d5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016105d6565b60038160048111156123b1576123b1612fb3565b036124095760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016105d6565b600481600481111561241d5761241d612fb3565b036108675760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b60648201526084016105d6565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156124ac5750600090506003612559565b8460ff16601b141580156124c457508460ff16601c14155b156124d55750600090506004612559565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612529573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661255257600060019250925050612559565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff83168161259860ff86901c601b612d1d565b90506125a687828885612475565b935093505050935093915050565b8280546125c090612cb7565b90600052602060002090601f0160209004810192826125e25760008555612628565b82601f106125fb57805160ff1916838001178555612628565b82800160010185558215612628579182015b8281111561262857825182559160200191906001019061260d565b50612634929150612638565b5090565b5b808211156126345760008155600101612639565b80356001600160a01b038116811461266457600080fd5b919050565b6000806040838503121561267c57600080fd5b6126858361264d565b946020939093013593505050565b6001600160e01b03198116811461086757600080fd5b6000602082840312156126bb57600080fd5b8135611f5e81612693565b634e487b7160e01b600052604160045260246000fd5b601f8201601f1916810167ffffffffffffffff81118282101715612702576127026126c6565b6040525050565b600067ffffffffffffffff831115612723576127236126c6565b60405161273a601f8501601f1916602001826126dc565b80915083815284848401111561274f57600080fd5b83836020830137600060208583010152509392505050565b60006020828403121561277957600080fd5b813567ffffffffffffffff81111561279057600080fd5b8201601f810184136127a157600080fd5b6127b084823560208401612709565b949350505050565b6000602082840312156127ca57600080fd5b5035919050565b60005b838110156127ec5781810151838201526020016127d4565b838111156127fb576000848401525b50505050565b600081518084526128198160208601602086016127d1565b601f01601f19169290920160200192915050565b602081526000611f5e6020830184612801565b600067ffffffffffffffff82111561285a5761285a6126c6565b5060051b60200190565b600082601f83011261287557600080fd5b8135602061288282612840565b60405161288f82826126dc565b83815260059390931b85018201928281019150868411156128af57600080fd5b8286015b848110156128ca57803583529183019183016128b3565b509695505050505050565b600082601f8301126128e657600080fd5b611f5e83833560208501612709565b600080600080600060a0868803121561290d57600080fd5b6129168661264d565b94506129246020870161264d565b9350604086013567ffffffffffffffff8082111561294157600080fd5b61294d89838a01612864565b9450606088013591508082111561296357600080fd5b61296f89838a01612864565b9350608088013591508082111561298557600080fd5b50612992888289016128d5565b9150509295509295909350565b600080604083850312156129b257600080fd5b823591506129c26020840161264d565b90509250929050565b600080604083850312156129de57600080fd5b823567ffffffffffffffff808211156129f657600080fd5b818501915085601f830112612a0a57600080fd5b81356020612a1782612840565b604051612a2482826126dc565b83815260059390931b8501820192828101915089841115612a4457600080fd5b948201945b83861015612a6957612a5a8661264d565b82529482019490820190612a49565b96505086013592505080821115612a7f57600080fd5b50612a8c85828601612864565b9150509250929050565b600081518084526020808501945080840160005b83811015612ac657815187529582019590820190600101612aaa565b509495945050505050565b602081526000611f5e6020830184612a96565b600060208284031215612af657600080fd5b611f5e8261264d565b60008060408385031215612b1257600080fd5b612b1b8361264d565b915060208301358015158114612b3057600080fd5b809150509250929050565b600060208284031215612b4d57600080fd5b813567ffffffffffffffff811115612b6457600080fd5b6127b0848285016128d5565b600080600060408486031215612b8557600080fd5b833567ffffffffffffffff80821115612b9d57600080fd5b818601915086601f830112612bb157600080fd5b813581811115612bc057600080fd5b8760208260051b8501011115612bd557600080fd5b6020928301989097509590910135949350505050565b60008060408385031215612bfe57600080fd5b82359150602083013567ffffffffffffffff811115612c1c57600080fd5b612a8c858286016128d5565b60008060408385031215612c3b57600080fd5b612c448361264d565b91506129c26020840161264d565b600080600080600060a08688031215612c6a57600080fd5b612c738661264d565b9450612c816020870161264d565b93506040860135925060608601359150608086013567ffffffffffffffff811115612cab57600080fd5b612992888289016128d5565b600181811c90821680612ccb57607f821691505b602082108103612ceb57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60008219821115612d3057612d30612d07565b500190565b600060018201612d4757612d47612d07565b5060010190565b60008251612d608184602087016127d1565b9190910192915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351612da28160178501602088016127d1565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351612ddf8160288401602088016127d1565b01602801949350505050565b604081526000612dfe6040830185612a96565b8281036020840152612e108185612a96565b95945050505050565b6000816000190483118215151615612e3357612e33612d07565b500290565b600081612e4757612e47612d07565b506000190190565b60006001600160a01b03808816835280871660208401525060a06040830152612e7b60a0830186612a96565b8281036060840152612e8d8186612a96565b90508281036080840152612ea18185612801565b98975050505050505050565b600060208284031215612ebf57600080fd5b8151611f5e81612693565b600060033d1115612ee35760046000803e5060005160e01c5b90565b600060443d1015612ef45790565b6040516003193d81016004833e81513d67ffffffffffffffff8160248401118184111715612f2457505050505090565b8285019150815181811115612f3c5750505050505090565b843d8701016020828501011115612f565750505050505090565b612f65602082860101876126dc565b509095945050505050565b60006001600160a01b03808816835280871660208401525084604083015283606083015260a06080830152612fa860a0830184612801565b979650505050505050565b634e487b7160e01b600052602160045260246000fdfea2646970667358221220c79f78a9d8f9e8db10ed0bfadca54601596ff947857df9b463112c433b8681f664736f6c634300080e0033

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

00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000007697066733a2f2f00000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : uri (string): ipfs://

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000007
Arg [2] : 697066733a2f2f00000000000000000000000000000000000000000000000000


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.