ETH Price: $3,473.48 (+5.92%)
Gas: 6 Gwei

Token

 

Overview

Max Total Supply

468

Holders

131

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Filtered by Token Holder
ranbuta.eth
0x31a6d0ea27db941257024189a3718472d40ef663
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
AniftyERC1155

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 20 : AniftyERC1155V2.sol
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/utils/Counters.sol";
import "./util/Ownable.sol";
import "./util/AccessControl.sol";
import "./util/ERC1155PausableV2.sol";
import "./interfaces/IERC1271.sol";
import "./libraries/ERC1155Holder.sol";

interface AniftyERC1155V1 {
    function burnBatch(uint256[] memory _ids, uint256[] memory _amounts)
        external;

    function balanceOf(address account, uint256 id)
        external
        view
        returns (uint256);

    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] calldata ids,
        uint256[] calldata amounts,
        bytes calldata data
    ) external;
}

contract AniftyERC1155 is
    AccessControl,
    ERC1155Pausable,
    ERC1155Holder,
    Ownable
{
    struct ExistingTokenURI {
        uint256 tokenId;
        address signer;
        string uri;
        uint8 v;
        bytes32 r;
        bytes32 s;
    }

    using Counters for Counters.Counter;
    Counters.Counter private adminTokenIds;
    AniftyERC1155V1 aniftyERC1155V1;

    // Mapping of whitelisted addresses, addresses include lootbox contracts
    mapping(address => bool) public whitelist;
    mapping(uint256 => bool) public functionNotSupported;

    bytes32 internal immutable _DOMAIN_SEPARATOR;
    bytes32 public constant PAUSER_ROLE = keccak256("PAUSER_ROLE");
    bytes32 public constant TRANSFER_SIGNER_ROLE =
        keccak256("TRANSFER_SIGNER_ROLE");

    uint64 public startTokenId;

    constructor(
        address _admin,
        address _signer,
        uint64 _startAdminTokenId,
        AniftyERC1155V1 _aniftyERC1155V1
    ) public ERC1155("ipfs://") {
        uint256 chainId;
        assembly {
            chainId := chainid()
        }
        _DOMAIN_SEPARATOR = keccak256(
            abi.encode(
                keccak256(
                    "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"
                ),
                keccak256("AniftyERC1155"),
                keccak256(bytes("1")),
                chainId,
                address(this)
            )
        );
        aniftyERC1155V1 = _aniftyERC1155V1;
        // Start after the last minted tokenId from V1
        adminTokenIds._value = _startAdminTokenId;
        startTokenId = _startAdminTokenId;
        _setBaseURI("ipfs://");
        _setupRole(DEFAULT_ADMIN_ROLE, _admin);
        _setupRole(PAUSER_ROLE, _admin);
        _setupRole(TRANSFER_SIGNER_ROLE, _signer);
    }

    // =========================================================== VIEW ===========================================================

    function DOMAIN_SEPARATOR() public view returns (bytes32) {
        return _DOMAIN_SEPARATOR;
    }

    function _verify(
        bytes32 signedHash,
        address signer,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal view {
        bytes32 digest = keccak256(
            abi.encodePacked("\x19\x01", DOMAIN_SEPARATOR(), signedHash)
        );
        if (Address.isContract(signer)) {
            require(
                IERC1271(signer).isValidSignature(
                    digest,
                    abi.encodePacked(r, s, v)
                ) == 0x1626ba7e,
                "AniftyERC1155: UNAUTHORIZED"
            );
        } else {
            require(
                ecrecover(digest, v, r, s) == signer,
                "AniftyERC1155: UNAUTHORIZED"
            );
        }
    }

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

    function hash(ExistingTokenURI memory existingTokenURI)
        internal
        pure
        returns (bytes32)
    {
        return
            keccak256(
                abi.encode(
                    // keccak256("ExistingTokenURI(uint256 tokenId,address signer,string uri)")
                    0x5f9d3ceadcd5e9e1bfbb494a85c65503b9fd43ee76adbf589ea49172bed4e23f,
                    existingTokenURI.tokenId,
                    existingTokenURI.signer,
                    keccak256(bytes(existingTokenURI.uri))
                )
            );
    }

    // =========================================================== MODIFIER ===========================================================

    modifier onlyWhitelist() {
        require(
            whitelist[msg.sender] == true,
            "Caller is not from a whitelist address"
        );
        _;
    }

    // =========================================================== EXTERNAL ===========================================================

    function whitelistMint(
        uint256 amount,
        string memory metadataURI,
        bytes calldata data
    ) external onlyWhitelist returns (uint256) {
        adminTokenIds.increment();
        // Increment tokenId
        uint256 tokenId = adminTokenIds.current();
        // Mint
        _mint(msg.sender, tokenId, amount, data);
        // Set ipfs hash uri
        _setTokenURI(tokenId, metadataURI);
        return tokenId;
    }

    function whitelistMintBatch(
        uint256[] memory amounts,
        string[] memory metadataURIs,
        bytes calldata data
    ) external onlyWhitelist returns (uint256[] memory) {
        require(
            amounts.length == metadataURIs.length,
            "AniftyERC1155: Incorrect parameter length"
        );
        uint256[] memory tokenIds = new uint256[](amounts.length);
        for (uint256 i = 0; i < amounts.length; i++) {
            adminTokenIds.increment();
            tokenIds[i] = adminTokenIds.current();
        }
        _mintBatch(msg.sender, tokenIds, amounts, data);
        _setTokenURIBatch(tokenIds, metadataURIs);
        return tokenIds;
    }

    function transferV1(
        uint256[] memory tokenIds,
        uint256[] memory amounts,
        ExistingTokenURI[] memory existingTokenURIs,
        bytes calldata data
    ) external {
        require(
            tokenIds.length == existingTokenURIs.length,
            "AniftyERC1155: Incorrect parameter length"
        );
        require(
            tokenIds.length > 0,
            "AniftyERC1155: Incorrect parameter length"
        );
        for (uint256 i = 0; i < tokenIds.length; i++) {
            if (
                (keccak256(abi.encodePacked((uri(tokenIds[i])))) !=
                    keccak256(abi.encodePacked((ERC1155.uri(tokenIds[i])))))
            ) continue;
            require(
                hasRole(TRANSFER_SIGNER_ROLE, existingTokenURIs[i].signer),
                "AniftyERC1155: Invalid role"
            );
            require(
                existingTokenURIs[i].tokenId == tokenIds[i],
                "AniftyERC1155: Invalid tokenId"
            );
            require(
                existingTokenURIs[i].tokenId <= startTokenId,
                "AniftyERC1155: Invalid tokenId"
            );
            _verify(
                hash(existingTokenURIs[i]),
                existingTokenURIs[i].signer,
                existingTokenURIs[i].v,
                existingTokenURIs[i].r,
                existingTokenURIs[i].s
            );
            _setTokenURI(tokenIds[i], existingTokenURIs[i].uri);
        }
        aniftyERC1155V1.safeBatchTransferFrom(
            msg.sender,
            address(this),
            tokenIds,
            amounts,
            ""
        );
        aniftyERC1155V1.burnBatch(tokenIds, amounts);
        _mintBatch(msg.sender, tokenIds, amounts, data);
    }

    function burn(uint256 _id, uint256 _amount) external {
        _burn(msg.sender, _id, _amount);
    }

    function burnBatch(uint256[] memory _ids, uint256[] memory _amounts)
        external
    {
        _burnBatch(msg.sender, _ids, _amounts);
    }

    // =========================================================== ADMIN ===========================================================

    function removeWhitelistAddress(address[] memory _whitelistAddresses)
        external
        onlyRole(DEFAULT_ADMIN_ROLE)
    {
        for (uint256 i = 0; i < _whitelistAddresses.length; i++) {
            whitelist[_whitelistAddresses[i]] = false;
        }
    }

    function addWhitelistAddress(address[] memory _whitelistAddresses)
        external
        onlyRole(DEFAULT_ADMIN_ROLE)
    {
        for (uint256 i = 0; i < _whitelistAddresses.length; i++) {
            whitelist[_whitelistAddresses[i]] = true;
        }
    }

    function pause() external onlyRole(PAUSER_ROLE) {
        require(!functionNotSupported[0], "AniftyERC1155: NO PAUSE FUNCTION");
        _pause();
    }

    function unpause() external onlyRole(PAUSER_ROLE) {
        _unpause();
    }

    function setTokenUri(uint256[] memory tokenIds, string[] memory tokenURIs)
        external
        onlyRole(DEFAULT_ADMIN_ROLE)
    {
        require(!functionNotSupported[1], "AniftyERC1155: NO SET URI FUNCTION");
        _setTokenURIBatch(tokenIds, tokenURIs);
    }

    function removeFunction(uint256 functionId)
        external
        onlyRole(DEFAULT_ADMIN_ROLE)
        whenNotPaused
    {
        functionNotSupported[functionId] = true;
    }
}

File 2 of 20 : Counters.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

File 3 of 20 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../libraries/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() {
        _setOwner(_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 {
        _setOwner(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"
        );
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 4 of 20 : AccessControl.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../libraries/Context.sol";
import "../libraries/ERC165.sol";
import "./Strings.sol";

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    function hasRole(bytes32 role, address account)
        external
        view
        returns (bool);

    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    function grantRole(bytes32 role, address account) external;

    function revokeRole(bytes32 role, address account) external;

    function renounceRole(bytes32 role, address account) external;
}

/**
 * @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 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 {_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 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]{20}) is missing role (0x[0-9a-f]{32})$/
     *
     * _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
        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]{20}) is missing role (0x[0-9a-f]{32})$/
     */
    function _checkRole(bytes32 role, address account) internal view {
        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 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 granted `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}.
     * ====
     */
    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 {
        emit RoleAdminChanged(role, getRoleAdmin(role), adminRole);
        _roles[role].adminRole = adminRole;
    }

    function _grantRole(bytes32 role, address account) private {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    function _revokeRole(bytes32 role, address account) private {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

File 5 of 20 : ERC1155PausableV2.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./ERC1155URIStorage.sol";
import "../libraries/Pausable.sol";

/**
 * @dev ERC1155 token with pausable token transfers, minting and burning.
 *
 * Useful for scenarios such as preventing trades until the end of an evaluation
 * period, or having an emergency switch for freezing all token transfers in the
 * event of a large bug.
 *
 * _Available since v3.1._
 */
abstract contract ERC1155Pausable is ERC1155URIStorage, Pausable {
    /**
     * @dev See {ERC1155-_beforeTokenTransfer}.
     *
     * Requirements:
     *
     * - the contract must not be paused.
     */
    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual override {
        super._beforeTokenTransfer(operator, from, to, ids, amounts, data);

        require(!paused(), "ERC1155Pausable: token transfer while paused");
    }
}

File 6 of 20 : IERC1271.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.5.0;

/// @title Interface for verifying contract-based account signatures
/// @notice Interface that verifies provided signature for the data
/// @dev Interface defined by EIP-1271
interface IERC1271 {
    /// @notice Returns whether the provided signature is valid for the provided data
    /// @dev MUST return the bytes4 magic value 0x1626ba7e when function passes.
    /// MUST NOT modify state (using STATICCALL for solc < 0.5, view modifier for solc > 0.5).
    /// MUST allow external calls.
    /// @param hash Hash of the data to be signed
    /// @param signature Signature byte array associated with _data
    /// @return magicValue The bytes4 magic value 0x1626ba7e
    function isValidSignature(bytes32 hash, bytes memory signature)
        external
        view
        returns (bytes4 magicValue);
}

File 7 of 20 : ERC1155Holder.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./ERC1155Receiver.sol";

/**
 * @dev _Available since v3.1._
 */
contract ERC1155Holder is ERC1155Receiver {
    function onERC1155Received(
        address,
        address,
        uint256,
        uint256,
        bytes memory
    ) public virtual override returns (bytes4) {
        return this.onERC1155Received.selector;
    }

    function onERC1155BatchReceived(
        address,
        address,
        uint256[] memory,
        uint256[] memory,
        bytes memory
    ) public virtual override returns (bytes4) {
        return this.onERC1155BatchReceived.selector;
    }
}

File 8 of 20 : Context.sol
// SPDX-License-Identifier: MIT

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 9 of 20 : ERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../interfaces/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 20 : Strings.sol
pragma solidity ^0.8.0;

library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

    function strConcat(
        string memory _a,
        string memory _b,
        string memory _c,
        string memory _d,
        string memory _e
    ) internal pure returns (string memory) {
        bytes memory _ba = bytes(_a);
        bytes memory _bb = bytes(_b);
        bytes memory _bc = bytes(_c);
        bytes memory _bd = bytes(_d);
        bytes memory _be = bytes(_e);
        string memory abcde = new string(
            _ba.length + _bb.length + _bc.length + _bd.length + _be.length
        );
        bytes memory babcde = bytes(abcde);
        uint256 k = 0;
        for (uint256 i = 0; i < _ba.length; i++) babcde[k++] = _ba[i];
        for (uint256 i = 0; i < _bb.length; i++) babcde[k++] = _bb[i];
        for (uint256 i = 0; i < _bc.length; i++) babcde[k++] = _bc[i];
        for (uint256 i = 0; i < _bd.length; i++) babcde[k++] = _bd[i];
        for (uint256 i = 0; i < _be.length; i++) babcde[k++] = _be[i];
        return string(babcde);
    }

    function strConcat(
        string memory _a,
        string memory _b,
        string memory _c,
        string memory _d
    ) internal pure returns (string memory) {
        return strConcat(_a, _b, _c, _d, "");
    }

    function strConcat(
        string memory _a,
        string memory _b,
        string memory _c
    ) internal pure returns (string memory) {
        return strConcat(_a, _b, _c, "", "");
    }

    function strConcat(string memory _a, string memory _b)
        internal
        pure
        returns (string memory)
    {
        return strConcat(_a, _b, "", "", "");
    }

    function uint2str(uint256 _i)
        internal
        pure
        returns (string memory _uintAsString)
    {
        if (_i == 0) {
            return "0";
        }
        uint256 j = _i;
        uint256 len;
        while (j != 0) {
            len++;
            j /= 10;
        }
        bytes memory bstr = new bytes(len);
        uint256 k = len - 1;
        while (_i != 0) {
            bstr[k--] = bytes1(uint8(48 + (_i % 10)));
            _i /= 10;
        }
        return string(bstr);
    }

    /**
     * @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 11 of 20 : IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

import "./ERC1155V2.sol";

/**
 * @dev ERC1155 token with storage based token URI management.
 */
abstract contract ERC1155URIStorage is ERC1155 {
    using Strings for uint256;

    // Optional base URI
    string private _baseURI = "";

    // Optional mapping for token URIs
    mapping(uint256 => string) private _tokenURIs;

    /**
     * @dev See {IERC1155Metadata-uri}.
     */
    function uri(uint256 tokenId)
        public
        view
        virtual
        override
        returns (string memory)
    {
        string memory tokenURI = _tokenURIs[tokenId];

        // If token URI is set, concatenate base URI and tokenURI (via abi.encodePacked).
        return
            bytes(tokenURI).length > 0
                ? string(abi.encodePacked(_baseURI, tokenURI))
                : super.uri(tokenId);
    }

    /**
     * @dev Sets `_tokenURI` as the tokenURI of `tokenId`.
     *
     */
    function _setTokenURI(uint256 tokenId, string memory _tokenURI)
        internal
        virtual
    {
        _tokenURIs[tokenId] = _tokenURI;
        emit URI(_tokenURI, tokenId);
    }

    /**
     * @dev Sets a batch of `_tokenURI` as the tokenURI of `tokenId`.
     *
     */
    function _setTokenURIBatch(
        uint256[] memory tokenIds,
        string[] memory tokenURIs
    ) internal virtual {
        require(
            tokenIds.length == tokenURIs.length,
            "ERC1155URIStorage: tokenIds and tokenURIs length mismatch"
        );
        for (uint256 i = 0; i < tokenIds.length; i++) {
            _tokenURIs[tokenIds[i]] = tokenURIs[i];
        }
        emit BatchURI(tokenURIs, tokenIds);
    }

    /**
     * @dev Sets `baseURI` as the `_baseURI` for all tokens
     */
    function _setBaseURI(string memory baseURI) internal virtual {
        _baseURI = baseURI;
    }
}

File 13 of 20 : Pausable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./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 14 of 20 : ERC1155V2.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "../interfaces/IERC1155MetadataURI.sol";
import "../interfaces/IERC1155Receiver.sol";
import "../interfaces/IERC1155.sol";
import "../libraries/ERC165.sol";
import "../libraries/Context.sol";
import "./Strings.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 SafeMath for uint256;
    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;

    /*
     *     bytes4(keccak256('balanceOf(address,uint256)')) == 0x00fdd58e
     *     bytes4(keccak256('balanceOfBatch(address[],uint256[])')) == 0x4e1273f4
     *     bytes4(keccak256('setApprovalForAll(address,bool)')) == 0xa22cb465
     *     bytes4(keccak256('isApprovedForAll(address,address)')) == 0xe985e9c5
     *     bytes4(keccak256('safeTransferFrom(address,address,uint256,uint256,bytes)')) == 0xf242432a
     *     bytes4(keccak256('safeBatchTransferFrom(address,address,uint256[],uint256[],bytes)')) == 0x2eb2c2d6
     *
     *     => 0x00fdd58e ^ 0x4e1273f4 ^ 0xa22cb465 ^
     *        0xe985e9c5 ^ 0xf242432a ^ 0x2eb2c2d6 == 0xd9b67a26
     */
    bytes4 private constant _INTERFACE_ID_ERC1155 = 0xd9b67a26;

    /*
     *     bytes4(keccak256('uri(uint256)')) == 0x0e89341c
     */
    bytes4 private constant _INTERFACE_ID_ERC1155_METADATA_URI = 0x0e89341c;

    /**
     * @dev See {_setURI}.
     */
    constructor(string memory uri_) public {
        _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
    {
        require(
            _msgSender() != operator,
            "ERC1155: setting approval status for self"
        );

        _operatorApprovals[_msgSender()][operator] = approved;
        emit ApprovalForAll(_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(to != address(0), "ERC1155: transfer to the zero address");
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: caller is not owner nor approved"
        );

        address operator = _msgSender();

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

        _balances[id][from] = _balances[id][from].sub(
            amount,
            "ERC1155: insufficient balance for transfer"
        );
        _balances[id][to] = _balances[id][to].add(amount);

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

        _doSafeTransferAcceptanceCheck(operator, 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(
            ids.length == amounts.length,
            "ERC1155: ids and amounts length mismatch"
        );
        require(to != address(0), "ERC1155: transfer to the zero address");
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: transfer caller is not owner nor approved"
        );

        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];

            _balances[id][from] = _balances[id][from].sub(
                amount,
                "ERC1155: insufficient balance for transfer"
            );
            _balances[id][to] = _balances[id][to].add(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 `account`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - If `account` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _mint(
        address account,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(account != address(0), "ERC1155: mint to the zero address");

        address operator = _msgSender();

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

        _balances[id][account] = _balances[id][account].add(amount);
        emit TransferSingle(operator, address(0), account, id, amount);

        _doSafeTransferAcceptanceCheck(
            operator,
            address(0),
            account,
            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].add(_balances[ids[i]][to]);
        }

        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 `account`
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens of token type `id`.
     */
    function _burn(
        address account,
        uint256 id,
        uint256 amount
    ) internal virtual {
        require(account != address(0), "ERC1155: burn from the zero address");

        address operator = _msgSender();

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

        _balances[id][account] = _balances[id][account].sub(
            amount,
            "ERC1155: burn amount exceeds balance"
        );

        emit TransferSingle(operator, account, 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 account,
        uint256[] memory ids,
        uint256[] memory amounts
    ) internal virtual {
        require(account != address(0), "ERC1155: burn from the zero address");
        require(
            ids.length == amounts.length,
            "ERC1155: ids and amounts length mismatch"
        );

        address operator = _msgSender();

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

        for (uint256 i = 0; i < ids.length; i++) {
            _balances[ids[i]][account] = _balances[ids[i]][account].sub(
                amounts[i],
                "ERC1155: burn amount exceeds balance"
            );
        }

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

    /**
     * @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(to).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(to).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 15 of 20 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

File 16 of 20 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    function _verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) private 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 17 of 20 : IERC1155MetadataURI.sol
// SPDX-License-Identifier: MIT

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 18 of 20 : IERC1155Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

File 19 of 20 : IERC1155.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./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 Emitted when batch of 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 BatchURI(string[] values, uint256[] indexed ids);

    /**
     * @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 20 of 20 : ERC1155Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../interfaces/IERC1155Receiver.sol";
import "./ERC165.sol";

/**
 * @dev _Available since v3.1._
 */
abstract contract ERC1155Receiver is ERC165, IERC1155Receiver {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override(ERC165, IERC165)
        returns (bool)
    {
        return
            interfaceId == type(IERC1155Receiver).interfaceId ||
            super.supportsInterface(interfaceId);
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_admin","type":"address"},{"internalType":"address","name":"_signer","type":"address"},{"internalType":"uint64","name":"_startAdminTokenId","type":"uint64"},{"internalType":"contract AniftyERC1155V1","name":"_aniftyERC1155V1","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string[]","name":"values","type":"string[]"},{"indexed":true,"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"BatchURI","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":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PAUSER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TRANSFER_SIGNER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_whitelistAddresses","type":"address[]"}],"name":"addWhitelistAddress","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":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_ids","type":"uint256[]"},{"internalType":"uint256[]","name":"_amounts","type":"uint256[]"}],"name":"burnBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"functionNotSupported","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":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155BatchReceived","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"functionId","type":"uint256"}],"name":"removeFunction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_whitelistAddresses","type":"address[]"}],"name":"removeWhitelistAddress","outputs":[],"stateMutability":"nonpayable","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":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"string[]","name":"tokenURIs","type":"string[]"}],"name":"setTokenUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startTokenId","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"components":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"signer","type":"address"},{"internalType":"string","name":"uri","type":"string"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"internalType":"struct AniftyERC1155.ExistingTokenURI[]","name":"existingTokenURIs","type":"tuple[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"transferV1","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"string","name":"metadataURI","type":"string"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"whitelistMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"string[]","name":"metadataURIs","type":"string[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"whitelistMintBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"nonpayable","type":"function"}]

60c06040819052600060a08190526200001b916004916200034a565b503480156200002957600080fd5b5060405162004350380380620043508339810160408190526200004c91620003f0565b604080518082019091526007815266697066733a2f2f60c81b6020820152620000758162000219565b506006805460ff191690556200008b3362000232565b60408051808201825260018152603160f81b60209182015281517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f918101919091527fda4aed19ceb0eb1cd0d2bd43e87ef2744d05bf59134543bcb5eb35d4e3f96907918101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6606082015246608082018190523060a08301529060c00160408051808303601f190181528282528051602091820120608052600880546001600160a01b0319166001600160a01b0387161790556001600160401b0386166007818155600b80546001600160401b03191690921790915583830190925290825266697066733a2f2f60c81b90820152620001a9906200028c565b620001b6600086620002a1565b620001e27f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a86620002a1565b6200020e7fc5510ea506c5d2869ccabe0ab3c4848a3c290b1676a0eb4f17f978cf1ecf5a6385620002a1565b5050505050620004b7565b80516200022e9060039060208401906200034a565b5050565b600680546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b80516200022e9060049060208401906200034a565b6000828152602081815260408083206001600160a01b03851684529091529020546200022e908390839060ff166200022e576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055620003063390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b828054620003589062000461565b90600052602060002090601f0160209004810192826200037c5760008555620003c7565b82601f106200039757805160ff1916838001178555620003c7565b82800160010185558215620003c7579182015b82811115620003c7578251825591602001919060010190620003aa565b50620003d5929150620003d9565b5090565b5b80821115620003d55760008155600101620003da565b6000806000806080858703121562000406578384fd5b845162000413816200049e565b602086015190945062000426816200049e565b60408601519093506001600160401b038116811462000443578283fd5b606086015190925062000456816200049e565b939692955090935050565b600181811c908216806200047657607f821691505b602082108114156200049857634e487b7160e01b600052602260045260246000fd5b50919050565b6001600160a01b0381168114620004b457600080fd5b50565b608051613e76620004da600039600081816103500152611b6c0152613e766000f3fe608060405234801561001057600080fd5b50600436106102255760003560e01c80638456cb5911610130578063b390c0ab116100b8578063e6798baa1161007c578063e6798baa1461053b578063e985e9c514610566578063f23a6e61146105a2578063f242432a146105c1578063f2fde38b146105d457600080fd5b8063b390c0ab146104a3578063baa5b6c5146104b6578063bc197c81146104c9578063d547741f14610501578063e63ab1e91461051457600080fd5b80639bf5bf96116100ff5780639bf5bf961461044f578063a217fddf14610462578063a22cb4651461046a578063a6e6f3611461047d578063a82473201461049057600080fd5b80638456cb59146103e85780638da5cb5b146103f057806391d14854146104195780639b19251a1461042c57600080fd5b80632f97c58a116101b35780634e1273f4116101825780634e1273f41461038f5780635c975abb146103af578063715018a6146103ba5780637fad2d12146103c257806383ca4b6f146103d557600080fd5b80632f97c58a1461032b5780633644e5151461034e57806336568abe146103745780633f4ba83a1461038757600080fd5b806314e5d671116101fa57806314e5d671146102a8578063248a9ca3146102cf5780632b1dd8e5146102f25780632eb2c2d6146103055780632f2ff15d1461031857600080fd5b80626f9a791461022a578062fdd58e1461023f57806301ffc9a7146102655780630e89341c14610288575b600080fd5b61023d6102383660046133a1565b6105e7565b005b61025261024d3660046131ce565b610b2d565b6040519081526020015b60405180910390f35b6102786102733660046135a2565b610bc1565b604051901515815260200161025c565b61029b610296366004613568565b610bd2565b60405161025c91906139cc565b6102527fc5510ea506c5d2869ccabe0ab3c4848a3c290b1676a0eb4f17f978cf1ecf5a6381565b6102526102dd366004613568565b60009081526020819052604090206001015490565b61023d6103003660046131f7565b610cb2565b61023d61031336600461308d565b610d39565b61023d610326366004613580565b610fb6565b610278610339366004613568565b600a6020526000908152604090205460ff1681565b7f0000000000000000000000000000000000000000000000000000000000000000610252565b61023d610382366004613580565b610fdc565b61023d61105a565b6103a261039d366004613231565b611090565b60405161025c919061397b565b60065460ff16610278565b61023d6111f1565b61023d6103d0366004613291565b61125d565b61023d6103e336600461336d565b6112fa565b61023d611305565b60065461010090046001600160a01b03166040516001600160a01b03909116815260200161025c565b610278610427366004613580565b6113b3565b61027861043a366004613041565b60096020526000908152604090205460ff1681565b61023d61045d3660046131f7565b6113dc565b610252600081565b61023d610478366004613194565b61145e565b6103a261048b3660046132e7565b611535565b61023d61049e366004613568565b611692565b61023d6104b1366004613618565b611700565b6102526104c43660046135da565b61170b565b6104e86104d736600461308d565b63bc197c8160e01b95945050505050565b6040516001600160e01b0319909116815260200161025c565b61023d61050f366004613580565b6117a6565b6102527f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b600b5461054e906001600160401b031681565b6040516001600160401b03909116815260200161025c565b61027861057436600461305b565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205460ff1690565b6104e86105b0366004613132565b63f23a6e6160e01b95945050505050565b61023d6105cf366004613132565b6117cc565b61023d6105e2366004613041565b61197e565b82518551146106115760405162461bcd60e51b815260040161060890613ab2565b60405180910390fd5b60008551116106325760405162461bcd60e51b815260040161060890613ab2565b60005b8551811015610a175761066e86828151811061066157634e487b7160e01b600052603260045260246000fd5b6020026020010151611a4c565b60405160200161067e91906136f1565b604051602081830303815290604052805190602001206106c48783815181106106b757634e487b7160e01b600052603260045260246000fd5b6020026020010151610bd2565b6040516020016106d491906136f1565b60405160208183030381529060405280519060200120146106f457610a05565b6107497fc5510ea506c5d2869ccabe0ab3c4848a3c290b1676a0eb4f17f978cf1ecf5a6385838151811061073857634e487b7160e01b600052603260045260246000fd5b6020026020010151602001516113b3565b6107955760405162461bcd60e51b815260206004820152601b60248201527f416e69667479455243313135353a20496e76616c696420726f6c6500000000006044820152606401610608565b8581815181106107b557634e487b7160e01b600052603260045260246000fd5b60200260200101518482815181106107dd57634e487b7160e01b600052603260045260246000fd5b602002602001015160000151146108365760405162461bcd60e51b815260206004820152601e60248201527f416e69667479455243313135353a20496e76616c696420746f6b656e496400006044820152606401610608565b600b5484516001600160401b039091169085908390811061086757634e487b7160e01b600052603260045260246000fd5b60200260200101516000015111156108c15760405162461bcd60e51b815260206004820152601e60248201527f416e69667479455243313135353a20496e76616c696420746f6b656e496400006044820152606401610608565b6109a96108f48583815181106108e757634e487b7160e01b600052603260045260246000fd5b6020026020010151611ae0565b85838151811061091457634e487b7160e01b600052603260045260246000fd5b60200260200101516020015186848151811061094057634e487b7160e01b600052603260045260246000fd5b60200260200101516060015187858151811061096c57634e487b7160e01b600052603260045260246000fd5b60200260200101516080015188868151811061099857634e487b7160e01b600052603260045260246000fd5b602002602001015160a00151611b68565b610a058682815181106109cc57634e487b7160e01b600052603260045260246000fd5b60200260200101518583815181106109f457634e487b7160e01b600052603260045260246000fd5b602002602001015160400151611da5565b80610a0f81613cf4565b915050610635565b50600854604051631759616b60e11b81526001600160a01b0390911690632eb2c2d690610a4e90339030908a908a9060040161387d565b600060405180830381600087803b158015610a6857600080fd5b505af1158015610a7c573d6000803e3d6000fd5b50506008546040516383ca4b6f60e01b81526001600160a01b0390911692506383ca4b6f9150610ab2908890889060040161398e565b600060405180830381600087803b158015610acc57600080fd5b505af1158015610ae0573d6000803e3d6000fd5b50505050610b2633868685858080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611e0192505050565b5050505050565b60006001600160a01b038316610b995760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b6064820152608401610608565b5060009081526001602090815260408083206001600160a01b03949094168352929052205490565b6000610bcc82611fd7565b92915050565b600081815260056020526040812080546060929190610bf090613c68565b80601f0160208091040260200160405190810160405280929190818152602001828054610c1c90613c68565b8015610c695780601f10610c3e57610100808354040283529160200191610c69565b820191906000526020600020905b815481529060010190602001808311610c4c57829003601f168201915b505050505090506000815111610c8757610c8283611a4c565b610cab565b600481604051602001610c9b92919061370d565b6040516020818303038152906040525b9392505050565b6000610cbe8133611ffc565b60005b8251811015610d3457600160096000858481518110610cf057634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff191691151591909117905580610d2c81613cf4565b915050610cc1565b505050565b8151835114610d5a5760405162461bcd60e51b815260040161060890613b3e565b6001600160a01b038416610d805760405162461bcd60e51b815260040161060890613a6d565b6001600160a01b038516331480610d9c5750610d9c8533610574565b610e035760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610608565b33610e12818787878787612060565b60005b8451811015610f48576000858281518110610e4057634e487b7160e01b600052603260045260246000fd5b602002602001015190506000858381518110610e6c57634e487b7160e01b600052603260045260246000fd5b60200260200101519050610ed9816040518060600160405280602a8152602001613e17602a91396001600086815260200190815260200160002060008d6001600160a01b03166001600160a01b03168152602001908152602001600020546120c89092919063ffffffff16565b60008381526001602090815260408083206001600160a01b038e811685529252808320939093558a1681522054610f1090826120f4565b60009283526001602090815260408085206001600160a01b038c1686529091529092209190915550610f4181613cf4565b9050610e15565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051610f9892919061398e565b60405180910390a4610fae818787878787612100565b505050505050565b600082815260208190526040902060010154610fd28133611ffc565b610d348383612274565b6001600160a01b038116331461104c5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610608565b61105682826122f8565b5050565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a6110858133611ffc565b61108d61235d565b50565b606081518351146110f55760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610608565b600083516001600160401b0381111561111e57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611147578160200160208202803683370190505b50905060005b84518110156111e9576111ae85828151811061117957634e487b7160e01b600052603260045260246000fd5b60200260200101518583815181106111a157634e487b7160e01b600052603260045260246000fd5b6020026020010151610b2d565b8282815181106111ce57634e487b7160e01b600052603260045260246000fd5b60209081029190910101526111e281613cf4565b905061114d565b509392505050565b6006546001600160a01b036101009091041633146112515760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610608565b61125b60006123f0565b565b60006112698133611ffc565b6001600052600a6020527fbbc70db1b6c7afd11e79c0fb0051300458f1a3acb8ee9789d9b6b26c61ad9bc75460ff16156112f05760405162461bcd60e51b815260206004820152602260248201527f416e69667479455243313135353a204e4f20534554205552492046554e43544960448201526127a760f11b6064820152608401610608565b610d34838361244a565b61105633838361259b565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a6113308133611ffc565b60008052600a6020527f13da86008ba1c6922daee3e07db95305ef49ebced9f5467a0b8613fcc6b343e35460ff16156113ab5760405162461bcd60e51b815260206004820181905260248201527f416e69667479455243313135353a204e4f2050415553452046554e4354494f4e6044820152606401610608565b61108d612795565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b60006113e88133611ffc565b60005b8251811015610d345760006009600085848151811061141a57634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff19169115159190911790558061145681613cf4565b9150506113eb565b336001600160a01b03831614156114c95760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610608565b3360008181526002602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b3360009081526009602052604090205460609060ff16151560011461156c5760405162461bcd60e51b815260040161060890613a27565b835185511461158d5760405162461bcd60e51b815260040161060890613ab2565b600085516001600160401b038111156115b657634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156115df578160200160208202803683370190505b50905060005b865181101561163c576115fc600780546001019055565b60075482828151811061161f57634e487b7160e01b600052603260045260246000fd5b60209081029190910101528061163481613cf4565b9150506115e5565b5061167f33828887878080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611e0192505050565b611689818661244a565b95945050505050565b600061169e8133611ffc565b60065460ff16156116e45760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610608565b506000908152600a60205260409020805460ff19166001179055565b611056338383612810565b3360009081526009602052604081205460ff16151560011461173f5760405162461bcd60e51b815260040161060890613a27565b61174d600780546001019055565b600061175860075490565b905061179c33828887878080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061290d92505050565b6116898186611da5565b6000828152602081905260409020600101546117c28133611ffc565b610d3483836122f8565b6001600160a01b0384166117f25760405162461bcd60e51b815260040161060890613a6d565b6001600160a01b03851633148061180e575061180e8533610574565b61186c5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b6064820152608401610608565b3361188b81878761187c886129e3565b611885886129e3565b87612060565b6118d2836040518060600160405280602a8152602001613e17602a913960008781526001602090815260408083206001600160a01b038d16845290915290205491906120c8565b60008581526001602090815260408083206001600160a01b038b8116855292528083209390935587168152205461190990846120f4565b60008581526001602090815260408083206001600160a01b038a811680865291845293829020949094558051888152918201879052898316928516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610fae818787878787612a3c565b6006546001600160a01b036101009091041633146119de5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610608565b6001600160a01b038116611a435760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610608565b61108d816123f0565b606060038054611a5b90613c68565b80601f0160208091040260200160405190810160405280929190818152602001828054611a8790613c68565b8015611ad45780601f10611aa957610100808354040283529160200191611ad4565b820191906000526020600020905b815481529060010190602001808311611ab757829003601f168201915b50505050509050919050565b60007f5f9d3ceadcd5e9e1bfbb494a85c65503b9fd43ee76adbf589ea49172bed4e23f82600001518360200151846040015180519060200120604051602001611b4b949392919093845260208401929092526001600160a01b03166040830152606082015260800190565b604051602081830303815290604052805190602001209050919050565b60007f000000000000000000000000000000000000000000000000000000000000000060405161190160f01b6020820152602281019190915260428101879052606201604051602081830303815290604052805190602001209050611bcd853b151590565b15611ce757604080516020810185905280820184905260f886901b6001600160f81b0319166060820152815160418183030181526061820192839052630b135d3f60e11b9092526001600160a01b03871691631626ba7e91611c339185916065016139b3565b60206040518083038186803b158015611c4b57600080fd5b505afa158015611c5f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c8391906135be565b6001600160e01b031916631626ba7e60e01b14611ce25760405162461bcd60e51b815260206004820152601b60248201527f416e69667479455243313135353a20554e415554484f52495a454400000000006044820152606401610608565b610fae565b60408051600081526020810180835283905260ff86169181019190915260608101849052608081018390526001600160a01b0386169060019060a0016020604051602081039080840390855afa158015611d45573d6000803e3d6000fd5b505050602060405103516001600160a01b031614610fae5760405162461bcd60e51b815260206004820152601b60248201527f416e69667479455243313135353a20554e415554484f52495a454400000000006044820152606401610608565b60008281526005602090815260409091208251611dc492840190612d5c565b50817f6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b82604051611df591906139cc565b60405180910390a25050565b6001600160a01b038416611e275760405162461bcd60e51b815260040161060890613b86565b8151835114611e485760405162461bcd60e51b815260040161060890613b3e565b33611e5881600087878787612060565b60005b8451811015611f6f57611efb60016000878481518110611e8b57634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b0316815260200190815260200160002054858381518110611ee557634e487b7160e01b600052603260045260246000fd5b60200260200101516120f490919063ffffffff16565b60016000878481518110611f1f57634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b03168152602001908152602001600020819055508080611f6790613cf4565b915050611e5b565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611fc092919061398e565b60405180910390a4610b2681600087878787612100565b60006001600160e01b03198216630271189760e51b1480610bcc5750610bcc82612b06565b61200682826113b3565b6110565761201e816001600160a01b03166014612b46565b612029836020612b46565b60405160200161203a9291906137aa565b60408051601f198184030181529082905262461bcd60e51b8252610608916004016139cc565b60065460ff1615610fae5760405162461bcd60e51b815260206004820152602c60248201527f455243313135355061757361626c653a20746f6b656e207472616e736665722060448201526b1dda1a5b19481c185d5cd95960a21b6064820152608401610608565b600081848411156120ec5760405162461bcd60e51b815260040161060891906139cc565b505050900390565b6000610cab8284613bea565b6001600160a01b0384163b15610fae5760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190612144908990899088908890889060040161381f565b602060405180830381600087803b15801561215e57600080fd5b505af192505050801561218e575060408051601f3d908101601f1916820190925261218b918101906135be565b60015b61223b5761219a613d3b565b806308c379a014156121d457506121af613d53565b806121ba57506121d6565b8060405162461bcd60e51b815260040161060891906139cc565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610608565b6001600160e01b0319811663bc197c8160e01b1461226b5760405162461bcd60e51b8152600401610608906139df565b50505050505050565b61227e82826113b3565b611056576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556122b43390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b61230282826113b3565b15611056576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60065460ff166123a65760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610608565b6006805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600680546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b80518251146124c15760405162461bcd60e51b815260206004820152603960248201527f4552433131353555524953746f726167653a20746f6b656e49647320616e642060448201527f746f6b656e55524973206c656e677468206d69736d61746368000000000000006064820152608401610608565b60005b8251811015612555578181815181106124ed57634e487b7160e01b600052603260045260246000fd5b60200260200101516005600085848151811061251957634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000209080519060200190612542929190612d5c565b508061254d81613cf4565b9150506124c4565b508160405161256491906136bb565b60405180910390207fb91efc7c549b2e0b79852c63bc16245eb0782b57cab3c7f658faaefecce71b3282604051611df5919061391a565b6001600160a01b0383166125c15760405162461bcd60e51b815260040161060890613afb565b80518251146125e25760405162461bcd60e51b815260040161060890613b3e565b600033905061260581856000868660405180602001604052806000815250612060565b60005b8351811015612736576126c283828151811061263457634e487b7160e01b600052603260045260246000fd5b6020026020010151604051806060016040528060248152602001613df3602491396001600088868151811061267957634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000206000896001600160a01b03166001600160a01b03168152602001908152602001600020546120c89092919063ffffffff16565b600160008684815181106126e657634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000206000876001600160a01b03166001600160a01b0316815260200190815260200160002081905550808061272e90613cf4565b915050612608565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb868660405161278792919061398e565b60405180910390a450505050565b60065460ff16156127db5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610608565b6006805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586123d33390565b6001600160a01b0383166128365760405162461bcd60e51b815260040161060890613afb565b3361286581856000612847876129e3565b612850876129e3565b60405180602001604052806000815250612060565b6128ac82604051806060016040528060248152602001613df36024913960008681526001602090815260408083206001600160a01b038b16845290915290205491906120c8565b60008481526001602090815260408083206001600160a01b0389811680865291845282852095909555815188815292830187905292938516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f629101612787565b6001600160a01b0384166129335760405162461bcd60e51b815260040161060890613b86565b336129448160008761187c886129e3565b60008481526001602090815260408083206001600160a01b038916845290915290205461297190846120f4565b60008581526001602090815260408083206001600160a01b038a8116808652918452828520959095558151898152928301889052938516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610b2681600087878787612a3c565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110612a2b57634e487b7160e01b600052603260045260246000fd5b602090810291909101015292915050565b6001600160a01b0384163b15610fae5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190612a8090899089908890889088906004016138d5565b602060405180830381600087803b158015612a9a57600080fd5b505af1925050508015612aca575060408051601f3d908101601f19168201909252612ac7918101906135be565b60015b612ad65761219a613d3b565b6001600160e01b0319811663f23a6e6160e01b1461226b5760405162461bcd60e51b8152600401610608906139df565b60006001600160e01b03198216636cdb3d1360e11b1480612b3757506001600160e01b031982166303a24d0760e21b145b80610bcc5750610bcc82612d27565b60606000612b55836002613c02565b612b60906002613bea565b6001600160401b03811115612b8557634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612baf576020820181803683370190505b509050600360fc1b81600081518110612bd857634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110612c1557634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506000612c39846002613c02565b612c44906001613bea565b90505b6001811115612cd8576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110612c8657634e487b7160e01b600052603260045260246000fd5b1a60f81b828281518110612caa57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c93612cd181613c51565b9050612c47565b508315610cab5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610608565b60006001600160e01b03198216637965db0b60e01b1480610bcc57506301ffc9a760e01b6001600160e01b0319831614610bcc565b828054612d6890613c68565b90600052602060002090601f016020900481019282612d8a5760008555612dd0565b82601f10612da357805160ff1916838001178555612dd0565b82800160010185558215612dd0579182015b82811115612dd0578251825591602001919060010190612db5565b50612ddc929150612de0565b5090565b5b80821115612ddc5760008155600101612de1565b80356001600160a01b0381168114612e0c57600080fd5b919050565b600082601f830112612e21578081fd5b81356020612e2e82613bc7565b604051612e3b8282613cc8565b8381528281019150858301600585901b87018401881015612e5a578586fd5b855b85811015612e7f57612e6d82612df5565b84529284019290840190600101612e5c565b5090979650505050505050565b600082601f830112612e9c578081fd5b81356020612ea982613bc7565b604051612eb68282613cc8565b8381528281019150858301600585901b87018401881015612ed5578586fd5b855b85811015612e7f5781356001600160401b03811115612ef4578788fd5b612f028a87838c0101612fc2565b8552509284019290840190600101612ed7565b600082601f830112612f25578081fd5b81356020612f3282613bc7565b604051612f3f8282613cc8565b8381528281019150858301600585901b87018401881015612f5e578586fd5b855b85811015612e7f57813584529284019290840190600101612f60565b60008083601f840112612f8d578182fd5b5081356001600160401b03811115612fa3578182fd5b602083019150836020828501011115612fbb57600080fd5b9250929050565b600082601f830112612fd2578081fd5b81356001600160401b03811115612feb57612feb613d25565b604051613002601f8301601f191660200182613cc8565b818152846020838601011115613016578283fd5b816020850160208301379081016020019190915292915050565b803560ff81168114612e0c57600080fd5b600060208284031215613052578081fd5b610cab82612df5565b6000806040838503121561306d578081fd5b61307683612df5565b915061308460208401612df5565b90509250929050565b600080600080600060a086880312156130a4578081fd5b6130ad86612df5565b94506130bb60208701612df5565b935060408601356001600160401b03808211156130d6578283fd5b6130e289838a01612f15565b945060608801359150808211156130f7578283fd5b61310389838a01612f15565b93506080880135915080821115613118578283fd5b5061312588828901612fc2565b9150509295509295909350565b600080600080600060a08688031215613149578283fd5b61315286612df5565b945061316060208701612df5565b9350604086013592506060860135915060808601356001600160401b03811115613188578182fd5b61312588828901612fc2565b600080604083850312156131a6578182fd5b6131af83612df5565b9150602083013580151581146131c3578182fd5b809150509250929050565b600080604083850312156131e0578182fd5b6131e983612df5565b946020939093013593505050565b600060208284031215613208578081fd5b81356001600160401b0381111561321d578182fd5b61322984828501612e11565b949350505050565b60008060408385031215613243578182fd5b82356001600160401b0380821115613259578384fd5b61326586838701612e11565b9350602085013591508082111561327a578283fd5b5061328785828601612f15565b9150509250929050565b600080604083850312156132a3578182fd5b82356001600160401b03808211156132b9578384fd5b6132c586838701612f15565b935060208501359150808211156132da578283fd5b5061328785828601612e8c565b600080600080606085870312156132fc578182fd5b84356001600160401b0380821115613312578384fd5b61331e88838901612f15565b95506020870135915080821115613333578384fd5b61333f88838901612e8c565b94506040870135915080821115613354578384fd5b5061336187828801612f7c565b95989497509550505050565b6000806040838503121561337f578182fd5b82356001600160401b0380821115613395578384fd5b61326586838701612f15565b6000806000806000608086880312156133b8578283fd5b6001600160401b0380873511156133cd578384fd5b6133da8888358901612f15565b955080602088013511156133ec578384fd5b6133fc8860208901358901612f15565b9450806040880135111561340e578384fd5b87601f604089013589010112613422578384fd5b6134326040880135880135613bc7565b60405161343f8282613cc8565b604089013589018035808352602080840194508083019260059290921b909101018b101561346b578687fd5b865b60408b01358b0135811015613530578482351115613489578788fd5b60408b01358b0182350160c0818e03601f190112156134a6578889fd5b6040516134b281613ca3565b602082013581526134c560408301612df5565b602082015286606083013511156134da57898afd5b6134ed8e60206060850135850101612fc2565b60408201526134fe60808301613030565b606082015260a082810135608083015260c090920135918101919091528452602093840193919091019060010161346d565b505080955050508060608801351115613547578182fd5b506135588760608801358801612f7c565b9598949750929550919392915050565b600060208284031215613579578081fd5b5035919050565b60008060408385031215613592578182fd5b8235915061308460208401612df5565b6000602082840312156135b3578081fd5b8135610cab81613ddc565b6000602082840312156135cf578081fd5b8151610cab81613ddc565b600080600080606085870312156135ef578182fd5b8435935060208501356001600160401b038082111561360c578384fd5b61333f88838901612fc2565b6000806040838503121561362a578182fd5b50508035926020909101359150565b6000815180845260208085019450808401835b838110156136685781518752958201959082019060010161364c565b509495945050505050565b6000815180845261368b816020860160208601613c21565b601f01601f19169290920160200192915050565b600081516136b1818560208601613c21565b9290920192915050565b815160009082906020808601845b838110156136e5578151855293820193908201906001016136c9565b50929695505050505050565b60008251613703818460208701613c21565b9190910192915050565b600080845482600182811c91508083168061372957607f831692505b602080841082141561374957634e487b7160e01b87526022600452602487fd5b81801561375d576001811461376e5761379a565b60ff1986168952848901965061379a565b60008b815260209020885b868110156137925781548b820152908501908301613779565b505084890196505b505050505050611689818561369f565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516137e2816017850160208801613c21565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351613813816028840160208801613c21565b01602801949350505050565b6001600160a01b0386811682528516602082015260a06040820181905260009061384b90830186613639565b828103606084015261385d8186613639565b905082810360808401526138718185613673565b98975050505050505050565b6001600160a01b0385811682528416602082015260a0604082018190526000906138a990830185613639565b82810360608401526138bb8185613639565b838103608090940193909352508152602001949350505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009061390f90830184613673565b979650505050505050565b6000602080830181845280855180835260408601915060408160051b8701019250838701855b8281101561396e57603f1988860301845261395c858351613673565b94509285019290850190600101613940565b5092979650505050505050565b602081526000610cab6020830184613639565b6040815260006139a16040830185613639565b82810360208401526116898185613639565b8281526040602082015260006132296040830184613673565b602081526000610cab6020830184613673565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b60208082526026908201527f43616c6c6572206973206e6f742066726f6d20612077686974656c697374206160408201526564647265737360d01b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526029908201527f416e69667479455243313135353a20496e636f727265637420706172616d65746040820152680cae440d8cadccee8d60bb1b606082015260800190565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60208082526021908201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736040820152607360f81b606082015260800190565b60006001600160401b03821115613be057613be0613d25565b5060051b60200190565b60008219821115613bfd57613bfd613d0f565b500190565b6000816000190483118215151615613c1c57613c1c613d0f565b500290565b60005b83811015613c3c578181015183820152602001613c24565b83811115613c4b576000848401525b50505050565b600081613c6057613c60613d0f565b506000190190565b600181811c90821680613c7c57607f821691505b60208210811415613c9d57634e487b7160e01b600052602260045260246000fd5b50919050565b60c081018181106001600160401b0382111715613cc257613cc2613d25565b60405250565b601f8201601f191681016001600160401b0381118282101715613ced57613ced613d25565b6040525050565b6000600019821415613d0857613d08613d0f565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d1115613d5057600481823e5160e01c5b90565b600060443d1015613d615790565b6040516003193d81016004833e81513d6001600160401b038160248401118184111715613d9057505050505090565b8285019150815181811115613da85750505050505090565b843d8701016020828501011115613dc25750505050505090565b613dd160208286010187613cc8565b509095945050505050565b6001600160e01b03198116811461108d57600080fdfe455243313135353a206275726e20616d6f756e7420657863656564732062616c616e6365455243313135353a20696e73756666696369656e742062616c616e636520666f72207472616e73666572a2646970667358221220193b9d689a5adfb9297f0c10cc33ca834360bb8ad6cb1d729d95969c666b58c464736f6c63430008040033000000000000000000000000e68642af41461528bab9668579a6c16015d8af6600000000000000000000000020eb5a0a20b1fa8be615a440ae36ff0fed46b02000000000000000000000000000000000000000000000000000000000000007cf00000000000000000000000021545e9f21844758f6d4755230d9d7c62e08b449

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102255760003560e01c80638456cb5911610130578063b390c0ab116100b8578063e6798baa1161007c578063e6798baa1461053b578063e985e9c514610566578063f23a6e61146105a2578063f242432a146105c1578063f2fde38b146105d457600080fd5b8063b390c0ab146104a3578063baa5b6c5146104b6578063bc197c81146104c9578063d547741f14610501578063e63ab1e91461051457600080fd5b80639bf5bf96116100ff5780639bf5bf961461044f578063a217fddf14610462578063a22cb4651461046a578063a6e6f3611461047d578063a82473201461049057600080fd5b80638456cb59146103e85780638da5cb5b146103f057806391d14854146104195780639b19251a1461042c57600080fd5b80632f97c58a116101b35780634e1273f4116101825780634e1273f41461038f5780635c975abb146103af578063715018a6146103ba5780637fad2d12146103c257806383ca4b6f146103d557600080fd5b80632f97c58a1461032b5780633644e5151461034e57806336568abe146103745780633f4ba83a1461038757600080fd5b806314e5d671116101fa57806314e5d671146102a8578063248a9ca3146102cf5780632b1dd8e5146102f25780632eb2c2d6146103055780632f2ff15d1461031857600080fd5b80626f9a791461022a578062fdd58e1461023f57806301ffc9a7146102655780630e89341c14610288575b600080fd5b61023d6102383660046133a1565b6105e7565b005b61025261024d3660046131ce565b610b2d565b6040519081526020015b60405180910390f35b6102786102733660046135a2565b610bc1565b604051901515815260200161025c565b61029b610296366004613568565b610bd2565b60405161025c91906139cc565b6102527fc5510ea506c5d2869ccabe0ab3c4848a3c290b1676a0eb4f17f978cf1ecf5a6381565b6102526102dd366004613568565b60009081526020819052604090206001015490565b61023d6103003660046131f7565b610cb2565b61023d61031336600461308d565b610d39565b61023d610326366004613580565b610fb6565b610278610339366004613568565b600a6020526000908152604090205460ff1681565b7fb2c6baa99fee7fa3c3b4918393f1740bfd4644be7d80cd8f5651f23ba7bb567c610252565b61023d610382366004613580565b610fdc565b61023d61105a565b6103a261039d366004613231565b611090565b60405161025c919061397b565b60065460ff16610278565b61023d6111f1565b61023d6103d0366004613291565b61125d565b61023d6103e336600461336d565b6112fa565b61023d611305565b60065461010090046001600160a01b03166040516001600160a01b03909116815260200161025c565b610278610427366004613580565b6113b3565b61027861043a366004613041565b60096020526000908152604090205460ff1681565b61023d61045d3660046131f7565b6113dc565b610252600081565b61023d610478366004613194565b61145e565b6103a261048b3660046132e7565b611535565b61023d61049e366004613568565b611692565b61023d6104b1366004613618565b611700565b6102526104c43660046135da565b61170b565b6104e86104d736600461308d565b63bc197c8160e01b95945050505050565b6040516001600160e01b0319909116815260200161025c565b61023d61050f366004613580565b6117a6565b6102527f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b600b5461054e906001600160401b031681565b6040516001600160401b03909116815260200161025c565b61027861057436600461305b565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205460ff1690565b6104e86105b0366004613132565b63f23a6e6160e01b95945050505050565b61023d6105cf366004613132565b6117cc565b61023d6105e2366004613041565b61197e565b82518551146106115760405162461bcd60e51b815260040161060890613ab2565b60405180910390fd5b60008551116106325760405162461bcd60e51b815260040161060890613ab2565b60005b8551811015610a175761066e86828151811061066157634e487b7160e01b600052603260045260246000fd5b6020026020010151611a4c565b60405160200161067e91906136f1565b604051602081830303815290604052805190602001206106c48783815181106106b757634e487b7160e01b600052603260045260246000fd5b6020026020010151610bd2565b6040516020016106d491906136f1565b60405160208183030381529060405280519060200120146106f457610a05565b6107497fc5510ea506c5d2869ccabe0ab3c4848a3c290b1676a0eb4f17f978cf1ecf5a6385838151811061073857634e487b7160e01b600052603260045260246000fd5b6020026020010151602001516113b3565b6107955760405162461bcd60e51b815260206004820152601b60248201527f416e69667479455243313135353a20496e76616c696420726f6c6500000000006044820152606401610608565b8581815181106107b557634e487b7160e01b600052603260045260246000fd5b60200260200101518482815181106107dd57634e487b7160e01b600052603260045260246000fd5b602002602001015160000151146108365760405162461bcd60e51b815260206004820152601e60248201527f416e69667479455243313135353a20496e76616c696420746f6b656e496400006044820152606401610608565b600b5484516001600160401b039091169085908390811061086757634e487b7160e01b600052603260045260246000fd5b60200260200101516000015111156108c15760405162461bcd60e51b815260206004820152601e60248201527f416e69667479455243313135353a20496e76616c696420746f6b656e496400006044820152606401610608565b6109a96108f48583815181106108e757634e487b7160e01b600052603260045260246000fd5b6020026020010151611ae0565b85838151811061091457634e487b7160e01b600052603260045260246000fd5b60200260200101516020015186848151811061094057634e487b7160e01b600052603260045260246000fd5b60200260200101516060015187858151811061096c57634e487b7160e01b600052603260045260246000fd5b60200260200101516080015188868151811061099857634e487b7160e01b600052603260045260246000fd5b602002602001015160a00151611b68565b610a058682815181106109cc57634e487b7160e01b600052603260045260246000fd5b60200260200101518583815181106109f457634e487b7160e01b600052603260045260246000fd5b602002602001015160400151611da5565b80610a0f81613cf4565b915050610635565b50600854604051631759616b60e11b81526001600160a01b0390911690632eb2c2d690610a4e90339030908a908a9060040161387d565b600060405180830381600087803b158015610a6857600080fd5b505af1158015610a7c573d6000803e3d6000fd5b50506008546040516383ca4b6f60e01b81526001600160a01b0390911692506383ca4b6f9150610ab2908890889060040161398e565b600060405180830381600087803b158015610acc57600080fd5b505af1158015610ae0573d6000803e3d6000fd5b50505050610b2633868685858080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611e0192505050565b5050505050565b60006001600160a01b038316610b995760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b6064820152608401610608565b5060009081526001602090815260408083206001600160a01b03949094168352929052205490565b6000610bcc82611fd7565b92915050565b600081815260056020526040812080546060929190610bf090613c68565b80601f0160208091040260200160405190810160405280929190818152602001828054610c1c90613c68565b8015610c695780601f10610c3e57610100808354040283529160200191610c69565b820191906000526020600020905b815481529060010190602001808311610c4c57829003601f168201915b505050505090506000815111610c8757610c8283611a4c565b610cab565b600481604051602001610c9b92919061370d565b6040516020818303038152906040525b9392505050565b6000610cbe8133611ffc565b60005b8251811015610d3457600160096000858481518110610cf057634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff191691151591909117905580610d2c81613cf4565b915050610cc1565b505050565b8151835114610d5a5760405162461bcd60e51b815260040161060890613b3e565b6001600160a01b038416610d805760405162461bcd60e51b815260040161060890613a6d565b6001600160a01b038516331480610d9c5750610d9c8533610574565b610e035760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610608565b33610e12818787878787612060565b60005b8451811015610f48576000858281518110610e4057634e487b7160e01b600052603260045260246000fd5b602002602001015190506000858381518110610e6c57634e487b7160e01b600052603260045260246000fd5b60200260200101519050610ed9816040518060600160405280602a8152602001613e17602a91396001600086815260200190815260200160002060008d6001600160a01b03166001600160a01b03168152602001908152602001600020546120c89092919063ffffffff16565b60008381526001602090815260408083206001600160a01b038e811685529252808320939093558a1681522054610f1090826120f4565b60009283526001602090815260408085206001600160a01b038c1686529091529092209190915550610f4181613cf4565b9050610e15565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051610f9892919061398e565b60405180910390a4610fae818787878787612100565b505050505050565b600082815260208190526040902060010154610fd28133611ffc565b610d348383612274565b6001600160a01b038116331461104c5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610608565b61105682826122f8565b5050565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a6110858133611ffc565b61108d61235d565b50565b606081518351146110f55760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610608565b600083516001600160401b0381111561111e57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611147578160200160208202803683370190505b50905060005b84518110156111e9576111ae85828151811061117957634e487b7160e01b600052603260045260246000fd5b60200260200101518583815181106111a157634e487b7160e01b600052603260045260246000fd5b6020026020010151610b2d565b8282815181106111ce57634e487b7160e01b600052603260045260246000fd5b60209081029190910101526111e281613cf4565b905061114d565b509392505050565b6006546001600160a01b036101009091041633146112515760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610608565b61125b60006123f0565b565b60006112698133611ffc565b6001600052600a6020527fbbc70db1b6c7afd11e79c0fb0051300458f1a3acb8ee9789d9b6b26c61ad9bc75460ff16156112f05760405162461bcd60e51b815260206004820152602260248201527f416e69667479455243313135353a204e4f20534554205552492046554e43544960448201526127a760f11b6064820152608401610608565b610d34838361244a565b61105633838361259b565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a6113308133611ffc565b60008052600a6020527f13da86008ba1c6922daee3e07db95305ef49ebced9f5467a0b8613fcc6b343e35460ff16156113ab5760405162461bcd60e51b815260206004820181905260248201527f416e69667479455243313135353a204e4f2050415553452046554e4354494f4e6044820152606401610608565b61108d612795565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b60006113e88133611ffc565b60005b8251811015610d345760006009600085848151811061141a57634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff19169115159190911790558061145681613cf4565b9150506113eb565b336001600160a01b03831614156114c95760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610608565b3360008181526002602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b3360009081526009602052604090205460609060ff16151560011461156c5760405162461bcd60e51b815260040161060890613a27565b835185511461158d5760405162461bcd60e51b815260040161060890613ab2565b600085516001600160401b038111156115b657634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156115df578160200160208202803683370190505b50905060005b865181101561163c576115fc600780546001019055565b60075482828151811061161f57634e487b7160e01b600052603260045260246000fd5b60209081029190910101528061163481613cf4565b9150506115e5565b5061167f33828887878080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611e0192505050565b611689818661244a565b95945050505050565b600061169e8133611ffc565b60065460ff16156116e45760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610608565b506000908152600a60205260409020805460ff19166001179055565b611056338383612810565b3360009081526009602052604081205460ff16151560011461173f5760405162461bcd60e51b815260040161060890613a27565b61174d600780546001019055565b600061175860075490565b905061179c33828887878080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061290d92505050565b6116898186611da5565b6000828152602081905260409020600101546117c28133611ffc565b610d3483836122f8565b6001600160a01b0384166117f25760405162461bcd60e51b815260040161060890613a6d565b6001600160a01b03851633148061180e575061180e8533610574565b61186c5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b6064820152608401610608565b3361188b81878761187c886129e3565b611885886129e3565b87612060565b6118d2836040518060600160405280602a8152602001613e17602a913960008781526001602090815260408083206001600160a01b038d16845290915290205491906120c8565b60008581526001602090815260408083206001600160a01b038b8116855292528083209390935587168152205461190990846120f4565b60008581526001602090815260408083206001600160a01b038a811680865291845293829020949094558051888152918201879052898316928516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610fae818787878787612a3c565b6006546001600160a01b036101009091041633146119de5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610608565b6001600160a01b038116611a435760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610608565b61108d816123f0565b606060038054611a5b90613c68565b80601f0160208091040260200160405190810160405280929190818152602001828054611a8790613c68565b8015611ad45780601f10611aa957610100808354040283529160200191611ad4565b820191906000526020600020905b815481529060010190602001808311611ab757829003601f168201915b50505050509050919050565b60007f5f9d3ceadcd5e9e1bfbb494a85c65503b9fd43ee76adbf589ea49172bed4e23f82600001518360200151846040015180519060200120604051602001611b4b949392919093845260208401929092526001600160a01b03166040830152606082015260800190565b604051602081830303815290604052805190602001209050919050565b60007fb2c6baa99fee7fa3c3b4918393f1740bfd4644be7d80cd8f5651f23ba7bb567c60405161190160f01b6020820152602281019190915260428101879052606201604051602081830303815290604052805190602001209050611bcd853b151590565b15611ce757604080516020810185905280820184905260f886901b6001600160f81b0319166060820152815160418183030181526061820192839052630b135d3f60e11b9092526001600160a01b03871691631626ba7e91611c339185916065016139b3565b60206040518083038186803b158015611c4b57600080fd5b505afa158015611c5f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c8391906135be565b6001600160e01b031916631626ba7e60e01b14611ce25760405162461bcd60e51b815260206004820152601b60248201527f416e69667479455243313135353a20554e415554484f52495a454400000000006044820152606401610608565b610fae565b60408051600081526020810180835283905260ff86169181019190915260608101849052608081018390526001600160a01b0386169060019060a0016020604051602081039080840390855afa158015611d45573d6000803e3d6000fd5b505050602060405103516001600160a01b031614610fae5760405162461bcd60e51b815260206004820152601b60248201527f416e69667479455243313135353a20554e415554484f52495a454400000000006044820152606401610608565b60008281526005602090815260409091208251611dc492840190612d5c565b50817f6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b82604051611df591906139cc565b60405180910390a25050565b6001600160a01b038416611e275760405162461bcd60e51b815260040161060890613b86565b8151835114611e485760405162461bcd60e51b815260040161060890613b3e565b33611e5881600087878787612060565b60005b8451811015611f6f57611efb60016000878481518110611e8b57634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b0316815260200190815260200160002054858381518110611ee557634e487b7160e01b600052603260045260246000fd5b60200260200101516120f490919063ffffffff16565b60016000878481518110611f1f57634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b03168152602001908152602001600020819055508080611f6790613cf4565b915050611e5b565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611fc092919061398e565b60405180910390a4610b2681600087878787612100565b60006001600160e01b03198216630271189760e51b1480610bcc5750610bcc82612b06565b61200682826113b3565b6110565761201e816001600160a01b03166014612b46565b612029836020612b46565b60405160200161203a9291906137aa565b60408051601f198184030181529082905262461bcd60e51b8252610608916004016139cc565b60065460ff1615610fae5760405162461bcd60e51b815260206004820152602c60248201527f455243313135355061757361626c653a20746f6b656e207472616e736665722060448201526b1dda1a5b19481c185d5cd95960a21b6064820152608401610608565b600081848411156120ec5760405162461bcd60e51b815260040161060891906139cc565b505050900390565b6000610cab8284613bea565b6001600160a01b0384163b15610fae5760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190612144908990899088908890889060040161381f565b602060405180830381600087803b15801561215e57600080fd5b505af192505050801561218e575060408051601f3d908101601f1916820190925261218b918101906135be565b60015b61223b5761219a613d3b565b806308c379a014156121d457506121af613d53565b806121ba57506121d6565b8060405162461bcd60e51b815260040161060891906139cc565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610608565b6001600160e01b0319811663bc197c8160e01b1461226b5760405162461bcd60e51b8152600401610608906139df565b50505050505050565b61227e82826113b3565b611056576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556122b43390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b61230282826113b3565b15611056576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60065460ff166123a65760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610608565b6006805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600680546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b80518251146124c15760405162461bcd60e51b815260206004820152603960248201527f4552433131353555524953746f726167653a20746f6b656e49647320616e642060448201527f746f6b656e55524973206c656e677468206d69736d61746368000000000000006064820152608401610608565b60005b8251811015612555578181815181106124ed57634e487b7160e01b600052603260045260246000fd5b60200260200101516005600085848151811061251957634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000209080519060200190612542929190612d5c565b508061254d81613cf4565b9150506124c4565b508160405161256491906136bb565b60405180910390207fb91efc7c549b2e0b79852c63bc16245eb0782b57cab3c7f658faaefecce71b3282604051611df5919061391a565b6001600160a01b0383166125c15760405162461bcd60e51b815260040161060890613afb565b80518251146125e25760405162461bcd60e51b815260040161060890613b3e565b600033905061260581856000868660405180602001604052806000815250612060565b60005b8351811015612736576126c283828151811061263457634e487b7160e01b600052603260045260246000fd5b6020026020010151604051806060016040528060248152602001613df3602491396001600088868151811061267957634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000206000896001600160a01b03166001600160a01b03168152602001908152602001600020546120c89092919063ffffffff16565b600160008684815181106126e657634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000206000876001600160a01b03166001600160a01b0316815260200190815260200160002081905550808061272e90613cf4565b915050612608565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb868660405161278792919061398e565b60405180910390a450505050565b60065460ff16156127db5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610608565b6006805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586123d33390565b6001600160a01b0383166128365760405162461bcd60e51b815260040161060890613afb565b3361286581856000612847876129e3565b612850876129e3565b60405180602001604052806000815250612060565b6128ac82604051806060016040528060248152602001613df36024913960008681526001602090815260408083206001600160a01b038b16845290915290205491906120c8565b60008481526001602090815260408083206001600160a01b0389811680865291845282852095909555815188815292830187905292938516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f629101612787565b6001600160a01b0384166129335760405162461bcd60e51b815260040161060890613b86565b336129448160008761187c886129e3565b60008481526001602090815260408083206001600160a01b038916845290915290205461297190846120f4565b60008581526001602090815260408083206001600160a01b038a8116808652918452828520959095558151898152928301889052938516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610b2681600087878787612a3c565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110612a2b57634e487b7160e01b600052603260045260246000fd5b602090810291909101015292915050565b6001600160a01b0384163b15610fae5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190612a8090899089908890889088906004016138d5565b602060405180830381600087803b158015612a9a57600080fd5b505af1925050508015612aca575060408051601f3d908101601f19168201909252612ac7918101906135be565b60015b612ad65761219a613d3b565b6001600160e01b0319811663f23a6e6160e01b1461226b5760405162461bcd60e51b8152600401610608906139df565b60006001600160e01b03198216636cdb3d1360e11b1480612b3757506001600160e01b031982166303a24d0760e21b145b80610bcc5750610bcc82612d27565b60606000612b55836002613c02565b612b60906002613bea565b6001600160401b03811115612b8557634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612baf576020820181803683370190505b509050600360fc1b81600081518110612bd857634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110612c1557634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506000612c39846002613c02565b612c44906001613bea565b90505b6001811115612cd8576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110612c8657634e487b7160e01b600052603260045260246000fd5b1a60f81b828281518110612caa57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c93612cd181613c51565b9050612c47565b508315610cab5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610608565b60006001600160e01b03198216637965db0b60e01b1480610bcc57506301ffc9a760e01b6001600160e01b0319831614610bcc565b828054612d6890613c68565b90600052602060002090601f016020900481019282612d8a5760008555612dd0565b82601f10612da357805160ff1916838001178555612dd0565b82800160010185558215612dd0579182015b82811115612dd0578251825591602001919060010190612db5565b50612ddc929150612de0565b5090565b5b80821115612ddc5760008155600101612de1565b80356001600160a01b0381168114612e0c57600080fd5b919050565b600082601f830112612e21578081fd5b81356020612e2e82613bc7565b604051612e3b8282613cc8565b8381528281019150858301600585901b87018401881015612e5a578586fd5b855b85811015612e7f57612e6d82612df5565b84529284019290840190600101612e5c565b5090979650505050505050565b600082601f830112612e9c578081fd5b81356020612ea982613bc7565b604051612eb68282613cc8565b8381528281019150858301600585901b87018401881015612ed5578586fd5b855b85811015612e7f5781356001600160401b03811115612ef4578788fd5b612f028a87838c0101612fc2565b8552509284019290840190600101612ed7565b600082601f830112612f25578081fd5b81356020612f3282613bc7565b604051612f3f8282613cc8565b8381528281019150858301600585901b87018401881015612f5e578586fd5b855b85811015612e7f57813584529284019290840190600101612f60565b60008083601f840112612f8d578182fd5b5081356001600160401b03811115612fa3578182fd5b602083019150836020828501011115612fbb57600080fd5b9250929050565b600082601f830112612fd2578081fd5b81356001600160401b03811115612feb57612feb613d25565b604051613002601f8301601f191660200182613cc8565b818152846020838601011115613016578283fd5b816020850160208301379081016020019190915292915050565b803560ff81168114612e0c57600080fd5b600060208284031215613052578081fd5b610cab82612df5565b6000806040838503121561306d578081fd5b61307683612df5565b915061308460208401612df5565b90509250929050565b600080600080600060a086880312156130a4578081fd5b6130ad86612df5565b94506130bb60208701612df5565b935060408601356001600160401b03808211156130d6578283fd5b6130e289838a01612f15565b945060608801359150808211156130f7578283fd5b61310389838a01612f15565b93506080880135915080821115613118578283fd5b5061312588828901612fc2565b9150509295509295909350565b600080600080600060a08688031215613149578283fd5b61315286612df5565b945061316060208701612df5565b9350604086013592506060860135915060808601356001600160401b03811115613188578182fd5b61312588828901612fc2565b600080604083850312156131a6578182fd5b6131af83612df5565b9150602083013580151581146131c3578182fd5b809150509250929050565b600080604083850312156131e0578182fd5b6131e983612df5565b946020939093013593505050565b600060208284031215613208578081fd5b81356001600160401b0381111561321d578182fd5b61322984828501612e11565b949350505050565b60008060408385031215613243578182fd5b82356001600160401b0380821115613259578384fd5b61326586838701612e11565b9350602085013591508082111561327a578283fd5b5061328785828601612f15565b9150509250929050565b600080604083850312156132a3578182fd5b82356001600160401b03808211156132b9578384fd5b6132c586838701612f15565b935060208501359150808211156132da578283fd5b5061328785828601612e8c565b600080600080606085870312156132fc578182fd5b84356001600160401b0380821115613312578384fd5b61331e88838901612f15565b95506020870135915080821115613333578384fd5b61333f88838901612e8c565b94506040870135915080821115613354578384fd5b5061336187828801612f7c565b95989497509550505050565b6000806040838503121561337f578182fd5b82356001600160401b0380821115613395578384fd5b61326586838701612f15565b6000806000806000608086880312156133b8578283fd5b6001600160401b0380873511156133cd578384fd5b6133da8888358901612f15565b955080602088013511156133ec578384fd5b6133fc8860208901358901612f15565b9450806040880135111561340e578384fd5b87601f604089013589010112613422578384fd5b6134326040880135880135613bc7565b60405161343f8282613cc8565b604089013589018035808352602080840194508083019260059290921b909101018b101561346b578687fd5b865b60408b01358b0135811015613530578482351115613489578788fd5b60408b01358b0182350160c0818e03601f190112156134a6578889fd5b6040516134b281613ca3565b602082013581526134c560408301612df5565b602082015286606083013511156134da57898afd5b6134ed8e60206060850135850101612fc2565b60408201526134fe60808301613030565b606082015260a082810135608083015260c090920135918101919091528452602093840193919091019060010161346d565b505080955050508060608801351115613547578182fd5b506135588760608801358801612f7c565b9598949750929550919392915050565b600060208284031215613579578081fd5b5035919050565b60008060408385031215613592578182fd5b8235915061308460208401612df5565b6000602082840312156135b3578081fd5b8135610cab81613ddc565b6000602082840312156135cf578081fd5b8151610cab81613ddc565b600080600080606085870312156135ef578182fd5b8435935060208501356001600160401b038082111561360c578384fd5b61333f88838901612fc2565b6000806040838503121561362a578182fd5b50508035926020909101359150565b6000815180845260208085019450808401835b838110156136685781518752958201959082019060010161364c565b509495945050505050565b6000815180845261368b816020860160208601613c21565b601f01601f19169290920160200192915050565b600081516136b1818560208601613c21565b9290920192915050565b815160009082906020808601845b838110156136e5578151855293820193908201906001016136c9565b50929695505050505050565b60008251613703818460208701613c21565b9190910192915050565b600080845482600182811c91508083168061372957607f831692505b602080841082141561374957634e487b7160e01b87526022600452602487fd5b81801561375d576001811461376e5761379a565b60ff1986168952848901965061379a565b60008b815260209020885b868110156137925781548b820152908501908301613779565b505084890196505b505050505050611689818561369f565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516137e2816017850160208801613c21565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351613813816028840160208801613c21565b01602801949350505050565b6001600160a01b0386811682528516602082015260a06040820181905260009061384b90830186613639565b828103606084015261385d8186613639565b905082810360808401526138718185613673565b98975050505050505050565b6001600160a01b0385811682528416602082015260a0604082018190526000906138a990830185613639565b82810360608401526138bb8185613639565b838103608090940193909352508152602001949350505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009061390f90830184613673565b979650505050505050565b6000602080830181845280855180835260408601915060408160051b8701019250838701855b8281101561396e57603f1988860301845261395c858351613673565b94509285019290850190600101613940565b5092979650505050505050565b602081526000610cab6020830184613639565b6040815260006139a16040830185613639565b82810360208401526116898185613639565b8281526040602082015260006132296040830184613673565b602081526000610cab6020830184613673565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b60208082526026908201527f43616c6c6572206973206e6f742066726f6d20612077686974656c697374206160408201526564647265737360d01b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526029908201527f416e69667479455243313135353a20496e636f727265637420706172616d65746040820152680cae440d8cadccee8d60bb1b606082015260800190565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60208082526021908201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736040820152607360f81b606082015260800190565b60006001600160401b03821115613be057613be0613d25565b5060051b60200190565b60008219821115613bfd57613bfd613d0f565b500190565b6000816000190483118215151615613c1c57613c1c613d0f565b500290565b60005b83811015613c3c578181015183820152602001613c24565b83811115613c4b576000848401525b50505050565b600081613c6057613c60613d0f565b506000190190565b600181811c90821680613c7c57607f821691505b60208210811415613c9d57634e487b7160e01b600052602260045260246000fd5b50919050565b60c081018181106001600160401b0382111715613cc257613cc2613d25565b60405250565b601f8201601f191681016001600160401b0381118282101715613ced57613ced613d25565b6040525050565b6000600019821415613d0857613d08613d0f565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d1115613d5057600481823e5160e01c5b90565b600060443d1015613d615790565b6040516003193d81016004833e81513d6001600160401b038160248401118184111715613d9057505050505090565b8285019150815181811115613da85750505050505090565b843d8701016020828501011115613dc25750505050505090565b613dd160208286010187613cc8565b509095945050505050565b6001600160e01b03198116811461108d57600080fdfe455243313135353a206275726e20616d6f756e7420657863656564732062616c616e6365455243313135353a20696e73756666696369656e742062616c616e636520666f72207472616e73666572a2646970667358221220193b9d689a5adfb9297f0c10cc33ca834360bb8ad6cb1d729d95969c666b58c464736f6c63430008040033

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

000000000000000000000000e68642af41461528bab9668579a6c16015d8af6600000000000000000000000020eb5a0a20b1fa8be615a440ae36ff0fed46b02000000000000000000000000000000000000000000000000000000000000007cf00000000000000000000000021545e9f21844758f6d4755230d9d7c62e08b449

-----Decoded View---------------
Arg [0] : _admin (address): 0xE68642Af41461528bAB9668579A6c16015d8AF66
Arg [1] : _signer (address): 0x20eB5a0A20B1fa8Be615A440ae36FF0fEd46B020
Arg [2] : _startAdminTokenId (uint64): 1999
Arg [3] : _aniftyERC1155V1 (address): 0x21545E9f21844758f6d4755230d9D7C62e08B449

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 000000000000000000000000e68642af41461528bab9668579a6c16015d8af66
Arg [1] : 00000000000000000000000020eb5a0a20b1fa8be615a440ae36ff0fed46b020
Arg [2] : 00000000000000000000000000000000000000000000000000000000000007cf
Arg [3] : 00000000000000000000000021545e9f21844758f6d4755230d9d7c62e08b449


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

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