ETH Price: $3,445.47 (-1.02%)
Gas: 8 Gwei

Token

 

Overview

Max Total Supply

501

Holders

177

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

0xb898ae2c6951d0cb3c2c3e7ab96a8f72b6863733
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:
TBDPass

Compiler Version
v0.8.10+commit.fc410830

Optimization Enabled:
Yes with 700 runs

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

pragma solidity 0.8.10;

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

interface ICalculator {
    function price() external view returns (uint256);
}

contract TBDPass is ERC1155, Ownable, ReentrancyGuard {
    using ECDSA for bytes32;

    // - events
    event BurnerStateChanged(address indexed burner, bool indexed newState);
    event ContractToggled(bool indexed newState);
    event FloatingCapUpdated(uint256 indexed newCap);
    event PriceCalculatorUpdated(address indexed calc);
    event VerifiedSignerSet(address indexed signer);

    // - constants
    uint256 public constant PASS_ID = 0;
    uint256 public constant STAGE1_CAP = 2000;                           // initial floating cap
    uint256 public constant RESERVE_CAP = 2000;                          // global limit on the tokens mintable by owner
    uint256 public constant HARD_CAP = 10000;                            // global limit on the tokens mintable by anyone
    uint256 public constant MAX_MINT = 250;                              // global per-account limit of mintable tokens

    uint256 public constant PRICE = .06 ether;                           // initial token price
    uint256 public constant PRICE_INCREMENT = .05 ether;                 // increment it by this amount
    uint256 public constant PRICE_TIER_SIZE = 500;                       // every ... tokens
    address private constant TIP_RECEIVER =
        0x3a6E4D326aeb315e85E3ac0A918361672842a496;                      //

    // - storage variables; 
    uint256 public totalSupply;                                          // all tokens minted
    uint256 public reserveSupply;                                        // minted by owner; never exceeds RESERVE_CAP
    uint256 public reserveSupplyThisPeriod;                              // minted by owner this release period, never exceeds reserveCap
    uint256 public reserveCapThisPeriod;                                 // current reserve cap; never exceeds RESERVE_CAP - reserveSupply 
    uint256 public floatingCap;                                          // current upper boundary of the floating cap; never exceeds HARD_CAP
    uint256 public releasePeriod;                                        // counter of floating cap updates; changing this invalidates wl signatures
    bool public paused;                                                  // control wl minting and at-cost minting
    address public verifiedSigner;                                       // wl requests must be signed by this account 
    ICalculator public calculator;                                       // external price source
    mapping(address => bool) public burners;                             // accounts allowed to burn tokens
    mapping(uint256 => mapping(address => uint256)) public allowances;   // tracked wl allowances for current release cycle
    mapping(address => uint256) public mints;                            // lifetime accumulators for tokens minted


    constructor() ERC1155("https://studio-tbd.io/tokens/default.json") {
        floatingCap = STAGE1_CAP;
    }

    function price() external view returns (uint256) {
        return _price();
    }

    function getAllowance() external view returns (uint256) {
        uint256 allowance = allowances[releasePeriod][msg.sender];
        if (allowance > 1) {
            return allowance - 1;
        } else {
            return 0;
        }
    }

    function whitelistMint(
        uint256 qt,
        uint256 initialAllowance,
        bytes calldata signature
    ) external {
        _whenNotPaused();

        // Signatures from previous `releasePeriod`s will not check out.
        _validSignature(msg.sender, initialAllowance, signature);

        // Set account's allowance on first use of the signature.
        // The +1 offset allows to distinguish between a) first-time
        // call; and b) fully claimed allowance. If the first use tx 
        // executes successfully, ownce never goes below 1. 
        mapping(address => uint256) storage ownce = allowances[releasePeriod];
        if (ownce[msg.sender] == 0) {
            ownce[msg.sender] = initialAllowance + 1;
        }

        // The actual allowance is always ownce -1;
        // must be above 0 to proceed.
        uint256 allowance = ownce[msg.sender] - 1;
        require(allowance > 0, "OutOfAllowance");

        // If the qt requested is 0, mint up to max allowance:
        uint256 qt_ = (qt == 0)? allowance : qt;
        // qt_ is never 0, since if it's 0, it assumes allowance,
        // and that would revert earlier if 0.
        assert(qt_ > 0);
    
        // It is possible, however, that qt is non-zero and exceeds allowance:
        require(qt_ <= allowance, "MintingExceedsAllowance");

        // Observe lifetime per-account limit:
        require(qt_ + mints[msg.sender] <= MAX_MINT, "MintingExceedsLifetimeLimit");

        // In order to assess whether it's cool to extend the floating cap by qt_, 
        // calculate the extension upper bound. The gist: extend as long as 
        // the team's reserve is guarded.
        uint256 reserveVault = (RESERVE_CAP - reserveSupply) - (reserveCapThisPeriod - reserveSupplyThisPeriod);
        uint256 extensionMintable = HARD_CAP - floatingCap - reserveVault;

        // split between over-the-cap supply and at-cost supply
        uint256 mintableAtCost = _mintableAtCost();
        uint256 wlMintable = extensionMintable + mintableAtCost;
        require(qt_ <= wlMintable, "MintingExceedsAvailableSupply");
        
        // adjust fc
        floatingCap += (qt_ > extensionMintable)? extensionMintable : qt_; 

        // decrease caller's allowance in the current period
        ownce[msg.sender] -= qt_;

        _mintN(msg.sender, qt_);
    }

    function mint(uint256 qt) external payable {
        _whenNotPaused();
        require(qt > 0, "ZeroTokensRequested");
        require(qt <= _mintableAtCost(), "MintingExceedsFloatingCap");
        require(
            mints[msg.sender] + qt <= MAX_MINT,
            "MintingExceedsLifetimeLimit"
        );
        require(qt * _price() == msg.value, "InvalidETHAmount");
    
        _mintN(msg.sender, qt);
    }


    function withdraw() external {
        _onlyOwner();
        uint256 tip = address(this).balance * 2 / 100;
        payable(TIP_RECEIVER).transfer(tip);
        payable(owner()).transfer(address(this).balance);
    }

    function setCalculator(address calc) external {
        _onlyOwner();
        require(calc != address(0), "ZeroCalculatorAddress");
        emit PriceCalculatorUpdated(calc);
        calculator = ICalculator(calc);
    }

    function setVerifiedSigner(address signer) external {
        _onlyOwner();
        require(signer != address(0), "ZeroSignerAddress");
        emit VerifiedSignerSet(signer);
        verifiedSigner = signer;
    }

    function setFloatingCap(uint256 cap, uint256 reserve) external {
        _onlyOwner();
        require(reserveSupply + reserve <= RESERVE_CAP, "OwnerReserveExceeded");
        require(cap >= floatingCap, "CapUnderCurrentFloatingCap");
        require(cap <= HARD_CAP, "HardCapExceeded");
        require((RESERVE_CAP - reserveSupply - reserve) <= (HARD_CAP - cap), 
            "OwnerReserveViolation");
        require(cap - totalSupply >= reserve, "ReserveExceedsTokensAvailable");

        reserveCapThisPeriod = reserve;
        reserveSupplyThisPeriod = 0;
        emit FloatingCapUpdated(cap);
        floatingCap = cap;
        _nextPeriod();
    }

    function reduceReserve(uint256 to) external {
        _onlyOwner();
        require(to >= reserveSupplyThisPeriod, "CannotDecreaseBelowMinted");
        require(to < reserveCapThisPeriod, "CannotIncreaseReserve");
        
        // supply above floatingCap must be still sufficient to compensate
        // for potentially excessive reduction
        uint256 capExcess = HARD_CAP - floatingCap;
        bool reserveViolated = capExcess < (RESERVE_CAP - reserveSupply) - (to - reserveSupplyThisPeriod);
        require(!reserveViolated, "OwnerReserveViolation");
        
        reserveCapThisPeriod = to;
    }

    function nextPeriod() external {
        _onlyOwner();
        _nextPeriod();
    }

    function setBurnerState(address burner, bool state) external {
        _onlyOwner();
        require(burner != address(0), "ZeroBurnerAddress");
        emit BurnerStateChanged(burner, state);
        burners[burner] = state;
    }

    function burn(address holder, uint256 qt) external {
        _onlyBurners();
        _burn(holder, PASS_ID, qt);
        _mint(0x000000000000000000000000000000000000dEaD, PASS_ID, qt, "");
    }

    function setURI(string memory uri_) external {
        _onlyOwner();
        _setURI(uri_);
    }

    function toggle() external {
        _onlyOwner();
        emit ContractToggled(!paused);
        paused = !paused;
    }

    function teamdrop(address to, uint256 qt) external {
        _onlyOwner();
        require(to != address(0), "ZeroReceiverAddress");
        require(qt > 0, "ZeroTokensRequested");
        require(releasePeriod > 0, "PrematureMintingByOwner");
        require(reserveSupplyThisPeriod + qt <= reserveCapThisPeriod, "MintingExceedsPeriodReserve");
        reserveSupply += qt;
        reserveSupplyThisPeriod += qt;
        _mintN(to, qt);
    }

    // - internals
    function _nextPeriod() internal {
        releasePeriod++;
    }

    function _mintN(address to, uint256 qt) internal nonReentrant {
        totalSupply += qt;
        mints[to] += qt;
        _mint(to, PASS_ID, qt, "");
    }

    function _mintableAtCost() internal view returns (uint256) {
        return floatingCap - totalSupply - 
            (reserveCapThisPeriod - reserveSupplyThisPeriod);
    }

    function _onlyOwner() internal view {
        require(msg.sender == owner(), "UnauthorizedAccess");
    }

    function _onlyBurners() internal view {
        require(burners[msg.sender], "UnauthorizedAccess");
    }

    function _whenNotPaused() internal view {
        require(!paused, "ContractPaused");
    }

    function _validSignature(
        address account,
        uint256 allowance,
        bytes calldata signature
    ) internal view {
        bytes32 hash = keccak256(
            abi.encodePacked(
                "\x19Ethereum Signed Message:\n32",
                keccak256(abi.encodePacked(account, releasePeriod, allowance))
            )
        );
        require(
            hash.recover(signature) == verifiedSigner,
            "InvalidSignature."
        );
    }

    function _price() internal view returns (uint256 price_) {
        if (calculator != ICalculator(address(0))) {
            price_ = calculator.price();
        } else {
            price_ = PRICE + PRICE_INCREMENT * (totalSupply / PRICE_TIER_SIZE);
        }
    }
}

File 2 of 13 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

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

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

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

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

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

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

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

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

        return (signer, RecoverError.NoError);
    }

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

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

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

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

File 3 of 13 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

        return batchBalances;
    }

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

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

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

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

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

        return array;
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "../IERC1155.sol";

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

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

pragma solidity ^0.8.0;

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"burner","type":"address"},{"indexed":true,"internalType":"bool","name":"newState","type":"bool"}],"name":"BurnerStateChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bool","name":"newState","type":"bool"}],"name":"ContractToggled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"newCap","type":"uint256"}],"name":"FloatingCapUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"calc","type":"address"}],"name":"PriceCalculatorUpdated","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":true,"internalType":"address","name":"signer","type":"address"}],"name":"VerifiedSignerSet","type":"event"},{"inputs":[],"name":"HARD_CAP","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_MINT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PASS_ID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE_INCREMENT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE_TIER_SIZE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"RESERVE_CAP","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"STAGE1_CAP","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"allowances","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"holder","type":"address"},{"internalType":"uint256","name":"qt","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"burners","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"calculator","outputs":[{"internalType":"contract ICalculator","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"floatingCap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getAllowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"qt","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"mints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextPeriod","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"to","type":"uint256"}],"name":"reduceReserve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"releasePeriod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reserveCapThisPeriod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"reserveSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"reserveSupplyThisPeriod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"burner","type":"address"},{"internalType":"bool","name":"state","type":"bool"}],"name":"setBurnerState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"calc","type":"address"}],"name":"setCalculator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"cap","type":"uint256"},{"internalType":"uint256","name":"reserve","type":"uint256"}],"name":"setFloatingCap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri_","type":"string"}],"name":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"signer","type":"address"}],"name":"setVerifiedSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"qt","type":"uint256"}],"name":"teamdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggle","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"verifiedSigner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"qt","type":"uint256"},{"internalType":"uint256","name":"initialAllowance","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"whitelistMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b50604051806060016040528060298152602001620038a260299139620000378162000054565b5062000043336200006d565b60016004556107d0600955620001a2565b805162000069906002906020840190620000bf565b5050565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620000cd9062000165565b90600052602060002090601f016020900481019282620000f157600085556200013c565b82601f106200010c57805160ff19168380011785556200013c565b828001600101855582156200013c579182015b828111156200013c5782518255916020019190600101906200011f565b506200014a9291506200014e565b5090565b5b808211156200014a57600081556001016200014f565b600181811c908216806200017a57607f821691505b602082108114156200019c57634e487b7160e01b600052602260045260246000fd5b50919050565b6136f080620001b26000396000f3fe6080604052600436106102fc5760003560e01c8063770b27431161018f578063b7c0007d116100e1578063ec596b721161008a578063f13a465111610064578063f13a465114610834578063f242432a1461084a578063f2fde38b1461086a57600080fd5b8063ec596b72146107ea578063ec607f7d1461080a578063f0292a031461081f57600080fd5b8063ce3e39c0116100bb578063ce3e39c014610749578063e985e9c514610769578063ec4d3206146107b257600080fd5b8063b7c0007d14610640578063bc70f53614610713578063c53468f01461072957600080fd5b8063978528c011610143578063a035b1fe1161011d578063a035b1fe146106cb578063a0712d68146106e0578063a22cb465146106f357600080fd5b8063978528c01461066b578063988275431461068b5780639dc29fac146106ab57600080fd5b80638da5cb5b116101745780638da5cb5b1461062257806391bbdb3f14610640578063973e9b8b1461065657600080fd5b8063770b2743146105f15780638d859f3e1461060757600080fd5b80633ccfd60b1161025357806363ef1627116101fc5780636d25d802116101d65780636d25d802146105ac5780636ede0418146105c7578063715018a6146105dc57600080fd5b806363ef162714610556578063649e2d981461056c5780636b6216ad1461058c57600080fd5b80634e38b49e1161022d5780634e38b49e146104ef5780635660f8511461050f5780635c975abb1461053c57600080fd5b80633ccfd60b1461049857806340a3d246146104ad5780634e1273f4146104c257600080fd5b80630e89341c116102b557806335ef4fb71161028f57806335ef4fb71461042f5780633a03171c1461046c5780633b3b502c1461048257600080fd5b80630e89341c146103cc57806318160ddd146103f95780632eb2c2d61461040f57600080fd5b806302fe5305116102e657806302fe53051461036457806303d41e0e1461038657806303d41eb6146103b657600080fd5b8062fdd58e1461030157806301ffc9a714610334575b600080fd5b34801561030d57600080fd5b5061032161031c366004612df7565b61088a565b6040519081526020015b60405180910390f35b34801561034057600080fd5b5061035461034f366004612e37565b610933565b604051901515815260200161032b565b34801561037057600080fd5b5061038461037f366004612efc565b610985565b005b34801561039257600080fd5b506103546103a1366004612f4d565b600d6020526000908152604090205460ff1681565b3480156103c257600080fd5b5061032160065481565b3480156103d857600080fd5b506103ec6103e7366004612f68565b610999565b60405161032b9190612fce565b34801561040557600080fd5b5061032160055481565b34801561041b57600080fd5b5061038461042a366004613096565b610a2d565b34801561043b57600080fd5b50600b546104549061010090046001600160a01b031681565b6040516001600160a01b03909116815260200161032b565b34801561047857600080fd5b5061032161271081565b34801561048e57600080fd5b506103216101f481565b3480156104a457600080fd5b50610384610acf565b3480156104b957600080fd5b50610384610b72565b3480156104ce57600080fd5b506104e26104dd366004613140565b610bc1565b60405161032b9190613246565b3480156104fb57600080fd5b5061038461050a366004612df7565b610cff565b34801561051b57600080fd5b5061032161052a366004612f4d565b600f6020526000908152604090205481565b34801561054857600080fd5b50600b546103549060ff1681565b34801561056257600080fd5b50610321600a5481565b34801561057857600080fd5b50610384610587366004613259565b610e99565b34801561059857600080fd5b506103846105a7366004612f68565b610f5a565b3480156105b857600080fd5b5061032166b1a2bc2ec5000081565b3480156105d357600080fd5b50610321600081565b3480156105e857600080fd5b5061038461109b565b3480156105fd57600080fd5b5061032160075481565b34801561061357600080fd5b5061032166d529ae9e86000081565b34801561062e57600080fd5b506003546001600160a01b0316610454565b34801561064c57600080fd5b506103216107d081565b34801561066257600080fd5b50610321611101565b34801561067757600080fd5b50610384610686366004612f4d565b611144565b34801561069757600080fd5b506103846106a6366004613295565b611215565b3480156106b757600080fd5b506103846106c6366004612df7565b611433565b3480156106d757600080fd5b50610321611465565b6103846106ee366004612f68565b611474565b3480156106ff57600080fd5b5061038461070e366004613259565b6115f9565b34801561071f57600080fd5b5061032160085481565b34801561073557600080fd5b50610384610744366004612f4d565b611604565b34801561075557600080fd5b50600c54610454906001600160a01b031681565b34801561077557600080fd5b506103546107843660046132b7565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b3480156107be57600080fd5b506103216107cd3660046132ea565b600e60209081526000928352604080842090915290825290205481565b3480156107f657600080fd5b5061038461080536600461330d565b6116c5565b34801561081657600080fd5b5061038461197a565b34801561082b57600080fd5b5061032160fa81565b34801561084057600080fd5b5061032160095481565b34801561085657600080fd5b5061038461086536600461338d565b61198a565b34801561087657600080fd5b50610384610885366004612f4d565b611a25565b60006001600160a01b03831661090d5760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201527f65726f206164647265737300000000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b03198216636cdb3d1360e11b148061096457506001600160e01b031982166303a24d0760e21b145b8061097f57506301ffc9a760e01b6001600160e01b03198316145b92915050565b61098d611aed565b61099681611b3c565b50565b6060600280546109a8906133f2565b80601f01602080910402602001604051908101604052809291908181526020018280546109d4906133f2565b8015610a215780601f106109f657610100808354040283529160200191610a21565b820191906000526020600020905b815481529060010190602001808311610a0457829003601f168201915b50505050509050919050565b6001600160a01b038516331480610a495750610a498533610784565b610abb5760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f742060448201527f6f776e6572206e6f7220617070726f76656400000000000000000000000000006064820152608401610904565b610ac88585858585611b4f565b5050505050565b610ad7611aed565b60006064610ae6476002613443565b610af09190613462565b604051909150733a6e4d326aeb315e85e3ac0a918361672842a4969082156108fc029083906000818181858888f19350505050158015610b34573d6000803e3d6000fd5b506003546040516001600160a01b03909116904780156108fc02916000818181858888f19350505050158015610b6e573d6000803e3d6000fd5b5050565b610b7a611aed565b600b5460405160ff90911615907fd5b03c283ba3144bd495b77b4ff94904a91e70bdad8d31c168f75335032bb0e990600090a2600b805460ff19811660ff90911615179055565b60608151835114610c3a5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e67746860448201527f206d69736d6174636800000000000000000000000000000000000000000000006064820152608401610904565b6000835167ffffffffffffffff811115610c5657610c56612e5b565b604051908082528060200260200182016040528015610c7f578160200160208202803683370190505b50905060005b8451811015610cf757610cca858281518110610ca357610ca3613484565b6020026020010151858381518110610cbd57610cbd613484565b602002602001015161088a565b828281518110610cdc57610cdc613484565b6020908102919091010152610cf08161349a565b9050610c85565b509392505050565b610d07611aed565b6001600160a01b038216610d5d5760405162461bcd60e51b815260206004820152601360248201527f5a65726f526563656976657241646472657373000000000000000000000000006044820152606401610904565b60008111610dad5760405162461bcd60e51b815260206004820152601360248201527f5a65726f546f6b656e73526571756573746564000000000000000000000000006044820152606401610904565b6000600a5411610dff5760405162461bcd60e51b815260206004820152601760248201527f5072656d61747572654d696e74696e6742794f776e65720000000000000000006044820152606401610904565b60085481600754610e1091906134b5565b1115610e5e5760405162461bcd60e51b815260206004820152601b60248201527f4d696e74696e6745786365656473506572696f645265736572766500000000006044820152606401610904565b8060066000828254610e7091906134b5565b925050819055508060076000828254610e8991906134b5565b90915550610b6e90508282611dc2565b610ea1611aed565b6001600160a01b038216610ef75760405162461bcd60e51b815260206004820152601160248201527f5a65726f4275726e6572416464726573730000000000000000000000000000006044820152606401610904565b604051811515906001600160a01b038416907fe558d5f78eb8c92164e82e4979fe0db54d4efafc9487a144873e94c6dc2b95e990600090a36001600160a01b03919091166000908152600d60205260409020805460ff1916911515919091179055565b610f62611aed565b600754811015610fb45760405162461bcd60e51b815260206004820152601960248201527f43616e6e6f74446563726561736542656c6f774d696e746564000000000000006044820152606401610904565b60085481106110055760405162461bcd60e51b815260206004820152601560248201527f43616e6e6f74496e6372656173655265736572766500000000000000000000006044820152606401610904565b600060095461271061101791906134cd565b905060006007548361102991906134cd565b600654611038906107d06134cd565b61104291906134cd565b8210905080156110945760405162461bcd60e51b815260206004820152601560248201527f4f776e65725265736572766556696f6c6174696f6e00000000000000000000006044820152606401610904565b5050600855565b6003546001600160a01b031633146110f55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610904565b6110ff6000611e88565b565b600a546000908152600e602090815260408083203384529091528120546001811115611138576111326001826134cd565b91505090565b600091505090565b5090565b61114c611aed565b6001600160a01b0381166111a25760405162461bcd60e51b815260206004820152601160248201527f5a65726f5369676e6572416464726573730000000000000000000000000000006044820152606401610904565b6040516001600160a01b038216907fcdce1685ca3c74783ce290cc78751ec5d06b00f5ef5eebbfb9f5c17e6b15c7c890600090a2600b80546001600160a01b03909216610100027fffffffffffffffffffffff0000000000000000000000000000000000000000ff909216919091179055565b61121d611aed565b6107d08160065461122e91906134b5565b111561127c5760405162461bcd60e51b815260206004820152601460248201527f4f776e65725265736572766545786365656465640000000000000000000000006044820152606401610904565b6009548210156112ce5760405162461bcd60e51b815260206004820152601a60248201527f436170556e64657243757272656e74466c6f6174696e674361700000000000006044820152606401610904565b6127108211156113205760405162461bcd60e51b815260206004820152600f60248201527f48617264436170457863656564656400000000000000000000000000000000006044820152606401610904565b61132c826127106134cd565b816006546107d061133d91906134cd565b61134791906134cd565b11156113955760405162461bcd60e51b815260206004820152601560248201527f4f776e65725265736572766556696f6c6174696f6e00000000000000000000006044820152606401610904565b80600554836113a491906134cd565b10156113f25760405162461bcd60e51b815260206004820152601d60248201527f5265736572766545786365656473546f6b656e73417661696c61626c650000006044820152606401610904565b60088190556000600781905560405183917f39a982ab2ffc33552709064cb21da6a6c60ce8f2def4898e2be63f0e4df7ccd491a26009829055610b6e611ee7565b61143b611efe565b61144782600083611f52565b610b6e61dead600083604051806020016040528060008152506120cc565b600061146f6121d6565b905090565b61147c612296565b600081116114cc5760405162461bcd60e51b815260206004820152601360248201527f5a65726f546f6b656e73526571756573746564000000000000000000000000006044820152606401610904565b6114d46122e9565b8111156115235760405162461bcd60e51b815260206004820152601960248201527f4d696e74696e6745786365656473466c6f6174696e67436170000000000000006044820152606401610904565b336000908152600f602052604090205460fa906115419083906134b5565b111561158f5760405162461bcd60e51b815260206004820152601b60248201527f4d696e74696e67457863656564734c69666574696d654c696d697400000000006044820152606401610904565b346115986121d6565b6115a29083613443565b146115ef5760405162461bcd60e51b815260206004820152601060248201527f496e76616c6964455448416d6f756e74000000000000000000000000000000006044820152606401610904565b6109963382611dc2565b610b6e338383612315565b61160c611aed565b6001600160a01b0381166116625760405162461bcd60e51b815260206004820152601560248201527f5a65726f43616c63756c61746f724164647265737300000000000000000000006044820152606401610904565b6040516001600160a01b038216907f794898c2025ae78c8926df14cfd38b64a6dc7f73331d13b0a85ae261cda4a93f90600090a2600c805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6116cd612296565b6116d93384848461240a565b600a546000908152600e602090815260408083203384529182905290912054611718576117078460016134b5565b336000908152602083905260409020555b33600090815260208290526040812054611734906001906134cd565b9050600081116117865760405162461bcd60e51b815260206004820152600e60248201527f4f75744f66416c6c6f77616e63650000000000000000000000000000000000006044820152606401610904565b600086156117945786611796565b815b9050600081116117a8576117a86134e4565b818111156117f85760405162461bcd60e51b815260206004820152601760248201527f4d696e74696e6745786365656473416c6c6f77616e63650000000000000000006044820152606401610904565b336000908152600f602052604090205460fa9061181590836134b5565b11156118635760405162461bcd60e51b815260206004820152601b60248201527f4d696e74696e67457863656564734c69666574696d654c696d697400000000006044820152606401610904565b600060075460085461187591906134cd565b600654611884906107d06134cd565b61188e91906134cd565b90506000816009546127106118a391906134cd565b6118ad91906134cd565b905060006118b96122e9565b905060006118c782846134b5565b9050808511156119195760405162461bcd60e51b815260206004820152601d60248201527f4d696e74696e6745786365656473417661696c61626c65537570706c790000006044820152606401610904565b8285116119265784611928565b825b6009600082825461193991906134b5565b9091555050336000908152602088905260408120805487929061195d9084906134cd565b9091555061196d90503386611dc2565b5050505050505050505050565b611982611aed565b6110ff611ee7565b6001600160a01b0385163314806119a657506119a68533610784565b611a185760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201527f20617070726f76656400000000000000000000000000000000000000000000006064820152608401610904565b610ac88585858585612544565b6003546001600160a01b03163314611a7f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610904565b6001600160a01b038116611ae45760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610904565b61099681611e88565b6003546001600160a01b031633146110ff5760405162461bcd60e51b8152602060048201526012602482015271556e617574686f72697a656441636365737360701b6044820152606401610904565b8051610b6e906002906020840190612d4b565b8151835114611bc65760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060448201527f6d69736d617463680000000000000000000000000000000000000000000000006064820152608401610904565b6001600160a01b038416611c2a5760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b6064820152608401610904565b3360005b8451811015611d54576000858281518110611c4b57611c4b613484565b602002602001015190506000858381518110611c6957611c69613484565b602090810291909101810151600084815280835260408082206001600160a01b038e168352909352919091205490915081811015611cfc5760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201526939103a3930b739b332b960b11b6064820152608401610904565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290611d399084906134b5565b9250508190555050505080611d4d9061349a565b9050611c2e565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611da49291906134fa565b60405180910390a4611dba8187878787876126e2565b505050505050565b60026004541415611e155760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610904565b60026004819055508060056000828254611e2f91906134b5565b90915550506001600160a01b0382166000908152600f602052604081208054839290611e5c9084906134b5565b92505081905550611e7f82600083604051806020016040528060008152506120cc565b50506001600455565b600380546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600a8054906000611ef78361349a565b9190505550565b336000908152600d602052604090205460ff166110ff5760405162461bcd60e51b8152602060048201526012602482015271556e617574686f72697a656441636365737360701b6044820152606401610904565b6001600160a01b038316611fb45760405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201526265737360e81b6064820152608401610904565b33611fe481856000611fc587612888565b611fce87612888565b5050604080516020810190915260009052505050565b6000838152602081815260408083206001600160a01b0388168452909152902054828110156120615760405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604482015263616e636560e01b6064820152608401610904565b6000848152602081815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b6001600160a01b03841661212c5760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610904565b336121468160008761213d88612888565b610ac888612888565b6000848152602081815260408083206001600160a01b0389168452909152812080548592906121769084906134b5565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610ac8816000878787876128d3565b600c546000906001600160a01b03161561226157600c60009054906101000a90046001600160a01b03166001600160a01b031663a035b1fe6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561223d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061146f9190613528565b6101f46005546122719190613462565b6122829066b1a2bc2ec50000613443565b61146f9066d529ae9e8600006134b5565b90565b600b5460ff16156110ff5760405162461bcd60e51b815260206004820152600e60248201527f436f6e74726163745061757365640000000000000000000000000000000000006044820152606401610904565b60006007546008546122fb91906134cd565b60055460095461230b91906134cd565b61146f91906134cd565b816001600160a01b0316836001600160a01b0316141561239d5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c2073746174757360448201527f20666f722073656c6600000000000000000000000000000000000000000000006064820152608401610904565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b600a546040516bffffffffffffffffffffffff19606087901b16602082015260348101919091526054810184905260009060740160408051601f198184030181529082905280516020918201207f19457468657265756d205369676e6564204d6573736167653a0a33320000000091830191909152603c820152605c0160408051808303601f190181528282528051602091820120600b54601f870183900483028501830190935285845293506101009091046001600160a01b0316916124ee91869086908190840183828082843760009201919091525086939250506129cf9050565b6001600160a01b031614610ac85760405162461bcd60e51b815260206004820152601160248201527f496e76616c69645369676e61747572652e0000000000000000000000000000006044820152606401610904565b6001600160a01b0384166125a85760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b6064820152608401610904565b336125b881878761213d88612888565b6000848152602081815260408083206001600160a01b038a1684529091529020548381101561263c5760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201526939103a3930b739b332b960b11b6064820152608401610904565b6000858152602081815260408083206001600160a01b038b81168552925280832087850390559088168252812080548692906126799084906134b5565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46126d98288888888886128d3565b50505050505050565b6001600160a01b0384163b15611dba5760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906127269089908990889088908890600401613541565b6020604051808303816000875af1925050508015612761575060408051601f3d908101601f1916820190925261275e9181019061359f565b60015b6128175761276d6135bc565b806308c379a014156127a757506127826135d7565b8061278d57506127a9565b8060405162461bcd60e51b81526004016109049190612fce565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e204552433131353560448201527f526563656976657220696d706c656d656e7465720000000000000000000000006064820152608401610904565b6001600160e01b0319811663bc197c8160e01b146126d95760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b6064820152608401610904565b604080516001808252818301909252606091600091906020808301908036833701905050905082816000815181106128c2576128c2613484565b602090810291909101015292915050565b6001600160a01b0384163b15611dba5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906129179089908990889088908890600401613661565b6020604051808303816000875af1925050508015612952575060408051601f3d908101601f1916820190925261294f9181019061359f565b60015b61295e5761276d6135bc565b6001600160e01b0319811663f23a6e6160e01b146126d95760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b6064820152608401610904565b60008060006129de85856129eb565b91509150610cf781612a5b565b600080825160411415612a225760208301516040840151606085015160001a612a1687828585612c16565b94509450505050612a54565b825160401415612a4c5760208301516040840151612a41868383612d03565b935093505050612a54565b506000905060025b9250929050565b6000816004811115612a6f57612a6f6136a4565b1415612a785750565b6001816004811115612a8c57612a8c6136a4565b1415612ada5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610904565b6002816004811115612aee57612aee6136a4565b1415612b3c5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610904565b6003816004811115612b5057612b506136a4565b1415612ba95760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610904565b6004816004811115612bbd57612bbd6136a4565b14156109965760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610904565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612c4d5750600090506003612cfa565b8460ff16601b14158015612c6557508460ff16601c14155b15612c765750600090506004612cfa565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612cca573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612cf357600060019250925050612cfa565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831660ff84901c601b01612d3d87828885612c16565b935093505050935093915050565b828054612d57906133f2565b90600052602060002090601f016020900481019282612d795760008555612dbf565b82601f10612d9257805160ff1916838001178555612dbf565b82800160010185558215612dbf579182015b82811115612dbf578251825591602001919060010190612da4565b506111409291505b808211156111405760008155600101612dc7565b80356001600160a01b0381168114612df257600080fd5b919050565b60008060408385031215612e0a57600080fd5b612e1383612ddb565b946020939093013593505050565b6001600160e01b03198116811461099657600080fd5b600060208284031215612e4957600080fd5b8135612e5481612e21565b9392505050565b634e487b7160e01b600052604160045260246000fd5b601f8201601f1916810167ffffffffffffffff81118282101715612e9757612e97612e5b565b6040525050565b600067ffffffffffffffff831115612eb857612eb8612e5b565b604051612ecf601f8501601f191660200182612e71565b809150838152848484011115612ee457600080fd5b83836020830137600060208583010152509392505050565b600060208284031215612f0e57600080fd5b813567ffffffffffffffff811115612f2557600080fd5b8201601f81018413612f3657600080fd5b612f4584823560208401612e9e565b949350505050565b600060208284031215612f5f57600080fd5b612e5482612ddb565b600060208284031215612f7a57600080fd5b5035919050565b6000815180845260005b81811015612fa757602081850181015186830182015201612f8b565b81811115612fb9576000602083870101525b50601f01601f19169290920160200192915050565b602081526000612e546020830184612f81565b600067ffffffffffffffff821115612ffb57612ffb612e5b565b5060051b60200190565b600082601f83011261301657600080fd5b8135602061302382612fe1565b6040516130308282612e71565b83815260059390931b850182019282810191508684111561305057600080fd5b8286015b8481101561306b5780358352918301918301613054565b509695505050505050565b600082601f83011261308757600080fd5b612e5483833560208501612e9e565b600080600080600060a086880312156130ae57600080fd5b6130b786612ddb565b94506130c560208701612ddb565b9350604086013567ffffffffffffffff808211156130e257600080fd5b6130ee89838a01613005565b9450606088013591508082111561310457600080fd5b61311089838a01613005565b9350608088013591508082111561312657600080fd5b5061313388828901613076565b9150509295509295909350565b6000806040838503121561315357600080fd5b823567ffffffffffffffff8082111561316b57600080fd5b818501915085601f83011261317f57600080fd5b8135602061318c82612fe1565b6040516131998282612e71565b83815260059390931b85018201928281019150898411156131b957600080fd5b948201945b838610156131de576131cf86612ddb565b825294820194908201906131be565b965050860135925050808211156131f457600080fd5b5061320185828601613005565b9150509250929050565b600081518084526020808501945080840160005b8381101561323b5781518752958201959082019060010161321f565b509495945050505050565b602081526000612e54602083018461320b565b6000806040838503121561326c57600080fd5b61327583612ddb565b91506020830135801515811461328a57600080fd5b809150509250929050565b600080604083850312156132a857600080fd5b50508035926020909101359150565b600080604083850312156132ca57600080fd5b6132d383612ddb565b91506132e160208401612ddb565b90509250929050565b600080604083850312156132fd57600080fd5b823591506132e160208401612ddb565b6000806000806060858703121561332357600080fd5b8435935060208501359250604085013567ffffffffffffffff8082111561334957600080fd5b818701915087601f83011261335d57600080fd5b81358181111561336c57600080fd5b88602082850101111561337e57600080fd5b95989497505060200194505050565b600080600080600060a086880312156133a557600080fd5b6133ae86612ddb565b94506133bc60208701612ddb565b93506040860135925060608601359150608086013567ffffffffffffffff8111156133e657600080fd5b61313388828901613076565b600181811c9082168061340657607f821691505b6020821081141561342757634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561345d5761345d61342d565b500290565b60008261347f57634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052603260045260246000fd5b60006000198214156134ae576134ae61342d565b5060010190565b600082198211156134c8576134c861342d565b500190565b6000828210156134df576134df61342d565b500390565b634e487b7160e01b600052600160045260246000fd5b60408152600061350d604083018561320b565b828103602084015261351f818561320b565b95945050505050565b60006020828403121561353a57600080fd5b5051919050565b60006001600160a01b03808816835280871660208401525060a0604083015261356d60a083018661320b565b828103606084015261357f818661320b565b905082810360808401526135938185612f81565b98975050505050505050565b6000602082840312156135b157600080fd5b8151612e5481612e21565b600060033d11156122935760046000803e5060005160e01c90565b600060443d10156135e55790565b6040516003193d81016004833e81513d67ffffffffffffffff816024840111818411171561361557505050505090565b828501915081518181111561362d5750505050505090565b843d87010160208285010111156136475750505050505090565b61365660208286010187612e71565b509095945050505050565b60006001600160a01b03808816835280871660208401525084604083015283606083015260a0608083015261369960a0830184612f81565b979650505050505050565b634e487b7160e01b600052602160045260246000fdfea2646970667358221220be59a17eadd800c6f6ed62b81c550496fd2b4d80e5d1fb256a6c1433fd488d5464736f6c634300080a003368747470733a2f2f73747564696f2d7462642e696f2f746f6b656e732f64656661756c742e6a736f6e

Deployed Bytecode

0x6080604052600436106102fc5760003560e01c8063770b27431161018f578063b7c0007d116100e1578063ec596b721161008a578063f13a465111610064578063f13a465114610834578063f242432a1461084a578063f2fde38b1461086a57600080fd5b8063ec596b72146107ea578063ec607f7d1461080a578063f0292a031461081f57600080fd5b8063ce3e39c0116100bb578063ce3e39c014610749578063e985e9c514610769578063ec4d3206146107b257600080fd5b8063b7c0007d14610640578063bc70f53614610713578063c53468f01461072957600080fd5b8063978528c011610143578063a035b1fe1161011d578063a035b1fe146106cb578063a0712d68146106e0578063a22cb465146106f357600080fd5b8063978528c01461066b578063988275431461068b5780639dc29fac146106ab57600080fd5b80638da5cb5b116101745780638da5cb5b1461062257806391bbdb3f14610640578063973e9b8b1461065657600080fd5b8063770b2743146105f15780638d859f3e1461060757600080fd5b80633ccfd60b1161025357806363ef1627116101fc5780636d25d802116101d65780636d25d802146105ac5780636ede0418146105c7578063715018a6146105dc57600080fd5b806363ef162714610556578063649e2d981461056c5780636b6216ad1461058c57600080fd5b80634e38b49e1161022d5780634e38b49e146104ef5780635660f8511461050f5780635c975abb1461053c57600080fd5b80633ccfd60b1461049857806340a3d246146104ad5780634e1273f4146104c257600080fd5b80630e89341c116102b557806335ef4fb71161028f57806335ef4fb71461042f5780633a03171c1461046c5780633b3b502c1461048257600080fd5b80630e89341c146103cc57806318160ddd146103f95780632eb2c2d61461040f57600080fd5b806302fe5305116102e657806302fe53051461036457806303d41e0e1461038657806303d41eb6146103b657600080fd5b8062fdd58e1461030157806301ffc9a714610334575b600080fd5b34801561030d57600080fd5b5061032161031c366004612df7565b61088a565b6040519081526020015b60405180910390f35b34801561034057600080fd5b5061035461034f366004612e37565b610933565b604051901515815260200161032b565b34801561037057600080fd5b5061038461037f366004612efc565b610985565b005b34801561039257600080fd5b506103546103a1366004612f4d565b600d6020526000908152604090205460ff1681565b3480156103c257600080fd5b5061032160065481565b3480156103d857600080fd5b506103ec6103e7366004612f68565b610999565b60405161032b9190612fce565b34801561040557600080fd5b5061032160055481565b34801561041b57600080fd5b5061038461042a366004613096565b610a2d565b34801561043b57600080fd5b50600b546104549061010090046001600160a01b031681565b6040516001600160a01b03909116815260200161032b565b34801561047857600080fd5b5061032161271081565b34801561048e57600080fd5b506103216101f481565b3480156104a457600080fd5b50610384610acf565b3480156104b957600080fd5b50610384610b72565b3480156104ce57600080fd5b506104e26104dd366004613140565b610bc1565b60405161032b9190613246565b3480156104fb57600080fd5b5061038461050a366004612df7565b610cff565b34801561051b57600080fd5b5061032161052a366004612f4d565b600f6020526000908152604090205481565b34801561054857600080fd5b50600b546103549060ff1681565b34801561056257600080fd5b50610321600a5481565b34801561057857600080fd5b50610384610587366004613259565b610e99565b34801561059857600080fd5b506103846105a7366004612f68565b610f5a565b3480156105b857600080fd5b5061032166b1a2bc2ec5000081565b3480156105d357600080fd5b50610321600081565b3480156105e857600080fd5b5061038461109b565b3480156105fd57600080fd5b5061032160075481565b34801561061357600080fd5b5061032166d529ae9e86000081565b34801561062e57600080fd5b506003546001600160a01b0316610454565b34801561064c57600080fd5b506103216107d081565b34801561066257600080fd5b50610321611101565b34801561067757600080fd5b50610384610686366004612f4d565b611144565b34801561069757600080fd5b506103846106a6366004613295565b611215565b3480156106b757600080fd5b506103846106c6366004612df7565b611433565b3480156106d757600080fd5b50610321611465565b6103846106ee366004612f68565b611474565b3480156106ff57600080fd5b5061038461070e366004613259565b6115f9565b34801561071f57600080fd5b5061032160085481565b34801561073557600080fd5b50610384610744366004612f4d565b611604565b34801561075557600080fd5b50600c54610454906001600160a01b031681565b34801561077557600080fd5b506103546107843660046132b7565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b3480156107be57600080fd5b506103216107cd3660046132ea565b600e60209081526000928352604080842090915290825290205481565b3480156107f657600080fd5b5061038461080536600461330d565b6116c5565b34801561081657600080fd5b5061038461197a565b34801561082b57600080fd5b5061032160fa81565b34801561084057600080fd5b5061032160095481565b34801561085657600080fd5b5061038461086536600461338d565b61198a565b34801561087657600080fd5b50610384610885366004612f4d565b611a25565b60006001600160a01b03831661090d5760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201527f65726f206164647265737300000000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b03198216636cdb3d1360e11b148061096457506001600160e01b031982166303a24d0760e21b145b8061097f57506301ffc9a760e01b6001600160e01b03198316145b92915050565b61098d611aed565b61099681611b3c565b50565b6060600280546109a8906133f2565b80601f01602080910402602001604051908101604052809291908181526020018280546109d4906133f2565b8015610a215780601f106109f657610100808354040283529160200191610a21565b820191906000526020600020905b815481529060010190602001808311610a0457829003601f168201915b50505050509050919050565b6001600160a01b038516331480610a495750610a498533610784565b610abb5760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f742060448201527f6f776e6572206e6f7220617070726f76656400000000000000000000000000006064820152608401610904565b610ac88585858585611b4f565b5050505050565b610ad7611aed565b60006064610ae6476002613443565b610af09190613462565b604051909150733a6e4d326aeb315e85e3ac0a918361672842a4969082156108fc029083906000818181858888f19350505050158015610b34573d6000803e3d6000fd5b506003546040516001600160a01b03909116904780156108fc02916000818181858888f19350505050158015610b6e573d6000803e3d6000fd5b5050565b610b7a611aed565b600b5460405160ff90911615907fd5b03c283ba3144bd495b77b4ff94904a91e70bdad8d31c168f75335032bb0e990600090a2600b805460ff19811660ff90911615179055565b60608151835114610c3a5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e67746860448201527f206d69736d6174636800000000000000000000000000000000000000000000006064820152608401610904565b6000835167ffffffffffffffff811115610c5657610c56612e5b565b604051908082528060200260200182016040528015610c7f578160200160208202803683370190505b50905060005b8451811015610cf757610cca858281518110610ca357610ca3613484565b6020026020010151858381518110610cbd57610cbd613484565b602002602001015161088a565b828281518110610cdc57610cdc613484565b6020908102919091010152610cf08161349a565b9050610c85565b509392505050565b610d07611aed565b6001600160a01b038216610d5d5760405162461bcd60e51b815260206004820152601360248201527f5a65726f526563656976657241646472657373000000000000000000000000006044820152606401610904565b60008111610dad5760405162461bcd60e51b815260206004820152601360248201527f5a65726f546f6b656e73526571756573746564000000000000000000000000006044820152606401610904565b6000600a5411610dff5760405162461bcd60e51b815260206004820152601760248201527f5072656d61747572654d696e74696e6742794f776e65720000000000000000006044820152606401610904565b60085481600754610e1091906134b5565b1115610e5e5760405162461bcd60e51b815260206004820152601b60248201527f4d696e74696e6745786365656473506572696f645265736572766500000000006044820152606401610904565b8060066000828254610e7091906134b5565b925050819055508060076000828254610e8991906134b5565b90915550610b6e90508282611dc2565b610ea1611aed565b6001600160a01b038216610ef75760405162461bcd60e51b815260206004820152601160248201527f5a65726f4275726e6572416464726573730000000000000000000000000000006044820152606401610904565b604051811515906001600160a01b038416907fe558d5f78eb8c92164e82e4979fe0db54d4efafc9487a144873e94c6dc2b95e990600090a36001600160a01b03919091166000908152600d60205260409020805460ff1916911515919091179055565b610f62611aed565b600754811015610fb45760405162461bcd60e51b815260206004820152601960248201527f43616e6e6f74446563726561736542656c6f774d696e746564000000000000006044820152606401610904565b60085481106110055760405162461bcd60e51b815260206004820152601560248201527f43616e6e6f74496e6372656173655265736572766500000000000000000000006044820152606401610904565b600060095461271061101791906134cd565b905060006007548361102991906134cd565b600654611038906107d06134cd565b61104291906134cd565b8210905080156110945760405162461bcd60e51b815260206004820152601560248201527f4f776e65725265736572766556696f6c6174696f6e00000000000000000000006044820152606401610904565b5050600855565b6003546001600160a01b031633146110f55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610904565b6110ff6000611e88565b565b600a546000908152600e602090815260408083203384529091528120546001811115611138576111326001826134cd565b91505090565b600091505090565b5090565b61114c611aed565b6001600160a01b0381166111a25760405162461bcd60e51b815260206004820152601160248201527f5a65726f5369676e6572416464726573730000000000000000000000000000006044820152606401610904565b6040516001600160a01b038216907fcdce1685ca3c74783ce290cc78751ec5d06b00f5ef5eebbfb9f5c17e6b15c7c890600090a2600b80546001600160a01b03909216610100027fffffffffffffffffffffff0000000000000000000000000000000000000000ff909216919091179055565b61121d611aed565b6107d08160065461122e91906134b5565b111561127c5760405162461bcd60e51b815260206004820152601460248201527f4f776e65725265736572766545786365656465640000000000000000000000006044820152606401610904565b6009548210156112ce5760405162461bcd60e51b815260206004820152601a60248201527f436170556e64657243757272656e74466c6f6174696e674361700000000000006044820152606401610904565b6127108211156113205760405162461bcd60e51b815260206004820152600f60248201527f48617264436170457863656564656400000000000000000000000000000000006044820152606401610904565b61132c826127106134cd565b816006546107d061133d91906134cd565b61134791906134cd565b11156113955760405162461bcd60e51b815260206004820152601560248201527f4f776e65725265736572766556696f6c6174696f6e00000000000000000000006044820152606401610904565b80600554836113a491906134cd565b10156113f25760405162461bcd60e51b815260206004820152601d60248201527f5265736572766545786365656473546f6b656e73417661696c61626c650000006044820152606401610904565b60088190556000600781905560405183917f39a982ab2ffc33552709064cb21da6a6c60ce8f2def4898e2be63f0e4df7ccd491a26009829055610b6e611ee7565b61143b611efe565b61144782600083611f52565b610b6e61dead600083604051806020016040528060008152506120cc565b600061146f6121d6565b905090565b61147c612296565b600081116114cc5760405162461bcd60e51b815260206004820152601360248201527f5a65726f546f6b656e73526571756573746564000000000000000000000000006044820152606401610904565b6114d46122e9565b8111156115235760405162461bcd60e51b815260206004820152601960248201527f4d696e74696e6745786365656473466c6f6174696e67436170000000000000006044820152606401610904565b336000908152600f602052604090205460fa906115419083906134b5565b111561158f5760405162461bcd60e51b815260206004820152601b60248201527f4d696e74696e67457863656564734c69666574696d654c696d697400000000006044820152606401610904565b346115986121d6565b6115a29083613443565b146115ef5760405162461bcd60e51b815260206004820152601060248201527f496e76616c6964455448416d6f756e74000000000000000000000000000000006044820152606401610904565b6109963382611dc2565b610b6e338383612315565b61160c611aed565b6001600160a01b0381166116625760405162461bcd60e51b815260206004820152601560248201527f5a65726f43616c63756c61746f724164647265737300000000000000000000006044820152606401610904565b6040516001600160a01b038216907f794898c2025ae78c8926df14cfd38b64a6dc7f73331d13b0a85ae261cda4a93f90600090a2600c805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6116cd612296565b6116d93384848461240a565b600a546000908152600e602090815260408083203384529182905290912054611718576117078460016134b5565b336000908152602083905260409020555b33600090815260208290526040812054611734906001906134cd565b9050600081116117865760405162461bcd60e51b815260206004820152600e60248201527f4f75744f66416c6c6f77616e63650000000000000000000000000000000000006044820152606401610904565b600086156117945786611796565b815b9050600081116117a8576117a86134e4565b818111156117f85760405162461bcd60e51b815260206004820152601760248201527f4d696e74696e6745786365656473416c6c6f77616e63650000000000000000006044820152606401610904565b336000908152600f602052604090205460fa9061181590836134b5565b11156118635760405162461bcd60e51b815260206004820152601b60248201527f4d696e74696e67457863656564734c69666574696d654c696d697400000000006044820152606401610904565b600060075460085461187591906134cd565b600654611884906107d06134cd565b61188e91906134cd565b90506000816009546127106118a391906134cd565b6118ad91906134cd565b905060006118b96122e9565b905060006118c782846134b5565b9050808511156119195760405162461bcd60e51b815260206004820152601d60248201527f4d696e74696e6745786365656473417661696c61626c65537570706c790000006044820152606401610904565b8285116119265784611928565b825b6009600082825461193991906134b5565b9091555050336000908152602088905260408120805487929061195d9084906134cd565b9091555061196d90503386611dc2565b5050505050505050505050565b611982611aed565b6110ff611ee7565b6001600160a01b0385163314806119a657506119a68533610784565b611a185760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201527f20617070726f76656400000000000000000000000000000000000000000000006064820152608401610904565b610ac88585858585612544565b6003546001600160a01b03163314611a7f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610904565b6001600160a01b038116611ae45760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610904565b61099681611e88565b6003546001600160a01b031633146110ff5760405162461bcd60e51b8152602060048201526012602482015271556e617574686f72697a656441636365737360701b6044820152606401610904565b8051610b6e906002906020840190612d4b565b8151835114611bc65760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060448201527f6d69736d617463680000000000000000000000000000000000000000000000006064820152608401610904565b6001600160a01b038416611c2a5760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b6064820152608401610904565b3360005b8451811015611d54576000858281518110611c4b57611c4b613484565b602002602001015190506000858381518110611c6957611c69613484565b602090810291909101810151600084815280835260408082206001600160a01b038e168352909352919091205490915081811015611cfc5760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201526939103a3930b739b332b960b11b6064820152608401610904565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290611d399084906134b5565b9250508190555050505080611d4d9061349a565b9050611c2e565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611da49291906134fa565b60405180910390a4611dba8187878787876126e2565b505050505050565b60026004541415611e155760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610904565b60026004819055508060056000828254611e2f91906134b5565b90915550506001600160a01b0382166000908152600f602052604081208054839290611e5c9084906134b5565b92505081905550611e7f82600083604051806020016040528060008152506120cc565b50506001600455565b600380546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600a8054906000611ef78361349a565b9190505550565b336000908152600d602052604090205460ff166110ff5760405162461bcd60e51b8152602060048201526012602482015271556e617574686f72697a656441636365737360701b6044820152606401610904565b6001600160a01b038316611fb45760405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201526265737360e81b6064820152608401610904565b33611fe481856000611fc587612888565b611fce87612888565b5050604080516020810190915260009052505050565b6000838152602081815260408083206001600160a01b0388168452909152902054828110156120615760405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604482015263616e636560e01b6064820152608401610904565b6000848152602081815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b6001600160a01b03841661212c5760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610904565b336121468160008761213d88612888565b610ac888612888565b6000848152602081815260408083206001600160a01b0389168452909152812080548592906121769084906134b5565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610ac8816000878787876128d3565b600c546000906001600160a01b03161561226157600c60009054906101000a90046001600160a01b03166001600160a01b031663a035b1fe6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561223d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061146f9190613528565b6101f46005546122719190613462565b6122829066b1a2bc2ec50000613443565b61146f9066d529ae9e8600006134b5565b90565b600b5460ff16156110ff5760405162461bcd60e51b815260206004820152600e60248201527f436f6e74726163745061757365640000000000000000000000000000000000006044820152606401610904565b60006007546008546122fb91906134cd565b60055460095461230b91906134cd565b61146f91906134cd565b816001600160a01b0316836001600160a01b0316141561239d5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c2073746174757360448201527f20666f722073656c6600000000000000000000000000000000000000000000006064820152608401610904565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b600a546040516bffffffffffffffffffffffff19606087901b16602082015260348101919091526054810184905260009060740160408051601f198184030181529082905280516020918201207f19457468657265756d205369676e6564204d6573736167653a0a33320000000091830191909152603c820152605c0160408051808303601f190181528282528051602091820120600b54601f870183900483028501830190935285845293506101009091046001600160a01b0316916124ee91869086908190840183828082843760009201919091525086939250506129cf9050565b6001600160a01b031614610ac85760405162461bcd60e51b815260206004820152601160248201527f496e76616c69645369676e61747572652e0000000000000000000000000000006044820152606401610904565b6001600160a01b0384166125a85760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b6064820152608401610904565b336125b881878761213d88612888565b6000848152602081815260408083206001600160a01b038a1684529091529020548381101561263c5760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201526939103a3930b739b332b960b11b6064820152608401610904565b6000858152602081815260408083206001600160a01b038b81168552925280832087850390559088168252812080548692906126799084906134b5565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46126d98288888888886128d3565b50505050505050565b6001600160a01b0384163b15611dba5760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906127269089908990889088908890600401613541565b6020604051808303816000875af1925050508015612761575060408051601f3d908101601f1916820190925261275e9181019061359f565b60015b6128175761276d6135bc565b806308c379a014156127a757506127826135d7565b8061278d57506127a9565b8060405162461bcd60e51b81526004016109049190612fce565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e204552433131353560448201527f526563656976657220696d706c656d656e7465720000000000000000000000006064820152608401610904565b6001600160e01b0319811663bc197c8160e01b146126d95760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b6064820152608401610904565b604080516001808252818301909252606091600091906020808301908036833701905050905082816000815181106128c2576128c2613484565b602090810291909101015292915050565b6001600160a01b0384163b15611dba5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906129179089908990889088908890600401613661565b6020604051808303816000875af1925050508015612952575060408051601f3d908101601f1916820190925261294f9181019061359f565b60015b61295e5761276d6135bc565b6001600160e01b0319811663f23a6e6160e01b146126d95760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b6064820152608401610904565b60008060006129de85856129eb565b91509150610cf781612a5b565b600080825160411415612a225760208301516040840151606085015160001a612a1687828585612c16565b94509450505050612a54565b825160401415612a4c5760208301516040840151612a41868383612d03565b935093505050612a54565b506000905060025b9250929050565b6000816004811115612a6f57612a6f6136a4565b1415612a785750565b6001816004811115612a8c57612a8c6136a4565b1415612ada5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610904565b6002816004811115612aee57612aee6136a4565b1415612b3c5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610904565b6003816004811115612b5057612b506136a4565b1415612ba95760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610904565b6004816004811115612bbd57612bbd6136a4565b14156109965760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610904565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612c4d5750600090506003612cfa565b8460ff16601b14158015612c6557508460ff16601c14155b15612c765750600090506004612cfa565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612cca573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612cf357600060019250925050612cfa565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831660ff84901c601b01612d3d87828885612c16565b935093505050935093915050565b828054612d57906133f2565b90600052602060002090601f016020900481019282612d795760008555612dbf565b82601f10612d9257805160ff1916838001178555612dbf565b82800160010185558215612dbf579182015b82811115612dbf578251825591602001919060010190612da4565b506111409291505b808211156111405760008155600101612dc7565b80356001600160a01b0381168114612df257600080fd5b919050565b60008060408385031215612e0a57600080fd5b612e1383612ddb565b946020939093013593505050565b6001600160e01b03198116811461099657600080fd5b600060208284031215612e4957600080fd5b8135612e5481612e21565b9392505050565b634e487b7160e01b600052604160045260246000fd5b601f8201601f1916810167ffffffffffffffff81118282101715612e9757612e97612e5b565b6040525050565b600067ffffffffffffffff831115612eb857612eb8612e5b565b604051612ecf601f8501601f191660200182612e71565b809150838152848484011115612ee457600080fd5b83836020830137600060208583010152509392505050565b600060208284031215612f0e57600080fd5b813567ffffffffffffffff811115612f2557600080fd5b8201601f81018413612f3657600080fd5b612f4584823560208401612e9e565b949350505050565b600060208284031215612f5f57600080fd5b612e5482612ddb565b600060208284031215612f7a57600080fd5b5035919050565b6000815180845260005b81811015612fa757602081850181015186830182015201612f8b565b81811115612fb9576000602083870101525b50601f01601f19169290920160200192915050565b602081526000612e546020830184612f81565b600067ffffffffffffffff821115612ffb57612ffb612e5b565b5060051b60200190565b600082601f83011261301657600080fd5b8135602061302382612fe1565b6040516130308282612e71565b83815260059390931b850182019282810191508684111561305057600080fd5b8286015b8481101561306b5780358352918301918301613054565b509695505050505050565b600082601f83011261308757600080fd5b612e5483833560208501612e9e565b600080600080600060a086880312156130ae57600080fd5b6130b786612ddb565b94506130c560208701612ddb565b9350604086013567ffffffffffffffff808211156130e257600080fd5b6130ee89838a01613005565b9450606088013591508082111561310457600080fd5b61311089838a01613005565b9350608088013591508082111561312657600080fd5b5061313388828901613076565b9150509295509295909350565b6000806040838503121561315357600080fd5b823567ffffffffffffffff8082111561316b57600080fd5b818501915085601f83011261317f57600080fd5b8135602061318c82612fe1565b6040516131998282612e71565b83815260059390931b85018201928281019150898411156131b957600080fd5b948201945b838610156131de576131cf86612ddb565b825294820194908201906131be565b965050860135925050808211156131f457600080fd5b5061320185828601613005565b9150509250929050565b600081518084526020808501945080840160005b8381101561323b5781518752958201959082019060010161321f565b509495945050505050565b602081526000612e54602083018461320b565b6000806040838503121561326c57600080fd5b61327583612ddb565b91506020830135801515811461328a57600080fd5b809150509250929050565b600080604083850312156132a857600080fd5b50508035926020909101359150565b600080604083850312156132ca57600080fd5b6132d383612ddb565b91506132e160208401612ddb565b90509250929050565b600080604083850312156132fd57600080fd5b823591506132e160208401612ddb565b6000806000806060858703121561332357600080fd5b8435935060208501359250604085013567ffffffffffffffff8082111561334957600080fd5b818701915087601f83011261335d57600080fd5b81358181111561336c57600080fd5b88602082850101111561337e57600080fd5b95989497505060200194505050565b600080600080600060a086880312156133a557600080fd5b6133ae86612ddb565b94506133bc60208701612ddb565b93506040860135925060608601359150608086013567ffffffffffffffff8111156133e657600080fd5b61313388828901613076565b600181811c9082168061340657607f821691505b6020821081141561342757634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561345d5761345d61342d565b500290565b60008261347f57634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052603260045260246000fd5b60006000198214156134ae576134ae61342d565b5060010190565b600082198211156134c8576134c861342d565b500190565b6000828210156134df576134df61342d565b500390565b634e487b7160e01b600052600160045260246000fd5b60408152600061350d604083018561320b565b828103602084015261351f818561320b565b95945050505050565b60006020828403121561353a57600080fd5b5051919050565b60006001600160a01b03808816835280871660208401525060a0604083015261356d60a083018661320b565b828103606084015261357f818661320b565b905082810360808401526135938185612f81565b98975050505050505050565b6000602082840312156135b157600080fd5b8151612e5481612e21565b600060033d11156122935760046000803e5060005160e01c90565b600060443d10156135e55790565b6040516003193d81016004833e81513d67ffffffffffffffff816024840111818411171561361557505050505090565b828501915081518181111561362d5750505050505090565b843d87010160208285010111156136475750505050505090565b61365660208286010187612e71565b509095945050505050565b60006001600160a01b03808816835280871660208401525084604083015283606083015260a0608083015261369960a0830184612f81565b979650505050505050565b634e487b7160e01b600052602160045260246000fdfea2646970667358221220be59a17eadd800c6f6ed62b81c550496fd2b4d80e5d1fb256a6c1433fd488d5464736f6c634300080a0033

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.