ETH Price: $1,935.88 (-2.42%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Transfer Ownersh...172285652023-05-10 7:36:351024 days ago1683704195IN
0x0BdcAe0d...8b4E8aDaC
0 ETH0.001563353.78664424
Reserve Team Tok...158988412022-11-04 19:47:591210 days ago1667591279IN
0x0BdcAe0d...8b4E8aDaC
0 ETH0.0491741818.96490626
Reserve Team Tok...158988362022-11-04 19:46:591210 days ago1667591219IN
0x0BdcAe0d...8b4E8aDaC
0 ETH0.2139277718.43415754
Reserve Team Tok...158988252022-11-04 19:44:471210 days ago1667591087IN
0x0BdcAe0d...8b4E8aDaC
0 ETH0.1192808820.47665963
Reserve Team Tok...157451082022-10-14 8:18:471232 days ago1665735527IN
0x0BdcAe0d...8b4E8aDaC
0 ETH0.1762060515.18367721
Reserve Team Tok...157450992022-10-14 8:16:591232 days ago1665735419IN
0x0BdcAe0d...8b4E8aDaC
0 ETH0.0927415815.91310705
Reserve Team Tok...157449822022-10-14 7:53:231232 days ago1665734003IN
0x0BdcAe0d...8b4E8aDaC
0 ETH0.693657223.97218326
Reserve Team Tok...157448982022-10-14 7:36:231232 days ago1665732983IN
0x0BdcAe0d...8b4E8aDaC
0 ETH0.0681821311.69903775
Withdraw157448902022-10-14 7:34:471232 days ago1665732887IN
0x0BdcAe0d...8b4E8aDaC
0 ETH0.0003847112.6553789
Flip Sale Status157448862022-10-14 7:33:591232 days ago1665732839IN
0x0BdcAe0d...8b4E8aDaC
0 ETH0.000325513.5950302
Mint Public157447612022-10-14 7:08:351232 days ago1665731315IN
0x0BdcAe0d...8b4E8aDaC
0.06666 ETH0.002734115.34652736
Mint Public157426752022-10-14 0:09:351232 days ago1665706175IN
0x0BdcAe0d...8b4E8aDaC
0.06666 ETH0.0028413114.76331736
Mint Public157363152022-10-13 2:49:351233 days ago1665629375IN
0x0BdcAe0d...8b4E8aDaC
0.13332 ETH0.0041642314.17868133
Mint Public157363152022-10-13 2:49:351233 days ago1665629375IN
0x0BdcAe0d...8b4E8aDaC
0.06666 ETH0.0017882513.46163029
Mint Public157360922022-10-13 2:04:471233 days ago1665626687IN
0x0BdcAe0d...8b4E8aDaC
0.26664 ETH0.007500514.29279386
Mint Public157360482022-10-13 1:55:591233 days ago1665626159IN
0x0BdcAe0d...8b4E8aDaC
0.13332 ETH0.0042999814.64087578
Mint Public157349272022-10-12 22:10:591233 days ago1665612659IN
0x0BdcAe0d...8b4E8aDaC
0.06666 ETH0.0030010316.8448138
Mint Public157322872022-10-12 13:19:351234 days ago1665580775IN
0x0BdcAe0d...8b4E8aDaC
0.06666 ETH0.0031404716.3176964
Withdraw157238712022-10-11 9:07:471235 days ago1665479267IN
0x0BdcAe0d...8b4E8aDaC
0 ETH0.0009079529.86784317
Mint Public157228172022-10-11 5:36:111235 days ago1665466571IN
0x0BdcAe0d...8b4E8aDaC
0.06666 ETH0.0044080324.74229835
Mint Public156433682022-09-30 3:08:231246 days ago1664507303IN
0x0BdcAe0d...8b4E8aDaC
0.13332 ETH0.0093949431.98856855
Mint Public156432892022-09-30 2:52:111246 days ago1664506331IN
0x0BdcAe0d...8b4E8aDaC
0.13332 ETH0.0033658210.92810688
Mint Public156319002022-09-28 12:41:111248 days ago1664368871IN
0x0BdcAe0d...8b4E8aDaC
0.13332 ETH0.0046133815.70798187
Withdraw156100972022-09-25 11:30:111251 days ago1664105411IN
0x0BdcAe0d...8b4E8aDaC
0 ETH0.000151314.9776012
Reserve Team Tok...155831662022-09-21 17:15:111254 days ago1663780511IN
0x0BdcAe0d...8b4E8aDaC
0 ETH0.0024534214.97962627
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Method Block
From
To
Transfer157448902022-10-14 7:34:471232 days ago1665732887
0x0BdcAe0d...8b4E8aDaC
0.79992 ETH
Transfer157238712022-10-11 9:07:471235 days ago1665479267
0x0BdcAe0d...8b4E8aDaC
0.46662 ETH
Transfer156100972022-09-25 11:30:111251 days ago1664105411
0x0BdcAe0d...8b4E8aDaC
0.86658 ETH
Transfer153792462022-08-20 18:43:571286 days ago1661021037
0x0BdcAe0d...8b4E8aDaC
0.06666 ETH
Transfer153085222022-08-09 14:28:041298 days ago1660055284
0x0BdcAe0d...8b4E8aDaC
0.93324 ETH
Transfer152135032022-07-25 19:12:061312 days ago1658776326
0x0BdcAe0d...8b4E8aDaC
0.59994 ETH
Transfer151291462022-07-12 17:19:371325 days ago1657646377
0x0BdcAe0d...8b4E8aDaC
0.26664 ETH
Transfer150523632022-06-30 20:35:311337 days ago1656621331
0x0BdcAe0d...8b4E8aDaC
1.3332 ETH
-149455182022-06-11 17:33:491356 days ago1654968829
0x0BdcAe0d...8b4E8aDaC
1.93314 ETH
-148806832022-05-31 20:10:431367 days ago1654027843
0x0BdcAe0d...8b4E8aDaC
1.59984 ETH
-148471062022-05-26 9:02:461373 days ago1653555766
0x0BdcAe0d...8b4E8aDaC
1.13322 ETH
-148066472022-05-19 19:08:511379 days ago1652987331
0x0BdcAe0d...8b4E8aDaC
0.79992 ETH
-147747722022-05-14 16:57:281384 days ago1652547448
0x0BdcAe0d...8b4E8aDaC
2.73306 ETH
-146806532022-04-29 17:51:211399 days ago1651254681
0x0BdcAe0d...8b4E8aDaC
1.59984 ETH
-146658982022-04-27 10:17:331402 days ago1651054653
0x0BdcAe0d...8b4E8aDaC
12.53208 ETH
-145629482022-04-11 7:02:011418 days ago1649660521
0x0BdcAe0d...8b4E8aDaC
2.19978 ETH
-144811462022-03-29 12:40:391431 days ago1648557639
0x0BdcAe0d...8b4E8aDaC
1.59984 ETH
-144309962022-03-21 17:15:511438 days ago1647882951
0x0BdcAe0d...8b4E8aDaC
2.86638 ETH
-144043182022-03-17 13:34:221443 days ago1647524062
0x0BdcAe0d...8b4E8aDaC
2.39976 ETH
-143735262022-03-12 18:23:271447 days ago1647109407
0x0BdcAe0d...8b4E8aDaC
2.06646 ETH
-143651142022-03-11 10:58:031449 days ago1646996283
0x0BdcAe0d...8b4E8aDaC
7.53258 ETH
-143390732022-03-07 10:09:191453 days ago1646647759
0x0BdcAe0d...8b4E8aDaC
3.39966 ETH
-143008102022-03-01 11:19:321459 days ago1646133572
0x0BdcAe0d...8b4E8aDaC
4.3329 ETH
-141970892022-02-13 9:48:061475 days ago1644745686
0x0BdcAe0d...8b4E8aDaC
6.86598 ETH
-141646512022-02-08 9:35:281480 days ago1644312928
0x0BdcAe0d...8b4E8aDaC
3.53298 ETH
View All Internal Transactions
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
NonFungibleHeroesGodsMinter

Compiler Version
v0.8.6+commit.11564f7e

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.6;

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

contract NonFungibleHeroesGodsMinter is Ownable, ReentrancyGuard {

    // ======== Supply =========
    uint256 public constant MAX_MINTS_PER_TX = 20;
    uint256 public maxMintsPerAddress;
    uint256 public maxGods;

    // ======== Cost =========
    uint256 public constant GOD_COST = 0.06666 ether;

    // ======== Sale status =========
    bool public saleIsActive = false;
    uint256 public preSaleStart; // When the whitelist claiming/minting starts
    uint256 public communitySaleStart; // When the free Gods claiming/minting starts
    uint256 public publicSaleStart; // Public sale start (20 mints per tx, max 200 mints per address)

    // ======== Claim Tracking =========
    mapping(address => uint256) private addressToMintCount;
    mapping(address => uint256) private addressToClaimableGods;
    mapping(address => uint256) private saleWhitelist;

    // ======== External Storage Contract =========
    INonFungibleHeroesGodsToken public godsToken;

    // ======== Constructor =========
    constructor(address nonFungibleHeroesAddress,
                uint256 preSaleStartTimestamp,
                uint256 communitySaleStartTimestamp,
                uint256 publicSaleStartTimestamp,
                uint256 godSupply,
                uint256 maxMintsAddress) {
        godsToken = INonFungibleHeroesGodsToken(nonFungibleHeroesAddress);
        preSaleStart = preSaleStartTimestamp;
        communitySaleStart = communitySaleStartTimestamp;
        publicSaleStart = publicSaleStartTimestamp;
        maxGods = godSupply;
        maxMintsPerAddress = maxMintsAddress;
    }

    // ======== Claim / Minting =========
    function mintCommunity(uint amount) external nonReentrant {
        require(saleIsActive, "Sale must be active to claim!");
        require(block.timestamp >= communitySaleStart && block.timestamp < publicSaleStart, "Community sale not active!");
        require(amount > 0, "Enter valid amount to claim");
        require(amount <= addressToClaimableGods[msg.sender], "Invalid hero amount!");
        require(amount <= MAX_MINTS_PER_TX, "Exceeds max mint per tx!");

        godsToken.mint(amount, msg.sender);
        addressToClaimableGods[msg.sender] -= amount;
    }

    function mintPublic(uint amount) public payable nonReentrant {
        uint256 supply = godsToken.totalSupply();
        require(saleIsActive, "Sale must be active to claim!");
        require(block.timestamp >= preSaleStart, "Sale not started!");
        require(amount <= MAX_MINTS_PER_TX, "Exceeds max mint per tx!");
        require(addressToMintCount[msg.sender] + amount <= maxMintsPerAddress, "Exceeded wallet mint limit!");

        // Whitelist period
        if (block.timestamp < publicSaleStart) {
            require(saleWhitelist[msg.sender] > 0, "Must be on the sale whitelist");
        }

        require(supply + amount <= maxGods, "Exceeds max hero supply!");
        require(msg.value >= GOD_COST * amount, "Invalid ETH value sent!");

        godsToken.mint(amount, msg.sender);

        addressToMintCount[msg.sender] += amount;
        
        if (block.timestamp < publicSaleStart) {
            saleWhitelist[msg.sender] -= amount;
        }
    }

    function reserveTeamTokens(address _to, uint256 _reserveAmount) public onlyOwner {
        uint256 supply = godsToken.totalSupply();
        require(supply + _reserveAmount <= maxGods, "Exceeds max hero supply!");
        godsToken.mint(_reserveAmount, _to);
    }

    // ======== Snapshot / Whitelisting
    function snapshot(address[] memory _addresses, uint[] memory _godsToClaim) external onlyOwner {
        require(_addresses.length == _godsToClaim.length, "Invalid snapshot data");
        for (uint i = 0; i < _addresses.length; i++) {
            addressToClaimableGods[_addresses[i]] = _godsToClaim[i];
        }
    }

    function addWhitelisted(address[] memory _addresses, uint[] memory _godsToClaim) external onlyOwner {
        require(_addresses.length == _godsToClaim.length, "Invalid whitelist data");
        for (uint256 i = 0; i < _addresses.length; i++) {
            saleWhitelist[_addresses[i]] = _godsToClaim[i];
        }
    }

    // ======== Max Minting =========
    function setMaxMintPerAddress(uint _max) public onlyOwner {
        maxMintsPerAddress = _max;
    }

    // ======== Utilities =========
    function remainingWhitelistGodsForClaim(address _address) external view returns (uint) {
        return saleWhitelist[_address];
    }

    function remainingGodsForClaim(address _address) external view returns (uint) {
        return addressToClaimableGods[_address];
    }

    function mintCount(address _address) external view returns (uint) {
        return addressToMintCount[_address];
    }

    function isPreSaleActive() external view returns (bool) {
        return block.timestamp >= preSaleStart && block.timestamp < publicSaleStart && saleIsActive;
    }

    function isCommunitySaleActive() external view returns (bool) {
        return block.timestamp >= communitySaleStart && block.timestamp < publicSaleStart && saleIsActive;
    }

    function isPublicSaleActive() external view returns (bool) {
        return block.timestamp >= publicSaleStart && saleIsActive;
    }

    // ======== State management =========
    function flipSaleStatus() public onlyOwner {
        saleIsActive = !saleIsActive;
    }

    // ======== Withdraw =========
    function withdraw() public payable onlyOwner {
        uint balance = address(this).balance;
        require(payable(msg.sender).send(balance));
    }
}

// SPDX-License-Identifier: MIT

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() {
        _setOwner(_msgSender());
    }

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

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

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

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

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

File 3 of 15 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

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 make 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;
    }
}

// Contract based on https://docs.openzeppelin.com/contracts/3.x/erc721
// SPDX-License-Identifier: MIT
/// @title Interface for NonFungibleHeroesGodsToken

pragma solidity ^0.8.6;

import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";

abstract contract INonFungibleHeroesGodsToken is ERC721Enumerable {

    function setProvenanceHash(string memory _provenanceHash) virtual external;

    function mint(uint256 _count, address _recipient) virtual external;

    function setBaseURI(string memory baseURI) virtual external;

    function updateMinter(address _minter) virtual external;

    function lockMinter() virtual external;
}

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../ERC721.sol";
import "./IERC721Enumerable.sol";

/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds
 * enumerability of all the token ids in the contract as well as all token ids owned by each
 * account.
 */
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
    // Mapping from owner to list of owned token IDs
    mapping(address => mapping(uint256 => uint256)) private _ownedTokens;

    // Mapping from token ID to index of the owner tokens list
    mapping(uint256 => uint256) private _ownedTokensIndex;

    // Array with all token ids, used for enumeration
    uint256[] private _allTokens;

    // Mapping from token id to position in the allTokens array
    mapping(uint256 => uint256) private _allTokensIndex;

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

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
        return _ownedTokens[owner][index];
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _allTokens.length;
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds");
        return _allTokens[index];
    }

    /**
     * @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` cannot be the zero address.
     * - `to` cannot be the zero address.
     *
     * 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 override {
        super._beforeTokenTransfer(from, to, tokenId);

        if (from == address(0)) {
            _addTokenToAllTokensEnumeration(tokenId);
        } else if (from != to) {
            _removeTokenFromOwnerEnumeration(from, tokenId);
        }
        if (to == address(0)) {
            _removeTokenFromAllTokensEnumeration(tokenId);
        } else if (to != from) {
            _addTokenToOwnerEnumeration(to, tokenId);
        }
    }

    /**
     * @dev Private function to add a token to this extension's ownership-tracking data structures.
     * @param to address representing the new owner of the given token ID
     * @param tokenId uint256 ID of the token to be added to the tokens list of the given address
     */
    function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
        uint256 length = ERC721.balanceOf(to);
        _ownedTokens[to][length] = tokenId;
        _ownedTokensIndex[tokenId] = length;
    }

    /**
     * @dev Private function to add a token to this extension's token tracking data structures.
     * @param tokenId uint256 ID of the token to be added to the tokens list
     */
    function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
        _allTokensIndex[tokenId] = _allTokens.length;
        _allTokens.push(tokenId);
    }

    /**
     * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
     * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
     * gas optimizations e.g. when performing a transfer operation (avoiding double writes).
     * This has O(1) time complexity, but alters the order of the _ownedTokens array.
     * @param from address representing the previous owner of the given token ID
     * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
     */
    function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
        // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = ERC721.balanceOf(from) - 1;
        uint256 tokenIndex = _ownedTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary
        if (tokenIndex != lastTokenIndex) {
            uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];

            _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
            _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
        }

        // This also deletes the contents at the last position of the array
        delete _ownedTokensIndex[tokenId];
        delete _ownedTokens[from][lastTokenIndex];
    }

    /**
     * @dev Private function to remove a token from this extension's token tracking data structures.
     * This has O(1) time complexity, but alters the order of the _allTokens array.
     * @param tokenId uint256 ID of the token to be removed from the tokens list
     */
    function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
        // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = _allTokens.length - 1;
        uint256 tokenIndex = _allTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
        // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
        // an 'if' statement (like in _removeTokenFromOwnerEnumeration)
        uint256 lastTokenId = _allTokens[lastTokenIndex];

        _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
        _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index

        // This also deletes the contents at the last position of the array
        delete _allTokensIndex[tokenId];
        _allTokens.pop();
    }
}

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../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(uint256 => address) private _owners;

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

    // Mapping from token ID to approved address
    mapping(uint256 => 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 _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _owners[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[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        require(operator != _msgSender(), "ERC721: approve to caller");

        _operatorApprovals[_msgSender()][operator] = approved;
        emit ApprovalForAll(_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[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[tokenId] = to;

        emit Transfer(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[tokenId];

        emit Transfer(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 of token that is not own");
        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[tokenId] = to;

        emit Transfer(from, to, tokenId);
    }

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

    /**
     * @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 {}
}

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {
    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
     * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId);

    /**
     * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
     * Use along with {totalSupply} to enumerate all tokens.
     */
    function tokenByIndex(uint256 index) external view returns (uint256);
}

// SPDX-License-Identifier: MIT

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 10 of 15 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

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);
}

// SPDX-License-Identifier: MIT

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);
}

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @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);
            }
        }
    }
}

// SPDX-License-Identifier: MIT

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);
    }
}

// SPDX-License-Identifier: MIT

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

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"nonFungibleHeroesAddress","type":"address"},{"internalType":"uint256","name":"preSaleStartTimestamp","type":"uint256"},{"internalType":"uint256","name":"communitySaleStartTimestamp","type":"uint256"},{"internalType":"uint256","name":"publicSaleStartTimestamp","type":"uint256"},{"internalType":"uint256","name":"godSupply","type":"uint256"},{"internalType":"uint256","name":"maxMintsAddress","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"GOD_COST","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_MINTS_PER_TX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addresses","type":"address[]"},{"internalType":"uint256[]","name":"_godsToClaim","type":"uint256[]"}],"name":"addWhitelisted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"communitySaleStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"flipSaleStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"godsToken","outputs":[{"internalType":"contract INonFungibleHeroesGodsToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isCommunitySaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPreSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPublicSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxGods","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintsPerAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mintCommunity","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"mintCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mintPublic","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"preSaleStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSaleStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"remainingGodsForClaim","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"remainingWhitelistGodsForClaim","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_reserveAmount","type":"uint256"}],"name":"reserveTeamTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_max","type":"uint256"}],"name":"setMaxMintPerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addresses","type":"address[]"},{"internalType":"uint256[]","name":"_godsToClaim","type":"uint256[]"}],"name":"snapshot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"}]

60806040526000600460006101000a81548160ff0219169083151502179055503480156200002c57600080fd5b50604051620028de380380620028de8339818101604052810190620000529190620001e3565b6200007262000066620000e960201b60201c565b620000f160201b60201c565b6001808190555085600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508460058190555083600681905550826007819055508160038190555080600281905550505050505050620002f6565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600081519050620001c681620002c2565b92915050565b600081519050620001dd81620002dc565b92915050565b60008060008060008060c08789031215620002035762000202620002bd565b5b60006200021389828a01620001b5565b96505060206200022689828a01620001cc565b95505060406200023989828a01620001cc565b94505060606200024c89828a01620001cc565b93505060806200025f89828a01620001cc565b92505060a06200027289828a01620001cc565b9150509295509295509295565b60006200028c8262000293565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600080fd5b620002cd816200027f565b8114620002d957600080fd5b50565b620002e781620002b3565b8114620002f357600080fd5b50565b6125d880620003066000396000f3fe6080604052600436106101815760003560e01c8063ae6a80d5116100d1578063e8bf266b1161008a578063ece94e4f11610064578063ece94e4f1461050b578063ed9ec88814610534578063efd0cbf914610571578063f2fde38b1461058d57610181565b8063e8bf266b1461048a578063eb4883ab146104b5578063eb8d2444146104e057610181565b8063ae6a80d51461038c578063bc1c36a6146103b7578063c6a91b42146103f4578063ce03ec931461041f578063de5e931214610436578063e71433d61461046157610181565b80633ca8a8e41161013e578063715018a611610118578063715018a6146102f457806374c38c311461030b5780638da5cb5b146103365780639d044ed31461036157610181565b80633ca8a8e4146102845780633ccfd60b146102ad5780636db2f819146102b757610181565b80630d5624b3146101865780631b2885fb146101b15780631c36e146146101da5780631e14d44b146102055780631e84c4131461022e5780633360caa014610259575b600080fd5b34801561019257600080fd5b5061019b6105b6565b6040516101a89190611f99565b60405180910390f35b3480156101bd57600080fd5b506101d860048036038101906101d39190611ac5565b6105bc565b005b3480156101e657600080fd5b506101ef6108a3565b6040516101fc9190611f99565b60405180910390f35b34801561021157600080fd5b5061022c60048036038101906102279190611ac5565b6108ae565b005b34801561023a57600080fd5b50610243610934565b6040516102509190611d83565b60405180910390f35b34801561026557600080fd5b5061026e610959565b60405161027b9190611f99565b60405180910390f35b34801561029057600080fd5b506102ab60048036038101906102a69190611a4d565b61095f565b005b6102b5610abb565b005b3480156102c357600080fd5b506102de60048036038101906102d991906119e0565b610b7d565b6040516102eb9190611f99565b60405180910390f35b34801561030057600080fd5b50610309610bc6565b005b34801561031757600080fd5b50610320610c4e565b60405161032d9190611d9e565b60405180910390f35b34801561034257600080fd5b5061034b610c74565b6040516103589190611d68565b60405180910390f35b34801561036d57600080fd5b50610376610c9d565b6040516103839190611d83565b60405180910390f35b34801561039857600080fd5b506103a1610ccf565b6040516103ae9190611f99565b60405180910390f35b3480156103c357600080fd5b506103de60048036038101906103d991906119e0565b610cd5565b6040516103eb9190611f99565b60405180910390f35b34801561040057600080fd5b50610409610d1e565b6040516104169190611f99565b60405180910390f35b34801561042b57600080fd5b50610434610d23565b005b34801561044257600080fd5b5061044b610dcb565b6040516104589190611f99565b60405180910390f35b34801561046d57600080fd5b5061048860048036038101906104839190611a0d565b610dd1565b005b34801561049657600080fd5b5061049f610fd5565b6040516104ac9190611f99565b60405180910390f35b3480156104c157600080fd5b506104ca610fdb565b6040516104d79190611d83565b60405180910390f35b3480156104ec57600080fd5b506104f561100d565b6040516105029190611d83565b60405180910390f35b34801561051757600080fd5b50610532600480360381019061052d9190611a4d565b611020565b005b34801561054057600080fd5b5061055b600480360381019061055691906119e0565b61117c565b6040516105689190611f99565b60405180910390f35b61058b60048036038101906105869190611ac5565b6111c5565b005b34801561059957600080fd5b506105b460048036038101906105af91906119e0565b6116a1565b005b60055481565b60026001541415610602576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105f990611f59565b60405180910390fd5b6002600181905550600460009054906101000a900460ff16610659576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161065090611f19565b60405180910390fd5b600654421015801561066c575060075442105b6106ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106a290611ef9565b60405180910390fd5b600081116106ee576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106e590611ed9565b60405180910390fd5b600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054811115610770576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161076790611e59565b60405180910390fd5b60148111156107b4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107ab90611f39565b60405180910390fd5b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166394bf804d82336040518363ffffffff1660e01b8152600401610811929190611fb4565b600060405180830381600087803b15801561082b57600080fd5b505af115801561083f573d6000803e3d6000fd5b5050505080600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610892919061211b565b925050819055506001808190555050565b66ecd2eab4ba400081565b6108b6611799565b73ffffffffffffffffffffffffffffffffffffffff166108d4610c74565b73ffffffffffffffffffffffffffffffffffffffff161461092a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161092190611e99565b60405180910390fd5b8060028190555050565b600060075442101580156109545750600460009054906101000a900460ff165b905090565b60075481565b610967611799565b73ffffffffffffffffffffffffffffffffffffffff16610985610c74565b73ffffffffffffffffffffffffffffffffffffffff16146109db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109d290611e99565b60405180910390fd5b8051825114610a1f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a1690611e39565b60405180910390fd5b60005b8251811015610ab657818181518110610a3e57610a3d612264565b5b602002602001015160096000858481518110610a5d57610a5c612264565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508080610aae906121ec565b915050610a22565b505050565b610ac3611799565b73ffffffffffffffffffffffffffffffffffffffff16610ae1610c74565b73ffffffffffffffffffffffffffffffffffffffff1614610b37576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b2e90611e99565b60405180910390fd5b60004790503373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050610b7a57600080fd5b50565b6000600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610bce611799565b73ffffffffffffffffffffffffffffffffffffffff16610bec610c74565b73ffffffffffffffffffffffffffffffffffffffff1614610c42576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c3990611e99565b60405180910390fd5b610c4c60006117a1565b565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60006005544210158015610cb2575060075442105b8015610cca5750600460009054906101000a900460ff165b905090565b60025481565b6000600960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b601481565b610d2b611799565b73ffffffffffffffffffffffffffffffffffffffff16610d49610c74565b73ffffffffffffffffffffffffffffffffffffffff1614610d9f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d9690611e99565b60405180910390fd5b600460009054906101000a900460ff1615600460006101000a81548160ff021916908315150217905550565b60065481565b610dd9611799565b73ffffffffffffffffffffffffffffffffffffffff16610df7610c74565b73ffffffffffffffffffffffffffffffffffffffff1614610e4d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e4490611e99565b60405180910390fd5b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015610eb757600080fd5b505afa158015610ecb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eef9190611af2565b90506003548282610f00919061206b565b1115610f41576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f3890611db9565b60405180910390fd5b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166394bf804d83856040518363ffffffff1660e01b8152600401610f9e929190611fb4565b600060405180830381600087803b158015610fb857600080fd5b505af1158015610fcc573d6000803e3d6000fd5b50505050505050565b60035481565b60006006544210158015610ff0575060075442105b80156110085750600460009054906101000a900460ff165b905090565b600460009054906101000a900460ff1681565b611028611799565b73ffffffffffffffffffffffffffffffffffffffff16611046610c74565b73ffffffffffffffffffffffffffffffffffffffff161461109c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161109390611e99565b60405180910390fd5b80518251146110e0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110d790611eb9565b60405180910390fd5b60005b8251811015611177578181815181106110ff576110fe612264565b5b6020026020010151600a600085848151811061111e5761111d612264565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550808061116f906121ec565b9150506110e3565b505050565b6000600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6002600154141561120b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161120290611f59565b60405180910390fd5b60026001819055506000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561127d57600080fd5b505afa158015611291573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112b59190611af2565b9050600460009054906101000a900460ff16611306576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112fd90611f19565b60405180910390fd5b60055442101561134b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161134290611e19565b60405180910390fd5b601482111561138f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161138690611f39565b60405180910390fd5b60025482600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546113dd919061206b565b111561141e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161141590611dd9565b60405180910390fd5b6007544210156114ab576000600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054116114aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114a190611e79565b60405180910390fd5b5b60035482826114ba919061206b565b11156114fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114f290611db9565b60405180910390fd5b8166ecd2eab4ba400061150e91906120c1565b341015611550576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161154790611f79565b60405180910390fd5b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166394bf804d83336040518363ffffffff1660e01b81526004016115ad929190611fb4565b600060405180830381600087803b1580156115c757600080fd5b505af11580156115db573d6000803e3d6000fd5b5050505081600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461162e919061206b565b925050819055506007544210156116965781600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461168e919061211b565b925050819055505b506001808190555050565b6116a9611799565b73ffffffffffffffffffffffffffffffffffffffff166116c7610c74565b73ffffffffffffffffffffffffffffffffffffffff161461171d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161171490611e99565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561178d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161178490611df9565b60405180910390fd5b611796816117a1565b50565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600061187861187384612002565b611fdd565b9050808382526020820190508285602086028201111561189b5761189a6122c7565b5b60005b858110156118cb57816118b18882611945565b84526020840193506020830192505060018101905061189e565b5050509392505050565b60006118e86118e38461202e565b611fdd565b9050808382526020820190508285602086028201111561190b5761190a6122c7565b5b60005b8581101561193b578161192188826119b6565b84526020840193506020830192505060018101905061190e565b5050509392505050565b60008135905061195481612574565b92915050565b600082601f83011261196f5761196e6122c2565b5b813561197f848260208601611865565b91505092915050565b600082601f83011261199d5761199c6122c2565b5b81356119ad8482602086016118d5565b91505092915050565b6000813590506119c58161258b565b92915050565b6000815190506119da8161258b565b92915050565b6000602082840312156119f6576119f56122d1565b5b6000611a0484828501611945565b91505092915050565b60008060408385031215611a2457611a236122d1565b5b6000611a3285828601611945565b9250506020611a43858286016119b6565b9150509250929050565b60008060408385031215611a6457611a636122d1565b5b600083013567ffffffffffffffff811115611a8257611a816122cc565b5b611a8e8582860161195a565b925050602083013567ffffffffffffffff811115611aaf57611aae6122cc565b5b611abb85828601611988565b9150509250929050565b600060208284031215611adb57611ada6122d1565b5b6000611ae9848285016119b6565b91505092915050565b600060208284031215611b0857611b076122d1565b5b6000611b16848285016119cb565b91505092915050565b611b288161214f565b82525050565b611b3781612161565b82525050565b611b4681612197565b82525050565b6000611b5960188361205a565b9150611b64826122e7565b602082019050919050565b6000611b7c601b8361205a565b9150611b8782612310565b602082019050919050565b6000611b9f60268361205a565b9150611baa82612339565b604082019050919050565b6000611bc260118361205a565b9150611bcd82612388565b602082019050919050565b6000611be560158361205a565b9150611bf0826123b1565b602082019050919050565b6000611c0860148361205a565b9150611c13826123da565b602082019050919050565b6000611c2b601d8361205a565b9150611c3682612403565b602082019050919050565b6000611c4e60208361205a565b9150611c598261242c565b602082019050919050565b6000611c7160168361205a565b9150611c7c82612455565b602082019050919050565b6000611c94601b8361205a565b9150611c9f8261247e565b602082019050919050565b6000611cb7601a8361205a565b9150611cc2826124a7565b602082019050919050565b6000611cda601d8361205a565b9150611ce5826124d0565b602082019050919050565b6000611cfd60188361205a565b9150611d08826124f9565b602082019050919050565b6000611d20601f8361205a565b9150611d2b82612522565b602082019050919050565b6000611d4360178361205a565b9150611d4e8261254b565b602082019050919050565b611d628161218d565b82525050565b6000602082019050611d7d6000830184611b1f565b92915050565b6000602082019050611d986000830184611b2e565b92915050565b6000602082019050611db36000830184611b3d565b92915050565b60006020820190508181036000830152611dd281611b4c565b9050919050565b60006020820190508181036000830152611df281611b6f565b9050919050565b60006020820190508181036000830152611e1281611b92565b9050919050565b60006020820190508181036000830152611e3281611bb5565b9050919050565b60006020820190508181036000830152611e5281611bd8565b9050919050565b60006020820190508181036000830152611e7281611bfb565b9050919050565b60006020820190508181036000830152611e9281611c1e565b9050919050565b60006020820190508181036000830152611eb281611c41565b9050919050565b60006020820190508181036000830152611ed281611c64565b9050919050565b60006020820190508181036000830152611ef281611c87565b9050919050565b60006020820190508181036000830152611f1281611caa565b9050919050565b60006020820190508181036000830152611f3281611ccd565b9050919050565b60006020820190508181036000830152611f5281611cf0565b9050919050565b60006020820190508181036000830152611f7281611d13565b9050919050565b60006020820190508181036000830152611f9281611d36565b9050919050565b6000602082019050611fae6000830184611d59565b92915050565b6000604082019050611fc96000830185611d59565b611fd66020830184611b1f565b9392505050565b6000611fe7611ff8565b9050611ff382826121bb565b919050565b6000604051905090565b600067ffffffffffffffff82111561201d5761201c612293565b5b602082029050602081019050919050565b600067ffffffffffffffff82111561204957612048612293565b5b602082029050602081019050919050565b600082825260208201905092915050565b60006120768261218d565b91506120818361218d565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156120b6576120b5612235565b5b828201905092915050565b60006120cc8261218d565b91506120d78361218d565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156121105761210f612235565b5b828202905092915050565b60006121268261218d565b91506121318361218d565b92508282101561214457612143612235565b5b828203905092915050565b600061215a8261216d565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60006121a2826121a9565b9050919050565b60006121b48261216d565b9050919050565b6121c4826122d6565b810181811067ffffffffffffffff821117156121e3576121e2612293565b5b80604052505050565b60006121f78261218d565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561222a57612229612235565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f45786365656473206d6178206865726f20737570706c79210000000000000000600082015250565b7f45786365656465642077616c6c6574206d696e74206c696d6974210000000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f53616c65206e6f74207374617274656421000000000000000000000000000000600082015250565b7f496e76616c696420736e617073686f7420646174610000000000000000000000600082015250565b7f496e76616c6964206865726f20616d6f756e7421000000000000000000000000600082015250565b7f4d757374206265206f6e207468652073616c652077686974656c697374000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f496e76616c69642077686974656c697374206461746100000000000000000000600082015250565b7f456e7465722076616c696420616d6f756e7420746f20636c61696d0000000000600082015250565b7f436f6d6d756e6974792073616c65206e6f742061637469766521000000000000600082015250565b7f53616c65206d7573742062652061637469766520746f20636c61696d21000000600082015250565b7f45786365656473206d6178206d696e7420706572207478210000000000000000600082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b7f496e76616c6964204554482076616c75652073656e7421000000000000000000600082015250565b61257d8161214f565b811461258857600080fd5b50565b6125948161218d565b811461259f57600080fd5b5056fea264697066735822122017d8ab7e943c61827e2bc9c5ce3a44b147ca376ce6412d2444a5eb34ccec595764736f6c634300080600330000000000000000000000008ccf065f5c4d3e2fcb025329f22222448dbabf8b0000000000000000000000000000000000000000000000000000000061a6bb000000000000000000000000000000000000000000000000000000000061aaaf800000000000000000000000000000000000000000000000000000000061ad52800000000000000000000000000000000000000000000000000000000000001a0a0000000000000000000000000000000000000000000000000000000000000032

Deployed Bytecode

0x6080604052600436106101815760003560e01c8063ae6a80d5116100d1578063e8bf266b1161008a578063ece94e4f11610064578063ece94e4f1461050b578063ed9ec88814610534578063efd0cbf914610571578063f2fde38b1461058d57610181565b8063e8bf266b1461048a578063eb4883ab146104b5578063eb8d2444146104e057610181565b8063ae6a80d51461038c578063bc1c36a6146103b7578063c6a91b42146103f4578063ce03ec931461041f578063de5e931214610436578063e71433d61461046157610181565b80633ca8a8e41161013e578063715018a611610118578063715018a6146102f457806374c38c311461030b5780638da5cb5b146103365780639d044ed31461036157610181565b80633ca8a8e4146102845780633ccfd60b146102ad5780636db2f819146102b757610181565b80630d5624b3146101865780631b2885fb146101b15780631c36e146146101da5780631e14d44b146102055780631e84c4131461022e5780633360caa014610259575b600080fd5b34801561019257600080fd5b5061019b6105b6565b6040516101a89190611f99565b60405180910390f35b3480156101bd57600080fd5b506101d860048036038101906101d39190611ac5565b6105bc565b005b3480156101e657600080fd5b506101ef6108a3565b6040516101fc9190611f99565b60405180910390f35b34801561021157600080fd5b5061022c60048036038101906102279190611ac5565b6108ae565b005b34801561023a57600080fd5b50610243610934565b6040516102509190611d83565b60405180910390f35b34801561026557600080fd5b5061026e610959565b60405161027b9190611f99565b60405180910390f35b34801561029057600080fd5b506102ab60048036038101906102a69190611a4d565b61095f565b005b6102b5610abb565b005b3480156102c357600080fd5b506102de60048036038101906102d991906119e0565b610b7d565b6040516102eb9190611f99565b60405180910390f35b34801561030057600080fd5b50610309610bc6565b005b34801561031757600080fd5b50610320610c4e565b60405161032d9190611d9e565b60405180910390f35b34801561034257600080fd5b5061034b610c74565b6040516103589190611d68565b60405180910390f35b34801561036d57600080fd5b50610376610c9d565b6040516103839190611d83565b60405180910390f35b34801561039857600080fd5b506103a1610ccf565b6040516103ae9190611f99565b60405180910390f35b3480156103c357600080fd5b506103de60048036038101906103d991906119e0565b610cd5565b6040516103eb9190611f99565b60405180910390f35b34801561040057600080fd5b50610409610d1e565b6040516104169190611f99565b60405180910390f35b34801561042b57600080fd5b50610434610d23565b005b34801561044257600080fd5b5061044b610dcb565b6040516104589190611f99565b60405180910390f35b34801561046d57600080fd5b5061048860048036038101906104839190611a0d565b610dd1565b005b34801561049657600080fd5b5061049f610fd5565b6040516104ac9190611f99565b60405180910390f35b3480156104c157600080fd5b506104ca610fdb565b6040516104d79190611d83565b60405180910390f35b3480156104ec57600080fd5b506104f561100d565b6040516105029190611d83565b60405180910390f35b34801561051757600080fd5b50610532600480360381019061052d9190611a4d565b611020565b005b34801561054057600080fd5b5061055b600480360381019061055691906119e0565b61117c565b6040516105689190611f99565b60405180910390f35b61058b60048036038101906105869190611ac5565b6111c5565b005b34801561059957600080fd5b506105b460048036038101906105af91906119e0565b6116a1565b005b60055481565b60026001541415610602576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105f990611f59565b60405180910390fd5b6002600181905550600460009054906101000a900460ff16610659576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161065090611f19565b60405180910390fd5b600654421015801561066c575060075442105b6106ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106a290611ef9565b60405180910390fd5b600081116106ee576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106e590611ed9565b60405180910390fd5b600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054811115610770576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161076790611e59565b60405180910390fd5b60148111156107b4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107ab90611f39565b60405180910390fd5b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166394bf804d82336040518363ffffffff1660e01b8152600401610811929190611fb4565b600060405180830381600087803b15801561082b57600080fd5b505af115801561083f573d6000803e3d6000fd5b5050505080600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610892919061211b565b925050819055506001808190555050565b66ecd2eab4ba400081565b6108b6611799565b73ffffffffffffffffffffffffffffffffffffffff166108d4610c74565b73ffffffffffffffffffffffffffffffffffffffff161461092a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161092190611e99565b60405180910390fd5b8060028190555050565b600060075442101580156109545750600460009054906101000a900460ff165b905090565b60075481565b610967611799565b73ffffffffffffffffffffffffffffffffffffffff16610985610c74565b73ffffffffffffffffffffffffffffffffffffffff16146109db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109d290611e99565b60405180910390fd5b8051825114610a1f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a1690611e39565b60405180910390fd5b60005b8251811015610ab657818181518110610a3e57610a3d612264565b5b602002602001015160096000858481518110610a5d57610a5c612264565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508080610aae906121ec565b915050610a22565b505050565b610ac3611799565b73ffffffffffffffffffffffffffffffffffffffff16610ae1610c74565b73ffffffffffffffffffffffffffffffffffffffff1614610b37576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b2e90611e99565b60405180910390fd5b60004790503373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050610b7a57600080fd5b50565b6000600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610bce611799565b73ffffffffffffffffffffffffffffffffffffffff16610bec610c74565b73ffffffffffffffffffffffffffffffffffffffff1614610c42576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c3990611e99565b60405180910390fd5b610c4c60006117a1565b565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60006005544210158015610cb2575060075442105b8015610cca5750600460009054906101000a900460ff165b905090565b60025481565b6000600960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b601481565b610d2b611799565b73ffffffffffffffffffffffffffffffffffffffff16610d49610c74565b73ffffffffffffffffffffffffffffffffffffffff1614610d9f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d9690611e99565b60405180910390fd5b600460009054906101000a900460ff1615600460006101000a81548160ff021916908315150217905550565b60065481565b610dd9611799565b73ffffffffffffffffffffffffffffffffffffffff16610df7610c74565b73ffffffffffffffffffffffffffffffffffffffff1614610e4d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e4490611e99565b60405180910390fd5b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015610eb757600080fd5b505afa158015610ecb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eef9190611af2565b90506003548282610f00919061206b565b1115610f41576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f3890611db9565b60405180910390fd5b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166394bf804d83856040518363ffffffff1660e01b8152600401610f9e929190611fb4565b600060405180830381600087803b158015610fb857600080fd5b505af1158015610fcc573d6000803e3d6000fd5b50505050505050565b60035481565b60006006544210158015610ff0575060075442105b80156110085750600460009054906101000a900460ff165b905090565b600460009054906101000a900460ff1681565b611028611799565b73ffffffffffffffffffffffffffffffffffffffff16611046610c74565b73ffffffffffffffffffffffffffffffffffffffff161461109c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161109390611e99565b60405180910390fd5b80518251146110e0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110d790611eb9565b60405180910390fd5b60005b8251811015611177578181815181106110ff576110fe612264565b5b6020026020010151600a600085848151811061111e5761111d612264565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550808061116f906121ec565b9150506110e3565b505050565b6000600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6002600154141561120b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161120290611f59565b60405180910390fd5b60026001819055506000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561127d57600080fd5b505afa158015611291573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112b59190611af2565b9050600460009054906101000a900460ff16611306576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112fd90611f19565b60405180910390fd5b60055442101561134b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161134290611e19565b60405180910390fd5b601482111561138f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161138690611f39565b60405180910390fd5b60025482600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546113dd919061206b565b111561141e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161141590611dd9565b60405180910390fd5b6007544210156114ab576000600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054116114aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114a190611e79565b60405180910390fd5b5b60035482826114ba919061206b565b11156114fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114f290611db9565b60405180910390fd5b8166ecd2eab4ba400061150e91906120c1565b341015611550576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161154790611f79565b60405180910390fd5b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166394bf804d83336040518363ffffffff1660e01b81526004016115ad929190611fb4565b600060405180830381600087803b1580156115c757600080fd5b505af11580156115db573d6000803e3d6000fd5b5050505081600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461162e919061206b565b925050819055506007544210156116965781600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461168e919061211b565b925050819055505b506001808190555050565b6116a9611799565b73ffffffffffffffffffffffffffffffffffffffff166116c7610c74565b73ffffffffffffffffffffffffffffffffffffffff161461171d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161171490611e99565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561178d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161178490611df9565b60405180910390fd5b611796816117a1565b50565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600061187861187384612002565b611fdd565b9050808382526020820190508285602086028201111561189b5761189a6122c7565b5b60005b858110156118cb57816118b18882611945565b84526020840193506020830192505060018101905061189e565b5050509392505050565b60006118e86118e38461202e565b611fdd565b9050808382526020820190508285602086028201111561190b5761190a6122c7565b5b60005b8581101561193b578161192188826119b6565b84526020840193506020830192505060018101905061190e565b5050509392505050565b60008135905061195481612574565b92915050565b600082601f83011261196f5761196e6122c2565b5b813561197f848260208601611865565b91505092915050565b600082601f83011261199d5761199c6122c2565b5b81356119ad8482602086016118d5565b91505092915050565b6000813590506119c58161258b565b92915050565b6000815190506119da8161258b565b92915050565b6000602082840312156119f6576119f56122d1565b5b6000611a0484828501611945565b91505092915050565b60008060408385031215611a2457611a236122d1565b5b6000611a3285828601611945565b9250506020611a43858286016119b6565b9150509250929050565b60008060408385031215611a6457611a636122d1565b5b600083013567ffffffffffffffff811115611a8257611a816122cc565b5b611a8e8582860161195a565b925050602083013567ffffffffffffffff811115611aaf57611aae6122cc565b5b611abb85828601611988565b9150509250929050565b600060208284031215611adb57611ada6122d1565b5b6000611ae9848285016119b6565b91505092915050565b600060208284031215611b0857611b076122d1565b5b6000611b16848285016119cb565b91505092915050565b611b288161214f565b82525050565b611b3781612161565b82525050565b611b4681612197565b82525050565b6000611b5960188361205a565b9150611b64826122e7565b602082019050919050565b6000611b7c601b8361205a565b9150611b8782612310565b602082019050919050565b6000611b9f60268361205a565b9150611baa82612339565b604082019050919050565b6000611bc260118361205a565b9150611bcd82612388565b602082019050919050565b6000611be560158361205a565b9150611bf0826123b1565b602082019050919050565b6000611c0860148361205a565b9150611c13826123da565b602082019050919050565b6000611c2b601d8361205a565b9150611c3682612403565b602082019050919050565b6000611c4e60208361205a565b9150611c598261242c565b602082019050919050565b6000611c7160168361205a565b9150611c7c82612455565b602082019050919050565b6000611c94601b8361205a565b9150611c9f8261247e565b602082019050919050565b6000611cb7601a8361205a565b9150611cc2826124a7565b602082019050919050565b6000611cda601d8361205a565b9150611ce5826124d0565b602082019050919050565b6000611cfd60188361205a565b9150611d08826124f9565b602082019050919050565b6000611d20601f8361205a565b9150611d2b82612522565b602082019050919050565b6000611d4360178361205a565b9150611d4e8261254b565b602082019050919050565b611d628161218d565b82525050565b6000602082019050611d7d6000830184611b1f565b92915050565b6000602082019050611d986000830184611b2e565b92915050565b6000602082019050611db36000830184611b3d565b92915050565b60006020820190508181036000830152611dd281611b4c565b9050919050565b60006020820190508181036000830152611df281611b6f565b9050919050565b60006020820190508181036000830152611e1281611b92565b9050919050565b60006020820190508181036000830152611e3281611bb5565b9050919050565b60006020820190508181036000830152611e5281611bd8565b9050919050565b60006020820190508181036000830152611e7281611bfb565b9050919050565b60006020820190508181036000830152611e9281611c1e565b9050919050565b60006020820190508181036000830152611eb281611c41565b9050919050565b60006020820190508181036000830152611ed281611c64565b9050919050565b60006020820190508181036000830152611ef281611c87565b9050919050565b60006020820190508181036000830152611f1281611caa565b9050919050565b60006020820190508181036000830152611f3281611ccd565b9050919050565b60006020820190508181036000830152611f5281611cf0565b9050919050565b60006020820190508181036000830152611f7281611d13565b9050919050565b60006020820190508181036000830152611f9281611d36565b9050919050565b6000602082019050611fae6000830184611d59565b92915050565b6000604082019050611fc96000830185611d59565b611fd66020830184611b1f565b9392505050565b6000611fe7611ff8565b9050611ff382826121bb565b919050565b6000604051905090565b600067ffffffffffffffff82111561201d5761201c612293565b5b602082029050602081019050919050565b600067ffffffffffffffff82111561204957612048612293565b5b602082029050602081019050919050565b600082825260208201905092915050565b60006120768261218d565b91506120818361218d565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156120b6576120b5612235565b5b828201905092915050565b60006120cc8261218d565b91506120d78361218d565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156121105761210f612235565b5b828202905092915050565b60006121268261218d565b91506121318361218d565b92508282101561214457612143612235565b5b828203905092915050565b600061215a8261216d565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60006121a2826121a9565b9050919050565b60006121b48261216d565b9050919050565b6121c4826122d6565b810181811067ffffffffffffffff821117156121e3576121e2612293565b5b80604052505050565b60006121f78261218d565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561222a57612229612235565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f45786365656473206d6178206865726f20737570706c79210000000000000000600082015250565b7f45786365656465642077616c6c6574206d696e74206c696d6974210000000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f53616c65206e6f74207374617274656421000000000000000000000000000000600082015250565b7f496e76616c696420736e617073686f7420646174610000000000000000000000600082015250565b7f496e76616c6964206865726f20616d6f756e7421000000000000000000000000600082015250565b7f4d757374206265206f6e207468652073616c652077686974656c697374000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f496e76616c69642077686974656c697374206461746100000000000000000000600082015250565b7f456e7465722076616c696420616d6f756e7420746f20636c61696d0000000000600082015250565b7f436f6d6d756e6974792073616c65206e6f742061637469766521000000000000600082015250565b7f53616c65206d7573742062652061637469766520746f20636c61696d21000000600082015250565b7f45786365656473206d6178206d696e7420706572207478210000000000000000600082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b7f496e76616c6964204554482076616c75652073656e7421000000000000000000600082015250565b61257d8161214f565b811461258857600080fd5b50565b6125948161218d565b811461259f57600080fd5b5056fea264697066735822122017d8ab7e943c61827e2bc9c5ce3a44b147ca376ce6412d2444a5eb34ccec595764736f6c63430008060033

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

0000000000000000000000008ccf065f5c4d3e2fcb025329f22222448dbabf8b0000000000000000000000000000000000000000000000000000000061a6bb000000000000000000000000000000000000000000000000000000000061aaaf800000000000000000000000000000000000000000000000000000000061ad52800000000000000000000000000000000000000000000000000000000000001a0a0000000000000000000000000000000000000000000000000000000000000032

-----Decoded View---------------
Arg [0] : nonFungibleHeroesAddress (address): 0x8ccF065F5C4D3E2fcb025329f22222448dbAbF8b
Arg [1] : preSaleStartTimestamp (uint256): 1638316800
Arg [2] : communitySaleStartTimestamp (uint256): 1638576000
Arg [3] : publicSaleStartTimestamp (uint256): 1638748800
Arg [4] : godSupply (uint256): 6666
Arg [5] : maxMintsAddress (uint256): 50

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000008ccf065f5c4d3e2fcb025329f22222448dbabf8b
Arg [1] : 0000000000000000000000000000000000000000000000000000000061a6bb00
Arg [2] : 0000000000000000000000000000000000000000000000000000000061aaaf80
Arg [3] : 0000000000000000000000000000000000000000000000000000000061ad5280
Arg [4] : 0000000000000000000000000000000000000000000000000000000000001a0a
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000032


Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

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