ETH Price: $3,669.81 (+0.82%)

Token

ERC-20: TronX (TRONX)
 

Overview

Max Total Supply

7,239 TRONX

Holders

2,746

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 TRONX
0xe8725a6c98e5142ad35519d8716e105a7f32fb69
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:
TronX

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 2000 runs

Other Settings:
default evmVersion
File 1 of 17 : TronX.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

/////////////////////////////////////////////////////////////////////////////
//                                                                         //
//                                                                         //
//             _____ _____ _____ _____ _ _ _ _____ _____ _____             //
//            |_   _| __  |     |   | | | | |  _  | __  |   __|            //
//              | | |    -|  |  | | | | | | |     |    -|__   |            //
//              |_| |__|__|_____|_|___|_____|__|__|__|__|_____|            //
//                                                                         //
//                                                                         //
//                                                                         //
/////////////////////////////////////////////////////////////////////////////

// @author: miinded.com

import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "../libs/ERC721Mint.sol";
import "../libs/MultiMint.sol";
import "../libs/Withdraw.sol";

contract TronX is ERC721Mint, MultiMint, Withdraw {

    IERC721 public TronWars;
    mapping (uint256 => bool) tronWarsClaimed;

    constructor(string memory baseURI, address _tronWars) ERC721("TronX", "TRONX") Withdraw(){

        setMaxSupply(8_888);
        setReserve(1);
        setBaseUri(baseURI);

        setMint("CLAIM", Mint(1650663000, 1650922199, 0, 25, 0, false, true));
        setMint("PUBLIC", Mint(1650922200, 1966525200, 0, 5, type(uint256).max, false, true));

        withdrawAdd(Part(0x3DD0f8a99E5FacF618DbF9D6fe175e7cCe1106Fd, 100));

        setTronWarsCollection(_tronWars);
    }

    //******************************************************//
    //                      Mint                            //
    //******************************************************//
    function claim(uint256[] memory _tokenIds) public payable canMint("CLAIM", _tokenIds.length) notSoldOut(_tokenIds.length) nonReentrant {

        address wallet = _msgSender();

        for (uint16 i = 0; i < _tokenIds.length; i++) {
            require(TronWars.ownerOf(_tokenIds[i]) == wallet , "Not owner of this TronWars token");
            require(isTronWarsClaimed(_tokenIds[i]) == false, "The TronWars token has already been claimed");
            tronWarsClaimed[_tokenIds[i]] = true;

            _mintToken(wallet);
        }
    }
    function buy(uint32 _count) public payable canMint("PUBLIC", _count) notSoldOut(_count) nonReentrant {
        _mintTokens(_msgSender(), _count);
    }

    //******************************************************//
    //                      Base                            //
    //******************************************************//
    function _baseURI() internal view virtual override returns (string memory) {
        return getBaseTokenURI();
    }

    function isTronWarsClaimed(uint256 _tokenId) public view returns (bool){
        return tronWarsClaimed[_tokenId];
    }

    function isTronWarsTokenIdsClaimed(uint256[] memory _tokenIds) public view returns (bool[] memory){
        bool[] memory claimed = new bool[](_tokenIds.length);
        for(uint256 i = 0; i < _tokenIds.length; i++){
            claimed[i] = isTronWarsClaimed(_tokenIds[i]);
        }
        return claimed;
    }

    function setTronWarsCollection(address _tronWars) public onlyOwner{
        TronWars = IERC721(_tronWars);
    }

    function reserve(uint32 _tokenId) public virtual override onlyOwner {
        super.reserve(1);
        tronWarsClaimed[uint256(_tokenId)] = true;
    }
}

File 2 of 17 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external;
}

File 3 of 17 : ERC721Mint.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./ERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";


abstract contract ERC721Mint is ERC721, Ownable, ReentrancyGuard {

    uint32 public MAX_SUPPLY;
    uint32 public RESERVE;
    uint8 public START_AT = 1;

    uint32 public mintTracked;
    uint32 public burnedTracker;

    string public baseTokenURI;

    //******************************************************//
    //                      Modifier                        //
    //******************************************************//
    modifier notSoldOut(uint256 _count) {
        require(mintTracked + uint32(_count) <= MAX_SUPPLY, "Sold out!");
        _;
    }

    //******************************************************//
    //                      Setters                         //
    //******************************************************//
    function setMaxSupply(uint32 _maxSupply) internal {
        MAX_SUPPLY = _maxSupply;
    }
    function setReserve(uint32 _reserve) internal {
        RESERVE = _reserve;
    }
    function setStartAt(uint8 _start) internal {
        START_AT = _start;
    }
    function setBaseUri(string memory baseURI) public onlyOwner {
        baseTokenURI = baseURI;
    }

    //******************************************************//
    //                      Getters                         //
    //******************************************************//
    function walletOfOwner(address _owner) external view virtual returns (uint32[] memory) {
        uint256 count = balanceOf(_owner);
        uint256 key = 0;
        uint32[] memory tokensIds = new uint32[](count);

        for (uint32 tokenId = START_AT; tokenId < mintTracked + START_AT; tokenId++) {
            if (_owners[tokenId] != _owner) continue;
            if (key == count) break;

            tokensIds[key] = tokenId;
            key++;
        }
        return tokensIds;
    }
    function getBaseTokenURI() internal view returns(string memory){
        return baseTokenURI;
    }
    function totalSupply() public view returns (uint32) {
        return mintTracked - burnedTracker;
    }

    //******************************************************//
    //                      Mint                            //
    //******************************************************//
    function _mintToken(address wallet) internal returns(uint256){
        uint256 tokenId = uint256(mintTracked + START_AT);
        mintTracked += 1;
        _safeMint(wallet, tokenId);
        return tokenId;
    }
    function _mintTokens(address wallet, uint32 _count) internal{
        for (uint32 i = 0; i < _count; i++) {
            _mintToken(wallet);
        }
    }

    function reserve(uint32 _count) public virtual onlyOwner {
        require(mintTracked + _count <= RESERVE, "Exceeded RESERVE_NFT");
        require(mintTracked + _count <= MAX_SUPPLY, "Sold out!");
        for(uint32 i = 0; i < _count; i++){
            _mintToken(_msgSender());
        }
    }

    //******************************************************//
    //                      Burn                            //
    //******************************************************//
    function burn(uint256 _tokenId) public virtual {
        require(_isApprovedOrOwner(_msgSender(), _tokenId), "Not owner nor approved");
        burnedTracker += 1;
        _burn(_tokenId);
    }
}

File 4 of 17 : MultiMint.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "./interface/IMultiMint.sol";

/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds
 * possibility to lock/unlock an token to block transfer only by the owner of the token
 */
abstract contract MultiMint is IMultiMint, Ownable, ReentrancyGuard {

    mapping(string => Mint) public mints;
    string[] public mintsNames;
    mapping(string => mapping(address => uint256)) balance;

    modifier canMint(string memory _name, uint256 _count) virtual {
        require(mintIsOpen(_name), "Mint not open");
        require(_count <= mints[_name].maxPerTx, "Max per tx limit");
        require(msg.value >= mintPrice(_name, _count), "Value limit");

        if(mints[_name].maxPerWallet > 0){
            require(balance[_name][_msgSender()] + _count <= mints[_name].maxPerWallet, "Max per wallet limit");
            balance[_name][_msgSender()] += _count;
        }
        _;
    }

    function setMint(string memory _name, Mint memory _mint) public override onlyOwner{
        require(_mint.valid, "_mint.valid is missing");

        if(!mints[_name].valid){
            mintsNames.push(_name);
        }

        mints[_name] = _mint;
        emit EventMintChange(_name, _mint);
    }

    function pauseMint(string memory _name, bool _pause) public override onlyOwner{
        mints[_name].paused = _pause;
    }

    function mintIsOpen(string memory _name) public view override returns(bool){
        return mints[_name].start > 0 && block.timestamp >= mints[_name].start && block.timestamp <= mints[_name].end  && !mints[_name].paused;
    }

    function mintCurrent() public override view returns (string memory){
        for(uint256 i = 0; i < mintsNames.length; i++){
            if(mintIsOpen(mintsNames[i])){
                return mintsNames[i];
            }
        }
        return "NONE";
    }

    function mintNames() public view override returns (string[] memory){
        return mintsNames;
    }

    function mintPrice(string memory _name, uint256 _count) public view override returns (uint256){
        return mints[_name].price * _count;
    }

    function mintBalance(string memory _name, address _wallet) public view override returns(uint256){
        return balance[_name][_wallet];
    }
}

File 5 of 17 : Withdraw.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";

contract Withdraw is Ownable {
    using SafeMath for uint256;

    struct Part {
        address wallet;
        uint256 salePart;
    }

    Part[] public parts;

    uint256 public saleDivider;
    mapping(address => bool) executor;

    constructor(){
        executor[_msgSender()] = true;
    }

    modifier onlyExecutor() {
        require(executor[_msgSender()] == true, "Bad executor");
        _;
    }

    function withdrawAdd(Part memory _part) internal {
        parts.push(_part);
        saleDivider += _part.salePart;
        executor[_part.wallet] = true;
    }

    function editWallet(uint256 _key, address _wallet) public onlyExecutor {
        require(parts[_key].wallet == _msgSender(), "Bad wallet part key");

        parts[_key].wallet = _wallet;

        delete executor[_msgSender()];
        executor[_wallet] = true;
    }

    function withdrawSales() public onlyExecutor {

        uint256 balance = address(this).balance;
        require(balance > 0, "Sales Balance = 0");

        for(uint8 i = 0; i < parts.length; i++){
            if(parts[i].salePart > 0){
                _withdraw(parts[i].wallet, balance.mul(parts[i].salePart).div(saleDivider));
            }
        }

        _withdraw(owner(), address(this).balance);
    }

    function _withdraw(address _address, uint256 _amount) private {
        (bool success, ) = _address.call{value: _amount}("");
        require(success, "Transfer failed.");
    }
}

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

pragma solidity ^0.8.0;

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

File 7 of 17 : ERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    mapping(uint32 => address) internal _owners;

    // Mapping owner address to token count
    mapping(address => uint32) private _balances;

    // Mapping from token ID to approved address
    mapping(uint32 => address) private _tokenApprovals;

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

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: balance query for the zero address");
        return uint256(_balances[owner]);
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _owners[uint32(tokenId)];
        require(owner != address(0), "ERC721: owner query for nonexistent token");
        return owner;
    }

    /**
     * @dev See {IERC721Metadata-name}.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev See {IERC721Metadata-symbol}.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

        string memory baseURI = _baseURI();
        return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
    }

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, can be overriden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not owner nor approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        require(_exists(tokenId), "ERC721: approved query for nonexistent token");

        return _tokenApprovals[uint32(tokenId)];
    }

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

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

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");

        _transfer(from, to, tokenId);
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        safeTransferFrom(from, to, tokenId, "");
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
        _safeTransfer(from, to, tokenId, _data);
    }

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * `_data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _owners[uint32(tokenId)] != address(0);
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        require(_exists(tokenId), "ERC721: operator query for nonexistent token");
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
    }

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, _data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

        _beforeTokenTransfer(address(0), to, tokenId);

        _balances[to] += 1;
        _owners[uint32(tokenId)] = to;

        emit Transfer(address(0), to, tokenId);

        _afterTokenTransfer(address(0), to, tokenId);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721.ownerOf(tokenId);

        _beforeTokenTransfer(owner, address(0), tokenId);

        // Clear approvals
        _approve(address(0), tokenId);

        _balances[owner] -= 1;
        delete _owners[uint32(tokenId)];

        emit Transfer(owner, address(0), tokenId);

        _afterTokenTransfer(owner, address(0), tokenId);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId);

        _balances[from] -= 1;
        _balances[to] += 1;
        _owners[uint32(tokenId)] = to;

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits a {Approval} event.
     */
    function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[uint32(tokenId)] = to;
        emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
    }

    /**
     * @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, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
                return retval == IERC721Receiver.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, ``from``'s `tokenId` will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

File 10 of 17 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 11 of 17 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) external view returns (string memory);
}

File 12 of 17 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 16 of 17 : IMultiMint.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

/**
 * @title ERC-721 Non-Fungible Token Standard, optional lock extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IMultiMint {

    struct Mint {
        uint256 start;
        uint256 end;
        uint256 maxPerWallet;
        uint256 maxPerTx;
        uint256 price;
        bool paused;
        bool valid;
    }

    /**
     * @dev Emitted when `tokenId` token is lock.
     */
    event EventMintChange(string _name, Mint sale);

    /**
     * @dev Returns the total amount of tokens locked on the contract.
     */
    function setMint(string calldata _name, Mint memory _sale) external;

    /**
     * @dev Lock a token, it will not be possible to transfer it
     */
    function pauseMint(string calldata _name, bool _pause) external;

    /**
     * @dev unlock a token, it will be possible to transfer it
     */
    function mintIsOpen(string memory _name) external returns(bool);

    /**
     * @dev unlock a token, it will be possible to transfer it
     */
    function mintCurrent() external returns(string memory);

    /**
     * @dev unlock a token, it will be possible to transfer it
     */
    function mintNames() external returns(string[] memory);

    /**
     * @dev unlock a token, it will be possible to transfer it
     */
    function mintPrice(string memory _name, uint256 _count) external returns(uint256);

    /**
     * @dev Return the state of a token
     */
    function mintBalance(string memory _name, address _wallet) external view returns(uint256);
}

File 17 of 17 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"baseURI","type":"string"},{"internalType":"address","name":"_tronWars","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"_name","type":"string"},{"components":[{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"end","type":"uint256"},{"internalType":"uint256","name":"maxPerWallet","type":"uint256"},{"internalType":"uint256","name":"maxPerTx","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"bool","name":"paused","type":"bool"},{"internalType":"bool","name":"valid","type":"bool"}],"indexed":false,"internalType":"struct IMultiMint.Mint","name":"sale","type":"tuple"}],"name":"EventMintChange","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"RESERVE","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"START_AT","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TronWars","outputs":[{"internalType":"contract IERC721","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"burnedTracker","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"_count","type":"uint32"}],"name":"buy","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"claim","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_key","type":"uint256"},{"internalType":"address","name":"_wallet","type":"address"}],"name":"editWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"isTronWarsClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"isTronWarsTokenIdsClaimed","outputs":[{"internalType":"bool[]","name":"","type":"bool[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"address","name":"_wallet","type":"address"}],"name":"mintBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintCurrent","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_name","type":"string"}],"name":"mintIsOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintNames","outputs":[{"internalType":"string[]","name":"","type":"string[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"uint256","name":"_count","type":"uint256"}],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintTracked","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"mints","outputs":[{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"end","type":"uint256"},{"internalType":"uint256","name":"maxPerWallet","type":"uint256"},{"internalType":"uint256","name":"maxPerTx","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"bool","name":"paused","type":"bool"},{"internalType":"bool","name":"valid","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"mintsNames","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"parts","outputs":[{"internalType":"address","name":"wallet","type":"address"},{"internalType":"uint256","name":"salePart","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"bool","name":"_pause","type":"bool"}],"name":"pauseMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"_tokenId","type":"uint32"}],"name":"reserve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleDivider","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"string","name":"_name","type":"string"},{"components":[{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"end","type":"uint256"},{"internalType":"uint256","name":"maxPerWallet","type":"uint256"},{"internalType":"uint256","name":"maxPerTx","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"bool","name":"paused","type":"bool"},{"internalType":"bool","name":"valid","type":"bool"}],"internalType":"struct IMultiMint.Mint","name":"_mint","type":"tuple"}],"name":"setMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_tronWars","type":"address"}],"name":"setTronWarsCollection","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":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint32[]","name":"","type":"uint32[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawSales","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526008805460ff60401b1916680100000000000000001790553480156200002957600080fd5b5060405162004ba338038062004ba38339810160408190526200004c9162000711565b604051806040016040528060058152602001640a8e4dedcb60db1b815250604051806040016040528060058152602001640a8a49e9cb60db1b8152508160009080519060200190620000a092919062000605565b508051620000b690600190602084019062000605565b505050620000d3620000cd6200024260201b60201c565b62000246565b60016007819055336000908152600f60205260409020805460ff19169091179055600880546001600160401b0319166401000022b8179055620001168262000298565b6200018860405180604001604052806005815260200164434c41494d60d81b8152506040518060e001604052806362631e58815260200163626712d78152602001600081526020016019815260200160008152602001600015158152602001600115158152506200030060201b60201c565b620001fc604051806040016040528060068152602001655055424c494360d01b8152506040518060e0016040528063626712d88152602001637536cb10815260200160008152602001600581526020016000198152602001600015158152602001600115158152506200030060201b60201c565b60408051808201909152733dd0f8a99e5facf618dbf9d6fe175e7cce1106fd8152606460208201526200022f90620004d6565b6200023a8162000598565b5050620008e4565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6006546001600160a01b03163314620002e75760405162461bcd60e51b8152602060048201819052602482015260008051602062004b8383398151915260448201526064015b60405180910390fd5b8051620002fc90600990602084019062000605565b5050565b6006546001600160a01b031633146200034b5760405162461bcd60e51b8152602060048201819052602482015260008051602062004b838339815191526044820152606401620002de565b8060c001516200039e5760405162461bcd60e51b815260206004820152601660248201527f5f6d696e742e76616c6964206973206d697373696e67000000000000000000006044820152606401620002de565b600a82604051620003b09190620007de565b9081526040519081900360200190206005015460ff610100909104166200041857600b8054600181018255600091909152825162000416917f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db90190602085019062000605565b505b80600a836040516200042b9190620007de565b90815260408051918290036020908101832084518155908401516001820155908301516002820155606083015160038201556080830151600482015560a08301516005909101805460c09094015115156101000261ff00199215159290921661ffff1990941693909317179091557f3c962146da3bd7dd94058de71955615106fe10306e81de47ffc1f51965b4264e90620004ca9084908490620007fc565b60405180910390a15050565b600d8054600181018255600091825282517fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb5600290920291820180546001600160a01b0319166001600160a01b0390921691909117905560208301517fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb6909101819055600e8054919290916200056e90849062000880565b9091555050516001600160a01b03166000908152600f60205260409020805460ff19166001179055565b6006546001600160a01b03163314620005e35760405162461bcd60e51b8152602060048201819052602482015260008051602062004b838339815191526044820152606401620002de565b601080546001600160a01b0319166001600160a01b0392909216919091179055565b8280546200061390620008a7565b90600052602060002090601f01602090048101928262000637576000855562000682565b82601f106200065257805160ff191683800117855562000682565b8280016001018555821562000682579182015b828111156200068257825182559160200191906001019062000665565b506200069092915062000694565b5090565b5b8082111562000690576000815560010162000695565b634e487b7160e01b600052604160045260246000fd5b60005b83811015620006de578181015183820152602001620006c4565b83811115620006ee576000848401525b50505050565b80516001600160a01b03811681146200070c57600080fd5b919050565b600080604083850312156200072557600080fd5b82516001600160401b03808211156200073d57600080fd5b818501915085601f8301126200075257600080fd5b815181811115620007675762000767620006ab565b604051601f8201601f19908116603f01168101908382118183101715620007925762000792620006ab565b81604052828152886020848701011115620007ac57600080fd5b620007bf836020830160208801620006c1565b8096505050505050620007d560208401620006f4565b90509250929050565b60008251620007f2818460208701620006c1565b9190910192915050565b6000610100808352845180828501526101209150620008228183860160208901620006c1565b81601f19601f8301168501019250505082516020830152602083015160408301526040830151606083015260608301516080830152608083015160a083015260a0830151151560c083015260c0830151151560e08301529392505050565b60008219821115620008a257634e487b7160e01b600052601160045260246000fd5b500190565b600181811c90821680620008bc57607f821691505b60208210811415620008de57634e487b7160e01b600052602260045260246000fd5b50919050565b61428f80620008f46000396000f3fe6080604052600436106102fd5760003560e01c8063715018a61161018f578063b694f47f116100e1578063d547cfb71161008a578063e985e9c511610064578063e985e9c51461094b578063f2fde38b14610994578063fc13a442146109b457600080fd5b8063d547cfb714610901578063e1ac347214610916578063e6e28ff91461092b57600080fd5b8063bf7b766d116100bb578063bf7b766d1461086a578063c87b56dd146108a2578063c9eb4662146108c257600080fd5b8063b694f47f1461080a578063b88d4fde1461082a578063bc08caac1461084a57600080fd5b80638da5cb5b11610143578063a0bcfc7f1161011d578063a0bcfc7f146107aa578063a17768f4146107ca578063a22cb465146107ea57600080fd5b80638da5cb5b1461075257806395d89b41146107705780639d2cc4361461078557600080fd5b80637cdd5bba116101745780637cdd5bba146106ff5780637db5bd521461071f578063885850781461073257600080fd5b8063715018a6146106ca57806376bccedb146106df57600080fd5b8063427b34b3116102535780636352211e116101fc57806368fb5c11116101d657806368fb5c111461066d5780636ba4c1381461069757806370a08231146106aa57600080fd5b80636352211e146106075780636667df6c14610627578063670594fd1461063d57600080fd5b8063438b63001161022d578063438b63001461050d578063494a65891461053a57806361ecd335146105da57600080fd5b8063427b34b31461049f57806342842e0e146104cd57806342966c68146104ed57600080fd5b806318160ddd116102b557806332cb6b0c1161028f57806332cb6b0c1461044d578063338231de1461046a57806337369b221461048a57600080fd5b806318160ddd146103d55780631cbaeb1d146103ff57806323b872dd1461042d57600080fd5b8063071c8e52116102e6578063071c8e5214610359578063081812fc1461037b578063095ea7b3146103b357600080fd5b806301ffc9a71461030257806306fdde0314610337575b600080fd5b34801561030e57600080fd5b5061032261031d3660046138ad565b6109d4565b60405190151581526020015b60405180910390f35b34801561034357600080fd5b5061034c610ab9565b60405161032e9190613922565b34801561036557600080fd5b5061036e610b4b565b60405161032e9190613935565b34801561038757600080fd5b5061039b6103963660046139b5565b610c24565b6040516001600160a01b03909116815260200161032e565b3480156103bf57600080fd5b506103d36103ce3660046139e3565b610cdc565b005b3480156103e157600080fd5b506103ea610e0e565b60405163ffffffff909116815260200161032e565b34801561040b57600080fd5b5061041f61041a366004613af7565b610e49565b60405190815260200161032e565b34801561043957600080fd5b506103d3610448366004613b3c565b610e7f565b34801561045957600080fd5b506008546103ea9063ffffffff1681565b34801561047657600080fd5b50610322610485366004613b7d565b610f07565b34801561049657600080fd5b506103d3610fb7565b3480156104ab57600080fd5b506008546103ea906d0100000000000000000000000000900463ffffffff1681565b3480156104d957600080fd5b506103d36104e8366004613b3c565b611163565b3480156104f957600080fd5b506103d36105083660046139b5565b61117e565b34801561051957600080fd5b5061052d610528366004613bb2565b61121c565b60405161032e9190613bcf565b34801561054657600080fd5b506105a1610555366004613b7d565b8051602081830181018051600a82529282019190930120915280546001820154600283015460038401546004850154600590950154939492939192909160ff8082169161010090041687565b6040805197885260208801969096529486019390935260608501919091526080840152151560a0830152151560c082015260e00161032e565b3480156105e657600080fd5b506105fa6105f5366004613c19565b611354565b60405161032e9190613cbf565b34801561061357600080fd5b5061039b6106223660046139b5565b611417565b34801561063357600080fd5b5061041f600e5481565b34801561064957600080fd5b506103226106583660046139b5565b60009081526011602052604090205460ff1690565b34801561067957600080fd5b506008546103ea906901000000000000000000900463ffffffff1681565b6103d36106a5366004613c19565b6114a9565b3480156106b657600080fd5b5061041f6106c5366004613bb2565b611a27565b3480156106d657600080fd5b506103d3611ac7565b3480156106eb57600080fd5b506103d36106fa366004613cf9565b611b2d565b34801561070b57600080fd5b5060105461039b906001600160a01b031681565b6103d361072d366004613cf9565b611bb2565b34801561073e57600080fd5b506103d361074d366004613d34565b611f43565b34801561075e57600080fd5b506006546001600160a01b031661039b565b34801561077c57600080fd5b5061034c611fd5565b34801561079157600080fd5b506008546103ea90640100000000900463ffffffff1681565b3480156107b657600080fd5b506103d36107c5366004613b7d565b611fe4565b3480156107d657600080fd5b5061034c6107e53660046139b5565b612055565b3480156107f657600080fd5b506103d3610805366004613d82565b612101565b34801561081657600080fd5b506103d3610825366004613bb2565b61210c565b34801561083657600080fd5b506103d3610845366004613dae565b612195565b34801561085657600080fd5b5061041f610865366004613e2e565b612223565b34801561087657600080fd5b506008546108909068010000000000000000900460ff1681565b60405160ff909116815260200161032e565b3480156108ae57600080fd5b5061034c6108bd3660046139b5565b612264565b3480156108ce57600080fd5b506108e26108dd3660046139b5565b61235a565b604080516001600160a01b03909316835260208301919091520161032e565b34801561090d57600080fd5b5061034c612392565b34801561092257600080fd5b5061034c61239f565b34801561093757600080fd5b506103d3610946366004613e80565b612558565b34801561095757600080fd5b50610322610966366004613f32565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156109a057600080fd5b506103d36109af366004613bb2565b61276c565b3480156109c057600080fd5b506103d36109cf366004613f60565b61284b565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd000000000000000000000000000000000000000000000000000000001480610a6757507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610ab357507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b606060008054610ac890613f85565b80601f0160208091040260200160405190810160405280929190818152602001828054610af490613f85565b8015610b415780601f10610b1657610100808354040283529160200191610b41565b820191906000526020600020905b815481529060010190602001808311610b2457829003601f168201915b5050505050905090565b6060600b805480602002602001604051908101604052809291908181526020016000905b82821015610c1b578382906000526020600020018054610b8e90613f85565b80601f0160208091040260200160405190810160405280929190818152602001828054610bba90613f85565b8015610c075780601f10610bdc57610100808354040283529160200191610c07565b820191906000526020600020905b815481529060010190602001808311610bea57829003601f168201915b505050505081526020019060010190610b6f565b50505050905090565b63ffffffff81166000908152600260205260408120546001600160a01b0316610cba5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084015b60405180910390fd5b5063ffffffff166000908152600460205260409020546001600160a01b031690565b6000610ce782611417565b9050806001600160a01b0316836001600160a01b03161415610d715760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610cb1565b336001600160a01b0382161480610d8d5750610d8d8133610966565b610dff5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610cb1565b610e0983836129ac565b505050565b600854600090610e449063ffffffff6d010000000000000000000000000082048116916901000000000000000000900416613fd6565b905090565b600081600a84604051610e5c9190613ffb565b908152602001604051809103902060040154610e789190614017565b9392505050565b610e8a335b82612a2e565b610efc5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610cb1565b610e09838383612b3d565b600080600a83604051610f1a9190613ffb565b90815260405190819003602001902054118015610f565750600a82604051610f429190613ffb565b908152604051908190036020019020544210155b8015610f835750600a82604051610f6d9190613ffb565b9081526020016040518091039020600101544211155b8015610ab35750600a82604051610f9a9190613ffb565b9081526040519081900360200190206005015460ff161592915050565b336000908152600f602052604090205460ff16151560011461101b5760405162461bcd60e51b815260206004820152600c60248201527f426164206578656375746f7200000000000000000000000000000000000000006044820152606401610cb1565b47806110695760405162461bcd60e51b815260206004820152601160248201527f53616c65732042616c616e6365203d20300000000000000000000000000000006044820152606401610cb1565b60005b600d5460ff82161015611144576000600d8260ff168154811061109157611091614036565b906000526020600020906002020160010154111561113257611132600d8260ff16815481106110c2576110c2614036565b906000526020600020906002020160000160009054906101000a90046001600160a01b031661112d600e54611127600d8660ff168154811061110657611106614036565b90600052602060002090600202016001015487612d5690919063ffffffff16565b90612d62565b612d6e565b8061113c8161404c565b91505061106c565b5061116061115a6006546001600160a01b031690565b47612d6e565b50565b610e0983838360405180602001604052806000815250612195565b61118733610e84565b6111d35760405162461bcd60e51b815260206004820152601660248201527f4e6f74206f776e6572206e6f7220617070726f766564000000000000000000006044820152606401610cb1565b60016008600d8282829054906101000a900463ffffffff166111f5919061406c565b92506101000a81548163ffffffff021916908363ffffffff16021790555061116081612e11565b6060600061122983611a27565b90506000808267ffffffffffffffff81111561124757611247613a0f565b604051908082528060200260200182016040528015611270578160200160208202803683370190505b5060085490915068010000000000000000900460ff165b6008546112b69068010000000000000000810460ff16906901000000000000000000900463ffffffff1661406c565b63ffffffff168163ffffffff16101561134b5763ffffffff81166000908152600260205260409020546001600160a01b038781169116146112f657611339565b838314156113035761134b565b8082848151811061131657611316614036565b63ffffffff909216602092830291909101909101528261133581614094565b9350505b80611343816140af565b915050611287565b50949350505050565b60606000825167ffffffffffffffff81111561137257611372613a0f565b60405190808252806020026020018201604052801561139b578160200160208202803683370190505b50905060005b8351811015611410576113dc8482815181106113bf576113bf614036565b602002602001015160009081526011602052604090205460ff1690565b8282815181106113ee576113ee614036565b911515602092830291909101909101528061140881614094565b9150506113a1565b5092915050565b63ffffffff81166000908152600260205260408120546001600160a01b031680610ab35760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610cb1565b6040518060400160405280600581526020017f434c41494d00000000000000000000000000000000000000000000000000000081525081516114ea82610f07565b6115365760405162461bcd60e51b815260206004820152600d60248201527f4d696e74206e6f74206f70656e000000000000000000000000000000000000006044820152606401610cb1565b600a826040516115469190613ffb565b9081526020016040518091039020600301548111156115a75760405162461bcd60e51b815260206004820152601060248201527f4d617820706572207478206c696d6974000000000000000000000000000000006044820152606401610cb1565b6115b18282610e49565b3410156116005760405162461bcd60e51b815260206004820152600b60248201527f56616c7565206c696d69740000000000000000000000000000000000000000006044820152606401610cb1565b6000600a836040516116129190613ffb565b908152602001604051809103902060020154111561174a57600a8260405161163a9190613ffb565b90815260200160405180910390206002015481600c8460405161165d9190613ffb565b908152602001604051809103902060006116743390565b6001600160a01b03166001600160a01b031681526020019081526020016000205461169f91906140d3565b11156116ed5760405162461bcd60e51b815260206004820152601460248201527f4d6178207065722077616c6c6574206c696d69740000000000000000000000006044820152606401610cb1565b80600c836040516116fe9190613ffb565b908152602001604051809103902060006117153390565b6001600160a01b03166001600160a01b03168152602001908152602001600020600082825461174491906140d3565b90915550505b825160085463ffffffff80821691611771918491690100000000000000000090041661406c565b63ffffffff1611156117c55760405162461bcd60e51b815260206004820152600960248201527f536f6c64206f75742100000000000000000000000000000000000000000000006044820152606401610cb1565b600260075414156118185760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610cb1565b60026007553360005b85518161ffff161015611a1a5760105486516001600160a01b03808516921690636352211e90899061ffff861690811061185d5761185d614036565b60200260200101516040518263ffffffff1660e01b815260040161188391815260200190565b60206040518083038186803b15801561189b57600080fd5b505afa1580156118af573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118d391906140eb565b6001600160a01b0316146119295760405162461bcd60e51b815260206004820181905260248201527f4e6f74206f776e6572206f6620746869732054726f6e5761727320746f6b656e6044820152606401610cb1565b611942868261ffff16815181106113bf576113bf614036565b156119b55760405162461bcd60e51b815260206004820152602b60248201527f5468652054726f6e5761727320746f6b656e2068617320616c7265616479206260448201527f65656e20636c61696d65640000000000000000000000000000000000000000006064820152608401610cb1565b600160116000888461ffff16815181106119d1576119d1614036565b6020026020010151815260200190815260200160002060006101000a81548160ff021916908315150217905550611a0782612ed9565b5080611a1281614108565b915050611821565b5050600160075550505050565b60006001600160a01b038216611aa55760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610cb1565b506001600160a01b031660009081526003602052604090205463ffffffff1690565b6006546001600160a01b03163314611b215760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610cb1565b611b2b6000612f62565b565b6006546001600160a01b03163314611b875760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610cb1565b611b916001612fc1565b63ffffffff166000908152601160205260409020805460ff19166001179055565b6040518060400160405280600681526020017f5055424c494300000000000000000000000000000000000000000000000000008152508163ffffffff16611bf882610f07565b611c445760405162461bcd60e51b815260206004820152600d60248201527f4d696e74206e6f74206f70656e000000000000000000000000000000000000006044820152606401610cb1565b600a82604051611c549190613ffb565b908152602001604051809103902060030154811115611cb55760405162461bcd60e51b815260206004820152601060248201527f4d617820706572207478206c696d6974000000000000000000000000000000006044820152606401610cb1565b611cbf8282610e49565b341015611d0e5760405162461bcd60e51b815260206004820152600b60248201527f56616c7565206c696d69740000000000000000000000000000000000000000006044820152606401610cb1565b6000600a83604051611d209190613ffb565b9081526020016040518091039020600201541115611e5857600a82604051611d489190613ffb565b90815260200160405180910390206002015481600c84604051611d6b9190613ffb565b90815260200160405180910390206000611d823390565b6001600160a01b03166001600160a01b0316815260200190815260200160002054611dad91906140d3565b1115611dfb5760405162461bcd60e51b815260206004820152601460248201527f4d6178207065722077616c6c6574206c696d69740000000000000000000000006044820152606401610cb1565b80600c83604051611e0c9190613ffb565b90815260200160405180910390206000611e233390565b6001600160a01b03166001600160a01b031681526020019081526020016000206000828254611e5291906140d3565b90915550505b60085463ffffffff8085169180821691611e8291849169010000000000000000009091041661406c565b63ffffffff161115611ed65760405162461bcd60e51b815260206004820152600960248201527f536f6c64206f75742100000000000000000000000000000000000000000000006044820152606401610cb1565b60026007541415611f295760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610cb1565b6002600755611f383385613147565b505060016007555050565b6006546001600160a01b03163314611f9d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610cb1565b80600a83604051611fae9190613ffb565b908152604051908190036020019020600501805491151560ff199092169190911790555050565b606060018054610ac890613f85565b6006546001600160a01b0316331461203e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610cb1565b80516120519060099060208401906137e6565b5050565b600b818154811061206557600080fd5b90600052602060002001600091509050805461208090613f85565b80601f01602080910402602001604051908101604052809291908181526020018280546120ac90613f85565b80156120f95780601f106120ce576101008083540402835291602001916120f9565b820191906000526020600020905b8154815290600101906020018083116120dc57829003601f168201915b505050505081565b61205133838361317a565b6006546001600160a01b031633146121665760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610cb1565b6010805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b61219f3383612a2e565b6122115760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610cb1565b61221d84848484613249565b50505050565b6000600c836040516122359190613ffb565b908152604080519182900360209081019092206001600160a01b03851660009081529252902054905092915050565b606061228d8263ffffffff166000908152600260205260409020546001600160a01b0316151590565b6122ff5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610cb1565b60006123096132d2565b905060008151116123295760405180602001604052806000815250610e78565b80612333846132dc565b604051602001612344929190614120565b6040516020818303038152906040529392505050565b600d818154811061236a57600080fd5b6000918252602090912060029091020180546001909101546001600160a01b03909116915082565b6009805461208090613f85565b606060005b600b5481101561251f5761245c600b82815481106123c4576123c4614036565b9060005260206000200180546123d990613f85565b80601f016020809104026020016040519081016040528092919081815260200182805461240590613f85565b80156124525780601f1061242757610100808354040283529160200191612452565b820191906000526020600020905b81548152906001019060200180831161243557829003601f168201915b5050505050610f07565b1561250d57600b818154811061247457612474614036565b90600052602060002001805461248990613f85565b80601f01602080910402602001604051908101604052809291908181526020018280546124b590613f85565b80156125025780601f106124d757610100808354040283529160200191612502565b820191906000526020600020905b8154815290600101906020018083116124e557829003601f168201915b505050505091505090565b8061251781614094565b9150506123a4565b505060408051808201909152600481527f4e4f4e4500000000000000000000000000000000000000000000000000000000602082015290565b6006546001600160a01b031633146125b25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610cb1565b8060c001516126035760405162461bcd60e51b815260206004820152601660248201527f5f6d696e742e76616c6964206973206d697373696e67000000000000000000006044820152606401610cb1565b600a826040516126139190613ffb565b9081526040519081900360200190206005015460ff6101009091041661267857600b80546001810182556000919091528251612676917f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db9019060208501906137e6565b505b80600a836040516126899190613ffb565b90815260408051918290036020908101832084518155908401516001820155908301516002820155606083015160038201556080830151600482015560a08301516005909101805460c0909401511515610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff921515929092167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff000090941693909317179091557f3c962146da3bd7dd94058de71955615106fe10306e81de47ffc1f51965b4264e906127609084908490614146565b60405180910390a15050565b6006546001600160a01b031633146127c65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610cb1565b6001600160a01b0381166128425760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610cb1565b61116081612f62565b336000908152600f602052604090205460ff1615156001146128af5760405162461bcd60e51b815260206004820152600c60248201527f426164206578656375746f7200000000000000000000000000000000000000006044820152606401610cb1565b336001600160a01b0316600d83815481106128cc576128cc614036565b60009182526020909120600290910201546001600160a01b0316146129335760405162461bcd60e51b815260206004820152601360248201527f4261642077616c6c65742070617274206b6579000000000000000000000000006044820152606401610cb1565b80600d838154811061294757612947614036565b60009182526020808320600292909202909101805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03948516179055338252600f90526040808220805460ff19908116909155939092168152208054909116600117905550565b63ffffffff81166000908152600460205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03841690811790915581906129f582611417565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b63ffffffff81166000908152600260205260408120546001600160a01b0316612abf5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610cb1565b6000612aca83611417565b9050806001600160a01b0316846001600160a01b03161480612b055750836001600160a01b0316612afa84610c24565b6001600160a01b0316145b80612b3557506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316612b5082611417565b6001600160a01b031614612bcc5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610cb1565b6001600160a01b038216612c475760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610cb1565b612c526000826129ac565b6001600160a01b0383166000908152600360205260408120805460019290612c8190849063ffffffff16613fd6565b82546101009290920a63ffffffff8181021990931691831602179091556001600160a01b03841660009081526003602052604081208054600194509092612cca9185911661406c565b82546101009290920a63ffffffff8181021990931691831602179091558216600090815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0387811691821790925591518594509192908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b6000610e788284614017565b6000610e7882846141c1565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612dbb576040519150601f19603f3d011682016040523d82523d6000602084013e612dc0565b606091505b5050905080610e095760405162461bcd60e51b815260206004820152601060248201527f5472616e73666572206661696c65642e000000000000000000000000000000006044820152606401610cb1565b6000612e1c82611417565b9050612e296000836129ac565b6001600160a01b0381166000908152600360205260408120805460019290612e5890849063ffffffff16613fd6565b82546101009290920a63ffffffff8181021990931691831602179091558316600090815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19169055518492506001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6008546000908190612f0d9068010000000000000000810460ff16906901000000000000000000900463ffffffff1661406c565b6008805463ffffffff9283169350600192600991612f3a918591690100000000000000000090041661406c565b92506101000a81548163ffffffff021916908363ffffffff160217905550610ab3838261340e565b600680546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6006546001600160a01b0316331461301b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610cb1565b60085463ffffffff6401000000008204811691613047918491690100000000000000000090041661406c565b63ffffffff16111561309b5760405162461bcd60e51b815260206004820152601460248201527f457863656564656420524553455256455f4e46540000000000000000000000006044820152606401610cb1565b60085463ffffffff808216916130c0918491690100000000000000000090041661406c565b63ffffffff1611156131145760405162461bcd60e51b815260206004820152600960248201527f536f6c64206f75742100000000000000000000000000000000000000000000006044820152606401610cb1565b60005b8163ffffffff168163ffffffff1610156120515761313433612ed9565b508061313f816140af565b915050613117565b60005b8163ffffffff168163ffffffff161015610e095761316783612ed9565b5080613172816140af565b91505061314a565b816001600160a01b0316836001600160a01b031614156131dc5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610cb1565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b613254848484612b3d565b61326084848484613428565b61221d5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610cb1565b6060610e446135d5565b60608161331c57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115613346578061333081614094565b915061333f9050600a836141c1565b9150613320565b60008167ffffffffffffffff81111561336157613361613a0f565b6040519080825280601f01601f19166020018201604052801561338b576020820181803683370190505b5090505b8415612b35576133a06001836141d5565b91506133ad600a866141ec565b6133b89060306140d3565b60f81b8183815181106133cd576133cd614036565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350613407600a866141c1565b945061338f565b6120518282604051806020016040528060008152506135e4565b60006001600160a01b0384163b156135ca576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a0290613485903390899088908890600401614200565b602060405180830381600087803b15801561349f57600080fd5b505af19250505080156134cf575060408051601f3d908101601f191682019092526134cc9181019061423c565b60015b61357f573d8080156134fd576040519150601f19603f3d011682016040523d82523d6000602084013e613502565b606091505b5080516135775760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610cb1565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050612b35565b506001949350505050565b606060098054610ac890613f85565b6135ee838361366d565b6135fb6000848484613428565b610e095760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610cb1565b6001600160a01b0382166136c35760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610cb1565b63ffffffff81166000908152600260205260409020546001600160a01b03161561372f5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610cb1565b6001600160a01b038216600090815260036020526040812080546001929061375e90849063ffffffff1661406c565b82546101009290920a63ffffffff8181021990931691831602179091558216600090815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03871690811790915590518493509091907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8280546137f290613f85565b90600052602060002090601f016020900481019282613814576000855561385a565b82601f1061382d57805160ff191683800117855561385a565b8280016001018555821561385a579182015b8281111561385a57825182559160200191906001019061383f565b5061386692915061386a565b5090565b5b80821115613866576000815560010161386b565b7fffffffff000000000000000000000000000000000000000000000000000000008116811461116057600080fd5b6000602082840312156138bf57600080fd5b8135610e788161387f565b60005b838110156138e55781810151838201526020016138cd565b8381111561221d5750506000910152565b6000815180845261390e8160208601602086016138ca565b601f01601f19169290920160200192915050565b602081526000610e7860208301846138f6565b6000602080830181845280855180835260408601915060408160051b870101925083870160005b828110156139a8577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc08886030184526139968583516138f6565b9450928501929085019060010161395c565b5092979650505050505050565b6000602082840312156139c757600080fd5b5035919050565b6001600160a01b038116811461116057600080fd5b600080604083850312156139f657600080fd5b8235613a01816139ce565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b60405160e0810167ffffffffffffffff81118282101715613a4857613a48613a0f565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715613a7757613a77613a0f565b604052919050565b600067ffffffffffffffff831115613a9957613a99613a0f565b613aac6020601f19601f86011601613a4e565b9050828152838383011115613ac057600080fd5b828260208301376000602084830101529392505050565b600082601f830112613ae857600080fd5b610e7883833560208501613a7f565b60008060408385031215613b0a57600080fd5b823567ffffffffffffffff811115613b2157600080fd5b613b2d85828601613ad7565b95602094909401359450505050565b600080600060608486031215613b5157600080fd5b8335613b5c816139ce565b92506020840135613b6c816139ce565b929592945050506040919091013590565b600060208284031215613b8f57600080fd5b813567ffffffffffffffff811115613ba657600080fd5b612b3584828501613ad7565b600060208284031215613bc457600080fd5b8135610e78816139ce565b6020808252825182820181905260009190848201906040850190845b81811015613c0d57835163ffffffff1683529284019291840191600101613beb565b50909695505050505050565b60006020808385031215613c2c57600080fd5b823567ffffffffffffffff80821115613c4457600080fd5b818501915085601f830112613c5857600080fd5b813581811115613c6a57613c6a613a0f565b8060051b9150613c7b848301613a4e565b8181529183018401918481019088841115613c9557600080fd5b938501935b83851015613cb357843582529385019390850190613c9a565b98975050505050505050565b6020808252825182820181905260009190848201906040850190845b81811015613c0d578351151583529284019291840191600101613cdb565b600060208284031215613d0b57600080fd5b813563ffffffff81168114610e7857600080fd5b80358015158114613d2f57600080fd5b919050565b60008060408385031215613d4757600080fd5b823567ffffffffffffffff811115613d5e57600080fd5b613d6a85828601613ad7565b925050613d7960208401613d1f565b90509250929050565b60008060408385031215613d9557600080fd5b8235613da0816139ce565b9150613d7960208401613d1f565b60008060008060808587031215613dc457600080fd5b8435613dcf816139ce565b93506020850135613ddf816139ce565b925060408501359150606085013567ffffffffffffffff811115613e0257600080fd5b8501601f81018713613e1357600080fd5b613e2287823560208401613a7f565b91505092959194509250565b60008060408385031215613e4157600080fd5b823567ffffffffffffffff811115613e5857600080fd5b613e6485828601613ad7565b9250506020830135613e75816139ce565b809150509250929050565b600080828403610100811215613e9557600080fd5b833567ffffffffffffffff811115613eac57600080fd5b613eb886828701613ad7565b93505060e0601f1982011215613ecd57600080fd5b50613ed6613a25565b6020840135815260408401356020820152606084013560408201526080840135606082015260a08401356080820152613f1160c08501613d1f565b60a0820152613f2260e08501613d1f565b60c0820152809150509250929050565b60008060408385031215613f4557600080fd5b8235613f50816139ce565b91506020830135613e75816139ce565b60008060408385031215613f7357600080fd5b823591506020830135613e75816139ce565b600181811c90821680613f9957607f821691505b60208210811415613fba57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600063ffffffff83811690831681811015613ff357613ff3613fc0565b039392505050565b6000825161400d8184602087016138ca565b9190910192915050565b600081600019048311821515161561403157614031613fc0565b500290565b634e487b7160e01b600052603260045260246000fd5b600060ff821660ff81141561406357614063613fc0565b60010192915050565b600063ffffffff80831681851680830382111561408b5761408b613fc0565b01949350505050565b60006000198214156140a8576140a8613fc0565b5060010190565b600063ffffffff808316818114156140c9576140c9613fc0565b6001019392505050565b600082198211156140e6576140e6613fc0565b500190565b6000602082840312156140fd57600080fd5b8151610e78816139ce565b600061ffff808316818114156140c9576140c9613fc0565b600083516141328184602088016138ca565b83519083019061408b8183602088016138ca565b600061010080835261415a818401866138f6565b91505082516020830152602083015160408301526040830151606083015260608301516080830152608083015160a083015260a0830151151560c083015260c0830151151560e08301529392505050565b634e487b7160e01b600052601260045260246000fd5b6000826141d0576141d06141ab565b500490565b6000828210156141e7576141e7613fc0565b500390565b6000826141fb576141fb6141ab565b500690565b60006001600160a01b0380871683528086166020840152508360408301526080606083015261423260808301846138f6565b9695505050505050565b60006020828403121561424e57600080fd5b8151610e788161387f56fea2646970667358221220153116444bbb8e7064144eadbef098b62f4087344393d12602fa665a57b11a5364736f6c634300080900334f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65720000000000000000000000000000000000000000000000000000000000000040000000000000000000000000537b2279d8f625a1b74cf3c1f0e2122fb047a6b0000000000000000000000000000000000000000000000000000000000000002668747470733a2f2f6261636b656e642e74686574726f6e776172732e636f6d2f74726f6e782f0000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106102fd5760003560e01c8063715018a61161018f578063b694f47f116100e1578063d547cfb71161008a578063e985e9c511610064578063e985e9c51461094b578063f2fde38b14610994578063fc13a442146109b457600080fd5b8063d547cfb714610901578063e1ac347214610916578063e6e28ff91461092b57600080fd5b8063bf7b766d116100bb578063bf7b766d1461086a578063c87b56dd146108a2578063c9eb4662146108c257600080fd5b8063b694f47f1461080a578063b88d4fde1461082a578063bc08caac1461084a57600080fd5b80638da5cb5b11610143578063a0bcfc7f1161011d578063a0bcfc7f146107aa578063a17768f4146107ca578063a22cb465146107ea57600080fd5b80638da5cb5b1461075257806395d89b41146107705780639d2cc4361461078557600080fd5b80637cdd5bba116101745780637cdd5bba146106ff5780637db5bd521461071f578063885850781461073257600080fd5b8063715018a6146106ca57806376bccedb146106df57600080fd5b8063427b34b3116102535780636352211e116101fc57806368fb5c11116101d657806368fb5c111461066d5780636ba4c1381461069757806370a08231146106aa57600080fd5b80636352211e146106075780636667df6c14610627578063670594fd1461063d57600080fd5b8063438b63001161022d578063438b63001461050d578063494a65891461053a57806361ecd335146105da57600080fd5b8063427b34b31461049f57806342842e0e146104cd57806342966c68146104ed57600080fd5b806318160ddd116102b557806332cb6b0c1161028f57806332cb6b0c1461044d578063338231de1461046a57806337369b221461048a57600080fd5b806318160ddd146103d55780631cbaeb1d146103ff57806323b872dd1461042d57600080fd5b8063071c8e52116102e6578063071c8e5214610359578063081812fc1461037b578063095ea7b3146103b357600080fd5b806301ffc9a71461030257806306fdde0314610337575b600080fd5b34801561030e57600080fd5b5061032261031d3660046138ad565b6109d4565b60405190151581526020015b60405180910390f35b34801561034357600080fd5b5061034c610ab9565b60405161032e9190613922565b34801561036557600080fd5b5061036e610b4b565b60405161032e9190613935565b34801561038757600080fd5b5061039b6103963660046139b5565b610c24565b6040516001600160a01b03909116815260200161032e565b3480156103bf57600080fd5b506103d36103ce3660046139e3565b610cdc565b005b3480156103e157600080fd5b506103ea610e0e565b60405163ffffffff909116815260200161032e565b34801561040b57600080fd5b5061041f61041a366004613af7565b610e49565b60405190815260200161032e565b34801561043957600080fd5b506103d3610448366004613b3c565b610e7f565b34801561045957600080fd5b506008546103ea9063ffffffff1681565b34801561047657600080fd5b50610322610485366004613b7d565b610f07565b34801561049657600080fd5b506103d3610fb7565b3480156104ab57600080fd5b506008546103ea906d0100000000000000000000000000900463ffffffff1681565b3480156104d957600080fd5b506103d36104e8366004613b3c565b611163565b3480156104f957600080fd5b506103d36105083660046139b5565b61117e565b34801561051957600080fd5b5061052d610528366004613bb2565b61121c565b60405161032e9190613bcf565b34801561054657600080fd5b506105a1610555366004613b7d565b8051602081830181018051600a82529282019190930120915280546001820154600283015460038401546004850154600590950154939492939192909160ff8082169161010090041687565b6040805197885260208801969096529486019390935260608501919091526080840152151560a0830152151560c082015260e00161032e565b3480156105e657600080fd5b506105fa6105f5366004613c19565b611354565b60405161032e9190613cbf565b34801561061357600080fd5b5061039b6106223660046139b5565b611417565b34801561063357600080fd5b5061041f600e5481565b34801561064957600080fd5b506103226106583660046139b5565b60009081526011602052604090205460ff1690565b34801561067957600080fd5b506008546103ea906901000000000000000000900463ffffffff1681565b6103d36106a5366004613c19565b6114a9565b3480156106b657600080fd5b5061041f6106c5366004613bb2565b611a27565b3480156106d657600080fd5b506103d3611ac7565b3480156106eb57600080fd5b506103d36106fa366004613cf9565b611b2d565b34801561070b57600080fd5b5060105461039b906001600160a01b031681565b6103d361072d366004613cf9565b611bb2565b34801561073e57600080fd5b506103d361074d366004613d34565b611f43565b34801561075e57600080fd5b506006546001600160a01b031661039b565b34801561077c57600080fd5b5061034c611fd5565b34801561079157600080fd5b506008546103ea90640100000000900463ffffffff1681565b3480156107b657600080fd5b506103d36107c5366004613b7d565b611fe4565b3480156107d657600080fd5b5061034c6107e53660046139b5565b612055565b3480156107f657600080fd5b506103d3610805366004613d82565b612101565b34801561081657600080fd5b506103d3610825366004613bb2565b61210c565b34801561083657600080fd5b506103d3610845366004613dae565b612195565b34801561085657600080fd5b5061041f610865366004613e2e565b612223565b34801561087657600080fd5b506008546108909068010000000000000000900460ff1681565b60405160ff909116815260200161032e565b3480156108ae57600080fd5b5061034c6108bd3660046139b5565b612264565b3480156108ce57600080fd5b506108e26108dd3660046139b5565b61235a565b604080516001600160a01b03909316835260208301919091520161032e565b34801561090d57600080fd5b5061034c612392565b34801561092257600080fd5b5061034c61239f565b34801561093757600080fd5b506103d3610946366004613e80565b612558565b34801561095757600080fd5b50610322610966366004613f32565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156109a057600080fd5b506103d36109af366004613bb2565b61276c565b3480156109c057600080fd5b506103d36109cf366004613f60565b61284b565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd000000000000000000000000000000000000000000000000000000001480610a6757507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610ab357507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b606060008054610ac890613f85565b80601f0160208091040260200160405190810160405280929190818152602001828054610af490613f85565b8015610b415780601f10610b1657610100808354040283529160200191610b41565b820191906000526020600020905b815481529060010190602001808311610b2457829003601f168201915b5050505050905090565b6060600b805480602002602001604051908101604052809291908181526020016000905b82821015610c1b578382906000526020600020018054610b8e90613f85565b80601f0160208091040260200160405190810160405280929190818152602001828054610bba90613f85565b8015610c075780601f10610bdc57610100808354040283529160200191610c07565b820191906000526020600020905b815481529060010190602001808311610bea57829003601f168201915b505050505081526020019060010190610b6f565b50505050905090565b63ffffffff81166000908152600260205260408120546001600160a01b0316610cba5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084015b60405180910390fd5b5063ffffffff166000908152600460205260409020546001600160a01b031690565b6000610ce782611417565b9050806001600160a01b0316836001600160a01b03161415610d715760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610cb1565b336001600160a01b0382161480610d8d5750610d8d8133610966565b610dff5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610cb1565b610e0983836129ac565b505050565b600854600090610e449063ffffffff6d010000000000000000000000000082048116916901000000000000000000900416613fd6565b905090565b600081600a84604051610e5c9190613ffb565b908152602001604051809103902060040154610e789190614017565b9392505050565b610e8a335b82612a2e565b610efc5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610cb1565b610e09838383612b3d565b600080600a83604051610f1a9190613ffb565b90815260405190819003602001902054118015610f565750600a82604051610f429190613ffb565b908152604051908190036020019020544210155b8015610f835750600a82604051610f6d9190613ffb565b9081526020016040518091039020600101544211155b8015610ab35750600a82604051610f9a9190613ffb565b9081526040519081900360200190206005015460ff161592915050565b336000908152600f602052604090205460ff16151560011461101b5760405162461bcd60e51b815260206004820152600c60248201527f426164206578656375746f7200000000000000000000000000000000000000006044820152606401610cb1565b47806110695760405162461bcd60e51b815260206004820152601160248201527f53616c65732042616c616e6365203d20300000000000000000000000000000006044820152606401610cb1565b60005b600d5460ff82161015611144576000600d8260ff168154811061109157611091614036565b906000526020600020906002020160010154111561113257611132600d8260ff16815481106110c2576110c2614036565b906000526020600020906002020160000160009054906101000a90046001600160a01b031661112d600e54611127600d8660ff168154811061110657611106614036565b90600052602060002090600202016001015487612d5690919063ffffffff16565b90612d62565b612d6e565b8061113c8161404c565b91505061106c565b5061116061115a6006546001600160a01b031690565b47612d6e565b50565b610e0983838360405180602001604052806000815250612195565b61118733610e84565b6111d35760405162461bcd60e51b815260206004820152601660248201527f4e6f74206f776e6572206e6f7220617070726f766564000000000000000000006044820152606401610cb1565b60016008600d8282829054906101000a900463ffffffff166111f5919061406c565b92506101000a81548163ffffffff021916908363ffffffff16021790555061116081612e11565b6060600061122983611a27565b90506000808267ffffffffffffffff81111561124757611247613a0f565b604051908082528060200260200182016040528015611270578160200160208202803683370190505b5060085490915068010000000000000000900460ff165b6008546112b69068010000000000000000810460ff16906901000000000000000000900463ffffffff1661406c565b63ffffffff168163ffffffff16101561134b5763ffffffff81166000908152600260205260409020546001600160a01b038781169116146112f657611339565b838314156113035761134b565b8082848151811061131657611316614036565b63ffffffff909216602092830291909101909101528261133581614094565b9350505b80611343816140af565b915050611287565b50949350505050565b60606000825167ffffffffffffffff81111561137257611372613a0f565b60405190808252806020026020018201604052801561139b578160200160208202803683370190505b50905060005b8351811015611410576113dc8482815181106113bf576113bf614036565b602002602001015160009081526011602052604090205460ff1690565b8282815181106113ee576113ee614036565b911515602092830291909101909101528061140881614094565b9150506113a1565b5092915050565b63ffffffff81166000908152600260205260408120546001600160a01b031680610ab35760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610cb1565b6040518060400160405280600581526020017f434c41494d00000000000000000000000000000000000000000000000000000081525081516114ea82610f07565b6115365760405162461bcd60e51b815260206004820152600d60248201527f4d696e74206e6f74206f70656e000000000000000000000000000000000000006044820152606401610cb1565b600a826040516115469190613ffb565b9081526020016040518091039020600301548111156115a75760405162461bcd60e51b815260206004820152601060248201527f4d617820706572207478206c696d6974000000000000000000000000000000006044820152606401610cb1565b6115b18282610e49565b3410156116005760405162461bcd60e51b815260206004820152600b60248201527f56616c7565206c696d69740000000000000000000000000000000000000000006044820152606401610cb1565b6000600a836040516116129190613ffb565b908152602001604051809103902060020154111561174a57600a8260405161163a9190613ffb565b90815260200160405180910390206002015481600c8460405161165d9190613ffb565b908152602001604051809103902060006116743390565b6001600160a01b03166001600160a01b031681526020019081526020016000205461169f91906140d3565b11156116ed5760405162461bcd60e51b815260206004820152601460248201527f4d6178207065722077616c6c6574206c696d69740000000000000000000000006044820152606401610cb1565b80600c836040516116fe9190613ffb565b908152602001604051809103902060006117153390565b6001600160a01b03166001600160a01b03168152602001908152602001600020600082825461174491906140d3565b90915550505b825160085463ffffffff80821691611771918491690100000000000000000090041661406c565b63ffffffff1611156117c55760405162461bcd60e51b815260206004820152600960248201527f536f6c64206f75742100000000000000000000000000000000000000000000006044820152606401610cb1565b600260075414156118185760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610cb1565b60026007553360005b85518161ffff161015611a1a5760105486516001600160a01b03808516921690636352211e90899061ffff861690811061185d5761185d614036565b60200260200101516040518263ffffffff1660e01b815260040161188391815260200190565b60206040518083038186803b15801561189b57600080fd5b505afa1580156118af573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118d391906140eb565b6001600160a01b0316146119295760405162461bcd60e51b815260206004820181905260248201527f4e6f74206f776e6572206f6620746869732054726f6e5761727320746f6b656e6044820152606401610cb1565b611942868261ffff16815181106113bf576113bf614036565b156119b55760405162461bcd60e51b815260206004820152602b60248201527f5468652054726f6e5761727320746f6b656e2068617320616c7265616479206260448201527f65656e20636c61696d65640000000000000000000000000000000000000000006064820152608401610cb1565b600160116000888461ffff16815181106119d1576119d1614036565b6020026020010151815260200190815260200160002060006101000a81548160ff021916908315150217905550611a0782612ed9565b5080611a1281614108565b915050611821565b5050600160075550505050565b60006001600160a01b038216611aa55760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610cb1565b506001600160a01b031660009081526003602052604090205463ffffffff1690565b6006546001600160a01b03163314611b215760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610cb1565b611b2b6000612f62565b565b6006546001600160a01b03163314611b875760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610cb1565b611b916001612fc1565b63ffffffff166000908152601160205260409020805460ff19166001179055565b6040518060400160405280600681526020017f5055424c494300000000000000000000000000000000000000000000000000008152508163ffffffff16611bf882610f07565b611c445760405162461bcd60e51b815260206004820152600d60248201527f4d696e74206e6f74206f70656e000000000000000000000000000000000000006044820152606401610cb1565b600a82604051611c549190613ffb565b908152602001604051809103902060030154811115611cb55760405162461bcd60e51b815260206004820152601060248201527f4d617820706572207478206c696d6974000000000000000000000000000000006044820152606401610cb1565b611cbf8282610e49565b341015611d0e5760405162461bcd60e51b815260206004820152600b60248201527f56616c7565206c696d69740000000000000000000000000000000000000000006044820152606401610cb1565b6000600a83604051611d209190613ffb565b9081526020016040518091039020600201541115611e5857600a82604051611d489190613ffb565b90815260200160405180910390206002015481600c84604051611d6b9190613ffb565b90815260200160405180910390206000611d823390565b6001600160a01b03166001600160a01b0316815260200190815260200160002054611dad91906140d3565b1115611dfb5760405162461bcd60e51b815260206004820152601460248201527f4d6178207065722077616c6c6574206c696d69740000000000000000000000006044820152606401610cb1565b80600c83604051611e0c9190613ffb565b90815260200160405180910390206000611e233390565b6001600160a01b03166001600160a01b031681526020019081526020016000206000828254611e5291906140d3565b90915550505b60085463ffffffff8085169180821691611e8291849169010000000000000000009091041661406c565b63ffffffff161115611ed65760405162461bcd60e51b815260206004820152600960248201527f536f6c64206f75742100000000000000000000000000000000000000000000006044820152606401610cb1565b60026007541415611f295760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610cb1565b6002600755611f383385613147565b505060016007555050565b6006546001600160a01b03163314611f9d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610cb1565b80600a83604051611fae9190613ffb565b908152604051908190036020019020600501805491151560ff199092169190911790555050565b606060018054610ac890613f85565b6006546001600160a01b0316331461203e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610cb1565b80516120519060099060208401906137e6565b5050565b600b818154811061206557600080fd5b90600052602060002001600091509050805461208090613f85565b80601f01602080910402602001604051908101604052809291908181526020018280546120ac90613f85565b80156120f95780601f106120ce576101008083540402835291602001916120f9565b820191906000526020600020905b8154815290600101906020018083116120dc57829003601f168201915b505050505081565b61205133838361317a565b6006546001600160a01b031633146121665760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610cb1565b6010805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b61219f3383612a2e565b6122115760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610cb1565b61221d84848484613249565b50505050565b6000600c836040516122359190613ffb565b908152604080519182900360209081019092206001600160a01b03851660009081529252902054905092915050565b606061228d8263ffffffff166000908152600260205260409020546001600160a01b0316151590565b6122ff5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610cb1565b60006123096132d2565b905060008151116123295760405180602001604052806000815250610e78565b80612333846132dc565b604051602001612344929190614120565b6040516020818303038152906040529392505050565b600d818154811061236a57600080fd5b6000918252602090912060029091020180546001909101546001600160a01b03909116915082565b6009805461208090613f85565b606060005b600b5481101561251f5761245c600b82815481106123c4576123c4614036565b9060005260206000200180546123d990613f85565b80601f016020809104026020016040519081016040528092919081815260200182805461240590613f85565b80156124525780601f1061242757610100808354040283529160200191612452565b820191906000526020600020905b81548152906001019060200180831161243557829003601f168201915b5050505050610f07565b1561250d57600b818154811061247457612474614036565b90600052602060002001805461248990613f85565b80601f01602080910402602001604051908101604052809291908181526020018280546124b590613f85565b80156125025780601f106124d757610100808354040283529160200191612502565b820191906000526020600020905b8154815290600101906020018083116124e557829003601f168201915b505050505091505090565b8061251781614094565b9150506123a4565b505060408051808201909152600481527f4e4f4e4500000000000000000000000000000000000000000000000000000000602082015290565b6006546001600160a01b031633146125b25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610cb1565b8060c001516126035760405162461bcd60e51b815260206004820152601660248201527f5f6d696e742e76616c6964206973206d697373696e67000000000000000000006044820152606401610cb1565b600a826040516126139190613ffb565b9081526040519081900360200190206005015460ff6101009091041661267857600b80546001810182556000919091528251612676917f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db9019060208501906137e6565b505b80600a836040516126899190613ffb565b90815260408051918290036020908101832084518155908401516001820155908301516002820155606083015160038201556080830151600482015560a08301516005909101805460c0909401511515610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff921515929092167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff000090941693909317179091557f3c962146da3bd7dd94058de71955615106fe10306e81de47ffc1f51965b4264e906127609084908490614146565b60405180910390a15050565b6006546001600160a01b031633146127c65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610cb1565b6001600160a01b0381166128425760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610cb1565b61116081612f62565b336000908152600f602052604090205460ff1615156001146128af5760405162461bcd60e51b815260206004820152600c60248201527f426164206578656375746f7200000000000000000000000000000000000000006044820152606401610cb1565b336001600160a01b0316600d83815481106128cc576128cc614036565b60009182526020909120600290910201546001600160a01b0316146129335760405162461bcd60e51b815260206004820152601360248201527f4261642077616c6c65742070617274206b6579000000000000000000000000006044820152606401610cb1565b80600d838154811061294757612947614036565b60009182526020808320600292909202909101805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03948516179055338252600f90526040808220805460ff19908116909155939092168152208054909116600117905550565b63ffffffff81166000908152600460205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03841690811790915581906129f582611417565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b63ffffffff81166000908152600260205260408120546001600160a01b0316612abf5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610cb1565b6000612aca83611417565b9050806001600160a01b0316846001600160a01b03161480612b055750836001600160a01b0316612afa84610c24565b6001600160a01b0316145b80612b3557506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316612b5082611417565b6001600160a01b031614612bcc5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610cb1565b6001600160a01b038216612c475760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610cb1565b612c526000826129ac565b6001600160a01b0383166000908152600360205260408120805460019290612c8190849063ffffffff16613fd6565b82546101009290920a63ffffffff8181021990931691831602179091556001600160a01b03841660009081526003602052604081208054600194509092612cca9185911661406c565b82546101009290920a63ffffffff8181021990931691831602179091558216600090815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0387811691821790925591518594509192908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b6000610e788284614017565b6000610e7882846141c1565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612dbb576040519150601f19603f3d011682016040523d82523d6000602084013e612dc0565b606091505b5050905080610e095760405162461bcd60e51b815260206004820152601060248201527f5472616e73666572206661696c65642e000000000000000000000000000000006044820152606401610cb1565b6000612e1c82611417565b9050612e296000836129ac565b6001600160a01b0381166000908152600360205260408120805460019290612e5890849063ffffffff16613fd6565b82546101009290920a63ffffffff8181021990931691831602179091558316600090815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19169055518492506001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6008546000908190612f0d9068010000000000000000810460ff16906901000000000000000000900463ffffffff1661406c565b6008805463ffffffff9283169350600192600991612f3a918591690100000000000000000090041661406c565b92506101000a81548163ffffffff021916908363ffffffff160217905550610ab3838261340e565b600680546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6006546001600160a01b0316331461301b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610cb1565b60085463ffffffff6401000000008204811691613047918491690100000000000000000090041661406c565b63ffffffff16111561309b5760405162461bcd60e51b815260206004820152601460248201527f457863656564656420524553455256455f4e46540000000000000000000000006044820152606401610cb1565b60085463ffffffff808216916130c0918491690100000000000000000090041661406c565b63ffffffff1611156131145760405162461bcd60e51b815260206004820152600960248201527f536f6c64206f75742100000000000000000000000000000000000000000000006044820152606401610cb1565b60005b8163ffffffff168163ffffffff1610156120515761313433612ed9565b508061313f816140af565b915050613117565b60005b8163ffffffff168163ffffffff161015610e095761316783612ed9565b5080613172816140af565b91505061314a565b816001600160a01b0316836001600160a01b031614156131dc5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610cb1565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b613254848484612b3d565b61326084848484613428565b61221d5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610cb1565b6060610e446135d5565b60608161331c57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115613346578061333081614094565b915061333f9050600a836141c1565b9150613320565b60008167ffffffffffffffff81111561336157613361613a0f565b6040519080825280601f01601f19166020018201604052801561338b576020820181803683370190505b5090505b8415612b35576133a06001836141d5565b91506133ad600a866141ec565b6133b89060306140d3565b60f81b8183815181106133cd576133cd614036565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350613407600a866141c1565b945061338f565b6120518282604051806020016040528060008152506135e4565b60006001600160a01b0384163b156135ca576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a0290613485903390899088908890600401614200565b602060405180830381600087803b15801561349f57600080fd5b505af19250505080156134cf575060408051601f3d908101601f191682019092526134cc9181019061423c565b60015b61357f573d8080156134fd576040519150601f19603f3d011682016040523d82523d6000602084013e613502565b606091505b5080516135775760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610cb1565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050612b35565b506001949350505050565b606060098054610ac890613f85565b6135ee838361366d565b6135fb6000848484613428565b610e095760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610cb1565b6001600160a01b0382166136c35760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610cb1565b63ffffffff81166000908152600260205260409020546001600160a01b03161561372f5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610cb1565b6001600160a01b038216600090815260036020526040812080546001929061375e90849063ffffffff1661406c565b82546101009290920a63ffffffff8181021990931691831602179091558216600090815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03871690811790915590518493509091907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8280546137f290613f85565b90600052602060002090601f016020900481019282613814576000855561385a565b82601f1061382d57805160ff191683800117855561385a565b8280016001018555821561385a579182015b8281111561385a57825182559160200191906001019061383f565b5061386692915061386a565b5090565b5b80821115613866576000815560010161386b565b7fffffffff000000000000000000000000000000000000000000000000000000008116811461116057600080fd5b6000602082840312156138bf57600080fd5b8135610e788161387f565b60005b838110156138e55781810151838201526020016138cd565b8381111561221d5750506000910152565b6000815180845261390e8160208601602086016138ca565b601f01601f19169290920160200192915050565b602081526000610e7860208301846138f6565b6000602080830181845280855180835260408601915060408160051b870101925083870160005b828110156139a8577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc08886030184526139968583516138f6565b9450928501929085019060010161395c565b5092979650505050505050565b6000602082840312156139c757600080fd5b5035919050565b6001600160a01b038116811461116057600080fd5b600080604083850312156139f657600080fd5b8235613a01816139ce565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b60405160e0810167ffffffffffffffff81118282101715613a4857613a48613a0f565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715613a7757613a77613a0f565b604052919050565b600067ffffffffffffffff831115613a9957613a99613a0f565b613aac6020601f19601f86011601613a4e565b9050828152838383011115613ac057600080fd5b828260208301376000602084830101529392505050565b600082601f830112613ae857600080fd5b610e7883833560208501613a7f565b60008060408385031215613b0a57600080fd5b823567ffffffffffffffff811115613b2157600080fd5b613b2d85828601613ad7565b95602094909401359450505050565b600080600060608486031215613b5157600080fd5b8335613b5c816139ce565b92506020840135613b6c816139ce565b929592945050506040919091013590565b600060208284031215613b8f57600080fd5b813567ffffffffffffffff811115613ba657600080fd5b612b3584828501613ad7565b600060208284031215613bc457600080fd5b8135610e78816139ce565b6020808252825182820181905260009190848201906040850190845b81811015613c0d57835163ffffffff1683529284019291840191600101613beb565b50909695505050505050565b60006020808385031215613c2c57600080fd5b823567ffffffffffffffff80821115613c4457600080fd5b818501915085601f830112613c5857600080fd5b813581811115613c6a57613c6a613a0f565b8060051b9150613c7b848301613a4e565b8181529183018401918481019088841115613c9557600080fd5b938501935b83851015613cb357843582529385019390850190613c9a565b98975050505050505050565b6020808252825182820181905260009190848201906040850190845b81811015613c0d578351151583529284019291840191600101613cdb565b600060208284031215613d0b57600080fd5b813563ffffffff81168114610e7857600080fd5b80358015158114613d2f57600080fd5b919050565b60008060408385031215613d4757600080fd5b823567ffffffffffffffff811115613d5e57600080fd5b613d6a85828601613ad7565b925050613d7960208401613d1f565b90509250929050565b60008060408385031215613d9557600080fd5b8235613da0816139ce565b9150613d7960208401613d1f565b60008060008060808587031215613dc457600080fd5b8435613dcf816139ce565b93506020850135613ddf816139ce565b925060408501359150606085013567ffffffffffffffff811115613e0257600080fd5b8501601f81018713613e1357600080fd5b613e2287823560208401613a7f565b91505092959194509250565b60008060408385031215613e4157600080fd5b823567ffffffffffffffff811115613e5857600080fd5b613e6485828601613ad7565b9250506020830135613e75816139ce565b809150509250929050565b600080828403610100811215613e9557600080fd5b833567ffffffffffffffff811115613eac57600080fd5b613eb886828701613ad7565b93505060e0601f1982011215613ecd57600080fd5b50613ed6613a25565b6020840135815260408401356020820152606084013560408201526080840135606082015260a08401356080820152613f1160c08501613d1f565b60a0820152613f2260e08501613d1f565b60c0820152809150509250929050565b60008060408385031215613f4557600080fd5b8235613f50816139ce565b91506020830135613e75816139ce565b60008060408385031215613f7357600080fd5b823591506020830135613e75816139ce565b600181811c90821680613f9957607f821691505b60208210811415613fba57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600063ffffffff83811690831681811015613ff357613ff3613fc0565b039392505050565b6000825161400d8184602087016138ca565b9190910192915050565b600081600019048311821515161561403157614031613fc0565b500290565b634e487b7160e01b600052603260045260246000fd5b600060ff821660ff81141561406357614063613fc0565b60010192915050565b600063ffffffff80831681851680830382111561408b5761408b613fc0565b01949350505050565b60006000198214156140a8576140a8613fc0565b5060010190565b600063ffffffff808316818114156140c9576140c9613fc0565b6001019392505050565b600082198211156140e6576140e6613fc0565b500190565b6000602082840312156140fd57600080fd5b8151610e78816139ce565b600061ffff808316818114156140c9576140c9613fc0565b600083516141328184602088016138ca565b83519083019061408b8183602088016138ca565b600061010080835261415a818401866138f6565b91505082516020830152602083015160408301526040830151606083015260608301516080830152608083015160a083015260a0830151151560c083015260c0830151151560e08301529392505050565b634e487b7160e01b600052601260045260246000fd5b6000826141d0576141d06141ab565b500490565b6000828210156141e7576141e7613fc0565b500390565b6000826141fb576141fb6141ab565b500690565b60006001600160a01b0380871683528086166020840152508360408301526080606083015261423260808301846138f6565b9695505050505050565b60006020828403121561424e57600080fd5b8151610e788161387f56fea2646970667358221220153116444bbb8e7064144eadbef098b62f4087344393d12602fa665a57b11a5364736f6c63430008090033

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

0000000000000000000000000000000000000000000000000000000000000040000000000000000000000000537b2279d8f625a1b74cf3c1f0e2122fb047a6b0000000000000000000000000000000000000000000000000000000000000002668747470733a2f2f6261636b656e642e74686574726f6e776172732e636f6d2f74726f6e782f0000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : baseURI (string): https://backend.thetronwars.com/tronx/
Arg [1] : _tronWars (address): 0x537B2279d8f625a1B74CF3C1f0e2122fB047A6B0

-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 000000000000000000000000537b2279d8f625a1b74cf3c1f0e2122fb047a6b0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000026
Arg [3] : 68747470733a2f2f6261636b656e642e74686574726f6e776172732e636f6d2f
Arg [4] : 74726f6e782f0000000000000000000000000000000000000000000000000000


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.