ETH Price: $3,389.77 (+1.51%)

Token

Head Alpha (hAlpha)
 

Overview

Max Total Supply

694 hAlpha

Holders

359

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
0xced43e66c012b6932a253c477cdf52e898daf1e0
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:
headAlpha

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 500 runs

Other Settings:
default evmVersion
File 1 of 18 : AlphaHead.sol
// contracts/GameItems.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;


import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/strings.sol";
import "./KeyInterface.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";


contract headAlpha is KeyInterface, ReentrancyGuard {
    using Strings for uint256;

    struct AccessInfo {
        uint256 cost; 
        uint256 limit; 
        bool saleLive;
    }

    mapping (address => bool)     private admins;    
    mapping(uint256 => AccessInfo) accessInfo;
    uint256[] public accessIDs;
    uint256 public nextID = 0;
    IERC20 public erc20Token;


    constructor() ERC1155("https://game-api.headdao.com/_routes/tokens/1155/metadata/") {
        erc20Token = IERC20(0x6725363E565BAA1dda45d492810298ae0b25c4ac);
        m_Name = 'Head Alpha';
        m_Symbol = 'hAlpha';
        _addmonth(10000, 300, false);

    }

    function mintAccess(uint256 _amount, uint256 _type) external nonReentrant() {
        address msgsender = _msgSender();
        AccessInfo memory _info = accessInfo[_type];
        require(tx.origin == msgsender, "Only EOA");
        require(_info.saleLive,"Sale for this type is not active");
        require(totalSupply(_type) + _amount <= _info.limit,"Sale for this type is sold out");
        uint256 totalCost = _amount * _info.cost;        
        require(erc20Token.balanceOf(msgsender) >= totalCost, "Not enough $HEAD");
        erc20Token.transferFrom(_msgSender(), address(this), totalCost);
        _mint(msgsender, _type, _amount, "");

    }


    // Add Mint Change functions
    function addNewMonth(uint256 _cost, uint256 _limit, bool _live) external onlyAdmin {
        _addmonth(_cost,_limit,_live);
    }

    function addCustomAccess(uint256 _id, uint256 _cost, uint256 _limit, bool _live) external onlyAdmin {
        require(!exists(_id),"ID Already Exists");
        accessInfo[_id]  = AccessInfo(_cost * 10 ** 18, _limit, _live);
        accessIDs.push(_id);
        _mint(_msgSender(), _id, 1, "");
    }

    function setSaleStatus(uint256 _id, bool _status) external onlyAdmin {
        require(exists(_id),"ID Does not Exist");
        AccessInfo memory _info = accessInfo[_id];
        accessInfo[_id]  = AccessInfo(_info.cost, _info.limit, _status);
    }

    function setAccessPrice(uint256 _id, uint256 _cost) external onlyAdmin {
        require(exists(_id),"ID Does not Exist");
        AccessInfo memory _info = accessInfo[_id];
        accessInfo[_id]  = AccessInfo(_cost * 10 ** 18, _info.limit, _info.saleLive);
    }

    function setAccessLimit(uint256 _id, uint256 _limit) external onlyAdmin {
        require(exists(_id),"ID Does not Exist");
        AccessInfo memory _info = accessInfo[_id];
        accessInfo[_id]  = AccessInfo(_info.cost, _limit, _info.saleLive);
    }
    
    function _addmonth(uint256 _cost, uint256 _limit, bool _live) private {
        if (exists(nextID)) nextID++;
        accessInfo[nextID]  = AccessInfo(_cost * 10 ** 18, _limit, _live);
        accessIDs.push(nextID);
        _mint(_msgSender(), nextID, 1, "");
        nextID ++;
    }

    // Read Plan Information
    function getCost(uint256 _id) public view returns (uint256 cost) {
        AccessInfo memory _info = accessInfo[_id];
        cost = _info.cost;
    }

    function getSaleStatus(uint256 _id) public view returns (bool _status) {
        AccessInfo memory _info = accessInfo[_id];
        _status = _info.saleLive;
    }

    function getLimit(uint256 _id) public view returns (uint256 _limit) {
        AccessInfo memory _info = accessInfo[_id];
        _limit = _info.limit;
    }

    function nTypes() public view  returns (uint256) {
        return accessIDs.length;
    }

    function getAll() public view returns (uint256[] memory _accessIDs) {
        _accessIDs = accessIDs;
    }

    function getAccessInfo(uint256 _id) public view returns (AccessInfo memory _info) {
        _info = accessInfo[_id];
    }


    //  Admin Functions (Not Used Often)
    function setHeadAddress(address _head) external onlyAdmin {
       erc20Token = IERC20(_head);
    }
        
    function setURI(string memory newuri) external onlyAdmin {
        _setURI(newuri);
    }

    function addAdmin(address _address, bool status) public onlyAdmin {
        admins[_address] = status;
    }

    function withdrawTokens() external onlyAdmin {
        uint256 tokenSupply = erc20Token.balanceOf(address(this));
        erc20Token.transfer(msg.sender, tokenSupply);
    }

    
    // ETC
    function uri(uint256 _id) public view override returns (string memory) {
        require(totalSupply(_id) > 0, "URI: nonexistent token");
        return string(abi.encodePacked(super.uri(_id),_id.toString()));
    } 

    modifier onlyAdmin() {
        require(owner() == _msgSender() || admins[_msgSender()], "Only admins can call this");
        _;
    }


    
}

File 2 of 18 : KeyInterface.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

import '@openzeppelin/contracts/access/Ownable.sol';
import '@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Burnable.sol';
import '@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Pausable.sol';
import '@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol';

abstract contract KeyInterface is ERC1155Pausable, ERC1155Supply, ERC1155Burnable, Ownable {
    
    string public m_Name;
    string public m_Symbol;   
    
    function pause() external onlyOwner {
        _pause();
    }

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

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

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

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

    function _mint(
        address account,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual override(ERC1155) {
        super._mint(account, id, amount, data);
    }

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

    function _burn(
        address account,
        uint256 id,
        uint256 amount
    ) internal virtual override(ERC1155) {
        super._burn(account, id, amount);
    }

    function _burnBatch(
        address account,
        uint256[] memory ids,
        uint256[] memory amounts
    ) internal virtual override(ERC1155) {
        super._burnBatch(account, ids, amounts);
    }  

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

File 3 of 18 : strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 4 of 18 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

File 5 of 18 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 6 of 18 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 7 of 18 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 8 of 18 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

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

pragma solidity ^0.8.0;

import "../IERC1155.sol";

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

File 10 of 18 : ERC1155Supply.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC1155/extensions/ERC1155Supply.sol)

pragma solidity ^0.8.0;

import "../ERC1155.sol";

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

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

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

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

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

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

File 11 of 18 : ERC1155Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC1155/extensions/ERC1155Pausable.sol)

pragma solidity ^0.8.0;

import "../ERC1155.sol";
import "../../../security/Pausable.sol";

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

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

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

pragma solidity ^0.8.0;

import "../ERC1155.sol";

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

        _burn(account, id, value);
    }

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

        _burnBatch(account, ids, values);
    }
}

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

pragma solidity ^0.8.0;

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

/**
 * @dev _Available since v3.1._
 */
interface IERC1155Receiver is IERC165 {
    /**
        @dev Handles the receipt of a single ERC1155 token type. This function is
        called at the end of a `safeTransferFrom` after the balance has been updated.
        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 14 of 18 : IERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC1155/IERC1155.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

File 15 of 18 : ERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 16 of 18 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 17 of 18 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (security/Pausable.sol)

pragma solidity ^0.8.0;

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

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

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

    bool private _paused;

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

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

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

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

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

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

File 18 of 18 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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);
    }
}

Settings
{
  "remappings": [],
  "optimizer": {
    "enabled": true,
    "runs": 500
  },
  "evmVersion": "london",
  "libraries": {},
  "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":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"accessIDs","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"bool","name":"status","type":"bool"}],"name":"addAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_cost","type":"uint256"},{"internalType":"uint256","name":"_limit","type":"uint256"},{"internalType":"bool","name":"_live","type":"bool"}],"name":"addCustomAccess","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_cost","type":"uint256"},{"internalType":"uint256","name":"_limit","type":"uint256"},{"internalType":"bool","name":"_live","type":"bool"}],"name":"addNewMonth","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"burnBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"erc20Token","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"getAccessInfo","outputs":[{"components":[{"internalType":"uint256","name":"cost","type":"uint256"},{"internalType":"uint256","name":"limit","type":"uint256"},{"internalType":"bool","name":"saleLive","type":"bool"}],"internalType":"struct headAlpha.AccessInfo","name":"_info","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getAll","outputs":[{"internalType":"uint256[]","name":"_accessIDs","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"getCost","outputs":[{"internalType":"uint256","name":"cost","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"getLimit","outputs":[{"internalType":"uint256","name":"_limit","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"getSaleStatus","outputs":[{"internalType":"bool","name":"_status","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"m_Name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"m_Symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_type","type":"uint256"}],"name":"mintAccess","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"nTypes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"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":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_limit","type":"uint256"}],"name":"setAccessLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_cost","type":"uint256"}],"name":"setAccessPrice","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":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_head","type":"address"}],"name":"setHeadAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"bool","name":"_status","type":"bool"}],"name":"setSaleStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newuri","type":"string"}],"name":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawTokens","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526000600c553480156200001657600080fd5b506040518060600160405280603a81526020016200446c603a91396200003c81620000f9565b506003805460ff19169055620000523362000112565b6001600855600d80546001600160a01b031916736725363e565baa1dda45d492810298ae0b25c4ac17905560408051808201909152600a808252694865616420416c70686160b01b6020909201918252620000b0916006916200080f565b506040805180820190915260068082526568416c70686160d01b6020909201918252620000e0916007916200080f565b50620000f361271061012c600062000164565b62000b59565b80516200010e9060029060208401906200080f565b5050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600c54620001729062000274565b156200019057600c80549060006200018a8362000a63565b91905055505b604051806060016040528084670de0b6b3a7640000620001b19190620009af565b81526020808201859052831515604092830152600c80546000908152600a8352838120855181559285015160018085019190915594909301516002909201805460ff19169215159290921790915554600b805493840181559091527f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db990910155620002586200023d3390565b600c5460408051602081019091526000815260019062000294565b600c80549060006200026a8362000a63565b9190505550505050565b6000806200028d83620002b360201b620005801760201c565b1192915050565b620002ad84848484620002c560201b62001b831760201c565b50505050565b60009081526004602052604090205490565b6001600160a01b0384166200032b5760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b60648201526084015b60405180910390fd5b3362000351816000876200033f88620003ec565b6200034a88620003ec565b876200043a565b6000848152602081815260408083206001600160a01b0389168452909152812080548592906200038390849062000994565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4620003e5816000878787876200045d565b5050505050565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811062000429576200042962000a97565b602090810291909101015292915050565b620004558686868686866200064360201b62001c931760201c565b505050505050565b6200047c846001600160a01b03166200078460201b62001db71760201c565b15620004555760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190620004b8908990899088908890889060040162000938565b602060405180830381600087803b158015620004d357600080fd5b505af192505050801562000506575060408051601f3d908101601f191682019092526200050391810190620008b5565b60015b620005c7576200051562000aad565b806308c379a014156200055657506200052d62000aca565b806200053a575062000558565b8060405162461bcd60e51b81526004016200032291906200097f565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e204552433131353560448201527f526563656976657220696d706c656d656e746572000000000000000000000000606482015260840162000322565b6001600160e01b0319811663f23a6e6160e01b146200063a5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b606482015260840162000322565b50505050505050565b6200065e8686868686866200078a60201b62001dbd1760201c565b6001600160a01b038516620006f25760005b8351811015620006f0578281815181106200068f576200068f62000a97565b602002602001015160046000868481518110620006b057620006b062000a97565b602002602001015181526020019081526020016000206000828254620006d7919062000994565b90915550620006e890508162000a63565b905062000670565b505b6001600160a01b038416620004555760005b83518110156200063a5782818151811062000723576200072362000a97565b60200260200101516004600086848151811062000744576200074462000a97565b6020026020010151815260200190815260200160002060008282546200076b9190620009d1565b909155506200077c90508162000a63565b905062000704565b3b151590565b620007a58686868686866200045560201b62001daf1760201c565b60035460ff1615620004555760405162461bcd60e51b815260206004820152602c60248201527f455243313135355061757361626c653a20746f6b656e207472616e736665722060448201526b1dda1a5b19481c185d5cd95960a21b606482015260840162000322565b8280546200081d90620009eb565b90600052602060002090601f0160209004810192826200084157600085556200088c565b82601f106200085c57805160ff19168380011785556200088c565b828001600101855582156200088c579182015b828111156200088c5782518255916020019190600101906200086f565b506200089a9291506200089e565b5090565b5b808211156200089a57600081556001016200089f565b600060208284031215620008c857600080fd5b81516001600160e01b031981168114620008e157600080fd5b9392505050565b6000815180845260005b818110156200091057602081850181015186830182015201620008f2565b8181111562000923576000602083870101525b50601f01601f19169290920160200192915050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a0608082018190526000906200097490830184620008e8565b979650505050505050565b602081526000620008e16020830184620008e8565b60008219821115620009aa57620009aa62000a81565b500190565b6000816000190483118215151615620009cc57620009cc62000a81565b500290565b600082821015620009e657620009e662000a81565b500390565b600181811c9082168062000a0057607f821691505b6020821081141562000a2257634e487b7160e01b600052602260045260246000fd5b50919050565b601f8201601f191681016001600160401b038111828210171562000a5c57634e487b7160e01b600052604160045260246000fd5b6040525050565b600060001982141562000a7a5762000a7a62000a81565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b600060033d111562000ac75760046000803e5060005160e01c5b90565b600060443d101562000ad95790565b6040516003193d81016004833e81513d6001600160401b03808311602484018310171562000b0957505050505090565b828501915081518181111562000b225750505050505090565b843d870101602082850101111562000b3d5750505050505090565b62000b4e6020828601018762000a28565b509095945050505050565b6139038062000b696000396000f3fe608060405234801561001057600080fd5b506004361061027d5760003560e01c8063715018a611610156578063b54c5c31116100d3578063de14a38b11610097578063f242432a11610071578063f242432a1461064d578063f2fde38b14610660578063f5298aca1461067357600080fd5b8063de14a38b14610601578063e3d4ca0714610609578063e985e9c51461061157600080fd5b8063b54c5c311461055f578063bd85b03914610572578063be89cec614610592578063d254d2c6146105a5578063db9de37e146105ee57600080fd5b80638da5cb5b1161011a5780638da5cb5b1461050d57806395d89b411461051e5780639f4b70bc14610526578063a22cb46514610539578063a4230bd51461054c57600080fd5b8063715018a61461047f578063827d6320146104875780638456cb59146104d25780638a13eea7146104da5780638d8f2adb1461050557600080fd5b806335061e62116101ff5780634f558e79116101c35780635a4dd47d1161019d5780635a4dd47d146104145780635c975abb146104615780636b20c4541461046c57600080fd5b80634f558e79146103d757806353ed5143146103f957806355f804b31461040157600080fd5b806335061e621461038157806339e29c52146103945780633f4ba83a1461039c578063486cb174146103a45780634e1273f4146103b757600080fd5b80630e89341c116102465780630e89341c1461032c5780631e96917d1461033f5780632eb2c2d61461034857806333874f641461035b578063349c66511461036e57600080fd5b8062fdd58e1461028257806301ffc9a7146102a857806302fe5305146102cb578063065b51b5146102e057806306fdde0314610317575b600080fd5b6102956102903660046131f6565b610686565b6040519081526020015b60405180910390f35b6102bb6102b6366004613341565b61071d565b604051901515815260200161029f565b6102de6102d936600461337b565b61076f565b005b6102f36102ee3660046133c4565b6107dd565b6040805182518152602080840151908201529181015115159082015260600161029f565b61031f610841565b60405161029f919061362f565b61031f61033a3660046133c4565b6108d3565b610295600c5481565b6102de61035636600461303c565b61096b565b6102de61036936600461343d565b610a0d565b6102de61037c366004613476565b610a7f565b6102de61038f36600461341b565b610bf7565b61031f610d1d565b6102de610dab565b6102de6103b236600461341b565b610e0f565b6103ca6103c5366004613253565b610f64565b60405161029f91906135ee565b6102bb6103e53660046133c4565b600090815260046020526040902054151590565b6103ca61108e565b6102de61040f36600461337b565b6110e5565b6102956104223660046133c4565b6000908152600a60209081526040918290208251606081018452815480825260018301549382019390935260029091015460ff16151592019190915290565b60035460ff166102bb565b6102de61047a36600461314b565b61113f565b6102de6111c4565b6102956104953660046133c4565b6000908152600a6020908152604091829020825160608101845281548152600182015492810183905260029091015460ff16151592019190915290565b6102de611228565b600d546104ed906001600160a01b031681565b6040516001600160a01b03909116815260200161029f565b6102de61128a565b6005546001600160a01b03166104ed565b61031f6113f1565b6102de610534366004612fee565b611400565b6102de6105473660046131bf565b611491565b6102de61055a3660046131bf565b61149c565b6102de61056d3660046133f6565b611529565b6102956105803660046133c4565b60009081526004602052604090205490565b6102956105a03660046133c4565b611650565b6102bb6105b33660046133c4565b6000908152600a60209081526040918290208251606081018452815481526001820154928101929092526002015460ff161515910181905290565b6102de6105fc36600461341b565b611671565b600b54610295565b61031f6119a2565b6102bb61061f366004613009565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b6102de61065b3660046130e6565b6119af565b6102de61066e366004612fee565b611a36565b6102de610681366004613220565b611afe565b60006001600160a01b0383166106f75760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b03198216636cdb3d1360e11b148061074e57506001600160e01b031982166303a24d0760e21b145b8061076957506301ffc9a760e01b6001600160e01b03198316145b92915050565b6005546001600160a01b031633148061079757503360009081526009602052604090205460ff165b6107d15760405162461bcd60e51b815260206004820152601960248201526000805160206138ae83398151915260448201526064016106ee565b6107da81611e25565b50565b610803604051806060016040528060008152602001600081526020016000151581525090565b506000908152600a60209081526040918290208251606081018452815481526001820154928101929092526002015460ff1615159181019190915290565b606060068054610850906136f4565b80601f016020809104026020016040519081016040528092919081815260200182805461087c906136f4565b80156108c95780601f1061089e576101008083540402835291602001916108c9565b820191906000526020600020905b8154815290600101906020018083116108ac57829003601f168201915b5050505050905090565b600081815260046020526040812054606091106109325760405162461bcd60e51b815260206004820152601660248201527f5552493a206e6f6e6578697374656e7420746f6b656e0000000000000000000060448201526064016106ee565b61093b82611e38565b61094483611ecc565b60405160200161095592919061351e565b6040516020818303038152906040529050919050565b6001600160a01b0385163314806109875750610987853361061f565b6109f95760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f742060448201527f6f776e6572206e6f7220617070726f766564000000000000000000000000000060648201526084016106ee565b610a068585858585611fea565b5050505050565b6005546001600160a01b0316331480610a3557503360009081526009602052604090205460ff165b610a6f5760405162461bcd60e51b815260206004820152601960248201526000805160206138ae83398151915260448201526064016106ee565b610a7a83838361224e565b505050565b6005546001600160a01b0316331480610aa757503360009081526009602052604090205460ff165b610ae15760405162461bcd60e51b815260206004820152601960248201526000805160206138ae83398151915260448201526064016106ee565b60008481526004602052604090205415610b3d5760405162461bcd60e51b815260206004820152601160248201527f494420416c72656164792045786973747300000000000000000000000000000060448201526064016106ee565b604051806060016040528084670de0b6b3a7640000610b5c9190613692565b815260208082018590528315156040928301526000878152600a8252828120845181559184015160018084019190915593909201516002909101805460ff1916911515919091179055600b8054928301815590527f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db901849055610bf13385600160405180602001604052806000815250612349565b50505050565b6005546001600160a01b0316331480610c1f57503360009081526009602052604090205460ff165b610c595760405162461bcd60e51b815260206004820152601960248201526000805160206138ae83398151915260448201526064016106ee565b600082815260046020526040902054610ca85760405162461bcd60e51b8152602060048201526011602482015270125108111bd95cc81b9bdd08115e1a5cdd607a1b60448201526064016106ee565b6000828152600a60208181526040808420815160608082018452825482526001830180548387015260028401805460ff8116151585880190815287519485018852945184528388019a8b529351151595830195865299909752949093529251909255925190915551151560ff19909116179055565b60068054610d2a906136f4565b80601f0160208091040260200160405190810160405280929190818152602001828054610d56906136f4565b8015610da35780601f10610d7857610100808354040283529160200191610da3565b820191906000526020600020905b815481529060010190602001808311610d8657829003601f168201915b505050505081565b6005546001600160a01b03163314610e055760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106ee565b610e0d612355565b565b6005546001600160a01b0316331480610e3757503360009081526009602052604090205460ff165b610e715760405162461bcd60e51b815260206004820152601960248201526000805160206138ae83398151915260448201526064016106ee565b600082815260046020526040902054610ec05760405162461bcd60e51b8152602060048201526011602482015270125108111bd95cc81b9bdd08115e1a5cdd607a1b60448201526064016106ee565b6000828152600a60209081526040918290208251606080820185528254825260018301549382019390935260029091015460ff16151581840152825191820190925280610f1584670de0b6b3a7640000613692565b8152602083810151818301526040938401511515918401919091526000948552600a8152938290208151815593810151600185015501516002909201805460ff19169215159290921790915550565b60608151835114610fc95760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b60648201526084016106ee565b6000835167ffffffffffffffff811115610fe557610fe56137cd565b60405190808252806020026020018201604052801561100e578160200160208202803683370190505b50905060005b845181101561108657611059858281518110611032576110326137b7565b602002602001015185838151811061104c5761104c6137b7565b6020026020010151610686565b82828151811061106b5761106b6137b7565b602090810291909101015261107f8161375c565b9050611014565b509392505050565b6060600b8054806020026020016040519081016040528092919081815260200182805480156108c957602002820191906000526020600020905b8154815260200190600101908083116110c8575050505050905090565b6005546001600160a01b031633146107d15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106ee565b6001600160a01b03831633148061115b575061115b833361061f565b6111b95760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b60648201526084016106ee565b610a7a8383836123f1565b6005546001600160a01b0316331461121e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106ee565b610e0d60006123fc565b6005546001600160a01b031633146112825760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106ee565b610e0d61245b565b6005546001600160a01b03163314806112b257503360009081526009602052604090205460ff165b6112ec5760405162461bcd60e51b815260206004820152601960248201526000805160206138ae83398151915260448201526064016106ee565b600d546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b15801561133057600080fd5b505afa158015611344573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061136891906133dd565b600d5460405163a9059cbb60e01b8152336004820152602481018390529192506001600160a01b03169063a9059cbb90604401602060405180830381600087803b1580156113b557600080fd5b505af11580156113c9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113ed9190613324565b5050565b606060078054610850906136f4565b6005546001600160a01b031633148061142857503360009081526009602052604090205460ff165b6114625760405162461bcd60e51b815260206004820152601960248201526000805160206138ae83398151915260448201526064016106ee565b600d805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6113ed3383836124e3565b6005546001600160a01b03163314806114c457503360009081526009602052604090205460ff165b6114fe5760405162461bcd60e51b815260206004820152601960248201526000805160206138ae83398151915260448201526064016106ee565b6001600160a01b03919091166000908152600960205260409020805460ff1916911515919091179055565b6005546001600160a01b031633148061155157503360009081526009602052604090205460ff165b61158b5760405162461bcd60e51b815260206004820152601960248201526000805160206138ae83398151915260448201526064016106ee565b6000828152600460205260409020546115da5760405162461bcd60e51b8152602060048201526011602482015270125108111bd95cc81b9bdd08115e1a5cdd607a1b60448201526064016106ee565b6000828152600a602081815260408084208151606080820184528254825260018301805483870190815260028501805460ff81161515868901528751948501885294518452905183880190815299151595830195865299909752949093529251909255925190915551151560ff19909116179055565b600b818154811061166057600080fd5b600091825260209091200154905081565b600260085414156116c45760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016106ee565b600260088190556000828152600a60209081526040918290208251606081018452815481526001820154928101929092529092015460ff16151590820152339032821461173e5760405162461bcd60e51b81526020600482015260086024820152674f6e6c7920454f4160c01b60448201526064016106ee565b806040015161178f5760405162461bcd60e51b815260206004820181905260248201527f53616c6520666f7220746869732074797065206973206e6f742061637469766560448201526064016106ee565b8060200151846117ab8560009081526004602052604090205490565b6117b59190613666565b11156118035760405162461bcd60e51b815260206004820152601e60248201527f53616c6520666f722074686973207479706520697320736f6c64206f7574000060448201526064016106ee565b80516000906118129086613692565b600d546040516370a0823160e01b81526001600160a01b0386811660048301529293508392909116906370a082319060240160206040518083038186803b15801561185c57600080fd5b505afa158015611870573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061189491906133dd565b10156118e25760405162461bcd60e51b815260206004820152601060248201527f4e6f7420656e6f7567682024484541440000000000000000000000000000000060448201526064016106ee565b600d546001600160a01b03166323b872dd336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015230602482015260448101849052606401602060405180830381600087803b15801561194257600080fd5b505af1158015611956573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061197a9190613324565b5061199683858760405180602001604052806000815250612349565b50506001600855505050565b60078054610d2a906136f4565b6001600160a01b0385163314806119cb57506119cb853361061f565b611a295760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b60648201526084016106ee565b610a0685858585856125c4565b6005546001600160a01b03163314611a905760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106ee565b6001600160a01b038116611af55760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016106ee565b6107da816123fc565b6001600160a01b038316331480611b1a5750611b1a833361061f565b611b785760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b60648201526084016106ee565b610a7a838383612759565b6001600160a01b038416611be35760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b60648201526084016106ee565b33611c0381600087611bf488612764565b611bfd88612764565b876127af565b6000848152602081815260408083206001600160a01b038916845290915281208054859290611c33908490613666565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610a06816000878787876127bd565b611ca1868686868686611dbd565b6001600160a01b038516611d285760005b8351811015611d2657828181518110611ccd57611ccd6137b7565b602002602001015160046000868481518110611ceb57611ceb6137b7565b602002602001015181526020019081526020016000206000828254611d109190613666565b90915550611d1f90508161375c565b9050611cb2565b505b6001600160a01b038416611daf5760005b8351811015611dad57828181518110611d5457611d546137b7565b602002602001015160046000868481518110611d7257611d726137b7565b602002602001015181526020019081526020016000206000828254611d9791906136b1565b90915550611da690508161375c565b9050611d39565b505b505050505050565b3b151590565b60035460ff1615611daf5760405162461bcd60e51b815260206004820152602c60248201527f455243313135355061757361626c653a20746f6b656e207472616e736665722060448201526b1dda1a5b19481c185d5cd95960a21b60648201526084016106ee565b80516113ed906002906020840190612e3d565b606060028054611e47906136f4565b80601f0160208091040260200160405190810160405280929190818152602001828054611e73906136f4565b8015611ec05780601f10611e9557610100808354040283529160200191611ec0565b820191906000526020600020905b815481529060010190602001808311611ea357829003601f168201915b50505050509050919050565b606081611ef05750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611f1a5780611f048161375c565b9150611f139050600a8361367e565b9150611ef4565b60008167ffffffffffffffff811115611f3557611f356137cd565b6040519080825280601f01601f191660200182016040528015611f5f576020820181803683370190505b5090505b8415611fe257611f746001836136b1565b9150611f81600a86613777565b611f8c906030613666565b60f81b818381518110611fa157611fa16137b7565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350611fdb600a8661367e565b9450611f63565b949350505050565b815183511461204c5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b60648201526084016106ee565b6001600160a01b0384166120b05760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b60648201526084016106ee565b336120bf8187878787876127af565b60005b84518110156121e85760008582815181106120df576120df6137b7565b6020026020010151905060008583815181106120fd576120fd6137b7565b602090810291909101810151600084815280835260408082206001600160a01b038e1683529093529190912054909150818110156121905760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201526939103a3930b739b332b960b11b60648201526084016106ee565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b168252812080548492906121cd908490613666565b92505081905550505050806121e19061375c565b90506120c2565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051612238929190613601565b60405180910390a4611daf818787878787612972565b600c546000908152600460205260409020541561227b57600c80549060006122758361375c565b91905055505b604051806060016040528084670de0b6b3a764000061229a9190613692565b81526020808201859052831515604092830152600c80546000908152600a83528381208551815585840151600180830191909155958501516002909101805460ff19169115159190911790559054600b805480870182559083527f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db9018190558351928301909352815261232f92339291612349565b600c805490600061233f8361375c565b9190505550505050565b610bf184848484611b83565b60035460ff166123a75760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f742070617573656400000000000000000000000060448201526064016106ee565b6003805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b610a7a838383612a7d565b600580546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60035460ff16156124ae5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a207061757365640000000000000000000000000000000060448201526064016106ee565b6003805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586123d43390565b816001600160a01b0316836001600160a01b031614156125575760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b60648201526084016106ee565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b0384166126285760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b60648201526084016106ee565b33612638818787611bf488612764565b6000848152602081815260408083206001600160a01b038a168452909152902054838110156126bc5760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201526939103a3930b739b332b960b11b60648201526084016106ee565b6000858152602081815260408083206001600160a01b038b81168552925280832087850390559088168252812080548692906126f9908490613666565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4611dad8288888888886127bd565b610a7a838383612cc4565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061279e5761279e6137b7565b602090810291909101015292915050565b611daf868686868686611c93565b6001600160a01b0384163b15611daf5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e619061280190899089908890889088906004016135ab565b602060405180830381600087803b15801561281b57600080fd5b505af192505050801561284b575060408051601f3d908101601f191682019092526128489181019061335e565b60015b612901576128576137e3565b806308c379a01415612891575061286c6137ff565b806128775750612893565b8060405162461bcd60e51b81526004016106ee919061362f565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e204552433131353560448201527f526563656976657220696d706c656d656e74657200000000000000000000000060648201526084016106ee565b6001600160e01b0319811663f23a6e6160e01b14611dad5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b60648201526084016106ee565b6001600160a01b0384163b15611daf5760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906129b6908990899088908890889060040161354d565b602060405180830381600087803b1580156129d057600080fd5b505af1925050508015612a00575060408051601f3d908101601f191682019092526129fd9181019061335e565b60015b612a0c576128576137e3565b6001600160e01b0319811663bc197c8160e01b14611dad5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b60648201526084016106ee565b6001600160a01b038316612adf5760405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201526265737360e81b60648201526084016106ee565b8051825114612b415760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b60648201526084016106ee565b6000339050612b64818560008686604051806020016040528060008152506127af565b60005b8351811015612c65576000848281518110612b8457612b846137b7565b602002602001015190506000848381518110612ba257612ba26137b7565b602090810291909101810151600084815280835260408082206001600160a01b038c168352909352919091205490915081811015612c2e5760405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604482015263616e636560e01b60648201526084016106ee565b6000928352602083815260408085206001600160a01b038b1686529091529092209103905580612c5d8161375c565b915050612b67565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051612cb6929190613601565b60405180910390a450505050565b6001600160a01b038316612d265760405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201526265737360e81b60648201526084016106ee565b33612d5581856000612d3787612764565b612d4087612764565b604051806020016040528060008152506127af565b6000838152602081815260408083206001600160a01b038816845290915290205482811015612dd25760405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604482015263616e636560e01b60648201526084016106ee565b6000848152602081815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b828054612e49906136f4565b90600052602060002090601f016020900481019282612e6b5760008555612eb1565b82601f10612e8457805160ff1916838001178555612eb1565b82800160010185558215612eb1579182015b82811115612eb1578251825591602001919060010190612e96565b50612ebd929150612ec1565b5090565b5b80821115612ebd5760008155600101612ec2565b600067ffffffffffffffff831115612ef057612ef06137cd565b604051612f07601f8501601f19166020018261372f565b809150838152848484011115612f1c57600080fd5b83836020830137600060208583010152509392505050565b80356001600160a01b0381168114612f4b57600080fd5b919050565b600082601f830112612f6157600080fd5b81356020612f6e82613642565b604051612f7b828261372f565b8381528281019150858301600585901b87018401881015612f9b57600080fd5b60005b85811015612fba57813584529284019290840190600101612f9e565b5090979650505050505050565b600082601f830112612fd857600080fd5b612fe783833560208501612ed6565b9392505050565b60006020828403121561300057600080fd5b612fe782612f34565b6000806040838503121561301c57600080fd5b61302583612f34565b915061303360208401612f34565b90509250929050565b600080600080600060a0868803121561305457600080fd5b61305d86612f34565b945061306b60208701612f34565b9350604086013567ffffffffffffffff8082111561308857600080fd5b61309489838a01612f50565b945060608801359150808211156130aa57600080fd5b6130b689838a01612f50565b935060808801359150808211156130cc57600080fd5b506130d988828901612fc7565b9150509295509295909350565b600080600080600060a086880312156130fe57600080fd5b61310786612f34565b945061311560208701612f34565b93506040860135925060608601359150608086013567ffffffffffffffff81111561313f57600080fd5b6130d988828901612fc7565b60008060006060848603121561316057600080fd5b61316984612f34565b9250602084013567ffffffffffffffff8082111561318657600080fd5b61319287838801612f50565b935060408601359150808211156131a857600080fd5b506131b586828701612f50565b9150509250925092565b600080604083850312156131d257600080fd5b6131db83612f34565b915060208301356131eb81613889565b809150509250929050565b6000806040838503121561320957600080fd5b61321283612f34565b946020939093013593505050565b60008060006060848603121561323557600080fd5b61323e84612f34565b95602085013595506040909401359392505050565b6000806040838503121561326657600080fd5b823567ffffffffffffffff8082111561327e57600080fd5b818501915085601f83011261329257600080fd5b8135602061329f82613642565b6040516132ac828261372f565b8381528281019150858301600585901b870184018b10156132cc57600080fd5b600096505b848710156132f6576132e281612f34565b8352600196909601959183019183016132d1565b509650508601359250508082111561330d57600080fd5b5061331a85828601612f50565b9150509250929050565b60006020828403121561333657600080fd5b8151612fe781613889565b60006020828403121561335357600080fd5b8135612fe781613897565b60006020828403121561337057600080fd5b8151612fe781613897565b60006020828403121561338d57600080fd5b813567ffffffffffffffff8111156133a457600080fd5b8201601f810184136133b557600080fd5b611fe284823560208401612ed6565b6000602082840312156133d657600080fd5b5035919050565b6000602082840312156133ef57600080fd5b5051919050565b6000806040838503121561340957600080fd5b8235915060208301356131eb81613889565b6000806040838503121561342e57600080fd5b50508035926020909101359150565b60008060006060848603121561345257600080fd5b8335925060208401359150604084013561346b81613889565b809150509250925092565b6000806000806080858703121561348c57600080fd5b84359350602085013592506040850135915060608501356134ac81613889565b939692955090935050565b600081518084526020808501945080840160005b838110156134e7578151875295820195908201906001016134cb565b509495945050505050565b6000815180845261350a8160208601602086016136c8565b601f01601f19169290920160200192915050565b600083516135308184602088016136c8565b8351908301906135448183602088016136c8565b01949350505050565b60006001600160a01b03808816835280871660208401525060a0604083015261357960a08301866134b7565b828103606084015261358b81866134b7565b9050828103608084015261359f81856134f2565b98975050505050505050565b60006001600160a01b03808816835280871660208401525084604083015283606083015260a060808301526135e360a08301846134f2565b979650505050505050565b602081526000612fe760208301846134b7565b60408152600061361460408301856134b7565b828103602084015261362681856134b7565b95945050505050565b602081526000612fe760208301846134f2565b600067ffffffffffffffff82111561365c5761365c6137cd565b5060051b60200190565b600082198211156136795761367961378b565b500190565b60008261368d5761368d6137a1565b500490565b60008160001904831182151516156136ac576136ac61378b565b500290565b6000828210156136c3576136c361378b565b500390565b60005b838110156136e35781810151838201526020016136cb565b83811115610bf15750506000910152565b600181811c9082168061370857607f821691505b6020821081141561372957634e487b7160e01b600052602260045260246000fd5b50919050565b601f8201601f1916810167ffffffffffffffff81118282101715613755576137556137cd565b6040525050565b60006000198214156137705761377061378b565b5060010190565b600082613786576137866137a1565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d11156137fc5760046000803e5060005160e01c5b90565b600060443d101561380d5790565b6040516003193d81016004833e81513d67ffffffffffffffff816024840111818411171561383d57505050505090565b82850191508151818111156138555750505050505090565b843d870101602082850101111561386f5750505050505090565b61387e6020828601018761372f565b509095945050505050565b80151581146107da57600080fd5b6001600160e01b0319811681146107da57600080fdfe4f6e6c792061646d696e732063616e2063616c6c207468697300000000000000a2646970667358221220500865a67cf02742948b35d012574c33018861076efd35a714cb01575aa73a1f64736f6c6343000807003368747470733a2f2f67616d652d6170692e6865616464616f2e636f6d2f5f726f757465732f746f6b656e732f313135352f6d657461646174612f

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061027d5760003560e01c8063715018a611610156578063b54c5c31116100d3578063de14a38b11610097578063f242432a11610071578063f242432a1461064d578063f2fde38b14610660578063f5298aca1461067357600080fd5b8063de14a38b14610601578063e3d4ca0714610609578063e985e9c51461061157600080fd5b8063b54c5c311461055f578063bd85b03914610572578063be89cec614610592578063d254d2c6146105a5578063db9de37e146105ee57600080fd5b80638da5cb5b1161011a5780638da5cb5b1461050d57806395d89b411461051e5780639f4b70bc14610526578063a22cb46514610539578063a4230bd51461054c57600080fd5b8063715018a61461047f578063827d6320146104875780638456cb59146104d25780638a13eea7146104da5780638d8f2adb1461050557600080fd5b806335061e62116101ff5780634f558e79116101c35780635a4dd47d1161019d5780635a4dd47d146104145780635c975abb146104615780636b20c4541461046c57600080fd5b80634f558e79146103d757806353ed5143146103f957806355f804b31461040157600080fd5b806335061e621461038157806339e29c52146103945780633f4ba83a1461039c578063486cb174146103a45780634e1273f4146103b757600080fd5b80630e89341c116102465780630e89341c1461032c5780631e96917d1461033f5780632eb2c2d61461034857806333874f641461035b578063349c66511461036e57600080fd5b8062fdd58e1461028257806301ffc9a7146102a857806302fe5305146102cb578063065b51b5146102e057806306fdde0314610317575b600080fd5b6102956102903660046131f6565b610686565b6040519081526020015b60405180910390f35b6102bb6102b6366004613341565b61071d565b604051901515815260200161029f565b6102de6102d936600461337b565b61076f565b005b6102f36102ee3660046133c4565b6107dd565b6040805182518152602080840151908201529181015115159082015260600161029f565b61031f610841565b60405161029f919061362f565b61031f61033a3660046133c4565b6108d3565b610295600c5481565b6102de61035636600461303c565b61096b565b6102de61036936600461343d565b610a0d565b6102de61037c366004613476565b610a7f565b6102de61038f36600461341b565b610bf7565b61031f610d1d565b6102de610dab565b6102de6103b236600461341b565b610e0f565b6103ca6103c5366004613253565b610f64565b60405161029f91906135ee565b6102bb6103e53660046133c4565b600090815260046020526040902054151590565b6103ca61108e565b6102de61040f36600461337b565b6110e5565b6102956104223660046133c4565b6000908152600a60209081526040918290208251606081018452815480825260018301549382019390935260029091015460ff16151592019190915290565b60035460ff166102bb565b6102de61047a36600461314b565b61113f565b6102de6111c4565b6102956104953660046133c4565b6000908152600a6020908152604091829020825160608101845281548152600182015492810183905260029091015460ff16151592019190915290565b6102de611228565b600d546104ed906001600160a01b031681565b6040516001600160a01b03909116815260200161029f565b6102de61128a565b6005546001600160a01b03166104ed565b61031f6113f1565b6102de610534366004612fee565b611400565b6102de6105473660046131bf565b611491565b6102de61055a3660046131bf565b61149c565b6102de61056d3660046133f6565b611529565b6102956105803660046133c4565b60009081526004602052604090205490565b6102956105a03660046133c4565b611650565b6102bb6105b33660046133c4565b6000908152600a60209081526040918290208251606081018452815481526001820154928101929092526002015460ff161515910181905290565b6102de6105fc36600461341b565b611671565b600b54610295565b61031f6119a2565b6102bb61061f366004613009565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b6102de61065b3660046130e6565b6119af565b6102de61066e366004612fee565b611a36565b6102de610681366004613220565b611afe565b60006001600160a01b0383166106f75760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b03198216636cdb3d1360e11b148061074e57506001600160e01b031982166303a24d0760e21b145b8061076957506301ffc9a760e01b6001600160e01b03198316145b92915050565b6005546001600160a01b031633148061079757503360009081526009602052604090205460ff165b6107d15760405162461bcd60e51b815260206004820152601960248201526000805160206138ae83398151915260448201526064016106ee565b6107da81611e25565b50565b610803604051806060016040528060008152602001600081526020016000151581525090565b506000908152600a60209081526040918290208251606081018452815481526001820154928101929092526002015460ff1615159181019190915290565b606060068054610850906136f4565b80601f016020809104026020016040519081016040528092919081815260200182805461087c906136f4565b80156108c95780601f1061089e576101008083540402835291602001916108c9565b820191906000526020600020905b8154815290600101906020018083116108ac57829003601f168201915b5050505050905090565b600081815260046020526040812054606091106109325760405162461bcd60e51b815260206004820152601660248201527f5552493a206e6f6e6578697374656e7420746f6b656e0000000000000000000060448201526064016106ee565b61093b82611e38565b61094483611ecc565b60405160200161095592919061351e565b6040516020818303038152906040529050919050565b6001600160a01b0385163314806109875750610987853361061f565b6109f95760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f742060448201527f6f776e6572206e6f7220617070726f766564000000000000000000000000000060648201526084016106ee565b610a068585858585611fea565b5050505050565b6005546001600160a01b0316331480610a3557503360009081526009602052604090205460ff165b610a6f5760405162461bcd60e51b815260206004820152601960248201526000805160206138ae83398151915260448201526064016106ee565b610a7a83838361224e565b505050565b6005546001600160a01b0316331480610aa757503360009081526009602052604090205460ff165b610ae15760405162461bcd60e51b815260206004820152601960248201526000805160206138ae83398151915260448201526064016106ee565b60008481526004602052604090205415610b3d5760405162461bcd60e51b815260206004820152601160248201527f494420416c72656164792045786973747300000000000000000000000000000060448201526064016106ee565b604051806060016040528084670de0b6b3a7640000610b5c9190613692565b815260208082018590528315156040928301526000878152600a8252828120845181559184015160018084019190915593909201516002909101805460ff1916911515919091179055600b8054928301815590527f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db901849055610bf13385600160405180602001604052806000815250612349565b50505050565b6005546001600160a01b0316331480610c1f57503360009081526009602052604090205460ff165b610c595760405162461bcd60e51b815260206004820152601960248201526000805160206138ae83398151915260448201526064016106ee565b600082815260046020526040902054610ca85760405162461bcd60e51b8152602060048201526011602482015270125108111bd95cc81b9bdd08115e1a5cdd607a1b60448201526064016106ee565b6000828152600a60208181526040808420815160608082018452825482526001830180548387015260028401805460ff8116151585880190815287519485018852945184528388019a8b529351151595830195865299909752949093529251909255925190915551151560ff19909116179055565b60068054610d2a906136f4565b80601f0160208091040260200160405190810160405280929190818152602001828054610d56906136f4565b8015610da35780601f10610d7857610100808354040283529160200191610da3565b820191906000526020600020905b815481529060010190602001808311610d8657829003601f168201915b505050505081565b6005546001600160a01b03163314610e055760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106ee565b610e0d612355565b565b6005546001600160a01b0316331480610e3757503360009081526009602052604090205460ff165b610e715760405162461bcd60e51b815260206004820152601960248201526000805160206138ae83398151915260448201526064016106ee565b600082815260046020526040902054610ec05760405162461bcd60e51b8152602060048201526011602482015270125108111bd95cc81b9bdd08115e1a5cdd607a1b60448201526064016106ee565b6000828152600a60209081526040918290208251606080820185528254825260018301549382019390935260029091015460ff16151581840152825191820190925280610f1584670de0b6b3a7640000613692565b8152602083810151818301526040938401511515918401919091526000948552600a8152938290208151815593810151600185015501516002909201805460ff19169215159290921790915550565b60608151835114610fc95760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b60648201526084016106ee565b6000835167ffffffffffffffff811115610fe557610fe56137cd565b60405190808252806020026020018201604052801561100e578160200160208202803683370190505b50905060005b845181101561108657611059858281518110611032576110326137b7565b602002602001015185838151811061104c5761104c6137b7565b6020026020010151610686565b82828151811061106b5761106b6137b7565b602090810291909101015261107f8161375c565b9050611014565b509392505050565b6060600b8054806020026020016040519081016040528092919081815260200182805480156108c957602002820191906000526020600020905b8154815260200190600101908083116110c8575050505050905090565b6005546001600160a01b031633146107d15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106ee565b6001600160a01b03831633148061115b575061115b833361061f565b6111b95760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b60648201526084016106ee565b610a7a8383836123f1565b6005546001600160a01b0316331461121e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106ee565b610e0d60006123fc565b6005546001600160a01b031633146112825760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106ee565b610e0d61245b565b6005546001600160a01b03163314806112b257503360009081526009602052604090205460ff165b6112ec5760405162461bcd60e51b815260206004820152601960248201526000805160206138ae83398151915260448201526064016106ee565b600d546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b15801561133057600080fd5b505afa158015611344573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061136891906133dd565b600d5460405163a9059cbb60e01b8152336004820152602481018390529192506001600160a01b03169063a9059cbb90604401602060405180830381600087803b1580156113b557600080fd5b505af11580156113c9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113ed9190613324565b5050565b606060078054610850906136f4565b6005546001600160a01b031633148061142857503360009081526009602052604090205460ff165b6114625760405162461bcd60e51b815260206004820152601960248201526000805160206138ae83398151915260448201526064016106ee565b600d805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6113ed3383836124e3565b6005546001600160a01b03163314806114c457503360009081526009602052604090205460ff165b6114fe5760405162461bcd60e51b815260206004820152601960248201526000805160206138ae83398151915260448201526064016106ee565b6001600160a01b03919091166000908152600960205260409020805460ff1916911515919091179055565b6005546001600160a01b031633148061155157503360009081526009602052604090205460ff165b61158b5760405162461bcd60e51b815260206004820152601960248201526000805160206138ae83398151915260448201526064016106ee565b6000828152600460205260409020546115da5760405162461bcd60e51b8152602060048201526011602482015270125108111bd95cc81b9bdd08115e1a5cdd607a1b60448201526064016106ee565b6000828152600a602081815260408084208151606080820184528254825260018301805483870190815260028501805460ff81161515868901528751948501885294518452905183880190815299151595830195865299909752949093529251909255925190915551151560ff19909116179055565b600b818154811061166057600080fd5b600091825260209091200154905081565b600260085414156116c45760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016106ee565b600260088190556000828152600a60209081526040918290208251606081018452815481526001820154928101929092529092015460ff16151590820152339032821461173e5760405162461bcd60e51b81526020600482015260086024820152674f6e6c7920454f4160c01b60448201526064016106ee565b806040015161178f5760405162461bcd60e51b815260206004820181905260248201527f53616c6520666f7220746869732074797065206973206e6f742061637469766560448201526064016106ee565b8060200151846117ab8560009081526004602052604090205490565b6117b59190613666565b11156118035760405162461bcd60e51b815260206004820152601e60248201527f53616c6520666f722074686973207479706520697320736f6c64206f7574000060448201526064016106ee565b80516000906118129086613692565b600d546040516370a0823160e01b81526001600160a01b0386811660048301529293508392909116906370a082319060240160206040518083038186803b15801561185c57600080fd5b505afa158015611870573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061189491906133dd565b10156118e25760405162461bcd60e51b815260206004820152601060248201527f4e6f7420656e6f7567682024484541440000000000000000000000000000000060448201526064016106ee565b600d546001600160a01b03166323b872dd336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015230602482015260448101849052606401602060405180830381600087803b15801561194257600080fd5b505af1158015611956573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061197a9190613324565b5061199683858760405180602001604052806000815250612349565b50506001600855505050565b60078054610d2a906136f4565b6001600160a01b0385163314806119cb57506119cb853361061f565b611a295760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b60648201526084016106ee565b610a0685858585856125c4565b6005546001600160a01b03163314611a905760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106ee565b6001600160a01b038116611af55760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016106ee565b6107da816123fc565b6001600160a01b038316331480611b1a5750611b1a833361061f565b611b785760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b60648201526084016106ee565b610a7a838383612759565b6001600160a01b038416611be35760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b60648201526084016106ee565b33611c0381600087611bf488612764565b611bfd88612764565b876127af565b6000848152602081815260408083206001600160a01b038916845290915281208054859290611c33908490613666565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610a06816000878787876127bd565b611ca1868686868686611dbd565b6001600160a01b038516611d285760005b8351811015611d2657828181518110611ccd57611ccd6137b7565b602002602001015160046000868481518110611ceb57611ceb6137b7565b602002602001015181526020019081526020016000206000828254611d109190613666565b90915550611d1f90508161375c565b9050611cb2565b505b6001600160a01b038416611daf5760005b8351811015611dad57828181518110611d5457611d546137b7565b602002602001015160046000868481518110611d7257611d726137b7565b602002602001015181526020019081526020016000206000828254611d9791906136b1565b90915550611da690508161375c565b9050611d39565b505b505050505050565b3b151590565b60035460ff1615611daf5760405162461bcd60e51b815260206004820152602c60248201527f455243313135355061757361626c653a20746f6b656e207472616e736665722060448201526b1dda1a5b19481c185d5cd95960a21b60648201526084016106ee565b80516113ed906002906020840190612e3d565b606060028054611e47906136f4565b80601f0160208091040260200160405190810160405280929190818152602001828054611e73906136f4565b8015611ec05780601f10611e9557610100808354040283529160200191611ec0565b820191906000526020600020905b815481529060010190602001808311611ea357829003601f168201915b50505050509050919050565b606081611ef05750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611f1a5780611f048161375c565b9150611f139050600a8361367e565b9150611ef4565b60008167ffffffffffffffff811115611f3557611f356137cd565b6040519080825280601f01601f191660200182016040528015611f5f576020820181803683370190505b5090505b8415611fe257611f746001836136b1565b9150611f81600a86613777565b611f8c906030613666565b60f81b818381518110611fa157611fa16137b7565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350611fdb600a8661367e565b9450611f63565b949350505050565b815183511461204c5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b60648201526084016106ee565b6001600160a01b0384166120b05760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b60648201526084016106ee565b336120bf8187878787876127af565b60005b84518110156121e85760008582815181106120df576120df6137b7565b6020026020010151905060008583815181106120fd576120fd6137b7565b602090810291909101810151600084815280835260408082206001600160a01b038e1683529093529190912054909150818110156121905760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201526939103a3930b739b332b960b11b60648201526084016106ee565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b168252812080548492906121cd908490613666565b92505081905550505050806121e19061375c565b90506120c2565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051612238929190613601565b60405180910390a4611daf818787878787612972565b600c546000908152600460205260409020541561227b57600c80549060006122758361375c565b91905055505b604051806060016040528084670de0b6b3a764000061229a9190613692565b81526020808201859052831515604092830152600c80546000908152600a83528381208551815585840151600180830191909155958501516002909101805460ff19169115159190911790559054600b805480870182559083527f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db9018190558351928301909352815261232f92339291612349565b600c805490600061233f8361375c565b9190505550505050565b610bf184848484611b83565b60035460ff166123a75760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f742070617573656400000000000000000000000060448201526064016106ee565b6003805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b610a7a838383612a7d565b600580546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60035460ff16156124ae5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a207061757365640000000000000000000000000000000060448201526064016106ee565b6003805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586123d43390565b816001600160a01b0316836001600160a01b031614156125575760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b60648201526084016106ee565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b0384166126285760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b60648201526084016106ee565b33612638818787611bf488612764565b6000848152602081815260408083206001600160a01b038a168452909152902054838110156126bc5760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201526939103a3930b739b332b960b11b60648201526084016106ee565b6000858152602081815260408083206001600160a01b038b81168552925280832087850390559088168252812080548692906126f9908490613666565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4611dad8288888888886127bd565b610a7a838383612cc4565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061279e5761279e6137b7565b602090810291909101015292915050565b611daf868686868686611c93565b6001600160a01b0384163b15611daf5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e619061280190899089908890889088906004016135ab565b602060405180830381600087803b15801561281b57600080fd5b505af192505050801561284b575060408051601f3d908101601f191682019092526128489181019061335e565b60015b612901576128576137e3565b806308c379a01415612891575061286c6137ff565b806128775750612893565b8060405162461bcd60e51b81526004016106ee919061362f565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e204552433131353560448201527f526563656976657220696d706c656d656e74657200000000000000000000000060648201526084016106ee565b6001600160e01b0319811663f23a6e6160e01b14611dad5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b60648201526084016106ee565b6001600160a01b0384163b15611daf5760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906129b6908990899088908890889060040161354d565b602060405180830381600087803b1580156129d057600080fd5b505af1925050508015612a00575060408051601f3d908101601f191682019092526129fd9181019061335e565b60015b612a0c576128576137e3565b6001600160e01b0319811663bc197c8160e01b14611dad5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b60648201526084016106ee565b6001600160a01b038316612adf5760405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201526265737360e81b60648201526084016106ee565b8051825114612b415760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b60648201526084016106ee565b6000339050612b64818560008686604051806020016040528060008152506127af565b60005b8351811015612c65576000848281518110612b8457612b846137b7565b602002602001015190506000848381518110612ba257612ba26137b7565b602090810291909101810151600084815280835260408082206001600160a01b038c168352909352919091205490915081811015612c2e5760405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604482015263616e636560e01b60648201526084016106ee565b6000928352602083815260408085206001600160a01b038b1686529091529092209103905580612c5d8161375c565b915050612b67565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051612cb6929190613601565b60405180910390a450505050565b6001600160a01b038316612d265760405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201526265737360e81b60648201526084016106ee565b33612d5581856000612d3787612764565b612d4087612764565b604051806020016040528060008152506127af565b6000838152602081815260408083206001600160a01b038816845290915290205482811015612dd25760405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604482015263616e636560e01b60648201526084016106ee565b6000848152602081815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b828054612e49906136f4565b90600052602060002090601f016020900481019282612e6b5760008555612eb1565b82601f10612e8457805160ff1916838001178555612eb1565b82800160010185558215612eb1579182015b82811115612eb1578251825591602001919060010190612e96565b50612ebd929150612ec1565b5090565b5b80821115612ebd5760008155600101612ec2565b600067ffffffffffffffff831115612ef057612ef06137cd565b604051612f07601f8501601f19166020018261372f565b809150838152848484011115612f1c57600080fd5b83836020830137600060208583010152509392505050565b80356001600160a01b0381168114612f4b57600080fd5b919050565b600082601f830112612f6157600080fd5b81356020612f6e82613642565b604051612f7b828261372f565b8381528281019150858301600585901b87018401881015612f9b57600080fd5b60005b85811015612fba57813584529284019290840190600101612f9e565b5090979650505050505050565b600082601f830112612fd857600080fd5b612fe783833560208501612ed6565b9392505050565b60006020828403121561300057600080fd5b612fe782612f34565b6000806040838503121561301c57600080fd5b61302583612f34565b915061303360208401612f34565b90509250929050565b600080600080600060a0868803121561305457600080fd5b61305d86612f34565b945061306b60208701612f34565b9350604086013567ffffffffffffffff8082111561308857600080fd5b61309489838a01612f50565b945060608801359150808211156130aa57600080fd5b6130b689838a01612f50565b935060808801359150808211156130cc57600080fd5b506130d988828901612fc7565b9150509295509295909350565b600080600080600060a086880312156130fe57600080fd5b61310786612f34565b945061311560208701612f34565b93506040860135925060608601359150608086013567ffffffffffffffff81111561313f57600080fd5b6130d988828901612fc7565b60008060006060848603121561316057600080fd5b61316984612f34565b9250602084013567ffffffffffffffff8082111561318657600080fd5b61319287838801612f50565b935060408601359150808211156131a857600080fd5b506131b586828701612f50565b9150509250925092565b600080604083850312156131d257600080fd5b6131db83612f34565b915060208301356131eb81613889565b809150509250929050565b6000806040838503121561320957600080fd5b61321283612f34565b946020939093013593505050565b60008060006060848603121561323557600080fd5b61323e84612f34565b95602085013595506040909401359392505050565b6000806040838503121561326657600080fd5b823567ffffffffffffffff8082111561327e57600080fd5b818501915085601f83011261329257600080fd5b8135602061329f82613642565b6040516132ac828261372f565b8381528281019150858301600585901b870184018b10156132cc57600080fd5b600096505b848710156132f6576132e281612f34565b8352600196909601959183019183016132d1565b509650508601359250508082111561330d57600080fd5b5061331a85828601612f50565b9150509250929050565b60006020828403121561333657600080fd5b8151612fe781613889565b60006020828403121561335357600080fd5b8135612fe781613897565b60006020828403121561337057600080fd5b8151612fe781613897565b60006020828403121561338d57600080fd5b813567ffffffffffffffff8111156133a457600080fd5b8201601f810184136133b557600080fd5b611fe284823560208401612ed6565b6000602082840312156133d657600080fd5b5035919050565b6000602082840312156133ef57600080fd5b5051919050565b6000806040838503121561340957600080fd5b8235915060208301356131eb81613889565b6000806040838503121561342e57600080fd5b50508035926020909101359150565b60008060006060848603121561345257600080fd5b8335925060208401359150604084013561346b81613889565b809150509250925092565b6000806000806080858703121561348c57600080fd5b84359350602085013592506040850135915060608501356134ac81613889565b939692955090935050565b600081518084526020808501945080840160005b838110156134e7578151875295820195908201906001016134cb565b509495945050505050565b6000815180845261350a8160208601602086016136c8565b601f01601f19169290920160200192915050565b600083516135308184602088016136c8565b8351908301906135448183602088016136c8565b01949350505050565b60006001600160a01b03808816835280871660208401525060a0604083015261357960a08301866134b7565b828103606084015261358b81866134b7565b9050828103608084015261359f81856134f2565b98975050505050505050565b60006001600160a01b03808816835280871660208401525084604083015283606083015260a060808301526135e360a08301846134f2565b979650505050505050565b602081526000612fe760208301846134b7565b60408152600061361460408301856134b7565b828103602084015261362681856134b7565b95945050505050565b602081526000612fe760208301846134f2565b600067ffffffffffffffff82111561365c5761365c6137cd565b5060051b60200190565b600082198211156136795761367961378b565b500190565b60008261368d5761368d6137a1565b500490565b60008160001904831182151516156136ac576136ac61378b565b500290565b6000828210156136c3576136c361378b565b500390565b60005b838110156136e35781810151838201526020016136cb565b83811115610bf15750506000910152565b600181811c9082168061370857607f821691505b6020821081141561372957634e487b7160e01b600052602260045260246000fd5b50919050565b601f8201601f1916810167ffffffffffffffff81118282101715613755576137556137cd565b6040525050565b60006000198214156137705761377061378b565b5060010190565b600082613786576137866137a1565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d11156137fc5760046000803e5060005160e01c5b90565b600060443d101561380d5790565b6040516003193d81016004833e81513d67ffffffffffffffff816024840111818411171561383d57505050505090565b82850191508151818111156138555750505050505090565b843d870101602082850101111561386f5750505050505090565b61387e6020828601018761372f565b509095945050505050565b80151581146107da57600080fd5b6001600160e01b0319811681146107da57600080fdfe4f6e6c792061646d696e732063616e2063616c6c207468697300000000000000a2646970667358221220500865a67cf02742948b35d012574c33018861076efd35a714cb01575aa73a1f64736f6c63430008070033

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.